« first day (1777 days earlier)      last day (3172 days later) » 

9:00 PM
@SomeKittens Max I had. No issues
 
Does Steam work well with managing multiple installs of games?
 
@rlemon we're talking 20k and beyond
 
It's the same as 20k tcp connections
 
@SomeKittens we're gonna have to hit 200k :S
 
Is there a difference between a module operator and a remainder operator (%)?
 
9:14 PM
@Charly Have you googled it?
 
yeah. % in javascript and mod in google's calculator does different things
but I'm not sure how to get the google's version in JavaScript
 
Oh wait no it's not?
Searching with % uses a modulus operator,
 
javascripts % isn't a proper mod right? It's broken for negatives
 
Using the % button is a literal percentage.
 
It's not broken, modulo is not well-defined
 
9:17 PM
Is there a fix for negative numbers?
 
@copy you're not well-defined.
 
Taking the absolute value of the output fixes it, doesn't it?
I can't remember what breaks, but the console seems to be working fine with negative numbers,
 
@Zirak looks like flux with vdom and rx
 
!!> 3%2
 
@Callum 1
 
9:19 PM
@Callum No, modulo wraps around
-1 % 5 -> 4
 
what's weird about it
 
22:20:02.397 -1%5
22:20:02.403 -1
 
(x % n + n) % n
 
hmm flux + vdom + rx and css selectors
 
Or x >= 0 ? x % n : x % n + n
 
9:22 PM
css selectors are pretty different to react/angular/web components
 
this is confusing, but it kind of make sense.
17
Q: Modulo of a negative number

J.P.Consider the following expression: (a - b) mod N Which of the following is equivalent to the above expression? 1) ((a mod N) + (-b mod N)) mod N 2) ((a mod N) - (b mod N)) mod N Also, how is (-b mod N) calculated, i.e., how is the mod of a negative number calculated? Thanks.

 
-3
Q: Just recentlygot Ubuntu and have no idea what to do

Darell Pelt Jr.Assume I have absolutely no idea what im doing,Im trying to just get used to and set up some basic things using this OS, tried to install Java and couldnt even manage that. If possible, id like to be able to play League of Legends, install Skype and Java.

 
Answer: Use windows, grandpa.
 
!!s/windows/Arch/
 
@Callum Answer: Use Arch, grandpa. (source)
 
9:34 PM
Microsoft Bob
 
yes?
 
I'd happily install Microsoft Bob on one of my computers, I could teach people how to not get a virus with it.
 
I have a perfect solution to that with my gf. "if anything pops up that you didn't expect, call me"
she does, stopped getting viruses
 
or just get a Mac
 
Macs are just as susceptible to viruses as Windows. Get educated, nevermind a Mac.
 
9:38 PM
the worst virus on linux is the user
 
@rlemon no, it's Ctrl+Alt+F7
@Callum pop quiz, how many space programs can you name
keyword being name
 
Kerbal space program
 
@KendallFrey 1. Kerbal Space Program.
 
Kerbal Space Program
 
9:41 PM
NASA, ESA, <whatever russia calls theirs>
so.. 2.
 
Scotland has one, iirc.
 
NESSA
 
Belarus Space Agency, I know that,
 
In case you didn't know: xkcd.com/1356
 
@Luggage Russia is ROSCOSMOS. Guess what JAXA is?
 
9:43 PM
Asynchronous Java?
 
Spaceships using Java
 
Canadian space program
 
@SomeKittens lol
@rlemon That's CSA, I think
 
the program is run by the agency
 
9:44 PM
Does SpaceX count?
 
I suppose so
 
The Canadian Space Agency (CSA) (French: Agence spatiale canadienne (ASC)) was established by the Canadian Space Agency Act which received Royal Assent on May 10, 1990. The president of the agency is Sylvain Laporte who reports to the Minister of Industry. He was appointed as president on February 27, 2015 effective March 9, 2015. The headquarters of the CSA is located at the John H. Chapman Space Centre in Saint-Hubert, Quebec. The agency also has offices in Ottawa, Ontario, at the David Florida Laboratory (which is mainly an engineering installation), and small liaison offices in Washington,...
 
