Better HN
topnewbestaskshowjobs
Log inSign up

tahu

71 karma · joined Jul 9, 2010 (16y ago) · 27 submissions

Submissions

1.

Institute for Advanced Study - The "P vs. NP" Problem (2008) [video](video.ias.edu ↗)

1 points · by tahu · 13y ago · discuss

comment 13y ago · link · parent

Sorry about that. Now it's fixed. https://github.com/jakutis/httpinvoke#examples

comment 13y ago · link · parent

Thank you! Just implemented gzip support and released 1.0.4.

comment 13y ago · link · parent

Without a doubt Bluebird, When.js, Q, then/promise and others are faster. The implementation in httpinvoke is optimized for code size.

The other reason for current solution is that the specification for creating and resolving promises [1] is not yet published.

Having a Promise object in global scope, as exported by Q, Bluebird and then/promise, is not enough. There is no uniform way to hack into these implementations and use their promises resolver.

But when resolvers-spec is available, httpinvoke will definitely check for already loaded promises library and reuse it.

[1] https://github.com/promises-aplus/resolvers-spec

comment 13y ago · link · parent

httpinvoke and superagent differences:

* superagent has a "fluent" API, httpinvoke is a plain function, with an options object and with Node.js callbacks and/or promises.

* superagent is not easy to use with binary uploads/downloads

* superagent does not give you an abstraction over progress events

* httpinvoke does not build query strings

* httpinvoke gives you raw multipart/form-data responses, does not parse them

Other aspects are comparable (file size, Node.js and browser support, etc).

comment 13y ago · link · parent

Hi, thanks for the questions, sorry for the late reply..

httpinvoke fully implements Promises/A+ specification. The spec is very short and easily implementable. The implementation in httpinvoke takes only 568bytes when minified (check it out!).

So the answer is, if you use httpinvoke with a different promise library, it will work, unless the library really is at odds with Promises/A+ specification. Which is unlikely, because all the major promises libraries support it, even if they do not indicate that in their documentation.

httpinvoke only contact with the external promise (which it can only get when onFulfill or onReject returns one) is the .then method here [1].

[1] https://github.com/jakutis/httpinvoke/blob/master/src/common...

comment 13y ago · link · parent

Existing libraries - like jquery, reqwest and superagent - had no easy support for promises, binary files and progress events, did not support a wide range of browser versions, did not nicely treat HTTP status codes. So I made this.

8.

Show HN: httpinvoke – js HTTP client - easy progress events, binary files, etc.(github.com ↗)

28 points · by tahu · 13y ago · 12 comments

comment 14y ago · link · parent

It is very hard to scroll the images on ipad given scroll focus implementation the site has - it jumps the focus to the same image or the one after the next.

comment 14y ago · link · parent

I'm successfully using it in my web usage data mining BSc thesis.

11.

Not only beyond Journals, not only beyond Papers. Beyond Theorems.(blog.felixbreuer.net ↗)

2 points · by tahu · 14y ago · discuss

comment 14y ago · link · parent

a look at the HTTP headers:

  tahu@laptop:~$ curl -I http://hackful.com/about
  HTTP/1.1 200 OK
  Content-Type: text/html; charset=utf-8
  Connection: keep-alive
  Status: 200
  X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11
  X-UA-Compatible: IE=Edge,chrome=1
  ETag: "6972d16343b1a4d0f2a49c9a3174e977"
  Cache-Control: max-age=0, private, must-revalidate
  Set-Cookie: _hackful_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQ5NzYzMThlNDFkOWVhYTI1YzJiZGI0YzNjMjlkOWFhBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMUVRU1gzZkhvcHRockpaWndWY2NRcGk3SElJczBmOEY3TW50YjJRZ0plSTg9BjsARg%3D%3D--572416e3b12cc85dda3675c22d117839535e636d; path=/; HttpOnly
  X-Runtime: 0.017811
  Date: Fri, 03 Feb 2012 16:26:04 GMT
  X-Rack-Cache: miss
  Server: nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)

13.

Related to gTLD initiative: video from 2008: "2012: The Year The Internet Ends"(youtube.com ↗)

3 points · by tahu · 14y ago · discuss

comment 14y ago · link · parent

Good points.

15.

Patent analyst is being paid by Microsoft to create a new study about patents(plus.google.com ↗)

4 points · by tahu · 15y ago · discuss

comment 15y ago · link · parent

you can also do direct action by signing a petition at http://epetitions.direct.gov.uk/petitions/16041

comment 15y ago · link · parent

There's always various scrapers, like this http://vytautas.jakutis.name/2011/05/27/convert-your-faceboo... by me.

comment 15y ago · link · parent

The code is updated - now randomizing the order and time in which contacts are polled.

19.

Convert your Facebook friend contacts to CSV(vytautas.jakutis.name ↗)

28 points · by tahu · 15y ago · 17 comments

comment 15y ago · link · parent

Nice idea, but it is a failure in safety - imagine a side impact..

comment 15y ago · link · parent

This time there is existing practice - Opera Unite and Tonido.

comment 15y ago · link · parent

I agree that JavaScript is breaking the traditional web - linked static HTMLs with some forms in it. But I also believe that one day people will start to forget this bumpy ride. I am thinking of http://nodejs.org/ and http://jsdom.org/ - if the user agent has javascript disabled - the client side javascript code could be executed on the server.

comment 16y ago · link · parent

Very good. Now I can safely append

192.168.1.254 bipentquadium bpq

Thanks.

comment 16y ago · link · parent

Yes, this is the PERFECT plan.

But how do I name my router at 192.168.1.254?