« first day (1748 days earlier)      last day (3207 days later) » 

user1596138
3:00 PM
--harmony_strings
 
@BenFortune can you not just require them?
 
I wish it automatically included it and was just an option you could pass
 
user1596138
Kidding
 
@ssube I was using the CLI
 
user1596138
I don't know lmao
 
3:01 PM
  "scripts": {
    "build": "babel --stage 0 --out-dir lib es6"
  },
 
@BenFortune yeah, so require them
oh, the babel wrapper thing. Pfft, nobody knows how that works.
 
user1596138
Isn't it a separate package
 
@Jhawins It's in the babel package, just a different folder
require('babel/polyfill')
 
user1596138
babel/polyfill
 
Can I use it like this:
export default {

somePromise: new Promise(function(resolve, reject) {}),
 
user1596138
3:03 PM
Hold on lemme look at how that's structured...
 
and use it later
 
user406009
Why wouldn't you expect that to work?
 
@SuperUberDuper you can't use that promise for anything
 
it will never resolve and will throw an error when the process exits
 
user1596138
3:05 PM
Idfk dude
 
user1596138
lol
 
user1596138
Hey @BenFortune just run both?
 
@Jhawins There's a CLI for the polyfill?
 
user1596138
Run a script that imorts /polyfill AND your app
 
user1596138
3:07 PM
Babel isn't a polyfill library it's a syntax transformer... So just add the require/import for polyfill.js to your script.
 
@Jhawins Wouldn't that add babel to anyone that required my library?
 
user1596138
That would add the polyfill script which is just a bunch of functions
 
user1596138
You can use polyfill.js without the rest of babel.
 
Ah, I get what you mean
 
pgadmin sucks balls.
 
3:08 PM
Just import the polyfill
 
user1596138
Yep
 
In es6, is there some better way to configure event listeners in classes?
 
@corvid You can extend the EventEmitter
import {EventEmitter} from 'events';

class Foo extends EventEmitter {
	constructor() {
		super(EventEmitter);
	}
	doMethod() {
		this.emit('myMethod', 'Some Data');
	}
}
 
@JoshLeBlanc reading that gave me stage 12 autism
 
user406009
My bet is that the OP was trolling.
 
user406009
3:11 PM
No one could be that stupid.
 
hm.. and if you already extend another class? is there a convenient EventEmitter mixin?
 
@BenFortune I meant more like... I have two sockets, and want methods to bind event listeners and whatnot
 
@Luggage your base class should probably extend the emitter, then
 
does does blue bird override the native Promise api
 
anyone experienced with bootstrap's tooltip around ?!
 
3:13 PM
but duckface typing allows plenty of mixining
@SuperUberDuper no
 
You CAN replace the existing Promise by:
window.Promise = require('bluebird');
 
var Promise = window.Promise = require('bluebird');
 
But this may/may not be a good idea.
 
user406009
IIRC the Promise spec was written such that multiple promise libraries can interact well with each other.
 
True. They really only depend on each other having a .then()
Maybe more.. but yes. they are compatible.
 
so I'm confused of the correct way to use bluebird promise
 
this is fantastic
i love clever posters
 
user406009
@SuperUberDuper The same way you use "normal" promises.
 
user406009
Only you get some more features.
 
3:16 PM
lmfao
 
What's the hotkey to switch between desktops on w10?
 
w10 has workspaces?!
WAT?!
 
@rlemon Surprised that wasn't the first thing you noticed
 
yup.
 
how2workspace?
 
3:18 PM
RTFM
 
OMG I SEE IT
 
i dont know how u instantiate a bb promise and a native one
 
does a 3-finger swipe work, like on mac?
 
@BenFortune yea, you have to find the + add desktop button tho
 
user406009
3:18 PM
@rlemon First thing you need is to download more ram. Then you need to clean your computer by giving it a bath. Finally, you will then be ready to use workspaces.
 
@rlemon You can switch between them with Winkey + ctrl + left|right
 
@BenFortune WOOHOO
Can do win + tab
 
@Lalaland go away
@BenFortune awsm
 
Still looking for the shortcut to create a new workspace
 
user406009
@SuperUberDuper You instantiate a bluebird promise the same way that you instantiate a native one.
 
user406009
3:20 PM
Same API.
 
I don't understand how the browser differentiates unless BB overrides the native one
 
WinKey + Ctrl + D to create a new workspace and switch to it
WinKey + Ctrl + F4 to close current workspace
 
Ew, F buttons
 
@SuperUberDuper duck typing.
 
@ssube neat
 
the browser (or any js code) shouldn't care if that promise came fomr the native api or bluebird or other. If it quacks like a promise and walks like a promise, it's a promise.
 
@ssube Did they manage to get it working on windows yet?
 
It just tries to use it like a promise. It calls .then().
 
3:25 PM
gah
 
What the fuck is going on with the Android room?
 
@BenFortune looks like it?
 
@ssube Oh shit yeah, nice
 
user image
3
I snorted
 
I want module A to get a promise from module B and then when module B does some special thing A hits the then method. Then I want to immediately get another of the same type of promise from A in B.
 
3:34 PM
@SterlingArcher lol, guy should've helped him
@BenFortune looks like nothing much at all
 
why can't i get div left position using mydiv.style.left; ?
 
what is the position set to ?
absolute, static, relative, fixed ?
 
@Abhishrek relative
sorry absolute
 
!!google what is a stone weight measurement
 
3:40 PM
@Zirak don't you control that with read file and modes? I have an is-executable callback in the lisp bindings, not sure what it is
 
I've been wondering what a "stone" was in weight
I keep reading it in the Game of Thrones books and I'm like... wtf is 3 stones?
 
pretty heavy
 
@SuperUberDuper You want events that can fire multiple times?
 
Well A has all the code for monitoring something and at certain times I want it to tell B about it
so every time a promise from A resolves I get B to do something
 
Why does babel sometimes compile to only " use strict; "
 
3:42 PM
and then I want to listen to A again
 
and other times it works fine, when using file watch compiling
 
then A may use promises internally, but it sounds liek you want an event expose on A for B to subscribe to
A promise is a one-time thing (you can just do it again, but each promise only resolves once). Events are when you want it to trigger over and over, when appropriate.
 
@SterlingArcher barbaric weight unit, used in backwards countries like UK and USA
 
@SterlingArcher 1 stone = 14 lbs
 
@NathanJones wikipedia said 16lbs
 
3:47 PM
only on leap years
 
@SterlingArcher depends on the "pound", aparrently
16 scottish pounds
 
I weigh many stones
like at least 15
 
@Luggage how can I set up this event system?
 
I weigh 12.5 scottish stones
 
its not in the DOM but in a script
 
3:49 PM
choose an event pattern you like. EventEmitter, for example
 
anyone here an nginx guru/ninja/rockstar/human?
 
of even just pass a callback
 
hmm call back sounds good
 
I dunno why there are still many countries which doesn't use the IS of measurement
 
history and resistance to change.
just normal human behavior
 
3:52 PM
I prefer to measure weight in ISIS
 
@NathanJones just ask your question
 
How many severed heads do you weight?
 
@Luggage some traditions need to die
like toros here in Spain
 
I agree.
 
I fact in catalonia they are forbidden
 
3:53 PM
what's that? bull fighting?
 
there are also "states" in spain
like in EEUU
no
this
 
:/
 
that's what I meant
 
In spain, there are tacos
 
in that picture the bull just looks dangerously playful
Yea, I know..
 
3:54 PM
So I don't give a shit when the bull hurts a human
 
0
Q: How do I serve static files case-insensitively with nginx?

Nathan JonesI'm trying to serve static files with nginx, and I've already tried adding ~* to the location option, but that doesn't seem to work with what I'm trying to do: serve files with case-insensitivity. Right now, I get a 404 if the case of the URL doesn't match the file's name in the file system. For...

 
because the human understand the situation and voluntarily puts themselves in danger
 
exactly
the bull is defending itself
that's the difference
 
I didn't know they killed the bull... that's fucking stupid
 
yes, it is
and sometimes the bull lasts like 10-30 minutes dying
 
3:56 PM
Man, I keep having to restart babel watch compile because it keeps producing zero output files randomly
 
then they cut an ear, or the tail
as an achievement
it's a shame :/
 
Stop posting the pictures; I don't want to see it
 
Oh good, I was about to bin it.
 
x.x
 
3:58 PM
There we go. Out of sight, out of mind. Now it's a charming tradition again.
 
!!afk leaving work!
 
In windows, do you have to run git bash whenever you want to do something within git?
 
Everyone is peaceful, ISIS is dead, the year is 2077, George W Bush is back in presidency, Obama became a concert pianist, Hitler was misunderstood, etc.
 
Can't you just run it from cmd or something
 
4:02 PM
just use cmd
bash is there to run bash scripts.
 
Yeah, I installed git to the cmd
but now I can't use commands I'm used to in linux
 
or as an optional shell. It's absolutely not mandatory. I use git from plain windows cmd.exe all the time
did you choose to put all unix commands in your path?
use that option. it says "dangerous" but I've never noticed a problem.
 
Should I choose to import unix tools to the command prompt?
It has a warning bellow.
Hm ok, I'll try that
 
yea, that's the one I'm talking about. Use that.
it doesn't have all unix commands, but it has enough to make you feel at home
ls, grep, etc
 
And is ssh-keygen command unix only?
 
4:05 PM
and since things like piping and redirects are mostly the same in bash and cmd, you can ALMOST forget you're in windows.
i think it comes with that
 
noice
 
it has openssh. you can onfigure your keys and hosts in ~/.ssh/config just like unix
only ~ doesn't work in cmd.exe, sadly.
 
If I choose to import unix tools and git to the windows prompt, what's the point of the option "Associate .sh files to be run with Bash" ?
doesn't it run by default or something
 
so if you double click one in windows it'll use bash.
"open this file with..."
since you'll likely run them from the commandline, it isn't needed.
but probably ok to do.
close and reopne your command prompt after installing to get the updated path.
 
sweet sweet ls :-D
 
4:09 PM
colors might not be enabled by default but I think you can turn them on. I'll leave that as an exercise to the reader.
 
heh, also, is there any advantage of running the git bash executable in the git installation folder?
 
I don't follow.
 
mfw cortana doesn't recognize my accent -> :(
 
!!urban mfw
 
@FlorianMargaine mfw Abbreviation for "my face when
 
4:11 PM
imgur.com/gallery/SukCxvl classic web designer
 
I asked it "When is the Tartan Heart Festival", it recognized "When is that artine harzer stival".
 
@SterlingArcher at least it's a nice looking lock screen...
 
@NathanJones hah, there's always a silver lining,
 
@Luggage works great thanks
 
@Zirak oooooh I got it. I did return a string, and it is what is expected, but returning 0 from file-size wasn't very wise :D
 
4:20 PM
ugh... why is it so frustrating to export a meteor package on the server?
 
@ssube are you gonna go to MidwestJS?
 
Uh.. this is looking to be a 50 hour week and I'll never understand how people who do that on a regular basis even survive
 
Welp time to logoff imgur. Just saw some very nsfw stuff on the FP
 
"FP"?
 
@ivarni caffeine
 
4:22 PM
But before the NSFW I found this very clever Lion King gif.
Front Page
 
@catgocat yea, instead of a warning on that install option it should way "recommended".
say*
 
@NathanJones Ah there's my problem, I'm already doing 8 cups a day on a 37 hour week. I might have developed immunity
 
So, I can build a debian package from source for an autotools project... Now shall I make it for python projects or nodejs projects?
 
@ivarni i can't stand the jitters that I get from coffee, so it's rare that I drink it
 
4:23 PM
ie. build a debian package from node sources
 
i hope things cool down soon
 
@Nick wat? no
 
I never even knew this site had chatrooms until it told me to move my messages to a chatroom. Sweet.
 
@Bradley Welcome to the JavaScript chat! Please review the room pseudo-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.
 
This is where the party is.
 
4:25 PM
All the coke and hookers are around
 
wow. :)
 
