HNHacker News
TopNewBestAskShowJobs

NorwegianDude

1,267 karma · joined June 24, 2020

submissionscomments
NorwegianDude··on Heat pumps can't take the cold? Nordics debunk the myth
How do you conclude that electricity prices are low in Norway because of oil, when oil is not used for electricity? That makes no sense.

Electricity prices in Norway is not low because of oil. Oil/gas is not used for heating, and prices are higher than other places. So if anything the electric prices are higher as oil products are more expensive in Norway compared to most other places.

NorwegianDude··on The .ing top-level domain
Very sure .bot has existed for some years (6?) now.
NorwegianDude··on M3 Max Geekbench
Thats not true. RTX 4090s have 24GB.
NorwegianDude··on Heat pumps can't take the cold? Nordics debunk the myth
I can guarantee you that oil power plants is not making electricity cheaper in Norway. Mainly because there is not a single one in Norway...
NorwegianDude··on Heat pumps can't take the cold? Nordics debunk the myth
That's not a part of the reason. Air-air heat pumps, exhaust air heat pumps and air-water heat pumps is so common that they are excluded.

Only new and emerging tech on the market are subsidized. When adoption increases they remove it as the goal is to decrease cost of newer and less common methods.

NorwegianDude··on Heat pumps can't take the cold? Nordics debunk the myth
What's up with HN and heat pumps? I've seen this multiple times over multiple years. Yes, heat pumps works when it's cold, is that really news? Why?

HN is weird when it comes to heat pumps.

Here is a fun one: You can increase the overall efficiency by using a heat pump on the exhaust air. That way heat from e.g. your PC can be used multiple times instead of just being thrown away. And yes, active ventilation is needed in well insulated houses as they are quite airtight.

NorwegianDude··on Norwegian ban on Meta behavioral advertising extended to entire EU
There is sales tax for US too, so where you are located does not really mater. Companies outside US pays sales tax in the US.
NorwegianDude··on Ask HN: Anyone lost a lot of money with NFTs/Cryptos? What's your story?
I played around with bitcoin early on and tried mining just for fun. Had 52 bitcoins.

Then the price hike in 2013 came and I was reminded of bitcoin again. Sadly the wallet was stored on a harddrive that was wiped sometime in 2011. 52 bitcoins had basically no value when I got them, but that clearly changed.

NorwegianDude··on Ubuntu Linux snuck into high-end Dell laptops
Been using XPS 13s since it was called XPS m1330. Linux has been fine on all of them, but the latest XPS 13 Plus with 13th gen i7 and FHD screen has terrible battery life. Only getting ~4,5 hours battery life coding in Intellij or browsing with under 50 % screen brightness... I have XPS 13s that are nearly 10 years old with 2x the battery life...
NorwegianDude··on Passkeys are now enabled by default for Google users
You get a new device, load your keys from the cloud and use the same screen lock key to decrypt the downloaded keys.

Even if it's passwordless by default doesn't mean there is no passwords for recovery.

NorwegianDude··on Pixel 8 Pro
7 years of updates is big. The pixel 7 only had 2 years of feature updates and 5 years of security updates.
NorwegianDude··on Snowden leak: Cavium networking hardware may contain NSA backdoor
That's not proof, that's just an accusation. Huawei even offered up source access to customers as a way to prove that they didn't do that.

Not saying they don't do such things, but the evidence is lacking.

NorwegianDude··on Snowden leak: Cavium networking hardware may contain NSA backdoor
Isn't that just the US speaking in order to get more control? How is it proven? I've never seen any evidence of that, but there has been much evidence that the US does what they blames others of doing, like this and Cisco.

At this point it seems the US is accusing others for doing bad things because that's what they themselves do.

Huawei was growing really fast, threatening both Apple and Google. Then the US said it was not safe while trying to sabotage both smart phone sales and mobile networks sales. The US pressured allied countries to not choose Huawei for 5G, and didn't let companies work with them.

Huawei was also willing to compromise by giving network operators acces to source code.

