HNHacker News
TopNewBestAskShowJobs

haar

247 karma · joined April 28, 2011

my public key: https://keybase.io/tallguyrob; my proof: https://keybase.io/tallguyrob/sigs/V1A0pwjNjpE89r9EETpOc8Pov0rf3EcjgJ6ASyo-TbY
submissionscomments
haar··on Factorio and Software Engineering
Smelting on site and shipping plates doubles your train volume as you can stack 100 plates per slot vs 50 raw material.

Can make your train routes/efficiencies easier to manage.

haar··on Ask HN: Software for producing terminal-based tutorials?
If you're wanting to combine that with e.g. asciinema - you can front-load a shell script via `asciinema rec -t "Some Presentation" -c ./presentation.sh`
haar··on Ask HN: Software for producing terminal-based tutorials?
I've given some live showcasing/presentations with the help of https://github.com/paxtonhare/demo-magic to smooth over parts that are either time consuming, or not error-proof (e.g. networking and such). It might be useful here as well?
haar··on Show HN: Goyave – Golang Web Framework
Definitely agree that YAML is not a silver bullet. One thing that I’ve found to improve my YAML editing experience is to use a YAML language server [1] backed by JSON schemas. It provides a real time feedback cycle rather than handing the file off to another program to choke cryptically.

[1] https://github.com/redhat-developer/vscode-yaml/blob/master/...

haar··on Turbo, an Improved Rainbow Colormap for Visualization
https://observablehq.com/@mbostock/turbo
haar··on Functional exceptionless error-handling with optional and expected
We've been using this style a lot in Elixir via the `with` macro

    def get_cute_cat(image_id) do
      with {:ok, cropped}       <- find_cat(image_id),
           {:ok, with_tie}      <- add_bowtie(cropped),
           {:ok, with_sparkles} <- make_eyes_sparkle(with_tie)
      do
        with_sparkles 
        |> make_smaller() 
        |> add_rainbow()
      end
    end
If any of the values on the rhs of a `<-` cannot be pattern matched, it returns up the returned value. This value can be pattern matched easily inside an `else` clause underneath the main block. The use of the `:ok,` vs `:error,` tuple convention allows multiple values to be destructured and passed around if needed (rather than an optional type).

If you find the code getting unwieldily, as runeks said you can break it down into simpler constructs.

haar··on FZF and RipGrep – Navigate with bash faster than ever before
I’ve been enjoying autojump [1], it automagically creates bookmarks and prioritises them based on frequency of visiting said folders.

[1] https://github.com/wting/autojump

haar··on How To Use 23andMe Irresponsibly (2014)
I'd assume it's to prevent your friend from being able to know that the extra kit was yours? Though if all your friends use their correct information - that information is still leaked, hence the need to distribute them to friends outside of the same social circle to minimise the chances.
haar··on Show HN: Gutenberg – Modern CSS framework to print the web correctly
PhantomJS supports it too (either through `html-pdf` or manually).
haar··on How we built a back end system for Uber-like maps with animated cars
As you're using public transport might it be worth storing and using basic historical trends to bridge the gaps in data?
haar··on How banks are getting around open banking and PSD2
That's one of my favourite aspects of Monzo - and it's only getting better with the more features theyre adding.
haar··on Super Bowl Delivers Thrills, but No Ratings Record
I can't tell which of the sports you're referring to.
haar··on Using tmux properly
I now use https://github.com/junegunn/vim-plug - you can setup a one-liner in your Vimrc to download and set it up, then :PlugInstall and you're done (similar to what they have in the readme but I linked to a specific hash on GitHub instead of master).

I also keep a separate file that lists the plugins to install and the source that from my main .vimrc. A lot of my coworkers have wanted my main vimrc for an "out of the box setup" of Vim and found it best for them to specify their own plugins rather than just blindly use mine - it also makes it easier for them to grab the latest copy without any conflicts.

haar··on Show HN: Angular 2 HN – A progressive Hacker News client that works offline
I use the HackerNew Chrome extension to improve the site UI/UX: https://chrome.google.com/webstore/detail/hackernew/lgoghlnd...

The source can be found here: https://github.com/tommoor/HackerNew

It always confuses me now when I open the site on another persons machine.

haar··on Finland will hand out cash to 2000 jobless people to test universal basic income
Oh, for sure. I think that is one of the most frustrating things about it. Those who receive e.g. disability benefits but _want_ to contribute are penalised for their efforts whilst simultaneously they can see those who don't contribute and simply play the system.
haar··on Finland will hand out cash to 2000 jobless people to test universal basic income
Unfortunately it's quite common due to the layered nature of unemployment benefits in the UK to be far better off on benefits than to go into work. I know several people who work the bare minimum to qualify for all their benefits then proceed to claim them for as long as possible. One example being if you have several children, working can easily reduce your child-tax credits by an amount greater than your employment income.

