HNHacker News
TopNewBestAskShowJobs

zensavona

974 karma · joined April 28, 2012

Hello

https://twitter.com/zensavona https://zen.id.au

submissionscomments
zensavona··on Sweden Wants to Revive Europe’s Overnight Trains
Yep I took it from Gothenburg to Berlin (via Copenhagen and Hamburg) and those wind farms are seriously impressive!

Also a really cool view if you take the bridge from Denmark to Sweden, windmills in the sea almost as far as the eye can see.

zensavona··on Sweden Wants to Revive Europe’s Overnight Trains
Interestingly enough in Europe there are places [1] where you can take a train which goes on a ferry, so you can take the ferry while you take the train

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

zensavona··on How not to hire a software engineer
Interestingly in the last 6 months I’ve been on both sides of this: being hired and hiring others. It was really cool because it allowed me to understand what is actually good and useful in the hiring process from both ends.

While hiring (only 2 people, one junior and one senior, both fully remote) I just had a ~45-60min chat about technical and non-technical things (e.g. what do you think about functional programming/rails/deployment/ops/whatever, what does <something> mean to you, how do you feel about <some workplace practice>) and then gave them a small paid project to work on our actual codebase - something like implementing a small, self contained feature or writing some tests for a particular piece of code. I found this to be a really good way to find out if I’ll like working with someone and if they are a good fit on a technical level.

zensavona··on Build an Air Quality Monitor with InfluxDB, Grafana and Docker on a Raspberry Pi
Probably want to add a PM (particulate matter) sensor to the mix.

I've built a few similar devices using ESP chips and various laser dust sensors, highly recommend the Plantower PMS5003 - laser defraction, PM1-PM10 accuracy, ~$20 and there are good libraries available on GitHub for interacting with it.

Edit: https://twitter.com/zensavona/status/1091949965306257409

zensavona··on Linux touchpad like a Macbook: progress and a call for help
It does, until you use it every day for a while. When I use my partner's air it feels very unsatisfying in comparison.
zensavona··on Dell Autism Hiring Program
If not a disability, what would you call it?
zensavona··on At $75K, housing a prisoner in California now costs more than a year at Harvard
As much as I disagree with mass incarceration, I don't like these "it costs $nK to house a prisoner", since usually it's not quite true - costs are amortised over many thousands of prisoners and the state wouldn't actually regain $75k by releasing one prisoner.

That being said, I am sure they would regain enough money to seriously help that person, which is more likely what they need than to be locked in a cage to get some kind if societal retribution.

zensavona··on OnionShare 2 adds anonymous dropboxes
You can't do that because that's not the way encryption works.

The reason onion addresses are random looking is because they are a function of the hidden service's public key.

If you could generate a "private key" from the public key, anyone could use your "domain name". The reason tor doesn't require centralised domain name services is because we can trust that whoever owns the private key to the public key which we identify with the onion address, owns the onion address.

zensavona··on Handling 1M websocket connections in Go
With Elixir/OTP there would be no disconnection/reconnection. The way hot code push works with OTP is that each "channel" (OTP "process"/websocket connection) has a GenServer, which is basically a state machine, and when there is a new version of the function available in the VM, the current state is passed into a function (supplied by you) to mutate it into a shape compatible with your new change, then next time the data is passed around the loop to the state management function, it goes to the new one instead. Because the state data is stored quite separately to the actual functions who mutate it, there is no need to disconnect or do any mass purging of memory when there's a hot code deployment.
zensavona··on Ask HN: Who wants to be hired? (January 2019)
===== REMOTE ONLY ===== Elixir, JavaScript, Ruby developer (6+ years experience) =====

Location: Melbourne / Bangkok

Remote: Yes (only interested in remote)

Willing to relocate: No

