« first day (2240 days earlier)      last day (2691 days later) » 
00:00 - 19:0019:00 - 00:00

wim
12:00 AM
upside down palindrome ftw !
 
no, for the wim
 
wim
it also looks like a resistor \/\/I/\/\
 
arachnophobia trigger alert
 
wim written out like a resistor can be the next big electronic component company
wim. Get to it
 
wim
I'd love to manufacture resistors but something is impeding me
 
12:12 AM
ohm-m-g
 
DSM
wow
 
I have a pun myself, but I must resist
 
Ohm an, these puns are killing me.
 
I can't decide if I'm amused, ashamed, or happy to be part of a bunch of engineers making EE jokes on a friday night in an online chat room
 
DSM
All these jokes hertz.
 
12:18 AM
watt.
 
who you callin an engineer, m8?
 
I dunno about the rest of you, but currently I'm amped up by these puns!
 
i'm at level 11!
 
Voltage!
 
Well this definitely induced some laughter. I definitely had my share of laughter faraday
 
12:20 AM
candelast puns contain other units as well?
 
wim
@enderland don't like EE puns? Watt???
 
to be fair, I disliked the EE part of my undergrad the most
 
DSM
d'Alembert. (shakes head at @AndrasDeak) We need to coulomb off for a while.
 
scratches head
 
DSM
@enderland: true story -- electronics was my worst course in undergrad.
 
12:22 AM
True story - I switched out of electrical engineering to computer hardware
 
DSM
Dec 3 '14 at 17:09, by DSM
Toward the end of third year I was starting to think dropping out RIGHT THEN would be the best time. (Freakin' electronics lab. To this day I don't know how it made sense to eveyrbody else and none to me at all.)
 
I did mech engineering, though I do nothing related to that now..
 
we had a course of electonics lab, but I assume it's much more traumatising for a software person
 
same here. Degree in hardware. Career in software
 
DSM
Oh, and I finally got around to today's AoC. I lucked out and the changes were really modest between v1 and v2.
 
12:23 AM
if I were an experimentalist I'd be doing electronics, after all
 
wim
you mean it give them a shock
 
if I don't fall asleep on my couch tonight I'm going to finally get around to AoC
 
wim
they are not well grounded people
 
AoC?
 
@wim AC what you did there
 
DSM
12:24 AM
heh
 
@enderland advent of code, see pinned message(s) -->
 
Ah
 
@idjaw Yup, I switched out of EE as well. Of course, I switched to theater, but still. :P
 
DSM
That's a pretty hard pass.. (a hard pass on EE, I mean.)
 
wim
Did you hear about the energizer bunny getting arrested?
Charged with battery ..
 
12:26 AM
@wim the case is still going
 
Yeah, it was definitely a bit of a change.
 
DSM
"In this house we obey the laws of thermodynamics!" classical reference
 
overrated, everyone knows you have more fun if you disobey them
 
I keep forgetting that new AoC problems happen at midnight :(
 
I switched out of physics into Game Design. Glad to see I'm not the only one scared away from the hard sciences :P
 
12:28 AM
@MarcusS midnight would be great for me
they happen at 6 AM
 
is AoC worth doing?
it feels like a trap
 
also known as "one of those hours when I'm never online"
 
They're fun little puzzles that don't take too long
 
I really enjoyed it last year.
 
@MarcusS yep. a trap. :D
 
12:29 AM
:D
 
I've actually been lamenting how little time I get to just code though recently at work
 
12:41 AM
Anyone here happen to be a graphics artist?
 
Doesn't @PeterVaro do graphics stuff too?
 
12:57 AM
cbg rm6
if anyone here is familiar with the scoreboard technology, I'm trying to understand some logic my professor provided for the write stage:
For all functional units
f ≠ FU:
( Fj(f) ≠ Fi(FU) or
Rj(f) = No) AND
( Fk(f) ≠ Fi(FU) or
Rk(f) = No)
If I can understand this, I can understand everything: Fj(f) ≠ Fi(FU)
I think I figured it out. f is a FU it's just they're supposed to be different FUs.
 
cbg
scoreboard technology?
 
1:27 AM
@AndrasDeak go to bed!!
Aoc in 3.5 hours
 
Antti, are you still awake, or are you going to bed now?
you're at that strange time where it could be one or the other
 
:D
neither
I woke up temporarily
 
you have strange middle of the night habits. Some people go for a snack, some go to the bathroom...Antti logs on to room 6
Sure. :)
 
I didn't "log in" this just was open in the next tab :D
 
