« first day (2047 days earlier)      last day (2895 days later) » 

4:00 PM
it's the same people doing it, all white british kids whose parents paid the tab
 
@ndugger :|
 
@Josiah agreed, in the end it's what you do and what works for you, but you should still explore the social aspect of our and other species and think about how that affects your behavior
e.g. I found a paper last summer that studied opoid addiction in mice and they've amazingly for the first time tested mice with behavior disorders in a group setting, not in isolation
 
how the hell can you tell if a mouse has a behavioral disorder?
 
they immediately discontinued drinking water that had some psychoactive compound diluted and switched to a container with clean water
 
@ssube Just give it its injections.
Surely that'll give it some form of autism
 
4:07 PM
@ssube oh, we're pretty far off with analyzing disorders in test subjects
 
Is eu-cookie-law-enforcement2.xyz legit? The script behind the "recommended solution" includes a ganalytics tracking snippet
 
@OliverSalzburg it's a .xyz, so...
 
@OliverSalzburg That domain
 
hey-you-owe-me-5-dollars.xyz.uk is also legit
 
Just seemed weird
 
4:09 PM
so you should probably give me $5
 
@Josiah you know a lot about bikes? Brands, whatever cc means, etc? lol. I'm gonna start keeping my eyes out. (I don't want a crotch rocket)
 
cookie-consent.org cookie consent by downloading and executing JS from third party service. and cookies without consent are illegal...
 
it's cubic centimeters
 
Also, fuck everyone; I'm growing my beard out again.
 
the displacement of the engine
 
4:11 PM
I mean, it's a brilliant scam. Set up that site, crawl the web using it as the referrer, get people to inject your JS into their site
 
my car is 3000cc, approx
 
@AwalGarg Yeah, that seems to be a fork of silktide.com/tools/cookie-consent adding just their tracking code
 
ohh. lol fun stuff
 
@ndugger I'm not into bikes, but there are several types; you should find a frame that you like, because that's sort of personal choice and then ask for a manufacturer/shop that builds those kind of bikes
 
I won't be buying new... I don't want to have car payments and bike payments. Gonna drop like 3k tops on a used bike from a personal seller, probably
 
4:15 PM
yeah, getting a nice one while you're learning how to ride sounds like a bad time
 
I have a cousin that does custom paint jobs on bikes, so if I want something fancy, that's how I'll do it
 
@ndugger yeah but there are bikes with no rear-wheel suspension like choppers, etc. I think you need to find a kind that fits your character and riding preferences first
 
Agreed
 
4:28 PM
hmm, anyone have book recommendations on API/UX (non-graphical) design? Not really for learning anything in specific, just felt it could be a good next read for me. cc @SomeGuy @BenjaminGruenbaum
 
@AwalGarg I thought you were asking about AIX/UX. Lol
 
da hell is that
 
Unixes
 
googling says that is not a book or any kind of readable material
 
4:40 PM
@AwalGarg Restful web services
 
Green apples are far more superior than red apples.
 
procedurally generated deterministic restful api
 
"I want to read something before i go to sleep not see how crazy cool your website is".toUpperCase()
 
@Shmiddty that... might actually work
 
@ssube might?
it's the right way to do it
 
4:41 PM
start with a seed and a pool of "endpoints," build a procedural API, then make people "hack" it as a game
most APIs aren't procedurally generated in the traditional sense
 
@AwalGarg Give what I suggested a try.
 
@ssube most APIs are doin it rong
 
oh that's a book name. I thought you were saying I research them
 
in the technical sense, perhaps, but when you say "procedurally generated," it sounds like randomly generated with an algo
which is the fault of procedural games
 
procedural generation isn't necessarily random
I mean, in MC it isn't
the same seed always produces the same world
(afaik)
 
4:44 PM
@littlepootis that's too much web oriented. I am sick of the web.
 
@Shmiddty right, so you build APIs like that
 
@ssube never got around to it
 
@AwalGarg um, yes
 
but I was working out the idea
 
@Shmiddty like a game that builds a fake API and makes you do stuff with it
 
4:45 PM
@littlepootis but oreilly suggested from that shop.oreilly.com/product/… which, while not related, sounds good. thanks
 
@ssube that's a cool idea too
but I mean for everything
you then use the same application manifest that is used to generate your api to generate your ui
 
Stupid
 
thanks
yeah
 
@AwalGarg it's an art sort of, but be consistent and always write a client for your APIs
 
4:53 PM
@benj yeah no, I am just looking for something to read about it :P but I got that micro services book so thanks :)
and for some reason I can't type usernames right now with autocompletion so excuse me
 
