« first day (1625 days earlier)      last day (3324 days later) » 

7:00 PM
3000 RPM?
 
3000 degrees?
 
port 3000?
 
over 3000!
 
Windows 3k?
 
port
 
7:02 PM
OMG ITS OVER NINE.................................................................... !!!!!!
 
@l0oky eight*
 
assuming it is a node server, which you are running from command line, and you are using windows as you said, you should turn of the PC and boot into linux.
 
function createQuery (query, prefix, separator) {
  var arr = [];
  Object.keys(query).forEach(function (key) {
    var pre = prefix ? prefix + '[' + key + ']' : key,
        value = query[key];
    if (Object.prototype.toString.call(value) === '[object Object]') {
      arr.push(createQuery(value, key, separator));
    }
    else {
      arr.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
    }
  });
  return arr.join(separator || '&');
}
@argentum47 ^ try this
 
@l0oky In the original Japanese version, he says it's over 8000
 
7:03 PM
it will be somewhat buggy for edge cases, but will suffice for most things
 
owwait, that won't make arrays, shit
 
yeah..
i think there should be a easier way to do this
I mean how any level of nestation should be detected..
 
wait, lemme fix it
 
Sorry guys for spamming videos but you gotta see this
 
7:14 PM
In js is the console.log's only purpose and use is to test code
?
 
test code meaning what?
debugging?
set a breakpoint, why console.log everywhere
 
7:25 PM
@lovetolearn You use it if you want to write to the console. If you're writing something that you want to use on the CLI, then it could be the primary means of output
 
@argentum47 well, silly typo on my part:
function createQuery (query, prefix, separator) {
  var arr = [];
  Object.keys(query).forEach(function (key) {
    var pre = prefix ? prefix + '[' + key + ']' : key,
        val = query[key];
    if (Object.prototype.toString.call(val) === '[object Object]') {
      arr.push(createQuery(val, pre, separator));
    }
    else {
      arr.push(encodeURIComponent(pre) + "=" + encodeURIComponent(val));
    }
  });
  return arr.join(separator || '&');
}
s/key/pre/
it's raining, it's raining :D :D
 
its not raining here
 
@AwalGarg you want reduce
 
@FlorianMargaine argentum wants it, not me :D
I am just improving his code
 
I will use reduce
 
7:28 PM
Then improve it correctly :P
 
51 mins ago, by Awal Garg
and your loop is actually a reduce :D
^ @FlorianMargaine :D
 
Good :P
 
also, since arrays are mutable, reduce would look very similar.
 
!!summon 1
Interesting
But I'm so tired, can't the bot stay adoringly buggy @Unihedro?
 
function createQuery (query, prefix, separator) {
  return Object.keys(query).reduce(function (arr, key) {
    var pre = prefix ? prefix + '[' + key + ']' : key,
        val = query[key];
    if (Object.prototype.toString.call(val) === '[object Object]') {
      arr.push(createQuery(val, pre, separator));
    }
    else {
      arr.push(encodeURIComponent(pre) + "=" + encodeURIComponent(val));
    }
    return arr;
  }, []).join(separator || '&');
}
@argentum47 @FlorianMargaine reduced ;)
 
7:33 PM
That's a map
 
how?
 
You map key to encode(key, value)
Your way of adding data is calling push, you do nothing else.
 
ok, my coding skills are decreasing by the day
 
Replace arr.push with return, reduce with map and you're good
 
true
function createQuery (query, prefix, separator) {
  return Object.keys(query).map(function (key) {
    var pre = prefix ? prefix + '[' + key + ']' : key,
        val = query[key];
    if (Object.prototype.toString.call(val) === '[object Object]')
      return createQuery(val, pre, separator);
    return encodeURIComponent(pre) + "=" + encodeURIComponent(val);
  }).join(separator || '&');
} // inb4 another array method
 
Owl
7:40 PM
good evening everybody! I'd throw a question in, when developing a game, going rather with libraries or frameworks or plain js?
I know it depends really on personal preference, on the game itself and so on, but I'd hoped for a few personal opinions :)
 
I've deved in both.
It's much better to have a good idea of what the behind-the-scenes stuff is before you dive into using a library
 
my personal opinion is a rant about how shit libs and frameworks are
 
Owl
:)
 
good libraries can make canvas dev much easier
finding a good library is hard
 
