« first day (1605 days earlier)      last day (3340 days later) » 

2:00 PM
Fancy. Over here, we can only get two X's imported from Mexico.
 
Is "Shit" a swearing word?
 
Leading to the riddle: Q:"Why do Queenslander's call their ale fourex?" A:"Because they can't spell beer."
 
Although I guess you could make the fabled "quatro equis" just by taping one Dos Equis to another.
@Emyen Depends on the context.
 
@Kabyle I'll give you the benefit of the doubt that, that's a typo... although, I somehow think it probably isn't given the way you behave here :(
 
It can be said casually and with no offensive connotation in casual circumstances, ex "I have some shit to do first, so I'll be over in 20 minutes"
Using it in its literal sense is mostly fine if you are talking to someone who is comfortable with you talking about your bowel movements.
 
2:03 PM
@JonClements no, believe me i was looking for the solution for ages in other forums, only today i got answers for 2 big problems, that has nothing to do with typo, it was more serious programming problems
 
Using it as an exclamation, ex. "shit! I lost my keys" is pretty definitely a profanity.
In any case, I don't recommend saying it in front of your boss or grandma.
 
So when the "shit" word is more "screamed". It would be interpreted like swearing?
 
Yeah
Interpretations will vary by audience, of course.
 
My native language is crap. Only 6 million people speak it. And we have these crappy letters: ÆØÅ . The Latin Alphabeth + ÆØÅ.
 
Danish?
 
2:08 PM
Norwegian
Danish and Norwegian are pretty similar.
 
FWIW, Scandinavian languages tend to sound pretty cool to native English speakers.
 
Denmark invaded norway in some period in the history and the Norwegian language got affected.
 
pondering if I can one-line a print for my answer... although... think it's clearer and cleaner as an if/else
 
“Googling inevitably reveals that my problem is caused by a known bug triggered by doing [the exact combination of things I want to do]. I can fix it, or wait a few years until I don't want that combination of things anymore, using the kitchen timer until then.”
 
That comic confused me because both panels depict a non-broken solution to the author's problem.
 
2:14 PM
My mother's grandfather was Swedish, but he didn't teach it to his kids - he wanted them to speak English. I think my mother knows one Swedish nursery rhyme.
@Emyen "shit" is classed as a swear word, but it's generally considered fairly mild, but as Kevin said that varies with location, and status.
 
Reminds me of this one:
Which indicates why five minute hacks are not something you should depend on permanently
 
We really need to get the sopython server doing something more...
 
Folding at home? seti at home? bitcoin mining?
 
+1 for Bitcoin mining
 
But only if you're not paying for the electricity. Otherwise, you don't even break even.
 
2:18 PM
Crawling for python job
jobs*
 
Err, why do you need both mysqld and mongod?
 
@61612 postgres is doing the site, mongodb is a temporary measure for storing the SO datadump until we come up with a good game plan for the nidaba project
 
Do any of you guys work as a programmer?
 
@Emyen I believe a lot of us do :)
 
I'm more of a code monkey.
 
2:20 PM
@JonClements Are you thinking of doing it as a conditional expression in the arg to print()? Hmmm. I might do that in my own private code, but it might not be a good habit to teach a newbie. OTOH, in C I've happily done nested ?: stuff in printf() to control spacing. :)
 
@Kevin Is this u? 2.ii.gl/pEpdfr1W.jpg
 
@Emyen he's bothered to get a hair cut since then...
 
haha
 
cbg @davidism
 
cbg
 
2:23 PM
@JonClements So we need more Minecraft players?
 
That's an impressive solution if it worked for "years" as implied
 
@PM2Ring The end of the story is so sad.
Poor ITAPPMONROBOT
 
Oh good, I'm not the only person that feels pity for inanimate objects.
Or, animate but not intelligent, as the case may be.
 
2:31 PM
@Kevin That's one of the best, IMHO. Very poignant.
@poke Yeah. Such a hard-working little robot deserves better treatment.
 
Try to imagine that it's hard work for a tool to be useful, and it thinks of its eventual disposal as a desirable retirement.
 
@poke That's obviously the solution :p
 
Finally, ITAPPMONROBOT's long struggle has come to an end :'-)
 
