« first day (2381 days earlier)      last day (2570 days later) » 
00:00 - 21:0021:00 - 00:00

9:12 PM
toString() gives you a string, so it must be the other type that isn't a string.
 
@towc I didn't say it was a good idea, but it's the easiest
A good idea would be to get more storage and resize your partitions
 
I'm still on that lukscrypt lvm
 
But you can just move your files and just ln -s them back
 
resizing is a nightmare I don't really want to face
 
It should be piss easy with LVM
That's the whole point of it
 
9:17 PM
should, except when you have lukscrypt apparently
I'm sure it's doable
and probably you can
but uuuuurgh
 
I'd rather just cheat
 
given, last time I tried was over a year ago
reading that I have a lot less "fuck fuck fuck"s in my head
still, I'd rather do it the hacky way
 
Also, you can use gparted
 
9:32 PM
@towc what % of the time do you have a working computer lol
 
tfw when you thought you were just getting to understand promises but you dontttttt
sigh, I need help T_T
If I'm using promise.all then I need to outline a promise inside of the function which resolves right?
 this.processSourceData = (source) => {
        return new Promise((resolve) => {
            for (let x of Object.keys(this.sourceData)) {
                if (x == source) {
                    this.sourceData[x]++;
                    resolve();
                }
            }
        });
    };
This is said function that resolves once it's found the right property to increase the count on
 
@Loktar well, it's not like it's not working 😛 and I almost always have at least 2 laptops with me, so I guess more than 200% overall? :D
 
and the corresponding implementation
for (let x of this.getAllArticles().values()) {
            ArrOfCalls.push(this.sourceFilter.processSourceData(x.getSource()));
        }

        return Promise.all(ArrOfCalls).then(() => {
            console.log("Collected Sources Stats");
        }).catch(e => {
            console.log(e);
        });
 
@BenFortune doesn't seem to work
 
Can anyone see why this never fully returns to ouput the stats?
 
9:39 PM
@towc ?
 
I remember having issues with that
it's not installed right now, I really don't want to go through that again
 
You don't install it, run it live from a usb
 
that's how stupid I was when I tried
thanks...
well, time to tidy my room and make sure I got everything set up
school tomorrow :/
last 3 months
I can do this
then I'll dye my hair rainbow, fuck my life up, and no one will be able to tell me anything about it
have a kid named haskella
adopt @littlepootis
move to sk
then legally change pootis' name to something I'll let the internet vote on. "Pootis McPootyface" is ok
 
anyone know how to create a .sock file in node?
 
Guessing it's not the same as a unix socket?
 
9:49 PM
it is
but it looks like server.listen does it for me
so nvm :X
I ran out of food
and it's a national memorial day
this is bad
 
@SiddharthNand Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
10:05 PM
Helllo, super simple question...
How to include such library in my front-end code?
All that require stuff...
They do not provide demo / test / example and I know this question is super simple... If only you know it...
 
it was written to be a back-end module
you could bring it to front-end if you really wanted to using a transpiler of some sort
but honestly, just get all of the function you need with a copy/paste, then change exports to an object like hashUtils
and you might want to see if there are front-end versions for all of the required libraries as well
or do some more copy-pasting
 
Eh, read the docs.
It tells you to use browserify, or you can use webpack or any front-end bundler.
 
^
it's late, I should go
 
Nothing like working on a Sunday night at 11pm
 
Didn't notice docs saying to use browserfy...

https://github.com/ethereumjs/ethereumjs-util/blob/master/docs/index.md
 
10:12 PM
> A collection of utility functions for ethereum. It can be used in node.js or can be in the browser with browserify.
 
Magic, thanks!
npm install -g browserify
Is it possible to just include it in <head> and share on JsFiddle or something?
 
You could always use RequireJS
Let me see if I can create a quick fiddle
Actually you can't, since it's requiring other NPM modules
 
browserify index.js -o browserified.js
Let's see if it works...
 
It should
It should give you something like: wzrd.in/standalone/ethereumjs-util@latest, which is coming from a browserify cdn
 
10:30 PM
Thinking...
I've included browserified script into <head>
Now trying to find... HAs it created some global object?
 
The CDN utility put it in ethereumjsUtil, I'm guessing it'll be the same
 
You found CDN version, how cool
On my local version `VM123:1 Uncaught ReferenceError: ethereumjsUtil is not defined
at <anonymous>:1:1`
CDN version works, my local not
Thanks anywa
 
It's probably just under a different global
 
