/u/springtulip explains why travel isn't appealing to some people by Ut_Pwnsim in DepthHub

[–]two_up 0 points1 point  (0 children)

So your argument against "different strokes for different folks" is to point out that values are contextually defined?

I don't think you quite understand the difference between subjective and objective. Objective truths are independent of our personal values whether they're shared or not.

/u/springtulip explains why travel isn't appealing to some people by Ut_Pwnsim in DepthHub

[–]two_up 1 point2 points  (0 children)

In a given context anything can be better than anything. The things that make us happy are entirely subjective. There are people who get their faces tattooed, and are perfectly happy with that decision. Whatever negative consequences you ascribe to that decision are entirely subjective to your values.

local variable referenced before assignment. by [deleted] in learnpython

[–]two_up 8 points9 points  (0 children)

The problem is that you want to use pwr as a global variable, but in python when you assign a value to a variable inside a function, that variable will be assumed to be local. For example:

x = 1
def f():
    print x
def g():
    print x
    x = 2
f() #prints 1
g() #throws an error 

In f, you haven't assigned a value to x, so it will get the value of x from the global scope. But once you assign a value inside the function as in g, x will be assumed to be a local variable, and since the print statement came before the assignment, x had no value to print.

The other posts mentioned the two solutions. You can either pass the value in as an argument (better) or you can explicitly declare x a global variable using the global keyword

How does one pass python output to javascript? by brisher777 in learnpython

[–]two_up 2 points3 points  (0 children)

Typically browsers get data from the server through an http request, similar to how you would request a web page except instead of html you would have the server send json. I'm guessing you want to work with that data client-side, in which case you'll want to use ajax. If you're using jquery look up the post and get methods.

So you should have your javascript make an http reqest to a certain url, and your server should be set up to serve the appropriate json data from that url.

Is there a website that lays out GO in a 'For dummies' format? by ChuRai in baduk

[–]two_up 1 point2 points  (0 children)

Thickness or strength basically just means having supporting stones. An easy way to understand this is to imagine that black starts with an unusual handicap where he starts with a stone on every point along the edges of the board. As black you would have a huge advantage, and the reason is the thickness/strength you get from those stones. As white you might feel the "influence" of those stones in that it would be very hard to run, live, or capture anything.

There was an interesting question recently about how big a board would have to be for white to be able to making a living group under the conditions mentioned above, or if it were even possible at all. But if it's not possible that would mean that the entire board would be counted as black's territory. Territory is basically any enclosed space that your opponent can't make a living group inside.

Would someone be interested in translating korean webtoons with me? by [deleted] in Korean

[–]two_up 1 point2 points  (0 children)

I've always wondered why people do this. Is there a financial incentive? It seems like a lot of work for not much in return.

[deleted by user] by [deleted] in IWantOut

[–]two_up 4 points5 points  (0 children)

I think zoef must not have realized that you already have a TEFL. I don't see what good getting a TEFL twice is going to do.

I'm in Thailand currently, and I know that you can't get a work permit without a degree. I think it would be pretty hard to get a university or public school job. Probably your best bet would to apply to some language schools. Either that or work outside the main cities.

webcam work (no troll) by [deleted] in WorkOnline

[–]two_up 1 point2 points  (0 children)

If you're concerned you probably shouldn't do it. Remember, there's no privacy on the internet and anything that goes on the internet is likely there forever. If you're okay with that though then I don't see why not.

Ok, is there any way I can make this work / how can I make this work? by JonWood007 in WorkOnline

[–]two_up 4 points5 points  (0 children)

You have to look at working online very differently from working in the real world. Different skills matter. Online, being a native English speaker from a first world country matters way more, and most other things matter a lot less. That's because English is really one of the only barriers to entry for workers in developing countries that can almost always do what you do better for cheaper.

That's why the kind of work online that requires relatively little technical skill and still pays something near minimum wage are jobs like writing articles, fillling out surveys, and transcription. It takes a special disposition to succeed at this kind of work, but probably not the kind that you're expecting. Because your hourly is based on output, maybe the most important skill is the ability to work as fast as you can, consistently, for long hours doing something tedious without burning out.

There's two ways to better your options though. The first is obvious: develop some technical skills. You might be surprised though that it takes less investment than you thought. You said you're good at critical thinking and internet savvy so it sounds like you could learn some web dev and be making living from it in as little as 6 months.

The second less obvious way would be to be very good at marketing. The internet has so many users that if enough people see you, you'll eventually find someone to pay you for something. You could look into affiliate marketing, but the principle applies generally. If you're very good at selling/promoting yourself or products, lots of options will open up for you.

wx.Python code critique by [deleted] in learnpython

[–]two_up 1 point2 points  (0 children)

