News for hackers. Stuff that matters.
Re:Genetic Algorithm building a little car by slater on Monday December 08, 2008 @01:27PM (#390129)
i misread the title and thought that at least one of the "Big Three" had finally gotten it, and was starting to make SMART-size cars. Dang.
Re:Genetic Algorithm building a little car by ivankirigin on Monday December 08, 2008 @02:10PM (#390192)
One of the big 3 did build the smart car. Sorta. If you count Daimler AG ( previous owner of Chrysler, and current owner of Smart) as the maker.

http://en.wikipedia.org/wiki/Chrysler_Group http://en.wikipedia.org/wiki/Daimler_AG http://en.wikipedia.org/wiki/Smart_(automobile)

I'll take this opportunity to note that bailing out companies originally founded by Americans in such a globalized market is arbitrary and harmful.

Re:Genetic Algorithm building a little car by ivankirigin on Monday December 08, 2008 @02:11PM (#390196)
note to pg, these are valid URL characters: "()"

I'm surprised you of all people aren't more partial to them

Re:Genetic Algorithm building a little car by lacker on Monday December 08, 2008 @02:53PM (#390275)
The problem is breaking stuff like

(also see url: http://google.com)

Might be better to treat a trailing ) as not part of a url only if there is no ( earlier in the url.

Re:Genetic Algorithm building a little car by ivankirigin on Monday December 08, 2008 @02:56PM (#390297)
Indeed. Though I'm accustomed to adding a space at the end of urls.
Re:Genetic Algorithm building a little car by bd on Monday December 08, 2008 @06:26PM (#390580)
It's possible to get around using escape sequences.

In Python:

  import urllib
  print urllib.quote("en.wikipedia.org/wiki/Smart_(automobile)")
It looks ugly, but it makes links clickable:

http://en.wikipedia.org/wiki/Smart_%28automobile%29

Re:Genetic Algorithm building a little car by ivankirigin on Monday December 08, 2008 @08:08PM (#390723)
The href can be that ugly link while the parens are still visible. The issue is when to parse the parens as part of the link.

Edit: but I guess you're saying I could do this to make it clickable. No thanks.

Re:Genetic Algorithm building a little car by bd on Monday December 08, 2008 @08:40PM (#390754)
Yup, that's what I ment. This is what I do when posting Wikipedia urls with parens here.

For parsing parens problem, heuristics proposed by lacker seems reasonable.

Anyway, I guess like 99% of broken parens cases here would be Wikipedia links, which are quite well defined (except for pages for emoticons and parens symbols themselves).

Re:Genetic Algorithm building a little car by msg on Monday December 08, 2008 @06:42PM (#390607)
http://news.ycombinator.com/item?id=10889

When is a paren not a paren? When it's punctuation.

Re:Genetic Algorithm building a little car by swombat on Monday December 08, 2008 @05:26PM (#390492)
might wanna send him an email, to pg@...