Royal Assent? Try Royal Ascent!
queen in space kek
 
i need to rewrite my callback-infested jquery ajax code, not sure what to use. any suggestions?
 
promise-infested jquery ajax
a slight upgrade
 
9:46 PM
Move function definition out of expression
 
user406009
I know this is cliche, but have you tried using promises?
 
So, looks like I have to write a KSP installation manager. Woo.
 
don't like CKAN?
 
user406009
You can look into asyc await through babel if you want even more .
 
That's a mod manager
 
9:47 PM
oh
 
Apparently CKAN needs a fresh install or something
so I figure I'll write a tool to back up my current install
 
user406009
@NathanJones Now for actual advice. Move as much code as you can out of the callbacks. Create helper functions.
 
xcopy
 
nicer tool
all cute and cuddly
 
use electron.
electron and react.
 
9:49 PM
no
 
aw
TCL/TK?
 
Angular
 
Hypercards
 
fuck xplat
 
m59
How would you split a string starting after first character? best way to do: /foo/bar, ['/foo', 'bar']
 
9:54 PM
Write your own split function to skip the first character?
That's how I'd do it, probably not the best
 
substr something
 
str.slice(1).split('/')
 
user406009
Remove first character, split, add first character back.
 
user406009
You could you a regex if you really wanted to.
 
user406009
But then you would have two problems.
 
m59
9:56 PM
I don't know that the first slash will be there. That's why it's kinda head-scratchy.
 
doesn't matter
1 min ago, by Lalaland
Remove first character, split, add first character back.
 
@KendallFrey cp
 
that
@SomeKittens windows
 
m59
True. It works. Just seems like there'd be a more direct way.
 
@KendallFrey del *.*
 
9:57 PM
ah, thanks, that worked
@m59 make one
 
user406009
@m59 I know the regex tempts you so.
 
m59
/(?!^\/)\/ I think
 
the \/ is useless
/(?!^)\//
 
