News for hackers. Stuff that matters.

__debug__

Re:About rel=noopener on Monday April 25, 2016 @12:25AM (#11562515)
Agreed. And while rel=noopener works in newer browsers (Chrome 49, Opera 36), I've previously found a need to patch this behavior across the board. Here's a little library I wrote: https://github.com/danielstjules/blankshield I also highlight the impact of "reverse tabnabbing" here: http://danielstjules.github.io/blankshield/
Re:Reverse tabnabbing attack demo and prevention on Monday February 09, 2015 @03:58AM (#9020260)
Google has a pretty good description: https://sites.google.com/site/bughunteruniversity/nonvuln/ph...

I think the biggest problem with this attack is that many don't believe it to be possible. And why should they, given the inconsistent browser behavior.

Re:Reverse tabnabbing attack demo and prevention on Monday February 09, 2015 @02:50AM (#9020111)
The project itself can be found at https://github.com/danielstjules/blankshield
I just started something similar for javascript a couple days ago: https://github.com/danielstjules/pjs
I made this simple command line tool for quickly writing map+reduce operations on datasets with JavaScript. I think it might be useful for occasional use, since I'm not a fan of using awk for anything non-trivial.
Here's a small lib I made this past weekend. I wanted to be able to listen to patterns for a specific module, but most implementations I found weren't that consistent with EventEmitter. Most had differences in behaviour when emitting events, handling exceptions, lacked support for domains, etc. So this is a quick attempt at keeping things consistent with, and inheriting from lib/events.js.

Hope this might prove to be useful!

Re:Stringy - A multibyte string manipulation lib for PHP on Tuesday December 31, 2013 @01:49PM (#6992112)
Thought I'd share a library I made a few months ago, and which has received some contributions since. It's inspired by underscore.string.js, and can be used via method chaining or a static class. It was mostly designed to help simplify working with multibyte strings in the language.