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

16:00
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.
16:02
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.
16:06
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
16:11
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
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.
16:24
Ask it rightaway
Don't ask to ask
I don't see a question mark yet ;-)
DSM
DSM
Tanj. #heinlein
Cabbage All.
cabbage
@DSM Yep! More votes means it has helped many. Accept means it has helped the OP
@abhi Cabbage!!!
16:25
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
DSM
16:26
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!
16:28
New Jurassic Park trailer. squeal
No words from J in salad! J protests
DSM
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.
16:29
All seasons in one #swag
@Ffisegydd Where are you located?
@DSM, I solved my question. So no need to ask it. :)
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.
16:32
@Kevin we're sending our teeth next ...
:-B
@ZeroPiraeus Do you have any left yet? :P
DSM
DSM
Syntaxes, I'm pretty sure.
Syntaces would be great if true.
16:34
Syntaxen?
Many Syntax!
DSM
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
DSM
Could be there as an acrostic, I guess!
16:36
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.
DSM
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
16:40
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.
16:44
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.
16:45
@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
16:48
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
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 :)
16:49
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.
16:50
Boanthropy is another word not to be found in your ordinary dictionary.
DSM
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
16:51
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?
16:52
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
16:54
@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
16:55
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
16:58
@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
DSM
I've gotten DMS a few times.
16:59
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.
17:01
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…)
17:04
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
17:17
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.
17:24
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
17:27
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
DSM
17:31
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?)
17:36
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
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
17:48
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
18:04
@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
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
18:09
But then it's "Testingstuff.pyargumentsgohere" without the space? Maybe?
DSM
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
wb @Bhargav
18:11
Installing php now
DSM
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
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
18:13
wb @Carsten
cbg!
DSM
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
DSM
18:15
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
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
18:16
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.
18:19
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
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
DSM
18:19
@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
DSM
Add the execute flag.
Yeah, doin that
@BhargavRao That includes running arbitrary commands using shell_exec
18:22
Carsten, you know PHP?
Hey guys, quick question about email formats
DSM
DSM
You have thirty seconds. After that we'll kickmute you. Tick.. tick..
18:23
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
DSM
D'oh! Foiled again.
Lemme get a snipped without content I can't show real quick
18:25
@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.
18:28
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
DSM
It's always fun to watch people discover textwrap for the first time. So handy.
18:29
@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
DSM
18:36
@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
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.
18:43
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
18:52
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 (3526 days later) »