« first day (2738 days earlier)      last day (2203 days later) » 

1:03 AM
went to get something to eat
winter af
 
1:16 AM
Law is annoying.
 
I wish there was a way to see how much factorio I played today
 
@KendallFrey I suspect you would regret that, if you saw the number, you'd be like "Damn.. I could've been productive" lol
 
I was productive
 
comparing array equality using JSON.stringify... from [0] really dumb to [10] sort of fine
 
All my science now runs on raw prod 6
 
2:16 AM
@jAndy [0]
 
it seems the quick and easy solution tho
but I guess, cpu-cycle wise, its anything but quick
 
quick and easy is the enemy of proper
 
I'll tell you what I've taken not having a desk for granted
 
implying it sucks to have a desk now?
 
opposite
 
2:20 AM
do you have your computer yet?
 
@SterlingArcher what did you have before?
 
Negative
@KendallFrey I sat on the couch lol
 
with a laptop on your lap?
 
Yup
the tower shipped yesterday, eta tuesday
 
laps are, like, the worst spot to put laptops
 
2:24 AM
lol
this chair is so comfortable
 
did you buy something like a Dxracer?
 
1. they're soft, so they tend to cover up cooling ports 2. laptops get hot, and a hot lap means hot balls, and hot balls are not healthy balls
 
@hilli_micha a what?
@KendallFrey can confirm
 
@SterlingArcher A dxracer
 
The offical chair of twitch streaming
 
2:25 AM
lol
 
oh lol
similar? not the same brand
7 hours ago, by Sterling Archer
user image
 
Ah, Welfare Dxracer
I get you
 
I like the colors but I'm happy with this lol
not like a chair makes the gamer lol
 
Only problem I have with off-brand/cheaper chairs is they simply don't last.
I go through chairs like crazy, I imagine because I rock a lot in my chair.
 
Is it easy to get chairs with lockable wheels?
I'd like a nice chair for racing but if they have wheels they'll just slide away when I push the brake
 
@SterlingArcher it doesn't have wheels
I don't want an extra chair for racing if I don't need it
 
I'm putting my foot against the wall with my chair, and applying the same amount of pressure I would for my cars brakes, it's not moving.
and I've got a basic chair with wheels
But I also have it on a textured mat, so that's probably helping some.
 
you must have a lot of friction
ah yeah that helps
mine is on linoleum
 
Yeah, I think if you got a mat (or a rug tbh) you'd be okay.
 
lmao it's called the thrustmaster
 
2:32 AM
You've never heard of thrustmaster? lol
 
I wonder if flight games are fun
 
Flight games are a load of fun.
 
thrustmaster is a big name in gaming controllers
 
But, it's not for everyone.
 
I love my leather thrustmaster
 
2:33 AM
@SterlingArcher Nothing quite like trying to land a little two-seater on a moving bus
I've played a lot of FSX lol
 
I haven't played FSX, but I played earlier MS Flight Sims and sunk a lot of hours into Orbiter
 
Orbiter is a great engine but not such a great game
also finicky as Linux
 
It absolutely needs mods to be genuinely enjoyable.
 
I tried 2016 but couldn't get the sound to work
 
Otherwise, it's painfully dull.
 
2:36 AM
imagine, in 2016, a game where sound is an add-on
 
Lol, yup. Still is iirc, I know it was the case with 2010.
 
yeah
Orbiter taught me orbital mechanics
 
iirc, I had sound working in 2016, but the thruster sounds wouldn't work. Only music once you entered into space and the chatter/cabin noises when you were in first person view
 
I still remember that great rendezvous planner and I wish KSP had one like that
 
hehe, I made this file into both valid terraform (so format-on-save works) and a valid jinja template to produce more terraform
 
2:38 AM
I spent a lot of time in Orbiter leaving the atmosphere, picking a random direction, turning my thursters to max, and cranking time advance to max and seeing how close I could get to other bodies in the Solar System
 
Does anybody really use those macro keyboards?
 
Plot Twist: Never got fucking close.
 
@hilli_micha I never got further than the moon
 
Yeah I could get to the moon if I took it really seriously and tried, but never anything fancy beyond that.
Using one of the applicable scenarios of course.
Otherwise, I would download mods that contained ships from TV Shows/Movies/Games and download other Star Systems and dick around in those.
 
 
2 hours later…
4:24 AM
@SterlingArcher I do. I bind those keys to chat commands on custom servers.
 
@littlepootis seems interesting, looks comfortable
 
