News for hackers. Stuff that matters.

ggreiner

Re:Inline Commenting with JavaScript. Looking for feedback on Thursday October 31, 2013 @04:38PM (#6649671)
Thanks for the feedback! At what point in the process did you get those errors? I tested it almost exclusively in chrome and its worked great for me and the friends I sent it to.

I decided not to allow commenting across line breaks because they way I highlight commented text looked weird across line breaks. However I thought my way of allowing commenting over HTML tags (links and such) was pretty cool. I found all HTML tags with a regex and then started removing them one at a time from the bottom of the page until I could find the selected text. This gives me the starting index in the raw HTML of the selection and then I just step through the selection (skipping html tags) to find the ending index. Probably not the most efficient method but it works well!

Pretty awesome! AI is pretty good.
The idea is once you click the next arrow you won't see that post again. I noticed I was spending a lot of time staring the the front page of reddit at posts I had already seen so I hacked this together quickly. I'm not very experienced in this area and it was done quickly so excuse my sloppiness!
Re:Black Hat hacker claims he can make $15k to $20k an hour on Wednesday August 07, 2013 @10:28PM (#6177019)
Can and does are two very different things.
Re:Stolen Money on Gittip, Part 1 on Monday November 05, 2012 @02:50PM (#4745442)
Do you have any data on what percentage of fraudulent charges get past your system. (i.e. of all fraudulent charges received how many does your system not catch) and what percentage of your fraudulent charge alerts are non-fraudulent? Just curious! I'm a co-founder of an eCommerce company and our average transaction is around $5,000 so this is pretty important to us and we already have some pretty strong systems in place, but I'm curious how well this more automatic approach works.
Re:Show HN: A Handcrafted Web on Thursday September 13, 2012 @03:13PM (#4518000)
People hate scrolling or parallax scrolling pages would be much more wide spread, they're easy to make and awesome looking.

Relying on the user scrolling I don't believe is a good idea, but the rest of it I definitely agree with.