« first day (3338 days earlier)      last day (1611 days later) » 
00:00 - 19:0019:00 - 00:00

12:08 AM
Something strange has happened in an OO exercise for a course
I've got a "vehicle" class that defines miles in constructor:
def __init__(self, miles):
    self.miles = miles
I have an outside tkinter module calling this class
And an AttributeError happens if the following function is called (it's linked to a button):
def Mileage():
    lblMpg.configure(text=format(car.Mileage(), ".2f"))
The Mileage() method in the vehicle class is as follows
def Mileage(self):
    return self.miles/self.fuel
(it's also self.fuel in the constructor, sorry, but it won't let me edit now)
But it will work if another function from the outside module is called, all other things being equal:
def AddItem():
    #...
    car.miles = float(txtMiles.get()) #it's a field
    car.fuel = float(txtFuel.get())
   #...
Adding just those two lines from that function to the Mileage function from the outside module makes it work
Obviously, those two attributes are already initialized. What's the problem?
 
12:33 AM
@AndrasDeak you weren't kidding ._.
 
 
2 hours later…
2:29 AM
Someone define FRP (Functional Reactive Programming) in terms a Pythonist would understand.
 
 
1 hour later…
3:55 AM
Yammity tomato....so I copied one of my methods to essentially modify it, as they have similar checks. And I was passing most of the simple tests. And but not the longer one or the answer. Eventually I figured out that I'd also copied in the def line. So I had:
def one_method():
    def some_other_method():
        # code
So obviously one_method was returning None. Yam yammity yam.
Ok, /rant. I get very encouraged when I figure out how to do these problems, and them implement it and (sometimes eventually) debug it to success. But it's very discouraging when I make stupid green bean errors and take ages to find them.
 
If it is any consolation I don't think people ever eliminate green bean errors entirely, no matter how skilled they are
 
4:20 AM
That's fair. It's the "you should have slowed down and actually read through" errors that annoy. Related: I wrote unitish tests for my opcode methods for day 2, I didn't today.
But anyway, another day down :) rbrb
 
4:33 AM
Senior devs don't make fewer errors than junior devs. They just recognize or find them faster, then recover from them faster.
 
@toonarmycaptain Embrace the green bean, we're all artichoke.
 
4:58 AM
Day 6 let's get it.
 
zzzZZZzzz... huh, oh yeah
 
wim
5:15 AM
zzz
and now, to read the problem..
 
5:29 AM
That was... fun...
Didn't actually get my code to work, but thought I pretty much had it so submitted my code's output -1 and sure enough, it was the answer... sweet.
 
For all of you who enjoy puzzles: Controlling a robot blindfolded on a 9x9 grid
 
@KieranMoynihan The two hardest problems in CS are, of course, Concurrency, Naming, and Off By One errors
 
@JoelHarmon I see what you did there ;)
 
@KieranMoynihan Not me; programmer culture at large. I've heard that line many, many times, with various substitutes for the first two items.
@AaronHall I think I would describe Reactive Programming as achieving decoupling by having components register callbacks with each other. When something interesting happens to an object, its response is to handle its own internal stuff, then call all of the callbacks that registered for that event. In non-reactive programming, a component would instead keep a permanent reference to an object and call specific functions on it.
By admittedly weak analogy, when GvR approves a PEP he doesn't have a fixed list of people to tell (presumably). He just posts to twitter. Anyone interested in knowing about approved PEPs would follow that twitter account.
As I understand Functional Reactive Programming, it's that kind of event/message based separation of concerns, plus Functional style data transformations of the events being passed.
 
6:20 AM
Hello. Here are the podium stats for the first 6 days; If you scored a star as the first 3 people that day within the private leaderboard, you'll get gold / silver / bronze respectively.
 
wim
how did you make that
 
fancy
 
wim
is the outline the part a or the part b?
 
It's based on a chrome extension that adds stats to private leaderboards; but it does a weird thing where all 25 days are there (even days not done), so I removed the empty grids
 
outlines probably part a i assume. i seem to do better on part b based on personal stats.
also to note that the medal that i assume is "both parts" is always coinciding with a filled square, so that seems to be the trend to me.
Btw nice work Unihedron, that's an impressive tally :P
 
6:26 AM
My goal is the global boards :0
Managed to shove myself in both previous year's final global leaderboard top 100s... I don't deserve it, but I'll take it!
 
