« first day (1647 days earlier)      last day (3309 days later) » 

4:00 PM
IndentationError is quite mysterious there.
 
@Ffisegydd I'm tempted to link a relevant NSFW image :I
 
Better not. I can imagine the website anyway :P
 
@Kevin Maybe he has a space there in front
 
Failed this reopen audit: stackoverflow.com/review/reopen/7760537, what do you guys think? I said leave closed.
 
He posted his full code. He has four spaces in front.
On that note, Python unexpected indent as typo, if you consider indentation problems as such.
 
4:02 PM
Aargh! Didnt see the edit ... Nice answer there
 
@Kevin: ah, missed that it was the OP that adjusted that line..
 
I think it's opinion based, it's already got a bunch of "I think this" answers, so:
 
Incidentally, I didn't directly address the logic problem because OP never directly asked about it. I'm like an overly literal genie, giving you exactly what you want (but not what you need)
 
Do I delete direct dupe answers? WRT stackoverflow.com/a/29752791/4099593
 
Lunch time.
 
4:06 PM
AAH rep cap spoiling my rep run
 
@davidism I love the irony oh "I think it's opinion" based, based on it's got "I think this" answers :)
 
Why u do this repcap?
 
@BhargavRao so Jon Skeet doesn't destroy all the styling on the site :)
 
I've become famous actually!
Your if statement is also wrong (Not the cause of the Error). It should be if Number == "50" and Number == "51" ....and so on. Check this for reference stackoverflow.com/questions/15112125/…Bhargav Rao 9 mins ago
Bill's taken my name!
 
@Kevin wow... you got 3 upvotes for that? you rep-whore :p
 
4:11 PM
What a nice day! 2 answers, rep-capped already
 
@Bhargav it's when you can rep-cap without answering... :p
 
That's Martijn's job!
Waiting for the day I can do that, 5 years down the lane
This guy comes 49 minutes after the accept and steals all the show stackoverflow.com/questions/29750203/…
:(
 
DSM
Sometimes a certain answer is more pedagogical. One of the rare questions on which my answer was accepted over Martijn's higher-voted answer is because I added more explanation to help the OP understand what was going on.
 
Umm.... "a street was closed when a building under demolition collapsed" - umm... I know what they mean, but that just sounds wrong somehow...
 
I started watching HoC yesterday and it's rather hard to comprehend (even with subtitles) :d
 
I have to read recaps after each episode because I'm watching them in English with English subs
 
I haven't even watched the second season yet, I should really get back into it.
 
S1+2 were magnificent.
S3 was a bit disappointing with the occasional awesome bit.
 
Ok. I have a homework question...
 
@JonClements Yep, there's no justice.
 
4:24 PM
Ask it rightaway
Don't ask to ask
 
I don't see a question mark yet ;-)
 
DSM
Tanj. #heinlein
 
Cabbage All.
 
cabbage
 
@DSM Yep! More votes means it has helped many. Accept means it has helped the OP
@abhi Cabbage!!!
 
4:25 PM
TAN(J|STAAFL)
 
Kevin, its raining like crazy here.
 
Are you under the same clouds?
 
@AnttiHaapala Cbg!
 
It was raining like crazy here an hour and a half ago.
 
DSM
4:26 PM
This is the weirdest homework question ever.
 
Clouds? IAAS, PAAS or SAAS?
need more context
:D
 
Homework: determine the distance between Kevin and abhi, given an atmospheric wind speed of X...
 
J = Joy? Jesus? Juxtaposition?
 
Justice :-)
 
Jam
Food product!
 
4:28 PM
New Jurassic Park trailer. squeal
 
No words from J in salad! J protests
 
DSM
It's also raining here, but it doesn't seem to be part of the same storm on the east coast, if the radar is to be believed.
 
It's snowing here...
 
Our city is quite balanced
Summer - Morning
Monsoon - Evening
Winter - Night
 
It's lovely and sunny here.
 
