« first day (755 days earlier)      last day (3065 days later) » 

1:00 PM
@tripleee However I edited it again, but didn't rollback. Instead, improved the format. If there's anything I can do, then tell me.
 
Sam
lol
Well, it's running now...
 
@Sam Probably left browser window open when I left work
 
Sam
@DavidG Ah.
 
@KevinGuan thanks ... I'm thinking downvote, but up to you, obviously /-:
 
1:02 PM
yeah, you're correct. Thanks again.
 
No need :D
 
looks like my friend there actually found an even better duplicate so I get a feeling maybe I accomplished something there after all (gold badge user learning not to answer duplicates? mmmmaybe)
 
sd gone ignore- edited
 
Sam
@Tunaki You missed a bit.
 
Tunaki losing his touch
 
1:08 PM
@Tunaki Hmm...a Chinese...
@tripleee If it's, you can reopen it and let we close it as that dupe.
@Sam I'm the best editor on SO
 
user3956566
@Closey starting
 
@MsYvette Watch out for audits!
 
Sam
@KevinGuan I'm the best waffle dispenser on SO
3
 
@Sam lol
 
@DavidG have you done 16 yet?
 
1:18 PM
@TimCastelijns I haven't done any for days
 
I can't seem to understand most the of the newer puzzles
 
@TimCastelijns which one are you stuck on?
 
16-1, I don't even understand what they are asking
 
Didn't start this one yet
 
Doesn't look that hard tbh, which part is confusing?
 
1:22 PM
The machine scans the wrapping and then says how many pets, cars, perfumes etc the Sue had that sent the gift, right?
 
@TimCastelijns You need to find the aunt in the file that has the attributes that are listed on the ticker tape. Since the aunts in the file do not have all of the attributes you need to treat null values as a match
 
@NathanOliver maybe that is what confused me. I manually searched the input file for the aunts that have 7 cats and went from there, but of course it could also be an aunt of which the number of cats is unknown
 
@TimCastelijns Yep.
 
Roger, thanks
 
No problem. I am working on the file parsing right now. As long as that goes okay I should have an answer in a few minutes.
 
1:26 PM
print("".join([{chr(i+c): chr((i+13) % 26 + c)
                for c in (65, 97) for i in range(26)}.get(c, c)
               for c in "V'yy tb fyrrc fbba. Vs lbh"
               " frr guvf zrffntr, fnl Avtug gb zr."]))
^ Python 3 code.
 
user3956566
I have to go to bed.. night all.. thanks for your help tonight @KevinGuan \o
 
Sam
Night
 
@MsYvette Night
 
1:27 PM
@KevinGuan That just looks like gibberish to me.
 
@NathanOliver Yes it's. But you could try run it.
 
Code that can't be read should not be written
3
 
^ agree
 
^ agree
 
^ agree
 
Sam
1:29 PM
^ agree
 
^ agree
 
^ agree
 
^ agree that ^ agree
 
Nah, we don't want to be donkey this time right?
 
^ disagree
 
1:31 PM
^ agree with the disagree
 
So nobody want to try my code right?
 
^disagree to agree to disagree
2
 
@NathanOliver Hmm...I'm mad :P
 
@KevinGuan I want to try your code but I don't have Python 3 installed at work :p
 
@KevinGuan I do not run code I do not understand/can't read. It is nothing against you it is just a security measure.
 
1:33 PM
@NathanOliver Relax, I don't want to be kicked. It will just print something out.
@Thaillie :P
 
I ran your code. happened and I falled of my chair. Was that normal?
 
@KevinGuan Oh you are not going to get kicked. I am just letting you know why I am not going to run it.
lol
 
So, the job interview went pretty well. 5 candidates for the mission I want. They told me they'll call me Monday to say what their decision is.
 
Because that was not documented (the falling off chair part)
 
Except they just called me back to say I'm hired \o/
 
Sam
1:34 PM
:D
Congrats
 
crosses fingers
 
@Kyll Yay \o/
 
@Tunaki Hmm...nope.
 
Which company?
 
Sam
@Tunaki Nothing is ever documented.
 
1:34 PM
@KevinGuan Just ran the code. it really is magic what's written there :p
 
Sam
You should know that.
 
@NathanOliver Ah, fine :P
 
@Tunaki Ligue de l'Enseignement / fol37 pour un service civique (civil service)
 
@Kyll intéressant!!
going to teach some computer science?
 
No fraeking idea
That's the best part
 
1:36 PM
lol
 
I don't know what's going to happen
neither do they XD
 
Sam
lol
 
Sounds like it's going to end well.
 
Basically, they have to do something to promote "Le numérique" (the numeric, IT)
 
Congrats @Kyll, what is the job?
 
Sam
1:37 PM
@DavidG New role at a fuel station...
 