Good luck in that!
 
Thank you
 
@Unihedron Aww, way to make me look bad ;)
cool graphic though, it’ll be interesting to see at the end of the event
 
hey can anyone refer me ;P
 
7:13 AM
@NoOb with that username? Nope.
 
wim
@smci nice one.
I could see that idea becoming an AoC puzzle someday
 
8:01 AM
@wim In particular the efforts to find a lower-bound on solution length >= 20. Like Japp Scherphuis' answer says there are 180 minimal solutions of length 24
 
8:11 AM
@AndrasDeak resume will decide ;P
& I want to work remotely
 
@NoOb this isn't a job referral room, so discussing it would be off topic. if you're interested in jobs related to python, check out the board that python.org maintains: python.org/jobs
 
Got it thanks.
 
I would never hire anyone with noob as their so username
 
But thats on stackoverflow only and its sarcastic
:D
 
> stackoverflow only
I once recommended a hire purely because I saw their stackoverflow account ¯\_(ツ)_/¯
 
hiii
please i want to implement hot deck imputation in python
any one can help me in this
 
cbg
How would anyone want to hire a noob?
 
9:23 AM
cbg
@Nora Put all your variables in a list and then run random.choice() as many times as needed? Assuming I've understood what hot deck imputation actually is
@U10-Forward Work on core development skills that are cross-transferrable. Actively use and become knowledgeable about test driven design, automated testing and continuous integration. Have a good attitude, accept constructive criticism and willingness to learn
Some companies would rather hire someone with the right attitude, and train them up
 
wim
The long tail of cruft here. Sadly the accepted answer is bad too.
 
@U10-Forward I was hired with zero programming experience and expected to teach myself, based on a recommendation. Massively stressful, but the best thing that happened to me
 
9:43 AM
@roganjosh Let me take that back.
 
Hi, anybody could you help me?
I assume, that you have date column in your twiter_users table, so you could just change the query that fetches the results in output_users_from_db function to: select tu.name, tu.comment from twitter_users tu where tu.date_column_name = (select max(t.date_coumn_name) from twitter_users t where t.name = tu.name) This query will let you to find the latest tweet for each user. Let me know if that helps, so I could make it as an answer! — Nerijus Lauzadis 13 mins ago
 
It isn't, in itself, a bad question, and the responses might be surprising. Certainly, a name like "noob" is not great (which is a separate issue) when being considered for a job. Some of the email addresses I've seen on CVs are enough to bin them outright
 
Please do not ask for help on recently opened SO questions. Allow people on the main page to answer your question without duplicate discussion here.
especially if you just ignored the help you were given on the SO main page. :/
 
Andras isn't the only room owner that can delete things
 
9:50 AM
@αԋɱҽԃαмєяιcαη word of the day: busybody
 
@roganjosh i were unaware about that.
@AndrasDeak Okay, just tried to help
 
@αԋɱҽԃαмєяιcαη You can see the room owners here
 
cool
thanks Rogan :P
 
I'm becoming ever-more-mindful that we're relying on Andras a lot, so it's best not to ping him (for moderation) unless something really bad is happening :)
 
well, we just ping him and if he's here so he will take action. if not so another one of the RO will take action.
 
9:55 AM
A ping doesn't just do that. It also raises a notification on main, so it could easily distract someone who is looking at SO for something for work
 
or by creating a tag for RO for action ? something like
 
I don't see what purpose that serves. The ROs do a good job of sweeping through the transcript and there was no urgent need to get rid of the post you pinged him over
 
Hmm okay. i just give idea. might be valid or not
 
@αԋɱҽԃαмєяιcαη or just leaving us alone
 
@AndrasDeak do you mean to exit the room?
 
10:00 AM
no, just not pinging us with moderation things, or moderating on our behalf
I tend to say "use your best judgement" but your judgement so far hasn't served you very well in this matter, I'm afraid.
 
@AndrasDeak you know what ! i will never mention you in any things anymore.
 
thank you
 
10:44 AM
@Arne I'm kinda reading your last comment as though you just installed flask? I had in my head you use it
 
just pretending to be new for the sake of showing that install requirements are also something that might be good to add to a question
 
That was my suspicion :P
 
that being said, we're going to run a few test at ArneCorp in a few weeks where we will decide which web framework we'll use for the newest batch of micro services
so who knows if I'll get to continue to use flask
 
