HNHacker News
TopNewBestAskShowJobs

olavgg

1,790 karma · joined May 8, 2013

Founder of IntelliStream

https://intellistream.ai https://no.linkedin.com/in/olavgjerde http://olavgg.com

submissionscomments
olavgg··on Tesla Model Y overtakes Corolla to be world’s best-selling car in 2023
You have it the wrong way. ICE cars has always been heavily taxed, especially more powerful ICE cars are 2x more expensive in Norway than in EU. EV's just have no tax and only VAT added above 45k USD
olavgg··on Please do not require AVX support for your software
I have still a Intel Westmere cpu running, which is the CPU iteration before Sandy Bridge. Honestly this platform is outdated, its inefficient and slow. It's not even cheap, considering you can get Broadwell/Epyc Rome cheap from Ebay today. I'm just running it, because I have not had time to migrate yet and it works. I could probably run it for another 10 years, as long I don't update anything.

However if Linux should require a new CPU generation, I would quickly migrate it to my Epyc Rome VM server. No questions asked. A 10 years old CPU is outdated, its single core performance may be ok. But this generation had 4-6 cores max and sucked 100watts at full load, like 25 watt per cor. My Epyc uses 2 watt per core and is also faster per core.

olavgg··on Ways to shoot yourself in the foot with Postgres
And SQL server's lack of backup with SSH piping makes it basically pain to administer.
olavgg··on Ask HN: How many hours do you work on a daily basis?
Same here
olavgg··on The developer job market is insane
Hey everyone, if you're frustrated with interviewing processes I high recommend build your own company. You do not have to aim for 1 billion USD valuation after 5 years. Just aim for happiness and make your customers happy too. It is not as hard nor scary as many of you think it is. It requires you to take responsibility though. The world is still mostly running on spreadsheets and we all know software developer skills can transform spreadsheets into better business value.
olavgg··on My manager spent $1M on a backup server that I never used
The big problem with Powershell vs Unix is lack of documentation. Seriously, everything takes 100x less time to figure out on a Unix platform than Powershell. And my life is to short for that.
olavgg··on Self hosting in 2023
I have self hosted Gitea, but its for my team, and you can only reach it with my self hosted wireguard.

It is not a lot of work at all, I update the Gitea lib a few times every year and its as simple as replacing one binary file.

olavgg··on Ask HN: Using Java for a web application in 2023
I highly recommend either Grails, Spring Boot or Micronaut. There are several others, but they lack documentation, has confusing documentation or is over-engineered. Of these 3, Grails is convention over configuration, and the two others configuration over convention. Micronaut is the most performant and use least memory.

Grails has GSP templates, while Spring Boot and Micronaut supports several, but I prefer either Thymeleaf or JTE templates.

Grails and Spring uses Hibernate, which is fantastic to work with. Micronaut has its own orm, which is really fast. In Grails Hibernate is abstracted into something named GORM, Spring Boot's Hibernate abstraction is named Spring Data. Spring Data is more polished than GORM. They're both very well documented and easy to use.

They are all very easy to use with other excellent Java tools/libraries, Kafka, Pulsar, Neo4j and so on.

If time to market is your thing, pick Grails. (This is what I care most about)

If performance (web scale) is your thing, pick Micronaut.

If best documented is most important, pick Spring Boot.

Grails is an abstraction of Spring Boot, basically you can do everything Spring Boot can. But Grails makes Spring Boot a lot easier, especially for inexperienced developers.

olavgg··on Things that improved between Elasticsearch 1 and 7
What do people go for these days? I am working at a startup, and I need to pick either OpenSearch or Elasticsearch. So far I've concluded with that Solr is not that good in a cluster setup. The last option is using FTS in PostgreSQL, which is by far the easiest solution and I can always "upgrade" later.
olavgg··on Bullshit graph database performance benchmarks
I also really like Neo4J, but the community version is very crippled. Still though, I've worked around it and do hot backups with ZFS and run multiple database processes to support multiple customers.
olavgg··on Ask HN: What's on your home server?
To my parents, who lives 30 minutes from me. Alternatives would be some other family member or friend you trust.
olavgg··on Ask HN: What's on your home server?
Use ZFS snapshots and send & receive. It so good and easy! I backup everything with it, VM's, containers, databases, files.
olavgg··on Why we picked Java
Grails
olavgg··on Why we picked Java
Java has it too, https://groovy-lang.org/using-ginq.html
olavgg··on Why we picked Java
Read the authors argument why they don't use Kotlin, a better language is not always nicer, especially when you risk being left behind. That is the reason why I don't touch C#.

Java has a massive community and a community that shares knowledge. This is what makes Java the greatest tool for any business.

olavgg··on Ask HN: What email service should I use instead of Gmail?
I would like to add Microsoft Office 365, most of you would like access to the Office applications. If not, that is fine as you can still pay less. You also get Azure Active Directory included for free, which you can use for single sign on applications you have(up to 10 applications).

