HNHacker News
TopNewBestAskShowJobs

smashed

1,617 karma · joined December 7, 2015

Email: veilleux.cedric@gmail.com Github: https://github.com/cveilleux
submissionscomments
smashed··on What happened with ASUS routers this morning?
Hmm maybe not but reading all the linked forum posts and threads, people are at a complete lost for information.

"I installed version X.Y.Z and so far so good"

"I tried all available updates and it keeps crashing".

There is no transparency in the published updates. Take that firmware blob (which is probably 99% GPL licensed by the way) and shut up. That's basically what the vendors are saying.

What's ironic is that most OEM are using some sort of out of date openwrt derivatives as a base for their closed source firmwares, which are obvious GPL violations.

smashed··on Read Every Single Error
Of course any reasonable engineer is going to aggregate similar errors somehow?

You don't need to read every single connection reset by peer or similar network errors..

smashed··on Microsoft is scanning the inside of password-protected zip files for malware
So windows will delete files over an SMB share? That is borderline malware isn't it? wow... Thanks for sharing.
smashed··on Microsoft is scanning the inside of password-protected zip files for malware
Honest questions come to mind:

How is windows accessing the zfs pool exactly? Afaik, there is no zfs support on windows?

Since these are backups, shouldn't they be read only? A snapshot at least would ensure easy rollback.

Also, windows defender is not the only thing that can alter your archives. Think malware and ransomware.. once again a fully read only unalterable storage should be preferable if you care about the data.

smashed··on [dead]
I stopped reading when the author starts alluding he/she did not even watch nor intend to watch the show...

Why post this? It's a fluff piece on a supposedly bad Netflix show the author did not even bother to watch.

smashed··on Windows 11 in Svelte
Or just download a large file, choose save as on a drive other than the C drive because it is too big, and watch IE proceed to fill up the temp dir on the C drive, completely ignoring the fact you asked to save on another drive.

Or if you had enough space, still waste minutes copying the deleting the file...

smashed··on Windows 11 in Svelte
I don't use windows daily but was trying to add an additional keyboard layout (US English) to a family member's windows 10 PC today.

Searching for such a simple thing in the control panel was infuriating to say the least. I finally found it, random clicking in every potential places and it was in the most unintuitive place you could think of.

You would expect "keyboard layout" search to bring helpful results but it does not.

smashed··on Go with PHP
Not sure how quotes would help?

If referring to the go programming language, the title should say "golang with PHP"

There is no other way to disambiguate one of the most commonly used English verb from the obscure (in relative terms) programming language.

smashed··on Linux kernel use-after-free in Netfilter, local privilege escalation
I agree for the "ip" tool (from iproute2).. I got used to it but I still prefer the ifconfig output. It is somehow consistant and you can get used to it.

I somehow got accustomed to the nftables rules format. It is in fact objectively much better than the iptables format in many ways. The native JSON, easy bulk submit to the kernel, built-in sets and maps (the source of the currently discussed CVE though). It really does fix a lot of what was wrong with iptables.

But iptables was probably not broken enough for most users to warrant re-learning everything.

Now, the traffic shaping tool, oof.. I still cannot grok any of it. I've been happy with the fireqos script so far to abstract everything out of the tc syntax.

smashed··on Linux kernel use-after-free in Netfilter, local privilege escalation
You can check with: iptables -V

If it says (nf_tables), you are using the compatibility layer from the iptables-nft package.

It works quite well. Apps like Docker that inserts rules using the legacy iptables syntax are oblivious to the fact that they are actually inserting nftables rules.

It also provides an easy migration path. Insert your old rules using your iptables script then list them in the new syntax using nft list ruleset.

The problem is that it works so well that it seems most users just stayed with the iptables syntax and did not bother migrating at all.

smashed··on America Forgot About IBM Watson. Is ChatGPT Next?
IBM tried to sell the company I worked at Watson Weather or something, following their acquisition of The Weather Network I believe. Everything was Watson something. It was such evident bullshit.

They convinced executives to do a pilot. It was a shit-show. Quick and dirty API endpoints running on bluemix and spewing 500 internal errors at every gust of wind. Nothing remotely intelligent.

smashed··on The Linux Kernel Module Programming Guide
According to the github readme, the guide has been around since 2001 but it seems fairly up to date..

There are numerous discussion going on the issue tracker, about adding rust chapter, targeting linux 6.1, etc.. Very cool to see github issues and pull request actively used to keep a guide up to date.

