« first day (2327 days earlier)      last day (2615 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
yup;)
 
I've developed a new problem though
Some pictures aren't loading at all
 
Here in chat? A ctrl+f5/ctrl+shift+R reload usually fixes that for me
 
Perfect
 
DSM
Orange you glad that's all over? #yeahiwentthere
 
I feel a little empty now, like how i felt when i finished breaking bad
 
12:09 AM
start Dr Who from the old original episode 1, it'll occupy you for a while
 
I think i should go to bed, that was just an awful mistake
Apparently Narcos is pretty good
 
cbg
 
cbg
 
cbg
I've decided to learn AI.. But I don't really know what defines an AI .. Guess i'll start from the beginning
 
If its eye glows red and it's pointing a shotgun at your face, you've found one
 
12:22 AM
I'll be more shocked with how it found a shotgun
 
spoiler alert: like this
 
Or maybe like this
(I found that cat at Walmart the other day)
 
1:15 AM
rhubarb
 
@MooingRawr Have you tried WinPython? No install necessary. I actually used to stick that on a flash drive when I worked at SecurityTheaterCorp
 
1:41 AM
cabbage
 
 
1 hour later…
 
3 hours later…
6:25 AM
cbg
 
7:10 AM
cbg
 
Cabbage.
Either there are a bunch of people with the same homework, or one person making multiple accounts. This question is extremely similar to this now-deleted question and the one Tigerhawk linked in that one's comments.
 
7:54 AM
what do i study first "Pattern Classification" by Richard o Duda etc OR "Statistical Pattern Recognition" by Andrew R.Webb etc
 
8:15 AM
cbg
deployment 101
if you ship your program without testing it first, the program will come back with all the shitty code you've build multiply by the number of site you have all over the world
-_-
how to start the day
t-shirt of the day
 
cbg
 
o/
 
9:29 AM
Cabbage!
 
Cabbage, poke (et al)
 
Hi @BhargavRao I suspect that the OP of the question(s) I linked above may be attempting to get around a question ban.
Greetings, JRS.
 
@PM2Ring Mmm, hasn't quite got the ethos of leaving the question there and improving it...
 
@PM2Ring checkin
cabbage prof and poke \o
 
@JRichardSnape That'd be bad enough, but doing it with 3 different accounts makes me very suspicious, assuming it is, in fact, the same OP.
@BhargavRao Thanks. I know you like chasing up that kind of stuff. :)
 
9:41 AM
@PM2Ring yup, learning the art of larsoning from the master :D
 
:)
 
I love it when people post stack traces and leave off one important line at the beginning…
 
I love it when people post code after a list so the code block gets absorbed into the list, and after you fix it for them (and leave a relevant edit comment) they revert your edit. stackoverflow.com/questions/42504643/…
 
@PM2Ring most of those get the Cleanup badge.
 
@PM2Ring "OTOH, if the input file is huge it will consume an awful lot of RAM" - you're showing your age again, PM2 ;)
 
9:51 AM
@BhargavRao Ah, right. I forgot about that one.
 
RAM, shmam - my file's not 2GB...
:D
 
@JRichardSnape True. But I still find it hard to waste RAM without good reason. ;)
 
Quite right too - only teasing
It'll only come back to bite them when they're running the program to process thousands of CSVs in a web app.
 
Or something like that. My philosophy is to keep the footprint as small as is practical, just in case the user wants to run multiple instances simultaneously, or has other resource-hungry things running as well.
 
10:15 AM
@AnttiHaapala Would there be any benefit in using a memory-mapped file for this, assuming their system can handle the required address space? stackoverflow.com/questions/42504567/…
 
10:35 AM
@PM2Ring would
@PM2Ring stackoverflow.com/questions/28643919/… this, but I'd just look for xxx
this could be of use as well... but...
probably slower than using regex
 
11:03 AM
cabbage
 
 
2 hours later…
12:43 PM
Someone may have shared this content a while ago, but since I haven't been hanging out in here much recently, here you go:
 