Owl
hmh yes I understand that
I have worked with few php frameworks before and none of them was so good that I'd stick to them
but I like bootstrap a lot, so I do not completely hate them :)
 
7:49 PM
I also use some css frameworks (not bootstrap) but that is only because I am terrible at css.
 
Owl
I have played with paper.js and its really fun and makes it easier, but it is terrible slow on mobile
ok good night i'll be off for now have fun
 
8:26 PM
elischiff.com this guy's interesting
Read Critical Sharks
 
8:49 PM
please check this bit.ly/1Emonyf
 
@lovetolearn If "this" needs to hide behind bit.ly, I probably don't want to see it
 
its a gist
i posted it on twiiter
 
then post a link to the gist
you're unknown in here; we won't trust your masked links
 
ok
its not about code
but chrome dev tools
 
Why did you even put that in a gist? You could have just wrote that :D
 
8:55 PM
fuck common sense
 
Must be part of the DDoS against GitHub ;)
 
oh shut up
i told you a million times
it was for twiiter
i just posted the link here
what is it with people on here and over talking
if you cnat help then be quite
simples
 
@lovetolearn There is no need to be aggressive with people who will be giving you free help.
 
i am not being agrresive
just saying
 
@lovetolearn Your actions confused me. I only realized that I can't help after the confusion was cleared up. Sorry :P
 
9:01 PM
@lovetolearn by this room's definition, you are.
 
ok
so saying fuck common sense
and questioning a users intelligence is not aggressive
 
No you're being aggressive
 
@Meredith they were kickbanned.
 
Oh neat good call
 
9:26 PM
I've made a prototype class with some functions. Now when I run my node app. Node.js automatically calls all my functions from that prototype class.. WHY?
 
@l0oky Do you have a code sample?
 
@l0oky probably because you're calling them
 
I don't know If I am calling them
 
So, I'm planning on asking a coworker-ish out. She works in another department, but my fear is what it will be like at work if she says no... Our departments are next to eachother, and we do interact sparcely. Will it be awkward, or will it only be as awkward as I make it?
 
Is there a way to know what calls my function?
 
9:29 PM
@NickDugger There's probably something about that on workplace.stackexchange.com
@l0oky console.log(new Error().stack)
 
I have many things figured out in life; women and dating are not among those things.
 
@OliverSalzburg Ty!
 
!!tell NickDugger youtube well you're a nerd
 
Yes, yes I am
 
9:31 PM
Just to be sure I can define a function in a function in js? :D
 
She's kinda a nerd too, though, so it helps on that front
 
@l0oky Yes
 
@NickDugger it will only be as awkward as both of you make it
but also, don't dip your pen in the company ink. it gets messy.
 
I'm trying to leave the company anyways lol
I just hit the year mark, and I have absolutely no buy-in to the company, so I feel like I should seek alternatives
 
@NickDugger wait, no vesting?
I thought you worked for a startup?
 