@Josiah I need your motorcycle brain.
 
^ someone has been surfing
 
Well, I need to get an MN license first, then my bike license, then I can look seriously. Right now I'm just looking for what manufacturers are good, and how old the bike can be without it being crap, though I suspect it's not the same as buying a car...
 
user1596138
@ndugger lol what for
 
user1596138
@ndugger It's about the same as cars except for the mileages and life expectancy.
 
5:00 PM
See above message; What brands are good; I see some Hondas and Yamahas. I see some bikes from the 80's. Do I need to be wary of older bikes like that, or what?
 
user1596138
@ndugger All big name brands are fine really.. You will hate the suspension on anything older than like 1990 and it will be carbureted.
 
What does it mean that it's carburated?
 
user1596138
It's more by mileage than age. I'm trying to find a 1982 Super Magna right now, but I will have to get new shocks asap and they will be hard to find.
 
i have 4 'ranges' of values, and one variable.. i want to check if the value is between these ranges and do something if it falls into those ranges
is there anything clearer than 4 if/else if statements?
 
user1596138
@ndugger You know how on cars there is fuel injection and then there's old school carburation? Same thing
 
5:03 PM
@Josiah like this guy here: minneapolis.craigslist.org/ank/mcy/5601499752.html -- yes? no? I won't be getting it, but there's a handful similar to it.
 
if between Math.PI / 4 and Math.PI / 2 then variable = Math.PI / 4 kinda thing (but anything clearer or easier to read?)
 
@Josiah is old school bad in this case?
 
@ndugger yeah, as it means 'still burns fuel'
 
user1596138
No it's not bad but you will have more maintnence, carbs need cleaned more often and if you go to a massively different elevation you'll have to re-jet the carb for more or less fuel
 
Quick help anyone. I initialized a new repo, pushed all my files, everything was great. Did some minor changes to the html file and went to eat. Now when I came back, git status returns nothing to commit and git push gives me an error.
 
5:04 PM
@Josiah weird... but yeah, I don't want to do that. So nothing older than 1990, then
 
user1596138
@ndugger My buddy has one but it's a run-down piece of shit lol.
 
user1596138
@ndugger Well it's not just 1990, you'll just have to look to see if the bike you're interested in is EFI or not. Really that parts not a big deal if you don't mind taking the carb off and spraying brake cleaner through it once a year lol
 
@Josiah last question; about mileage? When is too much, or does it not work the same as cars?
 
user1596138
Mileage goes by engine size.
 
Explain?
 
user1596138
5:07 PM
A 350cc motorcycle with 30K is about the same as a car with 150K, it's getting close to the end of it's life... Possibly.
 
user1596138
A 750cc bike is in the same situation closer to 50K
 
user1596138
Maybe a little less...
 
user1596138
A 1000 is more etc
 
user1596138
@ndugger Dude that thing is so clean!
 
So bikes can do less miles than cars?
 
user1596138
5:09 PM
Yes based on engine size
 
user1596138
But at the same time my brother has a 76 KZ650 with 95K miles on it... So it's not always true. And when a bike blows up it's a fraction of the cost to have the motor rebuilt vs. in a car lol
 
Huh... I see a lot of super high mileage bikes for sale
 
user1596138
They probably have bigger motors.
 
user1596138
But yeah I probably wouldn't buy a bike with 40K miles on it or anything. Newer modern bikes can probably last a lot longer so Idk about them tho
 
user1596138
I bought my last bike at 6,900 miles, sold it 3 years later for $300 profit with 17K miles on it
 
5:13 PM
If I only want to spend 3k, you think I can find something decent? (used obviously)
 
user1596138
Well I aid that wrong. I wouldn't pay top dollar for a bike with 40K+ on it...
 
user1596138
Yeah definitely. You could get a basically brand new small bike
 
user1596138
^ great starter bikes. They're fun too just not gonna keep up with the litre bokes or anything
 
user1596138
@ndug do you plan to ride long distances? Or commute? Or just for pleasure? I'd try to pick a bike that meets your needs. Like if you want longer trips get something that has you sit very upright, otherwise your back will hurt. If you want to cute get something with room to add bags. Or if it's just for pleasure get whatever you want
 
user1596138
I'm in it for the turns lol so I just want something nimble asf next time. Don't need fast necessarily in a straight line and don't need to haul a passenger
 
user1596138
5:17 PM
Lol yea screw that they're too heavy
 
R6
 
so, node sandboxing
assume I'd like to sandbox a single function
 
does not exist?
 
well there's vm module right
but it takes a block of code
 