I haven't logged into the sopy MC server this year though... think it's fairly idle
 
2:36 PM
I am currently in my "not interested in Minecraft" phase of oscillatory Minecraft interest. Ask again in June.
 
@Kevin lol…
 
Umm... maybe we could do a quick webapp for MC config and launching, and sell 3/4 instances at N amount to people for a bit :p
 
A market already exists for MC server leasing, so you'll have to compete on either features or pricing.
 
@Jon Alternatively, you could build a MC world that has levers and buttons that start or stop the sopython server…
 
I'm "Job" now? :p
 
2:39 PM
@Ffisegydd I'll pay that.
 
@JonClements xD
It’s the “Bob” version of Jon.
 
If this is all the code, it defines a function called launch_instance; you need to call that function or nothing happens. — Antti Haapala 7 secs ago
 
Jon is like the biblical Job. He's been burdened with us knuckleheads in order to test his faith.
 
The path of the righteous man is beset on all sides by the inequities of help vampires.
9
 
2:43 PM
Why can't I star that twice? :(
 
hmm my crossdressing is not there any more
 
Reading this comment section is not doing my self-esteem any favors.
> If you are a terrible engineer, move to Pennsylvania. Here in Pennsylvania, you don't have to be any good, just better than the Amish.
 
user559633
I thought you were in jersey
 
I'm right on the river. I commute to Philadelphia for work.
I guess you can favorably interpret the comment if you mentally insert "central" before each instance of "Pennsylvania"
 
@Kevin I'd change "inequities" to "ineptitude"...
 
2:47 PM
The more I change it, the less recognizable it becomes as a reference to Pulp Fiction.
... And also the bible.
 
Good point.
 
Maybe if I had been clever enough to think of an equivalent for "and the tyranny of evil men", then I could change "inequities" while still maintaining a good standard of similarity
 
@Kevin now if Tarantino had written the bible... that'd be quite an interesting read
 
who is tyrannical on SO... close voters? But that's us. You have to sculpt your bit to the intended audience.
 
user559633
"That’s not typical in our economy, and as computer science expands in popularity, we need to ensure that the next generation of talent feels welcomed." lol
 
user559633
2:52 PM
so sick of engineering becoming this place where we can't talk about merit or ability
 
okay dumb question... if you have different "types" of users, is it better to make multiple schemas, or somehow alter the generic user class?
 
Well, they'd feel welcomed if they learnt to use a search engine/work stuff out without asking for constant hand holding... some of us just had books to learn from, or just struggle on into the night until we found a way to make it work :p
 
user559633
or learned how to read the source
 
Another commenter had a nice point that careers like law had an easier time judging merit/ability because the areas a graduate is expected to be proficient in is well-established.
Compare to programming, where I can know ten technologies, and you can know technologies, with literally no overlap.
 
user559633
2:54 PM
Sure, fair. I do take exception to the throw-away "take home assignments."
 
If every programmer in the world was expected to know X language and Y principles, it would be easy.
 
@Kevin you'd better get KevinScript out sooner rather than later then, so it can be the lingua franca of the programming world!
 
user559633
As if you were an electrical engineer and during the interview, the company told you to "make a lite-brite"
 
A third commenter had an interesting idea: determine the interviewee's least familiar language out of a collection of five, and give them a take-home assignment in that language.
 
user559633
meh
 
2:56 PM
This gives you an idea of how effectively they can get up-to-speed in unfamiliar tech, which is arguably more important than already knowing framework XYZ
 
user559633
great, so i write some lisp for a job in which i'll be writing python web shit
 
user559633
wow such relevant very not waste of time so objectively same difficulty of language for all candidate wow very interview
 
Unironically yes.
not that I'm endorsing take-home tests in general, which I do agree is time consuming. Ideally, you could do the "least familiar tech" trick without giving them homework
 
user559633
Ironically ._.
 
user559633
sure, but what if someone is least familiar with a real programming language like C and another is least familiar with the popular megablox pseudo-language Ruby?
 
3:01 PM
The language I have "learnt" but am least familiar with is probably Julia.
 
I suppose the interviewer could omit Ruby from his list of five languages.
 
Hi, need a help with duplicate keys in dict
 
