HNHacker News
TopNewBestAskShowJobs

jQueryIsAwesome

903 karma · joined September 10, 2011

@ivanca at twitter
submissionscomments
jQueryIsAwesome··on JavaScript integration between Sublime Text and Chrome DevTools
nice; VS too (well, not sure if elegant) using an extension: http://www.hanselman.com/blog/SimultaneousEditingForVisualSt...
jQueryIsAwesome··on Would it be hard to have a mobile style sheet for HN with pressable buttons?
One line of JS would fix this:

    if (/dir=down&/.test(node.href) && !confirm("Confirm downvote:")) return;
jQueryIsAwesome··on Chrome Inspector Detector
You may break something by breaking it yourself, like naive code: if (window.chrome) console.log("dev forgot to delete this"))
jQueryIsAwesome··on JavaScript integration between Sublime Text and Chrome DevTools
It's the python plugins and the multiple carets... mostly.
jQueryIsAwesome··on Chrome Inspector Detector
and what if he stops putting a public reference to the "detector" method?, read previous answer again.
jQueryIsAwesome··on Chrome Inspector Detector
Not only that, you have to save a reference to the parts of the console that you want to use just in case they attempt to destroy those.

    var c = console
    var l = console.log
    var log = function(){ l.apply(c, arguments) }
Now they can't break the console from working with stuff like:

    console.log = function(){}
jQueryIsAwesome··on Chrome Inspector Detector
It doesn't matter what your intentions are; eventually it will be used to annoy some developers, lets just hope that it doesn't become something common.
jQueryIsAwesome··on Chrome Inspector Detector
But what if he starts using setInterval? A more global solution is to: Open the "sources" panel, click on "Event Listener Breakpoints", then click "set Timer" and just delete the lines where it is calling the detector function.
jQueryIsAwesome··on Chrome Inspector Detector
It does, but you usually don't want to profile other dev's pages; here is another solution that doesn't make profiling unusable:

    chrome.inspector.detector = function(){ return {open:false}}
But a more aggresive solution is this one:

    console = undefined;
    var iframe =     document.body.appendChild(document.createElement("iframe"));
    iframe.style.display = "none";
    window._console = iframe.contentWindow.console
And you can use `_console` instead of `console`
jQueryIsAwesome··on Chrome Inspector Detector

    console.profile = console.clear = function(){}
That's all you need write in the console to stop this annoyance.
jQueryIsAwesome··on Journey From RequireJS to Browserify
Require triggered twice the ini file last time I used it (one month ago), I had to add code to check if it has already been executed before. Apparently it haves something to do with jQuery being already loaded before require; also I could not make it work on old browsers despite their claims that it does.
jQueryIsAwesome··on Google killed me
She probably already knows so is somewhat disrespectful that she has not update the entry saying that Google already fixed her public profile.
jQueryIsAwesome··on Google is about to learn a tough lesson
Ok, "personal consumption patterns" now means the authors I want to get updated about. A better analogy would be subscribing to see what an author publishes and subscribing to hear about what everyone is reading; sure, you get a lot of noise but is way more opening and less self-centered. And if you happen to like a lot of authors you get more focus in the ones that are more likely to be of your enjoyment because people like you are working as a quality filter.
jQueryIsAwesome··on Google is about to learn a tough lesson
I know the problem, not the solution, but maybe calculating the popularity among the people I follow on twitter (or the ones following the ones I follow in case that dataset is not big enough) to show me a lot less articles for frequent-publisher.
jQueryIsAwesome··on Google is about to learn a tough lesson
"Yep. And it never figured out how to handle high-vol and low-vol blogs together in any meaningful way". What I always thought but was never able to articulate so well (hi again fellow twitter user).
jQueryIsAwesome··on Show HN: Weekend project, Intro.js
That can become a PITA if you want to preserve events and CSS in the focused element.
jQueryIsAwesome··on Microsoft open-sources Kinect code samples
In case you were curious about how they do it: http://i.po.st/static/script/post-copypaste.js
jQueryIsAwesome··on Show HN: Weekend project, Intro.js
You are changing the z-index of the "focused" element but you need to check if one of the parents have z-index defined already because in that case the effect doesn't work.

Instead of looking for a workaround I would suggest that since you are already aiming for modern browsers maybe you should use SVG (clip-path) with CSS {pointer-events: none} so you have a real "hole" and you could use 4 dummy divs if you want to disable interaction with non-focused elements.

jQueryIsAwesome··on Lousy web design trends that are making a comeback due to HTML5
Linkbait in its maximum expression... plus "Get our free", is-this-a-link?-game, "Social buttons", "Get our free", "Follow us in timewastter"... now those are some lousy web design trends.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
I invite you to look at the ridiculous amounts of JS lines twitter uses in its interface.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
I don't know OpenOffice but In most programs putting spans around a letter or word does not affect pasting.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
We have very different definitions of "huge hammer", in any decent modern browser (Chrome, Firefox, IE9) it takes less than 10ms to apply the mentioned code in 20 texts (using the linked 10 Google results as an example).
jQueryIsAwesome··on Damsel in Distress: Tropes vs Women in Video Games
> You've now twice in this thread made the claim that the person whose views you disagree with used a style that was too complex

Now I am 100% sure you are just another silly troll.

jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
explain.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
False; diacritics commonly used in the real-world such as "´¨`" fit inside the same space as the characters, this successive chain of diacritics is never used in real-world texts except for very few obscure cases. Plus the implementation of UTF8 should include the line-height required for the correct displaying of the character if they really believe the displaying of obscure characters is more important than usability.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
Technically "correct" you mean; if there was an unicode character that filled all the screen with the color black it would not matter if it were technically "correct", usability correct is more important.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
The thing is to avoid overlapping with other elements, if they want to ruin their own description/comment so be it.

But just for the technical challenge you could do something like this in Javascript to chop every individual special character:

    string.split("").map(function(a){ 
        return /[a-z0-9\s]/i.test(a) ? a : '<span class="s_char">' + a + '</span>'; 
    }).join("");
And apply the mentioned CSS to the "s_char" class.
jQueryIsAwesome··on Thai character ก็็็็็ (ก) gets rendered in a strange way
Google, you are a company that makes billions of dolars and I'm nobody to tell you what to do buy maybe you should add this to your CSS:

    .st, a {
        display: inline-block;
        overflow: hidden;
    }
Hacker news should do the same thing but with .title, .comment and .comhead
jQueryIsAwesome··on Show HN: Word Tree in D3.js
Doesn't work in Chrome 25 in W7

    XMLHttpRequest cannot load http://www-958.ibm.com/software/data/cognos/manyeyes/datasets/alice-in-wonderland-by-lewis-carroll/versions/1.txt. Origin http://www.jasondavies.com is not allowed by Access-Control-Allow-Origin.
    Failed to load resource: the server responded with a status of 504 (Gateway Time-out) http://www.jasondavies.com/xhr?url=http%3A%2F%2Fwww-958.ibm.com%2Fsoftware%2Fdata%2Fcognos%2Fmanyeyes%2Fdatasets%2Fobama-war%2Fversions%2F1.txt
jQueryIsAwesome··on LinkedIn is a Virus
This, wait... no, sorry, not this. Joking aside; the first button is one that deselects all contacts and they mention the numbers of connections to be created right in the top. Here it is: http://i.imgur.com/3qiT140.jpg

I do hate LinkedIn but for very different reasons, like pretending is a safety measure to not connect with strangers and then charging you for a premium service for direct-emailing anyone you want.

← PreviousPage 2 of 20Next →