1:03 PM
A lot of people contested Linus' views on SHA1's properties and its usage in Git, mainly saying that with those arguments CRC would've sufficed. Would love to hear some knowledgeable takes on that.
A lot of people on HN, that is.
 
FWIW ;)
I'm currently reading about how Amazon Echo queries are protected under the First Amendment (pdf)
surprisingly easy and informative read
> The reason for this heightened standard is that government requests for expressive
information, by their very nature, chill the exercise of First Amendment rights. As another court
explained, the knowledge that government agents are seeking records concerning customer
purchases of expressive material from Amazon “would frost keyboards across America.” In re
Grand Jury Subpoena to Amazon.com dated August 7, 2006, 246 F.R.D. at 573. Indeed, “rumors
of an Orwellian federal criminal investigation into the reading habits of Amazon’s customers
That's the kind of juicy text found in the document
 
I could buy this for a bar night phone :D
 
Me too :D
 
though
better take care to not drop it inside a nightclub/pub/pizza/kebab parlor...
 
Also for hiking etc., if the batterylife is as promised.
The old Nokias survived a week long winter hike no problem.
 
1:19 PM
Any Mac people want to help this guy use pip properly? stackoverflow.com/questions/42509449/…
 
shrugs worked for me. Not sure what's up with that dude
 
Thanks, Wayne. My theory: they've somehow symlinked / aliased python3 to their system's Python 2 installation. :)
 
those kinds of people annoy me beyond anything...
"I still get an error"
then ffs why can't you tell what is that error.
 
@AnttiHaapala He's posted a pastebin link of the new error message. That error message is pretty cryptic...
 
Anyone here use flit?
 
1:30 PM
@AnttiHaapala It's not his fault that he's Danish. ;-p
 
@Zonear please edit the new error and new attempted things into your question instead. Additionally, the actual error, if it is shown, is above that line that you copied into the pastebin. The pastebin error is utterly useless. — Antti Haapala 11 secs ago
@PM2Ring nothing cryptic here, it is just last in the chain, there must be a compiler error when it fails to build an extension.
that's just the command that pip executes to install that module :(
 
@AnttiHaapala I was wondering about that, but I'm not familiar with how developer tools behave on Macs.
 
same as in linux
but I just guess you haven't seen these failures lately :d
 
I just expect Macs to do stuff in weird ways. :)
 
I hate SOD
 
1:43 PM
we all do
Notifications?
 
I sometimes get random notifications and then I look at it, and it turns out that it was an edit which just makes the entry worse
 
@PM2Ring see :P
just assume PEBKAC first
 
@poke it was approved unanimously, it can't possibly be bad
 
@AndrasDeak YEAAAAH, right.
 
@AnttiHaapala Looks like his system's missing (or misplaced) a vital developer tool.
 
1:46 PM
@poke see also etc
 
Wow, the UX is just terrible.
I wanted to revert that change, and entered a super long explanation, then clicked “create revert draft” and my reason was gone (no idea where it was put) and I would have to enter another revert reason there (for the actual edit). Meanwhile, someone else already created a draft to revert that and I’m interrupted in continuing.
 
@AnttiHaapala Done, hope this makes it a bit clearer — Zonear 7 mins ago
 
@poke you just did
 
Oh this all makes no sense.
 
how to tell nicely that it doesn't make it "clearer"
 
1:50 PM
 
table flip emote The UX makes no sense.
 
@AnttiHaapala "Thank you, but I'm afraid it still needs some work"?
or something
 
@AndrasDeak I mean it doesn't make "clearer" the fact that the compilation of an extension, it just makes it solvable.
 
*shrug*
 
is it poke, like the verb, or pokè, like the bowl of fish and rice?
 
1:52 PM
or poké, like the mon
 
@corvid the verb
 
@AnttiHaapala Hey, the poor guy is doing his best to respond appropriately to our comments.
 
