HNHacker News
TopNewBestAskShowJobs

ushi

933 karma · joined April 2, 2012

submissionscomments
ushi··on A well-known URL for changing passwords
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...

ushi··on Insane complexity of calendrically correct date and time operations
What you want is probably TAI [1], Unix Time has leap seconds.

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

ushi··on 1/0 = 0
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...
ushi··on Dev.to is now open source
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 ;)

ushi··on The Biggest and Weirdest Commits in Linux Kernel Git History (2017)
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.
ushi··on Postal: Open source mail delivery platform, alternative to Mailgun or Sendgrid
We are running this[0] with some postfix boxes in front of it. Works quite well for us.

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

ushi··on The Opa Language
if you can do all the shiny web things by writing grandpa code, this might be a good thing :)
ushi··on Chrome is developing a Sidebar API
This could make the octotree[0] extension even more awesome. Let's see.

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

ushi··on No one expects command execution
I agree. Every single example in this article makes perfect sense to me.
ushi··on Monsti – a free and open source CMS written in Go
the demo is readonly
ushi··on Animated vector map
HTTPS Everywhere enabled? When you visit the https site, chrome refuses to load non https resources.
ushi··on PDF Viewing
Checkout the pdfjs test suite, if you want to try it:

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

ushi··on Arc4random – randomization for all occasions
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/...
ushi··on What Do You Need?
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

ushi··on W3C declares HTML5 standard complete
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

ushi··on Audi’s Self-Driving Car Hits 150 MPH on an F1 Track
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.

ushi··on Webmail and Open Source
Roundcube isn't shipped with PGP support. Their are some plugins though...

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

ushi··on The SQLite Database File Format
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

ushi··on Show HN: Pup – A command-line HTML parser
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.
ushi··on Dimensions – Measure everything you see in the browser
Then it is time to learn about Ctrl+L
ushi··on Google search indexes itself
It is obviously the most relevant content on this site. PageRank is always right.
ushi··on Google search indexes itself
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...

ushi··on Ask HN: Do you program in multiple languages in a day?
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.
ushi··on Geohash: text representation allows you to sort locations by proximity
Ruby implementation: https://github.com/davetroy/geohash
ushi··on Cron commands to plain English
Awesome, now you have a test suite

    assert(cronchecker(cronstring(input)) == input)
ushi··on CGrep: a context-aware grep for source codes
Funny, there was a bell-labs project with same name. It seems to be dead[0], but when we travel the time a few years back, we get a wonderful project homepage[1].

[0] http://www1.bell-labs.com/project/wwexptools/cgrep/

[1] https://web.archive.org/web/20080513225010/http://www1.bell-...

ushi··on Twitter's GIF hack
imagemagick + ffmpeg

https://stackoverflow.com/questions/3212821/animated-gif-to-...

ushi··on The SSD Endurance Experiment: Casualties on the way to a petabyte
It shouldn't be a problem to boot a Linux from a read-only device.
ushi··on Mailbox.org gpg encrypted €1,- email solution now in english.
You should have included the next paragraph. They make a difference between user data and the users emails:

"Access to the log data of mail and web servers and to the e-mails contained in a mailbox, on the other hand, requires a search and seizure warrant signed by a judge, unless the investigative authorities can claim exigent circumstances. Telecommunications providers again have no legal recourse against search warrants; seizure of the log data cannot be denied."

ushi··on Mailbox.org gpg encrypted €1,- email solution now in english.
Here are the corresponding paragraphs in the Telekommunikationsgesetz (german):

https://www.bundesnetzagentur.de/cln_1432/DE/Sachgebiete/Tel...

Page 1 of 4Next →