That will be interesting. What kind of services are they?
Also, is it just django vs. flask or are you pulling in pyramid et al?
 
we're breaking a monolith apart (php, but not too bad actually), and some of it's core computation was messy and hard to scale
@roganjosh django has no chance, we will mainly look at flask (most experience already) and aiohttp (most promising given the problem), and also some basic exploration of popular others like cherrypy and falcon, to see if they are surpisingly amazing
 
10:53 AM
I'd be really interested in the outcome, in as much as you can share
 
sure. it's all closed source so nothing explicit, but I should be able to outline the problem and show how we got to our conclusion
 
That would be awesome, thanks :)
 
you're welcome =)
 
for sq in soup.findAll('div', attrs={'class': 'm-surface-ch'})
i want to say class with attr.. contain word of surface
because m-surface-ch can be xl-surface-ch on other page
are there a better way instead of
for sq in soup.findAll('div', attrs={'class': 'm-surface-ch'}) or soup.findAll('div', attrs={'class': 'xl-surface-ch'}):
 
11:29 AM
solved it by for sq in soup.select('div[class*="surface-ch"]'):
 
11:55 AM
Thanks for that - I generally don't like using pandas as I have tried using them before, and they always seem to be extremely slow. I hadn't thought of the jsonlist approach, very elegant. Thanks very much! — ulsha 1 min ago
That gave me a chuckle, with the inclusion of "they". I just have an image of the OP throwing actual pandas at a problem
 
last time I checked, pandas really were quite slow
I wonder why pandas is called pandas
 
PANel DAta (s), from the original 3d Panel type that got deprecated away
it turned out that 2d dataframes are way more ubiquitous and useful
 
that is at least a 5/7 on the irony scale, both for dropping its namesake property, and pandas also being a little slow and useless in real life
 
at least it's cute
 
the saving grace
like walruses, right?
 
12:04 PM
>:|
 
<-- wants to see a cute walrus
 
Fantastic photo but, ya'know, it didn't quite hit me in the heart <takes off stolen critic hat>
 
@Unihedron If you make it, you deserve it. Congrats!
 
@JoelHarmon A lot of people in the west has it really hard to compete because it opens at exactly midnight their time, where as I'm not in the west and I can shove jobs around to join conveniently
By the way, I made an app that collects the top 100 for all days' both parts, so if you don't make it into top 100, you can still find yourself here if you've earned any points: aoc-global.glitch.me
 
12:25 PM
@Unihedron I think that helps you a bit, particularly later in the month. On the other hand, check out the stats page an hour after release to get a rough idea of how many people likely started at release time.
 
Yeah, it's a lot fiercer, even my sub-5min solutions fell out of top 100, where as last year most part 2s don't fill out until 10 minutes in
I've practiced a lot of speedcoding for this (yes!) but I'd be delusional if I were to claim that I'm the most competent person here; I'm simply not
 
12:40 PM
Speed coding is a particular skill set, and doesn't even translate super well to a work environment.
 
I don't think they were saying it would, but it's nice to win
 
 
1 hour later…
1:48 PM
cbg
 
cbg
 
@roganjosh same... "seem to be extremely slow" - yeah... they do kinda like just wobbling about eating bamboo... etc...
 
@JonClements you'd need at least 3 rooms of infinite pandas on typewriters to get anything done
 
@roganjosh and then when they finally do go extinct due to lack of bother to procreate - it'll all get blamed on they were too busy trying to do data analysis? :p
"Not now darling... I'm trying to do some regression analysis!" :p
 
Now it all sum()s up!
 
2:01 PM
Pandas can strike a reasonable balance between data analysis and procreation, but only in their natural habitat, because living in a concrete enclosure is necessarily more amenable to the pursuit of computer science than the pursuit of gettin' it on
Basically we just need to wire an enormous LAN into the bamboo forests of China.
 
Pandas are utterly hopeless at procreation in the wild
Normally, I'd agree with your point, but on pandas, they're basically asking for extinction
 
The LAN will help with that, for reasons I don't want to explain in detail
 
s/an/orn/?
I think I read an article somewhere that went basically along those lines.. the extend the Chinese go to in order to keep this species alive is amazing
 
cbg
TIL the Firefox mascot is technically a panda
 