user1596138
@ndug check out Honda shadows they are similar in style to the bike you posted but very reliable and you can easily find a really nice 2000s model for your price.
 
5:19 PM
@Josiah I saw a super pretty bike parked on the side of the street last week, I think it was a recent Triumph done up in matte to look old.
 
I'd like to simply pas some code to the function and get the result
 
user1596138
Dammit he got me excited now I want to go to the Triumph shop I'm town again
 
Had the more modern lines with that WWII finish
 
and restrict that function to only see what's in the input
 
@BartekBanachewicz what should the result be? a function which is sandboxed?
 
5:20 PM
ohh, how about a Ducati Monster
 
surely that's doable right
 
user1596138
@ssube I know which one you're talking about I tink
 
when I get a bike it'll probably be some obnoxious bimmer thing, but that was pretty as fuck
 
user1596138
@hatterismad has Ducati Monster
 
@AwalGarg yeah
 
user1596138
5:20 PM
He was trying to sell it for like $2100 I think. But I think he's keeping it now.
 
I was using new Function, but that's kinda meh
 
@BartekBanachewicz function sandbox(code) { return function() { return vm.runInSomething(code); }; }
 
how do I get the result of runInSomething?
 
@BartekBanachewicz you pass an object which acts as a global object. then inspect the object later for mutations
 
> var str = 'return 42;'
undefined
> vm.runInNewContext(str)
evalmachine.<anonymous>:1
return 42;
^^^^^^
SyntaxError: Illegal return statement
@AwalGarg that's really shitty
 
5:23 PM
@BartekBanachewicz you can't return without a function
 
I know right. And the sandbox isn't even leak proof.
 
@ssube meh
silly limitation
 
that's a syntax error no matter where/how you run it
 
@AwalGarg what can leak out?
19 secs ago, by Bartek Banachewicz
silly limitation
 
@BartekBanachewicz It returns the value of the last expression
> require("vm").runInNewContext("42")
42
 
user1596138
5:24 PM
@ssube you saw a new scrambler?
 
@copy ah there we go
thanks
@Josiah a.k.a. hipster bike?
 
user1596138
Hipster bike my ass.
 
@Josiah judging from this, quite possibly
 
a.k.a. pay as much for 400cc as you'd normally would for 600
 
user1596138
That's classic badass lol
 
user1596138
5:25 PM
Our prices don't work by engine size.
 
oh wait you mean Triumph Scrambler not Ducati Scrambler
 
@BartekBanachewicz for example promises don't have to obey the timeout set
 
user1596138
Yeah the Triumph
 
someone wraps his while(true) loop in a promise and your sandbox hangs the entire process
 
user1596138
5:26 PM
Eww what is that baby bike
 
1 min ago, by Bartek Banachewicz
@Josiah a.k.a. hipster bike?
 
Actually you can wrap your code in a function inside of the vm code and call it outside
> require("vm").runInNewContext("(function(foo) { return foo })")(42)
42
 
and until 3.1 (or something) (when it was iojs) the Error stack trace API of v8 allowed to break out in the wild of the context
 
@AwalGarg what
can't I restrict access to asynchronous invocations in the sandbox?
 
@Josiah looks like a douchecocktease. You could tell by whether it moves or just goes "waaaaaaaa waaaaaaaa WAAAAAAAAAAAAAAAAAAA" while sitting still.
 
5:27 PM
like setTimeout = null;
 
ducatis come with cologne like audis come with a snapback and ghb
 
user1596138
 
I dunno I'd like S1000XR if I could afford it :F
 
user1596138
Doesn't captain America ride a scrambler
 
@BartekBanachewicz if you use the timeout property of the vm module to prevent people from hanging stuff, they can just wrap their code in promises and the timeout doesn't apply anymore
 
5:29 PM
actually, this might have been the exact thing I saw
 
user1596138
I rate vehicles based on which fictional characters drive them now lol
 
well okay so
 
it definitely had some green
 
user1596138
So my ranger is badass because Hank Hill drove a Ranger lolol
 
should I open a subprocess?
doesn't that expose even more?
I'd think clearig nextTick, setTimeout and stuff would be enough
 