You can't have duplicate keys in a dict.
 
Yay, no help
 
i know, planning to append
appending is not working
 
3:02 PM
Maybe you could have unique keys in a dict, and make each value a collection rather than a scalar value. Ex. {1:2, 1:3} is not valid, but {1: [2,3]} is.
 
collections.defaultdict(list)
 
Oh, you're already doing the thing I said :-)
Yep, that should work.
 
@sush at the moment you're just saying half-written sentences, please provide a full description of your issue and what code you have.
 
user559633
please
 
user559633
help
 
user559633
3:03 PM
google too much
 
user559633
typing
 
>>> import collections
>>> d = collections.defaultdict(list)
>>> d[1].append(2)
>>> d[1].append(3)
>>> print d
defaultdict(<type 'list'>, {1: [2, 3]})
 
sure, drafitng the fill text
 
Umm... "Street Fighter: Assassin's Fist" wasn't too bad... explains about Ken and Ryu anyway (and quite a bit about Akuma)
 
If you have a “full text” you actually need to draft first, then you are already writing far too much for a chat.
 
3:05 PM
Indeed.
 
My psychic debugging lobe suggests that maybe he's doing d[1] = 2 instead of d[1].append(2)
 
Bold call. Any other bets?
 
this the input data
 
Maybe he's doing append correctly, but is surprised to find that 2 in d.values() evaluates to False.
 
output_data_iam_getting = {u'New Master Ambient': {'short_code': u'New Master Ambient', 'value': 16.5, 'time': u'2015-03-09 13:53:54'}, u'new re 1': {'short_code': u'new re 1', 'value': 19.5625, 'time': u'2015-03-09 13:53:54'}, u'Spare 24': {'short_code': u'Spare 24', 'value': 22.5625, 'time': u'2015-03-09 13:53:54'}}
looking something like [u'New Master Ambient': [ {'short_code': u'New Master Ambient', 'value': 16.5, 'time': u'2015-03-09 13:53:54'}, {'short_code': u'New Master Ambient', 'value': 16.5, 'time': u'2015-03-09 13:53:54'}]]
 
user559633
3:08 PM
garlic
 
4 mins ago, by Ffisegydd
@sush at the moment you're just saying half-written sentences, please provide a full description of your issue and what code you have.
 
dict_result = collections.defaultdict(dict)
for i in results:
row = dict_result[i['short_code']]
row['short_code'] = i['short_code']
row['value'] = i['Value']
row['time'] = i['time']
some reason unable to update text file from machine
trying to truncate and pasting the data
 
user559633
man just open a question so we can ignore it
 
so many audible credits... anyone read any good books lately?
 
This seems rather different from the defaultdict(list) problem you were describing before.
 
3:09 PM
@corvid Dark Tower.
 
i did that getting error attribute error or it can't be a str or int
 
Yeah, because row is a list, so you can't do row['short_code']
maybe you wanted to do row.append(i) instead of assigning each key like that
I'm assuming i is a dict.
dict_result = collections.defaultdict(list)
for i in results:
    row = dict_result[i['short_code']]
    row.append(i)
 
@corvid have you not read sopython.com/wiki/Recommended_Reading yet?
 
@sush That's not an MCVE
 
@JonClements ooo fancy didn't even know that was there
 
3:14 PM
@Kevin it worked, thanks a million :)
 
A book list without Godel Esher Bach and Jonathan Livingston Seagull? This travesty must be amended.
 
@Kevin go to it then good sir!
 
Hmm, is there anything else to recommend... I mostly stopped reading paper books once I got my own computer, so all my favorites are young adult works.
 
@sush Please, please please try to actually formulate a proper question next time. Kevin has to pretty much read your mind there. It was very unclear what you wanted.
 
3:16 PM
I don't know, A Wind In The Door?
 
user559633
Not sure why kevin offered up his blood
 
It's because of my bleeding heart 0:-)
 
@Kevin have you tried duct tape? I hear that fixes everything... :p
 
hello, how can I create a 3D array in Numpy ?
 
I can't cover my heart with duct tape, because my chest cavity is already being held closed by duct tape.
 
3:18 PM
@Kabyle yes you can - ask again after you bother reading pretty much the first paragraph about numpy :)
 