I am founder for a new startup and we decided to go for Office 365 as our email service because it just made most sense for our business. And those who knows me, know that I prefer to avoid Microsoft solutions most of the time.

olavgg··on Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS?
I recommend using Micronaut + Thymeleaf, its simple, easy and fast in both performance and developer productivity. Vanilla HTML, CSS and Javascript is fine. The best part by using Micronaut is that the documentation is really really good.

I do also think a single PHP file is maybe the easiest option.

olavgg··on Migrate from Linux to FreeBSD
I have used FreeBSD for a over a decade now. ZFS was the new cool thing I feel in love with.

Today its a different story. FreeBSD is cool, and you will learn more about Linux by learning FreeBSD and it works really well.

However I am currently moving my last system away from FreeBSD. It is just that, Linux/Centos is better, and easier to maintain. Especially third-party packages. There are other things like Linux has support for NVMe-oF which I use together with ZFS on Linux. Applications, especially databases has often 1x-2x better performance. Virtualization is better and more performant. Better NUMA.

olavgg··on Duplicati: Free backup software to store encrypted backups online
I use ZFS snapshots and send/replication. This has been the easiest and most reliable backup solution for everything. I especially enjoy taking backup of SQL Server with ZFS with the new snapshot feature in SQL Server 2022 "ALTER DATABASE MyDatabase SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON";
olavgg··on Redditor acquires decommissioned Netflix cache server with 262TB of storage
Not really. With minimum 50000 cycles, you can spin up and down 28 times every day for 5 years. It may not sound a lot, but in reality it is. I have my NAS set to spindown after 15 minutes idle time and have on average around 1000 cycles every year.
olavgg··on Redditor acquires decommissioned Netflix cache server with 262TB of storage
I think that is a good point, however MTBF is usually a lot higher on enterprise grade hard drives. My hard drives are consumer grade.
olavgg··on Redditor acquires decommissioned Netflix cache server with 262TB of storage
They are a mix of Samsung, WD and Seagate. 2 of them are PATA, while the rest is SATA
olavgg··on Redditor acquires decommissioned Netflix cache server with 262TB of storage
I would love to have this. Old disks are no problem. They will most likely continue to run fine until they no longer are worth it due to either insane electricity prices or 50TB hard drives becomes available for a bargain.

My backup server is still running almost 17-18 years old 500GB hard drives. They will be retired soon though, as they consume too much power and lack spindown when not in use.

olavgg··on Open source sustainment and the future of Gitea
I am a big fan of Gitea, it does exactly what I wants it too and its very easy to maintain over time.

I run it together with ZFS and SQLite. This enables atomic snapshot of both the database and git repository. And this is of course replicated to another system. SQLite is plenty fast, people should avoid more complex solutions using PostgreSQL or MySQL. I've also configured SSO with Azure Active Directory which everyone with mail from Microsoft has access for free.

For the past few years I've completed a few dozen upgrades, only 2 times it has broken. One was a new configuration property I needed to add, and one was that I upgraded GoLang a bit too early and Gitea didn't support it. Compared to many other open source projects, Gitea is a joy to use and run. And I hope it will stay like this for another 10 years.

olavgg··on Ask HN: Recommended Rust Resources?
For anyone with some programming experience that want to learn rust https://rust-unofficial.github.io/too-many-lists/
olavgg··on Imagen Video: high definition video generation with diffusion models
Do anyone see that the teddy bear running is getting shot?
olavgg··on Sudden disturbing moves for IT in large companies, mandated by CEOs
This is not from a fortune 500 company, but I know the CEO in a BIG oil & gas company and that CEO do in fact know a lot about IT & computer science. He is in fact a big fan of Neo4j, and gets really frustrated when he talk to software architects/developers that have never heard about neo4j or graph databases.

He also knows about Linux and license free virtualization. But making a move requires people, and people with Linux knowledge are very rare.

olavgg··on Ask HN: What do you use to build auth?
I write my own, and I mostly use session cookies. I do support login from other OpenID connect providers like Azure Active Directory(AAD) in addition to old email/username/password + 2fa with otp. Basically when they have successfully authed I create a new session cookie for them. The disadvantage is that when the user logout AAD, they still have a session in my application. Though I can always force logout by having a background job that validates that the user is still logged into AAD.

I've heard people say that writing your own auth is bad and hard, and the same people fucking it all up with a misconfigured Apache/Nginx server because they don't read/understand the documentation. Mistakes do happen, do your research, discuss it with others and you will learn a lot while creating a secure system that was not that hard to implement in the first place.

olavgg··on Why programmers are not paid in proportion to their productivity (2009)
If you are that productive and doesn't feel anyone is recognizing you. I highly recommend building your own company. All the sweat you put in will be paid back.
olavgg··on PostgreSQL upgrades are hard
I upgraded my development database from 12 to 15-beta this week. It was super painful, even with pg_upgrade, I cant understand why newer Postgres release can include compatibility for older storage formats. This is the number 1 weakness in Postgresql. I prefer to not upgrade major version for years because its so painful.
← PreviousPage 6 of 22Next →