« first day (1188 days earlier)      last day (3766 days later) » 

8:00 PM
posted on January 16, 2014

Remember that April fools post I wrote a couple years ago on WebKit.js? That someone had ported the entire WebKit rendering engine to JavaScript so you could browse while you browse? It was going to solve all our compatibility woes. That one was vaporware, but now it’s actually happening for real.  Trevor Linton is porting WebKit to JavaScript via Emscripten.  The real WebKit.js is here.

 
I love regexp. Makes my life easier a lot of the time. Makes whoever's reading my code struggle to understand it though. :(
 
@nderscore comment well
 
o/ Hey Jan
 
Luckily, I'm usually the only one who has to read my code and the code is only live for a few weeks at most, so it's not a problem
plus, I think even if I commented it, the guys who'd struggle to understand it would still struggle -_-
 
posted on January 16, 2014 by dutton

Encrypted Media Extensions provides an API that enables web applications to interact with content protection systems. Learn how to allow playback of encrypted audio and video.

 
8:07 PM
/Women'?s(\sReg(ular)?)?\s*(?=(,|$))/ this isn't so bad, right?
 
It takes a while to read
 
My eyes get overwhelmed by the symbols and slashes
 
about 10 seconds for me
 
I see too many unnecessary capturing groups
 
My eyes can discern individual symbols just fine. It's just the brain has to interpret all of them.
 
8:10 PM
@KendallFrey which ones?
 
@KendallFrey Meh. I don't like ?:
 
You and your fancy eyes
 
@nderscore Well, let's see... all of them.
@JanDvorak I always use it
 
(,|$) doesn't need grouping
@KendallFrey I never do when golfing
 
Especially when dealing with regexes with lots of groups, some which are required, and some which are not.
 
8:11 PM
aha, you're right
 
@JanDvorak When golfing, of course not
 
@KendallFrey use named groups when there are many
 
the rest I'm pretty sure are necessary though >.>
 
@nderscore they can still be made non-capturing
 
@nderscore groups, yes, capturing, no
@JanDvorak ew, no
 
8:12 PM
ahh (?:) this guy
 
user1596138
@rlemon wut
 
I avoid named groups as much as possible
 
for some reason, I tend to read (?:...) as lookahead
 
Does JS have named groups?
 
@KendallFrey I think not
 
8:12 PM
@KendallFrey Nope
 
I find that more confusing looking. I'm not using the capture groups anyway. Just using it for a string replace :)
 
Ruby does, but ruby has pretty much everything
 
I use REBEL, which has capture stacks
 
!!google named group
 
8:13 PM
Ruby is also PCRE right? @JanDvorak
 
@PeeHaa I think so
Ruby has \k
 
user1596138
Hahaha @rlemon I've had problems like that one in every language. Nice
 
(a\k<1>b) matches the language a^n.b^n
 
@JanDvorak Yep sounds like pcre
 
m59
Am I correct that you can not make a whole element gradient to transparent without overlaying another element with a background gradient on it?
 
8:15 PM
@m59 why would you not?
 
m59
In other words, if you want to the whole element to fade to transparent (not just the background)
 
user1596138
@m59 Is that the entire question?
 
m59
uhh...is there a rule I don't know about?
 
user1596138
Yeah just do it
 
@m59 Webkit has opacity masks
 
m59
8:15 PM
@Jhawins lol I don't know what you mean. Just do what?
 
user1596138
What does gradient have to do with it?
 
user1596138
If you can do it normally, how could the gradient make a difference. CSS right?
 
@Jhawins He wants a gradient of opacity
 
m59
do what normally?
Yeah, the mask would be the way to go but not cross browser.
 
user1596138
Oh I thought you wanted a gradient element to change to transparent.
 
8:16 PM
not a half-transparent element with a gradient background
 
user1596138
I was like... Come on..
 
user1596138
Yeah I don't know the slightest thing about that one. Good luck
 
m59
Man this made me dizzy. I don't even know what we're talking about now =D
jsbin time
 
Overlays are the usual approach
You can also render to a canvas (ew)
 
@benjamin Format your code - hit Ctrl+K before sending and see the faq
 
8:18 PM
holy wow, that's not what I meant to paste
holding a button while you're doing asynchronous requests :D
Look at the event handler, no extra locals needed :D
 
Hold on, I gotta look us what Promise.using() is
 
overlay transparent gradients
?? is this what we are talking about?
 
@rlemon we want a gradient of transparency of the whole element
 
@BenjaminGruenbaum I don't understand this Promise.using(lock(this),function(_){ return Promise.delay(500); }); why is there an underscore in there?
 
8:24 PM
@RUJordan _ is convention in some languages for "I know I have a parameter and I'm not using it".
 
but why declare it then?
 