The guide will walk you through the basic of a kernel module. Exposing virtual files under /proc or /sys or messing around with system calls. It will fall short of helping you with the nitty gritty of writing an hardware driver though.

The problem with writing drivers is that you are interfacing with a real-world machine for which you will have very little information about.

Pick a device similar to the one you want to support, but that is already supported in linux. Go look at its source code. This will tell you far more about the work involved. You might realize that there is simply not enough information available to support the driver.

smashed··on Today marks nine years since the last major release of Apache OpenOffice
See also the open letter from libre office to open office in 2020: https://blog.documentfoundation.org/blog/2020/10/12/open-let...

https://news.ycombinator.com/item?id=24760117

The libre office proponents have made numerous appeal to the Apache foundation but I don't think I've seen any statement or response? Basically they pretend it does not exist.

Apache should recognize its project is inactive and archive it, for the benefit of its users.

smashed··on The Struggle to Make Lab-Grown Meat
They feel unnatural and unconventional and is something a large part of the population will be unable to relate to. Food is a very cultural thing.

We've also been educated to buy and prepare our own meals from the most natural/unprocessed ingredients as possible and avoid heavily industrialized/preprocess ingredients for health reasons.

Lab grown meat is the opposite of both of that.

I am just playing Devil's advocate here. I understand the appeal and potential environmental benefits as well.

smashed··on ChatGPT users can now turn off chat history
> adtech lead to an infusion of capital into the internet, which led to many wonderful things for society.

Source? Instant global communication is valuable enough by itself to attract massive investments and interest. I highly doubt technological advancements from adtech was in any way shape or form required for that.

smashed··on Open source smartwatch integrates ESP32 MCU with e-paper display
When you add microphone support to the 3.5mm jack, there has been 2 competing standards.. one eventually won but to this day I still stumble upon that old device or headphones that is incompatible..

https://hardwarerecs.stackexchange.com/questions/15086/how-d...

smashed··on Ask HN: Why is WebAuthn so slow to take off?
I would say because it relies on an hardware key, which few of your users are going to have anyway. Any tech requiring an hardware component is going to be much slower to deploy.

I know there is still much interest in deploying it for internal/employee authentication in large organizations where you control the app login and the employee hardware. Some organizations that wrongly deployed multi factor auth based on SMS have realized that was a poor choice and are looking for alternatives.

smashed··on Show HN: DontBore – Accessible, fast, low-footprint Login sharing for the masses
Why is the main call to action is to perform a search by domain name?

There are like 12 domains total in the list...

May be I am not understanding how it works.

smashed··on CBC's Funding Chart is a Graph Crime
https://cbc.radio-canada.ca/en/impact-and-accountability/fin...

This is a misleading graph. Not a single doubt about it. The fact that it is a few years behind does not change that fact. They knew what they were doing in 2019 when they published it. The science of misleading graphs has seen very little change since that "old" time.

Yes they improved, but pointing out this chart is of public interest and interesting.

smashed··on PostgreSQL Row Level Security
> conflating the well known scalability issues with the number of concurrent connections to PostgreSQL with the number of defined roles.

They are related in some way, since a connection is tied to a user, you will need to open a connection for every active user.

That means solutions like pgbouncer that pools connections might not work as well than your typical app where most connections are interchangeable.

smashed··on No rules: Illegal cabins with million-dollar views of Portland
I don't think a LLM is the best judge in that case.
smashed··on Difference Between a Symbolic Link and a Hard Link
Good explanation and same for me.

I came to that realization when I needed to delete a file and the function call to use was named `unlink`.

smashed··on Reverse Engineering the Facebook Messenger API
Ouch. The API designer inside me is shivering at that monstrosity.

> You might ask why the Messenger API expects a JSON string inside a JSON string inside a JSON string inside an HTML form. You would have a very good question.

Probably multiple layers of tooling and encapsulation to get to the real backend, or just unpaid tech debt.

Also, first the author discovers a GraphQL endpoint. I thought great, just introspect the schema instead of blindly poking around!

But no, the GraphQL API seems to only be used to transfer project LightSpeed payloads which are server generated JS snippets meant to be blindly executed to update the UI. Rough.. I know GraphQL originates at Facebook but I don't think that was the intended usage...

