Better HN
topnewbestaskshowjobs
Log inSign up

sdk77

108 karma · joined Nov 26, 2015 (11y ago) · 55 submissions

Submissions

comment 1y ago · link · parent

By coincidence I re-watched that film this weekend (I like it a lot) and seeing this article immediately made me think of it. Yes, in the film he takes meds, but he stops doing it after a while because of the side effects (impotence amongst others). Then he learns to live with the voices.

comment 2y ago · link · parent

Very interesting! The audio of Tom's Dinner rejected by the encoding sounds mesmerizing to me. I still find it to be musical - it reminds me of a record I bought a really long time ago, it was called modulation & transformation on mille plateaux, it's a collection of songs in the abstract and experimental genre.

comment 2y ago · link · parent

It all depends on the situation. Here in the Netherlands almost everybody has an PV installation with no way other than the breaker to turn it on and off. Some inverters do have an interface, and sometimes it's available. Even less people know anything about this at all, they just had panels installed. The technical solution is simple, bit implementing it will cost much more, I assume.

comment 2y ago · link · parent

Sure. Of course. Not being allowed to disconnect them would be ridiculous. But do you want to keep an eye on the market every day, and run to the breaker to turn on an off your inverter? No. So you need a solution for that. Then a battery is much more interesting.

comment 2y ago · link · parent

Well, until '27, I'm allowed to use the grid as a free battery, basically, this is a kind of government subsidy. But that will end, and the contracts available will be fixed price with a feed in tariff or dynamic (realtime) market price, but then prices can and have been negative during peak solar hours. A battery can solve this only for a bit, and maybe with smart algorithms it can be trading on the electricity market full time, I'm not sure if that makes enough money for the grid power in winter.. it's nice to think about though.

comment 2y ago · link · parent

It's nice to have solar panels, I have them too and while they do generate even more electricity than I need, they do so in around 6 to 7 months peaking in July. So in winter, it's grid power and in summer I might need to pay to feed in the surplus. This is in the Netherlands. It's kind of sad to see all that electricity unused in summer, and knowing I could have enough for all of the winter if only there was some way to store it, all of the 1MWh..

comment 2y ago · link · parent

The thing is though that even with array bounds checking built into the language, out of bounds access due to programming error can still be attempted. Only this time it's safer because an attacker can't use the bug (which still exists) to access memory outside of bounds. In any case, the program still doesn't work as intended (has bugs) because the programmer has attempted, or allowed the attempt, to access out of bounds memory.

Writing safe code is better than depending on safety features. Writing safe code is possible in any programming language, the only things required are good design principles and discipline (i.e. solid engineering).

comment 2y ago · link · parent

Mine as well. Sucks that I just went through the required updating of the build (minimum sdk) of my only app on there, a 2016 Java string art app below 2MB with no data collection, advertising or monetization whatsoever.

Now they want to publish my full address too, because they believe I make money off of it, and I can't contest this in any way. Fine. I'll let them delete my account and I'll open source that app and put it on F-Droid then.

comment 2y ago · link · parent

On my phone, turquoise is green for me, but on my laptop it's blue. I guess that's why it's called turquoise. The same thing happens with the purple spectrum. There's an unlimited amount of purple hues, ranging from red purple to blue purple. That's why there's pink.

comment 2y ago · link · parent

It doesn't. The spider's name is 'Number 16'. It could be any alphanumeric string.

comment 2y ago · link · parent

There are popular embedded platforms like STM32 that don't have hardware double support, but do have hardware float support. Using double will cause software double support to be linked and slow down your firmware significantly.

comment 2y ago · link · parent

Me too. I didn't even know about this blockade. I'm using T-Mobile fiber internet and rt.com loads just fine.

comment 2y ago · link · parent

What a coincidence, I first saw this video in my YouTube recommends and now here. I used to have an MSX-2, a Philips. It had a double sided 720K 3.5" floppy drive, fhe file system is FAT12 and the disks were compatible with PC's. I learned Z80 assembler on the MSX and had a lot of fun with it both with playing games and making it do cool stuff. This computer was quite popular in the Netherlands as well as Spain.

comment 2y ago · link · parent

From the article: "When we don’t feel confident in our code, it is tempting to attach our sense of self-worth and professional pride to something that can be measured. A set of strict lint rules, a naming schema, a file structure, a lack of duplication."

