« first day (2603 days earlier)      last day (2353 days later) » 
01:00 - 19:0019:00 - 00:00

Air
7:00 PM
awwww yeahhhhhh back to vaportrain
 
Security training is for casuals. I went through rattlesnake training today
I wish I was kidding
 
PSA: Punisher is amazing and you should all watch it.
 
I watched daredevil so I get the gist
 
I don't have internet until 2 days after I get back from the desert :(
But I'm getting gigabit internet so I can binge the punisher like 10x faster
 
@davidism About the Advent of Code comment what does that mean?
 
7:10 PM
There is a coding challenge called Advent of Code. We are trying to do the challenge. The challenge has leaderboards. Private leaderboards can be joined by entering the leaderboard code. 188337-fb9fe7a1 is our private leaderboard code.
 
So why would I?
 
Enjoyment
 
Air
...for the challenge?
 
Upskilling
LOLZ
 
Why can no one understand me? No I meant why should I join a Private leaderboard?
 
Air
7:15 PM
"Why can no one understand me? Here, let me contextualize my query, indicating I am in fact able to identify the reason you could not understand me."
 
Sorry I don't understand your question.
 
Air
You should join a private leaderboard if you would like to easily compare your progress/solve speed against the specific set of individuals on that leaderboard (i.e., folks from this chat room)
 
The only way to place on the global leaderboard is to wake up at midnight EST and complete your submission in thirty seconds. If you want to feel superior to anyone, you have to choose a smaller pond to be a big fish in.
 
Air
"wake up at midnight EST" implies you were asleep mantappingforehead.jpg
 
@davidism The story of annual training in the military. They released a new "unskipable" training module... that worked until someone realized you could click nav -> cert -> back -> next. Hello cert in 30 seconds instead of two hours.
 
7:18 PM
@Kevin Well I don't care about that I rank about 10615
 
Good for you?
 
Not sure how good (or bad) that is. Never tried it before.
 
If you want to participate in the challenge without comparing yourself to anyone else, that too is perfectly valid
 
If last year is any indication, I'll do a handful of them and then lose interest... but I joined the leaderboard anyway.
 
Each puzzle is posted at 8AM (my local time), that's too early :(
 
7:27 PM
tell me about it :P
 
Well I've joined and I am not doing that badly. Will everyone here be able to see me?
 
Relative to when I finish the puzzle, I'm the first one every time.
 
If I was cruel I would say it is because you are in a convenient time zone.
 
It's true regardless of timezone
 
I don't see you.
 
7:30 PM
Sean Smith
 
Oh I see you. Not quite no1 yet : p
 
You're not getting my obnoxious joke. I'm first relative to my own finish time.
 
Hahahahaha
 
Air
yes just make a private leaderboard and don't invite anyone; you are a rockstar
 
I generally end last so I can't say I care.
Doesn't mean I'll let anyone easily get in front of me. : D
 
7:36 PM
The real question is: can you solve the challenge in a single line?
 
Noooo ~10 lines
 
lol, my first solution was 8... I'm working on a 1-liner :)
 
Ok I just counted 15.
Are the challenges available forever on that site?
 
yeah, you can do 2016 ones still
 
So I can always reference back see if I have improved.
 
7:41 PM
Hooray: (ab)using list comprehensions I can 1-line it.
 
When the challenge is over can you show us the one line code. : p
Or me at least.
 
Most people make a github repo for their solutions. I'm surprised the 2nd challenge is shorter than the first.
 
Just a question of using + and - in the right place for me (yes I was string slicing)
I guarantee there is an easier way to solve the problem than what I did.
 
I'm not proud of how I forced taking the length in my list comprehension... but it worked.
 
7:52 PM
@Kevin I'm not sure you should be giving that out yet.
Others may cheat with it.
 
Air
It's been well over 12 hours, I don't think cheating is a concern
you just deprive yourself thereby
 
There are already a half dozen repositories in the first link on the sidebar. And another hundred solutions in the advent of code subreddit.
 
Can I show the code I used then?
 
Of course
You might want to put it in a dpaste though
And post the link
Just in case someone joins chat and doesn't want to read it as they haven't completed it themselves yet
 