5:30 PM
@ssube ahem >:(
 
wait can I actually clear that
 
@SterlingArcher u mad bro
 
I suppose I can prepend the clearing code right?
 
why not go have 2 for 1 rum and cokes and try to neg some girls
 
@BenjaminGruenbaum lmao stackoverflow.com/a/29215779/774078 look what I just got a random upvote on
I forgot about this
 
5:31 PM
@BartekBanachewicz you can Object.defineProperty on the global object you pass to throw on accessing those things, and the Promise constructors and similarily clear all paths of accessing them
and force strict mode. But I don't think it is easy to achieve true sandboxing with node and current APIs. Google Google SES.
 
@AwalGarg it's not possible to, not with node.
Runtimes like Nashorn support it, because they fully wrap the JS.
 
@ssube since you are the one who runs the code, you can parse it and do magic shit with it before evaling
 
@ssube my car didn't come with a hat or any drugs :(
 
@AwalGarg that's never reliable
 
hence it is technically possible, but only technically
 
5:33 PM
@SterlingArcher But your watch did.
 
yeah, not reliable
 
sandboxing based on evaluation isn't enough
 
Actually I don't wear hats and drugs BOUGHT me this watch
 
especially since that evaluation opens a whole nother set of attack vectors
 
So technically, the loss of drugs came with a watch
:D
 
5:34 PM
disable eval, Function, unknown path access etc. really though, checkout SES that is exactly what this is about and there is a good amount of really knowledgeable people working on it.
 
Meeeeeh
Lua is so much better at that
maybe I should just use Lua for the DSL
you can just say "run this code without anything available"
bam done. safe.
> f.run()
ReferenceError: unefined is not defined
 
*unified
 
can reproduce. totally a bug in JavaScript
 
const offsetX = window.scrollX;
const offsetY = window.scrollY;

document.body.style.position = 'fixed';
document.body.style.top = -offsetY + 'px';
document.body.style.left = -offsetX + 'px';
 
the timeout doesn't work at all
 
5:42 PM
why doesn't this work?
It sets top: 0px; left: 0px, but offsetY is 90 when console.logged
 
I'll tell you if you tell me why my code doesn't work
deal?
 
@BartekBanachewicz I have no idea. I don't even know what code you refer to
 
@Victor essentially running a while(true) in a vm with timeout set to 100 hangs
 
@rlemon do your cats eat corn? i.imgur.com/fsQnOZt.webm
 
Hi, I want to discuss something that relates to programming in general and not just JS. Can anyone suggest where I should discuss it?
 
5:45 PM
@BartekBanachewicz There's some project that inserts checks into loops in JavaScript code and breaks out if it takes longer than specified
 
@SterlingArcher I was so expecting a drill there
 
@BartekBanachewicz I don't know how to help you
 
You can ask, but I'm curious to why you came to the JS room to ask that @user1067931
 
but please help me, guys. Why in the world wouldn't that work?!
 
5:46 PM
@copy I'm looking at this now
 
@SterlingArcher because I happen to be a JS programmer
 
@Victor are you trying to get the negative value of offsetXY?
 
yeah
 
@BartekBanachewicz Input: while(true) { } Output: while(true) { if(Date.now() > 8234689154) throw "script killed" }
 
@Victor uhh, try ${-1 * offset}px
 
@SterlingArcher Math.abs
 
pleb
 
@SterlingArcher that is essentially 1 * offsetX because my offset is never negative. I want to make it negative.
 
Whoops
 
@FilipDupanović still top: 0px;
 
5:49 PM
crazy js
@Victor yeah it's not it... your code looks good
 
!!> Number("-"+90);
 
!!> a = 10, -a + 'px'
 
@rlemon
 
Cap u ok
 
no she's super dead
 
5:51 PM
CAP?
 
there is something wrong with react...
 
feature request: C6 status page
 
if I log the offsetY, it is logged twice: first it is 90 then 0
 
@Victor create a fiddle. I can't reproduce that.
 
@AwalGarg oh that's quite hard. I have like a thousand interdependent lines
 
5:53 PM
sucks to be you :)
 
@Victor your code is good, I guess it's how you're using React to interact with host objects
 
@AwalGarg right now, it does
 
wait you are using React? everything changes then.
 
@FilipDupanović I know. that method is called twice
 
clickhole.com/article/… jesus christ cc @rlemon
 
5:55 PM
@Victor there is no other way... you will have to take the component that is interacting with the host and inspect the lifecycle of all parent components to uncover weirdness
 
oh God
 
@Victor I shit you not, it's possible to have componentWillUnmount() without componentDidMount() ever having been called and other oddities like that
 
pray for me
off-topic: do you know why from time to time I just cannot type anything in phpstorm on ubuntu?
 
Dear Satan: Victor needs your help. He's even willing to perform a virgin sacrifice. Especially since you're cool with suicide.
 
phpstorm... adequately named
 
5:59 PM
@Victor usually it's when editors do something synchronously on the main thread
 

« first day (2047 days earlier)      last day (2895 days later) »