HNHacker News
TopNewBestAskShowJobs

tiew9Vii

1,644 karma · joined January 6, 2019

submissionscomments
tiew9Vii··on Best Buy will stop selling DVDs and Blu-rays after the 2023 holiday season
They already are.

Disney has stopped selling physical media in Australia and New Zealand. https://cordcuttersnews.com/disney-stops-selling-blu-ray-and...

Give it another decade and the only way to get content will be digital rental, no real ownership as the content can be yanked at anytime by the provider.

tiew9Vii··on Booking.com makes a fortune – so why is it leaving its bills to hotels unpaid?
For me booking.com has always been cheaper than booking directly with hotels.

I do a lot of motorcycle travelling without a plan. I often do not know where I’ll be at the end of the day, just a general direction.

Late afternoon when I have a better idea where I’ll end up before it goes dark I’ll look at booking.com, find some hotels/motels that match my criteria and head to them without booking.

Countless times I’ve turned up and said “I found you on booking.com and it says you have vacancies, I want a room” only to be given a price higher than booking.com. Some reluctantly negotiate down to match it, some look confused how booking com can offer the price they are while I book through booking.com at the hotel desk as the hotel won’t match the price booking.com are charging.

tiew9Vii··on That's a Lot of YAML
If you deal with the platform side of things with the popular products your life is YAML.

Kubernetes definitions, Helm, Ansible, a lot of popular CI tools use it.

tiew9Vii··on Update on KDP Title Creation Limits
It’s the same across all big tech. The size/volume for complaint handling doesn’t scale. It’s either filtered out by some machine learning algorithm or some poor person in a 3rd world country getting paid next to nothing who reviews the complaints so quality isn’t of importance.

There been a recent influx of scammers on Facebook local groups. Air con cleaning, car valeting, everyone’s calling out the scammers in the comments yet when you click report to FB the response is we have reviewed the post and it has not breached our guidelines, would you like to block the user.

tiew9Vii··on Ask HN: How to do literal web searches after Google destroyed the “ ” feature?
A HN comment recently recommended Yandex describing it as what Google search used to be.

After seeing the post and trying Yandex it was absolutely right, it’s what Google search used to be.

Now whenever I use Google and it’s just a list of ecommerce adds or content farms duplicating the same content without substance, I head to Yandex and get the type of results I used to get from Google.

tiew9Vii··on Skip the API, ship your database
It depends who your clients are. If clients are public/external users, probably not.

If clients are internal services you own and you control as part of a internal distributed service, it’s a nice pattern

tiew9Vii··on Skip the API, ship your database
This looks interesting for read heavy distributed apps. I.E fly.io/aws lambdas/k8s.

Each instance gets its own eventually consistent read only copy of the db. So instead of making a network request to go get some data, you query your local cache.

Your use case is that you are read heavy for this to fit your needs.

If you have a copy of the data local to you, you don’t need to go bug another team to expose it via an API.

Reading fly’s blogposts it’d be good to see more on write durability. They’re batched on the client, batched on fly’s side before being compacted to s3 from reading so you can loose writes before your client as sent them to fly, possibly loose them before fly has written to s3 depending on how they implemented.

FlyCloud might make a great service for small typical Wordpress type sites or low user services where writes are low. It’s a shame they don’t offer pay as you go for the LiteFS product only. I get why they don’t as they want you to host with them but it’d be great if you could pay as you go on the db only.

I currently use DynamoDB for low volume stuff for cost reasons, it costs me cents. Productivity is extremely low though with Dynamo as you need to think very hard about table design and constraints and work around those constraints. It’s a lot more effort than using something like SQLLite for quick simple stuff.

tiew9Vii··on “Ansible for DevOps” eBook by Jeff Geerling Is Now Free
I see Ansible as a glorified task runner and every time I’ve used it, never get the same results twice. Idempotency is by convention only and if a single step fails it can be hard to recover.