Sorry this is very much off topic, but I am currently working on an open source project and found this link(SO FUNNY): xkcd.com/225
 
8:03 PM
Now you only need to read the 1,698 xkcds between then and now to get properly caught up
 
LOL
I accidentally started at 221
I only learned about this site 5 mins ago....
 
Congratulations, you are part of today's lucky 10,000
 
wow where have I been
WOW that is great
how am I going to remember all these, XD
 
Sorry I just went for a stroll.
Now where is dpaste.
 
You can find it on google.
 
8:10 PM
Got it.7
 
I dearly hope that was rhetorical
 
Yep.
Just typed down what I was thinking.
 
I thought maybe he thought that "dpaste" was a function of the chat room and he was looking for a button or something. Indicating that it was a separate website seemed like the most straightforward clarification.
 
I've always loved Kevin
Uhhhh...me too...what I was thinking...
 
the room would be a much angrier place if we all just wrote down what we were thinking
 
8:13 PM
What IDEs do you guys use(I already have one don't worry)?
 
phew
 
I wasn't worried, but I use vscode.
 
@Simon technically you always type your thoughts
 
sorry that was another random question
@Ffisegydd same
 
Right here is my attempt: dpaste.com/1KB2HKT. Try not to laugh too much.
 
8:14 PM
I only chat angry like 10% of the time.
 
Do any of you guys listen to any kind of electronic music, full of dumb questions today.
 
Yep all types.
 
any specific artist?
 
@Simon My only real criticism is that you generally don't want an else block that contains only pass. Better to just not have an else at all, if it isn't going to do anything.
 
Is that all?
Second script coming up.
Yes I did that once again
 
8:19 PM
btw @Ffisegydd the only down side of VS Code is it sucks my internet BIG TIME
 
There are a number of other ways to make your code more concise and such, but there are a lot of different approaches so it would be easier to just look at other people's implementations so you can see the other possibilities.
It would be egotistical of me to say "you should change your code in X, Y, and Z ways, so it becomes identical to my code, the objectively best approach"
 
So it's not that bad!!!!!!??????
 
please calm down
 
It is written: "if it's dumb and it works, it's not dumb"
 
@AndrasDeak I'm pretty amazed actually. I was expecting more criticism and an uproar of suggested improvements. : )
 
8:25 PM
One small thing. You use len(a) everywhere. I'd be tempted to add a line of N = len(a) at the top so it's a bit nicer to read.
 
Gotta ease into it. each day of advent will come with exponentially larger criticism.
 
To you Ffisegydd: Noted.
 
Nice
 
@Simon there are directed replies in chat
 
Not going to ping. Will not do it.
 
8:27 PM
Andras, sometimes you want to talk to someone, but only if they're paying enough attention that they notice without being notified ;-)
 
oh excuse me :P
 
Hey could you guys take a quick look at this little snippet: dpaste.com/1NESGC6
 
Yep what's the problem with it?
 
nothing just wondering if there is anyway to improve efficiency, it lags a bit sometimes
 
Hmm, I don't think I care for the pattern of if thing == True: ... elif thing == False: ... else: .... If you expect those values to be booleans, then you may as well change it to if thing: ... else: ...
 
8:31 PM
Avoid if bold ==True and instead use if bold. Rather than lots of ifs, use a dictionary lookup. in1 and l1 are really, really bad variable names
 
wow this is great
I should come on here more often
 
Maybe this is a flippant suggestion, but if you want the function to run faster, you could take out the sleep call
 
A good suggestion but the whole point of the function is to print the letters SLOW, like the function name suggets
 
l1 = []
for i in range(len(in1)):
    l1.append(in1[i:i+1])
This looks very strange to me. If in1 is a string, then you can replace all of this with l1 = list(in1)
 
Why iterate over in1, appending to l1, to then - nvm Kevin'd
 
But in the first place I'm not sure why you need l1 at all because you could easily change sys.stdout.write(color+l1[i]) to sys.stdout.write(color+in1[i])
Strings are just as indexable as lists
 
have you read any python tutorials?
one of their advantage is showing you things like this ;)
 
