News for hackers. Stuff that matters.

Acorn

Re:Python For The Web on Tuesday October 18, 2011 @07:39PM (#3127831)
I think Mazzo is referring to a lack of Django's ORM.
Re:Project Zomboid source code burgled on Sunday October 16, 2011 @08:40AM (#3117207)
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.
Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ... on Friday September 30, 2011 @08:34AM (#3056691)
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
Re:Watch Google Map Edits Live on Saturday August 13, 2011 @05:35PM (#2882064)
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.

Re:Watch Google Map Edits Live on Saturday August 13, 2011 @05:17PM (#2882028)
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/

Re:The Massive Mystery In Google's Finances on Friday July 15, 2011 @10:14AM (#2767409)
Your website comes up as the 4th results for "slang dictionary". Where was it before panda?
Re:Javascript encryption on Sunday July 03, 2011 @08:21AM (#2723561)
Seems like browser extensions would be the way to go.

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

Re:Clever Names Aren’t Always a Good Thing on Saturday July 02, 2011 @05:58PM (#2722529)
I always remember it as "night night".. "ni' night"
Re:Show HN: What do you think of my App's Splash page? on Friday July 01, 2011 @07:15PM (#2720528)
Button background still isn't appearing for me.
Re:“Let's settle this in a Ruby programming contest” on Monday June 27, 2011 @12:18PM (#2701841)
Someone please make this!
Re:Ask HN: Best way to protect my passwords as a user? on Sunday June 26, 2011 @06:25PM (#2699292)
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.

Re:MtGox salted passwords cracked on Sunday June 26, 2011 @11:34AM (#2698195)
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

Back.. back.. back.. back..
Ditto ditto!
Re:Show HN: Chrome extension I made in 10 minutes on Wednesday May 18, 2011 @07:20AM (#2559748)
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?
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?

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'
Re:The power of back references and Python on Monday May 16, 2011 @01:14PM (#2553293)
Do not use regular expressions for parsing HTML.

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

Re:Instant ~12 GB online encrypted storage on Sunday May 01, 2011 @08:21PM (#2504492)
Didn't work for me.
Re:Instant ~12 GB online encrypted storage on Sunday May 01, 2011 @07:29PM (#2504377)
You can also use CONNECT-WITH-SUPPORT for another 1GB.
Re:Looking for Hosting For My Project in Ruby on Rails on Saturday April 16, 2011 @10:05AM (#2453965)
I've found webfaction.com to be a great host.
Re:Building a Maze by Destroying Walls Efficiently on Sunday April 03, 2011 @09:54PM (#2404949)
Wow, this is a fantastic link, thanks for sharing!