4:29 PM
All seasons in one #swag
 
@Ffisegydd Where are you located?
@DSM, I solved my question. So no need to ask it. :)
 
Bath
 
Some kind of dark wizardry must have transferred England's bad weather to America.
 
I am forgetting Syntaxes all the time and that drives me a little bit nuts.
On another note, is it syntaxes or syntaxii?
which root do you prefer?
 
Might be one of those uncountable nouns.
 
4:32 PM
@Kevin we're sending our teeth next ...
 
:-B
 
@ZeroPiraeus Do you have any left yet? :P
 
DSM
Syntaxes, I'm pretty sure.
 
Syntaces would be great if true.
 
4:34 PM
Syntaxen?
 
Many Syntax!
 
DSM
"syntaces" looks like the sort of thing I say when I'm trying to be sophisticated and fail.
 
In the grand tradition of boxen.
 
I am not convinced that nothing called syntaxii exists in the dictionary.
 
DSM
Could be there as an acrostic, I guess!
 
4:36 PM
dictionary.reference.com doesn't have everything that original oxford edition dictionary does. i am talking about the full size edition and not the itty bitty pocket version.
 
Lol
The only match twitter.com/syntaxii
:D
 
DSM
Has anyone here ever actually used the "Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook." feature?
 
Do you have a word named Bricolage in the dictionary reference.com?
@DSM Honestly I have never used that.
 
Given his spelling of America, I'm disinclined to accept his twitter handle as authoritative.
 
@DSM nope
 
4:40 PM
That would make you look silly.
Hey, I don't know an answer to this question and I was wondering if you do.
If I don't know an answer, why pass it over to friends, if this is not truly a problem that I am facing.
On the other hand, I have sent friends a link to the question I have.
with the hope that they would help me out.
buteonine doesn't have any results either in the dictionary.reference.com
or bruxing
 
I used it once
 
which means clenching of teeth.
 
There are 55 words that contain "ii" in the Words With Friends dictionary, but none of them are "syntaxii"
 
I had an interesting problem and had recently reconnected with a programmer friend on facebook.
 
"aalii" is an interesting one. I'll have to remember that the next time I play.
 
4:44 PM
Are "n stack trace entries from the caller" and "n stack trace entries towards the caller" both correct and do they mean opposite things?
 
Words with Friends doesn't accept all the words that scrabble accepts.
 
The second one sounds weird to me
 
Also there is a hack called "Mess with Friends" that people have used to cheat.
 
@DSM I can't imagine using it. I think it would be socially insane to do so.
 
and make up words that don't exist in the English Language.
 
4:45 PM
@abhi Yeah but WWF was easier to find online, and thus is the basis for my homebrew wordlist module
I'll use any dictionary you want, if you give me a text file containing all its words.
Preferably all lowercase ASCII, newline delimited
 
I am reading the "The Word I'm thinking of: A Devilish dictionary of difficult words".
and most of the words in there are not available on dictionary.reference.com
 
Well, I'm in the descriptivist camp anyway so I reject all sources that claim to be an authority on words
 
@Kevin what'd be the right way?
 
For example, Firefox put a red underline under "descriptivist", but IDGAF
 
4:48 PM
but authors have referenced it in their works.
 
@vaultah Hard to say, because I don't know what meaning it's trying to convey
 
DSM
I still don't think syntaxii is right. Almost certainly not in English, and probably not in Greek either, for the same reason we say axis/axes, not axii.
 
for example a word called blatteroon exists
 
@Kevin oof, that's even worse :) Let me rephrase...
 
Let's go for axises :)
 
4:49 PM
Anyone with a gold badge want to reverse the dupe direction on this post? stackoverflow.com/questions/29751572/…
Older question might be better closed as a dupe of this newer question.
 
Sure, ok
 
The plural would be Syntaxes I think. The definition says it's short for Syntaxis
 
how can I get a gold badge? atleast one of them would be nice.
 
@Kevin wow - you're so hard to convince :)
 