at least he's trying not to be so Finnish this time;)
 
I am really Finnished now, because I want the hammer in and I've been reading C questions for 2 weeks.
 
I wonder how long it takes for all those people to migrate to
 
2:05 PM
I hope they never do
I rather hope they'd all switch to lace making as we say in Finland.
 
lol
 
@AnttiHaapala picard_facepalm.png
@AnttiHaapala Lace making may be a bit beyond them. I suggest finger-painting.
 
:P
sorry
 
Sep 10 '16 at 9:02, by PM 2Ring
Jan 13 '15 at 8:41, by PM 2Ring
One day, I won't be able to stop myself from commenting: "Perhaps programming is not for you. Have you considered finger-painting?"
 
"I rather hope they'd all switch to TRYING lace making as we say in Finland."
they come, post the question, never read any comments then 2 years later they make another account.
 
2:19 PM
morning cbg.
 
DSM
Morning cabbage for you as well!
 
random old git answer rep. I don't even remember giving git answers. But, hey. sure.
heya @DSM 😀
@DSM The Habs seem to like acquiring the less talented NHL brother. I think this is the third or fourth time they have done this.
Valeri Bure, Marcel Hossa, (someone else), and now not-the-good-Benn
 
DSM
I heard but didn't quite understand the trade-- are the Habs that desperate for defence? Benn & Pateryn seemed of comparable quality to me, neither of them great.
 
Yeah. I still don't get it either
 
"SO Documentation is just amazing" -- literally nobody, ever
 
2:28 PM
hehe -- literally nobody, ever. Seriously, find one. I dare you
 
DSM
SO Docs is amazing, said the Oracle to Croesus.
 
well, "amazing that somebody came up with it and somebody else went through with it and keeps going against all rationality"
 
cbg
 
cbg
 
SO Docs are awe some ful
 
2:43 PM
it's full of some awe
 
Oh hey - did anyone else see that now there's a $10 Raspberry Pi zero? With Wifi and Bluetooth, woo woo!
 
sounds great
 
But where can I actually buy that thing!?
(in Germany)
… especially without a kit
 
2:59 PM
we have rpi resellers even in Hungary
 
There’s just one apparently in Germany, and they only sell expensive kits
 
cheapest one is 25€ + 5€ shipping for some basic “essentials” set
 
Of which I need nothing…
 
3:01 PM
 
ask a sopypal to mail one to you, it doesn't have any Li batteries inside
 
though I am not sure if farnell is just wholesaler
 
@AnttiHaapala “Der Raspberry Pi Zero ist leider nicht mehr verfügbar”
(no longer available)
 
@poke they'll get more
 
they don’t even let me look at the product page though
 
3:02 PM
is it even available yet?
 
I got that message when I searched for pi zero
the old zero should be there at least
 
:/
but then 3 is much nicer :P
it is just that it is quite power hungry :D
 
I actually just want the smallest version possible that has Bluetooth and some sort of network connection
I want to build a mini server that allows me to stream an internet radio station to my bluetooth multi-room speaker system
 
don't all pis have ethernet?
 
That's the pi zero-W. But the Py 3 is faster
 
3:05 PM
Since the built-in internet radio streaming does not support streaming custom (i.e. paid) streams
@Wayne Exactly, that’s why I want the Pi Zero W :P
(I actually wouldn’t mind having to use a different platform either, so if you have a non-Pi chip I could use, I’m open for suggestions. Just need Bluetooth + Wifi or Ethernet)
 
It's kind of weird how we've gone into this explosion of cheap low-powered computers. It's like retro nouveau computing
 
and I am using Pi3 professionally only :d
 
they say you shouldn't rebase onto a public branch. I'm trying to understand this. Say I have me_dev and master. does this mean I should always rebase on master locally, and then push to origin/master? but me_dev shouldn't not even have an origin/me_dev?
 
which python version?:P
 