9:35 PM
Nah, I did before this job
and it was miserable.
Not a big fan of start-ups now
:(
 
Not long ago I had a hackathon competiton. And rewards are great you get an office space in a cool building you get a macbook pro, funding for your projects and It was all fun and games until we found out that you have to get likes from your facebook account to decide a winner
I was so angry
 
angry at what, people deciding how they'd use their money?
seems to me like a silly thing to get angry about.
 
It turns out a winner gets a job that wasn't mentioned at the campaign
It means It all comes down to your facebook friends and who gets more facebook likes is the winner, I don't even use facebook,
Not who made the best project..
 
@l0oky, no they just defined 'best' as being the most popular project.
 
Just like democracy let stupid people vote for the president! The most popular president isn't the best president!
 
9:45 PM
Make a hackathon project that generates likes for a given post
 
haha
for that you'll need many accounts
 
Also:
 
automate their creation
 
That ^
 
9:50 PM
someone just edite a meta answer of mine, only removing one apostrophe, edit reason:
"(its = possessive, it's = "it is" or "it has". See for example <http://www.wikihow.com/Use-Its-and-It%27s>.)"
I'm sure he feels sooo clever now
 
@Cerbrus The obvious solution is to roll back and start an edit war ;D
 
@Cerbrus or maybe he genuinely thought he was teaching you something
 
Probably
 
and you're just being pissy at his good faith...
 
9:52 PM
But belittling people like that... Sheesh
 
he's not belittling at all
 
Assuming I don't know it's from its, it is.
 
you really have an ego problem if you think his message is belittling
$ sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found
 
Heh, that's funny
 
:(
hey, I know what my next project is
yet another something-to-js transpiler :D
it should be fun
 
10:11 PM
name it NickScript
 
@FlorianMargaine I wrote a transpiler, even got it into Unix core. Named it after myself. Use: cat myFile.js
 
@SomeKittens oh it works pretty well indeed
It reminds me vaporjs
 
hi
 
10:26 PM
aaaaaaaand, thus begins the epic quest to find a new job, even though I just got a raise... is thtat weird?
 
huh?
@SomeKittens lol
 
Hello!! Has someone an idea??
-1
Q: Properties of the Knapsack versions

Mary StarThere are two versions of the Knapsack problem, the integer and the fractional one. The difference between the integer and the fractional version of the Knapsack problem is the following: At the integer version we want to pick each item either fully or we don't pick it. At the fractional versio...

 
Yes, I have an idea, but you don't wanna hear it.
 
Why?? @taco
 
10:41 PM
@MaryStar You've been here for several days now spamming your question.
If you haven't gotten an answer within a few days, you're not likely to get it now.
 
10:56 PM
imgur.com/gallery/IgJgx this is amazing
 
11:07 PM
@MaryStar Dude just read your textbook
 
lol
I ignored them once I saw the homework question
 
11:32 PM
@taco She keeps coming in here and asking homework questions. I don't think her professor would assign a problem that's not covered in the textbook
Or at least a problem that you can't figure out by reading the book
 
Also, @Shmiddty was a fantastic guest. Highly recommend inviting him over.
 
He couch surfed with ya?
I think my health is degrading. I don't want to be negative, so I'm gonna see the doctor this week if I can :/
 
Yup, had a good time relaxing and hanging out
@taco avoid death, if possible
 
> Password must be at least 10 characters long
why the fuck
 
@SomeKittens :/ I probably shouldn't be watching The Walking Dead right now
Now a dude in a meat grinder, wtf AMC
 
11:40 PM
@NickDugger just keep adding numbers to your normal password until you get to 10 characters
 
@SomeKittens do you feel like it's worth learning Rails
 
@taco um
Friend of mine has been trying to get me to learn Rails
soooo
no idea
though there's usually little downside to "Learning new things" unless it's a philosophy degree
 
Friend of mine who is solid in Javascript told me I should
Being a programmer is like being eternally in college so far
 
Yeah isn't it awesome
 
Hello @SomeKittens
Could I ask you something?
I want to write a O(n*lg k) time algorithm in order to merge k sorted lists into one sorted list, where n is the total number of the elements in all the input lists.

I tried the following:
We create an array with k elements, where A[i] is the firstunused element of the ith list.We create a k-sized heap and we put in the heap the first elements of the k lists. Then we repeat the following steps, while the heap isn't empty.
1. Minheapify
2. Delete the root of the heap and put it in the output list.
 
11:49 PM
If by awesome you mean I want to ask annoying questions on SO and bother people like @SomeKittens and you, then yes
 
Have you read any books?
 
Exercise:
The above problem can be solved in O(nLogk) time with the help of more appropriate data structures than array for auxiliary storage of k-1 elements. Suggest a O(nLogk) approach.
What's with the school questions today
 
It's almost monday so homework is due soon
 
@evinda I have no idea what you're talking about
Do I know you?
 
@taco You mean that I do not have to use an array?
 
11:51 PM
I'm assuming you're taking a class about data structures and algorithms
 
@SomeKittens We have talked each other
 
So apply what you learned about data structures
 
@Meredith So is that what I did wrong?
 
@Meredith Ahh
 
Maybe
 
11:53 PM
Oh yeah, the Scientology documentary on HBO is starting shortly for my time zone
 
Did you read the section in your textbook about merge algorithms?
 
Yes, I did @Meredith
@Meredith There is a hint that I should use a min-heap
 
Just do what the book tells you to do
Read it 20 times if you have to
Whatever it takes to understand what the author is saying
 
@Meredith I think that it is correct so far, isn't it?
 
I found the answer to their question on SO. Their googlefu is weak
 
11:57 PM
Yeah idk if it's correct
 
Everyone should watch this: derickbailey.com/2015/03/29/… -- Saw this in person, yesterday
 

« first day (1625 days earlier)      last day (3324 days later) »