MDN says promises are experimental right now
 
@RUJordan it uses a promise library
 
So it's not built into JS yet?
 
8:28 PM
Some places it is, some places it isn't - use a library :D
 
user1596138
So I was making fun of a girls' car on Facebook, somewhat rudely because she's full of it. And she ended up messaging me her number and saying I'm into cars so we would hangout tonight.
 
I'm looking forwards for generators.
 
user1596138
Trolling works sometimes. That is the lesson.
 
@Jhawins Alternative: she's into jerks.
 
user1596138
My point stands.
 
user1596138
8:32 PM
Also: Guys Zirak is here more now days. Do you think we should tell him or just let it go on like this?
 
I has phone with internet connection.
 
@JanDvorak generators?
 
@RUJordan functions that can yield results to a different method, then waiting until another result is desired
 
Interesting, where would that come in handy?
 
user1596138
Let's not tell him yet
 
8:35 PM
^ ok...
 
user1607528
I am about to start to a new project which gets done fast. And what framework do you recommend for designwise for responsive design, and other html kits buttons, forms etc. Bootstrap ? Alternatives ?
 
alrighty... so I have a SD card reader plugged into my USB and a VM running ubuntu with the USB shared
how the hell do I determine where this sucker is mounted
 
@Muhammet Bootstrap
 
user1596138
From the VM?
 
@Jhawins yes
I am using the VM to install Arch on the card
 
user1607528
8:36 PM
@SomeKittensUx2666 I thought so :)
 
user1596138
Figure out where the VM thinks it's mounted, then find out from the main OS what it's pretending it is for the VM. What are you running the VM in?
 
I'm trying to figure out how to figure out where the VM thinks it is mounted so I can fdisk it
Ubuntu 12.04 running in VirtualBox
 
user1596138
Oh. Just do what you would always do?
 
you are no help
 
8:37 PM
@Muhammet Use frameworks for data binding, not for design
 
I DO NOT KNOW WHAT TO NORMALLY DO
:P
 
user1596138
Oh haha my bad
 
user1596138
df?
 
user1607528
@JanDvorak like what ? example ?
 
user1607528
Codeigniter ?
 
user1596138
8:38 PM
I haven't needed to do it in awhile. I've been mostly OSX for a few months.
 
@Muhammet I think Angular and Backbone are pretty popular
 
user1607528
I forgot I'm in JS room :))
 
Angular's the best, but requires a different frame of mind
 
user1596138
@rlemon Since you know the size already you should be able to recognize it if you run df from within the VM terminal.
 
user1607528
I don't know much of a JS
 
user1607528
8:40 PM
It'll take a while to learn them too
 
@Jhawins trying to paste that into here but the shared clipboard doesn't want to work out
 
user1596138
Ha
 
It is a 4GB SD card, but nothing here lines up with it
 
user1596138
Wtf
 
@Muhammet start without frameworks
 
user1596138
8:40 PM
Is it mounted for sure?
 
user1596138
Can you access it from Nautilus in the VM?
 
I just unmounted it and remounted it and now I can see it
yes it was in Nautilus on the VM
strange stuff
 
user1596138
Haha hate that weird shit that stops being weird after you redo it.
 
user1607528
@JanDvorak I know :) AngularJS seems pretty good
 
user1607528
So is AngularJS will take over Jquery
 
8:45 PM
They don't compete
 
^
angular can use jquery
uses its own lite vs
 
user1607528
In the video on AngularJS homepage they compare it with Jquery, that's why I asked
 
Everything compares to jQuery :-)
 
ugh
will a linux user kindly help me with partitioning this card?
installation tab -> step 5
mkfs.ext4 /dev/sdX2
there is no sdf2
 
sda/b/c/d/e?
 
8:50 PM
card is mounted to sdf
 
ah
 
sdf1 exists
tutorial assumes two paritions
sdf1 and sdf2
I thought that fdisk above was doing that
it is a short tutorial
ohh fuck this i'm booting into gparted and making them there
 
While Linux is being discussed... How do I remove the "suse installer" from the boot menu if I don't have the suse installer CD?
 
@BenjaminGruenbaum you weren't around
 
See you later people!
I am on vacation for a week and a half!
Have fun you people :-)
 
8:57 PM
BYE NEIL!
 
Later brah
 
!!doge fail,spelling,horrible,rlemon
 
@rlemon Later Bobby!
 
  wow
very fail
             such spelling
                            so horrible
many rlemon
 
@qwertynl That is Mr. Tables to you
 
8:58 PM
@rlemon Ok. bye Mr. Lime.
Seriously I have to go.
 
so go
 
My flight is @ 8:30
lol
later
 
you people's web keyboard events suck monkey balls.
 

« first day (1188 days earlier)      last day (3766 days later) »