« first day (2056 days earlier)      last day (2890 days later) » 

2:00 PM
@FilipDupanović yeah, it's pretty stable
Has nodejs in its repos :D
Now that I have 12gig ram, do I allocate 24gb for swap?
24gb is wayyy too much.
enlighten me
 
Everything is a file, but they cannot be mutated.
 
@littlepootis what's the use case... can I replace tiny with it?
 
@FilipDupanović I was trying to use let's encrypt one in the beginning but then purchased the cheapest ssl from godaddy. Around 10 USD
 
@FilipDupanović workstation
You can use it as your primary
 
2:05 PM
If you had infinite RAM, there would be no need to swap.
 
@littlepootis ahh... yeah nixos (the nix package manager, basically) is pretty nice. atleast in theory.
 
@cswl using infinite RAM would require an infinite-bit processor
 
@AwalGarg their repos aren't
brb restarting
 
Hey guys good mornin
!!
 
@AndrewL That didn't make much sense. Maybe you meant: 3, i, d, y, !, ^, π, ?
 
2:10 PM
lol
 
god morgon o/
 
gut morgon
!!domyhomework
 
@AndrewL That didn't make much sense. Use the !!/help command to learn more.
 
dangit
 
woah this shits fast
!!tell Andrew sandbox
 
2:11 PM
@Andrew Please go and play in the Sandbox
 