The counter-argument of course is that you shouldn't have children if you can't afford to raise them, but the disincentives are there, and as crazy as it sounds people are incentivised to have a lot of children as a method of escaping work.

(Optional sad Futurama parody being: https://en.wikipedia.org/wiki/The_Cyber_House_Rules)

It should never be more beneficial for someone to sit at home than to go out and earn a living.

haar··on Microsoft: more people are switching from Macs to Surface than ever before
Why did you get a 13" when they have no dedicated graphics card? Assuming you have the best on-board graphics for the 13" MBP it isn't much better than the minimum requirements for Civ 6: http://gpu.userbenchmark.com/Compare/Intel-Iris-550-Mobile-S...
haar··on Chrome 55 uses 30% less memory than 54
Just to be a pedant, that's not what was stated: "As a workaround, you can use your zip code instead.".

Your assumption is that zip code == "U.S zip code" which is a fair assumption if the site only supports the U.S. Other comments on the thread shows the site does support locations outside of the U.S. It is therefore also a fair assumption that it _might_ support similar functionality outside the U.S., kuschku simply tested said assumption and stated that it was incorrect so that other readers were aware.

haar··on Ask HN: What are the best personal project websites you've seen?
http://worrydream.com was a horrible experience for me. Between the extremely slow scroll-hijacking and disabling of my vim-based scroll events it was a nightmare to try to navigate and I gave up without actually viewing any of the projects. Even using my colleagues hyper scroll wheel gave us a brief chuckle before quitting the page entirely.
haar··on Dutch men confirmed as world's tallest
I'm 6'8 and my girlfriend is 5'2. Usually I find our arguments to be the opposite way round in that "you have it better", e.g. My girlfriend needs a stool to reach the top shelf of the cupboards, but I have to time my steps as to not hit my head on door frames.

I think the worst one was learning to drive and then the many frustrating trips trying to find a car I could fit in.

haar··on CryEngine out on GitHub
Crystal has a Flag attribute for enums (Flag enums):

http://crystal-lang.org/docs/syntax_and_semantics/enum.html

haar··on Labella.js – placing labels on a timeline without overlap
Are you sure that wasn't the algorithm making it's multiple passovers to better position the labels? Under the default settings and 200 labels it takes a while to finish positioning the labels. Try changing the Max. Round and Algorithm values to 1 and see if it still flickers/moves as you experienced before.
haar··on Retro Game Internals: Punch-Out Passwords
Odd progression, even progression.
haar··on Focus – Steal back your productivity
I've found the easiest way to focus is to 'trick' my mind into thinking it'll only be working for 25 minutes.

I use the Pomodoro app[0] (and I love the metronome) with the original intent that at least this way I will be doing some work, even if it's 25-on, 5-off. What I usually find is that after I get in the groove for 25 minutes, I'm far enough into a problem that I want to work through it - and work away as I'd originally hoped I could.

[0]: https://itunes.apple.com/gb/app/pomodoroapp-simple-pomodoro/...

haar··on Why a Dead Alkaline Battery Bounces [video]
I think one of the bits I liked most was "Romeo (Retired Old Men Eating Out) Club" - looking at its website it seems like quite a large thing over there. I know that my Grandma goes to something similar (restricted to just tea and bingo), but it makes me wonder if a similar organisation exists in the UK; a lot of the older folk I know just aren't very social any more, simply due to the fact that their social groups have died off or are spread out and have restricted travel options. Social interaction seems such a huge part of our existence to be missing for any individual (unless that's what they want of course).

Again, anecdotally; I've found amongst the older folks that those engaged in discussion and interaction keep their wits about them longer/easier than those bound by isolation.

Anyway, enough babbling on - time to go do some research.

haar··on Show HN: We just released + open sourced our internal time tracking app Hours
He grants the rights to go commercial with their code, but reserves the right to call us names for doing so. Still sounds like a good deal to me.
haar··on Go Continuous Delivery is now open source
I'd used Go (continuous delivery) at University before I'd heard about Go(lang). Yes, whilst in the perfect world everything would be named a short, memorable, unqiue (,descriptive?) name - that's not the case. The two items in question are distinct enough that searching for golang vs go cd will produce relevant results.
haar··on Rails 4.1.0 released
There's a typo in your README, I think the last exception mentioned should be MissingSettingException rather than MissingGroupException.
haar··on Make Flappy Box – DIY Game Kit
My younger brothers all do a lot better at the game than me (and everyone you know), the top two scores between two of them are 41 and 26.
haar··on Framework 7 – Building native iOS apps in HTML5
Was anyone else disappointed when they opened it on their iPhone and it rendered the same page?
← PreviousPage 2 of 3Next →