What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

Commitin programming crimes }:->

Few weeks ago I seriously looked to the mine OpenHAB installation and asked a question for myself: "Am I really need it?" Look, I have a few ZigBee devices, which are connected to the my server with the help of ZigBee2MQTT. Thusly, all necessary values and knobs are accessible through the MQTT topics.

And I'm using the OpenHAB (big Java application which eats ton's of RAM and constantly swapping) just to:
1) Read values from MQTT topic
2) Read weather forecast from Open-Meteo through simple REST API endpoints
3) Store all the data to the PostgreSQL DB.
4) Display these data in the nice Web page which works only in browsers with JS engine.

So, basically, I trade tons of RAM and processing power just for a nice web-page with few indicators. While retrieving data from my ZigBee devices processed by the another service.

After that thought, I started to think about replacing this monster with small hand-written program, which will not eat 700 MB of RAM. Just Nginx, small FastCGI script on C, which will read values from DB and display them on the simple HTML page. And another small daemon (also written in C) which will take data from MQTT topic (and from REST API of Open-Meteo) and will write them to the DB. And possibly some PGSQL procedures to analyze these data.

At least I'll have fun :drgn_happy_blep:

Emacs buffer with some C code, which spews out the string with HTML, with substituted values for temperature and humidity.
0
0
0
0

Thanks to (mainly, there are other factors involved) I have to wait weeks or maybe even a month for a couple of 2TB mechanical hard drives.

It's not a big issue for me, I needed them for my home machine (I want to move my data archive from external hard drives to a small raid accessible from NFS and DLNA) but I can wait before doing that. Yet, this leaves me pretty scared for the future: in 2008 short term financial prospects were dire but at least we had cool tech and the promise it could have helped us towards a better future. Now we have dire prospects, tech shortages and optimism in even shorter supply.

0
0

Thanks to (mainly, there are other factors involved) I have to wait weeks or maybe even a month for a couple of 2TB mechanical hard drives.

It's not a big issue for me, I needed them for my home machine (I want to move my data archive from external hard drives to a small raid accessible from NFS and DLNA) but I can wait before doing that. Yet, this leaves me pretty scared for the future: in 2008 short term financial prospects were dire but at least we had cool tech and the promise it could have helped us towards a better future. Now we have dire prospects, tech shortages and optimism in even shorter supply.

0
1

If you are interested in news about ...

"Online transactions would involve immediate processing through the central bank's ledger or through authorised intermediaries, while offline transactions can be recorded locally and later synchronised with the central ledger when connectivity resumes, meaning the system can be used even in areas with poor connectivity while preserving cash-like privacy for its users."
...
"The Council's mandate sets out key design features, including limits on digital euro holdings to prevent it from endangering financial stability by draining away deposits from banks."

reuters.com/business/finance/e

0
1

First case of Apple Notes real-time sync producing logical garbage from constituent conflict data of our shopping list:

Lleis
8- 66 fack
henelchs
Nudom
Caelat
raak, owhe X rohiren, Rucolao. Ron Aldi- Sahecis-Saenlre Essif bssez 2x
Aedi

This is your reminder that CRDTs don’t solve or avoid conflicts for you, they just predictably converge into nonsense.

0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0

蒸気でホットアイマスクが高いので代わりに繰り返し使える小豆の入ったアイマスクを買ったんだけど、温めるとめっちゃお汁粉のニオイしてお腹空く

1
0
1
1

🦊 Firefox 146 is out! What's new:

• Inspector: auto-hides unused CSS custom properties
• contrast-color() + text-decoration-inset support
• scope enabled by default
• WeakMap/WeakSet now accept Symbol keys
• WebDriver BiDi upgrades

Release notes 👇
developer.mozilla.org/en-US/do

0
1
0
1
1
1

PC関連パーツが値上がりする

スマホも値上がりして悪質
『スマホ狩り』が流行る

外出時にスマホを出すのがリスキー
のでみんカセットテープ(ウォークマン)で音楽を聞くように

:left_side_jagged_balloon_without_tail:​今のうちにウォークマンを買うのがお得​:right_side_jagged_balloon_without_tail:

2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0

프렌드십컵 결승도 그렇고 vs에드 2차전도 그렇고 vs레이지도 그렇고, 이야기 마무리하는 단계에선 늘 듀얼 자체는 로그도 연출도 기깔나게 말아놓고선 스토리 때문에 영 불탈 수 없게 만드는 것도 참 재주야

0
0