« first day (2057 days earlier)      last day (1240 days later) » 

7:40 AM
Hello hello :-)
 
good morning
 
8:03 AM
day 7 part 2 of the advent of code is hard; looks like some recursive hell
 
Goodmorning all
 
9:03 AM
solved :-) now I'm allowed to look at @zx8754's solution
 
 
10 hours later…
7:03 PM
Hmm. What do you all think of the new table markdown support? This seems to make it even harder to get data out of a question if it's not in a dput format.
 
7:27 PM
haven't seen it yet; do you have an example?
 
7:42 PM
@Jaap yep, it is re-curse-ive
Did you manage day 8? "while loops" are ONLY useful for these fun problems, never used them at work. :)
@Jaap Do you have your solutions online - github?
 
yep, also solved with while loops; the 2nd part was pretty hard
 
@zx8754 not yet, but will put it on GH one of these days
 
@Jaap Thanks, would love to see them.
@MrFlick Only useful if there is a download/copyToClipboard button.
 
@Jaap This question for example: stackoverflow.com/questions/65204783/…
You can see how the markup is different. For some reason it capitalized the headers
 
7:54 PM
"allow lowercase in headers" has status-planned tag in above link.
 
I guess i was surprised that even though the transformation to uppercase was done with CSS, when I copy/paste test out of chrome I get the upper case letters and not the un-styled original values.
 
@MrFlick strange thing is that when I copy-paste it to RStudio, I get small letters again
@MrFlick I'm on FireFox
 
Ahh yes. It's just a chome thing. You are right. Firefox keeps the lower case
 
 
1 hour later…
9:05 PM
my AoC code, data & puzzles are online now github.com/jaapwalhout/AoC
 
9:16 PM
@Jaap hah you really don't like ifelse: d[i, 1] <- c("jmp","nop")[1L + (d[i, 1] == "jmp")]
vs mine: d[ i, "V1"] <- ifelse(x[ i, "V1"] == "nop", "jmp", "nop")
 
it's about twice as fast ;-)
which doesn't matter on these small datasets, but does when you have millions of records
 
I get it, I try to avoid ifelse thanks to you, but here just wanted to be over with.
 
if you need fast ifelse, you can also try fifelse from (which is probably even faster)
@zx8754 it has become somewhat a second nature to write my ifelses like that ;-)
 
@Jaap Nah fifelse doesn't sound right, I'd stick with your method.
 

« first day (2057 days earlier)      last day (1240 days later) »