« first day (1633 days earlier)      last day (3330 days later) » 

5:00 PM
Hi kitten
omg
yes
 
@pgaref
If someone is not in a chat and I ping him, will he get a notification?
 
user1596138
@rlemon Is that some completely wrecked version of Sublime?? Eww
 
-
 
user1596138
So much padding
 
but i got only 1 measly point for that one
 
5:08 PM
@CSᵠ aren't you sure you gave the wrong link?
because that's my solution
 
@Jhawins ew your face
 
user1596138
Eh it looks nice tbhb but I can't get over the amount of wasted space on the tabs and search bar :P
 
what is |= ?
 
user1596138
5:10 PM
@Catgocat A stern face
 
besides that
 
looks like a confused duck
 
lol
shorthand bitwise or
 
idk binary
:/
 
var num = 1.2;
num |= 0;
num; // 1
 
user1596138
5:11 PM
11
Q: What does a single vertical bar mean in JavaScript?

samrockonWhat does this expression mean in JS? Value |= this.value

 
ok
is it num = num | 0 ?
in that example
 
yes
just like a+=b is a=a+b
 
is it correct to call it shorthand or operator ?
 
rlemon do you play codewars?
 
nope
I make ascii art generators
 
5:12 PM
play play play play play play play play play play
:P
 
user1596138
@rlemon I might be stoned or drunk or something and not know it... But why does 1.2 become 1?
 
You all need to do CryptoPals
 
we have a whole Stack Exchange team
 
@Jhawins |0
floors it
 
user1596138
Oh I was thinking double ( || )
 
user1596138
5:12 PM
Nvm I know that
 
;)
 
!!>"ceil: 2.5 => " + ((2.5|0) + 1)
 
@CSᵠ "ceil: 2.5 => 3"
 
and that might fail ^
 
!!> ((2.9999999999999999999999999999999999999999999999999999999999999999999999|0) + 1)
 
5:15 PM
@rlemon 4
 
:D
 
@rlemon 2.9999999999999999999999999999999999999999999999999999999999999999999999 IS 3
 
user1596138
@CSᵠ false
 
!!> (3|0) + 1
 
@CSᵠ only in shitty floating point
 
5:16 PM
@CSᵠ 4
 
those are way too many decimals not to make it a 3
 
user1596138
!!> 2.9999999999999999999999999999999999999999999999999999999999999999999999 // in JS sure... this is 3.. fine
 
46 secs ago, by rlemon
@CSᵠ only in shitty floating point
 
@Jhawins 3
 
but yea, wait till it's 313 decimals and then
 
user1596138
5:17 PM
But it isn't.
 
is angular 2 trying to shake reactjs.. what more new complexities will be there i can't imagine
/me goes to sleep
 
@Jhawins I know the pain
 
!!> console.log( 0.9999999999999999 , 0.99999999999999999 )
 
@rlemon "undefined" Logged: 0.9999999999999999,1
 
yay numbers!
 
5:18 PM
!!> (2.999 + 1)|0
 
@CSᵠ 3
 
that's ceil ^
damn, but matters
 
user1596138
!!> Math.punchInFace(@CSᵠ, "Breaking maths")
 
@Jhawins "SyntaxError: illegal character"
 
what?
 
user1596138
5:20 PM
Punch you with Math (a friendly punch)
 
@CSᵠ now, given what we know from above.
explain this.
!!> console.log( 9999999999999998.99999999999999, 9999999999999998.999999999999999)
 
@rlemon "undefined" Logged: 9999999999999998,9999999999999998
 
and
!!> 9999999999999999
 
