« first day (1872 days earlier)      last day (3062 days later) » 

4:00 PM
maybe the command should be absolute then
 
Well now I want to dive into pizza boxes Scrooge McDuck vault style
 
@BartekBanachewicz It seems like the obvious answer...
 
@KendallFrey well it doesn't work
 
"it doesn't work" doesn't work
 
@KendallFrey it performs relative lookup based on host process CWD
in general it becomes a huge clusterfuck when relative paths are involved, I had it working with absolute paths before
 
4:01 PM
not for me
 
@KendallFrey what
 
I assume you mean spawn("cmd", args, { cwd: "cwd" })
 
yeah kinda like that
 
which would run ./cwd/cmd with the cwd set to ./cwd
 
its ["cmd", args...] but yeah
@KendallFrey no, it won't run ./cwd/cmd
 
4:03 PM
wut
 
it'll run ./cmd
 
not for me
 
well does for me right now
what node version are you on
 
v4 or whatever it was post-merge
2 mins ago, by Bartek Banachewicz
its ["cmd", args...] but yeah
this is what's confusing me, because that's not what the docs say
 
@KendallFrey wait ok nvm
you were right on that, sorry
 
4:06 PM
@BartekBanachewicz did you try reading the docs?
 
@BenjaminGruenbaum No, the first thing when my code, blindly formed by copying shit from the internet, didn't work, was to come here and ask this question, why?
 
@BartekBanachewicz are you on windows?
why?
 
@FlorianMargaine yes
 
why are you hurting yourself?
 
4:07 PM
@BartekBanachewicz oh ok, that makes sense. :D
 
So what you're saying is that spawn("cmd", args, { cwd: "cwd" }) will run ./cmd but spawn("cwd/cmd", args, { cwd: "cwd" }) will run ./cwd/cwd/cmd?
 
@FlorianMargaine I'm on Windows, Windows is the bomb.
 
@BenjaminGruenbaum of course I read the docs, they say nothing on that
 
@BenjaminGruenbaum yeah. Bombs explode, they're not really good.
 
4:08 PM
@KendallFrey wait actually.
 
@BenjaminGruenbaum Windows is the bomb that took down the WTC
 
The cmd I'm running is node
 
Because y'know, jet fuel
 
what's changing is the js path
 
4:08 PM
now, does cwd of node binary change its lookup rules
it should.
 
node would look for the js file relative to the cwd of the node process
obviously
 
I still maintain that you should rtfm, but ok. Yeah, it's not obvious either.
 
okay I know what the problem is I think
I'm accessing the path from both the child process and the host process
 
node looks in the directory of the module for node_modules and goes up from there
 
I think the difference between their cwds is what's fucking me up
 
4:10 PM
room topic changed to JavaScript : Topic: JavaScript, ECMAScript and Zirak. Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentation™ Helps. WooHoo ES2015 (ES6) released! Now featuring a normal room title! [ecmascript] [es6] [javascript] [kendalls-mom] [nodejs] [promises] [rtfm] [sometimes-coldfusion]
 
crl
why the hell it doesn't give me the bloody actual display jsfiddle.net/crl/0803vkd4/8? it should be none or table-cell
 
!!nudge 20
 
@MadaraUchiha Nudge #3 registered.
 
@FlorianMargaine Windows is convenient for me. I have every tooling from both posix and well, windows ecosystems I need.
My linux-using teammates are considering running VMs now just to get rid of eclipse and use VS instead
 