The impression that I get from erratic googling is "pandas are reproducing at below replacement rates in the wild, but more because of poaching and a shrinking habitat than because they don't feel like mating"
... Not that we can get a very clear picture of the motivations of wild animals, mind you
archive.org/details/earthschangingen0000comp/page/49 ranks "poaching and deforestation" as the most serious threat to wild pandas, with "reproductive problems and low birth rates" just behind that. Alright, so perhaps "hopeless at procreation in the wild" is a defensible claim, but let's not lay the blame solely on that one factor.
 
2:18 PM
looks like the blue pill spammers are missing a potential market :)
 
@Kevin wise. I certainly don't lay all the blame on that factor
 
@Jon They've already horned in on the captive market:
> [Pandas] seemed to lose their interest in mating once they were captured.[78] This led some scientists to try extreme methods, such as [...] giving the males sildenafil (commonly known by name Viagra)
I'm sure they're hard at work brainstorming ways to get sales out of the wild population too. But the dollars-to-bamboo-leaf exchange rate is pretty poor.
 
Of course... the original film with Clint Eastwood inspired them all? en.wikipedia.org/wiki/Firefox_(film) :p
 
@JonClements It was originally called Phoenix and then because of legal pressure changed to Firebird which then had more legal pressure to change to firefox. Probably some stravinsky at play here :P
 
2:26 PM
tis the season. I was trying to get artemisia annua out of China for my research and it got stopped at Customs. It was 5kg of this stuff and it really does look like weed. None of this was helped by the sender putting "shredded xmas tree parts" as the description of the contents. A well-traded commodity.
 
"... originally named Phoenix, after the mythical bird that rose triumphantly from the ashes of its dead predecessor (in this case, from the "ashes" of Netscape Navigator, ...). Phoenix was renamed... The replacement name, Firebird, provoked an intense response from the Firebird database software project.[48][49] The Mozilla Foundation reassured them that the browser would always bear the name Mozilla Firebird to avoid confusion. After further pressure, ..."
 
@roganjosh what was the sender thinking... why didn't they add "(definitely not weed)" after the description... that'd have avoided any issues...
 
@JonClements What were they thinking? I imagine the sound of the heart-monitor just flatlining
 
Labeling the package "artemisia annua" probably wouldn't be a surefire approach either, as an overworked customs agent could easily assume that's the street name for some illicit strain.
Sure, they could google it, but that takes five more seconds than using the big red "NO" stamp
 
"artemisia annua" is surely less suspicious than "shredded xmas tree"
 
2:31 PM
'cos it's hip on the streets to give illegal highs latin names? :)
 
Proposal: customers may pay an additional fee to get their package certified as "definitely not weed, despite appearances" by a non-overworked customs agent.
@JonClements If Walter White had chosen a slightly different career path, then yes.
 
@Kevin Some body proceeds to test if it is weed by smoking it Person promptly dies Concludes if it were weed that wouldn't happen
 
Jesse, we have to cook grow
@Dair Alternatively, a media firestorm erupts around the possibility of the newly-discovered lethal effects of weed
Doesn't matter if the plant wasn't weed, nobody ever lets facts get in the way of a good outrage
3
 
2:46 PM
Cabbage
 
It bothers me that alpha, beta, delta, and epsilon each begin with their Latin counterparts A B D and E, but gamma doesn't start with a C. Can we switch C and G's positions, please? The song will still have the same meter and rhyme scheme.
"But then it won't make sense in grading schemes when a C- is better than an F+", you object. No problem, it's easy to change a C to a G by drawing a little tail on it. We just need to update a century or two of already-graded material.
 
@Kevin I think there are more important things than changing grading letters.... like switching to metric in the US.
 
Debatable. But both are more important than the task of determining which one is more important
 
@Kevin did take into account how much code will break if the ascii value of 'c' and 'g' changes? I personally expect it to be a non-zero amount.
 
@Arne Lol DNA
 
3:00 PM
Might have got this one :)
 
I always want to get into a card game, but they all cost too much money.
 
I think Primordial Hydra may be the best-designed Timmy-oriented card ever made.
 
@Kevin How will you deal with Omecron and Omega?
 
I keep trying to play this deck so I can get the doubling season enchantment...
 
What is best in life? To attack your opponent for 1,024 damage, with trample, and hear the lamentation of their blockers.
 
3:04 PM
hi
 