Also, the author's python script seems to be opening a new session on every invocation. This might have triggered the account suspension, since login endpoints are certainly amongst the most heavily monitored for suspicious behavior.

smashed··on Website hosted on a 24 year old Linux server
Can confirm, that's how it was done. A simple text file.
smashed··on My long goodbye to Windows XP (2022)
Once I tried to use a newish nvidia GPU on an old cpu. It was the pandemic and parts were hard to come by.

The minute windows update would automatically load the Nvidia driver in the background, the screen would go fully black with no going around.

Searching online, the combination was unsupported by Nvidia and there was nothing you could do.

Linux with nouveau worked flawlessly. No kernel parameter, just boot using a live usb and everything works.

Yes, sometimes you can hit a weird hardware issue and need to revert a firmware blob or add a kernel parameter to disable something. These are rare occurrences, not the norm.

Every platform has its quirks. It's just not true that windows or macos is perfect, you are simply used to all the weird quirks.

smashed··on Avoiding HTTP/3 (for a while) as a pragmatic default
Standard posix sockets are mostly just system calls. The TCP state machine is implemented in the OS kernel.

You can switch to raw socket and do the TCP syn/ack dance on your own but this is mostly done for network testing/pen testing, as there are more overhead involved, not less.

This is mostly because the OS actually controls the send/receive buffers used by the actual network drivers. The userland program just takes care of filling these buffers and the kernel and drivers take care of emptying them (i.e. sending). TCP flow control is handled by the kernel, freeing the app to focus on its data. This abstraction actually works quite well.

There are frameworks for userland network stacks, when you're working in high performance networking and need to avoid any overhead the kernel could introduce. The drawback is you need to implement the entire stack, including the low level driver, otherwise it would be slower than what you can already do with classic sockets.

smashed··on Avoiding HTTP/3 (for a while) as a pragmatic default
I'm not sure I'm following you here.

Http/1 Keep-Alive was one the earliest protocol performance improvement. It meant the TCP connection could be reused for the next resource, avoiding the overhead if closing and reopening a new connection for every request to the same server.

You can see http/2 multiplexing as a natural evolution to the keep alive. Instead of doing every request sequentially, just send everything you need at once and let the server figure out in which order to process everything.

Concurrent TCP connections do have an impact on all stateful firewalls in your path, stateful load balancers and of course the server itself. A client that opens dozens of simultaneous TCP to request all the resources on a page all at once would be frowned upon, and quickly hit rate-limits and anti-abuse protections. You can call it ossification of protocols but that is the situation even google could not workaround when specifying http/2 and then quic.

smashed··on Alexa, what is my wifi password?
The best you can do is have a PSK per mac address.

Hostapd which manages the encryption of wifi access point in pretty much all wireless aps already supports it. You can supply a list of mac address to psk or obtain the psk from radius server. The mac address is provided as the username, all your need to do is return a different psk depending on the mac address. I have POC code lying around I should probably publish somewhere.

Like pointed in sibling comments, it is pretty trivial to clone a mac address so if you were to dump a "unique" psk, all you need is the mac address that goes with it.

What it does gain you though and that is a big plus in some situations, is the ability to revoke a single psk without having to reconfigure all your client devices. That is very useful.

The onboarding is a little bit wacky though. You need an easy way to get the client mac address, generate a unique psk for it, save that in your config, then attempt connection....

One way I would like to explore is have a "next available psk" easily available, for example in an app available to the network administrator. When hostapd asks for the psk associated with unknown/never seen before mac, return that default PSK and save it as associated with that mac on succesful connection, then regenerate a new default PSK for the next device.

This way, an admin can share the password or onboard new devices easily. You don't need to know the mac address of the client in advance.

If you need to revoke access for a device, just revoke the psk that was associated with it.

smashed··on Linux Intel WiFi driver broken with 5&6GHz bands for longer than three years
> you could probably send a weaker signal from mobile devices and drown the air with signal from anything plugged into a wall socket.

How exactly is your mobile device going to ACK those received packets? The mobile device needs to transmit as loudly as the AP for its ack to be received.

Boosting the transmit power higher than your receiving device can transmit leads to very bad wifi links, where the mobile device is receiving a good signal but it's own messages are not received back.

smashed··on Show HN: ChatGPT and Document Parser = Ghost
There is also Ghostscript which is a postscript/pdf library, and since the site is operating on PDF content, my initial thought were that they were somehow related.
← PreviousPage 8 of 11Next →