@NathanOliver done part 1, was indeed pretty easy after the parsing
 
@Thaillie Because is the :D
 
@Kyll Haaa, peut-être mettre en place les plateformes de travail pour les élèves qui stockent emploi du temps et tout
 
So my job would be to coordinate actions undertaken by different associations (like, from a handful to thousands of them) to promote IT to very young people (these humans, except smaller... kids? I hate those.)
Or to not-so-young people
 
@Kyll Do us a favor. Avoid talking about PHP.
 
1:39 PM
Organize an open, public lab for everyone to come and experience various tools (like these visual tools to learn programming and algorithms) and have fun
@Tunaki I'm so going to promote JavaScript it's going to haunt you.
 
morning!
 
Sam
morning!
 
Plop!
 
Night!
 
@Kyll Java* You made the reverse typo now
 
1:40 PM
Morning Gunr o/
 
Hey
 
So yeah. I got a job, have no idea what it will be, neither do my employers, so I'll end up building my own job. Lots of fun ahead.
 
@Kyll read that as "burning my own"
 
Hey gunr
 
1:41 PM
Actually, I once did something like this but it was for science experiments
 
@gunr2171 Close enough
 
And it was lots of fun
 
well, time to work on advent 16
woot, I'm still in the lead :)
 
@Tunaki Dis-en plus! \o/
 
@Kyll En fait, moi j'aidais les profs de science a monté et expliquer des expériences. Sympa! Franchement si t'as des heures avec des élèves où tu peux leur montrer les trucs sympa qu'on peut faire en informatique, ç'est trop super!
@Kyll Honestly, I think it looks real awesome. Maybe I'd like to do that someday.
 
1:45 PM
Google translate doesn't like the French, some parts he just refuses to translate :p
 
@Tunaki I'll ping rene soon if you're still speaking French.
:P
 
@TimCastelijns Yeah just finished it. I was pulling out my hair as it wasn't working and then I realized I forgot to initialize a variable in my aunt to find and of course you do not get a warning about that.
 
Should this question about getting multiple database data (counts of Mongo cursors) in only one query rather than many go to CodeReview?
 
2:00 PM
And Day 16 completed.
 
@Kyll why?
 
@KevinGuan Not sure. I don't really know when or how questions asking for improvements to existing, working code are on-topic, so I ask =p
 
@Kyll I say no as the OP wants a better way. He is not asking if his way is correct
 
^ agree
 
And the better way is clearly identified as a measurable feature. Got it.
Damnit left a typo in my edit
> Documents have a field house which contains
Or "contain"? (no "s")
 
2:05 PM
Ah, sleep time. Night everyone, plop @Kyll :P
 
Night Kevin ☺/
 
Night!
 
> Plop is , use it everywhere.
 
@TinyGiant I'd be interested. Maybe "Pacific Rim"?
 
JAL
morning all
 
2:15 PM
Hey
 
Morning JAL ☺/
 
Plop!
 
Sam
Hey
 
yo
 
2:20 PM
@SmokeDetector why?
 
Sam
@SmokeDetector lol
 
@SmokeDetector ignore- edited
 
and done with day 16
 
Sam
@Pham stop bot
 
@Sam I'm shutting down...
Goodbye!
 
Sam
2:25 PM
 
@TinyGiant I'm in. Maybe instead of naming by location/time (might not apply to all), go for blue team / red team?
 
Hey everyone! (SOCVR chatbot started, linux v2 test!)
 
What kind of comment should I leave to this guy? stackoverflow.com/questions/34314349/…
"I know it's an old topic, but I couldn't find the solution that works in my case, or I would say I'm too lazy to find that out"
...
 
It smells like a help vampire. run away.
 
2:32 PM
How do you mean that?
 
@Sam If I fork a repository on GitHub, I can make some changes and other stuff. Then I can use it as it was my own repository and do stuff, like issues, pull requests, ... .But I also can do a pull request to the original repository and let my new awesome stuff get merged into the original stuff. Now if someone else makes changes to the original project, how can I get that new stuff in my forked repository? Do I first have to merge my stuff or fork it first?
 
Sam
@Rizier123 Welcome to the world of merge conflicts.
@Rizier123 If you've changed your fork and if the original repo has also changed, you'll need to merge in the changes.
 
@kayess It sounds like the person just wants the work done for them. We don't do that. When I see request for code I DV, VTC and walk away. I'll check back later to see if the fixed it and if not then it stays.
 
@Sam How can I merge the new stuff from the original into my changed forked one?
 
@kayess Lazy questions deserve lazy responses: cv.
 
2:35 PM
Ok thanks to both of you!
 
Sam
@Rizier123 See here.
 
Although I can't really find a proper flagging reason.
 