Nix has its warts however I think what Nix tries to achieve is what most people want on bare metal instead of Ansible. Declarative, you describe the end state then nix makes it happen. Exactly the same as Terraform.

It’s been a very long time since I’ve used Chief/Puppet but found them much better than Ansible also. The thing is any professional job I do now, every one uses Ansible as much as I dislike programming in YAML.

tiew9Vii··on Zero Motorcycles makes its service manuals free
The R6 is an inline 4, 15500rpm red line, 68nm of torque. Fun bike, on a track or doing illegal speeds on the road. Rest of the time, it has no power.

The Enigica has 215nm of torque, about twice the 2022 R1.

The R6, the power is all up top, it’s gutless down low, you have to be up near the top in the rev range for it to go, engine screaming away. You’d also need to be pretty skilled at launching to get that 2.8s acceleration from it.

The Enigica you get all the torque from the get go, so much they have to limit it at the start. You just twist and it pulls from the off, no flat spots, it just keeps on pulling. It’s the torque that gives you the buzz, trying to hang on.

They are very different power deliveries and the Enigica makes a far better road bike (power wise) with all the torque rather than a high reving 600 il4 that you need to be near red line to get the most out of it. Even a 1000cc il4 with more torque, they don’t really get going until above 6,000rpm then your license is gone as you click in to second gear when making the most of the power band.

The Yamaha MT-09’s/10’a are so popular as they have high torque down low where it’s most practical for everyday riding.

tiew9Vii··on Zero Motorcycles makes its service manuals free
If you ignore emissions on the environmental pros/cons and if you believe them or not…

As a riding experience, electric power delivery, the instant torque and performance will make the riding experience more fun. As a pure riding experience electric is probably far better than combustion engines, and I love my ice powered bikes, the noise, the different engine characteristics, singles, boxers, il4, v4, vtwins etc as much as anyone else.

Practicality, range, weight is different and we’re probably a long time off comparable practicality of mid to large capacity size motorcycles.

tiew9Vii··on Zero Motorcycles makes its service manuals free
I can’t comment on reliability, don’t own one.

Enigica look to be following typical Italian exotica. It’s a premium/performance motorcycle with premium parts, breaks, suspension, handling etc.

Zero seem more middle of the road. Not designed to be exotica, not designed with premium breaks, suspension, not designed for all out performance/handling, it’s a general purpose motorcycle designed for urban environments.

I think Enigica and Zero are trying to target different segments and Enigica is targeting a segment above Zero. The sportier side.

tiew9Vii··on Kafka is dead, long live Kafka
Flushing every 100ms means you would end up with lots of tiny files (bytes) in s3 unless you have something out of process re-writing them in to larger blobs similar to Delta lakes optomize?

The lots of tiny files would be really inefficient from throughput and api call perspective in blob storage.

With the acks, you have up to 100ms waiting for the buffer to fill, + s3 put request + your metadata request/response. For high throughput that must have very high latency putting back pressure on partitions?

tiew9Vii··on Kafka is dead, long live Kafka
Kafka the Apache open source project is kind of dead/legacy for Confluent.

Confluent re-wrote the backend of Kafka for their SASS product and use the public Kafka wire protocol for public integration https://www.confluent.io/blog/cloud-native-data-streaming-ka... .

I don’t think the Apache Kafka distribution is going away, Confluent will still have paying customers with support contracts wanting features and the protocol will likely still need to evolve but the open source version will likely be a burden on Confluent with their own private implementation so it’ll be interesting to see how things look in a few years.

https://www.confluent.io/blog/cloud-native-data-streaming-ka...

tiew9Vii··on Efficient data transfer through zero copy
I think this is way overstated.

A better description is Apache Kafka utilises zero copy if you do not use SSL/TLS. Almost every Kafka cluster I’ve set up, SSL/TLS has been an absolute requirement to tick the uses SSL checkbox for security sing-off.