4:41 AM
@SterlingArcher I go the opposite route
mostly 10 keyless
 
4:56 AM
I am using window.scroll and was implementing load more data on infinte scroll
Here is what I am using this and everything works good
$(window).scrollTop() == $(document).height() - $(window).height()
The problem is more data doesnt load when I take my scroll bar down to bottom but instead when I take my scrollbar up to top then data is loaded
here is the tutorial I used mostlikers.com/2016/05/…
 
Guys, I have a problem doing input date auto formating. I found a solution that I published here stackoverflow.com/questions/49837905/…. Now I want to avoid spaces before and after slashes, any hint ?
 
@AlouaniYounes 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.
 
 
1 hour later…
6:24 AM
hello all I know it's out of topic but can I ask typescript problem in here?
 
 
1 hour later…
7:55 AM
Hi JS professionals,

What are the 3 numbers i.e 3,2,1 or 2,3,1,...etc that always the sum will be 6 ? What we call that algorithm ?
 
There are infinite combinations of 3 numbers that add to 6.
In computer science, the subset sum problem is an important problem in complexity theory and cryptography. The problem is this: given a set (or multiset) of integers, is there a non-empty subset whose sum is zero? For example, given the set {−7, −3, −2, 5, 8}, the answer is yes because the subset {−3, −2, 5} sums to zero. The problem is NP-complete, meaning roughly that while it is easy to confirm whether a proposed solution is valid, it may inherently be prohibitively difficult to determine in the first place whether any solution exists. An equivalent problem is this: given a set of integers and...
Or you're looking for something like this: geeksforgeeks.org/find-a-triplet-that-sum-to-a-given-value
(3,2,1) and (2,3,1) are permutations
 
the example considers negative values, consider positive values only, I think there is finite combination.
not permutation.
probabilities for any number of the 3 is: 0,1,2,3,4,5,6 right?
digits are 3
so: 7*7*7 is number of combination where 7 is the ( 0,1,2,3,4,5,6) probability
no, it shouldn't be 7 in all.. sorry
at least 6+6+6 sum is not 6
 
8:14 AM
7*7*7 is 37 quick math
 
8:59 AM
@Neoares Probably true for some number base.
 
9:17 AM
Mornings v1.2.9-alpha
 
 
2 hours later…
10:52 AM
ohai
 
O/
 
11:21 AM
Mornin
 
11:55 AM
@BenjaminGruenbaum Did you see Einav's Gand Galilee's trial liveblogging?
(Hebrew only folks, sorry 😬)
 
I did not
Will look right now
 
12:24 PM
Trying to get value after click but not able to get that Here is my code
$(".filter").click(function(){
		   $(this).data('clicked', true);
		    filter_value = $(this).attr("data-filter");
		});
		if($(".filter").data('clicked')){
			alert(filter_value);
		}
 
@MadaraUchiha excellent
 
AI is much cleverer than we give it credit for: docs.google.com/spreadsheets/d/e/…
Genetic debugging algorithm GenProg, evaluated by comparing the program's output to target output stored in text files, learns to delete the target output files and get the program to output nothing.
Evaluation metric: “compare youroutput.txt to trustedoutput.txt”.
Solution: “delete trusted-output.txt, output nothing”
 
12:39 PM
@AbhiBurk what element are you getting the value from
 
anchor tag @HelloWorldPeace
 
the URL?
what happens when you click, any errors?
 
<a href="#" class="filter" data-filter="found"><i class="icon-th-large"></i> Found</a>
Here it is and no error on onClick
 
@BenjaminGruenbaum Have you read all of it?
 
what data are you try to get from the <a>? the URL?
 
12:42 PM
The part where the explained to the judge where memes on Facebook were XDD
 
@Loktar just looked at a radar of snowfall, and the UP getting slammed so hard. How is snow where you’re at?
 
oh ... data-filler
 
yes data-filter
 
@MadaraUchiha the part where she said the police came after her after something that wasn't illegal back then
Oh, and claiming to have invented the 4chan meme
 
@BenjaminGruenbaum That was the best one imo
 
12:44 PM
"Or her husband"
Nice
 
@KendallFrey I'm a bit peeved that the game itself isn't mentioned in the table...
 
which game?
 
@KendallFrey exactly!
They're each trying to beat a game
 
the game is the left column
 
But the game each is trying to beat is not mentioned.
 
12:46 PM
is it not?
 
@rlemon Noper
 
then why is tetris listed?
 
That's the feat being achieved
 
you may have a column collapsed
 