@AnttiHaapala haha, right back at you:D
there's no chance I can solve them near publish time, so I don't stress the leaderboard
I'll do it comfortably in the "morning"
I don't look at the leaderboard beforehand, so I don't annoy myself:D
but indeed I'm off to bed, good night
 
go to bed, you!
bad, Antti...BAD
hisss
 
DSM
2:23 AM
I don't get what's going on with this. Admittedly the OP seems to be going out of his way to be confusing, but from what he said in the comments on the the other question and what answer he accepted, it's a different question.
 
@DSM Yeah...I noticed that too. They differ
I don't think OP really knows what they want :P
 
DSM
Plus no one has given what I'd have done yet, namely set.intersection(*({word.lower() for word in sublist} for sublist in list_)), although some have come close. :-P
 
How's everyone's Friday night?
 
DSM
About to start in twenty minutes or so. ;-)
 
Nice. :) Still working?
 
2:29 AM
I'm watching Atlanta and half-assing AoC
 
That's more assing than me. :P
Cbg, MP.
 
DSM
Nope, just killing time between Events.
 
Ice stick puck hitting events?
 
DSM
Not every event I attend involves the True Sport! .. just a lot of them.
 
Speaking of which, Montreal is playing San Jose tonight
 
2:32 AM
Heheh. I will say, I watched some hockey at my grandparent's house over thanksgiving, and I think I get it. If I were going to follow a sport, I could definitely see following hockey.
 
DSM
Now tomorrow night, when we face the Canucks, that's going to be an Event. #noforgiveness
 
I'm definitely watching that game....freakin' Kadri...
 
DSM
Okay, might as well bail. Friday rhubarb for all!
 
Rbrb, DSM!
 
later @DSM
 
2:43 AM
Oh, @idjaw, since you're into cooking. I picked up this immersion circulator on Black Friday, because it was $50 off online. If you don't have one already, I highly recommend picking one up. It's still $20 off (and worth it at full price).
 
omfg....bluetooth
I can be on my couch and it tells me when my food is perfect
 
Yeah. :P I tried using it and it's completely useless.
 
awwwww
booo
 
It loses the connection as soon as you close the app.
They have a wifi model.
I made a steak with it tonight. Unf.
 
and it's like 50 bucks more?
 
2:45 AM
Yeah.
 
haha
 
It's exactly $50 more. :P
I followed this chart for a 12oz 1.5" ribeye. I seriously can't recommend getting an immersion circulator enough.
 
what are forcemeats
 
I think it's sausage.
 
wait are forcemeats == pate
?
 
2:49 AM
Forcemeat is a mixture of ground, lean meat mixed with fat by either grinding, sieving, or pureeing the ingredients. The result may either be smooth or coarse, depending on the desired consistency of the final product. Forcemeats are used in the production of numerous items found in charcuterie; such items include quenelles, sausages, pâtés, terrines, roulades, and galantines. Forcemeats are usually produced from raw meat, except in the case of a gratin forcemeat. Meats commonly used in the production of forcemeats include pork, fish (pike, trout, or salmon), seafood, game meats (venison, boar...
It sounds like it might be.
 
now I want pate and wine
 
I got some chicken pate that my brother made at the butcher shop he works at. I'm having to stop myself from eating the entire deli container.
 
Could anyone answer a quick C++ question in a room?
 
Also, pro tip: Have a family member who works at a butcher shop. You get all sorts of free, super highend, meat.
@LucasDryer Probably not, considering this is the Python room.
 
I know, I meant in another room
It is very quick
 
2:51 AM
Well, there's a C++ room. Have you tried them?
 
Well, none of the rooms seem active
 
May 23 at 19:32, by Kevin
> A policeman sees a drunk man searching for something under a streetlight and asks what the drunk has lost. He says he lost his keys and they both look under the streetlight together. After a few minutes the policeman asks if he is sure he lost them here, and the drunk replies, no, and that he lost them in the park. The policeman asks why he is searching here, and the drunk replies, "this is where the light is."
 
the light is always in room 6
 
Alright, thanks for your guys' help
 
2:54 AM
I've done C++ several years ago, so I wouldn't be much help anyway.
 
I've literally never written or read any C++
 
3:16 AM
cbg
 
aye
 
@LucasDryer You should post your question on the main site.
Talking about questions. I have a Python one: is there a built-in function which will convert a character or entire string to uppercase but remain in the 8-bit range? In other words, I only want to uppercase byte values which represent a character in the English alphabet. Other Unicode characters should remain the same.
 
I'm so exhausted... been working since 7am with no breaks
If I've learned one thing this semester, it's that I don't want to be a machine architect
 
4:09 AM
uni vs today's AoC, this is a tough choice
 
finally awake this time
 
4:34 AM
doc...u...men...tation...
I can barely hold my eyes open.
 
5:10 AM
Took me way too long to figure out what the heck part 2 was asking for -- was distracted by the mention of the hundreds digit and wasn't sure if that was a necessary condition or something
 
wim
grrr.... I was out drinking at a bar and only got home 3 mins ago
 
slow time of day, huh?
 
documentation is done. need to throw in a few more lines of code I'd forgotten to put in initially. then sleep. sweet sleep
 
5:44 AM
rubarb guys, it's time for bed.
 
 
2 hours later…
7:18 AM
@Code-Apprentice no.
gaah :D
 
7:41 AM
@AnttiHaapala tnx
 
@AndrasDeak omgomgomg
now the journalists tell taht they tried to get PM to tell about the possible connection, either give comments or be interviewed. He refused...
 
 
2 hours later…
9:59 AM
It might be that I've only just woken, up or read aoc3 wrong but it sounds whack
Why can't 5, 10, 25 be a valid triangle?
Oh wait I see
Yeah I just woke up and hadn't fully considered my gedankenexperiment
 
10:13 AM
brief cbg
aoc is fakken great! It only took me 2 minutes to generalize part one:)
 