Beer's in the fridge and the nuts are all over the place
 
mmm.. good idea. I think I'll take myself and my laptop to a place with a nice IPA after this meeting I have in 1/2 hour.
 
Quick question, BlobBuilder() is being deprecated for security reasons, yes? Did they ECMA seriously not consider the security issues even before creating this type or is BlobBuilder() a Chrome only type?
 
@Luggage cheers then, I've already cracked a czech bud
 
4:27 PM
if that's anything like a USA bud..
 
@ssube Why not?
 
It's not
 
ok, good.
 
My boss jsut told me that the company I work for is sponsoring, so I get to go for free
 
It's so they can clean out your office while you are gone.
or cubicle or bench..
 
4:29 PM
@Bradley mdn says it's in Chrome and IE10 but I've never used it or heard about it before.
 
!!mdn blobbuilder
 
@JoshLeBlanc BlobBuilder
 
wait! did someone say coke and hookers?
 
So, yes, BlobBuilder() is deprecated in favor Blob() it seems, thanks for the link
 
4:31 PM
@SterlingArcher wait! did someone say blackjack and hookers? (source)
 
well played
 
and a lunar lander.
 
poll: does everyone empty their pockets when they are at their desk? keys, phone, money, etc.
 
4:32 PM
yes
 
depends on what pants I'm wearing, but keys always come out
or when I go outsied my trunk and hood will be open
 
