« first day (1664 days earlier)      last day (3283 days later) » 

8:02 AM
oooh @BartekBanachewicz happy birthday!
 
please flag as spam : stackoverflow.com/questions/30095228/… done
 
Grunt related question: In my node/angular project, I have been using 'grunt serve' to launch the frontend. I want to keep grunt running even after teminal logout, so I installed grunt-forever and right now I am confused about how to configure it. Looking at the docs (npmjs.com/package/grunt-forever), it is pointing to an 'index.js'. Should I be pointing mine to 'app.js' which was created by Yeoman?
 
someone has to explain me something
in the "unanswered" category
 
Hahaha
That's a good question
Oh, I get it
It's sorting by fewest answers
So if you go far enough, it gives you questions with answers
 
I JUST WANTED TO FLAG QUESTIONS :(
I'm 1 flag away from the deputy badge
 
THE
8:13 AM
hi
anyone aware of any JS or jQuery code optimization tool
i know it won't going to be perfect but atleast give me some clues to right direction
not JSHint though as that just tells you about syntax
 
@SomeGuy that wasn't it
 
@THE Your brain is the best optimization tool.
 
Did you figure it out?
 
it's actually "questions that have no upvoted answers"
 
@RoelvanUden #deep
 
8:15 AM
hover over the unanswered tab
 
Ah
That's misleading
 
@THE profiler in the chrome dev tools
@SomeGuy yeah
 
@SomeGuy Only the "newest" tab is usable, IMO. Other ones are too messy (with the possible exception of "active")
 
THE
@FlorianMargaine already looking it now
Load: 4.72 seconds, wow
 
Trusted SO users should be spared the "Sponsored links for this tag"...
I think I'll write an extension or userscript just for that ^^
 
THE
8:34 AM
!! google common css performance tricks
 
chrome://flags/#overlay-scrollbars
Neat-o
 
@dystroy Adblock Plus?
 
@Sheepy too slow and consumes too much resources
I will write that chrome extension
 
That reminds me, the original intent of ABP was to save resources. XD
That was the age of Flash ads...
 
8:40 AM
I thought the original intent of ABP was to make money :D
AB on the other hand...
 
@OliverSalzburg Not in the beginning. ABP was created to fix problems with AB. But now...
 
THE
I can't believe tens of thousands of web developers and no one developed a JS, CSS performance analyzer tool yet
 
We have profilers, timelines, visibility of painting events etc...
The biggest weapon and poor performing code remains your own intelligence.
A tool won't figure out your algorithm sucks balls.
 
Morning
 
ok, I made my extension... it's better :)
 
8:54 AM
@dystroy What extension?
 
26 mins ago, by dystroy
Trusted SO users should be spared the "Sponsored links for this tag"...
nothing fancy: one line of code to remove that block
(and about 20 lines of JSON for the manifest...)
 
Wait, that's a thing?
 
what ?
 
Sponsored tag links?
 
Yes, if you don't use AB you have a big block over the question list when you filter on tags
 
8:58 AM
I don't use AB/UB at work, never noticed them before
 
And it's always the same stupid list of links
 
Struggling to see them now actually, where are they?
 
Do you see them on that link ?
 
Yeah, I tried the popular web dev tags and couldn't see any
 
I see them... when I disable AB (horrors!).
 
9:02 AM
Is it just the tags that have icons?
 
@BenFortune probably the tags that have sponsors
I wouldn't care if it was at a better place instead of the middle of the screen
 
I can't imagine browsing without ABP... too, much, crap.
 
@RoelvanUden Yeah, I've kept it until recently
 
I usually use ublock
But it was fucking with the company website
And the postal service we use blocks us using their site with an adblocker active
Which is absolutely atrocious
 
Does this chat work for NodeJS?
 
9:08 AM
"Work for"...? It's JS, so, we use/discuss it, if that's what you mean.
 
You're going to have to be more specific
 
I'm looking for information in how to print pdf documents from javascript. Do you know something about it?
 
Still needs more specificness in that question.
 
Hmm, speecificness. I have a socket.io server using a socket.io-stream stream to transfer files from the client.
The server sends them to a terminal in which a printer is attached, both server and the terminal are running with nodejs.
I can print text but PDF's don't seem to work out, using a module that installs with npm install printer, this package.
I think that my fault was to use Windows in the first place since it does not support CUPS natively.
ipp would solve that but Windows...
 
Turn the PDF into a buffer and use printDirect with {type: 'PDF'}
 
9:17 AM
I don't think that works on Windows.
 
It does not work on Windows, I have this supported formats: 'RAW',
'RAW [FF appended]',
'RAW [FF auto]',
'NT EMF 1.003',
'NT EMF 1.006',
'NT EMF 1.007',
'NT EMF 1.008',
'TEXT',
Wait, does that work in Linux?
 
It works on Linux like that, yeah.
 
Where'd you get the supported formats from?
 
If you must support Windows, why not invoke a print from command line?
e.g. using FoxIt pdf
 
How can I do that?
 
9:20 AM
0
Q: error while configuring grunt-forever

Rahul DesaiI am on CentOS and working on a node.js - angular.js project and I have setup node to keep running in background even when logged out from the terminal, using forever module. I want to do the same for the frontend so it keeps running in the background. I am using Yoeman in the frontend and so fa...

 
can anyone please help?
 
@VictorLopez Just exec the resulting command from nodejs and it'll work.
 
@RoelvanUden That looks pretty much excellent.
 
I've only ever done printing to a receipt printer from node
 
9:22 AM
@BenjaminGruenbaum Is there a simple way with jQuery promises to execute ajax calls one after the other ? Do you have a better answer for this question ?
1
Q: jQuery Ajax Wait Each Function

Sinta Cumeliani$xy('#simpan').click(function() { $xy('input[id="cekbok[]"]:checked').each(function() { var data = (this.value); var div = (this.value); var str = window.location.href; var res = str.replace("wp-admin/options-general.php?page=katalogu-options", "/wp-content/...

 
@VictorLopez Just remember that if you someday decide "Oh hey, I wrote this in nodejs anyway, I can easily run it on Linux instead" you'll have to port this OS-specific piece to Linux
 
lorem ipsum dolor u
 
@dystroy how about a for loop?
 
@BenjaminGruenbaum adding to the promise using then in the loop?
 
@RoelvanUden I'll be showing the implementation to the client in 6 hours aprox. If I had more time I would use Linux for this.
 
9:25 AM
chaining
 
yes... I'm stupid... I thought about chaining promises, not about chaining functions generating promises
 
@RoelvanUden Thanks for your time Roel. By the way, have you tried Heroku yet?
 
@VictorLopez Your welcome :-) I don't like Heroku at all.
 
Already two answers with async:false...
 
Well, I don't like any PaaS
 
9:30 AM
0
A: jQuery Ajax Wait Each Function

Benjamin GruenbaumHere is a way that doesn't have recursion and uses a straightforward loop: $xy('#simpan').click(function() { var url = '../wp-content/plugins/katalogunique/proses2.php'; var d = $.Deferred().resolve(); // empty promise $xy('input[id="cekbok[]"]:checked').each(function() { va...

 
+1
 
Watch that. It's incredible
 
@BenjaminGruenbaum I'll make you pass me on stackrating :)
 
@SomeGuy Can be listened to, or must be watched?
 
9:40 AM
or read...
 
@RoelvanUden Most of it, you can just listen to
The demos near the end you'll have to watch
 
@dystroy lol, I don't care about stackrating, thanks though :D
The sad part is I'm only 55 points away from a jQuery badge :(
 
@BenjaminGruenbaum and you do want a jquery badge ?
 
@BenjaminGruenbaum :upvoting all your jquery answers: :D
 
@dystroy not really :D
 
9:46 AM
bloody hell you are at 70k rep :O
congrats bro! well, kind of
 
@SomeGuy video doesn't work for me :-(
 
@AwalGarg "kind of" ?
 
a jquery badge...
 
inb4 it gets used for space industry and/or some other high-profile one, then animal welfare activists find out the spiders kinda don't like the taste of carbon nanotubes
3
 
9:56 AM
5.4 GPa is good...
But I'm kind of doubtful regarding the whole thing
 
hahaha
I wonder if they'll ever be able to figure out how to produce spider silk at scale
 
giant spiders? :-D
 
Cue an Eight Legged Freaks scenario
 
Oh shit I forgot to eat today
3
!!afk
 
I did that last Friday
 
10:02 AM
that reminds me... where are my meds?
 
Anyone know of a free alternative that will open Adobe Illustrator files?
 
@BenFortune there are some pretty good hex editors out there
 
._.
 
@BenFortune inkscape
 
Awesome, thanks
 
10:05 AM
@BenFortune wiki.inkscape.org/wiki/index.php/… read the whole thing
 
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype says: **Note*: Starting with Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0 / SeaMonkey 2.8), as well as WebKit build 528, these browsers no longer let you use the responseType attribute when performing synchronous requests.*

And Firefox throws error if you do only `var req = new XMLHttpRequest(); req.responseType = 'json';`
So how do I set it?
 
seems like a bug
 
I'm not even remotely a designer, just need to pull some bits from a file
 
@BenFortune turn the hex editor into a binary mode :-D
 
Stahp
 
10:07 AM
HAMMAHTIME!
 
M-x hexl-mode
cc @Zirak
 
yes
 
eek!
 
Can someone recommend a rate limiting express middleware? I hate it when I see something like this:
 
Choose the better one.
 
10:19 AM
Or write your own one. How hard could it possibly be? :P
 
whois 127.0.0.1
 
> New release '15.04' available.
I don't trust upgrades.
 
@RoelvanUden Right, because rewriting code that already exists is a great idea :P
 
Though it comes with LXD, docker and Snappy Core
 
10:25 AM
@BenFortune Okay, that is the one I won't pick ;D
 
Why not?
 
@BenFortune I want one that sends the X-RateLimit headers
better-ratelimit seems to provide that
 
The only one that does that is this
 
@OliverSalzburg obviously, it is better-ratelimt after all.
 
@BenFortune Yeah, I'm comparing that against better-ratelimit right now
 
10:28 AM
quick, make express-best-ratelimit before someone else does
 
Then express-bestest-ratelimit comes along
 
Ah, one expects redis, the other MemoryStore. The latter seems to better fit our environment
 
If they were any good, they'd make it configurable
Like express-session does
 
or at least, if it expects redis they should put that in the module name
 
10:32 AM
Risky click
 
dooo eettt
 
Does the bot have a !!curl or something like that?
 
!!listcommands
 
@BenFortune 666, help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, jquery, learn, put..it..back...ლ(ಠ益ಠ)ლ, phucket, gtfo, moneycantbuylove, catmode, coffeetime, lifeban, stopmyself, instagram, kendallfrey, excited, manigga, meinneger, dgaf, infiniteriot, okay, feelsgoodman, fabulous, sausage, playerpimp, installjavascript, moarkittens, kendall, banana, kfc, uwot, nsfw, facepalm, somekittens, erase, fry, dudeism
hahastillhere, onebox, morecoffee, steve, whoosh, burn, woosh, roomowner, phony, really, inur, coffeescript
 
!!undo
 
10:33 AM
@BenFortune You do not have permission to use the command undo
 
!!lol
 
@Neoares That didn't make much sense. Use the !!/help command to learn more.
 
!!cv-pls
 
@CapricaSix YUNO.SORT?? O___O
 
10:34 AM
!!lol
 
@AwalGarg Command lol learned
 
Omg
 
@AwalGarg That didn't make much sense. Use the !!/help command to learn more.
 
perfect
 
10:47 AM
posted on May 07, 2015 by dutton

With the Chromium 42 release, H.264 hardware video decoding support has been expanded to OS X. Now Chromium on Macs, Windows 7+ and essentially all Chromebooks support power efficient decoding of video by default. Chromium’s HTML5 video implementation will automatically make the best decision on when to use this feature based on driver and hardware support. The same hardware support is availa

 
About time
 
11:03 AM
oi
 
@Jasper 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.
 
About time +1. Firefox has been using OS's native support for H.264 for a while now.
 
Video might run smoother on my chromebook now
 
THE
11:28 AM
using vanila and jquery together ?
like getElementbyID using vanilla and then hide it using jQuery .hide ...
 
Why would you do that?
 
jQuery is essentially a wrapper around a set of elements that exposes convenient methods and enables chaining them. If you have a reference to an element, you can just do $(el) to wrap it up into a jQuery set and do things with it (e.g. $(el).hide()).
 
better yet, el.style.display = "none"
 
THE
if you don't already know...
jQuery is slow
well not just slow, amazingly slow
vanilla-js.com why when i download i get empty file even with all checkboxes checked ?
13
 
hahahahahahahha
 
11:35 AM
Who cares? I'm just educating you on how it works so you can reason about it yourself.
Oh man, really. :-/
 
^^
I thought it wasn't subtle enough. I was wrong.
 
@THE The code is minified and obfuscated. That's why.
 
"obstructed" ? edit: ok
 
It's obviously using whitespace
 
I always confuse between these two words :(
 
THE
11:37 AM
@AwalGarg is it invisible then ? can i see it under microscope
 
@THE Why don't you try?
 
THE
I get size as 0 bytes
 
@THE As I said, it is minified. Not exactly 0 bytes but close to it.
You only get the approximate size.
 
THE
@AwalGarg haha you are funny, it is plain Javascript , i don't even need to add a refernence looool
 
what
Do you think I am joking?
 
THE
11:41 AM
@AwalGarg haha yes
 
~_~
 
THE
4
Q: What is Vanilla-js really?

Muhammad RedaI recently came across Vanilla.js. You write the same plain javascript syntax. document.getElementById('test-table'); On the official site; it tells you to remove the reference to vanilla.js file from the DOM in production, because "Vanilla JS is so popular that browsers have been automatically...

 
fine
 
user1648409
Can anybody explain me, why var matrix = $(elem).css("-webkit-transform") ||
$(elem).css("-moz-transform") ||
$(elem).css("-ms-transform") ||
$(elem).css("-o-transform") ||
$(elem).css("transform");
will sometimes generate a matrix with 6 values and sometimes with 2?
 
11:45 AM
That's a scary regex
 
costs $500k to read
 
Plus your sanity
@Shiuyin jQuery.css supports vendor prefixes
 
@AwalGarg probably the shitiest markdown transformer ever... I suspect the five lines at the end were the only test cases
 
@dystroy *mini
 
user1648409
@BenFortune that would mean that some html elements in chrome apply to those vendor prefixes and some dont?
 
11:49 AM
copied straight from chat code
 
19
Q: Does .css() automatically add vendor prefixes?

Jamesking56I have some code: $("#" + this.id).css("border-radius",this.radius + "px"); $("#" + this.id).css("-moz-border-radius",this.radius + "px"); $("#" + this.id).css("-webkit-border-radius",this.radius + "px"); I am trying to improve lines like this by using JSON to apply them (as shown in jQuery's ...

 
@dystroy blame @balpha :p
 

« first day (1664 days earlier)      last day (3283 days later) »