« first day (3340 days earlier)      last day (1608 days later) » 

wim
12:03 AM
python.org/doc/essays/graphs <-- Python Patterns - Implementing Graphs
^ it's from Guido, I think (?)
Not sure, but the code looks typical GvR style
 
@roganjosh this and this and this make it sound like that pylab can easily be loaded, and that a shell may be a dedicated pylab shell. That would explain a lot... Although the first link is pretty old, might not be relevant anymore. cc @m8_
 
Perhaps, but m8_ has shown something completely broken. I can work around conveniences; I can't work around things that are just broken
 
from pylab import * would be the brokening
Disabling that would unbrokening it :P
Anyway, rhubarb
 
I'd love to watch The Brokening some time :P
 
i keep getting an invalid data stream with this
%%timeit -n 3 -r 3

lines = []
for i, line in enumerate(bz2.BZ2File(data_path, 'r')):
    lines.append(line)
    if i > 1e6:
        break
 
12:17 AM
rbrb Andras
 
wim
@AnttiHaapala Thanks. Great job on that cleanup @IljaEverilä
 
and andras
 
wim
ah, yep.
I have actually had moderate success with politely asking OP's to change the accept to someone else lately
 
it worked with my eval/exec ... :D
 
12:21 AM
is there something wrong with the file that it is not decompressing correctly?
 
wim
that file doesn't look compressed to me
 
so that is the issue
 
gah, my day7 part 2 runs correctly for everything except the tests it is supposed to solve, and enters endless loops for those. I give up for today
 
so why is the file have that extension if it isn't compressessed
i am following this cookbook here
 
12:40 AM
Oh, I never realized there was a live chat on stackoverflow
 
wim
12:59 AM
@Arne do you mean that you already solved it but your code fails the example tests? that's bizarre.
 
@wim Not to speak for Arne, but he's not marked as having finished day 7 on the leaderboard, so I'm assuming not.
 
When I enrolled in my first programming class at a university, we got introduced to Jupyter as our IDE. It was buggy, slow, and sometimes didn't want to work at all. Instead I used Pycharm. I was never able to get any good answer to why they chose to use Jupyter. It seems some of the people in here use Jupyter. Is there any advantage in using Jupyter over a local, native IDE?
 
Clearly Notepad++ is the superior software for development.
 
Nah... TextEdit, perhaps, on my Mac? - or maybe Notes, OneNote, Pages or Word?
 
wim
1:21 AM
@Andreas-he-her- Interesting avatar, what is that?
 
@wim A broken representation of a 3D model, in a buggy (ravioli coded) Metal 1 "game implementation". I messed up the source code quite badly (after fixing the issue, having the model render correctly), so I'd have to do a bit of job to get it back up and running. The cyan bottom part is just the flat ground layer. Quite some time since it happened now. Anyway; I got a cool screenshot out of it.
 
wim
Also interesting pronouns, why do you choose one masculine and one feminine?
 
Ehm... I'm not so happy with the CoC.
 
Captains of Crush? ;)
 
Code of Conduct. I just don't see the point of "stating pronoun usage". Just refer to me in any way not disrespectful, and I won't bother. ;)
 
wim
1:35 AM
OK Andrea/Andreas ;)
 
m8_
@AnttiHaapala
builtins.any is any
Out[8]: False
def foo():
     my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']
     matchers = ['abc', 'def']
     matching = [s for s in my_list if any(xs in s for xs in matchers)]
     return matching

dis.dis(foo)
  2           0 LOAD_CONST               1 ('abc-123')
              2 LOAD_CONST               2 ('def-456')
              4 LOAD_CONST               3 ('ghi-789')
              6 LOAD_CONST               4 ('abc-456')
              8 BUILD_LIST               4
             10 STORE_FAST               0 (my_list)
 
wim
always wondered why Andrea is a masculine name in some places. Almost always names ending in an "a" are feminine.
 
