« first day (2572 days earlier)      last day (2601 days later) » 

18:00
zippo is great for camping
Yeah, the wind resistance on them is top notch
Yea, I don't mind the smell, but a bic just seems to last longer, and I can buy a pack and spread them around the house/car.
I remember loaning my xikar out to some chick at the bar, worried she woudln't bring it back
not so with a dispoable.
@KendallFrey ohh fuck off he should have gotten points there
when Jimmy can just make up shit and assign points for other crazy shit.
@KendallFrey Wait, why didn't he get any points?
that should have counted.
but seriously. fucking love 8 out of 10 cats does countdown
british panel shows are the best
18:01
@rlemon since when can Jimmy just randomly assign points?
@Luggage Another point against the Zippos as well is the other bits of maintenance. You've got to replace the wick and the flints when they run out.
@KendallFrey I've seen him give points in conundrums for stupid shit before
@Trasiva Seriously? Have you never watched countdown, or...
'okay, we'll give you a half point'
@KendallFrey I've never even heard of it.
18:02
@Trasiva omg, wonderful show
youtube "8 out of 10 cats"
@Trasiva tl;dr the rules only allow + - * /
@rlemon specifically the 8 out of 10 cats version
ordinary countdown is kinda boring
@KendallFrey yea, that's why I said youtube it :P
yes
that's the one
yep that stuff
also 8 out of 10 cats does more than countdown, but countdown is their best
18:04
yea, they have other fun stuff that is more dominant over the holidays I think
but countdown is by far the most popular on youtube
@rlemon Have you seen WILTY? Some of the funniest shit from british panel shows
@KendallFrey possibly. got a link? I get into youtube binges with panel shows and just watch whatever pops up next
sometimes not catching or remembering the names
what is this madness
var
    exec = require('node-ssh-exec');
....
@rlemon again, youtube it, there's so much
18:05
is that?
here's one:
.... super eval?!?!
It's like eval for the modern age. Great find @KevinB
@KevinB the line break? or the package?
18:06
the linebreak
because the line break is atrocious
I want to access an FTP server in JavaScript, but don't want to expose my FTP details, how can I handle something like this?
it's not even reducing cols
@JoshHallow 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.
here's the complete code sample:
var
    exec = require('node-ssh-exec');

var
    // see github.com/mscdex/ssh2
    config = {
        host: 'localhost',
        username: 'root',
        password: 'root'
    },
    command = 'ls -alh';