<--- Last few GCs --->

    3548 ms: Scavenge 964.1 (1001.3) -> 964.1 (1001.3) MB, 0.0 / 0 ms (+ 1.6 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
    3762 ms: Mark-sweep 964.1 (1001.3) -> 580.4 (618.8) MB, 214.1 / 0 ms (+ 1.7 ms in 2 steps since start of marking, biggest step 1.6 ms) [last resort gc].
    3868 ms: Mark-sweep 580.4 (618.8) -> 580.4 (618.8) MB, 106.3 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================
What the...
Never seen that before :P
 
4:11 PM
fuck
is that javascript? :o
 
Yeah, node
 
process out of memory
 
@MadaraUchiha Nudge #4 registered.
 
oh ok
because it sounded like a server crash
 
oliver@db0 ~> node -v
v4.1.1
That could be the reason though
 
4:12 PM
according to the docs, node does not use the cwd for loading modules at all.
 
whatever, I'll just get rid of relative paths
 
crl
fuck relative paths
 
Ugh, why does Notepad ++ have to suck so much at regex?
 
!!s/ at regex//
 
4:22 PM
@BartekBanachewicz Ugh, why does Notepad ++ have to suck so much? (source)
 
It works well for most of what I use it for.
 
Jon Lajoi is a mastermind
 
@Trasiva except regex? :P
 
crl
  for (var i=0;i<10;i++)  // < would you hate someone that does this? ie no {
    for (var j=0;j<10;j++){   // seems fine to me

    }
 
@BartekBanachewicz Yea, I had to turn over to Sublime Text to get that to work.
@crl Hate what, that they didn't wrap it in a bracket? Yes.
 
4:25 PM
@crl yes, shit
 
crl
meh :(
 
@Trasiva use ST3
 
@SterlingArcher That's what I'm using, yep.
 
@crl but not only for the missing {
 
:D yay
 
crl
4:25 PM
@BartekBanachewicz ah ok :)
lol
 
@crl no, omitting braces for single expressions is a style choice. I won't hate someone for having a choice.
 
@crl raw nested loops with indices that look almost the same is a recipe for disaster
and I wouldn't omit braces for a single statement if it spans more than one line (e.g. has a child block)\
 
crl
@AwalGarg <3
 
Does anyone indent within the opening and closing of language tags or is that just me being weird?
 
what language tags
 
crl
4:28 PM
@BartekBanachewicz I see what you mean, but well..
 
@crl but what? I'm curious.
 
@MadaraUchiha can come to miaou (or a private room on this chat, now that you are mod :P) if/when you have time?
 
I don't know, let's say <?php> or <script>. I usually indent after these openers.
 
@SterlingArcher i was going to install ST3 after removing ST2. But i have decided to try Atom. That's a new world
 
> VAHGINA YEAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH‌​HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH‌​HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH‌​HHHH
lmfao
 
4:30 PM
:/
 
@MadaraUchiha nudge
@MadaraUchiha nudge
 
@CapricaSix Thanks sweety.
@CapricaSix Thanks sweety.
 
crl
@BartekBanachewicz but.. it seems ok for iterating a matrix, a .forEach would be identical
 
@Mada yw
@Mada yw
 
@SterlingArcher That's amazing.
 
4:34 PM
Man this is a rough week. My technical prowess is severely lacking.
 
@BenjaminGruenbaum if/when you have some time for some guidance, would really appreciate if you can come to chat.stackoverflow.com/rooms/96702/… :)
 
Why downvote? You know it's true. — Max Mastalerz Feb 4 at 13:33
Never forget this mans confidence lol
Da fuq, why do I always get endorsed for PHP on linked in
 
@SterlingArcher Because PHP is like that case of herpes you've got. You think you've gotten rid of it, and it comes back full force when you least expect it.
 
@AwalGarg I requested access
 
I use PHP maybe once a year
It feels like drug relapse tbh
very comparable
 
4:39 PM
@BenjaminGruenbaum Granted
 
@SterlingArcher At least it isn't CF
 
@SterlingArcher So what you're saying is....you're a masochist.
 
you're a bad person
 
i have to google coldfusion
 
4:40 PM
RESPECT THE PUFFIN
 
Oh man, the puffin didn't even click.
 
@SterlingArcher CF was the first thing I learned :/
 
@bluefeet it was my first "professional experience" language
 
> professional coldfusion
 
I has perks, but more downsides (like 1 index arrays, overhead function syntax, etc)
 
4:41 PM
@SterlingArcher it was also the worst
 
It's perks of query object management, spreadsheet and document tags, and simple loop syntax made it better than PHP IMO
Oh, and its debugging admin panel is literally cancer
 
one indexed arrays would skrew me up so much in lua
 
@bluefeet I was telling Sterling last week, one of my first tasks at my first shop was to take all the Coldfusion pages and convert them over to PHP.
 
Because array[0] is still a valid query
 
I hated logging into CFAdmin because it wouldn't accept blob data or some stupid shit
 
4:43 PM
@Cereal Returns null is all, right?
@Cereal I haven't used much LUA since my MUD days. : /
 
@Trasiva nil, yeah
 
@bluefeet lol
 
@Cereal some micro-controllers/interfaces starts their array with index 1. But programmers are used with starting from 0 and wondering why it fails to run.
 
I use lua with love2D
 
@Cereal Right, nil, not null. Derp.
 
4:45 PM
a co-worker keeps saying "it starts from 1"
 
@Cereal I tried Love too, never really got in to lua though
 
I've made a few games with it, for gamejams.
I enjoy it well enough
 
lol'd
 
I guess they adapted for the tusk at hand.
 
> Pick on a pig your own size!
 
4:53 PM
Err guys I have this in base class
 
@SterlingArcher Dude's lucky she didn't take a bite out of his ass.
 
cloneNode(){
    /* some stuff */
    return new (this.__proto__).constructor(...children);
}
which allows cloning of all derived nodes.
I was wondering if there is a better ES6isque way of doing this ?
 
crl
(ecmascript)sixisque is pretty hard to pronounce
 
@Abhishrek getPrototypeOf
 
@Trasiva dude your puns are so under-appreciated in this room
 

« first day (1872 days earlier)      last day (3062 days later) »