@roganjosh We'll invent a double-O character and assign it to one of them.
 
sorry for interrupting the discussion
 
I say "invent" but really we can just steal Ö
 
Brilliant, I don't know why we never thought of that :P
 
@fetahokey Welcome
 
3:06 PM
i've question about recall-precisoin curve ?
any one can help me
 
@fetahokey You didn't interrupt. We can have multiple discussions at the same time
 
@Kevin thnk u
 
This question, I expect? It's a little under our "wait a couple days before soliciting main site questions" boundary, but I think we can allow it.
But alas, I don't know anything about scikit-learn, myself
 
this is my qqs
https://stackoverflow.com/questions/59194278/how-to-form-precision-recall-curve-using-one-test-dataset-for-my-algorithm
 
@Kevin ended up playing some Magic 2014 - redid the revenge campaign stuff... the last round went quite nicely screen
 
3:09 PM
Artisan of Kozilek and a Prime Time, now that's a commanding lead
 
@Kevin thank you for your attention..
 
Hey all, I'm here on chatroom for first time. How does this work? I mean shall we only ask/talk about Python-related in this room?
 
@fetahokey it's a little high-level for a question on stackoverflow. you don't seem to have a specific problem with any of the tools or languages you're using, and it's more about how best to solve a statistical problem correctly. Have you considered asking that question on stats.stackexchange.com ?
 
@ranit.b More or less. to elaborate:
Dec 3 at 14:54, by Kevin
@themartinipolice There's some gray area. Guidelines: conversations about topics that already have a room should go in that room. Conversations about topics that don't have a room are usually allowed, if they aren't drowning out conversations about Python.
 
Fantastic! I love chat rooms like this - we can collaborate and learn at a much faster pace. Thanks @Kevin.
 
3:14 PM
@Arne maybe i'll take your advice in consideration
 
@Kevin just done another random thingy... opening hand - good bit of land, a vigor, land ramps and eldrazi conscription... yay!
 
I have a Tooth and Nail deck in meatspace, but I finalized its design before Primeval Titan was printed. I have to depend on Sylvan Scrying and Reap and Sow to find my Cloudposts, then I drop a Sundering Titan to ruin the day of everyone playing with typed lands.
 
Slightly off-topic from Python, I've started gaining interest in Raspberry Pie to do some DIY fun for home. Any thoughts, anyone?
 
For good measure, employ alongside Kiki Jiki Mirror Breaker to destroy up to 10 lands per turn.
 
I normally go for the titan, lots of explore and similar, lots of rancors, a doubling season thingy, then some smaller greens that work well with counters and cover reach stuff...
 
3:19 PM
@ranit.b thoughts on what, exactly?
 
@ranit.b I've heard good things. I've long planned to get one for use as a console for retro games.
 
Magic. Neat.
Last time I played, we still used cards, is that still a thing?
 
I used them in the factory to count product. Everything kept failing instead of the £2k units I was trying to replace. I looked stupid. A year later, we find the issues are in the network
 
What cards? :)
 
Dunno, I've never seen them since, so maybe I just all imagined that :P
 
3:21 PM
I bought an Arduino a couple Christmases back to see if it would spark any fun DIY engineering projects, but I'm too scared of burning my house down with the soldering iron, so I can't explore as freely as I'd like
 
solder it in the backyard on a sunny day?
I think there are less chances to light your grass on fire :)
 
@FélixGagnon-Grenier Yeah. Last I checked, paper magic is still more popular than digital magic by an order of magnitude or two.
 
And good old kitchen table play dominates "tryhard competitive circuit" play, although you can guess which demographic is louder on the internet
 
Do you watch Simone @kevin?
 
3:23 PM
If you can't have an argument, throw over the table and storm out slamming the door so the windows crack, it's not magic :)
 
@FélixGagnon-Grenier My yard is not so much a yard as it is a driveway, so even better! asphalt is quite hard to set on fire.
 
excellent!
 
@roganjosh The only streamer I watch with any regularity is Mtggoldfish's SaffronOlive.
 