@rlemon dafuq.. thinkin`
 
5:21 PM
@rlemon 10000000000000000
 
so .999999999999999 == 1, and 9999999999999999 == 10000000000000000
but, 9999999999999998.999999999999999 == 9999999999999998
makes no sense
 
@CSᵠ codewars.com/kata/validate-sudoku-with-size-nxn badass kata, enjoyed very much
 
!!> console.log(9999999999999998.99999999999999,9999999999999998.999999999999999)
 
@CSᵠ "undefined" Logged: 9999999999999998,9999999999999998
 
SEE
mind=blown
 
5:22 PM
something todo with the mantissa
too much data to represent as an IEE754 float
that must be it
 
Why does ~NaN == -1?
Only ~0 == -1
 
@CSᵠ okay, then riddle me this one.
!!> 8.999999999999999
 
@rlemon 8.999999999999998
 
HWAT?!
:D
 
binary representing rational numers
!!> 1/3 + 1/3 + 1/3
 
5:24 PM
@CSᵠ 0.3333333333333333
@CSᵠ 1
 
!!> "test"
:(
 
@Catgocat "test"
 
oh
 
@Catgocat i can only send you here but it's mainly the same shit, give or take some shit
 
too much to read
X_X
 
5:27 PM
You ask a question, then complain that the answer is "too much to read"?
 
I'm not complaining
I'm just saying u.u
@CSᵠ Do the sudoku kata I sent you
 
@rlemon
!!> (1/3 + 1/3) === (1 - 1/3)
 
@CSᵠ false
 
^
!!> (1/3 + 1/3) === (1 - 1/3)
 
Hey, I've tried searching on Google and couldn't find an answer, so I thought I'd try asking here quickly. [node.js] is there any way to "reload" the process from within the code itself?

Like, function IwantToRestartThisCode(){
thisprocess.restart()
}

I know it's not an efficient method, but is it possible?
 
5:29 PM
@CSᵠ false
 
@CSᵠ yes I know how the math works. (or, rather, doesn't work)
Im just pointing out that it is retarded
 
@JordanRichards Open a new instance of the program and close the current.
 
FP ops should be handled with care rounding
 
@JordanRichards use a service like forever and invoke it from node
 
@Catgocat How would I do this within the code? "tail -f -c 256 -n 1 ../qconsole53333.log | node mod.js" to restart?
 
5:31 PM
@Catgocat you sent me The Look and Say sequence
 
@CSᵠ I sent you two katas.
 
require('child_process').exec('forever restart server', function puts(err, stdout) {
  // should restart
});
 
@rlemon :o
 
I use forever.js
it is pretty damn handy
 
Oh he uses forever
ok
I was searching the docs like crazzy O_O
 
5:32 PM
no I'm suggesting he uses forever
or something similar
 
That's a neat idea. There's no native support as such though, right?
 
There is, I think
 
sudo npm install -g forever.js
works on every distro I've used it on
might not be forever.js - might just be forever
 
Thanks.
 
5:34 PM
I found some solutions but the program would actually restart
 
but yea, regardless of what you use child_process.exec allows you to exec against the .. well .. child process :D
 
@CSᵠ The look and say sequence is kind of tricky, but easy if you deep think about it
 
@Catgocat liked my perfect power solve?
 
@CSᵠ pretty good
 
@rlemon So I'd need to make a parent process first, right?
 
5:36 PM
nope
node app.js
does it
 
Sweet. I'll test it now. Thank you so much.
 
@Luggage Nice to see u
 
What did I do?!
 
What do you mean
 
5:39 PM
I have an alibi for whatever I am being accused of.
 
so as it turns out making a refrigerator out of junk you have laying around your appt isn't as easy as it sounds
 
just havent seen u for a while (months)
 
Ohh, I've been around on and off.
 
Hey I just noticed that imgur gallery embed code is broken. Is anyone else aware of this?
 
Hmm, installed forever but the command was not found.

Error: Command failed: /bin/sh: forever: command not found

What do you think I should try?
 
5:43 PM
edit the path?
 
you install it globally? (-g)
ohh, or did it not find /bin/sh ?
 
ohh derp. Are we talking about an npm module?
 
yup
npm install forever -g
or, if mac/linux:
sudo npm install forever -g
 
@Luggage That was the issue, thanks!
 
forever will also auto restart the server if it crashes as well
kinda handy
 
5:47 PM
Where would I report that imgur problem though? It seems to be a global issue for all gallery embeds. e.g. <iframe src="http://imgur.com/a/xxxxx/embed"></iframe> does not work.
 
@rlemon fantastic.
 
Restarting a server when it crashes isn't necessarily the solution though >.<
 
@rlemon that doesn't sound easy at all
 
@PatrickRoberts welcome to nodejs :D
 
crl
@SterlingArcher I think Meredith tried to explain me it chat.stackoverflow.com/transcript/message/21918044#21918044
 
5:51 PM
@rlemon so is your refrigerator running?
 
@SomeKittens then he better go catch it
stupid tab complete didn't work the way I wanted it to
 
tab complete doesn't update your jokes.
:)
 
Oh, ouch..
 
@SomeKittens it was last night. cooled 3 degrees C in an hour
my problem is the heat sink I'm using is too small and keeps the heat too close to the aluminium plate used for the cooling
going to pick up some better thermal compound and new heat sinks and fans tonight
 
some ice cubes on the heat sink will solve that problem for good.
 
5:55 PM
I'm trying to make a 'swamp cooler' from a peltier a computer power supply and a sheet of aluminium
and some spare pc fans
and an arduino as a temp controller with a lm335 tc to read temp
all of this I had laying around.... but I need bigger fans/sinks so I'll probably drop $40
 
By the way, my gallery problem seems to have magically fixed itself
 
are peltiers more or less efficient that typical compress gas refrigerators?
 
crl
dick {
    /* some style */
}
 
I guess the imgur developer team noticed it
@crl that is an invalid tag
 
@Luggage probably less.
for cooling
for heating I think they are pretty efficient
 
5:57 PM
not moreso than a heat pump, i bet
 
maybe not
I really have no comparison
I just know like 80% of the voltage is used to heat :P
 
there is probably one of them "web pages" that lists those things, but I'd rather make assumptions and pretend I know.
 
@PatrickRoberts ha. ha. ha.
 
they are much more efficient heaters than coolers. but they work well for cooling (don't get me wrong)
@PatrickRoberts XML bro
all tags are valid tags
 
Oh I thought we were talking about CSS.
 
5:59 PM
also you can register custom elements in html
 
xhtml
and in the new HTML5 custom element crap
 
yeah but custom elements is usually bad practice isn't it..?
 
html4 transitional I don't think you can
 
well, you can in html5 and it's compatible bac to ie6
 

« first day (1633 days earlier)      last day (3330 days later) »