Better HN
topnewbestaskshowjobs
Log inSign up

inakiabt

42 karma · joined Jan 26, 2011 (15y ago) · 6 submissions

[ my public key: https://keybase.io/inakiabt; my proof: https://keybase.io/inakiabt/sigs/ySRcLTCLgTkcr9FBkZf4D6aFk44O9P2jgDTmkPp6kBQ ]
Submissions

1.

Facebook Relay: An Evil And/Or Incompetent Attack on REST(pandastrike.com ↗)

9 points · by inakiabt · 11y ago · 2 comments

comment 11y ago · link · parent

I'm using https://www.zenhub.io/, it adds a voting mechanism on github.

comment 12y ago · link · parent

Seems like some of the source code of different components are here: https://github.com/rancherio * Agent: https://github.com/rancherio/rancher-agent * Cattle: https://github.com/rancherio/cattle

4.

Portable AWS-style infrastructure service for Docker(github.com ↗)

46 points · by inakiabt · 12y ago · 13 comments

comment 15y ago · link · parent

Maybe adding a simple "^" at the begining of the regex should be enough :)

     /^https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/
Otherwise, could be used for XSS. Like this url (http://naurls.me/39696e):

     javascript:<script>alert('HELLO world');</script>http://naurl.me/

comment 15y ago · link · parent

I'm new with Node.js, but the "shorten" process shouldn't be an asynchronous process? Maybe something like this?:

   app.get('/shorten', function(req, res) {
      console.log('Shortening url...');
      shortener.shorten(req.param('u'), function(result){
        res.send(result);
      });	
    });
It's well known that Redis is pretty fast, but, citing "Node Web Development" (http://www.amazon.com/Node-Web-Development-David-Herron/dp/1...) on it "Architecture: Threads versus asynchronous event-driven" chapter, "(...)Depending on the query that pause can be quite long. This is bad because while the entire thread is idling another request might come in, and if all the threads are busy it will be dropped. Looks like quite a waste. Context switching is not free either, the more threads we use the more time the CPU spends in storing and restoring the state. Furthermore, the execution stack for each thread takes up memory. Simply by using asynchronous, event-driven I/O, Node removes most of this overhead while introducing very little on its own."

It is not a criticism but a question.