:P
 
It's a serious point though.
People have a limited amount of patience for answering easily googleable questions, especially if they'd be covered by a tutorial.
You should preserve that patience as a resource, not squander it.
 
True
 
8:40 PM
I'm thinking something like pastebin.com/jk0eiZgY. Not tested.
 
Sadly I only have one Python course under my belt
so far that is ;)
 
My bosses left! yay!
 
time to party
 
More serious suggestion about the lagging problem: possibly the problem is outputting a new ANSI escape sequence after every character. This is not strictly necessary. Once an escape sequence sets the color and weight of the font, it won't change until you change it yourself. So really you only need to output the escape sequence before the first character.
So you'd do something like
    sys.stdout.write(color)
    for c in in1:
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(speed)
 
Wait was the code I pasted for that weird ranbow 1s and 0s project, XD
yep
Hey @Kevin your paste bin link is not working for me
 
8:47 PM
works for me
you didn't copy-paste together with the period, did you?
 
thanks
what is that @Ffisegydd?
 
Read it and see
Rather than asking me to explain a website -_-
 
Wait should I trust you...
 
8:50 PM
No
 
plus my internet sucks and I can't load it
so that is a no
 
@Ffisegydd looks awesome
 
Does, doesn't it?
 
too bad Mr.Zeus will miss out on all the malware
 
Ffisegydd's name is in italics, which makes him more trustworthy than a random Internet person.
 
8:51 PM
XD
 
I'm the least trustworthy of the italics people though, because I'm evil.
 
wow makes it all the more legit
 
uh-oh, Epimenides paradox alert
 
Every italic person has the power to betray the trust conferred upon them by their italics. But they can only ever do it once.
 
gtg, cya coding geniuses!
BYE ALL
 
8:53 PM
I have no emoticon to express my sentiments
 
@Ffisegydd this is good for everyone, even for Trump, huh
 
9:07 PM
@Mr.Zeus You may also want to consider fixing your time.sleep() to sleep the remainder of the interval instead of the full interval. That will give you much more consistent results: stackoverflow.com/a/40496844/3579910
My one liners for AoC: view spoiler
 
 
2 hours later…
11:28 PM
I need to put several strings into a function. I thought as a list but I am not sure. Can anyone suggest something?
 
yes, in case you're willing to be much more specific
 
for example def values(["value", "column", "line"])
is there any other way to put those values into a function.
 
"column" or "Coulomb"? :P
@Simon like that...as a list of strings?
your question makes little sense at this stage, so consider rephrasing or coming up with examples for what you mean
 
Ok let me explain further:
I want to create a module that creates an ascii tables from values given to it in the function.
I do not know how many rows and columns the user wants so it must be able to increase and decrease. The function has two values row and column, the first holds all the rows and the second the columns.
How apart from a list can I hold multiple strings (possibly integers) in a function without knowing the values.
 
sorry, I have no idea what you're asking
also, "apart from a list" suggests that you know how to use a list for that, so why not use a list?
 
11:39 PM
It's hardly very friendly. def values(["value", "column", "line"], [12, 23, 10])
 
that is an illegal function definition
 
Ok wait a second.
 
def values(list_of_strings,list_of_ints):
 
That's it. The user would need to put in: values(["value", "column", "line"], [12, 23, 10])
 
The real question is: what would you prefer instead?
those lists should come from somewhere
 
11:45 PM
Any list alternatives?
 
list_of_strings = ["value", "column", "line"]
list_of_ints = [12, 23, 10]
values(list_of_strings,list_of_ints)
beyond this I honestly don't understand what you want
 
Probably a mind reader in the state I'm currently in.
 
Answer "What are you trying to do?" rather than "How are you trying to do it?"
 
Ah just forget it. Officially my worst question ever.
 
Naw, it's just it sounds like you're taking an unnecessarily difficult approach.
 
11:58 PM
Most likely. It's been a terrible day for coding can't hear myself think. Iv'e got algorithms floating around not to mention a C problem I've had for two days in two minutes. : )
 
01:00 - 19:0019:00 - 00:00

« first day (2603 days earlier)      last day (2353 days later) »