News for hackers. Stuff that matters.

AltIvan

If it does what you guys say it does... you are full of awesome!
Re:535 ways to reload the page with JavaScript on Thursday August 11, 2011 @02:19AM (#2871696)
If you delete/change '<script' and '</script>' you pretty much have that covered.
Re:Leaky (YC S11) is Hipmunk for Car Insurance on Tuesday August 09, 2011 @01:50AM (#2863059)
https://leaky.com/about_us/ Alcohol, video-games and four guys that couldn't get together for a photo in formal suits... introduction, you are doing it wrong.
Re:Scott Adams: The Heady Thrill of Having Nothing to Do on Sunday August 07, 2011 @12:09AM (#2855727)
Why people gave you upvotes? You clearly stated that your reward system is not working.
There is one exact position in Google Chrome where it get stuck for half a second.

I think it happens when the card gets inverted horizontally.

Re:Why I Quit My Job to Start a Tech Company on Wednesday August 03, 2011 @06:37PM (#2843503)
No straight male gets sexually exited when they watch other male jerking off. But many people dreaming about starting their own company will find this really exiting and inspiring.

And seriously, i can't believe that this (probably) is the most upvoted comment in this article.

Re:MIT develops new tool that can interrupt infinite loops on Wednesday August 03, 2011 @05:53AM (#2840464)
Oh look! there is a little note: "Do not use if you need an infinite loop not to stop."
Re:Why I'd never work for Google, Twitter, or Facebook on Monday August 01, 2011 @06:46PM (#2834864)
I cant believe this is posted on Hacker news...

Everything is not so simple; we use their (amazing) products, we pay by clicking ads. And it is useful for society as a whole (Google, Twitter and Facebook).

I am 100% sure that not even half of the programmers who work at Google are working in the "deliver ads" area. Many of them are working in a little piece of something that does something that someone else is going to find really useful... just like millions of people in earth!

Re:Airbnb Nightmare: No End In Sight on Friday July 29, 2011 @12:52PM (#2822696)
BTW She is making more damage to the AirBnB employees (and their families) than the raiders did to her.
Re:Airbnb Nightmare: No End In Sight on Friday July 29, 2011 @12:09PM (#2822516)
Fuck this shit. This is like when a Facebook user gets contacted by a raper using it; this is like when a Gmail account gets completly deleted.

Shit happens, and it will continue to happen to someone from time to time, but one case between thousands should not damage so much a single company.

Just some scene of an anime.
That is why it only uses getElementById to traverse the DOM.
1) The dom state is that everything inside the HTML element that you were waiting for already exists when the function is executed.

2) When i am writing javascript is very common for me to use the global object (window) as the context; so in my case is not a good idea to use the HTML element as context by default.

OP here: neither .live() or .delegate() do functions when an element comes to existence, those just bind events.

I used this a lot when developing a Chrome extension for Facebook because i can identify when an HTML element is created via ajax.

OP here. The 5ms interval is only used on old versions of Internet Explorer.

It uses getElementById to traverse the DOM and it is said to be the faster selector in javascript.

I am the OP; i just removed the background... but is going to be back! (as soon as i figure out a way to make it consume less CPU... probably using canvas)
you dont even need jquery: document.getElementsByTagName("tbody")[1].innerText.replace(/\s/gi,"")
Re:What everyone should know about the human eye on Saturday July 23, 2011 @12:55AM (#2796199)
I do that all the time when people look at me. Look away like you are staring at something important; they very quickly try to see what you are interested in.

Ask me for any improvement on the Hacker News Navigation

Hi guys; some days ago i published a Google Chrome extension that adds some functionalities to the navigation through this site (Hacker News).Link: https://chrome.google.com/webstore/detail/bldhjkmbdomhijjjnmckgchocnfhkpndIf you are a Chrome user an have an idea for a feature that you would like to see implemented in the HN navigation please tell me about in this thread.So far it have 3...

( Read More... | no comments | on HN )
Re:Google.com detecting malware and notifying search users on Tuesday July 19, 2011 @10:52PM (#2784110)
What? If the malware can do that it would easier for them just redirect them with javascript to any site.
Re:HTML Comments Are Diamonds (Javascript) on Tuesday July 19, 2011 @10:12PM (#2784004)
Sorry, i love it... but someday i am gonna put the option to hide it.
Re:HTML Comments Are Diamonds (Javascript) on Tuesday July 19, 2011 @10:08PM (#2783994)
Its excellent for in-place-non-active-at-the-start content; specially useful for images.

For example: Lets pretend you are really interested in having as few requests to the server as possible. And lets pretend you have a huge multi-content gallery (images, flash, video, etc).

So, you want a nice javascript pagination for all that; but if you just hide the pages it is gonna get loaded on the user browser, and the page is gonna get really slow.

But, if the content is inside comments the user machine only loads it when the user actually ask for it. It feels ajax-like but a little bit faster and with less petitions to the server.

Here is a script that does a little bit of that http://jsbin.com/ihepuz/2

Well... looks like this didnt get any attention... feedback about it?

Older »