HNHacker News
TopNewBestAskShowJobs

smashed

1,617 karma · joined December 7, 2015

Email: veilleux.cedric@gmail.com Github: https://github.com/cveilleux
submissionscomments
smashed··on Considerations for a long-running Raspberry Pi
Just a fyi if you're going down that path, the hardware watchdog is disabled by default in most distros.

Enable it using RuntimeWatchdogSec.

Second, if you are running an important service, see if it can support systemd notification socket and even better the software watchdog protocol with systemd. The service just has to send a heart-beat every X seconds otherwise systemd will restart it.

This ties in the hw watchdog to systemd and systemd watches your service, ensuring both the hardware and the software is running, otherwise the system will restart.

Lots of details here: http://0pointer.de/blog/projects/watchdog.html

None of this is raspberry pi specific, it works on every system with a supported hardware watchdog, which includes raspberry pis.

smashed··on Postgres as queue
Yes, I think the point being made is that the infrastructure described in terraform is a much more difficult thing to change and evolve over time.

Changing a source file line and shipping a new version of the app is much easier.

They are not really comparable things at all. Even though we moved to infrastructure as code, that does not mean that the infra code is like functional application code.

Come to think of it, I guess it was a damn good lie to sell infrastructure as code as so easy it's like shipping a new app version when it's everything but..

smashed··on "Fake Chinese income" mortgages fuel Toronto real estate bubble: HSBC bank leaks
People have been waiting for decades for the Canadian housing market to tumble.

There are so many Canadians waiting on the sidelines with their down payment ready to be deployed and are out competed year after year.

The pent up demand for housing is enormous. Even with the high interest rates.

Hell, with the rumors of interest rates going down, there is a frenzy to BUY now, suck up the high interest and get a relief in a few years, because people are afraid that if the rates go down, more people will qualify for a mortgage and it will bring more pressure, so better to buy now if you can.

I am convinced it will not go down in my life time ever. Too much demand, not enough supply.

smashed··on Three million malware-infected smart toothbrushes used in Swiss DDoS attacks
I tried to fact check it also. They talk about a "java-based" os that could have been the cause.

I know java me was a thing and there are micro jvm that can run on microcontrollers but still, it does not add up.

I think a DDoS attack happened (happens all the time) and security "experts" mentioned that these things could come from anywhere, even toothbrush, and the details got lost in translation / used for click bait.

smashed··on The world has warmed 1.5 °C, according to 300-year-old sponges
https://climate.nasa.gov/explore/ask-nasa-climate/3104/flip-...
smashed··on Japan: Moon lander Slim comes back to life and resumes mission
To be honest I had read the entire article and did not get the very important fact that it landed upside down.

Perhaps people are reacting to the very bad reporting by the BBC, not at the slim mission team itself.

smashed··on Meta now lets EU users unlink their Facebook, Messenger and Instagram accounts
But can you really disable a Facebook account?
smashed··on 'Canada Is a Video Piracy Hotspot While Brazil Sees Piracy in Decline'
There is a mounting problem in Canada with CBC and public funds funding productions we can never see or are delayed/pay walled.

Movies that are 100% paid by public money are not available to see anywhere, after a short theater release. Even if you are willing to pay for it.

I fear the result is that the public funding will dry up completely, shutting down an entire industry. That would be a big cultural loss, just because they manage the funds so badly. Fund projects people actually want to watch. Fund more diverse works. And make the damned product available to the population that paid for it.

smashed··on OpenWRT turns 20; wants to launch their "first upstream supported" design
They are not running stock openwrt and openwrt devs refer to their firmwares as "frankenwrt".
smashed··on If Carpenters Were Hired Like Programmers
> For those curious, #4, my presentation was about how I reverse engineered the Robinhood API, spoofed requests to get around their “security”

This was probably against their TOS and even if not, trying to bypass security measures, no matter how weak, is unethical behavior, and possibly illegal.

That would be a red flag in an hiring scenario since you were essentially bragging about breaking the law.

Unless Robinhood had a bug bounty/responsible disclosure kind of program and you were fully acting within its limit, but your comment did not sound like it.

smashed··on Ask HN: Good book to learn modern networking?
Good on you for wanting to learn about it.

Two things strike me as odd about networking compared to many other IT/software fields:

First, it evolves much, much slower than anything else. Everything I learned 2 or even 3 decades ago is still relevant. Ethernet, DNS, DHCP, TCP/IP. New things got bolted on but everything old is still relevant. Yes, even in the modern cloud.

Second, I've met so few in the fields that actually understand anything about networking. Even as basic as an ip address and subnet. As long as the web page loads and the data is flowing, people stop caring fast. When the network breaks, most software devs are stomped and can't even do the most basic troubleshooting.

My only recommendation is to start with the absolute basic and learn from first principles. Ethernet, IPv4 (packets, IP addresses, subnets, routes), UDP, DHCP, DNS, TCP, HTTP, tunnels and VPNs, in that order. Use wireshark along the way and research everything that is unclear before going up the stack.

Try to run your own router/firewall using openwrt or pfsense/opnsense.

smashed··on She Gave a Hotel a Mediocre Review. Then Came the Badgering
That is also why Airbnb as a company is doing Ok, but not great. In other words, a terrible investment.
smashed··on Unbricking my MacBook took an email to Tim Cook
This.

Any other reply is going to be apologetic rambling.

smashed··on Fritzbox: AVM is threatened with a sales ban due to violations of Huawei patents
It seems to be about the "structure" of a packet, meaning bit fields that indicate if the packet is for a single user or multicast?

That seems more to me like a mere protocol convention, exactly the kind of stuff that should be in a standard communication protocol just so everyone agrees on the same fields.

