« first day (1545 days earlier)      last day (3402 days later) » 

10:00 PM
akamai is good, but you need pretty large amounts of traffic to use them
 
@Luggage static html?
 
Then your servrs only need to handle the dynamic junk
yea. if you are using any client-side templating your html may be static
 
do you already use html imports in your code?
 
I don't believe in CDNs
 
thats the next project I'm doing
 
10:00 PM
oh btw, I have :D
 
in my extension
 
whole frontend will be hosted in a cdn
 
heh, akamai doesn't even list prices
 
@BenjaminGruenbaum you've done NAND2Tetris, right?
 
10:01 PM
CDN exposes my visitors to cross-site tracking
@SomeKittens yeah I have
 
How translateable is that to Minecraft?
 
@BenjaminGruenbaum yeah, we can't legally use any public CDNs here, because of that. :(
 
@SomeKittens FWIW, NOR is simpler than NAND in MC
 
legally or contractually, not sure
 
10:02 PM
@SomeKittens someone did it before IIRC.
 
it describes how your html and JS can be hosted on a CDN and you only need to respond to your api calls.
 
how do you host your html on a cdn
 
Nand2tetris ALU in minecraft: youtube.com/watch?v=LGkkyKZVzug
Nand2Tetris CPU in minecraft: youtube.com/watch?v=7sNge0Ywz-M
 
@BenjaminGruenbaum hmm. Wife was thinking of doing something along those lines (kids love Minecraft)
 
The higher end parts are probably harder because they require writing code in programming languages but that's the hardware stuff.
Someone actually built hte CPU IIRC
 
10:04 PM
@FlorianMargaine I don't understand the question.
 
@Luggage what kind of html do you host on a cdn, and how do you retrieve it in your webpage?
 
Morning
 
@FlorianMargaine don't serve HTML, it's so 2003.
you serve templates that are later turned into HTML
 
@FlorianMargaine templates
 
10:05 PM
@SomeKittens see 2nd question
 
AJAX?
 
In my latest app i could server ALL of it. Maybe not CDN if i don't want to deal with CORS, but it's all static. Static html and a restful api.
 
@Luggage thats how we're going to roll
or try it anyway
 
Also, TIL using CSP slows down Angular by about 30%
 
10:07 PM
@FlorianMargaine <script> tags, require includes, r.js or browserify compiles so it gets included
 