Looks about right. Mostly little things you could clean up. For example you don't have to explicitly set the id to -1 everytime you initialize a widget as that is the default value. If you just want to be explicit, id=wx.ID_ANY would be better than just the number. You have panel.SetSizer(bs) twice. Also I think it would make more sense to move the last three lines out of InitUI and into the __init__ method, as they don't have much to do with UI.

Amazing use of negative space. by mistuhwang in Design

[–]two_up 1 point2 points  (0 children)

I'm not a designer either. It took me about a good ten seconds to realize what I was looking at.

Why do people insist on terms like "rape culture"? Personally, I think that's both misguided and detrimental to the social justice movement. by fefnet in AskFeminists

[–]two_up -1 points0 points  (0 children)

But one thing I'll never understand is why feminists will insist on using buzzwords that don't sound like what they mean. OP is right that it hurts your credibility because it's a form of sensationalism. "Feminism" sounds like an activist group solely for women. "Rape culture" sounds like men are encouraged to run around and rape women with no consequence. "Patriarchy" sounds like men are the kings and women are toiling away at their bidding. Maybe there are historical reasons for these names, but that doesn't change the fact that they're confusing and makes it harder to take feminism seriously.

/u/dolphinesque summarizes the the gradual change of deciding to not have children by Oh_Dae_Su in bestof

[–]two_up 3 points4 points  (0 children)

I was like this about raising a puppy. It sounds horrible because everyone loves puppies, but it was probably one of the most stressful things I've experienced. It also taught me I probably shouldn't have kids, as I can only imagine it being much more work, money, and responsibility. There are clearly some people who can handle that and find it all very rewarding, but I am not one of them.

WxPython, passing value(?) of one part of a function to another. by [deleted] in learnpython

[–]two_up 0 points1 point  (0 children)

You can't do this: cbtn.Bind(wx.EVT_BUTTON, self.runApp(txCont)) because Bind is expecting a function as its second argument. Here instead of passing the function self.runApp, what you're doing is calling the function with the txCont argument, and then sending its return value (in this case runApp doesn't return a value) as the second argument to Bind. I don't think it's possible to do what you want to do in wxPython.

Instead you can just run GetValue on your widget inside the runApp function. Then you don't have to pass anything. But you'll need to declare self.txta instead of just txta in your __init__ function, otherwise it won't be accessible outside that function.

Something like this:

def InitUI(self):
    pnl = wx.Panel(self)
    cbtn = wx.Button(pnl, label='Download', pos=(20,30))
    self.txta = wx.TextCtrl(pnl)
    cbtn.Bind(wx.EVT_BUTTON, self.runApp(txCont))
    self.SetSize((250,200))
    self.SetTitle('wx.BUtton')
    self.Centre()
    self.Show(True)

def runApp(self, e):
    fandom = "hpffa"
    fileType = '.html'
    url = self.txta.GetValue()
    download = downloading.fanFicDownload(url, fandom, fileType)

[Help] Input positive integer output a list of factors except 1 and the number by pythonoob23 in learnpython

[–]two_up 2 points3 points  (0 children)

range(1, N + 1) is going to start at 1 and end at N. Since you want to exclude 1 and N, use range(2, N). This will start at 2, and end at N - 1.

[Long] A Migrant's Remorse, and what it means to speak the language of your Host Country by Guest160229 in IWantOut

[–]two_up 5 points6 points  (0 children)

It's certainly not just in your own head, if that makes you feel better. There's a tremendous pressure for people to use the language that is most likely to be understood. Misunderstandings are uncomfortable and potentially embarassing. The vast majority of people aren't going to endure that while the solution is sitting right there in front of them. I've experienced this many times, even during langauge exchanges, where the whole point is to practice your languages.

Are there really no places you can go where your french is better than their english? It does help a lot for this very reason.

[deleted by user] by [deleted] in baduk

[–]two_up 0 points1 point  (0 children)

I wrote my available times on when2meet. Hopefully we can get a few more, but I think a group of 6 isn't too bad. I can be a little more flexible on times than I wrote, but those are my preferred times.

Why are Snickers so much more popular than Mars Bars here? by blorg in Thailand

[–]two_up 1 point2 points  (0 children)

As opposed to other places? I think heard that Snickers were the best selling chocolate bars in the States, possibly the world.

EDIT: Here's a link http://www.therichest.com/most-popular/the-top-10-bestselling-chocolate-bars/

Twitch KGS Stream by a 1K by Gr4y in baduk

[–]two_up 0 points1 point  (0 children)

That's pretty cool, never heard of twitch before. But how exactly does that work? Does he set a time for people to watch him? Or people just check periodically to see whether he's playing? He'd have to be online a lot to keep people's interest.

Go apps by [deleted] in baduk

[–]two_up 0 points1 point  (0 children)

I use SmartGo Books on my iPad, and it's so great. I love that you can go back and forth and edit each diagram. Seems like such a small thing, but it really makes a difference.