Better HN
topnewbestaskshowjobs
Log inSign up

kqueue

265 karma · joined Apr 11, 2010 (16y ago) · 206 submissions

Submissions

comment 15y ago · link · parent

python> 'a' * 16000

copy that to hashify, and let me know the length of the url you get.

comment 15y ago · link · parent

This is going to break in cases where the request line grows above 8k-16k. Many browsers/proxies implement limits on headers/request lines, for good reasons.

It's a very cool idea though.

comment 15y ago · link · parent

Why are you posting this?

comment 15y ago · link · parent

+1. I learn the most from reinventing wheels. And I reinvent them on purpose.

comment 15y ago · link · parent

Most of the articles are copied from somewhere else.

http://www.insideword.com/member/profile/31 ->

http://articles.timesofindia.indiatimes.com/2011-04-04/compu...

Solving the original content problem is a must.

comment 15y ago · link · parent

Traceback (most recent call last):

  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 634, in __call__
    handler.get(*groups)

  File "/base/data/home/apps/gumroad/1.349472656690944858/main.py", line 60, in get
    if is_logged_in():

  File "/base/data/home/apps/gumroad/1.349472656690944858/main.py", line 110, in is_logged_in
    s = sessions.Session()

  File "/base/data/home/apps/gumroad/1.349472656690944858/appengine_utilities/sessions.py", line 562, in __init__
    self.session = _AppEngineUtilities_Session.get_session(self)

  File "/base/data/home/apps/gumroad/1.349472656690944858/appengine_utilities/sessions.py", line 142, in get_session
    ds_session = db.get(str(session_key))

  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1422, in get
    keys, multiple = datastore.NormalizeAndTypeCheckKeys(keys)

  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 180, in NormalizeAndTypeCheckKeys
    keys = [_GetCompleteKeyOrError(key) for key in keys]

  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 2339, in _GetCompleteKeyOrError
    key = Key(arg)

  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 364, in __init__
    raise datastore_errors.BadKeyError('Invalid string key %s.' % encoded)
BadKeyError: Invalid string key agdndW1yb2FkciMLEhtfQXBwRW5naW5lVXRpbGl0aWVzX1Nlc3Npb24Y.

comment 15y ago · link · parent

Can you copy that specific section?

comment 15y ago · link · parent

>The irony is that they don’t eat their own dogfood. In other words, they relied on yesterday’s best of breed tools to prevent and detect the attack.

I don't think she understands what eating your dogfood means.

comment 15y ago · link · parent

http://i.imgur.com/ELqhr.png Seriously?

comment 15y ago · link · parent

I like the ad unit at the top of the blog page.

comment 15y ago · link · parent

The spikes you are mentioning might be due to the OS lowering your process priority. If you are on a FreeBSD machine, try running rtprio(1) to avoid the OS changing the process priority upon extensive CPU usage.

comment 15y ago · link · parent

That was worth mentioning then.

comment 15y ago · link · parent

Your claims are based on what?

comment 15y ago · link · parent

The only review I need that has ads everywhere on the page, and is trying to advertise the link to bring in more traffic.

comment 15y ago · link · parent

hello = ^(name){ "Hello "+name } repeat {times: 3} ^{ print hello {name: "John"} }

The syntax makes no sense. How can this be aimed towards people not previously familiar with programming computers?

And how can this be considered intuitive?

>When creating a function, we can specify function arguments, which are sorrounded by parentheses and put in between the "^" and the "{". These "arguments" are just like variables, but which are only available inside our function.

What's wrong with python for newbie programmer?

comment 15y ago · link · parent

You can use rpc + message queues for that.

client request1 --> web server --> rpc server --> work queue

<process other requests>

client request1 <-- web server <-- rpc server <-- done queue

Of course you need to create consumers to operate on the work queue, process the jobs and put them in a different queue (eg. 'done queue') signaling the rpc server that you finished the job so that the rpc server in turn will reply back to the web server.

comment 15y ago · link · parent

I noticed that loading the main page results in requesting 19 css files and 8 js files. I suggest combining those to provide a better loading experience.

comment 15y ago · link · parent

Yet another loud and obnoxious user.

comment 15y ago · link · parent

oh haha, I thought you are the author of the article. nm. :)

comment 15y ago · link · parent

How is that better than webkit's inspector?

And why every tool on HN now is called a startup?

comment 15y ago · link · parent

Event driven development is the worst kind of programming because of the extensive use of callbacks and state maintenance/tracking. You never know the control flow by reading the source.

You have to maintain state all the time and keep track of inconsistent/impossible states.

That to me is not cleaner or easier.

I work in one of the big corps, and it never fails, event driven servers tend to be way more buggy.

Python out of the box doesn't have coroutines but you can always use gevent for that.

Python threads are real pthreads, now they are not optimal and should not be used in high load servers, because pthreads are not that light weight when you are running 10k of them. Creating servers based on python threads is as clean as coroutine threads but slower. Hence, coroutines are always favorable over them.

comment 15y ago · link · parent

Yes you did in your comments.

http://www.jongales.com/blog/2011/02/14/list-of-content-farm...

user> mail-archive? are you crazy? that site has been around forever & I’ve found more answers there than I can count.

you> What mailing lists are you finding useful on mail-archive that aren’t available elsewhere? Do you ever visit mail-archive directly? I’ve only seen mail-archive clutter up SERP pages, often with the question I have going unanswered. I see no point in duplicating content on Google Groups, only with a significantly worse UI.

The point is, they are all doing the same. mail-archive, osdir, markmail archive mail, place ads next to them. Some provide more features on top but the main idea is archive public content and make money out of it.

You can always use gmane to search apache archives, at least it is ad free.

comment 15y ago · link · parent

It is not different that mail-archive at all. You bashed mail-archive in your comments because it doesn't provide an added value. markmail doesn't provide an added value either.

comment 15y ago · link · parent

Based on coroutines or threads?

comment 15y ago · link · parent

I don't know how programmers can convince themselves that a framework based on callbacks (event driven) is a good idea.

comment 15y ago · link · parent

node.js and tornado are both event driven asynchronous solutions.

comment 15y ago · link · parent

it is missing the following:

- osdir.com

- markmail.org

- www.dennyweb.com

comment 15y ago · link · parent

This site looks like TC.

comment 15y ago · link · parent

Why not use HN src ?

https://github.com/nex3/arc/blob/master/news.arc

comment 15y ago · link · parent

The number of users that use Bing is much lower than the number of users that use Google.

This comparison is similar to saying that book X that has a total of 4 ratings, 5 star each is better than book Y that has 100 ratings, 4 star each.

1234567