@FilipDupanović Turns out someone deleted a post which resulted me loosing 25 rep :(
 
@KendallFrey Oh .. I think I meant to say enough..
 
@AndrewL ahh, you got to the bottom of it then! how did you figure out?
 
@KendallFrey VS scum.
 
Showed removed posts. I was on mobile and I finally got back on PC
 
2:13 PM
@Megaplex oh you poor sheeple
 
Gotta go
 
@KendallFrey I've never played the Planetside games, I'm just fucking with you.
@Mathematics Really? Great! Have fun vamping on a different language.
 
What is the syntax that looks like this called? const { users: { data } } = this... having a hard time googling things related to it.
 
destructuring
 
Awesome, thank you sir
 
So you can assign things to new variable names like this? const { users: { data: users } } = this.props? What happens when you have multiple properties called data?
 
@corvid this maps to keys and they'll be unique
 
@rlemon What happened with the antelope?!
 
it asked for a cantaloupe and then escaped along the ample slope
 
2:22 PM
Given a json object like { hash: { hash: { hash: { hash:{ whatIwant: 'a good day'}}}} is there a clever/elegant method to getting whatIwant ?
 
@rlemon I'm going to beat you to death with a wet noodle so then you and your girl can't elope.
 
@Megaplex the pope eloped with the hope some dope would scope out his cool hat.
 
!!micdrop
 
@Megaplex That didn't make much sense. Use the !!/help command to learn more.
 
How is that not a thing?
 
2:27 PM
@SuperNoob if you followed @corvid and this is clever enough for you: const { hash: { hash: { hash: { whatIwant } } }= obj;
 
But if hash is dynamic, then you would have to explicitly traverse it..
 
Right, hash is dynamic
 
good old brackets then
 
@SuperNoob get a library with a dig operator/func
github.com/ssube/koalaesce would have done it, but it's pretty out of date now
 
@SterlingArcher fresh wicks are always so nice.
 
2:38 PM
!!s/w/d/
 
@KendallFrey @SterlingArcher fresh dicks are always so nice. (source)
 
ooh, look at Kendall and his refrigerated dicks
 
i'm getting some weird babel + gulp behavior. I have a gulpfile.babel.js file that runs fine if the only plugin i enable is transform-es2015-modules-amd, but this project also uses es6 classes. when i enable transform-es2015-classes in my .babelrc, i get (function (exports, require, module, __filename, __dirname) { define(['gulp', 'gulp-ps-tasks'], function (_gulp, _gulpPsTasks) { ^ReferenceError: define is not defined.
import gulp from 'gulp';
import psTasks from 'gulp-ps-tasks';

psTasks(gulp, __dirname);
 
@NathanJones Are you using AMD modules?
 
@BenFortune this is for a project that runs in browser that includes require.js...so yes
i think babel is transforming my gulpfile.babel.js to AMD, not commonjs
 
2:45 PM
Given that it's transform-es2015-modules-amd, that sounds reasonable
 
don't enable AMD modules globally
enable them later in your gulp-babel run only
 
what's that js library that you can run and get the dom from webpages?
i thought it was called Jasmine but that's the testing framework
 
@bitten phantomjs?
 
@bitten are you talking about the browser-side or node?
 
oh nvm
 
2:49 PM
you might be thinking of github.com/cheeriojs/cheerio
 
@ssube i'll try it, but i don't think that's it. my gulpfile works fine when i enable amd globally and that's the only thing in my .babelrc
{
    "plugins": [
        "transform-es2015-modules-amd"
    ]
}
 
@NathanJones yes, that's it!
 
class expressions are not hoisted. how much more pointless can es6 classes be? oh are class statements hoisted?
 
thanks guys ^^
 
it's only when i enable transform-es2015-classes that it doesn't work
 
2:53 PM
@doug65536 they are hoisted, just like any function.
 
oh good. confusing doc I guess. thanks
 
user3119231
fun fact: is not possible to set an text input's width to 0 - 1px (or more) is remaining (even with outline: 0 and border: 0)
 
@Maurice jsfiddle.net/cu2za390 looks like 0 to me
 
@NathanJones what if you remove the modules-amd plugin and enable classes?
 
which browser?
 
user3119231
2:56 PM
 
user3119231
firebug
 
@Maurice border: none; outline: none;
 
Chrome devtools supports debugging NodeJS code natively now github.com/nodejs/node/pull/6792
 
you're putting in invalid css, which is being ignored.
 
user3119231
damn this dude is good. () => it was up the padding!
 
user3119231
2:57 PM
so padding have to be resetted as well
 
yes
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
user3119231
+ 25exp
 
pretty much the only 'reset' I apply
 
user3119231
css is like a woman. it is tricky and you have to know it for good results
 
I never trust default rules, because then I'm trusting the browsers to agree on them
 
2:59 PM
since css has no named constants, it is utterly asinine
 
@Maurice really?
 
@doug65536 it's getting variables
 
user3119231
@ssube no
 
Can you take actions on an opened window after it has been initialized?
 
3:00 PM
@rlemon lol me too. I apply box-sizing to :after and :before too.
 
@rlemon good! finally.
 
@rlemon that's just going to make it worse :(
 
@doug65536 yes and no, CSS shouldn't have conditional logic, and therefore doesn't really need variables.
 
it should have constants
 
pre-processors do a decent enough job of reducing me writing the same colour over and over.. adding logic to css is going to make a mess
look at all the insane hacks we have already
 
3:01 PM
ya some horseshit preprocessor. that's the answer. just preprocess everything into the language. #include <fuck_preprocessors>
 
that is a narrow view if you ask me. the preprocessor is just expanding out the variables first. if anything it is more efficient
 
I don't think we'd ever go back to not using a preprocessor, which renders having constants built-in somewhat useless.
 
@ssube it builds with just classes enabled
 
hello
 
maybe i'm not enabling multiple plugins correctly?
 
3:03 PM
@NathanJones how are you setting them up? I wouldn't expect the module one to work globally, though
 
anyone has any idea for some script js?
 
include stage-0 and move on :D
 
I've never used a preprocessor and CSS 4 variables are a nice addition.
 
@rlemon if the build tools for js weren't so clunky, I might agree with you
 
@doug65536 just because you've used a crappy hammer, doesn't make hammers a bad tool.
 
J.S
3:04 PM
does anyone know if Google Rank business vetted SSL higher than domain vetted SSL’s?
 
:P
 
I'm officially below 270lbs! I've lost ~4lbs since a week and a half ago!
 
o/
 
@rlemon stage-0 doesn't include transform-es2015-classes, does it?
 
@doug65536 the tools are pretty solid once they're set up. The lack of archetypes is a problem though.
 
3:04 PM
stage-0 includes a lot
stage-0 includes stage-1 stage-2 and stage-3
 
@NathanJones you need to include es2015 and stage-0
 
@NathanJones classes are stage-does-it-even-matter-the-browser-has-them-anyways
 
please don't repeat.
 
Short babel question; I've got Couldn't find preset "es2015" relative to directory and I can solve this by installing the preset in the directory it's moaning about, but I don't want to. I want to explicitly tell it where to find the preset. Can this be done?
 
3:05 PM
ok
 
I've heard that IE11+ implements chrome's remote debugging protocol
 
but enabling amd modules before you run babel on your gulp file will transform your gulpfile's import into a require
@RoelvanUden no, use the system correctly. :D
 
But all I see is this rather crappy proxy-like executable that make a translation
 
@ssube It's really quite silly to need to install Babel somewhere I don't even use it. :/
 
Is that all we can do? Or is there a more complete way?
 
3:06 PM
Such is life I guess..
 
@RoelvanUden if you're getting the "couldn't find preset" error, you are using babel...
 
I think I'll cry once I lose 10lbs
 
@ndugger get rid of that water weight
 
lol
water weight messes with my weight measurements a ton, so I measure myself on days where my diet is fairly even
I'm down to 169.8 as of this morning
 
3:08 PM
Yeah
 
you said you were fat
 
@ssube Further explanation: I have a app and web folder. The web folder contains code that runs fine in ES6-capable browsers. For apps on mobile devices, I use that app folder which is adds some configuration for the mobile device. There I bundle up web and babel it with browserify; but presets bitching telling me it needs to be in web :P
 
I'm fat
 
169lb is fat?
 
Not unless you're under 5'
 
3:08 PM
Wait.. I meant 269
My bad
269 is very fat
My current goal is to get down to 220, which is fair since I'm 6'1"
I started this off at 274lbs
 
@RoelvanUden do they have separate package.json files?
 
@SomeGuy but will builds be configured with --with-inspector by default?
 
@ssube Yeah.
 
I'm 129 lb :(
 
@ndugger I stopped drinking beer this week.
3lbs in 4 days
:/
 
3:11 PM
lol
 
@rlemon I'm not drinking at all during the week anymore. I thought I'd miss it, but since I'm working out, I'm not depressed enough to need it anyways, lol
 
apparently beer is the only problem :P
 
@doug65536 I highly doubt it, but it's simple enough to add to your build script
@ndugger Haha. Regular exercise can do wonders
 
I feel the best I've felt in a very, very long time
 
@RoelvanUden that's your problem.
 
3:12 PM
I'm actually happy, which is fucking strange for me
 
@ndugger ohh I'm just coming to the realization that beer is the only thing that was putting the pounds on me. I don't eat poorly and I get moderate exercise considering I can't lift yet
.. but it is so delicious :(
 
Yeah, if I do have a beer, I have to add it to my calories count, and it's way more than I'd like, so I opt for hard liquor instead.
I was able to budget for 4 shots of whiskey this past weekend
 
@ssube So sad. It's got its own tests and such. :P
 
Which was enough for a buzz
 
3:14 PM
@RoelvanUden each module is in charge of doing all the transforms on its own, so even if A depends on B, it won't modify B at all.
 
seems to indicate you can specify the preset locations
 
You should publish an ES5 version of B
 
or maybe I've missed the entire point
 
Well. I'll just add the silly preset in B.
It's not like it's going to do anything unless A wants to do something.
 
Anyone know of any atom plugin that can give info of the function based on cursor (caret) position?
 
3:16 PM
"Can I ask question? If you don't mind?"
"Sure."
"How high are you?"
 
@RoelvanUden and having the presets (and babelrc) set up for B could be useful later, if you need to enable different presets on B than A
 
I died.
 
if i enable the es2015 preset, can i override the modules tranformer to use modules-amd instead of modules-commonjs?
 
@deostroll what info?
 
like function name, and which line its on...
 
3:16 PM
@NathanJones add the modules-amd transform when you call babel from browserify/gulp
 
@deostroll that makes no sense... you can get that info by just looking at it
 
@ssube I get the idea, it's just way overkill, but I'll just keep it as is.
 
not if I am deep into a big function...
 
If your cursor is on the function, you are looking at it...
if you have a big enough function where you can't tell where it is and what it's called, you have other issues
 
@deostroll if you get so far into a function that you've forgotten what you're looking at, the function is way too big
 
3:18 PM
yes, unfortunately that is the case...
 
Fix it
 
the function is too complex, then
 
break the function up into a couple smaller ones
 
They can't be easily dealt with.
 
will gladly do...but its opensource scrabble engine written in js
 
3:19 PM
try to use jshint in the future
 
@Darkves Welcome to the JavaScript chat! Please review the room rules. Please don'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.
 
I once wrote a 4000-line function.
 
@littlepootis I once killed someone who wrote a 4000-line function.
 
function sqr(x) {
  // ... 3999 blank lines
  return x * x;
}
 
@rlemon I didn't yet, been busy. Will look soon
 
3:20 PM
it would be nice if there was some way to get around...
 
When I first started learning JS, I used to put everything into one big function...
 
@MadaraUchiha That's awful generous of you. You should have sent them to a Mossad rehabilitation camp.
 
or at least if there a way in atom that I could navigate to the begining or end of code block?
 
@deostroll that's probably a thing
 
in vim, it's a few keystrokes
 
3:24 PM
@ndugger I'm going to subway for lunch... what's a good substitute for mayo on a roast beef sandwich?
 
@SterlingArcher Mustard
 
@SterlingArcher I dunno; mayo is fine in moderation. Are you counting your calories?
 
mayannaise
 
@SterlingArcher I just ask for "as little light mayo as possible"
 
Dijon
 
3:25 PM
@littlepootis it's % in my atom, thanks to atom.io/packages/vim-mode :D
 
Yeah sandwiches are the only thing I get mayo on
 
You could do a vinaigrette, if they have that.
 
So maybe I don't need to cut it out if I have it maybe... once a week
 
I haven't been to subway in quite a while
 
But yes I am counting calories
 
3:26 PM
one thing some people do for small games is enclose the file in ;(function(){ and })(), a lazy way to prevent it from affecting things on the outside and to make sure people can't just copy-paste things into console to "hack" the game. So you easily get 4000+ lines of code in a function :P
 
yeah unless you eat at subway everyday
 
@SterlingArcher subway here puts on WAY too much sauce. if anything ask for light mayo on the side and just put it on yourself
 
I only have mayo with tuna sandwiches, when I'm trying to get a bit more protein
 
@ssube passing the plugins into the gulp-babel call fixed the problem
 
Not for the sake of calories, more for the sake that it helps me realize what I'm eating and how much
 
3:26 PM
@towc :P
 
so take that @littlepootis
 
Ohhh maybe a tuna sub is a good option for today
 
Nah, they put too much mayo in their tuna
Moderation
 
My lunches are 3x salad a week, and 2x subway basically
 
@SterlingArcher seriously. get sauces on the side. then you control how much goes on the sub
 
@rlemon good call
 
@towc that's part of what ;(... does. The other, more exciting part, is to prevent modules from passing one another.
 
@SterlingArcher As someone who worked at Subway for six months....avoid the tuna.
 
^ duly noted
 
@littlepootis fair enough
 
3:27 PM
speaking of tuna, I took a picture of my chunky cat this morning
 
My typical sub is a 6inch roast beef, onion, lettuce, green pepper, cucumber, cheese and lite mayo
 
she 'sits' like this
 
3:28 PM
I think it is hilarious
 
Immediately what I thought of
 
@ssube oh, I thought the ; was just to possibly end any minified files that weren't closed...
 
she is a fattie, not unhealthy (according to the vet), but a large old woman. when she sits like this she looks like a furry bowling ball
 
@towc that's essentially it, yeah. If you cat two lazy IIFE modules and one is missing the last semi, it will pass the second module as a parameter when invoking the first.
 
3:29 PM
It will break your code and the error won't give you any indication.
it's really annoying
 
@ssube ooooh you mean that
 
ok, yeah
 
but how to do all that?
 
@deostroll or just use vim-mode
 
3:30 PM
is that a plugin?
 
I mean, if you consider vim bindings optional.
 
ok, time to watch the so spoiled S3E1 of Silicon Valley
 
Is anybody up to date on Archer season 7?
I almost cried laughing when he got waterboarded
 
ohhhh whaaat? They're at episode 6 already? I have some catching up to do
 
yeah
@towc they're at 9
 
3:32 PM
fuuuuuuuuuuuuuuu
 
-1
Q: Why i cant call my function when i put a paramether

fvukovicCan somebody tell me why when i put "3" for paramether in function a() doesnt work? is that a wrong way or? help please...Function function call

 
@SterlingArcher :(
 
@ssube because meth
 
@towc what kendall said lol
 
it's a joke right?
only 6?
 
3:33 PM
What
 
anyway, there goes my time allocated for revision for the exams
 
!!afk eat fresh, fuckboy
 
Guys, question for the more technically inclined
 
@littlepootis I called a function with a parameter once. Woke up three days later, missing an arm, in the back of a lifted truck, heading for the border from the wrong side.
 
What company would you recommend buying a toolbox from? (as in a physical toolbox)
 
3:35 PM
@Loktar So after playing a couple hours of Doom, id software is still my favorite dev team.
 
@MadaraUchiha Sears?
That's where I get all my tools.
 
@MadaraUchiha Craftsman makes some really nice ones. I have one at home.
 
and Sears sells Craftsman
 
the speed is real
 
There's still Sears? All of ours closed.
 
3:37 PM
free ram is not wasted ram
it's used for caching shit
 
@MadaraUchiha size? purpose? and don't say "to hold tools"
because there are many different kinds of tools and boxes specific for them
 
@rlemon I'm looking for something to gift to my father
 
@Megaplex we've got a few
 
@MadaraUchiha standing or portable
 
He's been complaining that we don't have quality tools around the house (and he's right)
 
3:38 PM
@MadaraUchiha are you thinking man-portable or with wheels?
 
honestly. standing tool boxes are often more a pain (and very expensive) a good portable one and a good tool bench is what you want
probably.
 
@ssube Probably portable
I think one with wheels would be a pain, and also not very accessible to the outside (when he needs to fix something high up from the outside, say)
 
I'd agree about portable ones. Just get a big red craftsman one.
the tower ones are good if you have a bunch of small tools in a garage, but otherwise, eh
 
@MadaraUchiha find a good 3-tier mobile toolbox
you get portable (hand) and wheels
or two tier
I have one (was looking to find it specifically but cannot)
 
@Megaplex yeah man the new doom is great
 
3:44 PM
@Loktar I fucked up terribly though, I decided to start on Nightmare.
Unlike most games today...Nightmare means Harder. Than. Fuck.
 
@Megaplex I started TW:WH on easy and it's still not easy. :\
I'm never going to get to Doom though, this game is taking forever
 
@ssube TW:WH?
 
@Megaplex Total Wall: Wallhammer
 
Oh
 
@Megaplex LOL
you're crazy dude
 
3:45 PM
Toadal War: Waterhammer
 
I miss Total War WH :(
my computer is all packed up
I miss it so much (packed it last night)
 
@Loktar it's so good
 
@Loktar My ass said the same thing after the demons got done reaming me in the first encounter.
 
I started as the vampires, which was a mistake
 
LOL
@ssube hah me too
I got wrecked by Chaos
 
3:46 PM
not because they're bad, but because I'm much better at ranged combat
 
I won't be able to sit on bar stools for a loooooooong time.
 
Chaos got wiped out a few times so far and I'm down fighting the border princes
 
function Animate(){
ctx.clearRect(0, 0, 1900, 800);
for(var i = 0; i < 80; i++)

						{
								asteroids[i].Draw(ctx);
								asteroids[i].ay += Math.floor(Math.random()*7);
						//		asteroids[i].Draw
						}
						lander1.Draw(ctx);
						//zorgt ervoor dat constant loopt
			setTimeout(Animate,15);
				}
 
I've got this piece of code, buut I want the loop to run indfinetly
Because I want to keep spawning meteors until my characters die
How do I go about that?
 
3:48 PM
nice white space, bro
 
I was thinking the timeout would do that because the lander.1.draw(ctx) runs every timeout
 
> I want to keep spawning meteors until my charavters die
 
so you want the for loop to be a while loop but you want to break it out and still do animations?
make it a separate recursive function and call them in parallel.
 
there's the problem
 
You have more problems than that, like your code style
 
3:49 PM
separate your logic loop from your render loop
 
while (isAlive) {
 	//Do Shit
}
 
@MaartenWachters you want requestAnimationFrame instead of setTimeout
 
hi, is anyone out there with experience in sending requests to asp.net code in a server, regarding submission of textarea data and input files?
 
@pemq Welcome to the JavaScript chat! Please review the room rules. Please don'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.
 
@CapricaSix thank you
 
3:51 PM
function update() {
  // spawn shit here
  setTimeout( update,  deltaTimed);
}
function render() {
  requestAnimationFrame(render);
  // render all sprites here
}
 
In that snippet, what does deltatimed do /stand for?
 
here goes, how come I stop a loop, when sending an ajax request to asp.net code in the server? I have to send text data and some files (up to 3), everything with sending and receiving them works fine the first time, but the second the request repeats it self twice, the 3rd, 3 times, an so on. any help out there?
the question in details is here stackoverflow.com/questions/37571447/…
 
@MaartenWachters however you want to control your update times
 
thank you very much in advance
 
if you even care
 
3:53 PM
!!afk New employeed luncheon.
 
Not sure if I need to honestly
 
so then fix it to like 30 or 60 updates a second
 
Sorry to bother once again
But the rendering is the same as drawing?
 
but really. look into delta timing. google "delta timing + programming"
@MaartenWachters yes
 
Will defintely do that
Very new to JS and finding it difficult. Thanks buddy
 
3:56 PM
good luck
!!afk lunch and pants
 

« first day (2056 days earlier)      last day (2890 days later) »