anything outside of /api/* in my current project can be served by anything. Right now it's all served by node, but i'ss have nginx do it directly in prodution
 
there are a lot of options there
 
@SomeKittens didn't know that
 
with handlebars templates, f.ex., you can have your build process both compile the template to JS and include it in your minified JS bundle
then you have a couple script bundles on your CDN, include via script tags
 
10:07 PM
@ssube ok
 
tl;dr, it uses the Function constructor as a perf improvement.
 
that, too. I hand out html with knokcout data-bind attributes, but yea, you can put it all in JS.
 
@FlorianMargaine that's a more complicated build process, obviously, but you can get some serious performance out of it, since everything is cached large files.
 
@BenjaminGruenbaum destructuring doesn't work with chrome experimental? :(
 
handlebars is nice, as it compiles the templates to JS functions, which can then be optimized by the VM
 
10:08 PM
No, it's on the roadmap
 
the easiest way is just using static script tags and including the templates in your page.
 
bleh I need to get back into angular now
 
the simplest reasonable way is something like require and its handlebars plugin, which allows you to require an hbs file
 
i currently have requirejs fetching my html as it's needed. I understand this isn't the most performant but I can change all that at any time.
 
10:09 PM
chose it for our framework for credit.net
can't...wait....
 
You won't regret it loktar. There are no downsides that i've found. I don't miss generating any html on the server like int he old days.
 
user1596138
@Loktar Y U NO suggest me :(
 
@Jhawins for what?
 
want a job?
 
user1596138
10:12 PM
1 hour ago, by Jhawins
@Loktar I feel like the laptop you would be happy with I would probably be more than happy with. What machine do you want to buy most (within poor programmer price range) :P
 
user1596138
:P
 
6to5 doesn't include Array.from
 
user1596138
@Loktar Yeah give me a job too maybe a few of them would be nice just in case
 
ooh wtf didnt even see that lol
we are hiring front end devs
 
@BenjaminGruenbaum Yeah, I see.
 
10:12 PM
or at least one
 
    var coroutine = Promise.coroutine;

    var longFunction = function() {
        return Promise.delay(1000).then(function() {
            return 'foo';
        });
    };

    coroutine(function*() {
        var value = yield longFunction();
        console.log(value);
    })();
 
user1596138
Yeah you guys were talking terrorists or something at that time :P
 
I think I understand it better now, thanks.
 
@BenjaminGruenbaum fix 6to5
 
@Jhawins I suck at picking laptops
 
user1596138
10:12 PM
I think I'm going to buy this
 
the ROG ones do look nice though
hah yea, those look great
 
@FlorianMargaine it includes a separate polyfill file with it. It doesn't include it so you can choose a different polyfill if you please - it's modular.
 
ASUS and Lenovo are both pretty solid. Nothing too fancy, but good specs/price.
 
in all honesty I get Alienware laptops.. and the only reason is because I have a credit line with Dell :/
 
RTFM :D
@ssube the above can be Promise.delay(1000).return("foo") btw if bluebird
 
user1596138
10:13 PM
Yeah haha I just worry about linux compatibility I'll have to make sure the graphics drivers are functional
 
@Jhawins linux in a vm solves approximately all your problems
 
user1596138
Don't talk to me ^
 
need to bind to AD? connect to a VPN? use your hardware? start your machine?
put linux in a VM and you get all the benefits. ALL OF THEM.
 
user1596138
Eww oh god don't do it stop talking about running Linux inside windows
 
It makes for a poor UI experience
even with 3d acceleration it's not as nice as native
 
10:15 PM
@Luggage haven't noticed, tbh. intellij and konsole seem fine.
 
user1596138
The whole point was not to degrade performance (graphics specifically) :P so no, running a VM isn't the solution. But I do appreciate the input I was kidding
 
I think I'm like 5 points away
5 more
 
I kept trying to mash windows and linux together. Then I went OSX
 
@Luggage you get none of the benefits. NONE OF THEM.
 
user1596138
I survived all year without a laptop and kept saying "I'll get it with my taxes" so fuck it. Imma buy something really really nice
 
10:16 PM
hehe. works for me, but probably not for all
 
posix? sort of. enterprise features? sort of. ui? sort of.
 
I only miss windows explorer whic is superior to finder in every possible way
 
user1596138
@Luggage OSX is great if you want a stable, functional posix environment. Anyone who pretends otherwise is juts being arrogant ;P
 
user1596138
You can run Nautilus on OSX. I do.
 
did you guys hear about the osx vulnerability that can't be fixed?
 
10:17 PM
'can't'?
 
user1596138
I don't do security lol everything is hacked wide open by The Great Leader anyway so don't worry about it
 
hardware issue.
 
Do go on.
 
user1596138
@FlorianMargaine Is it exploitable from software?
 
well, the attacker needs a quick physical access to the machine arstechnica.com/security/2015/01/…
 
user1596138
10:19 PM
Ah requires physical access.
 
hot glue gun to the usb port'll fix that right up
 
user1596138
Not something the average user needs to be worried about I wouldn't think.
 
JB Weld for security
 
Every time a coworker of mine goes on and on about how Apple security is great
I link him this
!!xkcd security
 
user1596138
10:20 PM
Only because I wouldn't leave my >$1300 iShit where I can't see it
 
Protip: Don't build a custom library for interacting with your data with no documentation.
 
@BenjaminGruenbaum I HATE YOU
6to5 doesn't work on chrome extensions, because Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".
what @SomeKittens said about angular ngCsp, basically
 
FlorianMargaine heh, we were just talking about that
 
Sure it does, you just have to transpile ahead of time.
 
@BenjaminGruenbaum I swear to god I sometimes think you're just making up words on the spot :D
 
10:24 PM
@BenjaminGruenbaum ?
 
hey all
 
@FlorianMargaine don't convert the code on the fly dynamically, convert the code using the command line tool
 
@BenjaminGruenbaum I use browserify -t 6to5ify
 
I see people 'use strict' in their code. Do you guys do that, and when? Do you wait until you're about ready to go to prod or just throw it in there from the get go
 
10:30 PM
@taco I use it from the start.
 
@taco from the get go
 
meh
 
speaking of, that's something I can do while blocked.
 
you cannot do me, sorry
 
@Zirak I notice you need to auth twice for SO?
Once to SE and then once more to SO?
 
10:33 PM
If you're blocked for a while reddit.com/r/PrettyGirlsUglyFaces
 
@SecondRikudo Yeppers, SO login is authenticating against an OpenID provider, and only then authenticating against SO
 
So you auth against SE's OpenID provider
Which then I presume gives you a cookie of some sort
 
Correct
 
And then when you auth against SO you pass the provider and cookie and it allows you in
What I don't see you here is a reference to the websocket URL that chat server is supposed to givie you
 
That's just the login, talking to chat is a separate matter.
 
10:37 PM
@Zirak Once you logged in, you just need to provide chat with the fkey and it'll let you have the WS URI?
(Probably with all the cookie mess from login?)
 
@SecondRikudo Sorta. See the adapter file I linked to, it's how the bot does things, and the top contains an explanation of it all.
 
maybe @balpha can answer for this?
@Zirak I hate you for the spelling
 
@FlorianMargaine Totally, the bot's terrible
 
Hi all, please help me choose (fastest calender age in years) : jsperf.com/calage Contenders seem to be b (for older browsers, ie6/7) and d for newer? (at least FF12).
 
@FlorianMargaine l is a time in milliseconds since the Unix epoch
 
10:40 PM
oooh
 
@KendallFrey Really?
Of what?
 
Yes
of... wat?
 
What is it a timestamp of?
 
oh, you mean, what should be passed?
Uh, the current time if you want no messages, some time in the past if you want messages since then
I think
 
I Date.now for l
Works the same as 9999999
Or appears to
 
10:42 PM
Cool
 
to the gitmobile!
 
m59
oh fun. I had this whole openshift repo worked out and I haven't pushed my changes in a few weeks since I switched to Linux. Now I've totally forgotten how to do any of it.
 
I pass the time property from the data returned from /chats/17/events
 
@mikedidthis beers?
 
@Zirak I think this is the second time you've learned this.
 
10:44 PM
@KendallFrey Possibly
 
@all hangouts and beers?
 
@rlemon I can be on hangouts in about half an hour
 
I'm in for hangouts and KSP
 
@rlemon Sure
Although I lack beers atm :(
 
whoops sorry, forgot to make the test public (now it is): jsperf.com/calage Thanks for helping!
 
10:48 PM
@SecondRikudo @SomeKittens @Zirak @KendallFrey
and anyone else who can see it
 
Any one know what causes this in jsfiddle:

Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://jsfiddle.net" from accessing a frame with origin "http://fiddle.jshell.net". Protocols, domains, and ports must match.
 
@Dave I think the error is pretty clear
 
well i ain't written any thing particularly strange in my code to have caused it so its not clear to me
 
@Dave: do you also get this error with an almost empty fiddle (containing some console.log message etc.)? What is the simplest way to reproduce that error (and on what browser/version)?
 
@GitaarLAB Initial load gives: Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
then i hit run and i get that big error
 
11:02 PM
Could anyone please help me find any reference to the input box's or buttons on this website (my300214.sapbydesign.com)? I am trying to find some form of reference to these (class, id, etc) but cant find anything.
 
Chrome: Version 39.0.2171.95 m
 
please note its a silverlight based website
 
@Dave: by initial load you mean: simply opening jsfiddle.com (empty interface)?
 
yes
im assuming its an issue on their end rather than my end?
 
@SecondRikudo I pinged you on something hilarious
 
11:05 PM
Assuming a default chrome install, then it would appear so. Did you google it?
 
In FB, check it out quickly
 
@BenjaminGruenbaum Reading
 
@GitaarLAB the initial error is from adblock so its not related to the other error
 
His next article is on "The difference AJAX technologies, advantages and disadvantages"
That's hilarious :D
 
11:07 PM
@GitaarLAB what does that tell me ?
 
nothing, I see, sorry.
 
:P
 
@Dave, just trying to help :). Is this relevant? stackoverflow.com/questions/22726057/…
first answer.
 
interesting. though i don't know why jsfiddle is doing that - its been working before perfectly fine =/
 
This might be related to (I don't know your specific code, but if you recognize similarities looking at the Q): stackoverflow.com/a/24802593/588079
 
11:12 PM
it happens on an empty fiddle hitting run lol
 
@rlemon @Zirak @SecondRikudo I lost the hangouts window
Like literally lost - can't find it on my desktop
Yes
It's not even showing up in alt-tab
What goat did I forget to sacrifice for this?
 
does this mean we can say whatever we want and you can't turn it off?
 
@BenjaminGruenbaum you joinin the hangouts?
 
Naa I'm gonna sleep
 
Party pooper
 
11:16 PM
yeah?
Sounds good, and thanks
yeah
 
@Dave: I'm not sure if you should post this on superuser or stackoverflow (to get a broader audience that could at least confirm your problem). You could also find an jsfiddle chat, something like irc://irc.freenode.net/jsfiddle should have existed (probably still does). You can use the webchat from freenode. That would be my approach. Make it friendly but clear you have a bug-report, running an new empty fiddle using chrome version (what you posted).
uhhm.. possible bug-report!!
 
@Dave - and if you open a new tab in the browser, go to jsFiddle and just hit "run", you're getting this error ?
 
@Dave: seems SO snippets is having a similar problem to? meta.stackexchange.com/questions/245134/…
 
!!/inhistory
 
@NETscape That didn't make much sense. Use the !!/help command to learn more.
 
11:29 PM
(Hi @adeneo (and while at it, everyone else), technically still legal before 10th of jan: Happy Newyear)!
 
@rlemon Making some tea and joining
 
Tea!
 
@Zirak We're waiting for you
 
...naked
 
Well, if you are waiting anyway... please give this test a run: jsperf.com/calage
 
11:45 PM
@Zirak come on with the horse mask :D
 

« first day (1545 days earlier)      last day (3402 days later) »