News for hackers. Stuff that matters.
Re:Very nice Color Schema Generator by lifthrasiir on Monday October 21, 2013 @02:05AM (#6583645)
Slightly off-topic: Does HN fail to parse an URL with no slashes?
Re:Very nice Color Schema Generator by kvprashant on Monday October 21, 2013 @02:15AM (#6583670)
Think so. Or has it got anything to do with the #?
Re:Very nice Color Schema Generator by lifthrasiir on Monday October 21, 2013 @02:28AM (#6583703)
Looking at news.arc in the Arc distribution (I think that is a source code of the HN or at least a basis of it, right?), it just misses this kind of URLs:

    (def parse-site (url) 
      (rev (tokens (cadr (tokens url [in _ #\/ #\?])) #\.)))
It basically tokenizes the URL "http://example.com/foo/bar?quux#woah" into a list "http:", "example.com", "foo", etc. (no "" since tokens uses consif internally) and takes the second element as a domain name. (It has a prior knowledge of url starting with either "http://" or "https://".) Obviously "#" is missing in the list of separators.

Edit: I filed an issue to the HN issue tracker. https://github.com/HackerNews/HN/issues/35

Re:Very nice Color Schema Generator by imslavko on Monday October 21, 2013 @01:59AM (#6583624)
Previous submission: https://news.ycombinator.com/item?id=5777500

It's worth to mention UI changed several times since last submission and it definitely improved!

Re:Very nice Color Schema Generator by okonomiyaki3000 on Monday October 21, 2013 @01:59AM (#6583627)
Re:Very nice Color Schema Generator by diziet on Monday October 21, 2013 @01:51AM (#6583603)
The option to enter a starting color seems to be hard to get to -- controlling it with a mouse is quite unwieldy.

Click on the up arrow to access controls.

Re:Very nice Color Schema Generator by ucarion on Monday October 21, 2013 @01:53AM (#6583608)
It's not obvious, but once you click to select a color, you can click the arrow at the bottom and manually insert hex / RGB / HSL, etc. to manually define your base color.
Re:Very nice Color Schema Generator by okonomiyaki3000 on Monday October 21, 2013 @01:58AM (#6583622)
Thanks, couldn't find it at all.