« first day (1718 days earlier)      last day (3224 days later) » 

12:00 PM
@BenjaminGruenbaum created an issue in winjs/winjs
 
@nhahtdh I hope so.
@Abhishrek link?
 
:->
> or perhaps use a better promise library like bluebird ?
was it too harsh ?
 
Cool, didn't even know WinJS was a thing.
 
12:04 PM
Not really, but they won't do it (and for a good reason , bluebird is big)
 
True :-(
I have been trying to replace WinJS.Promise with bluebird's Promise
their promise implementation is, well messy
WinJS.Promise.is(Promise); // the native one returns FALSE !
 
Can't you do something like Bluebird.resolve(WinJSPromise)
 
whatever WinJS is, whatever ".is()" does, a wild guess in the wild, try WinJS.Promise.is(Promise.prototype)
 
Nope, its not using native promises at all :-/ though your trick worked :D @jAndy btw welcome back.
 
@Abhishrek override is :D
 
12:06 PM
If I'm making a NodeJS compatible module, what do I need to load it in a browser? RequireJS? Or something else?
 
@KendallFrey browserify ftw
 
@KendallFrey if you use babel that's pretty much taken care for you - but yeah browserify, webpack etc etc etc
 
I wonder why is winjs not written in .ts :-/ atleast ts has better shit than that.
 
It's a lot older than TS
 
@phenomnomnominal No, I don't want to compile it together, I want to have a .js file that's compatible with Node and the browser
 
12:10 PM
@KendallFrey Does it have deps?
 
I don't think it will
 
@KendallFrey there is that 5 line shim that checks for node, then require and then global which browserify uses.
 
It's just a toy project right now
 
So, you can just use the output of browserify :P
 
something like (global || this).something = module.exports?
 
12:10 PM
jQuery does this in a very fancy way.
 
@BenjaminGruenbaum they kinda re-wrote the whole thing with 4.0.1
 
Then no idea
 
I just want a very simple way to test my module in node and the browser
y u make this complicated
 
use browserify
 
I am having an urge to take the winjs class code and convert it to es6
 
12:11 PM
then it works in node and the browser
 
browserify is simple
 
should be easy :-x
 
it's 2015, get a fucking build step bruh.
 
@Abhishrek according to the issue tracker they're movng to TS
 
they are o_O wow
 
12:12 PM
@KendallFrey If you just want a simple check, something like this
 
I'm not adding a fucking build step
 
what is it, C++?
a build step... tss
 
@KendallFrey also because that would be very unprofessional
 
@KendallFrey so you're going to manually run your tests then?
and your linting?
or are you just writing shit :P
 
yes, yes, and yes
 
12:13 PM
who lints/writes tests anyway
suckers, I tell ya
 
everybody knows testing in production is the way to go
 
browserify nodey-stuff.js -o bundle.js
@KendallFrey there's your BS
 
@FlorianMargaine clearly you havent been getting much sleep !
 
so, in other words, I can forget the browser, write it for node, and compile a browser version with browserify if I want to test it in the browser?
 
does it manipulate the DOM?
 
12:15 PM
no
 
then fuck testing it in a browser :P
 
@Neil I don't even test in production
 
client does that anyway.. brilliant!
 
@KendallFrey yes.
 
Who here knows how to drive a car ? (assuming everyone)
 
12:18 PM
gas to go forward, brake to go backward
#videogamelogic
 
how the heck do you brake properly ?
 
all the way
 
@BenjaminGruenbaum false
 
By speeding up and braking at the last possible minute, pissing off everyone behind you.
 
All the way at once while turning the wheel 360 degrees.
 
12:19 PM
hahaha
 
@Abhishrek Are you learning to drive?
 
@StevensHaen what is the return value of .nonEmpty
 
@KendallFrey yes.
i quite cant get braking right
i always hit it too hard
 
Braking properly comes with experience
 
@StevensHaen Seems like wrong parenthesis
 
12:19 PM
@BenjaminGruenbaum false
 
uh oh
 
new drivers always brake funny
 
@Abhishrek Then don't brake so hard...?
 
@Abhishrek i have the same problem with your mother.
 
@StevensHaen make a jsfiddle with _the minimal code needed to reproduce)
 
12:20 PM
@BenFortune easier said than done
 
At least you're braking too hard instead of not hard enough
 
true.
 
and at least you're not hitting the wrong pedal
 
Alright, i shall practice more.
 
which I did several times
 
12:20 PM
@Abhishrek to brake correctly, you have to brake hard at the beginning and slowly brake less when you slow down
 
^ actual advice
 
really? I do the opposite
 
The instructor told me to press clutch full and then brake as slow as possible, and if in speed do it faster.
 
@KendallFrey wait what?
 
now since every quantity here is relative, i have no clue !
 
12:21 PM
@Abhishrek "clutch full" might be a bit too much
 
@Abhishrek the transmission should slow you down, and I was taught to do that too
 
I was taught to fully clutch just before you come to a stop
 
HAMMERTIME!
 
...
 
I haven't driven a manual car in 5 years :D
 
12:22 PM
That said, I don't ever use the transmission to brake
 