What duct tape has brought together, no duct tape can bring apart.
 
garlic
 
user559633
garlic indeed
 
I wonder if it's valuable to add my name to books suggestions that have already been listed, so people know that it's double good?
 
Yeah go for it.
 
3:20 PM
@JonClements yes, it is simple i found answer here: stackoverflow.com/questions/1696135/…
 
@Kabyle good for you - try searching before asking next time? Otherwise, all you're doing is annoying people which'll lead you to being kicked from the room.
 
@JonClements ok
 
@Kevin I guess I could add a few to that, eg the Neverness books. A few days ago I started re-reading Skylark by E.E 'Doc' Smith. It's still a classic, but I guess it might seem a bit silly/quaint/weird to many younger readers. I guess it helps if you can imagine the impact it had in the late 1920s, early 1930s.
Anyway, it's rhubarb time for me.
 
@PM just tried to add you to the editor's list (not sure why you weren't already on there) but getting a 500 error. Hopefully can get it fixed so we can add you to the list.
 
Guess it doesn't hurt to add The Last Question even though it isn't strictly speaking a book
 
3:27 PM
@Ffisegydd No worries. :really gone:
 
Ooh, and the Nine Billion Names of God.
 
Wow, the site needs to get updated. :-/ Maybe I shouldn't have spent the weekend playing Mario Kart.
 
@davidism Psssh. Sounds like a weekend well-spent.
I wish I'd spent the weekend playing Mario Kart :(
502 error also occurs for adding to DC group.
 
I spent a third of my weekend watching people play Magic: The Gathering on Twitch. I don't regret it.
Save perhaps for the one round that took 120 minutes to complete, as both players were in maximum durdle mode.
 
I spent 1/3 of it out walking+photographying, 1/3 of it making brownies, and 1/3 of it playing some games.
 
3:32 PM
Two hour long semifinals are a drag. If no one identifies a deadlock-busting trump card soon, Hasbro might have to ban the durdle source card, Mastery of the Unseen.
 
@Ffisegydd we should start docking @davidism's pay :)
 
Yeah damn straight. Reduce his pay by 50% from $0 to $0!
 
I concur, let's make that effective immediately - that'll teach him! :p
 
Attempting to access sopython.com/admin/davidism_pay_adjustment_console gives a 404 error! Clever girl.
 
DSM
Morning cabbage for all.
 
3:34 PM
cabbage DSM
 
Hey up
 
@Kevin have you switched from Pulp Fiction to Jurassic Park paraphrasing now?
 
Hmm, that Jurassic Park reference doesn't quite work in this context... Oh well.
@JonClements I just pull references out of the big hat that is the collective unconscious of all popular culture.
 
"Dammit @Kevin - I'm a developer not a quote expert!"
 
Never tell me the odds! Or any other facts!
 
3:39 PM
@Kevin is that because "YOU CAN'T HANDLE THE TRUTH!"
 
Stahp.
 
Ok :-)
I never saw that movie anyway.
 
Hello, I convert a picture from BGR to YUV using OpenCV. Does changing the values of U and V lead to the auto-change to Y ?
 
DSM
When did tristan become a dog?
 
@Kabyle I doubt it
 
DSM
3:43 PM
@MostafaMahmoud: cabbage for you! I've noticed some of your pandas answers.
 
@Kevin me too. I asked because i read an article that lets me make understanding that, or may be i just misunderstand
 
Just try it yourself.
 
user559633
@DSM this morning
 
user559633
dog-peer pressure
 
this looks like a job for @Kevin
0
Q: How to make my Python code read from the second line for my lexer

EscaI am busy building a small compiler that reads the file, finds keywords and then does what the keyword specifies. I have an issue that it starts reading the file from the begining each time and icould not find a way to solve this problem with out nested if statements. swift.py: from sys import...

wiothout having read the question at all beyond the title
 
3:50 PM
data = " ".join(file.read().split("\n")[1:])
 
it looks like it really has nothing to do with grammars and parsers
 
My serious advice would be "don't have the requirement of skipping the first line in the first place"
 
Markku's comment seems like a fine solution as well
 
I told him your serious advice :P
 