I've not written any code yet, but I've got an algo in my head
 
cbg! ;)
 
10:29 AM
@AndrasDeak I made the mistake of reversing < as > :P
the cases are specifically picked so that the == case also exists
though that one there does consider triangles of area zero triangles too
 
@AnttiHaapala I first thought I did, but only because I was testing with the example impossible triangle and thought it was possible:D
 
@AndrasDeak I mean, inverse of < is >=, not >
 
@AnttiHaapala aaaah
 
so what did you use to transpose the input?!
 
.T
gist.github.com/adeak/… for my spoiler answer day3
 
10:36 AM
yeah
perhaps I should use numpy too :d
 
this is the first one so far that I'm almost proud of
 
@AnttiHaapala you are such a badass :P
 
I mean there's nothing special about it, but it's sort of simple
 
@AndrasDeak look at mine, it is awful :D
 
it is:D
 
10:38 AM
I was trying to speedhack it, well, it worked.
 
I'll probably be numpying it all the way
 
but I woke up at 9am
 
@AndrasDeak yeah, sometimes I do graphics, but I have to tell you, I do it less and less often these days
 
not all are numpyable
 
@PeterVaro I see:) @MarcusS was asking anyway
@AnttiHaapala we'll see:PPP
 
10:39 AM
they weren't last year
 
I only use numpy when it's called for
 
@AndrasDeak I am proud of my day 2 part 2: github.com/ztane/adventofcode/blob/master/02/part2.py
 
@AndrasDeak it's alright, I guess he will ping me if he needs anything :)
 
@AndrasDeak though it is essentially the same as yours :P
 
My code for the third challenge is way shorter spoiler
 
10:42 AM
@AnttiHaapala And how long did your solutions run?
 
0.02 s including interpreter startup
 
 100 loops, best of 3: 4.52 ms per loop
but that's just the function call
for the second half
 
what do you guys talk about here?
or is it empty?
 
10:47 AM
cool
I'm a bit sad that the publish time is awful for me, but at least it keeps my competitive nature at bay
 
that 7ms includes execing the whole code including re-reading input
 
I'd hate to properly compete with y'all gurus:D
 
but so did yours i guess
@vaultah ah nice :D:D
 
well, mine takes input as a string
 
I guess I need to do "transpose" :D
 
10:50 AM
but yes
 
Stupid one-boxing
All of the list comprehension!
 
lol :d
awful :d
 
The fact that view spoiler
 
@Ffisegydd yeah that is good too, I used pop :/
 
Cabbage
I'm almost tempted to take a look at AoC. It's got to be more fun than answering SO questions for low rep OPs who post gushing thankyou comments but can't accept your answer...
 
10:59 AM
@PM2Ring you should join in - it's a lot of fun.
 
I'm just so glad that I mastered the majority of Sublime Text commands... It takes much more time to write code to read input from file and convert it appropriately
 
@Ffisegydd make it a genuine oneliner!
 
11:16 AM
@PM2Ring what do you mean "can't accept"? That's the one thing even 1-rep noobs can do
you mean "incapable of"?
 
@AndrasDeak Yes. They thank you for the help, but don't accept, even when prompted, eg stackoverflow.com/a/40945823/4014959
 
