HNHacker News
TopNewBestAskShowJobs

notinventedhear

198 karma · joined July 10, 2015

https://boddy.im
submissionscomments
notinventedhear··on Show HN: I3wm Alt+Tab Workspace Switcher
One nice quality of life improvement for i3 is update the window names dynamically and use emojis for applications

https://github.com/cboddy/i3-workspace-names-daemon

notinventedhear··on Launch HN: Heimdal (YC S21) – Carbon neutral cement
Congrats on the launch!

Just curious if you're interested in an incubator? We went through the Oxford Foundry[1] last year and would highly recommend it.

[1]https://www.oxfordfoundry.ox.ac.uk/

notinventedhear··on “Hello, World” in zero lines of code
> '''"""''';print("Hello, World!");"""'''"""

This is still one line of code.

It is a valid python program . This is because python will join strings that are adjacent strings (eg. "foo " "bar" is evaulated just like "foo bar") and while multiline strings are commonly used as comments they are evaluated as a string-literal rather than a comment.

notinventedhear··on Show HN: Song and Spell – play audio on a Raspberry-PI 400 without a screen
Also super bored in lockdown so I made this for our toddler, motivation here:

https://boddy.im/song-and-spell.html

notinventedhear··on Ask HN: What programming skills are required by HFT or Trading firms
From 4 years in a large public quant house (not HFT): everything upstream of trade execution is Python with very heavy use of numpy, scipy and pandas. This has pros and cons, on balance I'd prefer a better type system, but that everyone in the org can share code has tremendous value at scale.

Briefly, the faster your execution the faster everything else needs to be. Java should be fast enough for almost anything short of HFT + colocation which is super expensive infra wise.

The skills are not different from other backend roles, but you will need to exercise more math with emphasis time series and stats.

notinventedhear··on Rocket League left behind on macOS and Linux due to DirectX 11 shift
I was _so_ excited when Rocket League first came to Linux, but that was several years before Proton[1] was released.

But according to [2] the game runs really well on Linux via Proton. Personally, I don't see any problem using Proton to play the game on my Linux gaming-rig.

[1]: https://github.com/ValveSoftware/Proton

[2]: https://www.protondb.com/app/252950

notinventedhear··on Ask HN: What do you self-host?
# 2GB linode instance ($10/month)

  nginx
  mailinabox (email, nextcloud)
  gogs
  6 static websites
  3 (dumb) little personal web-projects
  selfoss
  mumble
  openvpn
# rpi-3 at home

  osmc (kodi) + 8TB of raided HDDs
  nginx
  chorus-2 in kodi publicly available (behind htpasswd) updated w/ dynamic DNS
  a nightly cron job rsyncs the from the linode instance
# another rpi-3 in garden shed

  8TB of raided HDDs
  nightly cron of the other rpi-3
notinventedhear··on Building a distributed time-series database on PostgreSQL
TimescaleDB looks really very promising but this is a red flag:

"Hypertables support all standard PostgreSQL constraint types, with the exception of foreign key constraints on other tables that reference values in a hypertable"[1]

Naively I'd assume this could cause a two-colouring of your schema - the partition that can use referential integrity and another with hypertables that doesn't which feels like a pretty big trade-off.

[1] https://docs.timescale.com/latest/using-timescaledb/schema-m...

notinventedhear··on Aerc – An email client that runs in the terminal
Very excited by the prospect of a modern terminal-mail client that is easier to use!

After following the README: this is clearly not ready/designed for wide consumption - the recipe neglects to mention how to install a custom doc-tool called scdoc (by the same author?) that is required to build it - and there are no pre-built binaries (that I can see).

notinventedhear··on SanDisk 1-terabyte microSD card is now available
I see the same from London.
notinventedhear··on New Oracle Database Command Line Interface from ManQuantTech
Yes that's true, rlwrap gives you command history on top of sqlplus which makes it much more usable.

Actually, okcli started off as rlwrap with a complicated login file that queried the schema. But if you do that you can't use add a lexer for context-aware auto-complete which was one of the main goals, hence a new cli-tool using cx-oracle which gives way more control.

disclaimer: I'm the author.

notinventedhear··on Ask HN: Best place to start learning about Markov Chains?
For a broad introduction to Bayesian analysis, MCMC and PyMC I'd suggest Bayesian Methods for Hackers[1]

[1] http://camdavidsonpilon.github.io/Probabilistic-Programming-...

notinventedhear··on Show HN: Grep with colours written in Go
+1 for NO_COLOR.

For example, yellow text on a dull yellow background? No thanks.

For years I've just wrapped commands on bash to strip the colour control-codes from stdout.

function monochrome() { "$@" | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" }

notinventedhear··on How to Run Your Own Mail Server (2017)
Yeesh, there's so much involved.

I've been running my own mail server with https://mailinabox.email for ~2 years and can heartily recommend it.

Still, even with that there are gotchas if you want to be able to send messages from your server to Google et al, eg. reverse-DNS-records, DKIM, SPF.

Not for the pressed-for-time.

notinventedhear··on A minimalist guide to tmux
Probably since ctrl-a is a well-loved bash shortcut for goto start-of-line.
notinventedhear··on Using a logbook to improve your programming
I've found keeping a software-engineering logbook very useful at work.

Recommend the vim-wiki plugin for this https://github.com/vimwiki/vimwiki; in any vim-window the logbook for today is accessible via [leader-W-leader-W].

notinventedhear··on Browse Hacker News Like a Haxor
Very cool, but why not use lynx?
notinventedhear··on Netdata – Linux performance monitoring, done right
This looks really useful, although it doesn't seem to have a dashboard for showing the aggregated results from multiple running daemons.
notinventedhear··on [dead]
https://www.duckdns.org/

Duckdns took about 10 minutes to get an access token and setup a cron-job on my raspberry-pi. After ~ 12 months it's worked without issue.

Also, FWIW British Telecom only seem to update my IP when my router is power-cycled.

notinventedhear··on Ask HN: What stack would you use to build a CRUD web app on the JVM today?
Also agree with the combination of Play + Scala for flexibility and ease of use.
notinventedhear··on Ask HN: Share your favourite bash/zsh aliases
My best time-savers:

alias ff="find . -iname"

alias size="du -h --max-depth=1"

alias latest="ls -lt |head"

alias orly='sudo $(history -p \!\!)'