Is Huawei bad? I don't know, and I've yet to see any evidence. Does the US do exactly what they are accusing other for? Yes, that has been proven multiple times.

We live in a day where we talk about privacy and security, while giving large corporations full control over our iOS and Android devices. How useful is e.g. E2E encryption really when the os itself has a direct connection to the mothership?

NorwegianDude··on An Internet of PHP
I have mostly used SSR, but in the last years I'm sometimes using Inertia with React/Vue/Svelte and SSR too. Not sure if there are any clear trends. Personally I prefer plain old blade templates, and I only use FE frameworks if I think it makes sense.

I don't know how the experience is with Livewire, but I've heard a lot of people like that too.

The common options with Laravel is plain blade templates[1], Intertia(React/Vue/Svelte, SSR optional)[2] or Livewire[3].

[1] https://laravel.com/docs/10.x/blade

[2] https://inertiajs.com/

[3] https://livewire.laravel.com/

NorwegianDude··on An Internet of PHP
The reason why many use frameworks like Laravel, Symfony, RoR or Django is often because they have non trivial needs. If I need to do something very simple like a small blog I might just throw something together on my own.

I personally have a large prject with a ton of code that was written in the last 16 years from when I was very inexperienced to now. After a while you realize that patterns are important, and you start building more and more features to make development and maintenance simpler and faster.

Here is a list of things I created over some years for that project: - Authentication system that supported different types of login. - Pretty routes. - Simple dependency injection container. - Emailing. - A templating system. - A scheduling system. - A worker pool. - Reusable forms. - Simple DB migrations in code. - Caching system. - A file storage system. - Data seeding. - Testing. - Websockets. - Asset bundling and versioning. - Localization. - Payment integrations. - +++

Sure, I could do it the JS way and find different packages instead of doing it myself, but I don't want to rely on a bunch of projects as that quickly can become maintenance hell.

After a while you realize that you're basically reinventing the wheel. Is Laravel and Somfony complex? Yes. Does it sometimes seem like magic? Yes. Is it hard to use, modify or figure out how it works? No.

You might not know why 99 % would want to use them, but I'd agrue that most probably should when the project achives some complexity. That way you can reap the benefits of the work and experience of thousands of contributors behind these projects.

I am one of those "I want to know what happens in the background" people too, and it's not that hard to figure out how Laravel works if you want to know. But most developers are not interested in how the framework they are using really works. The questions you have about what the auth middleware is, how it works, and what the Illuminate namespace is for(Laravel) is easy to figure out by checking the docs.

Laravel is definetly an opinionated framework, but personally I think most of the options are good ones.

NorwegianDude··on An Internet of PHP
Ironically enough, if people actually tried PHP, many would be amazed, especially at the quality frameworks. Productivity is very high in something like Laravel, and compared to JavaScript frameworks PHP frameworks are much more feature complete and well though out.

I'm a big fan of trying out different stacks, and I think a lot of people would love Laravel if they tried it. Give it a shot using PHPStorm and Laravel IDEA (free trials for both), and see what you think. Can't hurt.

NorwegianDude··on Norway rolls back EV incentives while boosting walking and cycling (2022)
Driving in -20 is good, and often more so if the road has not been salted. Roads are the most slippery around 0 degrees.
NorwegianDude··on Norway rolls back EV incentives while boosting walking and cycling (2022)
And Bergen has very mild winter compared to the rest of Norway. Rain on the other hand is a different story...
NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
If you need credit then they can and probably will check your credit.

There is no reason for the bank to check your credit score if you're only using your own money.

NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
If you think banks always check your credit score then you are just wrong, plain and simple. In Norway you'll always be notified when someone check your credit score, along with what data was provided, who requested it and when.
NorwegianDude··on How Modern SQL Databases Are Changing Web Development: Part 1
What makes you think cloud is cheap, or reliable? AWS lambda does not provide any guarantees other than compensation if the uptime is less than 99.95 %. That is ~22 minutes/month. It's terrible. If it was reliable they would provide better guarantees. How long since a major outage? A couple of months.