exec(config, command, function (error, response) {
    if (error) {
        throw error;
    }

    console.log(response);
});
18:06
@JoshHallow try client side encryption
@JoshHallow I'm kidding though just do it on the backend
@JoshHallow you can't
@KendallFrey Just a tidbit, I still find myself searching for Phil Hellmuth compilations and bits on poker games; I'm still perplexed how entertaining watching him is.
not without a server component that would act as a proxy
@hilli_micha lol
I have the idea of just sending the request to a backend server like a PHP api but I'm not sure how because you can only pass text (parameters), its not like you can pass a whole file to a php api
18:07
@JoshHallow I mean are you sure it's not like you can do just that?
@JoshHallow sure you can
how do you think file uploads work?
I'm talking about the functionality to upload to ftp via php, is that even possible?
yes
why wouldn't it be?
JS (browser) => php (server) => FTP (anywhere the server can see)
Just like you use a database behind PHP from JS on the client.
@JoshHallow basically just do a file upload then use PHP's FTP docs to help you upload the file
18:10
@Vap0r thank you, I'll do that now.
good luck
Anyone has any idea what's the difference between jquery and jquery.core?
and/or slim?
well, slim is easy, it's missing a lot of stuff
like animations/ajax
never heard of .core
I have this codepen which is my attempt at making my own selection handler. There's a couple of problems I've been trying to wrap my head around.
@MadaraUchiha No, but I'mm willing to google it and give you a vague answer full of assumptions.
18:12
console.log($.fn.jquery) will tell you what's missing from the slim version
The selection mousedown mouseup doesn't work on a preexisting selection. Should I just store the selection var in a higher scope so I can do something like removeChild(selection) in my mousedown/mouseup?
I feel like I'm making it a little harder than it needs to be. Also making selections from top-left to bottom-right works. But making selections in other directions doesn't. Am I supposed to get the absolute value of the difference and then add that to the smallest x value in order to build my box, or is there a simpler algorithm?
haha @ShrekOverflow what a name
thanks that's my brother
Hi I cannot find my TypeError can someone have a look please document.getElementsByClassName('song').addEventListener('click', function() {
@utdev getElements.. plural
18:20
its plural, should it be singular?
No it returns a collection.
Use document.querySelector
It returns a single element
@utdev you cannot apply an eventlistener to a collection in one fell swoop. If you want to have a click event on every song you can loop and add, or you can add an eventlistener on an element containing all .song elements, and just check the target
ok I understand thanks :)
@KendallFrey oooooo
@KendallFrey I like you
Ok so I cleaned up my code. Now I have the issue where if I start my selection box "drag" action from inside the previous selection box the mousedown is never triggered. codepen.io/michaelrwiley/pen/wPaPvj
The only thing I can think of is putting a container around my image and adding my event listeners to that. Then I can appendChild the selection box inside the container, making it so that accidentally selecting the "selection" box won't ruin my coord calculation
Ideas?
So I'm guessing I should just punch myself in the crotch?
hi guys, could you plz tell what this means in JS: if (name_of_variable){}???
18:44
@Ilan 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.
@TylerH Careful with stuff like that, next week you'll have Spooky.JS
If you give people ideas.
@Ilan developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… describes it pretty well. It's called a conditional statement or logical operation
Basically, @Ilan, what that says is: if name_of_variable is true-ish then run whatever code is between the curly braces {}
@hilli_micha I'm already working on a functionalprogramming.js to scare people
@Vap0r I know that, I do not understand what (var) means
truthy and falsy are concepts that were new to me in JS. They are basically best-case logical evaluators
@Ilan that represents a variable holding a truthy or falsy value. Look at developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… for a description of variable assignment in Javascript
18:51
@Vap0r I think the reason your code isn't working is because the click event is never reaching img.
@McLemore nice guess, but alas, I have updated this: codepen.io/michaelrwiley/pen/wPaPvj
img is no longer used. I have no issues with direction of drag now, but I am still having issues with when I click within the already existing selection box
@Vap0r just set pointer-events: none in your selection css.
@McLemore unfortunately that doesn't work because I need the event to still work, but just to not use the wrong values supplied by the selection box
@Vap0r is this the behavior you want?
@KendallFrey I wish live backgrounds on your phone didn't kill the battery so much
that'd be an amazing live background
18:56
@Vap0r pointer-events: none doesn't mean the event just disappears. It just means the event would "go through" selection and actually hit the canvas.
@McLemore that codepen keeps refreshing for some weird reason without letting me edit or view
@McLemore I got it working. That works great. I used pointer-event (non-plural) and it wasn't working, doh!
Thanks for the help
No problem.
@Luggage The environment variable worked, thanks
user image
4
@BenFortune sorry for outing you
19:09
lol
lol
🚽
And so, for all it's grandeur and achievements, this is how the JS room died... Not with a bang, but with a lol
19:12
we've had longer lol chains
Is there a cleaner way to do this:
  let startX = coords.x.start;
  let endX = coords.x.end;
  if(coords.x.start > coords.x.end) {
    startX = coords.x.end;
    endX = coords.x.start;
  }

  let startY = coords.y.start;
  let endY = coords.y.end;
  if(coords.y.start > coords.y.end) {
    startY = coords.y.end;
    endY = coords.y.start;
  }
Math.max/min
let blah = Math.max(start, end)
ohhh, nvm.. maybe?
I still think you can use Math.max here, just not like I showed
!!lol
@Trasiva That didn't make much sense. Use the !!/help command to learn more.
Well, still like you showed, but paired with a Math.min
19:16
@rlemon How is that not a thing?
@KendallFrey man I was thinking way too hard about that
const startX = Math.min(coords.x.start, coords.x.end);
const endX = Math.max(coords.x.start, coords.x.end);
const startY = Math.min(coords.y.start, coords.y.end);
const endY = Math.max(coords.y.start, coords.y.end);
That looks a lot better
Thanks
Helper function wouldn't be an awful idea
I believe I already have this in a helper func, if by helper func you just mean a basic utility func so this garbage doesn't have to appear inline with the "meat" of the code
19:18
const [ startX, endX ] = flippityFloppity(coords.x);
const [ startY, endY ] = flippityFloppity(coords.y);
@Vap0r thanks for your help, going to learn.
@KendallFrey Not a fan of super tiny geometry based helper functions?
const flippityFloppity = ({ x, y }) => ([ Math.min(x, y), Math.max(x, y) ]);
function minMax({start, end}) {
	return [
		Math.min(start,end),
		Math.max(start,end);
	];
}

const { startX, endX } = minMax(coords.x);
const { startY, endY } = minMax(coords.y);
@Luggage damn
@hilli_micha huh?
19:19
I was busy typing
@rlemon almost, not quite
{ startY, endY } needs []'s
well, duh
among other things
@KendallFrey balls, ignore me, I was half focused on the chat and didn't think that through. I'll eat a cheese curd to atone for myself.
19:20
minMax() is s stupid name for a function, too
I think [] would be better than {} for the input
@Luggage lol
the input is already in an object with coords.x and coords.y, though
@Luggage Luggage is a stupid name for a person
4
That was pretty funny @Luggage
19:20
😢
@Luggage Even if it's a min-max algorithm?
Woosh
for real
His function is called flippityFloppity.
@Luggage would x > y ? [x,y] : [y,x] be quicker or more efficient than what you have above?
I have no idea.
I don't optimize.
fair.
19:24
That level of optimization is a little moot, I'm sure there are bigger fish to fry lol
@hilli_micha absolutely
an errant if check isn't a big deal when we still use jQuery
I mean, it's not a big deal regardless
but with jQuery, too
Naw, I primarily work in .NET, the GC is how I optimize my dude.
cc @KendallFrey @SterlingArcher
@hilli_micha I argued for us to take our image manipulation out of .NET and into JS
Was having issues with memory and .NET image handling. Also with users supplying 3.2 mb files and sending them
JS will allow us to be a lot more scalable in that regard and only send upstream data that is necessary
There are lots of good tools for that in .NET. I don't think you need to move to JS.
19:26
Yeah, a bit of throwing the baby out with the bathwater.
Not that it's wrong.. just saying.
I disagree
I mean I suppose you could tell the user "we won't upload this file because it's too big" but it's a lot simpler to just scale it down and send it
ohh, wanting to manipulate on the client to reduce the size of what you send can be very valid..
well, simpler for the user
as long as it works
@Vap0r At least have the courtesy to ask first, or at least notify.
19:28
It just sounded like you were moving to JS just for more performance. like JS was faster.
@Luggage for some reason image manipulation in both native C# .NET libraries and image manipulation in a couple other third party libraries I was using was nowhere near as efficient.
meh. using what? system.drawing or the newer junk in WF?
system.drawing
is this on a server app?
And I forgot the name of the third party library I tried
19:30
You are not supposed to use system.drawing for server app that don't have a UI
Server app?
like web server, windows service.
There's a web UI, but somehow I don't think that's what you mean
@Luggage Why not?
Microsoft said not to. It's just a wrapper for GDI which was meant for apps with a UI
they said it can get crashy
19:31
My two image operations, on a 3.2 mb file, took 26 seconds on average
the image tools in WPF don't haave that issue.
With the library they took anywhere from 15-17 seconds
With JS this took 2-3 seconds
I have used system.drawing on server apps and it's mostly fine, though
Well, it sounds like you are having better luck with the JS libraries, but there is no reason .NET can't be as fast.
I built a sort of terminal emulator with WPF once...
@Luggage that's what I believe too. I would be interested in looking at these WPF tools
We still have the file size consideration for transport over the network, but it would be neat to see why those tools sucked so bad
19:35
@KendallFrey the caution at the bottom: msdn.microsoft.com/en-us/library/system.drawing.aspx
I use some of the methods here for image downsampling: stackoverflow.com/questions/18922880/…
I'd like to congratulate the arm-chair warriors of the internet for being stupid enough to limit their own options: engadget.com/2017/10/31/…
@Luggage I think it has something to do with whether a GUI session is accessible, because session 0 can't touch most of that and will throw.
I had to work around it years ago when I was doing something foolish with named pipes and fullscreen graphics
19:59
posted on October 31, 2017 by Gibson Fahnestock

Notable Changes doc: add Gibson Fahnestock to Release team (Gibson Fahnestock) #16620 deps: update npm to 5.5.1 (Myles Borins) #16509 http2: The exposed http2 socket is no longer manipulatable (Anatoli Papirovski) #16330 module: support custom paths to require.resolve() (cjihrig) #16397 util: util.TextEncoder and util.TextDecoder are no longer experimental. There will no longer be a wa

3
20:11
posted on October 31, 2017 by James M Snell

Notable Changes Async hooks Older experimental APIs have been removed. [d731369b1d] #14414 Errors Improvements have been made to buffer module error messages. [9e0f771224] #14975 The assignment of static error codes to Node.js error continues: buffer: [e79a61cf80] #16352, [dbfe8c4ea2] #13976 child_process: [fe730d34ce] #14009 console: [0ecdf29340] #11340 crypto: [ee76f3153b] #16428, [df8

0
Q: Why === fails in this function (Javascript)

BAovWhy this function fails with (i === 'key') and works with (i == 'key')? function findKey(arr) { for (var i of arr) { if (typeof(i) === "object") { findKey(i); } else if (i === 'key') { return "I've got it!"; } } return "There is no key!"; } var arr1 ...

yuno1box
👏
really, well done.
wow that's incredible
I hope the light on the top works too
it goes off when baby takes a #2
Wonder what the red tube is for
20:25
good deal
oof should have guessed
What is Steam Link again? Something for streaming to your TV?
yea
gets audio and video from your pc, and pairs with a controller
so you can play pc games on your tv without moving your pc
I can play PC games on my PC without moving
valve pls
user1596138
I bought a truck
20:30
@Jhoverit What did you get?
@hilli_micha A truck. Geez dude.
@KendallFrey Canadians are literally the worst.
@Jhoverit congratulations man what kinda truck?
what's up, vanillajs enthusiasts?
jQuery download rates
20:33
:/
Now that I can literally walk on the "ceiling" I can finally be what I was meant to be... Spiderman! Happy #Halloween! #VITAmission
and appear to be the same tag
user1596138
And then I got a million messages for work
user1596138
@KendallFrey wait? Scotts sons name is Orion?
why am I only slightly surprised by that
yep
Skye and Orion
no coincidence there
20:44
I knew one of his kids was named Sky(e)
and he may have mentioned Orion before, and I just assumed he was talking about the constellation
@Jhoverit That is a very clean looking 1500, late 90s?
Oh he's been in numerous videos
He isn't as interested in being internet famous as Skye, I guess
user1596138
01 with 130K miles. Mint interior barely any body rust
user1596138
Already got duals behind a 5.9 lol new tires. I paid this dude 2800 for it haha deal of the winter
@rlemon The galaxy is on Orion's belt.
20:47
How's the transmission? Dodges of that era have always shooken me a little bit with their transmissions, even more so in the mid-00s
user1596138
Seemed fine lol I just have the keys rn
user1596138
Can't judge too much from a test drive. I need a ride to go get it after work
The biggest thing is just ensuring it's been serviced regularly from the start. If it hasn't been serviced at all to this point, I'd be a little spooked, but at 2800, you can only complain so much.
I am naming my kids (if I ever reproduce, likely not) in hex!
> Hey Deadbeef, come back here!
20:57
Can someone explain this syntax: gist.github.com/Xeoncross/7663273#file-ajax-js-L11
it looks confusing to me

« first day (2572 days earlier)      last day (2601 days later) »