It’s been a good while since I used Kafka but I wouldn’t describe it as generally performant. Again it’s one of those, in specific use cases/setups it can be performant. The throughput/latency decreased as the sum of partitions grew. As the level of parallelism is on the partition you can notice this quickly with a fairly low number of topics. I know they where working on partition scaling so not sure how that looks today.

Interestingly Confluent releases a blog post last week saying their cloud product is now no longer Kafka, it’s something entirely different speaking the Kafka protocol. I suspect this is because of partition scaling/multi tenant clusters amongst other things.

tiew9Vii··on Virtualizing development environments in 2023
Docker is cattle, LXC is pets.

Docker packages applications, and should only really have one app inside it. LXC is similar to a vm in it presents itself as a stand-alone machine but uses the host kernel, it’s not like a vm in it’s not as isolated as sharing the host kernel.

So with LXC I agree, managing it is like being a sysadmin as that’s what it’s designed to be.

I use Docker for things that are stateless, maybe throw away, or just test an app quickly. I use LXC for things I want to run multiple services inside, more statefull, typically where people plumb a bunch of Docker images together in I’ll use LXC. The advantage in Proxmox is I tell Proxmos to backup my LXC nightly as it’s treated similar to a VM.

For making LXC feel less like needing to be a sysadmin, you can use Nix to build your LXC images and import in to Proxmox. Your LXC container becomes declarative and not to dissimilar to using a Dockerfile, it’s a far more powerful Dockerfile. What I’ve done is create a bare minimal NixOS LXC with some basic config and use that as a template then edit ‘/etc/nixos/configuration.nix’ inside the LXC on first boot. However as it’s just nixos you can build push the config remotely, use NixOps etc.

It’s a really good workflow using NixOS with LXC however it took me a while to get it as the docs are a bit thin and an old+new version of docs with the new version skipping things mentioned in the old you need to do, I.e change the tty to /dev/console to get a shell inside proxmox console.

tiew9Vii··on Treat your CI system as a product for faster and better feedback
Passing a dependency or lambda as a function argument is dependency injection. What is different is the implementation. There's lots of dependency injection in pure functional programs it just doesn't look like how a typical Java project does it.

I've grown to dislike Spring DI, Google's Guice and friends. You can use basic constructor injection and wire it up in your main method with zero dependencies or framework and it ends up simpler, easier to reason about. Java has also had Lambda's for a long time now so sometimes all you need to do is pass in a Lambda.

tiew9Vii··on Byron Bay data breach victim told to pay Adidas, NBA $1.2M by US courts
She’s under no obligation to pay but I do wonder if she ever decides to take a trip to the US if she will be escorted away from the airport under police escort on landing. That’s a big worry if I was in her shoes.

The next big data breach in Australia will be from the wave or realestate rental “startups”, it’s only a matter of time.

The sites are badly designed which doesn’t give much faith in security. Also the largest being a Murdoch subsidiary which I guess the data conveniently has huge money value for ad targeting…

The online rental application companies collect (require) more data than any paper rental application form, credit card/bank/mortgage application, or visa application. It’s also unregulated! They’ve positioned themselves so a large number of rental applications have to go through them to apply. The amount of detailed sensitive pii data they hold has to be huge. It’s a treasure trove for any hacker and an easier target than a bank or insurance company.

tiew9Vii··on ASUS to manufacture and sell Intel’s NUC products
I have the latest Gen 13 I5. It was an impulse buy as was on offer at a good price.

I installed a 1TB Solodigm P44 NVME drive, 32GB memory.

OS wise I installed Proxmox. Install was a pain but that’s because I wanted LUKS encryption. I had to install Debian first, setup LUKS, then setup Dropbear ssh so I can ssh in to it at boot for the password. Once that was out the way I followed Proxmox’s instructions on migrating Debian to Proxmox which is a case of adding the Proxmox apt repos and installing. A vanilla Proxmox install is minutes, but then it’s unencrypted data which is a pain when selling drives.