DSM
3:53 PM
Does anyone recognize that flag? It feels like it should be something.
 
Looks steampunky.
 
DSM
My usual reverse-image-lookup tools all failed.
 
What flag?
 
DSM
Esca's user avatar (the one shown in the question inset by Joran up a dozen lines or so.)
 
Google reverse image search turns up no relevant results for me as well.
 
DSM
3:55 PM
I should tell the OP that I know a good answer but will only release the information in exchange for the history of the flag.
 
Seems like a reasonable bargain, if you follow through :-)
 
DSM
I knew there would be a downside.
 
My bet is "I made this myself using the flag designer in [some popular 4x game]"
 
DSM
Seems a reasonable bet. If it were from a game (like a standard team flag or something) then it would probably show up in more than one place, unless it was incredibly obscure.
 
in which case my interest in the flag just dropped to zero
 
DSM
3:59 PM
Joran, friend of the creative arts.
 
If he picked light brown + dark brown stripe + plus shaped design + gear icon from four separate dropdowns, then it could conceivably be the only place on the net where that particular combination appears
 
Best guess for this image: bike cog
 
I left a comment because I couldn't take it any more.
Off topic: hey @Esca, what country is your avatar's flag from? — Kevin 33 secs ago
If they answer "None" with no follow up, I will be displeased.
 
Flag > Too chatty With the forbidden knowledge of this flag I will destroy your sanity. (I haven't actually flagged it, so don't cry)
the flag was from a game about colonization in a steam punk era — Esca 17 secs ago
 
Wild speculation: Esca is from Escafeld, the old (Saxon?) name for Sheffield. The gear represents the engineering industry that Sheffield used to be well-known for. Conclusion: user is one of the Chosen People.
 
user559633
4:03 PM
the grand kingdom of Hot Topica
 
Didn't name the game. I am 75% satisfied.
 
Oh man that's even better, as now you're going to have to say "What....what game?"
 
also, lol that he didn't reply to any of the constructive comments
 
user559633
 
user559633
you're welcome kevvie poo
 
4:04 PM
You're such a dear, @tristan :-)
 
user559633
:]
 
D:
 
:3
 
C:
 
user559633
(﹒︠ᴗ﹒︡)
 
4:05 PM
==|:-)>
 
user559633
ლ(́◉◞౪◟◉‵ლ)
 
( ' . ')
 
user559633
⁽⁽٩(๑˃̶͈̀ ᗨ ˂̶͈́)۶⁾⁾ okay lunchtime
 
Ok I'm done
 
wwooo
why my github https push does not work
as if I am typoing my password
but I copypasted it :D
There have been several failed attempts to sign in from this account or IP address. Please wait a while and try again later.
stupid :D
 
DSM
4:17 PM
I'm reluctant to click because it's hard to think of circumstances under which "relevant IKEA commercial" makes sense.
 
It's a good link. Kevin posted it, it can't be that bad. :)
 
DSM
Well, maybe I'll wait until after lunch when I'm more fortified.
 
yay me and my colleague are trying to fix "the hardest problem" in postgresql
 
DSM
The development of language?
 
off by one
oh wait hardest ...
tsp
P == NP
 
4:29 PM
Determine whether white can force a win in chess?
 
cross-correlated column statistics
 
I guess solving Go would be harder
 
I have the not-my-dream-job and I fix the problems that are always in all presentations about "hard problems in PostgreSQL"
 
hello
has anyone used TORNADO WebFramework?
I need to find out how to broadcast a message only to a single user and noth all connected sockets connected to the server
 
4:54 PM
<client_connection>.send("a message") ?
or maybe <client>.write_message("A MESSAGE?") by looking at their docs
 
DSM
That's a case where I'd wait a few minutes to see what alternative form the OP is willing to accept so we know what to close it as a dup of.
 
Oops, I voted as unclear before I saw how old the Q was.
 
Oops
 
user559633
eh. looks like a pattern of needing garlic in user history. i aint feelin bad
 
DSM
5:00 PM
Probably it'll wind up being a dup of one of the quadrillion setdefault/defaultdict/sorted-groupby collect questions.
 
Removed anyway
 