@AlexBollbach The rule is “never rebase already published commits”. Doesn’t matter on which branch those are. Just don’t rebase them once they have been pushed.
 
3:15 PM
ok. so let me run through this. i have master and me_dev. me_dev has 3 new commits master doesn't. master has 2 me_dev doesn't. I can do, git checkout me_dev. git rebase master. (then do i have to do, git checkout master, git merge me_dev, to do the fast forward part of the dance?). And then i can push to upstream?
 
                  origin/master
                     master
                        ↓
* --- * --- * --- * --- *
             \
              \
               * --- *
                     ↑
                  me_dev


$ git checkout me_dev
$ git rebase master

                  origin/master
                     master
                        ↓
* --- * --- * --- * --- * --- * --- *
                                    ↑
                                  me_dev


$ git checkout master
$ git merge me_dev
^ Like this?
Then yes, that’s perfectly fine.
Just don’t run git rebase on a branch that has been pushed.
 
DSM
That's impressively fast asciiartification!
 
@DSM Thank you, I do that kind of regularly
 
Yes you've done ascii art for me before when I was asking about git :)
 
:)
I believe Git is easiest to understand when you look at its history graph, so that’s why I always draw those
 
3:22 PM
I find that vim is pretty useful for ascii-ness. Is that what you use, poke, or something else?
 
notepad
 
@poke arguably because thats what git is is just labels on a history graph
 
not even a fancy notepad, just the very very plain Windows notepad.exe
 
well, stupid Python github, they want to have squashed rebased commits :D
 
wow. Impressive
 
3:23 PM
with linear history, so ...
hmm
 
@WayneWerner Absolutely, something that people should never forget
@Antti Ugh, squashing ._.
 
grokking that was one of my first fundamental breakthroughs in not breaking git repos
 
heh :)
 
DSM
About the only times I rebase these days are for squash-before-PR purposes. I think it was Fizzy who convinced me that destroying the history for no reason didn't make much sense, because it was easily ignored when I didn't care but very useful to have around when I did.
 
and learning that the reflog contained mostly the entire graph, including commits that had no names, was also useful in recovering broken repositories or stupid things I did.
it was surprisingly useless for a fellow co-worker, though, who managed to force push everything out of our repository, and then a different time completely obliterate all his things.
then again this was the same guy who, when learning to program in Java, created two new arrays - the new one of array size-1, and one a size of the current array, and then do this bizarre copy dance that would end out with his finally array properly sized. It was very strange.
 
DSM
3:29 PM
♫ grepped through the reflog ♫ for commits with no names ♫ it felt good to recover the main()
4
 
trying to think of what a bizarre copy dance would look like IRL
 
DSM
I'm imagining something like tutting.
 
@DSM ♫ in a reflog ♫ you can't remember your name ♫ for there ain't no one for to tell you your name ♫
I can never remember precisely because it was so bizarre
 
@WayneWerner That’s why I disable force pushing for every coworker except me when I have control over the repository… >_>
 
Hey I got a little regex problem again:
I is it possible to only capture the first group somehow?
 
3:32 PM
I get around it by being the only person in my office to actually use version control
 
like... I always want to say that he would like push values from one array onto the other, skipping over the element he wanted to remove, and then push from the new array onto the final one?
it was so weird!
 
http ://pythex.org/?regex=(%3F%3C%3D%5BfF%5Dollow)%5Cs*((%40%5Ba-zA-Z0-9%5D%2B%5Cs*)%‌​2B)&test_string=follow%40sebastian%40seb2%0Afollow%20%40sebastian%20%40lulsda3%20‌​%40mango%20%0A%40lol%0A&ignorecase=0&multiline=1&dotall=0&verbose=0
hmm what is wrong
 
just used fixed font
 
stackoverflow.com/questions/42512202/… resolved in a manner unlikely to help future readers
 
3:33 PM
He was also inordinately proud of his "code generator" that would spit out "thousands of lines". It was a template engine like cookiecutter.
 
