Better HN
topnewbestaskshowjobs
Log inSign up

Acorn

47 karma · joined Apr 4, 2011 (15y ago) · 25 submissions

Submissions

comment 15y ago · link · parent

I think Mazzo is referring to a lack of Django's ORM.

comment 15y ago · link · parent

Isn't that the problem that version control has solved? Once the first commit is done you're just uploading deltas/changesets, so the size of the project doesn't really matter.

comment 15y ago · link · parent

Would it be possible to implement user input via the REPL instead of the current javascript prompts? Would be much less clunky.

Also, at the moment something like this doesn't work at all (Python):

  while True:
      user_input = raw_input()
      if user_input is 'q':
          break
      else:
          print user_input

comment 15y ago · link · parent

Specifically this page: http://weblog.jamisbuck.org/2011/2/7/maze-generation-algorit...

comment 15y ago · link · parent

The idea of Open Street Maps is not to make tools for map viewing or journey planning, it's to collect user contributed mapping data for the world. That data can then be used by any project that wants to use it.

This tool (using OSM data) allows you to view routes http://www.openrouteservice.org/

I agree though, there is a bit of a lack of good quality tools using OSM data, it's a shame.

comment 15y ago · link · parent

It's a shame that people contribute data to Google Maps when something like Open Street Maps exists.

If I'm going to spend the time it takes to map something, I'd much rather it go into an open source project rather than just improving the product of a for-profit company.

http://www.openstreetmap.org/

comment 15y ago · link · parent

Your website comes up as the 4th results for "slang dictionary". Where was it before panda?

comment 15y ago · link · parent

Seems like browser extensions would be the way to go.

Here's the SJCL demo: http://bitwiseshiftleft.github.com/sjcl/demo/

comment 15y ago · link · parent

I always remember it as "night night".. "ni' night"

comment 15y ago · link · parent

Button background still isn't appearing for me.

comment 15y ago · link · parent

Someone please make this!

comment 15y ago · link · parent

Personally I use an online password manager. (Passpack)

This allows you to randomly generate strong unique passwords for each website, and have them accessible from anywhere.

You are obviously putting trust in the service, but you have to weigh up what is more of a risk; the service going AWOL and stealing your passwords, or someone breaking into your accounts due to bad/repeated passwords.

LastPass is another major online password manager.

KeePass is a great offline solution. There's also 1Password.

comment 15y ago · link · parent

If someone managed to compromise LastPass' servers, they would be able to modify the content that was sent to your browser, and thereby do anything they wanted with your master password after you typed it in.

That's the weakness of services that are supposedly "Host-proof". If the host is sending you the webapp/javascript/webpage in which your data is decrypted, each and every time you visit their website, you have to trust that they wont (or someone else wont) modify it in a malicious way in order to gain access to your data.

The only way to be safe from this kind of attack is to use the same trusted copy of the code, and not use any new versions until you trust that it is also safe, or to somehow verify that the webpage sent to your browser is exactly what you expect it to be.

Cortesi has a very good write up on this issue: http://corte.si/posts/security/hostproof.html

comment 15y ago · link · parent

Back.. back.. back.. back..

comment 15y ago · link · parent

Ditto ditto!

comment 15y ago · link · parent

This could actually be quite useful when you have a large number of tabs open, and want to be able to go back to a blank slate, without losing track of what websites you were on. Could you maybe add an easy copy/paste features so you can get the list into a text file?

comment 15y ago · link · parent

Hmm, looking at python's base64.urlsafe_b64encode(s), padding is still used. So it sounds like it doesn't fully implement the "modified Base64 for URL" spec.

Base64 encoding also seems to result in quite long ascii strings compared to what I threw together.

Or is there a way to use Base64 which would give results of a comparable length?

comment 15y ago · link · parent

If you don't mind using - and _ then the implementation is very simple. I posted an example in Python and CoffeeScript to SO recently for doing this exact thing.

http://stackoverflow.com/questions/5940416/compress-a-series...

  >>> bin_string = '000111000010101010101000101001110'
  >>> encode(bin_string)
  'hcQOPgd'


  >>> decode(encode(bin_string))
  '000111000010101010101000101001110'

comment 15y ago · link · parent

Do not use regular expressions for parsing HTML.

http://www.codinghorror.com/blog/2009/11/parsing-html-the-ct...

comment 15y ago · link · parent

Didn't work for me.

comment 15y ago · link · parent

You can also use CONNECT-WITH-SUPPORT for another 1GB.

comment 15y ago · link · parent

I've found webfaction.com to be a great host.

23.

The World's Most Complex Architecture: Cardboard Columns With 16 Million Facets(fastcodesign.com ↗)

2 points · by Acorn · 15y ago · discuss

comment 15y ago · link · parent

Wow, this is a fantastic link, thanks for sharing!