Better HN
topnewbestaskshowjobs
Log inSign up

4fips

27 karma · joined Jan 27, 2020 (6y ago) · 16 submissions

https://www.4fips.com
Submissions

comment 1y ago · link · parent

Yeah, I was waiting for the DS1525+, but after it was announced and the HD restrictions were confirmed, I eventually decided to buy the DS1522+ instead.

comment 1y ago · link · parent

The only browser bookmark I use is:

    javascript:window.prompt("Title + URL:",document.title+"\n"+document.URL);
Which when clicked, opens an alert with 2 lines like this:

    Bookmarks.txt is a concept of keeping URLs in plain text files | Hacker News
    https://news.ycombinator.com/item?id=45047572
I then paste this into my bookmarks.txt and have a simple text editor script to perform fuzzy searching on it and open a web browser tab with the found URL.

comment 2y ago · link · parent

The initial version of my online Numeric Base Converter (https://apps.4fips.com/nubco/) was done in a day, mostly to try out Rust + egui. The app hasn't changed much since then, and I no longer have to search for some random online converter when I need one :)

comment 3y ago · link · parent

No so long ago, around 2012 :), I was still using my Psion 3c + a short OPL program, to trigger my hacked time lapse camera over serial line. It worked quite reliably for years. https://forums.4fips.com/viewtopic.php?t=717

comment 4y ago · link · parent

Thank you!

comment 4y ago · link · parent

Here's mine: https://www.4fips.com (mostly tech topics, random projects & photography, basically anything I find interesting at the moment, I've been maintaining this page for many years)

comment 4y ago · link · parent

Yeah, for example passing such an opaque typedef as const is a common trap and very often source of surprise (even for the author of the API), something like:

    struct Opaque {
        int data;
    };

    typedef Opaque *OpaqueRef;

    void bar(const OpaqueRef ref) {
        ref->data = 42; // compiles fine, ref is 'Opaque *const'
    }

    void baz(const Opaque *ref) {
        ref->data = 42; // does not compile, ref is 'const Opaque *'
    }

comment 5y ago · link · parent

Yeah, I would like to see that behavior as an option, or even better allow to select the whole UI as a block of text (to feel natural and be searchable on the web). I belive any UI (incl. native) should not prevent you from copying any text.

comment 5y ago · link · parent

Text in labels and other controls is not selectable (unfortunately), in this regard egui behaves as a native app, so mostly just editable texts are selectable. This feels a bit unnatural on the web, but one must consider that egui uses a custom WebGL renderes, so the content is not backed by standard DOM.

comment 5y ago · link · parent

Yeah, I believe accessibility is not addressed at all. Similarly when compiler for web, it would be great if the UI would actually behave as text (actual web page) and could be copied into the clipboard etc.

comment 5y ago · link · parent

I'm using it for some of my little tools, and it's pretty seamless going between native and web, which I appreciate a lot, and unlike other non-native UI frameworks, navigating through egui feels pretty natural (the way input are handled etc).

comment 5y ago · link · parent

At least C is a complete language and a solid building block which is possible to reason about, compared to C++ which is becoming more and more bloated in a modernization attempt, so C++ projects need to be constantly updated and rewritten to catch up, which rarely happens in practise. On the other end, C++ can hardly adopt things like memory model based on Rust's borrow checker, so in this regard C++ is a dead end.

comment 5y ago · link · parent

Linked lists become really powerful and performant when implemented as intrusive containers, such containers do not need to live on heap and can be embedded directly into another data structures, so an element can be linked into multiple containers at the same time, this gives great flexibility and compactness (especially when indices are used to form the links instead of pointers).

comment 6y ago · link · parent

Thanks!

comment 6y ago · link · parent

Hehe, thank you!

comment 6y ago · link · parent

Here is mine: https://www.4fips.com (mostly tech topics, random projects & photography, basically anything I find interesting at the moment)