@MadaraUchiha Most of them give a general idea of the problem trying to be solved
 
12:47 PM
@rlemon That's what I have
Do you think there's a game called "Aircraft landing" or "Bicycle" or "Boat race"?
 
probably
 
The ones whose videos are mentioned show different names
 
@rlemon The ED example is titled "Superweapons". It's not the game name, it's just a title
 
> In an artificial life simulation where survival required energy but giving birth had no energy cost, one species evolved a sedentary lifestyle that consisted mostly of mating in order to produce new children which could be eaten (or used as mates to produce more edible children).
lol
 
qbert, sonic, tetris, soccer. forgive me for thinking those are games.
 
12:49 PM
They are, but that doesn't mean all the others are
 
@rlemon Only because they can't be described in terms like "aircraft landing" or "boat racing"
 
@AbhiBurk is this the code?:
//if element with class .filter clicked
//set attribute 'clicked' to 'true' <-- problem may be with this statement
//assign attribute 'data-filter' to variable 'filter_value'

//alert variable 'filter_value", if filter class item has attribute 'clicked'
 
can u just elaborate with my eg.
 
Qbert isnt a game; it’s a way of life
 
Anyone know how to access the cursor/caret of an input element?
I think using a Selection obj is part of the answer but just can't get it to work on inputs specifically.
 
12:57 PM
Good day all...
anyone know how to get sub array json from php curl?
0
Q: jQuery jSon to get sub array with multiple value