How is that a new "invention"?

smashed··on The New Essential Guide to Electronics in Shenzhen
It doesn't have to be about saving money.
smashed··on Linux: Ext4 data corruption in 6.1.64-1
https://lore.kernel.org/stable/20231205122122.dfhhoaswsfscuh...

It seems like a commit from the main branch was backported to stable branch, but it actually depended on another one which was not backported.

Linux kernel maintainers heavily backport commits as it seems the distinction between bug-fix and new features is hard to do. Also, bug-fix can depend on new features..

I'm always a bit scared when I look at the amount of commits in a single stable kernel point release, plus the fact that these point releases come out every week or so. The velocity of change in what should be a stable kernel is very high.

I'm wondering who exactly wants to run a stable kernel that receives all these updates so fast. If you want all the latest and greatest, just use -latest?

smashed··on Governments spying on Apple, Google users through push notifications
When you're transforming the push notification, can you make an https request?

Send a meaningless random ID, then do a get request to your API to get the actual content, then present it to the user.

Only a meaningless ID will transit through google/apple servers.

Honest question. I'm sure many thought about it before.

smashed··on [dead]
Hate. The viscerous desire to obliterate the enemy out of existence.

F*ck war.

smashed··on Why Does My 'Efficient' Dishwasher Take a Zillion Minutes for a Load?
> preset clothing types, for example, rather than cycle settings

My LG washing machine has a wifi connection and one of the advertised feature was the possibility to download a custom washing program set from the app.

I thought it kinda makes sense, because building a custom program involves many steps, timers and settings. A mobile UI would be better than the appliance's buttons.

Well, imagine my deception when I got to try the app and the custom programs is just a list of a dozen more niche presets. No customization whatsoever.

It's really like the machines we buy are no longer ours to control.

smashed··on Sqids – Generate short unique IDs from numbers
I'm not a cryptographer and did not understand half the things you said except symmetric crypto.

I think there are 2 problems with this approach:

How do you prevent the double spend problem, for example duplicate entry tickets. You would have to mark the ticket as used in a central database anyway to prevent it

What happens if the secret key material is compromised? Anyone can issue new valid numbers, etc..

Please correct me if I'm wrong.

smashed··on YouTube punishes ad-blocker users with slower videos on non-Chrome browsers
You are describing exactly what targeting non-chrome browsers is but somehow saying it's not?
smashed··on Self-Hosted 110: Google Photos Replacement [audio]
The way google will nag you when your storage is nearly full is ultra annoying, borderline dark pattern. It will warn you that you might be running out of storage when attaching small PDFs to an email and the like, when you still have hundreds of megabytes available.

I started using Immich just this week and am very impressed by the amount of features built-in and everything just works. It really is a full-on replacement for google photos which is amazing. Even advanced features like face-detection using AI and partner sharing are there.

Shout-out also to immich-go [1] which is a cli tool that allowed me to migrate hundred of gigabytes of photos from a google takeout backup flawlessly.

1: https://github.com/simulot/immich-go

smashed··on Why is int in C in practice at least a 32 bit?
Performance and transparency to the underlying system.

Int would be whatever the instruction set of the platform supports by default for most of its arithmetic and memory operations.

C would be sitting a layer above assembly but not try to hide what is going on behind the scene I guess.

Much later on languages like java would bring the concept of virtual machines where the types are unified across different instructions set.

smashed··on Find the date of your birthday in the number pi
I entered a few dates in YYYY-MM-DD format and it seems like it does whatever it wants with them?

Some results are without the first 2 year digits.

Some results are plain bogus, a 2012-03-XX date returned a 2012-10 number (without the day component and wrong month).

If this is an ad for the power of Wolfram Alpha it is very poorly executed.

smashed··on Localsend: Open-Source Airdrop Alternative
How exactly is Apple good at Interop?

Their whole market strategy is the exact opposite. They only implement standards when forced by regulations or overwhelming market forces.

smashed··on Differences from Psycopg2
This is because they are not on the same level.

If you are using SQL alchemy on a postgres db, you might be using psycopg without knowing it.

Psycopg is the lower level lib that implements the PostgreSQL protocol.

See https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#d...

smashed··on What Took Down Airbnb
When travelling for more than a few days, restaurants are not a viable option anymore, especially with the whole family. I used to find it difficult to find healthy options. But nowadays, the cost has become simply prohibitive.

The restaurant budget alone would be much more than hotels and flight prices combined, and we'd still be mostly eating bad, unhealthy food most of the time.

An Airbnb with a kitchen is a must. For extended stays, washing machines are super convenient also.

It seems like hotels are catching up. I stayed at many newer chain brands with decent full kitchen offerings. Still not quite the same as a real appartement/house, but they are fine and often not that much more expensive than your typical hotel room, just look out for it.

smashed··on Rasperry Pi 5 Specs and Images Leaked from Element14?
A raspberry pi has literally more ports than your average laptop, in a much much smaller PCB footprint.

Of course the port layout is going to be a fiasco. It's just not physically possible any other way, unless you start shoving everything into a single USB-C port and force the user into using adapters and docks, at which point you'd just be removing actual ports like laptop makers have been doing for the past years.

smashed··on OpenBSD PF versus FreeBSD PF
From what I understand, modern NICs have multiple Rx/tx queues and thus the work of sending and receiving can be assigned to different kernel threads.

The number of queues will vary according to the specific NIC chip.

smashed··on enron :: discover the power of WHY (2001)
It's the part of the site that worked the best on mobile for me.

In fact it worked better than many hamburger menus I find on modern mobile sites.

It's not the greatest UX but it's not that bad either.

← PreviousPage 5 of 11Next →