Better HN
topnewbestaskshowjobs
Log inSign up

binaryapparatus

813 karma · joined Apr 15, 2014 (12y ago) · 276 submissions

Submissions

1.

Show HN: Replaced news reading with two tiny editions a day, then made it public(cutthroat.news ↗)

2 points · by binaryapparatus · 3mo ago · discuss

comment 1y ago · link · parent

I see it more like platform for sharing personal most important message at the moment, with occasional link to one's project, but it is not intended as marketing tool. Appeal should be that (with enough users, I don't want to simulate them in any way) next message can be something very interesting.

comment 1y ago · link · parent

Author here, just adding a few more details.

What AI told me to tell you:

In today's overwhelming digital landscape, it's easy for individual thoughts and moments to get lost in the noise. I wanted to create a space where everyone has an equal opportunity to have their voice (or at least a short burst of it!) seen by a potentially massive audience, without the need for building a profile or fighting algorithms.

Flamabl.com offers a super simple premise: type in your message, and every 15 seconds, my system randomly selects one message from all currently connected users to display for everyone to see. It's part luck, part shared moment, and a whole lot of "what's next?". When your message "wins," you get a fun burst of fireworks! You can also vote on the messages you see, and each message with votes gets a permanent link with its vote history. The catch? Messages only stay in the pool while you're actively on the site, emphasizing the "now" of the experience.

Who can benefit from it? Anyone who has a fleeting thought they want to share, a quick question for the world, a link they think might be interesting, or even just wants to experience the unpredictable stream of collective consciousness. It's for the curious, the spontaneous, and those who enjoy a little bit of internet randomness. Plus, if you have something you want to promote (a new project, a cause, etc.), it's a free shot at being seen by a potentially huge audience for 15 seconds!

Why it's interesting to me:

It's websockets all the way down, providing the same message on all connected devices every 15 seconds. The server is written in C++, split into several components, so if the number of users starts to grow, I can easily roll out a few more "workernodes" to handle the websocket connections for the end users. Crucially, all the server components also use websockets for internal communication, allowing them to reside on the same server or be distributed across several. The frontend is simple React code. Everything is highly optimized so that potentially millions of users can see the same message simultaneously and vote.

4.

Show HN: Flamabl.com – Real-Time Global Collective Thought Stream(flamabl.com ↗)

1 points · by binaryapparatus · 1y ago · 3 comments

comment 2y ago · link · parent

Found somewhere on stackoverflow many years ago and being my shell banner ever since:

    .-------.
    |  Hi   |
    '-------'
        ^      (\_/)
        '----- (O.o)
               (> <)

comment 3y ago · link · parent

I am happy zsa/ergodox ez user for many years and was waiting for something like this from zsa, since moonlander wasn't for my hands. My current ergodox layout doesn't use keys that are removed on voyager, so everything plays perfectly. I can vouch for the zsa product quality, since my ergodox didn't hiccup for many years with lots of typing.

It is hard to explain to people who never tried qmk layers that more keys doesn't mean better keyboard, having proper layers on home row is many times more ergonomic. One of the things that don't click unless you try I guess.

comment 3y ago · link · parent

> How does it deal with interrupted backups?

Any new backup is hardlinked against previous in temporary 'in-progress' directory, then renamed to proper name at the end. If backup breaks, new 'saf backup' by default first removes 'in-progress' than starts things again (linking with latest good one) but you can 'saf backup --resume' to try to finish interrupted one. I prefer clean try again (which is the default) but --resume works well too.

> Can it automatically prune backups older than N days?

Yes, manually by 'saf prune' on top of 'saf backup' doing prune itself. Prune periods are defined in each .saf.conf, per backup source location, with the defaults of 2/30/60/730/3650 days, for all/daily/weekly/monthly/yearly backups. All defaults are easy to change per source.

> I don’t see anything about encryption.

saf doesn't deal with encryption, only with transport. I prefer to use other specialized tool for the encryption if I have such backup target that needs one.