Well, maybe 4
 
@BenjaminGruenbaum correct, the parenthesis is wrong
 
but basically, brake hard, then brake less and less, until you're stopped
 
Ah get it now :D
 
don't brake hard
brake smoothly
 
12:22 PM
// i cannot get an automatic car, they die soon
 
I just use pedestrians to brake.
 
while(!isStopped()) {
    brake.apply();
}
 
@FlorianMargaine I was taught the opposite
 
@FlorianMargaine is your car automatic transmission ?
and has ABS ?
 
If you're about to hit something bigger than you, use the brakes, if not use the horn
 
12:23 PM
@Abhishrek no, manual
 
I generally aim to brake with the same force until I stop
 
HAMMERTIME!
 
mine is purely manual
 
@Abhishrek this is what breaking should look like - you start hard and you drop it as you go.
 
12:23 PM
but I let of the brake just before stopping to prevent an awkward jerk
 
(Ignore everything but the plot)
 
what are you guys talking about?
 
I'm being hilarious and you guys are giving me no stars, so that means I'm probably not actually being hilarious and I should go to sleep
3
 
@GNi33 i am learning how to brake
 
what's there to learn really?
 
12:24 PM
@GNi33 the curve up there
 
@GNi33 Nothing, just practice
 
@GNi33 #indian_roads
you press more brake than anything
and the concept of safety distance is apparently missing
 
@BenjaminGruenbaum that plot is a pretty strange an inefficient way to brake
 
as every bike rider will see your safety distance as "OMG PLACE"
 
@KendallFrey that's how I brake
 
12:25 PM
enjoy your leap second
3
 
it's a smooth but efficient way to brake
 
@FlorianMargaine I don't stomp on the brake while 100m from the stop sign
 
I remember learning how to drive a manual shift. There was absolutely nothing more terrifying than being uphill with someone directly behind you
 
@KendallFrey I don't either
@Neil hehe
 
To be fair, there's various different ways of braking, dependant on the scenario.
 
12:26 PM
@phenomnomnominal I just didn't want to star you hitting @Abhishrek's mom hard. I did lol :D
 
@Neil Hill starts ftw
 
1. foot away from the gas pedal
2. foot on the brake, find the pressure point and go a little above it, if you really need to stop immediatly, you smash the pedal anyways
3. at around 1000 rpm (differs from car to car) you put your foot on the clutch pedal
4. release brake pressure slowly
5. congrats
 
@KendallFrey all it means is that you adjust the acceleration so your break is smooth and you don't have that thing where your car jerks.
 
You really don't get over that until you can start uphill without moving backwards
 
I don't need your pity, @Abhishrek's mum says I'm cool.
 
12:27 PM
@KendallFrey the curve is longer than it should be -- of course you don't take 100m to brake. But that's the idea.
 
@phenomnomnominal then you are definitely uncool
 
@BenjaminGruenbaum yeah, but that's a long tail off of the brake
 
@phenomnomnominal she has a name (steven)
 
@Neil I usually just sit on the clutch, unless I'm stopped for too long then I pull the handbrake
 
I don't have a clutch
 
12:28 PM
@GNi33 whoa thas useful.
 
@BenFortune handbrake? whoa
 
I don't get why driving stick is popular in Europe (and india, according to @phenomnomnominal )
 
Isn't that a little impractical?
 
@BenjaminGruenbaum "driving stick"?
 
@FlorianMargaine manual gear
 
12:29 PM
ah
it's cheaper in France
 
@Neil Why? If you're at a stop on your normal brake on a hill, you're going to roll when moving your foot to the clutch
 
@BenjaminGruenbaum The reason why manual transmission are popular here is 1. low price 2. an auto gear car will keep on going up and down causing the car more mantainance
 
Assuming uphill of course
 
@FlorianMargaine it's not really cheaper here.
 
@BenFortune Yeah i use the handbrake in those case
 
12:29 PM
@BenFortune I do that only if I'm at a long light and my feet are tired
 
for a 15keur automatic car, you'll get the same for 12keur in France
 
cheaper, easier (cheaper) repairs, some people say it's more reliable and you have more control over how you're driving, and, first and foremost, people are used to it
 
that beautiful hand-drawn graph is my typical braking curve
 
@Abhishrek High tech workers here get a car here so we don't pay for gas so I don't really care if it's efficient, but really compare it to a hybrid it's not cheaper on the gas.
 
12:30 PM
woof
 
stfu you
 
@BenjaminGruenbaum also, you get more pleasure driving a manual than an automatic (imho)
 
@BenjaminGruenbaum Israel sounds so nice !
 
@FlorianMargaine this is true
 
@FlorianMargaine yeah, for like 10 minutes, after which you sort of don't. Manual sucks in heavy traffic.
 
12:31 PM
@FlorianMargaine agreed
 
Does anyone here drive a CVT?
 
@KendallFrey I did if a prius counts.
 
cos those are neat
 
I'm just not used to automatic cars as much. It still makes me feel uneasy, especially in tight city traffic
 
Automatics are rare in the UK
 