Andreas is my name. ;) – Though my university's e-mail system chose to name me "andrea" in my e-mail.
I'm from Norway, and Andrea is a female name here. Andreas is a male name.
 
m8_
In [9]: foo()
Out[9]: ['abc-123', 'def-456', 'ghi-789', 'abc-456']

In [10]: from numpy import any

In [11]: foo()
Out[11]: ['abc-123', 'def-456', 'ghi-789', 'abc-456']
 
I was going to say, Andreas sounds much more masculine than Andrea.
 
wim
1:38 AM
Andreas is always masculine AFAIK. But Andrea is a weird one, whether it's masculine or feminine primarily appears to be region-dependent.
 
m8_
Is this what you guys (no masculine pun intended) normally discuss on a Saturday night?!?
 
Why don't we discuss something else.
Like the fact that the Spoiler Obfuscator is not working for me...
 
m8_
k. How about good NLTK or Spacy tutorials for text mining
 
Nothin' happens when I press "Encode"
 
wim
Yeah that thing has been broken for ages. I tried to push to get it working before AoC but was mostly ignored ...
Kevin put up an alternate one on his github page (link in top of starboard)
 
1:40 AM
I used it a couple days ago though...
 
mhm... we could discuss my annoyance with Xcode and Safari extensions being so buggy, but that might be even more off-topic than our genders. :P
 
Indeed, Xcode is surely off topic.
 
wim
@KieranMoynihan I recommend to install the user script gist.github.com/kms70847/29ea39da5dc80b38eb2a353149185193
 
Ork; had they just let us add content scripts written in Python...
 
wim
It adds another button next to the (send) (upload) for spoilers
Did anyone here use generators or coroutines for day 7?
Are there any gains to be made from using concurrency? Seemed to be mostly sequential...
 
1:51 AM
I haven't made myself familiar enough in here to answer that...
I wrote an undo handler some time ago, that observes objects by temporarily overriding their __ class __. The issue is that this doesn't work on lists, dicts, sets, etc, without having the user supply them subclassed. Might there be a better way to solve this?
 
@Arne If you're looking for a nudge in the right direction... tiny maybe not at all spoiler
It's not a big spoiler, just a recommendation for debugging the bug you mentioned.
 
m8_
anyone have experience with NLTK MWETokenizer?
 
wim
2:18 AM
@AndrasDeak I don't think that's quite correct. At least, that never happened with [any of my five] my input token[s].
 
2:28 AM
@wim I have been getting by on a simple function with a while loop for the intcode problems until just now because the instructions said the program was always restarted and state was irrelevant. Now I need to make make something that keeps track of program state for each amp
 
@Dodge Time to say hello to OOP?
 
yeah true, but now I just realized that I can pass the opcode and store it in a variable with the input and output as necessary for each amp
barbaric, I know
hell if I can't do it with functions and variables I can't do it with a class, right? classes are just wrappers
 
wim
3:05 AM
uh, nah, it's so much easier with a stateful class
and it's pretty obvious that the emulator puzzles will become involved enough to want to use a class (we saw this several times in previous years)
I assume even the if/elif guys know it's probably gonna bite them later :P
 
I know, I did make a binary tree out of node classes for day six though. My test case for day seven part b is taking forever to finish. The opcode logic I have is right but ,,, idunno
 
wim
then it's stuck or broken
 
good to know
 
wim
all 5 of my sessions tokens solved in under 2 seconds
 
that's helpful
 
wim
3:12 AM
and I didn't optimize anything, just brute-force through the permutations
 
same on that front, I'm not managing program state well enough then, as is obvious now
 
cbg
Are we open to discussing spoilers now?
I think I have my logic correct, but I'm getting wrong numbers :/
 
@toonarmycaptain are you filtering the phase settings right?
 
What do you mean? I set each of the 5 up with the given sequence, then add 0 to the inputs of my first computer, and go from there?
 