comment 3y ago · link · parent

With me that's absolutely okay. We all need more choice and HN is a great way to learn about alternatives. Few nice things I borrowed from those two scripts mentioned in readme (credit given) wouldn't be possible without alternatives and open source.

comment 3y ago · link · parent

"saf bugs, rsync bugs/misconfiguration"

On top of many cheap backups, I am also trying not to rely on any single peace of technology (I know, it is not ideal that hardware and OS remains the same on any computer no matter what backup is used). If I use saf as my preferred rsync based solution I will also use Borg or duply/duplicity as a additional backup to avoid rsync bugs.

Having two or more rsync based backups, so they all go trough the same rsync pipe, makes much less sense than mixing completely different backup solutions, right?

comment 3y ago · link · parent

Those same questions always bug me, and I did try all from very smart to very brute force solutions. I love ZFS but then we can question ZFS and OS bugs in the same manner as saf or rsync -- that rabbit hole is deep and quickly becomes expensive since ZFS may need ECC ram and other more expensive components.

Lately, in last few years, I am leaning towards using many cheap backups instead of clever and more expensive ones, with the idea that many of them can't all break at the same time. Yes occasional checks are good but safety in numbers seems as a good strategy.

It is not an accident that saf tag line says "one backup is saf, two are safe, three are safer" ;)

comment 3y ago · link · parent

In my understanding, rsnapshot is equivalent of 'saf backup' which is only one bit of saf functionality. saf has few more commands to be able to see and analyze what's on the backup target side.

rsnapshot uses centralized rsnapshot.conf, saf has git style .saf.conf per each backup source location.

Apart from using rsync, there are more differences than similarities between rshapshot and saf.

comment 3y ago · link · parent