so, yesterday, while getting back to one of my doomed side-projects of creating software to procedurally generate towns for Dungeons and Dragons, I found this website on google, and there must be a law that stipulates something like "everytime you try to create software, someone made a better version already" (If you're into DnD, you owe it to yourself to look at that site, it has so many amazing resources to generate everything game related)
 
He's a fun guy, although it pains me greatly when he mispronounces an obscure card name, which is often
@FélixGagnon-Grenier I have experienced that law many times, yes.
 
3:27 PM
@Kevin she makes stuff like this. On top of that, she's recently had a brain tumour that she speaks quite frankly about. She's pretty awesome for advocating STEM
 
@Kevin it's hard on the motivation
 
I like to think of my personal projects as a backyard garden, where I grow spices and vegetables for my own personal consumption. It will never be the best garden in the world, but it's not supposed to be.
 
that reads like balm on a fresh cut
 
Maybe there's a garden on another continent that makes better cucumbers, but only my garden can produce a salad with "picked off the vine forty seconds ago" freshness
@roganjosh Oh, it's the "amusingly impractical robot helpers" lady. I like the gif where she completely fails to maintain composure as the mechanical arm pours wine everywhere except in the glass.
 
Cbg
I'm finding the PlantUML plugin for PyCharm to be very helpful in doing some class diagrams, especially for some of the more embarrassingly complex parts of our home-grown test framework
 
3:33 PM
starting AoC. Does anyone know if ROKU is a sponsor?
 
Hmm, I may be conflating one of hers with datebot 1000
@inspectorG4dget Not that I'm aware of. Why? Do you suspect the problems are displaying a bias towards online media player technology?
adventofcode.com/2019/sponsors lists AOC's sponsors, or at least the ones that aren't engaged in a covert psyops campaign to influence you into buying their product by spelling out R.O.K.U in the first letter of every sentence
 
3:54 PM
@Kevin not at all. Just trying to add my information is all
 
I'm currently going through AOC 2015 again because it's the only one that I didn't have a github repo for. I'm currently trying to muster enthusiasm for day 18, which is a cellular automata problem. I have written a million cellular automatons in the past, and I can never quite formulate them as elegantly as I want...
finding all the neighbors of a coordinate that fall within range of the grid always ends up about three lines longer than I'd like it to be
 
4:15 PM
victorious cabbage
 
Every time I write a = b == c I get vaguely nervous about operator chaining even though I know it can't possibly apply here
Some languages would happily allow you to do (a = b) and (b == c) I suppose
 
@Kevin I have a feeling this is a reference to a past problem....
talking about AOC...I need to catch up on this year's problems
 
wim
4:57 PM
@Kevin if you use numpy arrays, then it’s just a slice
 
Oh? Let's see if I can figure out the syntax...
>>> x = numpy.array([[1,2,3],[4,5,6],[7,8,9]])
>>> i = 0
>>> j = 0
>>> #find the neighbors of (i,j). expected: 2,4,5
...
>>> x[j-1:j+1][i-1:i+1]
array([], shape=(0, 3), dtype=int32)
Welp, that's not it.
 
1. inclusion semantics follow that of native python,
2. 2d indices are the yam
 
I can slice out the local neighborhood of a coordinate with x[j-1:j+2,i-1:i+2], but it seems like it only works if the range doesn't go outside of the boundaries of the array.
 
If you mean downwards, yes. Upwards it should clip nicely
 
Manual boundary checking is the source of 90% of my displeasure, so if a numpy-based solution still requires me to do that myself, I'm not gaining much
 
5:09 PM
well you can use a strided windowed view into your array...but that's pretty advanced
 
Possible workaround: make the grid two units wider and taller than it needs to be, in order to maintain a border of always-zero elements that prevents any IndexErrors.
 
@Kevin well - there is numpy.pad :)
 
5:28 PM
cbg
 
do we do a "cbg" only when we have to say anything in the group? Just asking :)
 
whenever the moment takes you? (within reason) :p
anyway... will brb
 
how do you guys manage to contribute/practice after continuous tiresome days especially when your daily work might not involve python
 
5:45 PM
By resting. ;)
 
i get that , true that:) @ParitoshSingh
 
My AoC time for today was literally half any previous day. Of course I'm fairly sure it was pure fortune that my solution actually worked and didn't have a bunch of edge cases ruining the simplicity. Also I recalled you can do set(dictkeys) & set(dictkeys) to get just the common keys. Yay for reading random articles.
 
Yea, today my programming workflow started with a 9 hour nap
 
I'd have loved such a nap. Unfortunately mine was more like 5 and I call it a night's sleep.
 