Thanks Ben :)
I'll use CDN for now
And update the readme once I've found the answer
 
Wax
10:57 PM
Hello. Can somebody here explain how callback works in this code snippet?
var delay = (function () {
    var timer = 0;
    return function (callback, ms) {
        clearTimeout(timer);
        timer = setTimeout(callback, ms);
    };
})();
And then we call it like this.

    delay(function () {
        aMethod();
    }, 750);
 
What do you want to know?
 
Wax
When does the callback parameter get called here
 
750 milliseconds after you call delay().
give or take a few milliseconds if your CPU has free will.
 
lol.
 
Wax
How is this different to just using setTimeout?
I just found this snippet somewhere
 
11:09 PM
This delay function uses a closure to keep internal state "var timer".
And that remembers the id of the last timer, and cancels it.
So, if you call delay twice, before the first one fires, it'll replace it.
 
bah so someone trade marked my game name recently
not sure what I need to do now
so annoyed.
 
Wax
Ohh. Now I get it
Thanks man. :)
 
@Loktar grapple hero?
 
yea
 
shit
that sucks :(
 
11:11 PM
yeah pisses me off
they started in Feb of 2016 I guess with the trademark
I've owned the domain since like 2014
plus other stuff related.
 
I'm just going to move on and name it something different I guess
grappler hero or something idk
so stupid though
 
grapple heroine
 
heh the character could be a female
man I have the stupid logo and everything, bah
 
@Loktar NotGrappleHero?
with a Not hanging on top
like its monkey patched :D
 
11:17 PM
.noConflict()
 
lol
 
Symbol[GrappleHero]
 
idk I should have just trade marked it i guess
I sat too long on it totally oh well
just need to think of a different name
I mean I liked grapple hero, but I can think of something else, and actually trademark it
 
GrappleJack ?
of
Grapple Eyed Joe :D
 
@FlorianMargaine all eyes were on you guys today
so much news from the French vote
 
11:19 PM
half the developers I've met
 
wheres the hat?
 
I see nothing wrong with any of those.
 
the t-shirt is weird but yeah the rest is fine
@Loktar heh
 
Idk if I'd call it fine
 
You have to wear something different every day. Who has the time to make it match or have style?
If I could wear the same thing every day, sure.
 
11:23 PM
I mean
The very least you could do is wear jeans that don't look like trash
And wear glasses that aren't ugly
& don't defend velcro shoes
 
oh, velcro shoes
 
No one really wears velcro shoes..
 
sorry, that's quite terrible, yes
 
my 4 year old wears velcro shoes
 
So does my 2 years old
But you're supposed to move over this phase after ~14 yo
Oh, can I rant about the asynchronous IO on filesystems?
 
11:29 PM
That's also when you're supposed to move past walmart jeans
 
It's a sad state of affairs
Not sure if I should say sad or inexistent
You basically have no choice but to use an OS thread to use any IO syscall
Because they all block
This sucks so hard.
 
what should I do in this scenario:
1. start node process
2. create child processes
3. crash
4. children are alive
 
Abandon all hopes and retire
 
5. server dead
 
pkill everything
 
11:36 PM
and if I wanted to do it automatically?
 
@Mosho if server is dead, then children are too?
 
server dies slowly due to memory running out
 
Make sure parent process doesn't die?
 
but what if it does
 
Hook into sigkill and kill the child processes in there
 
11:38 PM
Then your code horribly sucks and you should feel bad?
 
Should be able to do that
 
@FlorianMargaine it's a wip
 
> hook into sigkill
lol
 
but it's the same server our prod runs in
 
Idr
 
11:39 PM
and I don't want to accidentally hurt it
 
There's something like that but I've never done it so don't make fun of me
 
I thought about saving all the pids in a file and kill those when the program starts
 
sigterm
 
@Meredith you can't catch sigkill unless you're pid 1
 
Sigterm is the one that can be caught
 
11:40 PM
Yes, but "crash" is probably not "I voluntarily stop the parent"
 
true
 
@Mosho pids are reused over time
 
right
cross reference pid with known program name then
phantomjs
 
Anyway, can't really help you without more details
And I'm going to bed :)
 
alright, gn
and thanks
I'll try working something out
 
11:42 PM
o/
 
I guess you could wrap your entire app in a try/catch then kill all child processes in the catch
 
hmm guess so
 
Would anyone know how i stay connected on the same node js server when going on another page on the same website?
 
@Mosho what OS
 
00:00 - 21:0021:00 - 00:00

« first day (2381 days earlier)      last day (2570 days later) »