Went with POB.
 
@Sam Ah I see. I'm reading the guides page right now and have the help page open which I read in a sec. But this means on GitHub itself I would have to pull my stuff first and fork it again?
 
2:38 PM
Flagging for (self) abuse.
 
Sam
@Rizier123 Erm, no?
I'm not sure I quite understand whatchya mean.
RIP Rizier, he probably formatted his hard drive. Never seen again.
 
Note: Smokey now listens to edits on messages that it didn't recognize before. So for example, you can edit !!/aliv into !!/alive, but not sd fp- into sd tp-.
@Sam ^ there's your feature request :)
 
@Sam Simple example:
1. I fork a repo (Which contains 1 file)
2. I change something in this file
3. The original repo also gets changed
-> Now I don't want to pull my changed file to the original repo, I want to merge the original changed repo into my forked one, how? (On GitHub itself)
 
You can't do it on Github, you need command line or some local GUI tool
 
Sam
@ProgramFOX \o/ thanks. :)
@Rizier123 What David said.
 
2:48 PM
Command line > GUI > Github anyway
 
@DavidG Okay thanks. But when I just forked the repo and didn't changed anything I just can re-fork it again, if the original gets changed right?
 
@Rizier123 Well you can delete your fork and go again, but honestly I'd suggest going with the command line to try it out while you have no way to mess anything up
 
Sam
@Rizier123 The CLI is calling your name...
 
Okay, so I already see not everything is possible on GitHub itself. Best is to use git command line and then you can do everything.
 
@NathanOliver day 10 part 2 has been running for 10 minutes and only on the 43th iteration :( it's the one with the 1112 -> 3112
 
2:50 PM
Although apparently you can do it directly on the website.... youtube.com/watch?v=bTaFAqJ6bjE
But still - get used to the CLI, it's very powerful
 
user4842163
ZOMG I put a bounty on a question requesting someone to find a way to mention Jessica Alba in the answer and someone actually managed to do it! stackoverflow.com/questions/33829566/for-loop-with-pointer-in-c/…
 
user4842163
think he's definitely getting the bounty unless others do it
 
another win for science?
 
user4842163
big win!
 
Sam
@gunr2171 Collaborative science. With lemons.
 
2:53 PM
@Sam I've noticed you've started reviewing! I'll update your session record.
 
Sam
Let's find some more bugs.
 
user4842163
@TimCastelijns Yeah, it's kind of out of boredom that I put a bounty on it. But I noticed people provided some elaborate answers before I even put a bounty on what is otherwise a ridiculously simple question, and I wanted to kind of push it down a funny direction with a bounty requesting specifics. Mostly I just want to keep people engaged there. :-D
 
Over 50% from the questions are from JonH: meta.stackoverflow.com/questions/tagged/jobs :P
 
user4842163
@TimCastelijns Also requesting stuff like that definitely makes it harder for an FGITW. :-D
 
@TimCastelijns Oh that is bad. I count 4 mississippis for my program to complete. Would you like to see it?
 
2:57 PM
SPAM: 1 2 3 4 5
 
@NathanOliver please
 
@TimCastelijns Here you go: pastebin.com/k29qh79t
 
That looks pretty neat
 
@TimCastelijns My C# day 10 was pretty quick
 
Here is mine gist.github.com/TimCastelijns/963bf87332c8cfce2b1c maybe you can spot the bottleneck :p
 
3:05 PM
@Sam Check your GitHub notifications. Did you get a ping from me? :P
 
I stopped the calculation since it won't be done by 17h anyway
 
Sam
@Rizier123 Yes, ik. :p
 
My first go at day 10 was running for an hour before I tweaked it, now it's under 1 sec
 
@Sam Ping me back, just wan to see where I see these notifications.
 
My best guess is that every += creates a new string and that is taking ages at the end
 
Sam
3:07 PM
@Rizier123 FYI, I get emailed everytime you ping me via GH. No need to ping me here too. :)
 
@DavidG one hour?!
How did you do it?
 
@Tunaki Yeah, building strings is bad, swapped in StringBuilder and it worked
 
@Sam Oh, I already know what my first repo will be: SPB (The Sam Ping Bot)
 
@TimCastelijns for my data my codes runs 23,025,022 iterations
 
Sam
@Rizier123 Excellent, I'll start work on my bot army then.
 
3:09 PM
@DavidG I see. Did it like this
StringBuilder also
 
Too bad no stringbuilder in python
 
Not too different than mine
@TimCastelijns OMG something that C# is better at than Python!
 
@TimCastelijns I'm guessing in Python there is no overhead from concatenating String?
 
Are strings immutable in Python? Can you use char array instead of strings instead?
Just Googled, strings are immutable so that's what makes your app slow
 
Sam
C# ftw
 
