HNHacker News
TopNewBestAskShowJobs

moreati

1,777 karma · joined April 28, 2011

Python and Ansible developer. Recovering Sherlock. Armchair supervillain. Pun usually intended. He/they.

https://moreati.org.uk/ https://social.moreati.org.uk/@alex

[ my public key: https://keybase.io/moreati; my proof: https://keybase.io/moreati/sigs/0NRA_TnGMfWlFUd7jrTrJqT2QOxC7wD7yEyjNtxLc4c ]

submissionscomments
moreati··on Google Hangouts 4.0: now simpler, faster, more beautiful
The recent spike you've seen might trace back to http://blog.getbatterybox.com/which-browser-is-the-most-ener...

I make no claim about it's veracity, just saw the headline recently - probably on HN.

moreati··on Show HN: Pyexperiment
Thank you for releasing this. I'll be trying it later today. The badges are very enticing :).

This project is in a crowded space (Python frameworks), and your README isn't selling it well. It's too heavy on the tell, and too light on the show. Ideally your opening section would be something like.

## pyexperiment

<badges>

pyexperiment is ... <1 line, maximum 2>. Here's an example:

    <less than 10 lines of python>
Here's the result of running that command, complete with <top 3 features>

    <less than 10 lines of command output>
Additionally pyexperiment gives you <another 3 features>, and more.

## Installation ...

moreati··on Get rid of boolean function parameters
Also worth mentioning that Python 3 supports keyword only parameters, which enforce this calling styling http://blog.gahooa.com/2009/12/08/python-has-keyword-only-pa... e.g.

    def calc_formula(a, b, *, is_gain=False):
        ...
moreati··on Show HN: PEP – an idea to help bring password managers to the masses
See also

SWAMP, or Standardised Web Account Management Protocol https://github.com/ashward/swamp

Password-manager friendly (PMF): Semantic annotations to improve the effectiveness of password managers http://mypico.org/documents/2014-StaSpeJen-pmf.pdf

moreati··on Zlib-ng: a performance-oriented fork of zlib
zlib latest takes 3 seconds, zlib-ng takes 13 seconds

    alex@martha:~/src/zlib$ du -sh $TESTFILE
    197M	/home/alex/src/enwiki-20141106-pages-articles-multistream-index.txt.gz
    alex@martha:~/src/zlib$ LD_LIBRARY_PATH=./ time ./minigzip -d <$TESTFILE >/dev/null
    3.36user 0.03system 0:03.87elapsed 87%CPU (0avgtext+0avgdata 1632maxresident)k
    8inputs+0outputs (0major+90minor)pagefaults 0swaps
    alex@martha:~/src/zlib$ LD_LIBRARY_PATH=./ time ./minigzip -d <$TESTFILE >/dev/null
    3.34user 0.04system 0:03.76elapsed 90%CPU (0avgtext+0avgdata 1704maxresident)k
    0inputs+0outputs (0major+91minor)pagefaults 0swaps
    alex@martha:~/src/zlib$ cd ../zlib-ng/
    alex@martha:~/src/zlib-ng$ LD_LIBRARY_PATH=./ time ./minigzip -d <$TESTFILE >/dev/null
    12.20user 0.04system 0:13.63elapsed 89%CPU (0avgtext+0avgdata 1576maxresident)k
    264inputs+0outputs (1major+86minor)pagefaults 0swaps
    alex@martha:~/src/zlib-ng$ LD_LIBRARY_PATH=./ time ./minigzip -d <$TESTFILE >/dev/null
    12.15user 0.08system 0:13.58elapsed 90%CPU (0avgtext+0avgdata 1428maxresident)k
    0inputs+0outputs (0major+84minor)pagefaults 0swaps
moreati··on Zlib-ng: a performance-oriented fork of zlib
A very rough and ready, impromptu benchmark.

zlib latest took 26 seconds to compress 648 MB of text, zlib-ng latest took 16 seconds.

    alex@martha:~/src/zlib$ export TESTFILE=../enwiki-20141106-pages-articles-multistream-index.txt
    alex@martha:~/src/zlib$ du -h $TESTFILE
    648M	/home/alex/src/enwiki-20141106-pages-articles-multistream-index.txt
    alex@martha:~/src/zlib$ LD_LIBRARY_PATH=./ time ./minigzip <$TESTFILE >/dev/null
    23.75user 0.17system 0:26.05elapsed 91%CPU (0avgtext+0avgdata 1864maxresident)k
    56472inputs+0outputs (0major+144minor)pagefaults 0swaps
    alex@martha:~/src/zlib$ LD_LIBRARY_PATH=./ time ./minigzip <$TESTFILE >/dev/null
    24.29user 0.17system 0:26.80elapsed 91%CPU (0avgtext+0avgdata 1772maxresident)k
    0inputs+0outputs (0major+141minor)pagefaults 0swaps
    alex@martha:~/src/zlib$ cd ../zlib-ng
    alex@martha:~/src/zlib-ng$ LD_LIBRARY_PATH=./ time ./minigzip <$TESTFILE >/dev/null
    14.66user 0.11system 0:16.16elapsed 91%CPU (0avgtext+0avgdata 1604maxresident)k
    256inputs+0outputs (0major+140minor)pagefaults 0swaps
    alex@martha:~/src/zlib-ng$ LD_LIBRARY_PATH=./ time ./minigzip <$TESTFILE >/dev/null
    14.64user 0.12system 0:16.09elapsed 91%CPU (0avgtext+0avgdata 1840maxresident)k
    0inputs+0outputs (0major+144minor)pagefaults 0swaps
The machine is a MBP 11,2 with an i7-4750HQ CPU @ 2.00GHz, running Ubuntu 15.04 x64.
moreati··on Zlib-ng: a performance-oriented fork of zlib
"zee lib en jee" was my first instinct
moreati··on Tone: An experimental Chrome extension for instant sharing over audio
This is based on Copresence, which will probably ultimately include something like AirDrop. The audio portion would be used for neighbour discovery, before hand off to e.g. wifi direct. Copresence is already used for the guest play feature of ChromeCast.

Listening browsers require the extension. Neither require a Dev release of Chrome - 43.x is the current stable release.

Nothing you'd call documentation. Copresence is part of Chromium, so you can dive into the source code if you wish. I'm attempting to reverse engineer the audible portion (just for fun). I'm tweeting as I go https://twitter.com/moreati

moreati··on Tone: An experimental Chrome extension for instant sharing over audio
I've been poking this the last few hours. It uses both audible and inaudible (ultrasonic) frequencies. The URL is passed to a Google service called Copresence to transform it into a short token - it's this token that's played. The Copresence client, and the playing/listening code are part of Chromium/Chrome 43.x. I think earlier versions won't work with the extension.

Google Tone is similar to http://chirp.io/, which has iOS and Android apps. There are third-party transmitters (but not listeners) which work across browsers. http://piupiu.ga/ is the most complete. I wrote a bookmarklet https://moreati.github.io/chirpweb/.

moreati··on Apple 5W USB Power Adapter (Folding Pins, UK)
This £25 plug from Apple has some competition, namely

The £15 Mu Classic, which is much thinner but longer/wider

The £12 ThinCharger, which is somewhere between and double the power

moreati··on Why are there both TMP and TEMP environment variables, and which one is right?
There's a similar quirk with the env variables used to set a proxy hostname - http_proxy vs HTTP_PROXY. On Unix environment variable names are case sensitive, $foo is distinct from $FOO. The strong convention is to use upper-case only. Some early command line http client (possible lynx) chose to buck the trend and used lower-case.

Now some programs check the upper-case variant, some the lower, and some check both. So if you set one, you should set the other to avoid confusion.

https://wiki.archlinux.org/index.php/proxy_settings#Environm...

Does anyone know of a full write-up of the history of this?

moreati··on Beep.js – toolkit for building browser-based synthesizers
> It seems to support 4 simultaneous notes at a time, using the computer keyboard (e.g., press down zxcv together), but if you hit a 5th key it's ignored.

I think that's a limitation of your keyboard. Here I can play zxcvbn, but I can't add a seventh note.

moreati··on Show HN: Share text and links between all your devices
(Not the GP) I had the same stuck on spinner issue until I white listed the site in Disconnect (FF 36 on OSX).

Now it's white listed the page loads fully, with one warning in the web console, concerning https://www.facebook.com/v2.2/plugins/login_button.php?...:

This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.

moreati··on Astropad – Transform your iPad into a professional graphics tablet
Good luck, looks like a nice product. My only request/suggestion for your website is to make it clear which iPads you're compatible with. e.g. does dock vs lightning connector matter? full size vs mini? iOS version?
moreati··on Boston Dynamics' New Robot – Spot
That's a lot quieter. Is this the first BD quadruped to run without a engine? Anyone care to guess how long the (I assume) batteries last?
moreati··on Show HN: Coplay – synchonizing video play between browsers
Why did you write it? What are the use cases for synchronising videos like this?

A sentence or two in your README to answer these would be handy.

moreati··on Email Encryption Software Relies on One Guy, Who Is Going Broke
In the last hour or so (I think since this hit the front page) there have been approximately €2000 of donations added to the drive at https://gnupg.org/, nudging it over €40000.

Please do your part, and keep that bar moving.

moreati··on Safety, liveness and fault tolerance—the consensus choices
Yes, but note that Bitcoin had a blockchain fork in 2013 http://bitcoinmagazine.com/3668/bitcoin-network-shaken-by-bl.... Without knowing the details of Stellar's fork I make no comment on the relative severities/merits.
moreati··on Firefox 34 includes WebRTC videochat client “Firefox Hello”
The browser will ask you, before it allows a particular website access to your camera or your microphone https://hacks.mozilla.org/2013/02/cross-browser-camera-captu...
moreati··on Why Warren Buffett Just Bought Duracell
It sounds like you know the history. Why are zinc-carbon batteries called 'heavy-duty'?
moreati··on The Unbelievable Skepticism of the Amazing Randi
I believe 'dowsing for bombs' is a reference to http://www.bbc.co.uk/news/uk-22380368. In which case the perpetrators sold the kits to governments/agencies i.e. third parties were being exposed to the bombs.
moreati··on Announcing RemoteIE: Test the Latest IE on Windows, Mac OS X, iOS and Android
I've always wondered if there's a story behind modern.ie using chunked .rars over e.g. non-chunked .zip.

What were the technical/human constraints that lead to that solution? Was the team agonising over conflicting goals? Or was it as simple as "Alice already knew it"/"Our tool chain already supported it"?

moreati··on Plover: Thought to Text at 240 WPM (2013) [video]
For anyone else looking. Plover is at http://plover.stenoknight.com/, which links to the plover store for the keys http://plover.deco-craft.com/shop/view_product/Laser_Cut_Ste.... They fit the MS Sidewinder X4 (maybe others), which is available still.
moreati··on Show HN: A real-time Bitcoin transaction map
Most likely it's a GeoIP lookup of the first IP observed to broadcast the transaction - which may or may not be the originating IP.
moreati··on Hands-on with the USB Type-C plug
I consider jack to refer to the male connector, e.g. 3.5 mm jack means the plug on a pair of headphones. Interesting that it's not universal.
moreati··on Could We Build a Dyson Sphere?
Considering the source, I almost wish it was intentional - the science/engineering equivalent of a click bait headline.
moreati··on Old car batteries could make cheaper, more efficient solar panels
My guess is that as lead acid car batteries are phased out, then the lead acid recycling industry will migrate to supplying stationary batteries. By that I mean e.g. residential photovoltaics storage, grid load smoothing, battery banks for rapid charging electric cars. Situations where the weight/bulk doesn't matter, but low cost does matter.

If there are no other economic uses for the lead then those applications should become nice and cheap. However this is just the opinion of an armchair energy wonk, so take it with a big grain of salt.

moreati··on What's the matter with PGP?
What is CT in this context?
moreati··on Know How To Roll Your SSL Certificates
We use http://certalert.me/ it's free and it does multiple domains. I don't know if would have caught stripe's problem.
moreati··on Harry Potter and the Cryptocurrency of Stars
You might like http://web.mit.edu/kerberos/dialogue.html then
← PreviousPage 6 of 9Next →