reads like a story from dailyWTF
 
Well, whatever :P
 
Every day working there was a story from Daily WTF
we had our AES key - "999999999999999" hard coded into our client side application...
But wait - there's more!
 
The link I just sent. How is it possible to only capture the first group?
 
What is the "first group"
 
3:36 PM
I don't want to capture it all, and then print(something.group(0))
first match
 
We embedded MS Word into a Java application using an Eclipse COM interop... thing that was meant for short lived shells. Oh, IE, too. Anyway, if the history got too long it would memory leak and eventually just crash the JVM
so good
we also used Java to dynamically insert JS code into those pages, and then invoke the JS, because reasons.
 
though, their sha1hash doesn't match lol :D
 
Every day was an exercise in the lulz. We would find some new and exciting way that former developers literally did the wrong thing in every way.
 
dunno what's wrong, probably line-ending
ah :D
no now I get it :D
they have identical partial hashes hand identical merkle tree :d
 
3:40 PM
Like include a nightly-build version of some 3rd party dependency and then promptly delete the source and don't bother store the actual version number so we could never break that specific dependency
so good
 
@AnttiHaapala does that mean that the two files could be swapped and the original torrent file would gladly transfer the injected version?
 
DSM
@WayneWerner: having no dependants, I think there would come a day for me when I just said "Nope."
 
@AndrasDeak yes
 
reassuring
 
You can tell that life is going to be exciting when someone tells you, "Oh, those are the normal errors. That means it's going to start fine. It's when you don't see any errors that you know it won't start up."
4
@DSM I did, as soon as I got my offer letter from where I work now. Then our CEO accused me of "Taking my ball and going home", lulz
that was probably the best part
 
3:42 PM
hello. anyone know how to get rid of ^M characters? everytime i change file and do git diff i see it
 
@AndrasDeak this used pdf framing around the jpeg, just because...
it wouldn't have to do, they could have attacked jpeg instead
 
it is hiding like a rat
 
that would have been far worse!
 
@vinwin that's a carriage return, most likely
work with unix people
 
yes i read about it. but i'm unable to overcome it >:(
 
3:43 PM
did you also read about "remove carriage return from every file" or whatever?
 
@vinwin stop using MS WINDOWS. Solved.
 
i'm using linux
vim
 
so liquidate the one who's using ms windows
 
DSM
It's a bit finicky. Set your core.autocrlf appropriately for your architecture and then use cr-at-eol to tell it not to bother about warning you.
 
like... what ball? This is your company, you own all the software... what ball do I have? The balls to quit because when I showed you how to save literally at least 4.5 weeks of a valuable coworkers time every year, you were more interested in your iPad?
 
3:44 PM
@AndrasDeak yes..
@DSM I tried that . it made things worse
 
Antti's being lenient today, he's not suggesting nuking the whole floor, only the one individual using Windows.
 
that's because Windows is a garbage dev environment ;)
 
DSM
@vinwin: don't know what to tell you, then; works for me just fine, running nix in a mixed win/nix dev team, and debugging someone else's git setup remotely doesn't sound like much fun. ;-)
 
it literally started changing every cr to something else and my other configures would throw this error

./chkf: line 30: syntax error near unexpected token `elif'
'/chkf: line 30: `elif [ -f "$object" ] ; then
@DSM you can't as well. it's in a office n/w
 
Wow, that's impressive: javafind.net/…
 
3:49 PM
@WayneWerner [citation needed]
 
@WayneWerner Java, go home. You're drunk and repeating yourself.
 
duct tape champion of the day. My trunk stopped closing, so I wrapped duct tape around the entire trunk to keep it from swinging open until I got to the garage
They liked my work, so they took a picture of it too :P
 
the entire truck? Wow
I want to see the picture
 
@poke trunk, not truck
 
@poke "Antti Haapala, Stack Overflow Chat 2013-2017"
 
3:59 PM
Still impressive, though
 