user4842163
3:14 PM
What do languages with immutable strings typically do when you want to do something like that, treat a string as a mutable array of characters? Are there ways in some of them, for example, to just build a mutable array of characters (not string) and then turn that array into a string?
 
In C# you can turn a string into a char array easily, otherwise you are building a new string for every operation
 
@Ike That's the point of StringBuilder class yes
 
So far the best i have found is ''.join(list of nums)
 
user4842163
Ah I see, makes sense. Lately I'm seeking more immutable designs (more pure functions with no side effects) and tend to headbutt some of those performance issues even though immutable designs are so easy to get right and make thread-safe.
 
> Represents a mutable string of characters
 
3:17 PM
@Ike What is pure and what is fast can be different things unfortunately...
 
user4842163
Been working on a nodal system (visual programming) which treats all of its inputs as immutable.
 
user4842163
The strategy I've been applying for immutable, large data is to treat it as connected chunks of smaller, immutable data.
 
user4842163
This way we can replace a localized portion of the data with a copy-on-write strategy without replacing the whole thing.
 
user4842163
But have to conform to an "everything is immutable, every node is pure and causes no side effects" requirement.
 
There's a fun video of Jon Skeet doing a talk where the aim was to build a console app in C#, some game like Tetris or something, but the whole thing had to be immutable.
 
3:20 PM
@DavidG I thought that was a link to a python lib for stringbuilder.. this is worse than getting rick rolled
 
user4842163
I love immutable stuff -- can multithread it without a care in the world, and I just tend to notice when I was programming in LISP with mostly pure functions and no side effects ages ago that I made way fewer mistakes.
 
user4842163
... only that pesky performance issue for large, immutable aggregates.
 
nothing is immutable in C++. good old undefined behavior and const_cast to the rescue ;)
 
user4842163
@NathanOliver Ugh, I had a co-worker who habitually const_cast. When asked why, he said, "Because I wanted to change the data and it was const".... one's man constant is another man's variable.
 
@NathanOliver What do you mean? String are immutable I guess
 
3:24 PM
@Ike Wow. Just Wow.
@Tunaki you can change a std::string
 
user4842163
@Tunaki C++ strings are typically mutable.. as well as char arrays. Literal strings are immutable read-only memory (at least it would be UB to try to modify them).
 
Well...
 
^^ that too. Don't try messing with string literals
 
@DavidG bottleneck found. I was taking a substring of the entire string every iteration of every letter facepalm
 
Literals my be the only true immutable things as the either do not exist after being compiled or the live in the RO section of the program.
@TimCastelijns That will do it. How fast is it now?
 
3:27 PM
~10 seconds for 50
 
Still 10 times too slow
 
That is a vast improvement.
 
I get about 0.7s, you can do better Tim!
 
user4842163
@TimCastelijns Is there a nice profiler for Python?
 
^^ me too, come on Tim! Show us that Python can do it!
 
3:29 PM
Give me a break lol, I've never before had to deal with performance issues in python, I have not the slightest clue where to begin looking
 
user4842163
I feel like once I started using profilers years ago, it accelerated my understanding of why code can be bottlenecky at a micro-level ten fold (beyond glaring algorithmic inefficiencies)... a lot of people talk about the benefits of profilers for measuring, but it can also be a really valuable learning tool on how to write more optimal code... learning through the process of chasing hotspots.
 
user4842163
Also it shows what not to optimize, and that helps productivity in those areas that don't matter.
 
Sam
@Pham stop bot
 
@Sam I'm shutting down...
Goodbye!
Hey everyone! (SOCVR chatbot started, linux v2 test!)
 
Sam
Updates \o/
 
3:33 PM
Hey o/
 
Sam
@NathanOliver ... I read that as, "[...] live in the Room Owner section of the program."
 
@Sam lol. RO == Room Owners && RO == Read Only
 
Sam
@NathanOliver Yeah, lol.
 
@NathanOliver So, Room Owners == Read Only? :P
 
nice one @Drew I'm proud of ya
 
3:39 PM
beat you to that one maybe
 
@ProgramFOX Yep. RO is for life. You cannot modify the RO status ;)
 
RO is immutable
 
Sam
3:53 PM
Skeet is immutable
 
Hmm, I can't seem to get the correct answer for day 10 part 1 :p. Could anyone give me the correct answer with this input "3113322113"? Just so I don't have to wait 5 min to test again :p
 
Well I found a way to make my solution for day 10 run slower but I cannot come up with a way to make it faster than 4 seconds.
 
@Thaillie 329356
 
@DavidG Thank you :D
 
3:59 PM
@NathanOliver lol. I'm still working on it..
 
I though yours ran in like 10 seconds
 

« first day (755 days earlier)      last day (3065 days later) »