!!> '/foo/bar'.split(/(?!^)\//g)
 
@Mosho ["/foo","bar"]
 
10:00 PM
omit g
 
m59
@KendallFrey hm?
 
@m59 mine is shorter
 
m59
oh, didn't see it
 
why does javascript/node.js get so much hate?
 
ours*
 
10:01 PM
in particular, on reddit a lot
 
Name one thing that doesn't get a lot of hate on reddit.
 
people hate how awesome it is. They are jealous.
 
cat pictures
 
It's very quirky, there are better alternatives
 
but shared code on client and server is worth the quirks.
 
10:02 PM
and it's forced down everyone's throats
 
every language is pretty quirky in its own way though
 
user406009
@RalphWiggum three main reasons. 1 bandwagon. 2 JavaScript is dynamically typed and some people don't like that (for good reasons). 3 JavaScript has some flaws ( like everything else, mind)
 
everyone who does web has to do JS, there is no non-transpiled alternative
so it's gonna get hate because anything that widespread will get hate
for various reasons
 
and there is a LOT of really shitty JS out there to turn people off.
 
user406009
10:03 PM
@RalphWiggum JS has some especially bad parts. See var. See null/undefined. See this.
 
@KendallFrey ;_;
 
I like 'this'. It's sometimes useful to be able to rebind this when calling a function.
 
user406009
@Luggage I think it's a little unintuitive. It has some benefits, but I would say the negatives outweigh.
 
you get used to it.
it's something that makes JS special. Like in special classes at school.
 
user406009
I do like how dynamic this allows us to easily add methods to an object.
 
10:10 PM
@Luggage this is a special case though, with different syntax, which sucks
 
10:21 PM
Also, I do all of the data binding myself, and it's really cumbersome right now. any suggestions on how to improve that?
 
user406009
@Callum I took your suggestion and tried out i3. It's better than gnome 3 in many respects.
 
user406009
(The only thing missing is that gnome 3 has a nicer gui for connecting to wifi, etc, etc)
 
@Lalaland I've been trying out Gnome 3, also. I'm not too keen on the applications menu being so far away without adjusting settings, but it is often nice to have a GUI.
 
user406009
@NathanJones What do you mean by "do all the data binding myself"?
 
@NathanJones Switch to Angular?
 
10:24 PM
Lots of $('#formElem').val(data.elemVal) type calls to fill form data, and vice versa to extract form data and submit
 
I'm sorry to hear that.
knockout is my suggestion for whipping up some data-bound forms. It's fits well in existing apps as you can use it just on a single form if you want.
 
The problem with i3 is the number of key combinations you have to memorise to become efficient,
 
user406009
It's not that many. Only like 5 important ones.
 
Hey has anyone ever gutted out node's http.serverResponse object so that they could store res.end into a new object and execute it later from that new object?
 
@JemiloII sorry?
 
10:29 PM
@SomeKittens this project doesn't really have a deadline, so could i start writing it with angular 2, and release the upgrade when angular 2 releases?
 
no deadline, why do anything at all?
go get a mojito.
 
@NathanJones Just write Angular 1 with ES6 and you're halfway there anyway
A2 isn't even alpha yet, I think
 
angular 2 is like duke nukem forever.
6
 
@SomeKittens this says it's in dev preview angular.io/docs/js/latest
 
don't hold your breath
 
10:32 PM
@Luggage Regular, public progress?
 
all staged. just like the moon landings.
 
@FlorianMargaine Well maybe it'll be more clear if i explain what I'm doing. I have a list of activeDownloads with their express response objects. When I cancel a download, I call the stored response object. The response object is fairly large, so I'm trying to create a smaller footprint.
 
oh
so long polling, if you will
why not websockets?
 
what's the fastest way to read/write files in node?
 
@Mosho readFile/writeFile
 
10:34 PM
I read the sync versions are faster
 
@Mosho write up a benchmark
should take five minutes
 
the res.end likely needs something from the res object to work. it may even be bound to it, in which case res will never garbage collect until you are done with the end() reference you keep
and even if this DOES work and you can let res be garbage collected while you wait to use .end() that could change during an update. I think you are barking up the wrong tree.
 
@SomeKittens there are many variables
 
but this one is mine
 
If you do no other work besides reading, use the sync versions
 
user406009
10:42 PM
One possible issue with readFile and writeFile is that they load the whole file into memory. There might be a more efficient streaming api?
 
user406009
(More efficient in terms of memory usage, not CPU usage)
 
user406009
Is angular 2 going to follow angular 1's design of being a large framework? (Including it's own dependency system, etc, etc)?
 
@copy I need to read a ton of files at the same time too
 
No, the goal was to slim it down and prioritize new ES6 features over internal stuff
 
user image
2
 
11:16 PM
Can some tell me why bob loses an arm in my prototype example? jsbin.com/huyuzimaka/1/edit?js,console
 
Line 8: The '__proto__' property is deprecated.
Line 13: The '__proto__' property is deprecated.
Line 17: The '__proto__' property is deprecated.
 
@Callum so he does have an arm it's just bugy?
@Callum your comment is not very useful
 
hmm ok maybe it is buggy thanks
will try Object.setPrototypeOf
 
Is there a reason you can't define it within the declaration?
 
11:38 PM
@Mosho Except it's not flux at all
That's its point
 
@Mosho One file at a time, use the sync versions
.
 
user406009
Reading multiple files at a time would be more efficient using the async versions.
 
@BadgerCat is drunk
 
11:54 PM
Lol
@copy too drunk to chat?
 
lemon is never too drunk to chat
 
DRINK!
 
@ʞɔᴉN actually, that is when I get offline.
But sometimes on hangouts I get more rekt than I'd like.
 
so responsible
 
user406009
We need to institute a "drink everytime php_purest makes a comment" drinking game.
 
11:59 PM
well
 
I do drink responsible, I never leave the house when drunk.
 
user406009
Or whatever his new name is now, penis or whatever.
 
i haven't seen him in a while
he changed his name?
 
user406009
Yeah. He kept the same profile picture though.
 
user406009
I forget all of the name, but it had "penis" in it.
 

« first day (1777 days earlier)      last day (3172 days later) »