Few people run everything themselves. Most use existing datacenters or rent the hardware. Then its basically the same as using a VPS from a cloud provider when it comes to difficulty and expertise.

NorwegianDude··on How Modern SQL Databases Are Changing Web Development: Part 1
You don't have to go all in. You can have your own servers and rent when you need additional capacity. Best of both worlds.
NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
Well, you can just turn off payments on the stolen device.

As for the phone, you need to unlock the phone for larger purchases. The card requires a pin for larger purchases. The watch needs to be unlocked to after being removed from the arm.

So that is not something to be worried about.

NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
No idea how it's over there, but here there is no need for the bank to check your credit score unless you want credit.

A bank checking your credit score just because you want to create an account would be a huge invasion of privacy.

NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
But people usually do have a terminal to accept payment. If not, they usually just send you an invoice. Makes bookkeeping much simpler for the business too.

I have only paid in-person using NFC for nearly 10 years in Norway. I understand that the situation is different other places, but I'm literally not sure what our physical currency looks like now.

However, I walked into a store in Spain yesterday that was cash only. Now I have cash in EUR that I not only overpaid insanely for because of the ATM , but I also can't use it in Norway. If cash was no longer an option then it would be much simpler and cheaper as my bank does the currency exchange for me.

Digital payments are probably better in every way when it's the norm, except for privacy, and that's a big one.

NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
Ease of payment? Paying with a card is much simpler and faster. Take your card, phone or watch and hold it to the terminal for one second and you're done. It's not normal for payouts to take 5 days. In Norway it's the next day.
NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
> Bank accounts themselves are not actually all that accessible

If you have a way to prove your ID(which basically everyone do in Norway) then bank accounts are very accessible and free. I don't know how many banks I have accounts at, but it's more than 15, and all you need is your ID and a couple of minutes to create an account.

NorwegianDude··on Cash payments above €3000 to be outlawed in Netherlands
True. The rule is actually max 40k for goods purchased from a merchant. Services have no limit.
NorwegianDude··on Enhancement of mosquito trapping efficiency using pulse width modulated LEDs
What's up with the abstract? It's as if it was written by a terrible LLM.

Just one sentence: > With specific PWM electric signals to drive the LED, it is found that no matter what the ability of catching insects or the consumed power efficiency can be enhanced thus.

NorwegianDude··on Today I learned that random people can send you money on PayPal and disputed it
PayPal is the pinnacle of stupidity. I've sold the same digital product many thousand times, and this has happened multiple times:

Some customers decides to try to get it for free by paying and then creating a PayPal claim by lying that someone else made the purchases or that it was not delivered. And this usually works, and people tell others, so more people abuse it.

Basically every single time someone tries to commit "friendly fraud" as the card networks calls and it(customer tries to scam seller by lying), there are a handful of transactions from one person. PayPal usually rules 90 % of the cases in favor of the buyer.

However, there can be 20 purchases during just a couple of hours from one person and card, and somehow PayPal is certain that purchase 6 and 10 was legit, while the rest was someone who used the card without permission. That seems probable, right? Even on a account with a flawless record for over 10 years I've had this happen so many times. Usually when this happens I have to spend hours on this and contact PayPal by phone to get the money back. Usually the customer gets the money too, for some absurd reason.

PayPal's fraud system is absolutely garbage, and so is the standard email support. Contacting account managers at least gives you what seems to be a human response.

I too got my PayPal account limited in 2012 as a result of a scammer who abused PayPal disputes.

The solution is super simple: make buyers pay to create PayPal claims and use the money to have real people quickly look over the cases. This is similar to how cases are handled for card networks.

Was the claim legit? Money back, including the claim fee. The merchant has to pay a fee, same way as today.

Was the claim not legit? Basically free money for PayPal, and some should probably be shared with the merchant for helping out with solving the fake claim.

At least in europe the scams on PayPal has mostly shifted from "unauthorized use" to "not delivered" as a result of strong consumer authentication.

← PreviousPage 6 of 13Next →