@Jon, I blame peer pressure. It already had 4 reopen votes.
 
4:50 PM
Boanthropy is another word not to be found in your ordinary dictionary.
 
DSM
σύνταξη/συντάξεις?
 
What's a boantrope?
Is it like a cow alien?
 
YOu're close.
 
@Kevin: are you going to reverse the dupe or am I? :-P
 
Bovine = cow
 
4:51 PM
> Boanthropy is a psychological disorder in which a human believes himself or herself to be a bovine
 
@MartijnPieters You can do it, I have a thing to attend to real quick
 
I think trans-bovinism is more up to date and gets the idea across better.
 
@Martijn trying to get as many "normal" votes in while you can? :p
 
Has everyone voted in So elections?
 
4:52 PM
Yeah
for Ninja and Puppy
 
Yes, voted. Since I already accepted payment for my votes, it would be rude not to cast them.
 
@Bhargav uh oh.... did you miss Martijn's pledge about correct name spelling? :p
 
@JonClements every 'regular user' action is now tinged with a sense of "that'll probably change".
 
It's so sad when a question is deleted and I don't have the rep to see if the person found my suggestion helpful or not before deleting :( yearning for more rep, one day.
 
So business as usual then, @WayneConrad
 
4:54 PM
@JonClements Yep! Got a link to the pledge?
 
It's kind of like minecraft... instead of a gold hammer, you'll have a diamond sword... (or something!)
 
@BhargavRao if you are going to go that way, it should be Ninja and Puppy
 
@abhi Also, when someone has the nickname "Ninja," it's especially bad manners to make them angry.
 
@MartijnPieters In 9 seconds there
 
bbias
 
4:55 PM
Soo close!
 
:22803791 Oh, it makes more sense in context. I guess you can say that if you establish where the starting point is.
 
A vote for me is a vote for correct name spelling rules! :-P #stackoverflow #soelection (thanks go to @jeremybanks) http://t.co/F4xWdvDook
and of course
A vote for @zopatista is a vote for correct name spelling! Vote Martin Peters :-D #stackoverflow #soelection
 
@Kevin Thanks :)
 
Otherwise it's ambiguous in the same way "ten miles towards London" doesn't give you an exact position
 
@MartijnPieters HUH! No Margin?
The most famous mis-spelling
 
4:58 PM
@BhargavRao Ask Jeremy; he created that message.
 
A user dropped in the other day and called me Kiven or something similar. That was a new one for me.
The week prior I got a Kelvin, and I'm pretty sure it wasn't a joke
 
valutah instead of vaultah
 
Even my name is often spelt as Bharghav
 
Someone responded to one of my answers with "Thanks Konger!". It was interesting.
 
DSM
I've gotten DMS a few times.
 
4:59 PM
Apr 15 at 12:17, by DaSaDiYa ChaiTAnYa
okey kiven and jon clements
 
DMS... or DNS...
 
@DonkeyKong That's crazy, how can someone not know the famous Dankey Kang?
 
@MartijnPieters Uhm… that’s a fake, right?
 
@Kevin and their nemesis maria? :)
 
Mario and his brother, Green Mario.
 
5:01 PM
Rbrb guys, Goin out for lunch
 
@Kevin I'd die if I got called Dankey :P
 
@poke vote for me and find out!
 