Technologies: Elixir, Phoenix, Ruby/Rails, Java EE (but I'd rather not), PHP, Node, TypeScript, React/Redux and Aurelia using modern JS (but I like to write vanilla JS where it makes sense), Redis, Azure, AWS, Heroku (some time ago), Linux (CentOS and Ubuntu), Git, and many collaboration, project management and source control tools. All the usual suspects.

Résumé/CV: http://zen.id.au/cv.pdf

Email: z at zen dot id dot au

=====

Some code samples (for obvious reasons I can only really show open source stuff):

- Domainatrex (https://github.com/Zensavona/domainatrex) is a TLD parsing library that I wrote in Elixir, it uses the Public Suffix List to create a bunch of functions with a macro and pattern match on domain names (getting a TLD from a domain name is not regexable). It's a small and satisfying piece of code in my opinion. (see: https://github.com/Zensavona/domainatrex/blob/master/lib/dom...)

- Domain Scraper (https://github.com/Zensavona/domain-scraper) is a fairly hacky web scraper/crawler that looks for expired domain names on big websites to sell to SEO guys, the testing situation isn't great, although the README explains how it works and there are some slides from a talk I gave about it.

Website: https://zen.id.au Twitter: https://twitter.com/zensavona

I have Australian and Maltese (EU) citizenship, and I'm 100% happy to charge as a freelancer / contractor. Right now I'm living in Bangkok (GMT+7) but I'm perfectly to work evenings as needed for the right company.

zensavona··on Google’s native ad blocker for Chrome shows up in Android developer build
No :)
zensavona··on Joy of Elixir
I have first hand experience with this actually...

Over the last 6 months or so a good friend of mine has learned to code from scratch. After much deliberation I took a gamble and set him up with Elixir as his first language (largely because he wanted to code so he can work with me on some projects, which use Elixir).

I am really happy with this choice and so is he. Elixir is a language with very consistent ideas throughout and I think concepts like functional transformations, immutability, pattern matching and actor based concurrency are both extremely useful to learn early and very accessible to beginners in Elixir.

Edit:

I didn't think of it when I wrote this comment, but I think the single most helpful thing for beginners (and me!) in Elixir, is the 'h' function. If you run it with any function as an argument in iex (Elixir's repl) you'll get documentation and an example of how to use that function:

  iex(2)> h Enum.map

                              def map(enumerable, fun)

  Returns a list where each item is the result of invoking fun on each
  corresponding item of enumerable.

  For maps, the function expects a key-value tuple.

  ## Examples

      iex> Enum.map([1, 2, 3], fn(x) -> x * 2 end)
      [2, 4, 6]

      iex> Enum.map([a: 1, b: 2], fn({k, v}) -> {k, -v} end)
      [a: -1, b: -2]
zensavona··on Making Audio Plugins (2015)
This is a great tutorial (I've read it), but I think for a number of reasons JUCE[0] is vastly superior to WDL-OL (although if you're not already familiar with audio programming in C++, the docs can be a little daunting).

I would suggest starting by checking out some open source plugins and standalone apps made with JUCE[1] to understand how the applications are structured, and the docs[2]. It also comes with a (mostly) great IDE called Projucer which allows you to see your code changes reflected in your application (almost) instantly.

[0]: https://www.juce.com/ [1]: https://github.com/search?l=C%2B%2B&q=juce&type=Repositories... [2]: https://www.juce.com/doc/tutorial_create_projucer_basic_plug...

zensavona··on Tesla's Model S fails to ace some tests in IIHS evaluation
Meanwhile in the real world...

https://www.youtube.com/watch?v=uzD_3OFOPVQ

zensavona··on Developers who use spaces make more money than those who use tabs
Hacker News should be a Safe Space.
zensavona··on Program FPGAs with Go
I would argue that Elixir is far closer to being a "JavaScript-like language for concurrent programming" than Go, due to it's dynamic typing and relative freedom it affords in comparison to the others you mentioned (except for Clojure, which is actually quite similar in a lot of ways).

Although it is technically a purely functional language, you can almost mutate variables (in reality it is creating a new immutable variable with the same name, which takes precedence)

  a = 1
  # a == 1
  a = 2
  # a == 2
Concurrency feels very natural:

  # concurrent
  numbers = [1,2,3,4,5]
  doubles =
    |> numbers
    |> Enum.map(fn(n) -> Task.async(fn -> n * 2 end) end)
    |> Enum.map(&Task.await/1)
  # doubles == [2,4,6,8,10]

  # consecutive
  numbers = [1,2,3,4,5]
  doubles = numbers |> Enum.map(fn(n) -> n * 2 end)
  # doubles == [2,4,6,8,10]
zensavona··on You can probably use deep learning even if you don't have a lot of data
Maybe what you should do is deep learn some data and then do some deep learning with your deep learned [deep] data.

Deep.

zensavona··on Why American Workers Now Dress So Casually
I'm only 23. I guess I have grown up in a time where Tattoo Stigma is a very "old fashioned" idea.
zensavona··on Why American Workers Now Dress So Casually
That part about tattoos strikes me as very odd. I live in Australia and have both of my arms fairly covered in tattoos, no job I've ever had has asked me to cover them, even as a travel agent.
zensavona··on A prototype watch, raising hope for Parkinson’s
We actually have a very effective, natural fix for this kind of Parkinson's symptom. Marijuana.

Look how amazingly (immediately) effective it is:

https://www.youtube.com/watch?v=U4s-6fnLSzE

zensavona··on 3-D printed ovaries produce healthy offspring in mice
Because if you've see the kind of "farm" most eggs come from you'll know it's a horrific kind of place.
zensavona··on DocuSign email address database breached and used for phishing campaign
I recently had to do this (my gym had a data breach), it took over 3 months to get my money back and god knows how many hours and phone calls.
zensavona··on Solar Roof
I understand where these people who are saying it sucks and it's too expensive are coming from. It is more expensive than normal solar panels.

BUT! How many wealthy people have beautiful houses that don't have solar panels? Why do you think that is?

Tesla has this cool factor that didn't exist for environmentally friendly things before. How many super rich people drove electric cars or hybrids before? Now Teslas are one of the cool things to have.

They are absolutely targeting a different segment of the population, but I think overall it's a very positive thing and it'll probably work.

zensavona··on Saudi king orders that women no longer need man’s permission to travel or study
"The order made by King Salman, pictured, is the latest in a series of steps to include more women in the workforce to help diversify the country’s economy and reduce its reliance on oil"

So this tells us a couple of things:

1. If this whole oppressing women thing was ever about religion (that is their justification), they are pretty willing to forget religion when they need money.

2. That whole oil thing isn't going so great for them these days.

zensavona··on GUI Architectures (2006)
I think what this person is talking about is simplicity in the actual UI pattern, and thinking about them. The problems you mention are JavaScript problems, not UI problems.

Have you ever tried to build a UI with Qt or JUCE?

zensavona··on The Leaked Fyre Festival Pitch Deck Is Beyond Parody
"Fyre has a unique goal and inspiration: the exploration of the uncharted inspired by and referencing the five elements of the earth"

...oh

zensavona··on Show HN: An attempt to rethink a music sequencer design
I had no idea cubase has this. I sometimes use a plugin called Cthulu (link below) to achieve a similar outcome, but the workflow is nowhere near as nice.

https://www.xferrecords.com/products/cthulhu

zensavona··on Show HN: An attempt to rethink a music sequencer design
I just had a play with this. I must say, my favourite feature so far is the chord suggestion wheel (dunno if this interface has a name). A lot of the time I feel like when experimenting with chord progressions or in the beginning stages of writing a song I miss out on interesting chord combinations simply because when messing around on the piano I forget to use or try certain chords or variations. It's really nice to have this selection there (although including extended chords would be awesome!)

Also, I noticed you build it with JUCE. I'd be highly interested in a series or even very short writeup about how you made the ui and it's various components with JUCE. I haven't built anything nontrivial with it yet but audio (and as an extension, UI programming) is very interesting to me.

zensavona··on How the Internet Gave Mail-Order Brides the Power
The most interesting thing about this article for me was the caption of the photo of Leonor and her son:

> Leonor and her son Zen. Photo by Meredith Talusan.

My name is also Zen, and I've never met or heard of anyone else with this name :) That's cool.

zensavona··on Electron is flash for the desktop (2016)
...and you know what Flash did for the web when it came out?

Allowed us to watch videos, drag and drop, consume all kinds of media and have interactive applications on the web which were at the time totally unachievable with JavaScript.

Is the internet's memory so short that you've forgotten how recently we have largely switched to HTML5 video?

← PreviousPage 3 of 8Next →