@Ffisegydd I thought of that but then I went with spoiler
@PM2Ring well, it's only been 2 hours
 
With AoC do you have to start at day one and complete every day, or can you just do the ones you want?
 
@PM2Ring one new each day, but all older ones are available
you can even look at the first half of each pair of daily challenges without logging in:)
but it's like looking at a puppy sale, don't do that if you're not ready to take one home
 
@AndrasDeak Ah, ok. :takes look: Hmmm. I suppose I should remove that hint I posted earlier...
 
11:40 AM
@PM2Ring there is a global leaderboard, you get points for finishing among top fastest 100
 
@wim code on your smartphone under the table, like normal people do
right, the publish time is perfect for PM
"perfect"(?)
In [156]: 'asdFGH123\N{pile of poo}'.upper()
Out[156]: 'ASDFGH123💩'
I hope python3 applies
 
>>> unicodedata.name('\N{pile of poo}'.upper())
'UNBELIAVEBLE HEAP OF BULLSHIT'
 
:P
BELIAVEBLE, eh?
 
That GIF is really annoying.
 
@PM2Ring it is from an annoying film, what did you expect?
 
11:47 AM
Thankyou
 
 
2 hours later…
1:43 PM
rhubarb, I'm off to escape from a room (look at me, all "being social" and "going out" and "meeting" with "people")
 
ITS A TRAP
report in if you survive!
 
will do:P
actually, nobody else knows exactly where we're going, so........
 
1:55 PM
Hmm, Day 3 Part 1 is simple. Too simple.
 
hello
 
@davidism Today's is simple in general.
 
I want to split from domain / eg: stackoverflow.com / to stackoverflow.com
so I do url.split("/")[0]
but cut first / so http: result
 
they are different?
 
2:10 PM
I assume you mean something like stackoverflow.com/questions --> stackoverflow.com
 
oh i didnt see the / ^^
 
but I want to keep http://
 
url = "http://stackoverflow.com/questions"
print(url[0:6] + url[7:].split("/")[0])
if you want to use string stuff at least
though I more recommend NOT doing that, because you might have non-http:// and instead have https://
 
2:13 PM
That is horrific.
Just see the link that davidism posted.
 
@enderland did you miss the docs link? Direct string manipulation is awful.
 
I recommended against it :P
 
Why did you post it?
 
@davidism because they are trying to use that method initially and sometimes it's helpful to see how to get the approach you are trying to work to work, even if you ultimately throw it out?
and understanding how python strings work with split is a useful skill to learn?
"here's what you were trying to do and how you would do it, but I'd recommend this other way instead" is a lot more useful than "do x instead" when it comes to learning
a link to a random doc for a different method doesn't help isabel know why the approach they were trying wasn't working
 
You're assuming that the person you're talking to is rational/not lazy (no offence to OP).
 
2:15 PM
Don't post bad advice unless you're clearly going to explain why it's bad, especially to new users.
 
@enderland Thanks
 
Instead, what you might have done is give them awful advice that they'll use because they're lazy.
"Oh, I could read these docs and re-write it, but this hacky solution will just work for now."
 
@Ffisegydd are you a Final Fantasy person?
 
I'll just stop even trying to help people
 
@davidism always.
 
2:16 PM
this chat is such a finicky chat about everything
 
I'm getting FF XV on Monday.
 
@enderland please don't throw a strop unnecessarily.
@davidism urgh. My friend bought a PS4 just to play it.
 
I thought it was coming out after The Last Guardian.
It looks pretty fun. If nothing else, it's not FFXIII.
 
😛 I can't really justify a PS4 for one game though. Now, FF VII remake on the other hand...
 
@Ffisegydd eh, it's pretty clear that the way I like helping people isn't compatible with this chatroom since I've been coming here over the past year or so, shrug
I'm ok with that
it's easier to just accept something like that than to fight it
 
2:18 PM
I really want them to release FF IX for PS4, with the same speedup button as the FF VII release.
 
@davidism I replayed IX on PC a few months ago, so much fun.
 
I think I'm more excited for the XII release than the VII one. Somehow, my brother and I lost our collector copy when we moved out years ago. :-(
 
Never played XII
PS2 broke before I got a chance to play it
 
2:34 PM
Hmm, I must be missing something obvious, I've definitely got the right grouping of data for part 2 but I'm not getting the right count.
Oh, duh view spoiler
 
2:49 PM
I never really got into JRPGs too much but XV does look interesting
Plus my PS4 is just collecting dust
 
I like the use of sorted
 