Now I want to see a taped truck :(
 
DSM
As they say, if it can't be fixed with duct tape, you're just not using enough.
 
Works for me.
 
wow
 
yeah that, but imagine a boring sedan instead
 
4:00 PM
Impressive.
 
and instead of it physically falling apart, the trunk mechanism just won't work
 
duct typing
 
sure you've all seen this already but c1.staticflickr.com/9/8160/7214525854_733237dd83_z.jpg
 
DSM
For some reason I'd imagined idjaw driving a convertible, something to race on dangerous mountain curves with.
 
4:03 PM
@DSM When the kids get older, and daddy doesn't need to drive them around.
 
@AnttiHaapala nice
 
I knew that one
 
more refined version of Marcus' pic
 
and implemented. +1
 
The first ever PoC that looks exactly like the prod result
 
4:07 PM
thanks to duct tape
 
cbg!
Quick question, My dict is like d(a,b) = c. Now I want to iterate using for loop on each element like this: for key,value in dict. How do I do so?
 
How is your dict like d(a,b)=c?
I'm not sure I understand but you probably mean for (key_part1,key_part2),value in d: ... ...
 
I mean, like this: ratings[(words[0], words[1])] = words[2]
Ohk, I'll try that one. Thanks.
 
you can also drop the parentheses inside the dict assignment, it'll work implicitly
 
oh! Didn't know that, great advice thanks.
 
4:19 PM
no worries
 
I feel the need to point out that iterating over a dict will only iterate over its keys by default
Try changing in d: to in d.items():
 
Yes I am using d.items() only, ty :)
 
right, sorry
so for key_part1,key_par2 in d: ... it is
 
I'm not terribly fond of that design decision but I guess the language devs had a good reason for it
 
Our CEO is doing an AMA, and someone's already submitted "is a hot dog a sandwich", so I have nothing to contribute
 
4:22 PM
:D
 
well?
 
wim
@AnttiHaapala which cookie cutter ?
yes I'm still having some weirdness with pytest / sys.path ... maybe they have a bug in latest version or something
 
@KevinMGranger are tomatoes a fruit?
 
That one's not up for debate though
"Knowledge is knowing a tomato is a fruit. Wisdom is knowing it still shouldn't go in your smoothie."
 
I know but both sides get heated. :P
 
4:29 PM
Well I guess the first one isn't up for debate either. Why should I debate with non-sandwich-believing heathens?
 
Let's get an argument going in parallel to the existing one: is breakfast cereal a soup?
 
yes
 
no
 
depends if prepared cold or hot
 
gazpacho
 
4:37 PM
It’s rather a porridge than a soup
 
DSM
Oatmeal is the best. Not just the best breakfast: the best.
 
I’d rather have a Nutella toast or leaf of bread
 
Nutella waffles are pretty good as well
 
Is beer just a runny form of bread?
 
Tkinter vs pyqt. Parsing every line in multiple text files(~400,000 lines) and doing .insert into Text widget. I've build everything on TK and im wondering if I would see a performance boost if I convert everything over. Opinions?
 
4:52 PM
Opinions on their comparative merits are hard to come by. It seems like there aren't many people that are proficient at using both.
 
darn
it'll be alot of work to move over. Parsing an entire file and printing it with tags can take a couple minutes sometimes. Was hoping to speed it up.
 
@WayneWerner will look into it this weekend... gotta fix this client code :( thanks tho
 
Guess i'll do some test and see what I come up with.
 
@sidnical have you profiled your code to confirm that the bottleneck is the insert operation?
 
@DSM The only food I really don't want to eat... oatmeal. Hate the texture; but surprisingly I'm okie with congee.
 
4:57 PM
If I just open file and insert into the Text widget its right away. if I parse through every line and tag lines with colors based on what words are in the line it takes a bit longer. So it could be just the time python takes to compare the dictionary against the line.
 
00:00 - 17:0017:00 - 00:00

« first day (2327 days earlier)      last day (2615 days later) »