12:31 PM
@KendallFrey yeah, the prius is like crazy cheap here compared to other cars - cars have a 200% tax here or something crazy like that.
 
I hate automatics except in city traffic :)
 
For normal cars anyway
 
I wouldn't say it's rare in France
my guess would be ~20%
 
I wonder what a manual cvt woul be like
 
@KendallFrey it would make no sense, probably.
 
12:32 PM
Like a manual...?
 
Tomorrow i am gonna keep a dashboard cam
 
@BenjaminGruenbaum maybe, I don't often drive in heavy traffic
 
and record how bad i drive :-)
 
@BenjaminGruenbaum it could be a thing, just annoying to drive
 
aren't CVTs gearless?
 
12:33 PM
@Abhishrek You're indian. People expect you to drive bad
 
@FlorianMargaine lucky you, I generally try to avoid driving but I drive about an hour and a half every day
 
@FlorianMargaine Takes me 45 minutes usually to do 5 miles
 
@BenjaminGruenbaum heh
 
I wish my transmission had a fuel economy setting
 
@Kippie :-(
 
12:33 PM
I work at home, so this is already handled
 
I want to punch it, but not have it rev up to max power
 
Not paying for fuel is pretty great :)
 
@BenjaminGruenbaum (nods)
 
I drive ~4-5 times a week to go for groceries and stuff tho -- and since I don't live in a city, not much traffic
 
wait whats the cost of fuel in Israel ?
 
12:34 PM
I drive a car that does 16 km per litre of fuel but I drive it in a way I would not drive my own car.
 
@BenjaminGruenbaum Doesn't your employer pay for your fuel?
 
how much you get 1 litre for ?
 
If I have a traffic light and I need to get to 100KMpH - I just hit the gas until I'm there.
@Kippie it's a secondary (car leasing) company.
 
Any one worked with d3 js directed graph here?
 
@Abhishrek 1 litre is £1.16 here
 
12:34 PM
I need help with this jsfiddle : jsfiddle.net/gj2y87z8/4
 
it's ~1.2€ here
 
@BenjaminGruenbaum 116.58 rupee for 1 litre
damn thats costly
its about 63.16 - 74.00 per litre here :D
nope wait even down !
 
~$1.20/L here
 
@KendallFrey CAD?
 
and diesel is cheaper
 
12:36 PM
yeah
 
Over here in Belgium I pay about 1.3€ per liter of Diesel, but my car (Audi A3) is pretty efficient so I only use like 5l/100km
 
@Abhishrek a litre of fuel is 131.59 INR here.
One of the more expensive places per litre.
 
can't we all move to euros
 
I don't care I run things through google and it does the math for me.
 
!!g 132 INR to Euros
 
12:38 PM
lazy benji
:P
 
Why is cap ignoring me?
 
because you don't know how to talk to her
 
I'm terrible at talking to women :(
 
@Kippie That didn't make much sense. Maybe you meant: d, ^, π
@kippie you don't look good
 
You can practice on me
 
12:44 PM
kek
 
@BenjaminGruenbaum I understand it perfectly - I was just applying a solution to the use case. I can be more generic, but the question clearly asked "for this input, return this output", I was merely doing so. — Jonathan Brooks 25 secs ago
 
god this chat is awesome
 
@BenjaminGruenbaum About same price as in Norway. I thought we were alone in our misery.
 
@Kippie What's the speed limit in Belgium?
You must not be driving your car right if it only uses that little gas!
 
12:46 PM
3yo pointing at @RoelvanUden's avatar and saying "I want this toy"
 
@OliverSalzburg diesel is efficient
My dad's car gets 5-6L/100
 
<-- CX-5 diesel and I get around 5.5-5.6 / 100
 
I drive a diesel as well
 
@OliverSalzburg 120, though I mostly drive around 140
(I nearly only do highways, though)
 
Okay, those are pretty efficient speeds from my own experience
 
12:49 PM
Yeah, I work in Holland, where the limit is 130. Usually average around 4.7 there
 
Is everything in Node js event based?
 
1 message moved to Trash can
@vamsiampolu Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
@Kippie Is that the 2l engine?
 
@OliverSalzburg Nah, only 1.6. Otherwise it wouldn't fit into my lease budget (too much eco tax!)
 
Ah, makes sense
 
12:53 PM
$0.46/L here :P
 
are you living in Texas?
ah, united arab emirates
 
We produce all kinds of stuff from oil, so... :P
 
I didn't see the link on the right about Nodejs. My bad :l
 
JS, remove first 2 and substring(3)
 
@AwalGarg ... Toy?
 
12:58 PM
Animu toy
 
@RoelvanUden your avatar looks like a toy to her :/ I dunno :P
 
Gas isn't that cheap in Texas... cheaper than california, for sure, but...
 
it was substring(5)
 
$2.8 per gallon, in some places?
 
yeah @Cereal is correct maybe
 
12:59 PM
Wait
maybe it was 3.8... I don;t pay attention to price
I just know I need gas, and fill up
 
it's "cheap" here now, only €1,4/L
 

« first day (1718 days earlier)      last day (3224 days later) »