nessex's comments

nessex | 5 months ago | on: Redis is fast – I'll cache in Postgres

I've got a similar setup with a k3s homelab and a bunch of small projects that need basic data storage and caching. One thing worth considering is that if someone wants to run both redis and postgres, they need to allocate enough memory for both including enough overhead that they don't suddenly OOM.

In that sense, seeing if the latency impact of postgres is tolerable is pretty reasonable. You may be able to get away with postgres putting things on disk (yes, redis can too), and only paying the overhead cost of allocating sufficient excess RAM to one pod rather than two.

But if making tradeoffs like that, for a low-traffic service in a small homelab, I do wonder if you even need a remote cache. It's always worth considering if you can just have the web server keep it's own cache in-memory or even on-disk. If using go like in the article, you'd likely only need a map and a mutex. That'd be an order of magnitude faster, and be even less to manage... Of course it's not persistent, but then neither was Redis (excl. across web server restarts).

nessex | 7 months ago | on: M8.7 earthquake in Western Pacific, tsunami warning issued

Sure, but if you insist it's like a tide you downplay the risk of the initial hit of the wavefronts and the potential for it to slam up the coast or a seawall becoming a larger local wave. And if you insist it's like a wave, you downplay the persistent risk of both follow-up waves and ongoing flooding that won't subside quickly.

So saying it's not waves is dangerous, and saying it's not a sea level rise is dangerous. It's not useful to try and delineate between a tsunami being one of the two when it's in reality an event that consists of both.

(Ignoring that a sea level rise and a long-wavelength wave are the same thing)

nessex | 7 months ago | on: M8.7 earthquake in Western Pacific, tsunami warning issued

It's a distinction without value I think. There are waves, and many of them. There is a rise in the sea level. For anywhere affected, both certainly matter. Like you mentioned, tsunami isn't a brief event. And here in Japan, they are talking about tsunami waves, not a singular tsunami. And talking about sea level rise and checking the local power poles for sea level indicators from previous tsunami events and floods.

nessex | 7 months ago | on: M8.7 earthquake in Western Pacific, tsunami warning issued

There are planes, buoys and other things being mentioned on the news here in Japan as ways things are being tracked. Maybe not what you meant, but tracking the wave isn't necessarily correct. There are many waves, and the initial wave is often (in this case also) not the largest.

The news mentioned a previous similar event where the largest wave was 4 hours later.

nessex | 7 months ago | on: M8.7 earthquake in Western Pacific, tsunami warning issued

Not true. As the news reporters here in Japan are repeating every few minutes, there will be many waves and they can get bigger over time. They already have, 20-30cm initial waves had 40-60cm later waves.

Waves can get bigger due to earthquakes not being instantaneous or necessarily a single movement, due to amplification by geography, by reflections, by aftershocks, and many other things. The news is suggesting waves lasted about a day for a previous event in a similar area.

nessex | 1 year ago | on: Apple says it will add 20k jobs, spend $500B, produce AI servers in US

If you haven't tried OpenAI's advanced voice mode, it's a mind blowing version of exactly what things like Siri really ought to become with a little more development. If that's what you mean by LLM Siri, I totally agree.

Being able to chat casually with low latency, correct yourself, switch languages mid-sentence, incorporate context throughout a back-and-forth conversation etc. turns talking to these kinds of systems from a painful chore into something that can actually add value.

nessex | 2 years ago | on: How Tokyo became an anti-car paradise

> Because there are so few of them. Most of the time you can walk in the middle of the street, so rare is the traffic

This is a bit of a stretch. There are cars everywhere you go in Tokyo, it's pretty well set up for driving given the size and population. That said, I've lived here without a license for years, and rarely had the need to hop into any cars. Speed limits are generally low, and lights are everywhere, which often makes the train or sometimes even a bike a faster option than a car or a bus.

It's only when you have multiple connections in your route or when you get well outside the city that you start to see consistent benefit from a car.

One reason it's so easy to get by without a car in most of Tokyo is that the shops and attractions are distributed well. Zoning means there are tiny shops everywhere, and the bigger shops are present at many of the train stations in the city. You are pretty much always within walking distance of everything essential. One more reason is that the postal system is excellent. If you order something from Amazon, you'll receive it about 24 hours later in most parts of Tokyo. Who needs a car when you pick up everything essential on a 10 minute walk from your house, and everything you want will be at your door tomorrow?

nessex | 2 years ago | on: How Tokyo became an anti-car paradise

I ride in Tokyo and surrounding areas often. There are bike lanes scattered around, though some places have far more than others. In general though, there is a lot of patience on the part of drivers here in the city (at least relative to Australia) that makes riding a bike on roads without a bike lane generally a fairly safe option.

Also, there are plenty of terraces to have a nice coffee on. The difficult thing in Tokyo is you need to search in advance for what you want. It's so crammed full of options, that you might never realize all the interesting things you're walking past. It's a very three-dimensional city, there's stuff hidden everywhere.

nessex | 3 years ago | on: We updated our RSA SSH host key

It's not mentioned in the blog post or keys page, but the _old_ value[1] you'll find in known_hosts is:

  github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
You can search for this in your codebases, hosts etc. to see if there are any areas that need updating. The new value is linked from the blog post, you can find it here: https://docs.github.com/en/authentication/keeping-your-accou...

[1] https://github.blog/changelog/2022-01-18-githubs-ssh-host-ke...

nessex | 4 years ago | on: I’ve had the same supper for 10 years

That's pretty much the exact philosophy I live by. I've definitely found no bed frame to be a hard-sell to family and friends, and it's hard to see why once you've tried all the options. A mattress makes a lot of sense, but a bed frame adds little value unless you are short on storage and one has storage built in, or you aren't mobile enough to get to the ground. But maybe I'm missing some utility that others have found in their bedframes!