The AddHours function only works for the 'General Staff' and 'Stock Admin' class
but not for the 'Manager' class
any ideas as to why?
 
Not enough information. The parts of each class you've shown us are identical for Manager and StockAdmin, so they should behave identically.
 
Isn't it supposed to be self.AddHours(loggedhours)?
 
DSM
Aside: I try to avoid commenting on code which doesn't consistently use four spaces for indentation, because there are too many ways you can have trivial issues hiding the real ones..
 
5:08 PM
Incidentally, it seems unnecessary to have a if self._loggedhours == datetime.timedelta(seconds =0): line. self._loggedhours += hours should work whether loggedhours is a time delta of zero seconds or not.
 
@JoranBeasley I've this.
 
(assuming both values are timedeltas)
 
people on skype keep saying I sound like batman .-.
 
DSM
Hmm, let me try. [Batman voice] "Because I'm corvid." [/Batman voice] It's a little harder to pull off because of the vowels, but I guess you could make it work.
 
5:11 PM
@eddwinpaz that looks like a step in the right direction ... certainly
 
I want to do a comparison
example. lookup the client socket id based on a user_id from my db on a Array so I can get the client ID and then write_message
I'm missing that part and the documentation does not says anything about it :/
 
DSM
this is not the correct answer and the result is bad and the problem is why the loop does not stop — Ibrahim Dangou 16 mins ago
He's facing off against Martijn..
 
your result is bad and you should feel bad! </zoidberg>
 
DSM
"input: GM faces investor demand for slice of $25 billion cash hoard" Somehow I don't think this will help Martijn solve his problem.
 
@DSM Yup, I clearly see what I did wrong. I am now going to commit ritual suicide in grief.
 
DSM
5:26 PM
Noooo! There are other ways to redeem yourself! Such as giving bounties to my answers!
 
Cabbage!
 
@MartijnPieters there should really be a canatonical answer to character encoding questions ...
I think you should author it :P
 
@JoranBeasley the problem is that there are several ways of getting to the errors. Python's implicit conversions don't help here.
 
DSM
Part of me wishes that the representation of bytestrings had always been something ugly like "\ZT\Zh\Zi\Zs" -- still readable, but with no way to convince yourself you weren't looking at something raw.
 
5:34 PM
any good books to recommend python? for someone coming from php background?
 
@MartijnPieters yeah I agree ... they greatly confuse the issue actually
but at teh same time 99% of the issues is because people dont know when to encode vs when to decode
and a simple isinstance(x,str) solves everything really imho
 
@JoeSaad ... just do the django tutorial ...
that will get you 60% at least
the sweat blood and tears will get you the rest of the way
 
DSM
I don't think I've ever sat down and read a book on Python.
 
actually with python theres not too much bodily fluids
@DSM ive skimmed a few but never felt like they added to my knowledge... Ive read lots and lots and lots of online articles and tutorials and docs
 
5:39 PM
Wow. What a place to come back into the conversation. Why are we discussing Python and bodily fluids?
 
DSM
Says the guy who infamously described being a Python programmer..
 
DSM
Okay, time for lunch. l9r!
 
I'll miss you, DSM ;_;
 
the SelectProduct method is only printing blank lines
even if i enter text and then press go
how can i get the currentext in the completer?
 
5:50 PM
That's because self.text receives its value in the first nanosecond that your program is open, and so the user has no time to actually type a value into the field.
Typing a value after that nanosecond will not cause the value of self.text to change.
The solution is to not have a text attribute at all. Instead, assign search as an attribute to self, and do
def SelectProduct(self):
    print(self.search.text())
oops, missed a paren
 
thanks @Kevin that solved the problem!!
 
The old "get the value in the first nanosecond" problem. A pretty common issue amongst users not familiar with the event-driven model used by most GUI libs.
 
stackoverflow.com/review/suggested-edits/7286403 ... does this edit actually improve my answer ? (other than fixing my capitalization of In)
 
haha only been a month since i started doing eventdriven programming
 
@Joran not really, it could have just been a comment if they really thought people should know that
 
5:59 PM
@davidism thats sorta what I though ... I would have approved the edit with just the capitalization change (even though those edits annoy the heck outta me)
 

« first day (1605 days earlier)      last day (3340 days later) »