I feel a little triggered. Maybe I'm not feeling confident? No. I've dealt with lots of other people's code and I'm really not bothered by repetition, even not by overuse of abstractions. But. Strict lint rules, a naming scheme and a file structure (in other words, basic coding standards) are, in my opinion, the minimal foundation of any professional software development project. Looking at it this way, clean code is code that is consequently adhering to a given coding standard.

comment 2y ago · link · parent

Very interesting to see this here. I bought the Nike missile control unit years ago from some guy here in the Netherlands and it still sits in my garage. It has cool mechanical gyroscopes and microwave components. I disassembled most of the electronics modules and made a guitar amplifier from some of the pencil tubes. Sounds great and it's kind of cool I think, making a musical instrument out of a weapon.

comment 3y ago · link · parent

The case of what is a constant, and whether or not it even really is, is not always clear in C. As an embedded developer (almost always on bare metal), variables declared with the const modifier are usually (but not always, it depends on the linker script) placed in read only memory. For those kind of variables (read only ones, they're not really constants as in C++ constexpr) I don't use all caps. But for preprocessor macros, always. Even "#define MY_CONSTANT 10" is a macro, and not a constant or a variable. And it should be treated with caution, because it is dangerous (inexperienced programmers might change it to #define MY_CONST 2 * OTHER_CONSTANT, which opens up a can of worms).

comment 3y ago · link · parent

Really nice to see this here. I'm in the Netherlands and it has been a tradition in my family and my mother's family to watch this (on tv) on new year's eve. It's been quite a while since I watched it, living on my own. I'm going to tune in tonight!

comment 9y ago · link · parent

I switched to Brave a few days ago and have never been happier. The problem with firefox on Android is that it is extremely slow, though apparently not for everyone. Slow in the sense of tapping a link, then having to wait 5 to 10 seconds before the GUI updates and the link starts loading. It's incredible and I never found a solution to this problem. It's a pity really.

comment 9y ago · link · parent

The oscilloscope works like a vector display (or x-y plotter). A circle can be displayed by feeding a sinewave voltage to the Y input and a cosine to the X input. Adding a voltage to the Y input moves the ball up and down. Similarly, adding a voltage to the X input moves the ball left to right. Increasing the amplitude of both the X and Y signal will enlarge the ball. State is maintained by flip-flops built from discrete transistors (mono-stable multivibrators). Collision detection is just a matter of comparing the X and Y voltage of object A to the X and Y voltage of object B. If the voltage are (almost) the same, both objects are on the same screen position.

comment 10y ago · link · parent

Looks good. Simple, humble, to the point. It has a certain elegance that I like. It loads fast as well.

comment 10y ago · link · parent

Just counting the bottles, soda intake in your household works out to 3350cc/day*person, on average. If you're not exaggerating, you have a very unhealthy habit.

comment 10y ago · link · parent

Voltage drop is one way to look at it, but since efficiency is paramount, it's better to look at losses. Losses in the conductor are I^2 * R, so when there's a current of 3.5A, losses are 6.6W at an input of 3.5*13.4=46.9W. Efficiency is 88% which is very bad. An average inverter that converts the low DC voltage to AC is much more efficient and even with taking into account the wiring loss, there is a net gain. Generally, using a low voltage DC grid isn't a good idea.

comment 10y ago · link · parent

Allwinner (A10, etc) SoCs have it. You still need the connector with integrated magnetics though.

comment 10y ago · link · parent

On some microcontrollers I know a pointer to address 0 really is just that. I tested compiling the following

    unsigned short *a = 0;
    ((void (*)(void))a)();
which may cause a jump to address 0 (usually the reset vector).

On R8C with the NC30 compiler there are no warnings and the output is:

    MOV.W:Q #0H, -2H[FB]
    MOV.W:G -2H[FB], R0
    MOV.W:Q #0H, R2
    JSRI.A  R2R0
It jumps to 0. But on PIC 16 with the XC compiler a warning is emitted warning: (1471) indirect function call via a NULL pointer ignored and the statement is not compiled at all.

comment 10y ago · link · parent

I fondly remember a university project where we made an mp3 player - hardware based around an Intermetall (MAS) chip and the software to drive it. This was late 90's and the run of the mill 486 struggled to play 256kbps mp3's. I designed an interface around a PAL chip that received nibbles from the parallel port and serially sent them to the decoder chip. The program to parse the mp3 and bit-bang the parallel port I wrote in Turbo Pascal, and it actually did an amazing job, up to 320kbps mp3 could be played. Fun fact: the PAL originally couldn't quite keep up, so I had to increase the supply voltage (as well as the clock voltage level) and attach a heatsink to it!
12