« first day (1593 days earlier)      last day (3370 days later) » 

12:00 AM
@Shmiddty I've apparently got that guy blocked. He's pretty dim.
 
sometimes. I think it's a language barrier, though
@taco pick three hex colors for yourself. No grays, whites, or blacks
 
I only block people who annoy me. He's one of the few
 
I must be drunk. I first read block as black and was trying to work out if you were a racist or not.
 
bananas
 
no, but if you thought he said "I only black people who annoy me" you would also be confused
 
12:07 AM
haha yeah
 
#000; is the preferred term
 
@rlemon I just had a thought that could make the color thing simpler. Require a specific format [#000], then replace the whole of the text with the square
 
we could do both
 
Unhandled rejection PR is under a build.
Assuming everthing passes the io merge is happening.
 
Yeah. I like being able to see a visual of the color if someone else posts it, and this creates a burden of knowledge
 
12:11 AM
hrm. chat just refreshed for me
 
@BenjaminGruenbaum Congrats!
 
\B\[#(?:[0-9a-f]{3}){1,2}\b
I can't figure out how to match the ending ]
this matches [#hexColor
 
does putting a ] before the \b not work?
 
:P
 
12:19 AM
What about this \B[#(?:[0-9a-f]{3}){1,2}\b]
 
nop
 
\B[#(?:[0-9a-f]{3}){1,2}\b]
It keeps removing the \ before the last ] when I paste it in here
 
go to regexpal.com and try to match it to [#000]
and if you wrap single line stuff with `` it will turn into a code block
 
\B\[#(?:[0-9a-f]{3}){1,2}\b\]
 
nice, ty
 
12:22 AM
Is it triple or double back ticks?
haha I've thinking in markdown
 
\B\[#(?:[0-9a-f]{3}){1,2}\]\B works, but i'm not sure why you're using \Bs in the first place
 
single. here is here
damn
@david because #abcbanana
will match #abc without
 
it won't though because you have [] around it
 
those are escaped
and it was part of the other script :P
when I type #c0ffee
 
what do you mean escaped? ><
and you're only capturing 3 or 6, so it wouldn't match either
 
12:24 AM
I see this ^
 
but you didn't have any square brackets around that...
so the regex shouldn't match it ><
 
we are talking about a new feature which takes [#hex] and doesn't include the text
so you just get the colored block
 
so would you want xxx[#000]xxx to match and make the block?
 
no
that should fail.
xxx [#000] xxx shouldn't
is the extension
 
then you need to use the regex i posted, not the one jack posted
his will match [#000]xxx
 
12:30 AM
@david just tested, ty
 
because the \b near the end is completely pointless. It checks to see if there's a word break before the ] :P
@rlemon unfortunately it also matches [[#000000]]
 
i think you might be screwed
because [ and ] don't count as word characters
so \b doesn't behave
 
@rlemon why not just use the current one then add an or? ...|\[#[0-9a-f]{3}{1,2}\]
 
well to be frank (you can be sally) I was doing this for you
I wont include this in mine
 
12:36 AM
<3 2.9
banana
 
eh. maybe. maybe not
leaning towards the latter
 
`.~'
 
☃
!!cowthink ☃
 
well that's just adorable
 
12:39 AM
 __
( ☃ )
 --
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
is that a ladybug?
 
you could use (^|\s)(\[#(?:[0-9a-f]{3}){1,2}\])(\s|$) and make sure you grab the captured group rather than the whole match :P
 
in the cowthink, it looks kind of like a ladybug
 
!!cowthink e=ಠಠ T=/\ I am bad at this
 
12:42 AM
 _________________
( I am bad at this )
 -----------------
        O   ^__^
         O  (ಠಠ)\_______
            (__)\       )\/\
             /\ ||----w |
                ||     ||
 
Oh, there are params
 
yes there are
 
!!cowthink e='' T=ww Bananas
 
 ________
( Bananas )
 --------
        O   ^__^
         O  ('')\_______
            (__)\       )\/\
             ww ||----w |
                ||     ||
 
this is very funny to me
 
1:38 AM
0
A: How do I handle errors with native promises in io.js / node.js?

Benjamin GruenbaumIn io.js Starting with io.js 1.4 you can use the process "unhandledRejection" event: process.on("unhandledRejection", function(reason, p){ console.log("Unhandled", reason, p); // log all your errors, "unsuppressing" them. throw reason; // optional, in case you want to treat these as err...

Posting an answer for a version of io.js that isn't out yet :D
Review please
 
Hmm, is that a v8 feature? it would be handy to have in the browser too.
Although it would have to live somewhere else because there is no process
 
!!caniuse Promise
 
You can! and there is a fallback too
 
@david I wrote that API and petka wrote that PR :P
It just got merged in io like... an hour ago. It's being released tomorrow.
 
1:47 AM
nice
 
user1596138
2:13 AM
So I just pulled this girl out of a ditch with my truck but I had to run home and get my strap first so it was like extra nice. So anyway she assumed I wanted something in return and it was the most awkward encounter I've ever had lol
 
So, naturally, you slept with her
 
user1596138
Totally off topic. I am sorry. Someone had to know ig
 
user1596138
No that's why it was awkward
 
Oh, because you didn't sleep with her! Well that wasn't very nice.
Probably hurt her feelings
 
user1596138
No I just Dont think she knew what face to make for rejection lol
 
2:17 AM
Considering I'm developing for the web, should I be thinking about buying a work laptop? Or is a regular consumer one fine? Would I ever need a business laptop for programming (any language)?
 
get AlienWare
just to be sure
 
I kinda want to buy a dev laptop too
I assume you'd want to be running linux on it though, and at least in NZ you don't seem to be able to buy linux laptops
so i'd be paying a premium for a windows license that i'll never use
 
user1596138
@david there's not a big enough premium to make it worth caring about
 
user1596138
Its not like the premium is what you would normally pay for windows lol. Its what they charged Asus or whoever for 1 license out of thousands haha
 
user1596138
2:28 AM
Ii wish tho I would've bought from system76 if they were any cheaper than comparable windows machines. Maybe I'll still get one sometime
 
@david Or buy Apple and have a Unix shell right there
 
user1596138
^ if not for the prices lol
 
user1596138
Course not everyone is broke lol
 
You're gonna use it every day to earn a living. If that doesn't justify spending a little more for hardware then I don't know what is
I own all of the hardware I use for work, because I didn't want to be stuck with the cheap shit companies typically give ya
My work setup is actually beefier than my home setup
 
user1596138
2:43 AM
My work hardware is apple. So.
 
user1596138
Imacs ftw lol
 
@monners I already use MBPs are work and they're cool and all but not worth the price
 
@loki9 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.
 
3:02 AM
@rlemon Ty for that link, will give it a good read tonight
 
Do MacBook Pros have a consumer and business version? Or do companies like Facebook just buy the regular one and give to employees?
 
@DemCodeLines I'm sure they have a business version with some security features and discounts and stuff, I'll look for one.
Apparently not: apple.com/business/mac
 
I found a site giving out free .science domains
 
3:18 AM
@david To each their own. Totally worth it for me.
 
@david *at not are
 
@DemCodeLines There are certainly company discounts, but the OS doesn't have an enterprise-y version as far as I'm aware.
 
user1596138
3:39 AM
@Meredith thanks for the tip!
 
user1596138
@Meredith lol why did you register all those. I didn't realize that was the view orders page :P
 
I just tried all the words I could think of
And dont think I have a dirty mind it's just that all the normal words were taken
I tried a lot of words
 
i assume thewaron.science is taken?
 
yep taken
itsnowonderpeopleareafraidof.technology is available though!
oh that's not quite right
 
3:58 AM
Is it true that Facebook gives its employees mbp instead of conventional business laptop?
 
Why wouldn't they? They probably give their employees the choice
The FB guys at the last conference I went to had MBPs
 
Why would they?
 
@DemCodeLines Virtually every company here gives you a MBP
Air, sometimes, depending on role.
 
They're pretty much the standard for frontend work
 
@SomeKittens define here
 
4:00 AM
s/frontend/software/
 
Earth
 
@DemCodeLines San Francisco/Silicon Valley
 
@SomeKittens I work in a .NET house, remember?
 
Wait what
Companies give you free laptops?
 
sigh
 
4:01 AM
@Meredith Not "give", but you are entitled to use them to do your job
 
I can't get myself to believe that everyone gets mbp and develops on osx. They've got to install a new os, right?
 
Even if they didn't give then to you, it's a tax write off
 
The laptop is technically property of the company.
 
@DemCodeLines Seriously?
 
@SomeKittens Oh just a work computer
 
4:01 AM
@DemCodeLines 'fraid so.
 
@DemCodeLines Why wouldn't people develop in OSX?
 
Because.
 
@Meredith Correct. Though no one cares if I use it to look at cat videos on Saturday mornings. (They would care if I use it to develop a competing product).
 
It's got a much better toolset for development out of the box than Windows
 
OSX is unix-based
 
4:03 AM
But less choices when it comes to getting new software.
 
@DemCodeLines Like what?
Games?
 
It's not like Windows doesn't have all that toolset available to download for it
 
The close buttons are on the left.
Dealbreaker
 
lol
 
There's a few things that really bug me about OSX, but no dealbreakers. Chrome/ST/Slack all work.
@DemCodeLines You know what Windows doesn't have? A decent terminal.
 
4:05 AM
^^^
 
You're not limited to using the stock terminal though
 
@Meredith There is no decent Bash replacement on Windows
 
The whole point of the great ui is to not have to do stuff through terminal
 
Yeah idk much about bash, I avoid it as much as possible
 
@DemCodeLines You don't know what you're talking about.
 
4:07 AM
@DemCodeLines you honestly think windows has a great UI?
(disregarding the stupidity of the second half of your statement)
 
@Meredith Yeah, I use iTerm2 w/ zsh
 
Windows has a great UI for what it intends to do
I like cmder
 
Windows also lacks a decent package manager. OSX's brew is ... ok.
 
@Meredith Yeah, most of the .NET guys here use that
 
All I'm saying is Windows has a pretty good UI for most things one want to do. I mean look at Ubuntu, they tried to do that with Linux, but it's still bad. You have to give ms credit for it.
 
4:09 AM
What's great about windows 8 is that they make it so hard to install ubuntu alongside it
 
Chances are, for most things, there's a UI for it, whereas on Linux, you have to go through the terminal.
 
Like, my grandmother doesn't want to use a terminal
 
Win8's UI was TERRIBLE.
 
Windows 7's wasn't
 
@DemCodeLines If what you're trying to do on a daily basis is easier through a UI then you can't be doing anything particularly complicated
 
4:10 AM
It's not really any different from windows 7
 
Define complicated
 
The start menu is just full screen now
 
@DemCodeLines Cloning git repos, pulling in NPM/Bower/Ruby/anything dependencies, running build chains
 
I'm sure you could make a gui application to help with all of that
 
You've got to use the terminal for that
 
4:12 AM
@Meredith it is way too fucking hard to shut down windows 8
 
But it'd be so cumbersome
 
@DemCodeLines "That" is my job
 
@phenomnomnominal right click start button -> shutdown
instead of left click start button -> shutdown
 
Although GitHub client for Windows does help in some ways
 
@Meredith exactly, why did they fucking change that
ANGRY.
But also, I don't care. I rarely have to use windows.
 
4:13 AM
Because Steven Sinofsky. That's why.
 
@DemCodeLines GH client again, only helps with the simple things.
 
user1596138
Lol at the not developing on OSX thing
 
user1596138
Unless you want windows
 
I don't like a lot of things about osx
But honestly I don't know if it's worse than windows
 
I feel I'm getting off track. All I was trying to say is that it's not like you can't do the same stuff on Windows that you do on OSX. You just need third party support for it, which there is.
 
4:15 AM
@DemCodeLines Develop for iOS?
That's a pretty major one right there
 
By the way, OSX and iOS seem to have topped the security vulnerability list.
@monners well, yes.
 
@DemCodeLines Uh huh, who told you that?
 
No I saw that too
 
user1596138
I mean its so close to nix. You have bash built in and can use just about every tool
 
Wasn't the latest one FreeBSD?
 
4:17 AM
Security or ios apps?
 
@monners To be fair, it's starred on the right
> thehackernews // riiiiight
 
user1596138
And its built on posix so that's all familiar. ACLs are actually nice when you need it
 
@DemCodeLines Yes, OSX top, iOS 2nd.. gfi.com/blog/…
 
@SomeKittens Didn't see it, my window was too small :(
 
@Jhawins It's Linux with a more polished UI and software that charges you money.
 
4:19 AM
@SomeKittens As a developer, I really can't say software that charges is not good. :-)
 
@Sheepy I've been a Linux user for years. Was shocked when Growl wanted my dollars. Just hadn't occurred to me.
 
If you don't wanna use iOS or OSX, then don't, but don't try to justify your decision to do so by telling the people who do choose to use them that they are wrong for doing so.
 
I don't know, I'm used to developing everything on Windows, so I don't know where I'd start on osx. I have yet to find a good tutorial.
 
I've dev'd professionally on all three. Linux > OSX >>> Windows
 
@monners I'm not trying to convince anyone. If you look back, i said "I can't get myself to believe that everyone gets mbp and develops on osx. They've got to install a new os, right?"
 
4:22 AM
Can you make the close button in osx go on the right side
 
user1596138
@SomeKittens yeah kinda. Or you can just not use that software other than the OS
 
user1596138
@Meredith cmd+w and who cares ;P
 
user1596138
I hate the windows key on windows. I like the way OSX does those keys
 
user1596138
Until windows 8 I Dont think it had a worthwhile purpose. Still isn't that useful
 
The windows keys is one of those keys that you only ever press accidentally
Like num lock
 
4:26 AM
False.
 
I've rebound caps-lock to ctrl
 
There are some great windows keys shortcuts.
 
So handy
 
Idk man my num lock is right next to backspace and I always hit it accidentally
 
user1596138
@retsam oh shortcuts? Haha I've never thought to try
 
4:27 AM
Windows-D, show desktop, press again to bring back whatever you had open was really handy
Windows-L to lock the computer (something OSX doesn't seem to have a shortcut for)
 
The only keyboard shortcuts I use are ctrl+c/v/x
 
user1596138
Yeah already have that mapped to something else or a shortcut on taskbar
 
Sometimes ctrl+a
 
Windows plus arrow to move windows to half screens or to the next monitor... something OSX really needs.
 
user1596138
Keyboard shortcuts are the best thing ever..
 
user1596138
4:28 AM
@retsam OSX has that. Control+arrow
 
user1596138
Move to next space. You can take a window with you
 
user1596138
I use that a lot
 
Not really the same thing.
 
user1596138
It moves to the next monitor
 
@Meredith Seriously?
 
user1596138
4:29 AM
I just Dont use 2 monitors and use Spaces instead
 
@Jhawins You use betterSnapTools?
 
What's wrong with ctrl+a?
 
user1596138
Nope
 
The main thing I want is for the window to take up half the screen; I like to split screen browser/text windows.
And I do use multiple monitors. I find multiple spaces fairly useless, honestly.
 
user1596138
Idk I use shortcuts for so many things I feel like my workflow would be exhaustingly slow if I didnt
 
4:30 AM
That's what betterSnapTools allows you to do, and you can bind it to shortcuts
 
user1596138
Always clicking through pull-downs
 
user1596138
@retsam you find them useless. I've found a way to incorporate them with daily work :P. Nothing wrong with either
 
user1596138
I wasn't supplied a second monitor :P
 
@Retsam Three monitors, five spaces
 
Sometimes I use my tv as a second monitor
 
user1596138
4:32 AM
Not gonna buy one myself
 
In all seriousness, though, what do multiple spaces help with?
 
@SomeKittens three monitors, many spaces
 
I used to put my pandora window on a second space, but then that got stupid because it kept trying to change to that space whenever I clicked the Google Chrome icon, so I gave up on that.
 
Although my primary monitor is a 32" ultrawide, so...
 
user1596138
@retsam one space has filezilla or other network access tools. My other space has editor/chrome/whatever else
 
user1596138
4:33 AM
Shell would go in space1 but I use Visor or TotalTerminal or whatever. A quake style terminal
 
Yeah; but if you can't see both at once anyways, why not just use how windows already work? Click the icon for one thing when you need it and click the icon for the other when you need it?
 
@Retsam left monitor has two Sublime Texts, open to the two different projects I work with. Middle has Chrome & iTerm. Right is misc stuffs
 
user1596138
It helps stay organized. There's only so much space and I almost always need more things open than I have space
 
Lol so all those expensive mbps come from investor money, huh?
 
@DemCodeLines Quite a few, yes.
 
4:35 AM
And what are the specs usually like on these ones?
 
user1596138
@retsam things get cluttered. Its easier. For me anyway and for other people I know.
 
@Retsam I prefer having the whole screen. Three-finger swipe is more deterministic than alt-tab
 
user1596138
When I had the 27" iMac I didn't need spaces to stay organized lol. But I have downgraded
 
@DemCodeLines Very good.
 
@SomeKittens Yeah, but the tradeoff is you need to mentally keep track of where everything is.
 
4:37 AM
I wish windows had workspaces
 
@Retsam not really - it's always in the same place.
If I'm in Chrome, swipe right to get iTerm, and vice versa.
 
Like 8gb/1tb/i7?
 
user1596138
@retsam if you click the icon in the dock it takes you to the right space anyway. And everything is still organized right ;P
 
@SomeKittens I don't find windows "cluttered" cause I don't need to care about whats buried under what; I just summon whatever I happen to need.
@Jhawins Yeah; but if I'm clicking the icon anyways, why bother with spaces.
 
@DemCodeLines they're up to 16GB RAM now
 
user1596138
4:38 AM
What about when you need to drag things from 1 place to another?
 
What the processor like on these machines?
 
user1596138
@retsam organization. Window is never in the wrong spot. Its like a shortcut to my finder window at the current folder AND filezilla and they are spaced to comfortably drag between
 
user1596138
Or anything else similar. I use it for operations where things need to be in the right spot like dragging back and forth
 
I use spectacle which lets me use a hotkey to move windows around to take up different halves of different screens (or the whole screen). (Windows has that functionality built in)
 
user1596138
4:39 AM
And that space is set as default for the apps I want in it. Any time I open them they go to that special space. Its easy to remember when they're ALWAYS there like I set them up one time months ago
 
@Retsam I've considered trying something like that
 
Another benefit of my approach, since I half-screen everything, it's more flexible. Do I want 2 Chrome windows? 1 Chrome window 1 Terminal? Terminal and Text Editor?
 
user1596138
So you needed the same functionality is what you're saying. You just have a different solution.
 
Right now I have this chat sharing half the screen with a youtube tab.
 
user1596138
Sometimes half screens doesn't work. How big is the space? Do I need 3 things?
 
4:41 AM
If I need 3 things (at once) then I need 2 monitors.
Adding spaces doesn't let me see more things at once.
 
user1596138
I Dont have to re organize to half screens. I click filezilla and everything is right where I left it months ago perfect for file operations or remote config
 
What if you want to see filezilla and a browser at the same time?
 
user1596138
You're running in circles lol. We covered not seeing more things at once. And multiple monitors is ruled out as a solution
 
By "covered" you mean "with spaces, you can't?"
 
user1596138
@retsam I bring a browser window to the filezilla space. Which is abnormal and the browser will stay there hut reopen in its correct space next time
 
4:43 AM
Oh. Yeah, that sounds like a pain.
 
user1596138
@retsam yeah ofc
 
user1596138
Multiple monitors aren't an option and that's the only way to see more at once.
 
user1596138
Lol do you even have a point? Or are you trolling.
 
Yeah, but it's easier if you don't use spaces and don't need to move a browser window to a different space.
 
user1596138
Cause this sounds like a joke.
 
user1596138
4:44 AM
I'm out
 
I'm not trolling; I legitimately don't see the advantage, but w/e.
 
user1596138
Hey you Dont but I do. I said that at the beginning.
 
I know you said that, I remember. That's why I'm having this conversation, trying to figure out what the advantage is. I still don't see it. That's fine.
 
user1596138
Its purely for organization for me. Maybe you Dont need that. So let me be right for me and you be right for you lol in this situation that can happen
 
user1596138
I'm sure you have an opinion on tabs or spaces too.
 
4:46 AM
Lol, I really don't. You're the one who seems to be getting anxious about this conversation for some reason.
 
@SomeKittens just saying it straight up probably would have been more helpful.
 
user1596138
You're the one with the absolutist desktop management solution lol
 
Now I think you're trolling.
You have one opinion that you're explaining the benefits of I have another that I was explaining the benefits of. I'm not "absoultist" I just don't see the advantage of your solution.
 
@DemCodeLines Saying what?
@Retsam He's like that. Don't let it get to you.
 
Info about the processor
 
4:51 AM
Oh, I don't know what mine is offhand
 
Strictly not a js question...but what is data-url attribute you attach to html5 input file element?
 
user1596138
@SomeKittens uncalled for. But whatever. All I did was say my way works and got told why it doesnt. Ofc I defend that
 
You guys see the articles about OSX/IOS being the most vulnerable OSs of 2014, was surprised
lol IE most vulnerable browser still
articles came out like 2 days ago. About time Windows.
 

« first day (1593 days earlier)      last day (3370 days later) »