I had something extremely interesting to say, but I have now forgotten it :-(
 
xD
(you know I already voted for you, @Martijn…)
 
5:04 PM
they regularly mispellz my name as MartijnPeters
:P
 
lol your dang name ... I still misspell it ... if its not mis-spelling the first part its the lastpart ...
 
@MarjtinPeters I'm so glad I voted for you!
 
You are all just being mean to me. All of yez are the first against the wall!
time for train travel.
 
lol i got sidetracked looking at the chat transcript... I havent been on codeeval for years ,,, its changed alot ...
I hjave 6 offers :P
 
5:17 PM
Umm... everyone should vote for me not @Martijn - I promise not to put everyone up against the firing wall! Vote for me and live! (or something cough)
 
"Vote for me and live!"
 
Everyone who votes for Martijn and Jon gets a cabbage. Everyone who suggests that the sopython slate is unfair gets their cabbage thrown off a cliff.
 
@DonkeyKong wow... that pretty much lines up as well... should have run with that from the start sighs
 
@JonClements oh for sure, it multiplies the intimidation factor.
 
5:24 PM
I did contemplate: "Vote for Puppy - else he'll come round and pee in your slippers"... but ya know... that'd have kept me busy for quite a while :(
 
If you're going to be a proper thug, you hire out. You need a squad of hit puppies.
 
If that tag line doesn't work, the next logical choice is "vote for me and feel the sweet release of death"
 
is it worth validating that an address exists?
 
http://stackoverflow.com/questions/29753487/text-file-interpretation
dupe
 
@corvid you mean email address or physical address? and why? tbh if you have to ask if its worth validating it probably isnt
 
5:27 PM
well actually, now that I think of it, I think it definitely does have to be validated... just not sure how that'd be done securely
 
@corvid carrier pigeon...
 
they never come back ;_; I thought me and carrier pigeons had something special
 
Stop pecking them?
 
Oh, so you are the source of my daily "fortune cookies with wings" snack!
 
@corvid What kind of address?
 
DSM
5:31 PM
Now I want to use the "share this question" tool! There's a turtle question, and we have a turtle expert in the room..
 
Vote for me and live (provided you spell my name right)
4
 
Meh, could be worse
 
Change the extension to .txt. Boom, now it's an easy file.
 
@QuestionC Physical address, as in street/city/state etc
murickah only
 
@corvid USPS has a web API for that. I worked at a company where we used some library to do the same thing (Geostan I think?)
 
5:36 PM
ah excellent, I didn't want to use google's api, thank you sir
 
The hard part is converting addresses to real addresses. Misunderstandings and mispellings abound.
I don't think geostan is free, btw.
Just saying, people out there do address verification for a living.
 
@DSM Hmm, I wonder if I should bother answering it now that someone else already did with a half-answer that says "I'll try to give you the proper solution", implying they haven't written it yet.
Meanwhile I have the solution in my copy-paste clipboard, ready to go.
Aaand now there's a second answer that has the solution I would have given. I guess we're done here.
 
@MartijnPieters Hang on hang on - you can't suddenly start stealing my genius new pitch! :p
 
Serves me right for wasting 31 seconds trying to figure out why setx wasn't working.
 
DSM
@Kevin: sorry to waste your time!
 
@QuestionC it's all good, all that's really important is security in this context and tbh don't fully trust google's api for geocoding/reverse geocoding
 
@JonClements Hey now, hey now, half that genius pitch is mine :P
 
@DonkeyKong good point... we'll both sue "Martin" :p
 
@corvid I guess I just don't know what security means. If you're worried about spies then maybe a paid service is for you. The USPS service goes over the internet too, it's just a web API.
 
Nah more worried about if the company would look at the data being put in, not so much a man in the middle type of thing
 
5:48 PM
In complete contrast to the torrential rain of this morning, the sun is shining brightly.
Crazy April weather!
 
Maybe your users will be willing to trade privacy for sweet autocomplete. =)
 
cbg
 
6:04 PM
@BhargavRao, strange, I can access argv using either method. (in regards to this comment)
Or are you saying only one way works when you use shell_exec?
 
DSM
shell_exec('TestingStuff.py'.$var1); looks weird to me. I don't know any PHP, but I wouldn't have guessed that style of interpolation would work.
 
hrmph... I wish there was an easier way to multi-subclass in JS like in python
 
@DSM looks more like it should be shell_exec("TestingStuff.py $var1") to me... or at least - there should be a space there :p
 
I think the dot operator can be interpreted as concatenation in some contexts
 
For strings it is, yeah
 
