HN user

jQueryIsAwesome

903 karma

@ivanca at twitter

Posts18
Comments600
View on HN
mashable.com 13y ago

Russian Billionaire Wants to Create Cyborgs for Real

jQueryIsAwesome
2pts0
rapedinheaven.com 13y ago

Hevesi - Tacky letter created with JS and CSS3

jQueryIsAwesome
1pts0
gist.github.com 13y ago

A PHP function to generate sexy comments for PHP and Javascript.

jQueryIsAwesome
1pts0
programando.la 13y ago

Directory of spanish links to learn to code

jQueryIsAwesome
1pts0
javascriptisawesome.blogspot.com 13y ago

False promises by promises

jQueryIsAwesome
1pts0
javascriptisawesome.blogspot.com 13y ago

I don't want Javascript promises

jQueryIsAwesome
7pts5
gist.github.com 13y ago

IE_detection.js

jQueryIsAwesome
1pts0
javascriptisawesome.blogspot.com 13y ago

Creating CSS3 opening effect for music gallery + PlacerAnything

jQueryIsAwesome
2pts2
placeanything.com 13y ago

Show HN: PlaceAnything, HTML placeholders from Reddit

jQueryIsAwesome
3pts1
javascriptisawesome.blogspot.com 13y ago

Recent events and thanks to Hacker News.

jQueryIsAwesome
1pts0
chronoreddit.com 14y ago

Show HN: A cool way to navigate reddit front-page through time

jQueryIsAwesome
2pts1
hntimeline.com 14y ago

Show HN: HN Timeline - A cool way to read Hacker News Chronologically

jQueryIsAwesome
6pts5
javascriptisawesome.blogspot.com 14y ago

Sharing prototypes in Javascript

jQueryIsAwesome
2pts0
www.princemio.net 14y ago

WiiPop - The Video Game Poppers Have Been Waiting For

jQueryIsAwesome
1pts0
javascriptisawesome.blogspot.com 14y ago

Add class for each Internet Explorer Version

jQueryIsAwesome
1pts0
javascriptisawesome.blogspot.com 14y ago

Javascript SetInterval With Context

jQueryIsAwesome
3pts1
github.com 14y ago

Irregular Shaped Text Container in HTML

jQueryIsAwesome
4pts0
javascriptisawesome.blogspot.com 14y ago

JQuery CSS3 Rotate (and animate rotation)

jQueryIsAwesome
3pts0

Well, TSA will start checking marathonists anytime soon.

Ban me or whatever you need to do but the reality is that one bomb and Americans cry, while at the same time incentivate thousands of bombs and deads in Mexico for their useless "war on drugs" and also creating pointless wars around the world (eg. Iraq)

Billions of dollars are wasted to fight against a analgesic and therapeutic drug that could help millions; this world haves very dumb and/or corrupted people in charge.

DOSS attacks can be overcome with a solid infrastructure like Cloudflare (expensive but possible) and also with the help of modern browser capabilities such as webRTC and offline cache.

I found a way... well, sort of:

    var log = function(){
        args = [].slice.call(arguments);
        args.unshift(console);
        return console.log.bind.apply(console.log, args) 
    }
But you have to add extra parenthesis at the end, hopefully is not too much overhead for most devs.
    log("message")()

Maybe add console.assert to that list:

    console.assert(str.length === 10, "String is not 10 characters long!");
and console.group/groupEnd
    console.group("sums");
    console.log(1 + 1);
    console.log(2 - 3);
    console.groupEnd();

This "console"... IE5 didn't even have console... and event the current one IE haves is a joke compared to firefox or chrome.

Is awesome but it needs some work, it would be _really_ nice if it were syntax aware, so if you start Ctrl+D in a variable it should only select where is being used as a variable and not other things (regex, strings, etc) or at least a boolean option to enable this behavior.

Kurt Cobain was homeless during a period of his life and was a drug addict and arguably also had mental issues; what I want to say is that is not "social justice" what many of them need but help finding passions that can provide at least for their basics needs (of course also some level of help with their addictions and mental issues)

Sorry, I don't see no clarity there. And how would that fix the fact that stat works in individual files?, and more importantly, how does a function like that handles error? Individual level, group level? It is confusing.

The example I'm talking about is the one where he doesn't handle errors either, this one: http://pastebin.com/98CarwzU.

And your example is disingenuous too, why do we need to add so much logic instead of collecting the errors if you want to handle them anyway?

    result.push(err || data);
So you don't need to copy around a variable called "hasFail", one line can be enough
    var failed = results.every(Buffer.isBuffer);

... and what does that haves to do with promises?

And in such case you would only do this once outside the listeners of http/or-whatever connections so it would be done just once regardless of the number of concurrent activity.

All the code and such a big abstraction for the first example when it could have done like this:

    var result = [];
    paths.forEach(function (i, file){
        fs.stat(file, function (err, data){
            result.push(data);
            if (i === 0) {
                // Use stat size
            }
            if (result.length === paths.length) {
                // Use the stats
            }
        });
    });
Fairly understandable, more efficient and without introducing logic patterns foreign to many. It also meet his requirements (It is parallel and we only hit every file once)

> Only humans perform experiments on other species that we would regard as torture.

Because only humans are capable to, do you seriously think overwhelming cognitive advantage would be used any different if we had different traits? If our heads were shaped like the ones of mice? Or if we had 4 stomachs like the cows? And this selfishness and disregard for other animals well being is what made humans growth so quickly and one of the main reasons you and me exist.