Better HN
topnewbestaskshowjobs
Log inSign up

ushi

933 karma · joined Apr 2, 2012 (14y ago) · 132 submissions

Submissions

comment 7y ago · link · parent

Thunderbird looks for http://domain.tld/.well-known/autoconfig/mail/config-v1.1.xm... for autoconfiguration.

See: https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird...

comment 8y ago · link · parent

What you want is probably TAI [1], Unix Time has leap seconds.

[1] https://en.wikipedia.org/wiki/International_Atomic_Time

comment 8y ago · link · parent

Ruby defines division by zero for Floats

  1.0 / 0
  => Float::INFINITY
and

  0 * Float::INFINITY
  => Float::NAN
I think infinity is a more intuitive result, but most of the time i get this as a user i would rather see 0 (bought books per month: Infinity). As a programmer i like to get an error, because i forgot to handle an edge case...

comment 8y ago · link · parent

Looks like the standard rails mess :/ Don't get me wrong. From time to time i am going to look at other peoples rails code to learn, how they solved common problems in grown rails apps. Most oft the time i leave rather disappointed...

I like the spec for Comment#id_code_generated ;)

comment 8y ago · link · parent

yes. its implemented:

  --allow-unrelated-histories

    By default, git merge command refuses to merge histories
    that do not share a common ancestor. This option can be
    used to override this safety when merging histories of
    two projects that started their lives independently. As
    that is a very rare occasion, no configuration variable
    to enable this by default exists and will not be added.

comment 9y ago · link · parent

We are running this[0] with some postfix boxes in front of it. Works quite well for us.

[0] https://github.com/ushis/mailhook

7.

“Cache-Control: no-store” considered harmful(blogs.atlassian.com ↗)

1 points · by ushi · 10y ago · discuss

comment 11y ago · link · parent

if you can do all the shiny web things by writing grandpa code, this might be a good thing :)

comment 11y ago · link · parent

This could make the octotree[0] extension even more awesome. Let's see.

[0] https://github.com/buunguyen/octotree

comment 11y ago · link · parent

I agree. Every single example in this article makes perfect sense to me.

11.

Roundcube Next reached their crowdfunding goal(lists.roundcube.net ↗)

1 points · by ushi · 11y ago · discuss

12.

Cube composer(david-peter.de ↗)

1 points · by ushi · 11y ago · discuss

comment 11y ago · link · parent

the demo is readonly

comment 11y ago · link · parent

HTTPS Everywhere enabled? When you visit the https site, chrome refuses to load non https resources.

comment 11y ago · link · parent

Checkout the pdfjs test suite, if you want to try it:

https://github.com/mozilla/pdf.js/tree/master/test/pdfs

comment 12y ago · link · parent

getrandom() is a generic interface you can use to implement getentropy(), which is used to seed arc4random(). It is not an alternative arc4random implementation...

From the OpenBSD Manpage:

    getentropy() will succeed unless:

    [EFAULT]
    The buf parameter points to an invalid address.
    
    [EIO]
    Too many bytes requested, or some other fatal error occurred.
See: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/...

comment 12y ago · link · parent

It is already mentioned in his beloved developer forum[0], but he didn't respond yet. Let's see...

[0]http://devgurus.amd.com/message/1306586#1306586

18.

Rails CVE-2014-7818(weblog.rubyonrails.org ↗)

2 points · by ushi · 12y ago · discuss

comment 12y ago · link · parent

i know it was just a joke, but for vim users working with html i recommend the html5 plugin[0].

[0] https://github.com/othree/html5.vim

comment 12y ago · link · parent

From the article:

While the RS7’s computer had a detailed digital map of the track and was following an optimized path through it, Audi did not preprogram things like torque or steering.

comment 12y ago · link · parent

Roundcube isn't shipped with PGP support. Their are some plugins though...

See: http://trac.roundcube.net/wiki/Dev_Encryption

comment 12y ago · link · parent

There was this submission[0] yesterday. Probably someone wanted to learn more about it and stumbled upon this amazing document.

[0] https://news.ycombinator.com/item?id=8378894

comment 12y ago · link · parent

So getting the front page links is now as easy as:

   curl https://news.ycombinator.com | pup td.title a attr{href}
Well done and thx for sharing.

comment 12y ago · link · parent

Then it is time to learn about Ctrl+L

comment 12y ago · link · parent

It is obviously the most relevant content on this site. PageRank is always right.

comment 12y ago · link · parent

Funny thing... It works only with[0]

    site:http://www.google.com//search
but not with[1]

    site:http://www.google.com/search
[0] https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.goog...

[1] https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.goog...

comment 12y ago · link · parent

Today it was Ruby, Go and JavaScript. I feel productiv in all of them. Sometimes some C, Shell and Python. Python is becoming a pain, because i use it so rarely, that i have to look up everything.

comment 12y ago · link · parent

Ruby implementation: https://github.com/davetroy/geohash

comment 12y ago · link · parent

Awesome, now you have a test suite

    assert(cronchecker(cronstring(input)) == input)

30.

A New Bike Lane That Could Save Lives and Make Cycling More Popular(wired.com ↗)

2 points · by ushi · 12y ago · discuss

12345