6:09 PM
But then it's "Testingstuff.pyargumentsgohere" without the space? Maybe?
 
DSM
I get that, but does it automatically introduce a space? .. but if it didn't, we shouldn't even have been able to run the Python code, unless var1 were empty, no?
 
Exactly what I was thinking.
 
@DSM nope you'd need 'blah '.$var1 no explicit space
 
cbg
 
wb @Bhargav
 
6:11 PM
Installing php now
 
DSM
So then the code will only work if var1 is empty, in which case we won't have sys.argv[1] defined.
 
sudo apt-get install php5
:D
 
I think we're putting a lot of effort into this on behalf of someone that unironically says "please write exactly how the code would be"
 
DSM
sh: 1: TestingStuff.pyhi: not found
It's always vaguely reassuring when you find your instincts hold in a new domain.
 
Aargh! The space
 
6:13 PM
wb @Carsten
 
cbg!
 
DSM
Cabbage for Carsten.
 
@JonClements Need salad for welcome back
 
@Bhargav I think re-cbg suffices for that...?
 
asparagus grows back 7 times in one year
but isn't really great to write
 
DSM
6:15 PM
Plus asparagus already means something..
 
oh, sorry, still not fluent in salad
 
@JonClements Not that bad. But sounds more like a standby
While the real word is still being discovered
 
@Bhargav well... language has evolved over millennia... we can't rush these things :)
 
DSM
@Carsten: heh. Some people, like Kevin, don't speak any, although they can still understand a bit.
 
sauerkraut? it's edible, then you ferment it, then after a while, it's edible again
 
6:16 PM
I use a lot of context clues, mostly
 
Strangely I'm getting errors with this answer for that php stuff stackoverflow.com/a/29755239
 
@BhargavRao Reminds me of Python's own subprocess.call, which behaves oddly if you try to pass command line arguments inside a single string.
 
The docs speak something of a safe mode php.net/manual/en/function.shell-exec.php
 
@BhargavRao What kind of error? Maybe if you add the appropriate shebang in the first line?
 
I wonder if shell_exec is allowed to take the PHP equivalent of a list.
 
6:19 PM
Ah yeah, godd ol' safe mode
 
We trying php is like a mechanical engineer trying to design integrated circuits
 
@BhargavRao I interpret that to mean that the function simply does nothing in safe mode, in which case you would see no error from Python at all
 
DSM
It works for me.
 
Or PHP would crash with "can't call exec in safe mode" or something
 
sh: 1: test.py: not found
I named the file test.py
 
DSM
6:19 PM
@BhargavRao: probably you want ./test.py.
 
sh: 1: ./test.py: Permission denied
somewhere near
 
@BhargavRao PHP's "safe mode" is a configuration option mostly useful for shared webhosting. It disables some functions and puts some restrictions on others in order to try and prevent major damage: php.net/manual/en/features.safe-mode.php
 
DSM
Add the execute flag.
 
Yeah, doin that
 
@BhargavRao That includes running arbitrary commands using shell_exec
 
6:22 PM
Carsten, you know PHP?
 
yep
 
Hey guys, quick question about email formats
 
Ask
 
(typing)
 
DSM
You have thirty seconds. After that we'll kickmute you. Tick.. tick..
 
6:23 PM
Did you just type "(typing)" to emulate the impression of a status update tellung us that you're typing?
 
Using the smtplib, and so far all is well except there seems to be indents in the email (I suspect because of the indents in the code?), and the subject line is also blank
 
Downloaded learn PHP in 5 minutes. I'll be a PHP wizard soon
 
lol jokes on you the first kickmute is 1 minute
Or 30 seconds? Either way I'd be back :D
 
DSM
D'oh! Foiled again.
 
Lemme get a snipped without content I can't show real quick
 
6:25 PM
@BhargavRao You'll love the weak typing, the inconsistent standard library naming and all the dollar signs.
 