I feel like I'm missing an obvious nicer way to write by_column, time to look at other answers.
@Ffisegydd's one liner is cool, but probably doing too much work.
I think the next step here is to start benchmarking everyone's solutions.
 
3:25 PM
cbg
 
cbg
 
@davidism that looks ok
@AndrasDeak escape rooms rock
except whenever you're locked in with your bosses and they try to manage you...
 
There's a Zelda themed escape room coming soon and I can't wait
 
If I don't hear that at least once I'll leave before it's over
 
3:43 PM
cbg
I'm using a 2D array defined like this: "matrix = [[0]*100 for x in range(200)]", How do I delete the entire first column from it?
 
DSM
Lazy morning cabbage for all.
 
cbg DSM
 
@Grimlock What about m2 = [row[1:] for row in matrix]?
 
DSM
^ yeah, something like that. But remember that even if you treat it as a 2D array, it's really just a 1-d list, which is why it'll be a little frustrating to work with as one.
 
You could also do for row in matrix: del row[0], that would probably be more efficient than creating a new list
 
3:52 PM
@ByteCommander Thanks, let me try this.
 
@ByteCommander Thanks, worked like a charm! :)
 
Oh, I see there's Advent Of Code celebrated in here too. joining...
 
Is there a better way than this to build up a lookup for the values in the day02 AoC challenge? it feels hacky as heck
 
DSM
4:07 PM
I think it's cleaner to make an object (list of lists, list of strings, whatever) which directly represents the pad and then index into that.
 
Sorry, forgot to ask, for the same array, how do I delete first row as well?
 
@enderland I made a 5x5 grid (list of lists" holding the button characters and an empty string for not existing buttons.
@Grimlock Simple, del matrix[0]
 
@ByteCommander Oh! Thanks!
 
Or m2 = matrix[1:]
 
@ByteCommander ah, that would have worked too
you could do something like this then instead of this
 
taking a test driven approach to do AoC is turning my code in to what might be an over engineered solution....
and I also learned that I am no longer awesome at math
at all
 
@idjaw how are you testing it?
when I have stuff like this I get lazy and just add asserts. I probably should get out of that habit
 
4:48 PM
@PeterVaro Made an app -- looking for icon design (category labels in the app + the app icon itself)
 
@enderland I'm setting up unittests to test each component of the solution I'm putting together. So, test orientation based on where I currently am facing. If I move in a certain direction, the coordinates are in the right place based on my current coordinates
so I'll mock accordingly if I need to test specific things.
 
@idjaw Ahhh. that's far fancier than my hacky asserts :P
 
Maybe fancy, but also maybe way over thought.
and I'm also realizing that there has to be a far simpler idiomatic way to assert a particular thing (don't want to write any spoilers)
 
I'm always torn when I do these sorts of things vs trivial testing and setting up real testing (using unittest or something)
It probably sets me up for bad habits the more I do trivial throwaway like testing
 
I think there is a time and a place for it all. I think I went towards more robust testing is because I'm having trouble visualizing it
so I'm writing small tests to build the solution until it makes sense for me
by the time I get a final solution, I'm probably going to realize "Oh....I can just do this"
 
4:58 PM
which one are you doing? the day01?
 
yup
I just started
I've had no time to do anything
right now what I'm trying to figure out is view AoC spoiler
 
Did you draw a picture?
 
no...I really should
I think I'm going to do exactly that right now
I see a pattern but I don't see a pattern
writing will help
 
5:29 PM
IMO unit tests are superfluous if the main code can be written in about 10 or less (not oversized) lines...
 
DSM
Disagree, at least for code that matters. I can write five clear and concise lines which get edge cases wrong -- in fact I regularly do. :-)
 
@DSM hackerrank makes this more obvious to me, too, since they normally have test cases for all the edge cases
 
6:02 PM
Salt-cured whitefish on top of Finnish syrupy christmas bread, omnom
 
6:36 PM
So I can't push or clone my public repos apparently... git is such a pain
 
@MarcusS wat?
 
Trying to push my AoC stuff
 
6:47 PM
cbgt
this guy
> I've done a lot of programming in many different languages to where I have well formed opinions about good and crappy programming languages.
he is a node.js dev, thinking Java is shit
 
wim
>>> issubclass(OSError, IOError)
True
>>> issubclass(IOError, OSError)
True
PEP 3151 you crazy
 
@wim also incredibly vexing: socket.error is OSError
Python 3 only, Python 2 actually separated them and I have no idea why they changed it.
 
wim
careful there
socket.error is OSError == True will do chained comparison
 
00:00 - 19:0019:00 - 00:00

« first day (2240 days earlier)      last day (2691 days later) »