Living in Japan now, I had a few months with a padded mat + quilt on the floor as is tradition (and a damn cheap one), but upgraded to a mattress on the floor because the floor was too cold in winter as you mentioned.

There's as much to be gained from taking stuff away that isn't useful, as there is from adding useful stuff to your life.

nessex | 4 years ago | on: I’ve had the same supper for 10 years

Sorry if you saw my original comment, I misread this as a dismissal through exaggeration, but after double checking my comprehension I realise I was both wrong and missing the fact that I can relate to most of this. I've tried many of the things you mention, and while I don't do all of those things still, many of them do make my life easier and more stress free. It's interesting how many of the things I've just stopped thinking about as I tried them and subsequently rid my conscious mind of other more time consuming or stressful options.

There are so many better things to spend time on than the mundane parts of life.

nessex | 4 years ago | on: I’ve had the same supper for 10 years

Yeah absolutely, that's kind of what I'm talking about. Though even then, managing different contract durations across many different companies for many different bills each month is annoying, and there are companies that can do that part for you as well. Haven't ever tried it, nor checked the cost, but it sounds like something that might be beneficial to not worry about. They can send me a summary each month to make sure I'm not spending too much.

The index fund investing with scheduled transfers is exactly what I meant by automated financial services. I probably micro-manage it a little too much right now for no real benefit.

nessex | 4 years ago | on: I’ve had the same supper for 10 years

I've found a lot of freedom in similar decisions. Not sure I could take it to the same level, but even just having a small set of meals to eat every week makes shopping, cooking and planning around expiry dates so much easier. Clothes can be similarly hacked such that everything goes together and every combination is something you are comfortable wearing, leaving you never needing to consider what to wear. I've optimised these to the point that they take up nearly zero mental space and generate no stress. In my case, I use pre-prepared frozen meal delivery service, but I know some meal preppers who find similar freedom that way. Don't cook or order anything you won't eat at any arbitrary time, and you'll never be stuck with wasted food or indecision. And for clothes I found a small set that works for me and can be worn in any given situation (except formal, though that doesn't impact me in any way).

I see a lot of comments that seem to see all the things you miss out on in this situation. But in my mind, it frees up a lot of mental effort, time and stress. If I ever get bored I can go to a restaurant and eat something wild and it will be all the more exciting given I don't optimize for excitement or luxury in my everyday steady-state.

When Soylent came out I was super excited about this idea. Don't think about three meals a day that you normally fuss over, and instead have two predictable, quick meals and optimize to make the third one amazing. Soylent was OK, and DIY soylent offered some hope too. The third meal WAS always amazing, in a relative sense, and tasted better somehow than when I had the same thing before this diet. Unfortunately liquid diets are just not satisfying to me and so frozen meals won out.

I'd love to find other areas of my life that can be similarly optimized. I have hope for bill management services to take the annoyance out of juggling payments etc., and roboinvestors or similar automated financial services. Doing these things manually offers no excitement and no added value beyond the transitively provided service so I don't think they should take up my life.

The amount of time wasted across the whole human population on things like preparing meals, choosing outfits and managing everyday responsibilities must be huge and that is all time that could be spent doing other exciting or valuable things.

nessex | 4 years ago | on: Dave Herman’s contributions to Rust

Possibly, when working with big codebases I'm typically working on Kubernetes controllers in both Golang and Rust. That makes for extra slow golang compiles, and the rust incremental compiles are significantly quicker in comparison. Otherwise the codebases tend to be quite small, and for those golang full compiles (the only option?) and rust incremental compiles are similarly nearly instant.

It is absolutely apples to oranges, but if you just care about the everyday local workflow and ability to iterate and test, it's close enough most of the time to not be much of a problem in either case.

I'm sure this experience isn't guaranteed for all codebases, and it certainly helps that I make heavy use of crates, which would minimize the work required during incremental compilation. Though I'm not actively going out of my way to optimize for incremental compilation really, beyond the config linked above.

nessex | 4 years ago | on: Dave Herman’s contributions to Rust

When I use rust, I find compile times faster and more manageable than other languages due to the speed of iterative compiles. Compiling from scratch is very slow, but iterative compiles are faster than most of my golang compiles and faster than running a JS builder in most projects. To make it extra fast, I follow the instructions from the bevy game engine[1]. With that setup, the feedback loop is quick.

[1] https://bevyengine.org/learn/book/getting-started/setup/#ena...

nessex | 4 years ago | on: Fines up to $66k or five years prison for Australians returning home from India

As an Australian citizen, I have plenty of sympathy for those who have dual/multiple citizenship. They've been treated particularly harshly by both the federal government and their fellow Australian citizens. Some notes:

- There is an income test for permanent residency, which is required for most pathways to citizenship. Apart from family-stream visas which require a direct relationship with an Australian citizen, most visas eligible for permanent residency are work-related and you won't get one of those without an income test[1].

- There is an employment test, as above

- There is a language test, see the section on Language Ability[2], this has been a significant bottleneck for personal friends who speak English perfectly well

- Student visas don't make you eligible for permanent residency, let alone citizenship[2]

- Australia's community values explicitly state that dual/multiple citizenship doesn't exempt you from being Australian[3]

- Australia's pathways to citizenship (via PR, work visa etc.) are some of the most expensive and time-consuming in the world

[1] https://immi.homeaffairs.gov.au/visas/permanent-resident/vis...

[2] https://immi.homeaffairs.gov.au/citizenship/become-a-citizen...

[3] https://immi.homeaffairs.gov.au/citizenship-subsite/Pages/Le...

page 1