Author here. Yes, I am also the one that loves to see alternatives on topic of interest to me on HN. However putting an effort to publish different take on something already 'solved' is either because I want my own solution no matter what (I don't) or because other solutions didn't fully cover all my use cases (they didn't). I would gladly use somebody else code instead of my own, if that was possible.

Two scripts linked at the bottom of README.md are almost perfect and I used one or another for years, but one of them sometimes misses to hard link with previous backup, creating new full backup and wasting resources -- not something that's easy to detect since they all look correct before 'du' or similar analysis.

saf solves few of the problems I faced during the years in a elegant way: multiple targets, target related commands, reliability. Why not XY? Why not saf?

13.

Show HN: Saf – simple, reliable, rsync-based, battle tested, rounded backup(github.com ↗)

89 points · by binaryapparatus · 3y ago · 24 comments

comment 3y ago · link · parent

Two+ years in Algarve, with registered activity and paying all the taxes here. Having foreign income all my taxes fall within sweet NHR regime. Can't say anything bad about bureaucracy, with proper lawyer help it is slow-ish but very decent process.

Lease prices are driven by taxes and tourism, short term (AL) accommodation is taxed at 6%, long term lease contracts go from 30% (for 1+ year contracts) down to 10% (for 10+ years contracts). Obviously landlords are pushed into short term accommodation which creates lack of long term offers. Matter of getting taxes more fair over long/short term categories would fix the market immediately.

Quality of life and nice people are above anything else so I wouldn't change a thing from this current setup.

15.

Show HN: I Made a Decent Android TV Web Browser

4 points · by binaryapparatus · 4y ago · discuss

comment 6y ago · link · parent

Huge Tridactyl fan here, it works beautifully. I am using it for over a year, ever since I spotted its mention at Suckless 'rocks' page: https://suckless.org/rocks/

comment 6y ago · link · parent

> Weight: 67g bottom out if using Panda springs, 100gf bottom out if using Halo True springs

That means they require more force than Model M? Too much I think.

comment 7y ago · link · parent

Great tip, thanks, trying it now. Seems nicer and easier to tweak than spacemacs, from my perspective.

comment 7y ago · link · parent

I was using/am using:

    Plug 'tmhedberg/SimpylFold'
    "Plug 'python-mode/python-mode', { 'branch': 'develop' }
    "let g:pymode_python = 'python3'
... in different combinations. Deleting any char takes surprising amount of time, so much so that I usually mark block to delete instead of char by char even if it is three char block. Of course I may be using wrong plugins, however that's what I found that should be used in various articles online.

comment 7y ago · link · parent

Interesting, I don't often use Python but recent project had few 3000+ lines .py files, which make Vim _very_ unresponsive when editing. Other languages weren't so problematic but Python code is what made me look at Emacs direction at the first place.

comment 7y ago · link · parent

"Exobrains, on the other hand, stuff Vim full of plugins, functions, and homebrew mappings in a vain attempt to pretend they’re using Emacs."

This is disturbingly accurate from my point of view. I keep wondering if I should finally jump ship and stop tweaking vim with questionable results. Spacemacs? Pure emacs + evil? Suggestions welcome.

comment 7y ago · link · parent

"Nidavellir is real? Seriously? I mean, that place is a legend. They make the most powerful, horrific weapons to ever torment the universe. I would very much like to go there, please."

comment 7y ago · link · parent

I first heard of Tridactyl because it was listed on https://suckless.org/rocks/ page. It filled huge gap left from Vimperator and no complaints on my side. Works well.

comment 7y ago · link · parent

    function convert-decimaltobinary(){
        n="$1"
        bit=""
        while [ "$n" -gt 0 ]; do
            bit="$(( n&1 ))$bit";
            : $(( n >>= 1 ))
        done
        printf "%s\n" "$bit"
    }
    function convert-binarytodecimal(){
        echo "$((2#$1))"
    }
    function convert-hextodecimal(){
        echo $(( 16#$1 ))
    }

comment 7y ago · link · parent

Huge additional plus, entr does not rely exclusively on inotify, it is also 'BSD kqueue wrapper. It is the only command line utility that I found that allows cross platform (linux/BSD) scripting with file system events.

I have few scripts that rely on entr and I am always sure they are OS agnostic.

comment 7y ago · link · parent

Sorry if off-topic: How does DO compare to Linode? I have lots of experience with Linode but since I hear good things about DO I would love to try it out.

27.

Tridactyl: A Vim-Like Interface for Firefox, Inspired by Vimperator/Pentadactyl(github.com ↗)

2 points · by binaryapparatus · 7y ago · discuss

comment 7y ago · link · parent

I did initial plunge into Haskell when I started using xmonad, looking at config file was visibly 'something else'. I would probably recommend starting with Haskell first -- if you want to properly blow your mind that's the way to go. All the principles are common so diving into Elixir took very little time afterwards. Some principles are getting their way into imperative languages and it is much easier to grasp them on pure functional level first. Understanding and using map, filter and reduce, in JS project, was much easier to grasp immediately because they borrow that logic from functional languages.

Elixir is beautiful but probably few notches easier to understand and write than Haskell. Reason I would start with Haskell is that it doesn't hide functional logic with syntactic sugar. For example variables in Elixir are not mutable but since you can assign to the variable already used in function, it can prevent programmer from understanding what immutable really means.

comment 7y ago · link · parent

What an amazing language. I am working on a Elixir project, with a lot of Erlang peaces used directly. Integration is flawless and beautiful to observe. I do have many languages in my toolbox but only few of them were truly exciting for me, Haskell six or so years ago and Elixir/Erlang/OTP this year.

comment 8y ago · link · parent

https://newsboat.org/ Newsboat, fantastic RSS reader, built on top of newsbeuter.

http://www.mutt.org/ Mutt for email of course.

https://vifm.info/ Vifm file manager, I am using it for everything, not having any other file manager on my system.

https://github.com/pimutils/khal Khal for calendar.

https://github.com/scheibler/khard/ Khard for contacts.

https://github.com/pimutils/vdirsyncer Vdirsyncer to sync calendar and contacts with any web calendar service.

12345
10