@Luggage I often start my car :(
 
@Nick never heard of it, don't go to confs
 
You need keys on the table so you can reach them quickly if you need to keywhip someone for using jquery </protip>
 
good thing it auto shuts off after like 7 minutes or something
 
4:33 PM
Get in car, put in key "warning, trunk is open", get out, close trunk, get in car, "warning hood is open".
 
user1596138
@Shmiddty have you ever had the need to use refs in React?
 
@ssube Confs are pretty neat
 
Every time I leave a conf I just want to code and try out new stuff, it really is awesome
 
@Luggage for me it is, get out of car, shove keys in pocket, car starts. shut down car, keep keys in hand, pickup laptop bag, car starts..
 
hehe
 
4:36 PM
@ivarni on most confs they let you keep your pcs open inside, I thought
 
no auto start for me, I drive a manual.
 
user1596138
@OctavianDamiean Why did this tweet gain traction today? Someone at work posted it too, it is from what a year ago?
 
an increasingly rare thing on this side of the pond.
 
@Luggage those aren't exclusive
 
@towc yeah, but trying to listen to a speaker while coding isn't very easy, and in breaks / evenings it's more interessting to talk to people
 
4:40 PM
exclusive? no. I'm just commenting on less and less vehicles being sold are manuals
 
@Luggage *Highfive*
 
and some models don't even have the option
which I lament.
 
@Luggage I mean, you can get a manual with autostart
 
^ true that
 
ohh, i see.
have ot leav it in neutral, i guess
 
4:40 PM
!!should I work outside?
 
@rlemon Definitely
 
yeah
 
or you get a remote controlled car.
 
autostart? as in a car that starts by itself?
 
My supra doesn't have a clutch disengage to start, so I call it a hybrid.
 
4:41 PM
@ivarni push-button start, especially when you're not in the car
 
if you forget to push in the cluth the car moves.
 
like in your nice warm house
 
amazing balls for the winter
start my car 5 minutes before I leave
from my warm house
 
@ssube Oh right. So basically a remote?
 
yeah
 
4:42 PM
So the term "autostart" is amazingly misleading then :)
 