HiDayurie DaveI have data getting from PHP Curl jSon. Below is the sample of jSon data. Here is the data: { "rajaongkir": { "query": { "origin": "23", "destination": "152", "weight": 1500, "courier": "all" }, "status": { "code": 200, "description": "OK" },...

 
Hello, is there anyway i can mark input file to server side file? (when user back to the upload multiple pic page)
 
@wuiyang 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.
 
if you visit a website with http:// you always go to port 80 (unless a port is specified) right?
same with https:// goes to port 443
 
1:15 PM
found answer to my question:
https://stackoverflow.com/questions/5072155/how-do-i-get-window-getselection-to-work-for-an-input-type-text-field
 
@HelloWorldPeace We cant access value from on click function outside ?
 
@AbhiBurk I'm not sure what you are asking.
As far as your previous question you have to provide more details on the behavior.
What's in the console? What's the value of 'filter_value' after you click the anchor tag?
 
In short I am not able to access the value from onclick function outside
Is this possible
$(".filter").click(function(){
			test=true;
		});
		alert(test);
 
alert(test);
$(".filter").click(function(){
			test=true;
		});
functionally this is the same.
do you see how it can't possibly know what is the value of test when the code is hit?
 
but what If I click the value should be available(i.e true) in alert
 
1:36 PM
how do you put a generated file to input type file?
 
@wuiyang you don't, you use FormData and a Blob
 
FormData is really sweet
 
i had a list of input type file, where user upload images, i would like to show all image files they had uploaded when they edit the uploaded images list
 
yiss
 
1:41 PM
online search found it is impossible due to security reasons, so only solution is to create div/label that place on top the the "placeholder" of input file?
 
or.. you preview the file and then upload it as a blob
using FormData
forget about using the file input list for upload.
o man I wish
 
im using formdata, just had no idea on how to have a better UI for uploading multiple images
so i end up with list of file input with (+) button for more
 
@rlemon that's so hot
 
4 filaments, 1 nozzle.
mmmm
@ssube like, 190c hot?
 
oh at least
the dual fans on the outside looks like a solid cooling setup, tho
 
1:47 PM
5 fans on that hotend
 
the cables are kind of in the way but it looks like a nice build
I wonder how much power it pulls. You don't keep them all hot at the same time, do you?
I guess you could, but they heat up quick enough that I don't think you have to
 
it's one hot end
one nozzle.
 
oh,that makes more sense
 
the tower of crap behind the print is getting rid of the old crap so there is no bleed over.
 
it's all coming together
after this 🍪 comes the shoveling...
 
2:01 PM
chipping*
@SterlingArcher youtube.com/watch?v=0xDAjGv5Cwc killed it
 
any recommendations?
for a vps
 
16.04 lts
 
no debian?
 
16.04 is a nice release from ubuntu
 
I'm comfortable with Ubuntu
 
2:08 PM
its not your vps :D
 
it is my recommendation
 
but if Ubuntu in general is more user friendly, then that changes the case
I had Ubuntu with plesk, but plesk turned out to be a pest
i guess ill go with the ubuntu 16 then
 
2:28 PM
i forgot how b-e-a-u-tiful amsterdam was
 
2:38 PM
almost all of my boxes are running 16.04, except this desktop. It's going to be exciting in 2 weeks when 18.04 comes out
 
@BenjaminGruenbaum Can you push forward a feature in node to allow global.document.all which returns some truthy value, but is falsey and has typeof of 'undefined'
 
@MadaraUchiha so require('jsdom-global')();
?
Actually, I don't think JSDom does document.all since you can't do it from JS :D
@Wietlol I love it, been there 5 times in the last year :D
coming back (hopefully) in September, too long :D
 
where are you from?
 
i kinda feel you already told me...
 
2:48 PM
It's a $250 plane ticket here, I go on weekends sometimes
It's ok if you don't remember everything I ever say lol
 
i remember some dude going from israel to the netherlands now and then
 
I actually met some room regulars a few years back there. I almost met bitten in September for a beer but we ended up missing each other.
 
me: "who the fuck is bitten?"
"and did it hurt?"
i live like 30 kilometers away from it, and i visit maybe once a year
havent got a whole lot to do there
 
Well, I really like the atmosphere
It's harder to get drunk or high in Amsterdam than it is in Tel Aviv - but I love it. The atmosphere is very laid back and chill, the people are nice and the city is beautiful.
I do these weekends to relax
 
That seems strange to me, that it's harder to get drunk or high in Amsterdam, because until the recent pushes for changes in Marijuana laws here in the U.S., Amsterdam was always the stereotypical place for Americans to get stoned legally if they wanted to.
But understand, that is coming from the perspective of someone who has no idea about the laws in Tel Aviv when it comes to alcohol and drugs.
 
3:04 PM
@BenjaminGruenbaum i sleep to relax
#multitasking
 
at some point the vscode bracket-matching plugin added colors to the built-in rulers. I never realized how much nicer they are with colors.
 
random colors for matching brackets :D
 
colors are based on depth, I only have the 3 defaults, but you can set it to the whole material palette
 
@hilli_micha there's an app, you open it, you click a button, you identify and you get delivery in ~20-30m of whatever you want to wherever you want and it's typically cheaper and same quality as in Amsterdam (or so I'm told).
 
3:09 PM
It's not as chill but it's definitely as easy if not easier
 
@BenjaminGruenbaum vimeo/HBO did a great show about that, called High Maintenance
there's a particularly memorable episode where he shows up at a rich family's Seder
 
What is it about?
 
the adventures of a bicycle deliveryman who sells pot
 
@ssube half baked did it first.
 
similar theme, kind of a different tone imo
 
3:19 PM
lol, someone's got the snowmobile out
 
> Aww shucks. ~ The atmosphere
 
@KendallFrey
 
Fun fact, my XHR knowledge is shit and apparently so is my HTTP knowledge, you can reduce that number to 70% @MadaraUchiha
turns out that the way ProgressEvents work with content length of encoded content is a whole brave new world of browser differences :D
 
@KamilSolecki What were they trying to say?
 
@BenjaminGruenbaum do you has a link?
@MadaraUchiha chicken parmesan I pressume
 
3:31 PM
@KamilSolecki That's not the real question.
The real question is whether you want a link.
 
do I?
 
@KamilSolecki I thought so too, but no cheese in sight
 
So fun fact, Content-Length isn't always the size of the body, sometimes it's the size of the message, sometimes.
Also different browsers expose different things on progress events :D
 
@MadaraUchiha the thing you think is breading is actually parmesan
that's how chicken parmesan works :P
Panko + Parmesan mix to be specific
 
I have finished two anime series during yesterday and today. I'm on fire this weekend.
 
3:37 PM
or smelly and full of oil
 
I mean, why not both
 
... is it like, expected that the end of a roll will be unusable because the filament is too twisted? it breaks when unrolling
 
mine have come loose when there's about 6" (15cm?) left, then get sucked into the printer like spaghetti into a hobo
so, no(t for me)
 
hmmm. maybe I can position the roll differently aso there is less stress on the filament being unrolled...
 
3:49 PM
sounds like a fun thing to do
 
it might be the brand or how they roll it, I haven't gone through enough rolls to say
 
@towc is that the new tide pods challenge?
 
@towc In case you're not trolling, don't do that.
 
shh. But yeah, hard to tell with me
 
it's like the "put screws in your tires for better traction in the winter" meme
 
3:50 PM
I wonder what this gender of memes is called
 
Did you just assume memes have a gender?
 
@ssube I thought that nails, pointing outside, were actually a real working thing?
 
speaking of tide pods..
cc @KendallFrey
 
that looks pretty slick
have you forced holly to try to assemble it yet
 
3:56 PM
yea she gave up after a little
 
@rlemon what is it
 
minecraft tide pod
 
hmm
 
4:11 PM
hi
i have a object like
[ { StackId: 'arn:aws:cloudformation:us-east-1:234858372212:stack/ecs-autoscaling-morecs-p2-8x/29e27f10-2bb3-11e8-80ea-50d5cd16c68e',
    StackName: 'ecs-autoscaling-morecs-p2-8x',
    CreationTime: 2018-03-19T20:21:53.763Z,
    LastUpdatedTime: 2018-03-27T10:29:04.202Z,
    StackStatus: 'UPDATE_COMPLETE' },
  { StackId: 'arn:aws:cloudformation:us-east-1:234858372212:stack/ecs-autoscaling-production-i3-4x/87edf5d0-2b4f-11e8-abaf-500c212ff6fd',
    StackName: 'ecs-autoscaling-production-i3-4x',
    CreationTime: 2018-03-19T08:28:41.912Z,
there are not only two but many like this
i want to have a new object having values like
 
@FélixGagnon-Grenier studded tires are a thing, but it's more complicated than jamming a nail through
 
let myArray = [{ 'us-east-1': 'ecs-autoscaling-morecs-p2-8x' }, {'us-east-1': 'ecs-autoscaling-production-i3-4x'}]
 
stacks.map(it => it.StackName)?
 
i know i can split around : in StackId key and can fetch the [1] value. what would be the best way to do this?
yes StackName is easy to get
I also need the region how i showed in myArray
 
splitting on the : will be safe, here. AWS won't change the ARN prefix
so you can always use the 4th component (the first 3 are required)
 
4:15 PM
yeah, but would regex test or something would be better, i'm not sure, but getting a substr is considered not good in other languages as it is of pretty high complexity. thinking split would be better.
 
it => { return { [arn.split(':')[3]]: StackName } }?
 
i want to know if there is any other better option
 
a regex would work, but not any better. The : is a nice delimiter and ARNs don't have escaping or anything complex to worry about.
 
@ssube alright, you mean I should not just try that at home thinking I'm so smart, yes?
 
@FélixGagnon-Grenier yeah. There was a series of memes on facebook with bad car advice, that was one.
 
@ssube i get a object of length >50 from a method call which looks like which i shared first, i want to have a object like how i shared myArray which i would be using in the further calls. i can make it work and i'm trying to write code shorter and neat, to learn more. so i'm trying something like
  .then((result) => Object.keys(result).map((result.StackName) => ({
    [StackId.split(':'[3])]: result.StackName}
 
@KamilSolecki totes fooled me
 
or better written as
 stacksInfo.getAllStacksInfo(null, 'ecs-autoscaling')
  .then((result) => Object.keys(result).map((result.StackName) => ({
    [StackId.split(':'[3])]: result.StackName}
  )));
and one variable which would be used in the method having this call like myArray
this doesn't seem to work as i'm not able to assign a var which i'm able to use in further calls in a method which is also having this call
is there a cleaner way to achieve this?
and not just two
5
A: Get all values of a nested JSON object using any lodash

TusharAs you've underscore.js, lodash included, why not taking advantage of them instead of reinventing the wheel. How about single-line using _.map. _.map also accepts strings as iteratee and will return the value of that key from the passed object. _.map(json.order.orderDetails, 'a1') var jso...

 
5:10 PM
anyone has experience with putty?
nvm
 
5:25 PM
someone explain ENOBUFS connect errors please :p
 
this new netflix show
lost in space reboot
I don't understand how they can pour so much money into a show
and end up with a 3rd rate script at best
I'm sure they know best
maybe it gets the best ratings
 
@rlemon lol
@Mosho watch Game Over, Man
it was hilarious
 
I don't watch comedies
and I definitely don't watch movies with abysmal scores on imdb and RT
> With its inexplicable combination of phallic revulsion, fascination, and revulsion at its own fascination, this wretched film hates itself more than we ever could.
ouch
 
Well I laughed so that review can fuck off
 
netflix has always been about quantity > quantity
but it's getting worse
 
5:40 PM
eeeee my keyboard is here!
 
\o/
 

« first day (2738 days earlier)      last day (2203 days later) »