I have a small vm with WireGuard + rarr suite of apps, then a bunch of lxc containers, jellyfin etc. It’s mostly idling away and silent but the fan kicks in pretty quickly if doing anything moderate cpu wise. The fan is loud when it starts.

I am happy with the purchase as it uses little power and it’s mostly silent for me. If it wasn’t an impulse buy based on the price a better option might of been the Aliexpress fanless N300 boxes at the low cpu end, or a one litre mini pc such as a eBay used HP Elite Mini G9 as they have better cooling so quieter.

You can add 10gb to the hp, dual NVMe, and 2.5 sata drive. A mini powerhouse https://www.servethehome.com/perfect-project-tinyminimicro-p...

tiew9Vii··on Byte Fanless Mini PC – Built for Linux
They make good low powered virtualization machines (proxmox)/firewalls (opensense etc)/linux desktops. Network doesn't seem great on this though, most of the Aliexpress N200 boxes support 2.5G and fanless.
tiew9Vii··on OPNsense: Open-source security platform
Look at the CWWK n100 mini pc’s https://cwwk.net/collections/frontpage/products/intel-12th-g... .

A big thread on serve the home https://forums.servethehome.com/index.php?threads/cwwk-topto...

Alternatively the Protectli’s https://protectli.com/vault-4-port/ . Protectli gets you support and coreboot, next day Amazon shipping but more expensive and older hardware.

These are great devices for running Opensense bare metal or virtualised in Proxmox. I use Proxmox on a protectli so can run unifi controller and ad guard home in lxc containers with Opensense in a VM. I’d buy a cwwk if buying again, I just didn’t know about them at the time.

tiew9Vii··on When are containers or serverless a red flag?
Python is a good example.

You have several teams, each working on their own Python app. Each app is in various maturity levels, some are old in maintenance mode, some are new using the latest libraries.

These teams or other teams also have other languages they deploy outside of Python.

I'm familiar with Python but far from an expert. I think outside of Docker you would need to use Virtual env and maybe publish to a pip repo or package an an RPM/Deb. You'd have to roll your own build/deployment scripts. Alternatively you'd have ansible scripts or similar, maybe packer to build a vm or something. Multi tenant Python install's are bit of a pain which is why I think you'd need virtual env.

If you do use pip that will not work for teams who do not use Python so you'd have a second set of special build scripts and another way to distribute the app.

So in that scenario you have multiple different deployment mechanisms, a bunch of custom scripts etc.

Using a container would give you a common deployment mechanism across all languages. In your scenario though you should absolutely be a fascist greybeard and say "You must use our companies blessed base image before we will deploy your app". Then when a security update comes out you update the base image and send an email out saying "we see your app is using base image v0.0.0, we have released a new image with patched security vulnerability xyz, please update your application to use it by YYYY-MM-DD"

Nix wouldn't be to bad an alternative for a container but it has a few rough edges and getting everyone to build the nix way can be a big ask. Nix would solve the dependency + distribution issue with it's binary cache.

tiew9Vii··on When are containers or serverless a red flag?
I find the actual deployment with cloudfunctions easy as you say.

The complexity is the orchestration, the architecture, the hard vendor limitations, having to deal with being a distributed system.

Having a FAAS service makes the deployment easy but development wise a traditional monolith deployed on static servers can be far simpler to deal with.