@Luggage that's a little weird. Don't you have to do that, or is it because it's weird/old/broken/super torquey?
 
this is a tearjerker
 
the sensor on the pedla is just not working or something.
and the starter has anough power to move the car, it' sjust not a safe way to do so
 
!!afk
 
4:44 PM
and is hard on the starter
 
user1596138
@Luggage HAHAHAHA fuck yeah that's how my enduro is
 
So you have a hybrid, too. :)
 
user1596138
Except it fires the hell up. So you're giving it some gas and hit thwe starter.... It just takes off haha
 
ohh, yea, it'll start.
 
user1596138
Last time I did it I still had the kickstand down so I am like launching with the kickstand down and ugh haha it was holarious
 
4:45 PM
i've actually moved the car about one carlength while it was not runnign ince using the starter.
on purpose, i mean
 
these are the reasons I don't trust manuals
 
It's an '85 Supra P-Type and it's for sale :)
 
plus I'm crap with a clutch pedal
 
I drive manual for one reason, having a decent chance of getting loose if the car is stuck in snow
 
I just don't suck and never get stuck
:D
 
4:47 PM
@ivarni how does a manual help with that?
 
well, that is a lie, I got stuck last year trying to get into my driveway
but it was 2+ ft of snow
 
even ancient automatics have D/2/1
@rlemon driveways don't count
 
@ssube You just sort of rock back and forth building momentum, a bit like a pendulum and that's very hard to do without a manual clutch
 
you can do that in an automatic
source: I've done that many times
 
it's not any harder in an automatic
cause it's a pain either way
 
4:49 PM
I'm not talking about 2 feet of snow here :)
 
4 feet? 8 feet? 16 feet?
 
as long as it's not up to the fenders I can get out
 
2^n feet?
 
@ivarni that's like 6" dude
 
4:50 PM
oh am I messing up this imperial system again?
 
back when I had an E30, I loved hitting 2-3' snowbanks with it
 
convert to metric already
 
just gun it straight into a huge wall of snow across the road
 
3' = 1m, or pretty close
 
4:51 PM
pug life
 
euphoria
 
@ssube gotcha
 
that front-end straight into snow
it flew everywhere, especially straight up
 
i.stack.imgur.com/F4iWY.jpg <-- saw this at the supermarket the other day btw. Lost it.
 
@ssube nice that yours?
e30's look so fun
 
@ʞɔᴉN no. I had the same model/trim/color, not in as good of condition, but sold it around christmas.
 
ah bummer
 
325ix is a brilliant car
 
4:59 PM
whats the x for again?
friend said it was just a better interior
 
feels super heavy, but once you negotiate with er, goes pretty quick
i is the better interior (over the es), x is all-wheel drive
 
noice
 
they made like 30k ix ones ever, maybe 3-5k are left
 

« first day (1748 days earlier)      last day (3207 days later) »