HN user

deaddabe

432 karma

French hacker.

Posts5
Comments64
View on HN

I feel that dd is never the correct tool to write to SD cards. At least cp can figure out the block size itself. Or the more elaborated bmaptool can even skip empty blocks which are often found in disk images.

I live near a major university that has as many as 4 fablabs listed. All of them is reserved to students. If you are an outside "thinkerer", you need to pay something like 400€/month to show up and use a soldering iron. Sometimes there is only a "contact us" form where you can ask for a quote! These efforts are completly sterile. Students have free access, but nobody from the outside world of the university to learn from.

I had access to a local hackerspace during my studies that was 100% run by volonteers, without any university involvment. It was glorious. I sat next to software and hardware professional doing amazing projects on their free time.

I guess I still have to tinker on my own instead of sharing it with people eager to learn in a common space. I think that somehow big universities actually prevent such spaces from emerging by creating their own sterile initiatives.

Just Say No 4 years ago

Worse, stalebot makes it looks like the project has no issues nor known problems. Issues should be closed either with "wontfix" or let open if they detail a real bug that others may stumble upon. In the end, I agree that it takes time to do that, and who am I to dictate how people spend their time.

Maybe the best solution would be to completly disable issues and PRs on Github. Still better than having to deal with stalebot. At least you know what to expect: external solicitation is not welcomed.

Data structures and algorithms: We used a dictionary instead of a list to go from O(S) to O(1) operations.

The list in TFA is so small that I wonder at what point creating a hashtable is more economical than going through a 9 items arrays. In C, accounting for allocations, etc. I would not be surprised that strcmp on an static array would be faster.

As always, measure with benchmarks (which does the article, but not on array vs. hashtable). In theory, O(1) is better than O(N). In pratice, with memory allocations and all, the order of magnitude of N plays a role.

Anyways, I would have used a hashtable also to convey the idea that I only want to check if the item is in the list. Python makes this easy. In C, I would have used an array unless N is "large enough".

Reddit is already aggressively pushing for users to go to their official app when browsing on mobile. I would not be suprised that custom-made apps will be more limited in the future, up to the point of being pointless. Twitter did it. Reddit may do it (only allow read-only as a first step?). They also may disable old.reddit.com at some point. Enjoy the ride while it lasts.

You may also look into Kernel Programming for a lucrative systems programming career.

This is the road I have taken since I started to work professionally, but I yet have to find a lucrative job. I know that I am paid more than microcontroller devs, but less than web devs. The market for kernel developers is not that big either.

Because Python pays more. Or Javascript. Or Ruby. More demand, more salary. Apart from finance, pay is lower than web languages. And finance is small. Embedded systems programming, that also uses the language, pays 30% less than web jobs from my last job hunting period.

Employees may be leaving the embedded space (and C++) for web tech because of this. This is the feeling I get from my local job market (western Europe). Maybe as the old timers retire, job offers will align? Who knows.

Initially, I learned it for fun and ham radio emitting. But I find it fascinating that you can use it with anything that can be turned on and off with a rythm.

I used a flashlight to say "hello" while waiting for a fireworks event, but the other person far away just blinked their flashlight randomly in response.

I guess it could be used for worst scenario speech, like blinking eyes for examples if I ever have a terrible accident somehow (has been used by tortured persons, see https://www.youtube.com/watch?v=WZ256UU8xJ0). When I saw Tuco’s grandpa in Breaking Bad taking so much time to write words with his bell, I just tought about using morse (but with something more elaborate than a bell, because you want to use long and short tones; same problem applies if you want to knock on walls or doors).

At $internship I developed a network router with something like 32 or 64 MiB of RAM. Basically configuring iptables, some routes, QoS, etc.. with a bunch of bash scripts, systemd units and custom drivers.

You do not need a lot of RAM for such applications. When running, the system was using 24 MiB of RAM. So, plenty left!

Edit: I am currently playing with NanoPi Neo that has 128 MiB of RAM and I never ran out of for small applications.

8bitworkshop 4 years ago

Having to program down to the bit (not byte) sparks a little something for me. I feel proudness in the craft, even if this is a bit (pun!) far frow nowadays’s constraints.

I just learned the hex decades (1, 16, 256, 4k, 64k, 1M, 16M, 256M, 4G…) and now if I need to generate a 1M empty file I know that `head /dev/zero -c $((0x100000)) > 1M.bin` would do without having to multiply 1024 three times. This kind of little things. :)

Nevertheless, it can still be useful if you write Linux device drivers or some other low-level tasks. Microcontroller programming, too, but without having to buy them in the first place (MCU shortage…).

8bitworkshop 4 years ago

I can also recommand WASM-4 (https://wasm4.org/), that has even more constraints (screen resolution, color count, …) and that you can program with your language of choice, as long as it can compile to WASM (eg. C, C++, Rust, probably Nim…).

Many digital nomads are skilled knowledge workers who earn well beyond the €2,000-€3,500 monthly income requirements of most European digital visa programs—a big reason so many countries and towns are trying to lure them.

So, what gives as an European SW developer in this income bracket?

1. Go to US 2. Negotiate US salary 3. Come back to your native village, hopefully with "well beyond" money 4. Profit?

Or just directly work for an US company, I guess.

TIL about GiroCode: QR codes for EU SEPA bank info.

I wonder why it is not used in major banking applications. I have manually copypasted IBAN numbers from friends so many times it gets old. I guess scan with a visual check that the numbers are correct before adding account could provide a boost in usability.

Maybe it is not done on purpose so that easier alternatives (like Paylib) are used instead, which may incur a fee while IBAN transferts are free.

I wonder how this kind of schematics would sound like when using a screen reader. Hopefully the schematics can be passed if the screen reader struggles to read it, or read an "alt" alternative text instead. But I doubt it. After seeing how a person uses a screen reader, I think using a spreadsheet is sometimes more accessible than ASCII art because I guess screen readers cannot interpret ASCII characters in terms of columns and lines.

If I would have to document a table into the code, I would try to use as little ASCII characters as needed, in order to not confuse the screen reader.

A reward system is something nice for new contributors in my opinion. I am currently thinking of something similar for the Debian project to incentivize new contributors with a bit of opt-in gamification.

However I did not understood why NFTs were necessary. We had badge systems way before NFT became fashionable, on forums for example.