I use FAAS (Lambda's /cloudflare functions) a lot for pet projects as it costs me fractions of a cent to host. The architecture is quite complex being distributed, dealing with restrictions, eventual concurrency etc etc. I find it enjoyable making things work in these systems basically for free but if these projects where a business with paying customers, alot of the stuff I'd drop from FAAS and deploy on static VPS servers as architecture is so much easier meaning I'm much more productive. With paying customers I can take the additional cost of a few VPS's or dedicated hosts such as Hetzner. The FAAS wouldn't outweigh the productivity gains.

tiew9Vii··on When are containers or serverless a red flag?
That's the thing.

All containers are, are a standardized way to ship (distribute) your artifact (application) with it's dependencies inside it. It's a tar archive with a manifest file. I find it easier to think of them as RPM/deb files. You get an artifact repository for free and benefits of the onion file system to reduce size.

People package entire OS distributions in their container, I consider that an anti pattern. Unless you are shipping static HTML your container shouldn't have NGINX or any other stuff in their, especially if you are running NGINX in front of your container anyway.

If your app is written in Go/Rust/C, anything that produces a static executable, the only thing in the container should be the static executable... i.e. 'FROM scratch', 'cp my-app /bin/my-app`, 'ENTRYPOINT /bin/my-app'.

If you use Java, Node, Python, anything that needs a runtime you can use NIX to build a container with only the dependencies needed to run those, nothing else. If you don't like NIX there's other ways to do it although I'm not familiar with them personally.

All the security issues with containers comes from the junk rather than just your application and only the dependencies needed for that app. If a system library is not in your container you don't need to worry about patching it.

Containers I find are always a good idea, it's a standard way to package/distribute.

How you run those containers, that's another matter with Kubernetes becoming the de-facto because it's Kuberenetes and everyone else is using it. You don't need Kubernetes to run a container, especially if it is just one or a handful of containers.

tiew9Vii··on Did Reddit just destroy mobile browser access?
It's interesting everything trying to be TikTok. As a user, if I wanted TikTok i'd use TikTok. I don't want TikTok, so I don't use TikTok.

I use Facebook mainly for hobby/owners groups these days as that's where a lot of them are. I sometimes use the market place. My feed is mainly my interests, motorbikes, local events, local cafes/restaurants etc etc. Then there's reels i never interact with which get forced on me every other week after clicking hide. The Reels are all short thumbnails of young girls of questionable age wearing little clothing in provocative poses/dances! They don't fit my usual browsing habbits, I don't interact with them but they force them on me as likely they'll gain lots of clicks from mid-thirty year old male demographic! I'm no prude but I don't want to see what look like children in my feed. We know why they do it though, they all likely get high clicks.

Youtube is the same except content more relevant to me feed. I use Youtube for longer form videos, travel, motor vehicles, tech. They still insist on forcing shorts in my feed. Mobile has got particularly bad as they mix shorts in the feed timeline as regular videos. AndroidTV Youbtube isn't so bad but they are slowly promoting shorts there to.

Not shorts but similar is I used Spotify for many years then it started forcing Podcasts on me as Podcasts where the hot thing. On my homepage where I had music which was relevant to me I had to hunt around to find my music as my homepage was full of podcasts I had no interest in so eventually cancelled my membership.

It's sad when every tech company tries to replicate another companies features ditching the very thing which their users originally joined them for.

tiew9Vii··on The Future of Consumer SBCs: Has the Pi Bubble Burst? [video]
I’ve gone down bit of a rabbit hole the past week looking at low power x86 boxes.

I woke up last Saturday morning with my home router, a PC Engines APU2 that had been fault free for the past four years not booting making a clicking noise. In the end it turned out to be a fault with the powers supply but I didn’t know that at the time and needed internet so purchased a Protectli Intel J6412 from Amazon as it had next day delivery and I didn’t have time to wait a few days for PC Engines support who recently announced they where closing down to get back to me or shipping a new unit from overseas. As it happens PC Engines replied very quickly on a Sunday!

Anyway the Protectli J6412 turns out to be old gen hardware, however I’ve been extremely impressed. It’s idling away running Proxmox with an Opnsense a VM, Unifi, PiHole and NGINX reverse proxy in LXC containers.

That sent me researching some more as I have an old Ryzen 2600 running as a dev server but as idling away most of the time using a good bit more power than the Protectli. That rabbit hole has lead me to Intel N100 boxes such as the CWWK n100 on Amazon/AliExpress. They look like great low powered machines if you can live with a single SSD/16GB memory. They’ll do virtualisation/proxmox, run k3s, 6w max tbp, fanless, multiple nics. Not a cheap option but also not an expensive option all things considered. They even do a N305 which looks to be on par cpu wise to my current Ryzen 2600

It seems the market for small nuc type devices is getting very good right now.

tiew9Vii··on A detailed comparison of REST and gRPC
Agreed! Had good success doing this with a toy mapping web app. Serializing polylines with Protobufs significantly reduced payload size compared to a JSON `[number,number][]` and as it was HTTP I could offload onto a CDN by setting cache-control headers.

Developer experience is also much nicer. Instead of repeatedly writing JSON serializers/deserializers on the backed + fronted you get them generated for free. I know there's various open API/json schemas code generators but for me i'd rather use Protobuf's at that point and get the benefits of a strongly typed schema, schema evolution, reduced payload size so faster experience for the user, cheaper bandwidth and cheaper storage if you currently store opaque JSON blobs in the db.

JSON API's are api's in debug mode.

tiew9Vii··on Ask HN: Most interesting tech you built for just yourself?
I'll share a project I've been working on that has greatly improved my meal planning. I created a tool to tell me what and how much to eat from a list of ingredients.

Unlike most existing apps that only track what you eat, my app helps you figure out how much to eat to hit your target macros. Initially, I had created some Python scripts that worked well, but I found them inconvenient to use as I needed to be near a computer, edit the script and manually add ingredients to a dictionary. To make it more user-friendly/faster, I re-wrote it as a web app in Rust for the backend and integrated a free food database.

Now, I can quickly and easily add a list of ingredients I have at home from my phone and hit calculate.

Currently, I'm the only user, and the tool is designed entirely for my needs. However, I think it could be useful for others looking to plan their meals and eat healthier, which is why I host publically. If I were to build it for general public use, I would need to relax the constraints to allow flexibility on how close it can match your targets. I would also want to add more food sources, maybe the USDA database, but since I'm not in the US, a lot of the foods won't be relevant to me. Maybe if I get the time i'll work on it but for now it works perfectly for me.

You can check it out at https://www.macrosolver.com/. Let me know what you think!

tiew9Vii··on PC Engines EOL
This is sad.

I built a home OpenBSD router several years ago using the APU2. I haven't touched it/loggied in for several years although I keep meaning to so i can update the OS. It's been sat ticking along nicely doing DNS, DNS filtering, cross subnet routing, wireguard for remote hiccup free.

I'm not sure there's any equivalent now?

tiew9Vii··on Show HN: Learn Rust 101 – A guide to aid your journey of becoming a Rustacean
Rust on Lambda's using containers as the deployment artifact are also very good, i'd say a perfect match. Low artifact size, low cpu+memory usage, fast execution. I think AWS must be using increasingly using Rust on Lambda internally from the talks I've seen them publish and the work gone in to https://github.com/awslabs/aws-lambda-rust-runtime.

For simple REST API's there's not much extra effort in using Rust once you are familiar.

tiew9Vii··on Arnold Schwarzenegger’s Last Act
There are hundreds of thousands of people taking steroids who go to the gym at far larger dosages than the pros to try and look like a pro. None of them looks anywhere near pro bodybuilders.

Steroids help. No one can deny that. The average person might get into pretty good shape using steroids without much effort. You can gain muscle by taking steroids and not training as your body processes protein better.

None of these people taking steroids will ever look like a pro bodybuilder as they don't have the dedication, mental mindset, determination, or work ethic to get there. Pro bodybuilders are a special kind. It's all built on consistency, day in and day out, every day, every week, every month, every year. Every meal is calculated, and every training session is calculated, logged and analysed.

Steroids certainly helped in his bodybuilding, but his single-mindedness made him the best bodybuilder of his time. The same single-mindedness got him a film career and then a political career.

The difference with Lance Armstrong is that pro bodybuilding competitions have never had rules banning performance enhancing drugs. Cycling isn't judge on your body being the biggest unnatural freaks on stage where performance-enhancing-drugs is a given unless you are competing in a completely natural class.

← PreviousPage 5 of 13Next →