message = """From: Materials <materials@derp.org>
To: {}, {} <{}>
Subject: subject line

some thank you message here

Sincerely,
Some Person

Invoice Information:
{}
""".format(l,f,o,data)
Now this message string is 4 tabs deep because loops and checks. Would that contribute to some of the lines having indents in the sent email?
And that subject line isn't showing up either. It just says "(no subject)" in my email
 
@SterlingArcher yes, you need to unindent all those lines. They don't have to match the indent of the rest of the code:
 
Are multi-line strings exempt from the tab rule?
 
Nope
 
if foo:
    while bar:
        with something:
            message = """\
From: Materials <materials@derp.org>
To: {}, {} <{}>
Subject: subject line

some thank you message here

Sincerely,
Some Person

Invoice Information:
{}
""".format(l,f,o,data)
The indent doesn't continue until after the string is closed.
 
6:28 PM
ahhh like that
 
It is much better to put such long strings somewhere at the top level as a global.
 
If you want to keep the formatting all inside that loop indentation, you could use textwrap.dedent.
 
@MartijnPieters that's a good idea, to prevent tab ugliness.
 
You can also use textwrap.dedent() to remove the indentation again, but not having the huge string in your business logic is better still.
 
DSM
It's always fun to watch people discover textwrap for the first time. So handy.
 
6:29 PM
@Carsten heh, yes, I just looked that up too.
 
@MartijnPieters Yes, yes, a thousand times yes. Put the strings in a DB, or config file, or whatever.
 
@MartijnPieters I knew I voted for you for a reason <3 Thanks for the tips!
It works perfectly now
 
I think I might be doing something very wrong with NoSQL
 
@Carsten Yep. It looks interesting.
His answer is wrong actually
 
DSM
6:36 PM
@BhargavRao: what makes you think that?
 
shell-exec actually is redirecting python's print output to some unknown place
I commented to clarify
Oops, my bad. the output is redirected to shell-exec which returns it
 
DSM
Eh? shell_exec captures Python's output and stores it in $result.
 
He clarified
Yeah understood that now
But PHP's documentation is a little not up-to the mark
Tis not as good as Pythons
 
what do you mean? I always though php had excellent documentation ... (granted once i found python i have completely stopped following php(so its been 5 years or so at least))
 
You must have been holding the whole thing together, then.
 
6:43 PM
I like the "User Contributed Notes" section there
BTW, cbg @Joran
 
compare and contrast
http://php.net/manual/en/function.shell-exec.php
https://docs.python.org/2/library/subprocess.html#subprocess.check_output

seems like reasonable documentation still ... (I do like pythons slightly better now... but php docs tend to have more examples (ie close to 100% of the functions))
 
Python's documentation is more colorful.
 
Im not a huge fan of php ... but i do feel it has a somewhat undeserved bad rap
it has very very low entry requirements ... which leads to new programmers writing in it...which leads to bad programmer mistakes
we see lots of python bad programmer mistakes too
hell we sometimes still make them :P
 
I once advised a guy not to use list as a variable name and ended up using it in my answer!
o|
 
but its very easy to pickup and go and develop a website with some cool features even if you never programmed before ... it also is part of the default stack installed on 99% of machines so you dont have to deal with apache or wsgi at all ... it just works.... where with python its easy to app.run but for a novice setting up apache/nginx/wsgi/uwsgi can be a tricky thing ...
but ive never heard of anyone doing a desktop app in php ... and its pretty rare to hear about a command line interface script even
that said php has lots of uglyness too and wacky naming stuff ... huge polluted namespace...etc
 
6:52 PM
PHP is actually easy to learn I guess
I've to start
And Joran, do you have the question where me, you and Martijn had a debate?
Twas on JSoN dumps
I had used eval for that
:D
Dear @FranciscI.B It is not according to the rules that you post your question in the chatroom once you post it on the main site. Wait for a few days, if u don't get any response, then post it here
 
uuuuh
 
yes sir, i will delete ths message. sorry
 

« first day (1647 days earlier)      last day (3309 days later) »