« first day (1763 days earlier)      last day (3408 days later) » 
01:00 - 15:0015:00 - 00:00

01:38
cbg -- anybody here?
01:57
define here :D
It's too late for tough questions like that. So I'll go with a simpler one -- do you thrive on 6 hours of sleep a night? `cause you seem active early and late...
define thrive
Tough audience tonight.
My first "question" on SO was a meta question. It immediately garnered 10 upvotes because it struck a nerve, and 5 hold votes because it wasn't really a question.
Fair enough. So I made it a question and someone else immediately edited it to remove the question. Go figure...
Amusingly, the one (highly regarded) answer is by a guy with twice the combined rep of all the hold-voters.
You should add formatting: its gotten long and hard to read with all the edits
Yeah, that's why I put the question up front. Not sure what the formatting should look like, though -- it's all English.
02:09
also adding a heading like "Question is:" could make it clearer
html formatting
I guess I should read up on the markup.
whoops, wrong bookmark
It looks like I could put <!-- language-all: lang-none --> at the top of the post, and then indent special things, maybe...
no, its hard to find but there is a markdown/markup language for formatting posts on SO
Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor. == History == John Gruber created the Markdown language in 2004 with the goal of enabling people "to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid XHTML (or HTML)”. Taking cues from existing conventions for marking...
That has some good examples but can't find the link for all markdown allowed in SO
Yeah, maybe I could put question and background sections, but I'm not sure that would really be any better. It's dense, but that's because there's a lot of words, and that's because the original was obviously too terse for some people. They'll complain anyway, but what you gonna do?
I'd love a bit more separation before the background, if it was easy to do in an unobstrusive manner.
02:24
I just like headings
probably an academia hang-up from working on too many papers
02:43
note: I actually find your question interesting but it is hard to follow (particularly as it took me a while to figure out what type of advertising bonus some company would get from editing posts)
okay, that I can understand much better
Do you think it meets the guidelines to be taken back off hold? I don't know anything about stackoverflow yet, much less meta...
Well, I'll just take a wait-and-see approach, then. Thanks for looking it over; I agree it looks much better with headings (partly because choosing them made me organize the text more logically).
On a much more important issue, I just received my bronze Python badge. I shall wear it proudly.
I'd vote to reopen if I saw it in review/had that privilege. Also, congrats on the badge.
03:27
I voted to reopen. cheers.
Good night
Thanks and rhubarb to all.
 
1 hour later…
04:48
got a root server for my dev efforts.
42 € / month for server HW including KVMoIP, 32 GiB ram, 4 core processor, HW raid with 2x2 TB magnetic disk
on AWS even the cost of disk space would have been fivefold compared to that price
 
1 hour later…
06:21
Cabbage people
cbg pups
07:12
cabbage all
Cabbage!
07:39
Hey up all
heya
morning :)
07:55
Cbg :)
More random downvoting. Great start of the day.
((dt.Field<string>("Name") == "Rojer" ? "NW" : "India")=="India") ? "918956" : "0456"
^ that check is amazing…
heya @Ian
if (boolValue.toString().length == 4) {...}
4
\o @jon - you well?
@Ian same old mate - yourself?
07:59
@bereal Nice.
@Jon well thanks, just started new job on Monday :)
How ya finding it?
was at dailywtf, as far as I remember.
Yeh it's going well thanks, team size of 2 which is very new to me, but I like doing stuff across the stack, so hits the spot
Small teams (especially when you get on) are great
08:04
Well as of now I am a team of one :P
@bereal Works great with vrai and faux :)
08:49
mais oui! Bonjour, mon petit choux
Or, cabbages
How's life this fine morn? Drizzly here, but I feel strangely upbeat
Hey - don't knock being upbeat even if it feels strange!
Indeed not, it feels good :)
I think it is seeing the end of a number of projects on the horizon. To new opportunities!
09:02
cbg @holdenweb
cbg @JRichardSnape
@bereal [facepalm] What would they have done if "true" and "false" had been the same length?
@holdenweb had fun with a debugger :)
cbg @Martijn
hey there @Boni
09:18
cbg
wb @Bas
09:58
Got my first project \o/
D3.js :D
It's built on a java and angular framework, but D3! Make the pretties!
10:21
Love d3
enjoy :)
10:32
for the uninformed, d3?
That sounds pretty funky from the tiny description and visuals
@Ffisegydd well - there needs to be more than one Mike Bostock - go forth and prosper! :p
I could go tell you what I was doing,but then I'd have to kill you inform my supervisor that I'd disclosed company confidential information.
@vaultah done
also done - what tags are you going through? :p
This search currently
@vaultah wpf? More like wtf
@vaultah You are a brave soul, going through that search
10:51
:D
In other news, I've been learning how to evolve an open quantum system using python, rather than doing my real work. Oops
@vaultah you might be happy coordinating with the close vote room on some stuff - they're teched up and savvy enough to coordinate efforts to closing/editing/burninating kinda thing
bah - deleted the Q - not needed anymore
that's an awfully old thing lol
yeah - might be an idea to take these to the close vote enthusiasts. I think I managed to sneak in a flag before @jonc smote it with his moderating sword. All helps keep the ratios up :)
11:00
umm... probably should have left a moment for flags... but if it's been drawn to my attention while "doing the rounds"... click and move on
and yup JRS - your flag snuck in there :p
I know :)
morning @AaronHall
good morning!
@JRichardSnape wrong flag though - should have used NAA instead
Trying to outdo ninja puppy speed, I'm gonna give myself some leeway. Surely both apply - I couldn't have salvaged that in any way...
@bereal Its been 3 hours and few of my friends are still trying to figure out what that code does :-/
11:04
yeah... was just going to say - in this case - it's valid
@thefourtheye as long as it's x = 1; y = 2; z = x+y and they're scratching their heads over "now - what's z?" :p
@JonClements maybe you're right... I hang out in the Tavern, but I should consider that room too
@vaultah they're a friendly bunch - I hang out there a fair bit these days
@JonClements tell me about your debugging adventures
user559633
Greetings!
user559633
11:19
Morning @AaronHall! Did you see my email?
@holdenweb Better question to a nuppy would have been, tell me about your decatting adventures :D
@holdenweb I'd rather not... I'm still on anti-depressants and my shrink isn't sure if I'm out of the woods yet :p
@JonClements :). It's Friday. I'd recommend alcohol, even though it's a depressant
user559633
Xanax martinis
Although in Portland I'd have had a different prescription ;-)
11:22
@vaultah and that Russian link got accepted.
Ah, it's self-accept.
d'oh.
FWIW the question is close-worthy
Had to leave him a comment, hope, didn't make any bad mistakes in Finnish.
@bereal all communication on SO should be in English
Why are you even leaving a comment in Finnish when the post is in English anyway?
@JonClements As long as his link was in Russian, I could not resist.
user559633
@tristan :) I criticise nobody...You have no better idea
irony bypass?
user559633
I criticise[sic] nobody. Y are u using this library?
user559633
I can tell by your answer that you have no idea what the problem is -- even though you described why the error is happening, where the error message is coming from, and offered a solution.
The indignation of that answerer amuses me. And the question as the OP is basically advertising that they've been hammering google as well.
BTW - you mention Flask in your answer. Is that a typo - I presume you meant requests
user559633
Yeah -- google is pretty good about saying "yeah no" and rejecting automatically.
user559633
Typo! Too much flask lately. Thanks!
yep - I've been on the end of Google's "yeah - we're not going to talk to you any more" policies in my more naive days
user559633
A dev at a company I work(ed) for was scraping google results to show SEO changes and the entire office started getting captchas. It was pretty hilarious.
whistles
Our entire University presents 90% of its traffic through only one IP to the outside world. That's all I'm saying.
user559633
Hooray for NAT!
11:46
bah humbug... no one's going to walk to the shop and buy me some tea are they?
morning everyone. I'm looking for a good set of bluetooth headphones, anyone find any they really like?
@JonClements I'm just going out for lunch and a coffee. I'd bring you a tea back, but it might be a bit cold once it reached you from Leicester
where are those Amazon delivery drones when ya need 'em! :p
I wait for the day when Amazon Drones will become so accurate that they'll just drop your package on you while you're out on a walk
And that will also be the day people stop ordering heavy things on amazon
@tristan I saw your email, I'll respond this weekend.
11:54
cabbage
cbg
my friend founded a startup recently in Cali
I have a little Unicode problem. I don't know how to make this code work identically on Python 2 & Python 3. I presume it involves using bytes(), but I don't have Python 3 to do any experimenting with.
their biz: sell medical cannabis in internet, payment with bitcoins and delivery using drones
@AnttiHaapala That sounds very Californian. :)
11:58
in Finnish, pot is also called pilvi, or cloud, so that it is very apt to joke that they've taken the cloud business to next level
lol
If someone can suggest a simple fix for my Unicode problem I'll be very grateful. Or if you want to write a better answer I'll delete mine.
@PM2Ring the password returned by getpass is already unicode as decoded with system encoding
easiest python2.6+ hack would be to guard the .decode with
if isinstance(p, bytes):
@AnttiHaapala Thanks, Antti. I guess that will stop the TypeError from being raised because the offending code will never be executed on Python 3. Is that right?
yes
but let me test
Hello guys, can u check my post please.
http://stackoverflow.com/questions/32007092/python-2-7-why-python-encode-a-string-when-append-in-a-list
12:11
@AnttiHaapala Ok.
Weird question, if you're using a hashbang to make something executable, can you also restrict it to a version and pass command line options?
user559633
@corvid 'Hashbang' (shebang) doesn't make it executable. But yes, see examples en.wikipedia.org/wiki/Shebang_(Unix)
Yeah but it says what to use to run it, doesn't it?
shebang just says what command to execute the script with - it must already have execute permission. IIRC You can pass a single additional arg (apart from the script name which is passed automatically).
Ah okay. I am trying to use EMCAscript 2015 for a makefile, need to pass the --harmony tag to make that work. So #!/usr/bin/env node --harmony should work? What if it's iojs?
12:16
@Wonka it has to do with Cyrillic.
Ah there's an answer already.
me slow :'(
@bereal Im trying to encode / decode over 9000 ways. Didnt solve it already
Will the __file__ attribute change if you imported the file?
@Wonka could you share an url you're fetching from?
@bereal catalog.jubana.eu/en/starter/243708601 in the reference numbers tab (in top button), is the third reference my problem
@AnttiHaapala And I guess I don't need to worry about using codecs, I can just do
p = getpass()
if isinstance(p, bytes):
    p = p.decode(sys.stdin.encoding).encode('utf-8')
12:29
can someone help with question stackoverflow.com/questions/32008986/…
Tried this re.sub(r'[^a-zA-Z0-9]'[^a-zA-Z0-9]',"\"", text) by @raniz. Doesn't work
I am stuck
?
hmmmmm
@AbhishekBhatia just .replace(" ' ") and .replace(' "' )
and you will replace " and '
Sry, I dont' understand Wonka. Can you please modify the code.
sorry, .cannot do here
you want to replace simple quotes by doubles?
so do a .replace(" ' " , ' " ' ) #Without spaces, i wil write --> .replace(doublequote simplequote doublequote , simplequote doublequote simplequote) cannot write better
12:37
@PM2Ring yes but now it will be utf8 in python 2 and unicode in python 3
@AbhishekBhatia use lookaheads and lookbehinds:
@AnttiHaapala How about
if isinstance(p, bytes):
    p = p.decode(sys.stdin.encoding).encode('utf-8')
else:
    p = bytes(p, encode('utf-8'))
yes, but it is still worse than just:
if isinstance(p, bytes):
    p = p.decode(sys.stdin.encoding)
p = p.encode('utf-8') # :D
Good point. :)
getpass won't return bytes in python 3
and in 2 it will return str which is an alias for bytes.
py2 unicode and py3 str will still have .encode that works alike.
I also condition n't 'll etc.
please check the questoin
12:42
please explain better
@AnttiHaapala Yeah, I knew that much. :)
@AbhishekBhatia actually now that I thought of it, you'd rather want to use a function with re.sub
so you can do:
I want to replace all single quotes with double but not the ones like don't I'm
@AbhishekBhatia There really isn't a simple way to do what you want that will always work.
@Wonka please look at stackoverflow.com/questions/32008986/… it is tough to explain here.
12:46
Then don't
text = "This is some text with wrong quotes, like 'this' and 'that', but we won't replace it in all places"
def replace(match):
    before, after = match.group(1), match.group(2)
    if before.isalpha() and after.isalpha():
        return match.group(0)

    return '%s"%s' % (before, after)

print(re.sub(r"(.?)'(.?)", replace, text))
the problem is that regular expressions are not very good for this...
@AbhishekBhatia: I guess it's a bit late now, but you really shouldn't link to or discuss your own fresh questions here. See sopython.com/chatroom
Oh I wil ask again.
@PM2Ring why is that closed as too broad?
@vaultah I can answer that in 1 line :P
@AnttiHaapala see the first revision
12:51
It's my fault I posted in hurry at the start.
@AnttiHaapala if you can still help please comment at the question.
Cabbage.
re.sub(r"(?<!\w)'(?!\w)|(?<!\w)'(?=\w)|(?<=\w)'(?!\w)", '"', text)
@AnttiHaapala Don't ask me! I saw it, but I didn't vote on it.
An example for your question with Antti's suggested reges giving the output:
>>> text = "The dog didn't say 'hello' it said 'woof'"
>>> re.sub(r"(?<!\w)'(?!\w)|(?<!\w)'(?=\w)|(?<=\w)'(?!\w)", '"', text)
'The dog didn\'t say "hello" it said "woof"'
there are 3 cases: ' is NOT preceded and is NOT followed by a alphanumeric character; or is not preceded, but followed by an alphanumeric character; or is preceded and not followed by an alphanumeric character
so it would work correctly with Yrjö's or 90's in Python 3 ;)
12:55
@AnttiHaapala This is amazing!
Thanks!!!
thinks about culturally specific representation of the noise of a dog barking
Also for explaning it!
@JRichardSnape Thanks for the example!
Looks like I'm too late, but have a terrible hacky solution:
c = "_" #placeholder character. Must NOT appear in the string.
s = "don't tell me 'it'll all be ok', I'm not falling for that"
assert c not in s
print s
protected = {word: word.replace("'", c) for word in ["don't", "it'll", "I'm"]}
for k,v in protected.iteritems():
    s = s.replace(k,v)
s = s.replace("'", '"')
for k,v in protected.iteritems():
    s = s.replace(v,k)
print s
@JRichardSnape in Finnish it is "hau", in Vietnamese it is "gâu"
But what is it in Salad?
13:02
cabbage
Brian Regan has an amusing stand-up bit about how "bow wow" isn't remotely similar to what dogs sound like.
Thanks @Kevin! but there other words like won't also. @AnttiHaapala solution sounds better.
I wanted to give a Youtube link, but the only extant video is one of those "recording of a television with a dinky phone camera" things
@AnttiHaapala That doesn't work on words that end in an apostrophe, i.e. most possessive plurals, and it also doesn't work on informal abbreviations that start with an apostrophe, eg 'em, which was mentioned in Raniz's 2nd comment.
obligatory
@PM2Ring true :P those cannot really be matched
13:05
My solution can match 'em :-)
@AbhishekBhatia ^ see @PM2Ring above
for those you'd need special rules...
@AnttiHaapala That's why I said "There really isn't a simple way to do what you want that will always work". :)
Although there are doubtless going to be corner cases like she said, 'em gave me a dollar' which isn't going to be distinguishable without human-level NLP
I took 'em from my parents' home
@AnttiHaapala And even with NLP, that one's ambiguous. "em from my parents" could be the name of a musical group, and you're their driver. :)
13:10
Heh
I suppose Kevin's "whitelist" dictionary approach could deal with lots of cases in combination with antti's regex, but there will always be the exception. As soon as you need context, you're in hot water. But that's just Hear'say.
The image above is a cute little "paradox" that I first learned about via Martin Gardner. It was in an April column of Mathematical Games in Scientific American. It "proves" that 8x8 = 5x13.
@PM2Ring I love that puzzle
I remember this puzzle. The secret is, hover for spoilers
Or that is possibly the solution for a different puzzle involving rearrangement of shapes.
13:14
well - it's not how I'd describe the secret. I'd search for clues with my magnifying glass in true detective style
You're correct, Kevin. Also, Fibonacci right triangles look similar, but they aren't really.
@JRichardSnape You misspelled heresy.
@PatrickMaupin my allusion was heretical if you're a music lover, I'll give you that
@PatrickMaupin :)
I seriously don't get this guy's code ._. it's not that it's complicated, it just feels like "but... why?"
13:17
This code lacks... Pizazz.
@PM2Ring I've seen similar but so that there was a gap of 1 square in the other
Now post the gif proving that you can have infinite chocolate.
By carefully cutting the rectangle of your candy bar along certain diagonals and rearranging them
I'll put the SVG I used to create that image up on pastebin so you can see the trick.
@Kevin actually neither of those pink is
13:21
@Kevin Very cute.
World hunger solved! New problem: world diabetes.
8
So in my image the magenta "triangles" (the top polygon in each group) are really quadrilaterals. If you turn them into triangles by remove the last coordinate pair in the points lists you'll see that in the 8x8 square the purple triangle overlaps the red & blue triangles slightly, and in the 5x13 rectangle there's a narrow gap between the purple triangle and the red & blue triangles. The overlap & gap are both ½ a square unit.
Total true area = (8*5 + 5*3 + 3*2)/2 + 5*5 + 3*3 = 64.5
13:40
So close, rep's up to 4,993 ...
user559633
@holdenweb Oh would you look at that...one of your quality answers attracted a vote
The secret of the candy bar gif is: the two slant-cut pieces that move around, subtly grow taller as they move.
@tristan You sly dog! Thanks, now at 5,013 :-)
@holdenweb has the happies
user559633
You're a bargain at 5053
14:02
@holdenweb now you get to review tag edits - have fun :p
user559633
The prize is a box of dead bugs
@holdenweb roll on 10k!
(that's when it starts getting fun)
I was also told so :D
@thefourtheye well - you've out-repped me - you bad bad bad puppy
@JonClements But you have out-diamonded me - so we are even nuppy :D
14:05
your fault for voting for me :p
And 10,000 others as well, I guess ;-)
half that would have been nice - but nope
In one of the rounds you and Martijin had close to 10k votes, right?
14:21
nope
anyway - 3rd in primaries, 5th in actual (so - last mod you guys actually wanted - but I'm here - so live with it:p)
Then I am very bad at keeping records :D
@JonClements Well by current standards that'll be in about five years
Flaggin link only == NAA or == VLQ? I really cannot find consensus amongst the meta posts (of which there seem to be hundreds)
Wait what!? That'd be 35 years of my life time!
What say you, Jon? (Seeing as you're around)
DSM
DSM
14:27
Cabbage for all.
cbg DSM
@JRichardSnape VLQ is mostly a request for immediate deletion
cbg @DSM
@JonClements So use NAA to push it to a review queue??
(Assuming of course, in my honed judgement, it could be approved and doesn't require immediate deletion)
I want to cause no or minimal moderator hassle
14:29
the queues have been changed slightly so less comes to mods now
Hi all
I want to add-on extension to Firefox using Selenium, but I don't want the first page that shows add-ons are installed come up. How do I prevent the first pages to show up? Thanks
Hi @The_Diver. You are in the Python room :-)
Yes a
I am using Selenium with Python
Nevertheless, while we might be able to tell you about driving Selenium with Python we aren't experts on browser manipulation. Is there a Selenium room? Otherwise, perhaps ask somewhere where they deal with browsers
Preferably Firefox
Thanks
14:42
And especially if you do decide to ask here, please provide all details, including what code you have so far, etc.
In fact, it wouldn't be a bad idea to ask that as a question, though you would need to provide rather more detail to make the issue reproducible
An SO question, I meant
“Post Deleted by Community♦” happens when the question is closed and didn’t received upvotes, right?
74
A: Turbocharging the Roomba: solutions for premature deletion

Shog9The following changes are live now: Deleted questions will be visible to their authors, regardless of those authors' reputation. They won't be linked to anywhere† that they're not already linked, but if someone knows where to find their question and it's been deleted, they should always be abl...

DSM
DSM
True story: because of an idea sparked at the monthly office pub visit, I stayed up late last night writing the first two scenes in a medical-themed screenplay starring lightly-disguised versions of current and former employees. #friday
14:54
Pretty cool.
I'm jealous of anyone that can string together more than 150 characters in one sitting.
user559633
I live my life 140 characters at a time
user559633
2fst2 #furious
DSM
DSM
It went over pretty well, although I think people were more impressed that I'd actually done it than with its quality (dancing-bear rules.)
Yes, that is the basis of my impressed-ness. Sorry not sorry.
DSM
DSM
Just for that, no cameos for Kelvin.
14:57
That's fine, I'll just add him in when I write fanfic of your friendfic.
01:00 - 15:0015:00 - 00:00

« first day (1763 days earlier)      last day (3408 days later) »