wim
@toonarmycaptain sounds good
wow you're using pytest for the examples. cool.
this looks bunk ... the answer is not the sequence but the output produced. the sequence is only needed for input.
 
3:25 AM
@toonarmycaptain because there are so many combinations of phase settings for each amp between 55555 and 99999 (minus ones with duplicate integers)
 
@wim I'm just pushing my latest pass at it.
 
wim
oh, that was old code?
 
I was returning the changed program at StopIteration as a holdover from the initial IntComputer where the examples showed the changed program.
If you'd have another look, I'd be very appreciative!
I'm checking the final output of the final computer in my list of 5 computers, rather than the return value of `.run_program()'
@Dodge I'm not there yet, trying to get the test examples to pass first.
 
oh, missed that because you said the logic was right just bad numbers, thought phase settings could be problematic (as in you'd tested but submitted answers were wrong)
 
@wim Is my code at least easy to follow? NB This latest iteration of my computer still passes the tests from day 5 a little while ago, as long as you repeat .run_program() until it returns True
So I assume the internal logic is ok. How I'm using the AmpComputer I've built is another matter.
 
wim
3:38 AM
looking at your code, my recommendation is to keep the current instruction pointer as an instance attribute instead of just a local variable
 
@wim Is not my current instruction pointer self.pointer_index an instance attribute? :s
 
wim
then instead of having the run method just run in while True until halt, write a "step" method which just processes one iteration.
in day 7 you may not want to run until halt, but rather until the output buffer is filled, or block until an input buffer is selectable (depending on whether you coded the amplifier to "push" or "pull", I guess)
 
@wim, that's my day 5, my current AmpComputer is here. I thought about subclassing, but figured it would be easier for me to follow to just copy and modify, since so much had to change.
 
wim
ugh
then no, your code is not easy to follow.
the AmpComputer should have 5 intcomputers (you can connect up their inputs and outputs at AmpComputer.__init__ time). It should not rewrite the intcomputer entirely
this is not subclassing (is a) but composition (has a)
 
@wim Maybe that's misleading, I had AmpComputer be the AmpComputer for each Amplifier. Then I just ran them in a while loop in feedback_computer().
 
wim
3:47 AM
feedback_computer? it's a def. that's a non-starter, because as the puzzle mentioned, you'll want to preserve state.
 
So it is
SOrry
 
wim
I recommend you re-use your computer from day 5 in the amp. there is not really "so much had to change", I barely had to change the computer class at all
 
I reused most of it, just the run_computer stops at the output opcode, and maintains a list for the inputs, which I reference from a generator, so I can add inputs while the computer is instantiated, oh and the pointer is an instance variable. I ended up not changing as much as I expected to need to, now I look at it.
@wim Do you see any glaring flaws in how I'm passing the outputs to inputs?
 
wim
hmm, it's really not clear to me how you are consuming the inputs
I see where you queue them here -> github.com/toonarmycaptain/aoc2019/blob/…
but I don't really understand how you de-queue them
 
4:02 AM
Well I have a generator reading from my .inputs list inside the computer, and I simply append the most recent output from the just run so I store next_input = A.outputs[-1] then when it goes to B I'm running B.inputs.append(next_input)
Line 238
I tried halting when one of the five computers halts, then reading the last computer's last output, in case it was different, but it made no difference, in each of the text cases, the final computer to output before reaching op99 is the last computer (E) anyway.
 
@wim I did a more or less sequential approach.
 
wim
hmmm, so you just leave all inputs hanging around forever? maybe you should consume them instead (with .pop(), for example)
to avoid accidentally re-using the same input twice
 
@Wim how would that happen?
 
How can I drop the diagonal from the last two dimensions of a numpy array?
 
As far as I can tell that isn't happening, but it is simpler than a generator.
 
wim
4:14 AM
you only ever need 1 input at a time, as far as I can tell
though this might change in a later puzzle, so it's probably still worth keeping a list or a deque there
 
@wim For this puzzle, that seems to be correct. I don't trust any later puzzles on that.
ah, yes.
sorry.
 
wim
I've actually used the same deque instance for comp N output as for comp N+1 input.
the amplifier class connects them all up
 
So....my understanding is the phase is passed as the first input, then the 0 (in the first amplifier. And on my first loop through my five amplifiers, two inputs are used on each, then 1 for subsequent loops
 
wim
yep, sounds correct
you have an "addiction_opcode" lol
 
So this is interesting. In the tests I'm left with one input left in the queue for computer E.
 
4:25 AM
@toonarmycaptain Are you sure that isn't computer E trying to send its output to computer A?
 
I believe I'm breaking after opcode 99 is called?
 
@toonarmycaptain Sure, but just before E calls 99, it calls an output.
Did that output land both in your console and at A's input?
 
Not in A's input, but my AmpComp.run_program ends with a return None after outputting a value to allow the next AmpComp to run with that output as input, whereas if it hits op99 it returns True (indicating completed here), it doesn't continue, so the next AmpComp wouldn't be given the input anyway.
Yam. Ok, so I was copying a reference to my intcode program, rather than copying the program, inserting a [:] after the intcode_program variable I passed in solved it.
 
wim
4:51 AM
youch
 
Odds that today's puzzle uses intcode?
 
wim
Now that you've solved it, I humbly offer you to take a look at this Amp class (warning major spoilers)
point being if you have a working IntComputer from day 5, the Amp should only really be ~10 lines.
You have way too much code and may have been overthinking it a bit
Andras and Arne had a similar setup: github.com/a-recknagel/AOC2019/blob/master/day7.py#L20
 
rdy go
 
Hey, it took me awhile, but I'm happy I found it myself, rather than someone else pointing it out. Thankyou for your help :) I printed out the program state (because the program is changed as it runs) while I was examining what y'all were suggesting, and noticed that the patterns seemed to be sequential.
 
wim
5:09 AM
No IntCode this time :)
numpy slam dunk
 
5:23 AM
jeez both you two got top 100
 
wim
my message (part b answer) almost spelled a rude word, hah
huh, I just realized you can find all the easter eggs by view-source:adventofcode.com/2019/day/8 and ctrl+f for "span title"
 
 
1 hour later…
6:44 AM
i'll need to revisit day 7, im either doing something very wrong or i didnt understand the problem.
Funnily enough, today was a breeze except my answer had a "z" character that looked like 2 to me. that was a fun way to waste a couple minutes :P
 
 
2 hours later…
9:02 AM
@wim ruby?
 
@wim I didn't check whether it happened, but the problem description is clear. I thought you wanted correct solutions, not just ones that work with input :P
@sammy welcome
@user76284 drop how?
I only understand that question as "overwrite with zeros" which would probably be r = range(arr.shape[-1]); arr[..., r, r] = 0 if the two last dimensions have the same size
if they have different size you probably need something like min(arr.shape[-2:]) for the range
@wim for what it's worth that's a refactor, my original was an imperative mess github.com/adeak/AoC2019/blob/…
 
9:19 AM
guys, ive made the best circle detector of all time
 
all the circles :P
 
it literally is almost an expert at finding not circles
 
you just have to take the complement
@wim today's easter egg is terrible (I found it manually at first attempt)
 
in all seriousness though this HoughTransform stuff has been giving me headaches
I just cant understand how those purple almost exact circles are just ignored for some vague something elses
 
Any chance that it finds circles of the wrong radius?
 
9:29 AM
the default arg for min and max radius (0), sets it to find circles of any size i believe
 
So increase the min, see what happens. You might be looking for dither
Which library is this? Are you sure max=0 means "any"?
 
opencv-python
the docs are pretty bad for its python implementation but thats what some answer on stack overflow said about it (if both min and max are set to zero I could see that being a special case)
also weirdly enough the sobel/scharr filters seem way better in sk then opencv
from what I've read it seems to pump the picture through a Canny filter then work off that, but I've never really gotten a satisfying filter from opencv in the first place,
 
9:53 AM
Canny is edge detection, right?
> maxRadius Maximum circle radius. If <= 0, uses the maximum image dimension
sounds good
@Skyler did you blur your image before looking for circles?
 
I tried doing a cimg = cv2.medianBlur(cimg,3)
 
according to openv "This operation processes the edges while removing the noise."
one thing im still trying to learn how to do is change the levels of the image, since I know generally my targets skew purple it'd be nice to make an adjustment that rewards blue+red dark values
 
10:11 AM
But all of this detection is grayscale, right?
 
the transform takes in a single array so yea, have to collapse it to grayscale
 
so you just mean adjusting the conversion to grayscale
 
yea
heres what one of the other tougher pics looks like in r b and full
so I really need to make some strong adjustments or hone down on hough if i want to move past a toy model
 
 
1 hour later…
11:26 AM
Hey guys, these codecs thing always confuse me. I have the following data

>> title
out 'Maude Adams (1872\xe2\x80\x931953) as Joan of Arc'
>>type(title)
out str

The \xw2 and such means it's in utf-8. It should read "Maude Adams (1872-1953) as Joan of Arc" Is there a way to convert title to what I want?
Converting it to unicode changes the utf-8 characters, but still doesn't show a dash. Changing it to ascii, I have to remove/ignore the dash. Neither is what I really want
 
What console is that?
So this is python 2, right?
In case it's really utf8 then text = title.decode('utf8') should probably work. How did you "convert to unicode"?
 
Yeah, 2.7
Hmm, okay, then it's not really utf8 I fear.
 
Switch to 3 if you can. 2 is broken especially for non-ascii text, and it's losing support as we speak
Where did that title come from exactly? It might be mangled already.
 
>> title.decode('utf-8')
out u'Maude Adams (1872\u20131953) as Joan of Arc'
 
@MitchellvanZuylen looks good to me
try printing that
 
11:32 AM
THe thing is, I need to compare it to a second string. To see if they're the same
 
It's also possible your console won't render the en/em dssh
 
THe second string is "Maude Adams (1872-1953) as Joan of Arc"
So it does render it, as the second string has it
 
@MitchellvanZuylen that will be non-trivial
 
now I'm basically trying to do
 
@MitchellvanZuylen the second string has a hyphen, probably.
 
11:33 AM
ah
Hmmm
 
Dec 4 at 7:29, by Andras Deak
- is a hyphen, – is an en dash, — is an em dash. And none of these is a minus sign.
 
But okay, there's no 'easy, go-to method` to convert this?
Then i'll have to resort to some hacky method to make the comparison. That'll work, too
 
@MitchellvanZuylen you already did it. It contains \u2013
 
So you're saying most likely the two strings aren't actually the same, since one is a hyphen and the other as en en dash?
 
@MitchellvanZuylen exactly
 
11:37 AM
Then at least it makes sense they don't compare.
 
If they were the same then title1 == title2 would already be True
 
Kinda sucks I need them too, haha. But then I'll just add a replace or something. It's a one-off script
 
Yup. Or use Levenshtein distance or similar
 
Cool. Thanks!
 
No problem
 
user10984358
11:53 AM
if I have to compare two excel files, think of it as a "before" and "after" statistics file, and then see how much each attribute has changed (increase or decrease), is pandas really needed or can I do this with normal python?
 
user10984358
obviously pandas will make it easier, considering I am a beginner to pandas, would it be better to do it normal python?
 
@TheNamesAlc pandas would let you do vectorized comparisons assuming both tables have the same size
 
user10984358
in my case only the columns are same, the rows may or may not be same, guess I better do it in pandas, about time I got my hands in that
 
12:17 PM
You can probably use pd.isin to find matching rows and compare them. Or use pd.join to get one dataframe first
I don't actually know pandas so take these with a large pinch of salt
 
user10984358
well some links I looked into did mention concatenation into one single data frame, and your point justifies that
 
1:09 PM
Andreas is too popular as a name... Too many of us...
 
 
2 hours later…
2:42 PM
@Kevin this card is not one to be on the wrong end of... gatherer.wizards.com/Pages/Card/…
think it's the mtg equivalent of the kill bill films... :)
 
Reminds me of Last Laugh, which was a favorite around my kitchen table circa 2003.
She might make a fun commander in an aristocrats-style EDH deck, although there are already plenty of options for that archetype.
My favorite flavor of "lots of tiny guys which die a lot for your benefit" is led by Shirei
 
 
1 hour later…
@Kevin that could be fun in combination :)
 
i would like to parse only <td align="middle">1.02786</td> and skip <td align="middle"><strong>S</strong></td>
 
if you somehow get your root linux drive to go to 0 bytes of free space, you're in for a lot of trouble :( Expect Chrome to not restore & if you reboot & that doesn't recover space, even gnome login crashes.
 
what shall i edit here ?
for item in soup.findAll('td', {'align': 'middle'}):
 
@Kevin well... it's less fun trying to play people that are way way way better with far more cards... there's a very popular aggro in red for small easily producible tokens coupled with one or more gatherer.wizards.com/Pages/Card/…
 
 
1 hour later…
5:36 PM
Sunday cbg guys o/
 
Anyway to store _id like this => "_id" : "528475fc326b403f580d2eba" and not the default way => "_id" : ObjectId("528475fc326b403f580d2eba") ?
 
@TheLittleNaruto mind to guide me how to append two for loop to one list side by side?
 
@αԋɱҽԃαмєяιcαη side by side? What do you mean?
 
@TheLittleNaruto bpaste.net/show/DU2TO
current output is after i looped over mat
for item in mat:
    print(item)
 
5:44 PM
You should change your printing logic?
 
what do you mean?
 
@αԋɱҽԃαмєяιcαη Is the size of the list fixed ?
 
I mean it will always be of 6 length ?
 
you mean to divide the print by \n
 
5:49 PM
@αԋɱҽԃαмєяιcαη Why not just do a zip() on the two halves of the mat?
or just store mat_1, mat_2 for the two loops and then zip() those.
 
for i in range(0, len/2-1):
       print(mat[i], mat[i+len/2])
This should work ^
I wrote without any ide, so compile error is expected, you can correct those
 
Is that why it's 7 spaces indented? ;)
 
@TheLittleNaruto It's hard to know without any context, but try converting your ObjectId to a str. If that doesn't give you the hex string, pass an ObjectId to dir() to see what attributes it has.
 
My poor little intcode based signal amplifier stops one amplification cycle too early from looking at my results and the test results. Looks like I may have to abandon it, which sets me up for problems in later days for sure. :(
 
6:04 PM
@Dodge Why/how does it stop too early? The stopping point must be after the correct output, unless your intcode interpreter (from day 5) itself is wrong.
 
Also, you can pass an object to help(), which shows you the docstring of the object.
 
Disclaimer: I'm not saying the stopping point immediately follows the output, just that it's some time after.
 
@PM2Ring It's MongoDB where each record has this unique _id attribute added at the time of insertion.
 
@KieranMoynihan It is a mess but works on everything but the feedback loop, I am managing pointer state and program state by storing them in variables and passing in and out, I'll show you what I mean, though
 
wim
let me guess, yours was one of the if/elif ones
 
6:06 PM
you know it
 
@wim These people using functions...
makes it look so much harder.
 
@KieranMoynihan ;D
 
I'm not proud of my incompetence but this is supposed to be fun right? So I'll have fun with it :)
 
wim
yeah day 7 was pretty trivial if you had the computer class ready to go
 
@TheLittleNaruto Ok. Do you really just want to store the hex string, rather than the full ObjectId?
 
6:08 PM
@wim To be fair, unless you already implemented the feature, you would need to add some way to "pause" or something similar after outputs/before inputs.
 
wim
@KieranMoynihan true
 
This is my last amp cycle:
a 272711 18 False
b 545426 18 False
c 1090855 18 False
d 2181712 18 False
e 4363425 18 False
 
wim
but "run until output" is about a 2 lines extra condition into your existing "run until halt" thing
 
supposed to stop at :139629729
if you carry that increment once more it is quite close to the solution, hence why I think one more cycle
 
@Dodge I'm wondering what your condition is for stopping, but I fear we'll get a little far into spoiler territory if we go down that road. If only you had it up on github :)
 
6:12 PM
Nevertheless, I must admit that I have selected a horrible design and should not forget this moving forward, at least today's does not use the computer
I'll push it, but make sure there are no children present when you view it, it's pretty gruesome :P
 
Haha, great. That's what I like to see.
Oh jeez, time to dive in!
 
It's impossible to debug at this point
 
I refuse to believe that.
 
@PM2Ring Yeah! Because it's pain to deal with it later. Just a background: I am writing a REST API, and for every record I want to have a primary key which can be accessed easily by the REST API consumer(i.e. client).
One way is to get this object id after inserting and add one more attribute called something like "prime_id" with the same hex key.
i.e. insert() -> generates "_id": Object("hex"); Now get the hex string out of it, and update the same record with new attribute "prime_id": "hex"
But that doesn't sound like a good approach imo
 
6:27 PM
@KieranMoynihan this is a simple copy/paste MCVE
 
@Dodge "Minimal" reproducible example ;D
 
that thought crossed my mind, lol
 
Ah, spotted it.
That is to say, I spotted the general problem, not how to solve it.
 
also that was, in fact not an MCVE because is not defined there
this is though
 
6:55 PM
Ugh... that's a frustrating game - pesky blue card players... no damage dealt at all in the game, just countered everything with enchantments on the field that kept re-triggering so ended up having to discard 12 cards each play... so that didn't last long - remarkably boring
 
7:08 PM
@Dodge I've figured out your issue. I can point you in the right direction if you like.
 
@KieranMoynihan wow, that would be greatly appreciated
 
How much of a hint do you want?
 
I am almost certain the function is okay but the way I am linking the amps together in the feedback cycle is wrong, is that right?
 
Almost, but the entire problem occurs before the first "feedback".
 
yeah? go on..
 
7:12 PM
Look at the inputs to your read_opcode call in the primer cycle.
What's missing?
 
the second input to initialize "downstream" amplification?
 
eureka!
you the man!
:)
 
Now move your intcode interp out of a function :D
 
No doubt, geez
 
 
1 hour later…
8:33 PM
@shad0w_wa1k3r yeah, that's when you login to a character terminal, or a live cd
@Dodge and you shouldn't let anybody stop you! :)
 
yep, that's what I did and rescued myself. Anyway, it's kinda my fault. Haven't done an OS clean install in a long time :|
 
I can relate. I have a separate partition for the OS which makes upgrades trivial and safe, but I've been reaching the end of its size for the past year or two
right now I have 2.7 GB free in / which only lasts a few minutes when apt decides to download the entire wikipedia
 
haha, am fighting with docker to keep the unnecessary stuff minimal. It rarely does any cleanup.
 
8:48 PM
@AndrasDeak I think I can satisfy a self imposed requirement that I demonstrate some level of annual improvement, so I'm at least doing that :)
 
Hello I am new to network stats and I would like to compare network graphs based on their densities. I normalized the densities using min max. The group size differ significantly (eg. range between 2 and 800). Is this comparison meaningful What would you suggest?
 
@user11964604 what definition of density are you using? The ones at e.g. math.stackexchange.com/questions/1526372/… are already naturally between 0 and 1 I think, no normalization needed.
 

« first day (3340 days earlier)      last day (1608 days later) »