5:49 PM
@toonarmycaptain i'd love to see your approach, considering i felt i cheated my way through today honestly.
 
@ParitoshSingh if it works it's not cheating
 
If I understand correctly, not even those set() calls are necessary, because the dict_keys class implements some (?) parts of the set interface
>>> {1:2, 3:4}.keys() & {1:5, 6:7}.keys()
{1}
 
Nice!
 
docs.python.org/3/library/stdtypes.html#dictionary-view-objects describes them as "set-like", which does not fully clear my confusion about in what ways exactly they behave like sets. You certainly can't call .add on them, for instance.
And it's not "they support every set method that doesn't mutate" because .symmetric_difference isn't available either
Ah, here it is. " For set-like views, all of the operations defined for the abstract base class collections.abc.Set are available"
 
6:11 PM
Is there an open-source lib that does what this guy is describing? (Graph Object Model, Directed Acyclic Graph, a memoized execution model where you can set nodes that invalidate their dependencies but postpone their evaluation until called, etc...)

https://www.youtube.com/watch?v=lTOP_shhVBQ
 
@ParitoshSingh Cheated how?
 
I used networkx because i didn't think i would be able to work towards a setup from scratch
Hence cheated :P
 
re: "I'd love to see your approach", some users (including toon) have made their repos available for public perusal, at sopython.com/wiki/Advent_of_Code. Spoiler warning times a million, obviously.
 
Using a graphing library made this problem actually trivial. All my time was just spent googling what all i could do with the library
 
I'm thinking about using PyParsing for 2015.19.part2, if that makes you feel better about using a library ;-)
 
6:22 PM
At the same time, that meant that today was a very different experience for me compared to all previous days
@Kevin hehe, that does make me feel better somewhat :)
Oh, thanks for the sopython link.
 
I would have added the wiki link to the pinned message, but I don't think I could fit it without the end getting truncated
 
@ParitoshSingh I never dug into networkx, is there a tutorial you like on it?
 
I didn't really run into tutorials. It was more of SO questions actually more than anything
With the time crunch, i wasn't really looking into a deep dive either. I just had a vague idea of what graphing libraries should be able to do
Having said that, for what it's worth, i've found networkx intuitive in how it works so far
 
Friday cbg!
 
6:32 PM
fried, eh? cabbage!
 
whatever floats your boat
 
typically, that's water... and some industrial run-off
 
I'm just hopped up on Monster to get me through the day. Came in almost an hour earlier than usual to get this release out the door this morning.
 
@WayneWerner done. Pro-tip: [tag:delv-pls] is more visible ;)
 
@toonarmycaptain ah i see, thanks!
Took me a second to visualize how it would work, but it seems nice and elegant.
 
6:50 PM
@toonarmycaptain SPOILER ALERT!
 
@Code-Apprentice Oh right, sorry!
 
Quick, let's talk more so it scrolls off the page ;-)
 
@mods feel free to delete those.
 
lol, I read the whole message and didn't realize until the end that you are likely talking about an AOC problem
 
@Code-Apprentice stop reading NOW
 
6:51 PM
lol
 
@toonarmycaptain I'll trash it and you can post it again with [spoiler]
 
yup, trying to void reading the follow up messages
 
I'm really sorry, I wasn't thinking. Too pleased with myself lol
 
nah, it's not a big deal
 
6:52 PM
it already started scrolling off screen
 
oops, missed the first one
 
Too bad
 
I need a better way to include my amusement in my chat text...
 
@toonarmycaptain view spoiler
 
6:54 PM
@Code-Apprentice You need SO chat dark theme extension
 
I already forgot what you said...cuz most of the words in that didn't have any meaning. And as I reached the end, it slowly dawned on me that you were talking about AOC.
@TheLittleNaruto that seems like a separate thing...but a good suggestion.
 
Think I might have convinced MTG Arena to run under linux... paws crossed
 
@JonClements Great
 
6:55 PM
(if there's a load explosion and you don't see me for a bit - it may not have been as convinced as I am...)
 
Jon's Manager wants to know his location
 
@TheLittleNaruto I think I already know where I am? Or at least I think I do? I hope!? Uh oh... now I'm confused... help!
 
Consult kms70847.github.io if you want to generate spoiler links and don't feel like installing the userscript
 
00:00 - 19:0019:00 - 00:00

« first day (3338 days earlier)      last day (1611 days later) »