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.

0
0

ใกใชใฟใซใ€ใ“ใฎ็ซ‹ใฆๆ–นใ ใจ่‡ชๅฎ…ๅ‡บใฆ2ใค็›ฎใฎไบคๅทฎ็‚นใ‹ใ‚‰ใฎ่ตทๅ‹•ๅŠ ้€ŸๅบฆใงๅพŒใ‚ใซๅ€’ใ‚Œใพใ—ใŸโ€‹:blobcat_outen:โ€‹
ๅ‰ๆ–นใซ่ถณไบŒๆœฌใซใ—ใฆใ€ใ•ใ‚‰ใซๅฐ‘ใ—็Ÿญใใ—ใฆใ‚„ใ‚‹ใ“ใจใงใ€ๅ‰ๆ–นใซ่ท้‡ใ‚’ๅฏ„ใ›ใฆใ€ใƒ€ใƒƒใ‚ทใƒฅใƒœใƒผใƒ‰ใซๆŠผใ—ไป˜ใ‘ใ‚‹ๅฝขใ‚’ใจใ‚‹ใฎใŒๆญฃ่งฃใงใ—ใŸ


RE: https://misskey.io/notes/agugnz2dgdv207zr

1
2
1
0
0
1
3

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
1
3
0

์น˜๋ฐ”๋ชจ๋…ธ๋ ˆ์ผ์€ ์ฒ ๋•์„ ๋งŒ๋“ค๊ธฐ ์ข‹์€๋“ฏ....
๋‚ด๊ฐ€ ์•ต๊ฐ„ํ•ด์„œ ์‚ฌ์ง„ ์•ˆ์ฐ๋Š”๋ฐ ๋„ˆ๋ฌด๋„ˆ๋ฌด ์‹ ๊ธฐํ•ด์„œ ๊ฒ๋‚˜๊ฒŒ ์ฐ์Œ ใ„ทใ„ทใ„ทใ„ท

1

๋ฏผ์ฃผ๋‹น์ด ์ •๋ฌด์ ์œผ๋กœ ํ–‰๋™ํ•  ๋•Œ ์ด๋Ÿฐ ๊ฑด ์‹ ๊ฒฝ ์“ด ์ ๋„ ์—†๋Š” ๊ฑธ๋กœ ์ƒ๊ฐํ•˜๊ณ  ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ์ € ์ž์˜ ์ˆ˜๋ขฐ ์‚ฌ์‹ค ๊ฐ™์€ ๊ฑด ๋‚™๋งˆ ์‚ฌ์œ ๊ฐ€ ๋˜๊ฒ ์ง€. ์—ฌ๊ธฐ์„œ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ๋Š” ์‚ฌ์‹ค์€ 1) ๋ฏผ์ฃผ๋‹น์—์„œ๋Š” ๋„๋•์„ฑ, ์ •๋ฌด์  ํ•„์š”์„ฑ์ด ์ˆœ์„œ๋Œ€๋กœ ์ค‘์š”ํ•˜๊ณ  ๊ทธ๋ณด๋‹ค ๋‚ฎ์€ ๊ณณ ์–ด๋”˜๊ฐ€์— ์†Œ์ˆ˜์ž ์ธ๊ถŒ ๋“ฑ ๋œ ์ค‘์š”ํ•œ ๋ญฃ๋“ค์ด ์žˆ๋‹ค. 2) 1์—์„œ ์ธต์ด ์ž˜ ๋ถ„๋ฆฌ๋˜์–ด ์žˆ๋Š” ๊ฑธ ๋ณด๋ฉด ๋ฏผ์ฃผ๋‹น์—์„œ๋Š” ์†Œ์ˆ˜์ž ์ธ๊ถŒ ํ–ฅ์ƒ์€ ๋ฏผ์ฃผ๋‹น์ด ์ƒ๊ฐํ•˜๋Š” ๋„๋•์„ฑ๊ณผ ๋ณ„๊ฐœ๋กœ, ์œค๋ฆฌ์ ์ธ ๋‹น์œ„๊ฐ€ ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์ด๋‹ค. ๊ฒฐ๋ก ์€ ๋ญ...

RE: https://bsky.app/profile/did:plc:uabkr6tn7ru4b4e5e6udleuf/post/3mb4uequcok2j

1

์น˜๋ฐ”๋ชจ๋…ธ๋ ˆ์ผ์€ ์ฒ ๋•์„ ๋งŒ๋“ค๊ธฐ ์ข‹์€๋“ฏ....
๋‚ด๊ฐ€ ์•ต๊ฐ„ํ•ด์„œ ์‚ฌ์ง„ ์•ˆ์ฐ๋Š”๋ฐ ๋„ˆ๋ฌด๋„ˆ๋ฌด ์‹ ๊ธฐํ•ด์„œ ๊ฒ๋‚˜๊ฒŒ ์ฐ์Œ ใ„ทใ„ทใ„ทใ„ท

1
0
3
0

@playground้Šใณๅ ด๏ผˆใ‚ฐใƒซใƒผใƒ—ๅฎŸ้จ“ๅ ด๏ผ‰
@mastodon_japan_netMastodon Japan Server ใ‚ฐใƒซใƒผใƒ—
ใ‚ฒใƒผใƒŸใƒณใ‚ฐPCใฎๅ“่–„ใซใ‚ˆใ‚Šใ€ใ‚ฒใƒผใƒŸใƒณใ‚ฐใ‚ฒใƒผใƒ ๆฉŸใฎ็™ปๅ ดใŒๅพ…ใŸใ‚Œใ‚‹ใ“ใจใจใชใฃใŸ

0
0
0
0
1

The EU will launch the digital euro as a 100% European digital payments system to replace reliance on Visa, Mastercard, and Apple and Google Pay, with the European Central Bank issuing a digital form of cash. It will be built entirely in Europe, have zero transaction fees, instant payments, and strong privacy, giving the EU full control over its payments infrastructure.

independent.ie/business/digita

(archive.ph/ERzTA)

0
0
3

๊ทธ๋Ÿญ์ €๋Ÿญ ์›๊ณ  ๋‚˜๋จธ์ง€ ํ”Œ๋กœ์šฐ๋Š” ๊ฐ€๋‹ค๋“ฌ์€ ๊ฑฐ ๊ฐ™์€๋ฐ, ์ด์ œ ์ธ๊ฐ„ ํƒ€์ž๊ธฐ๊ฐ€ ๋˜์–ด ์“ฐ๋ฉด ๋˜๋Š”๊ฐ€... ๋ง‰ํžˆ์ง€๋งŒ ๋ง์•„๋ผ... ์•ˆ ๋ง‰ํžˆ๋ฉด ์ดํ‹€?์‚ฌํ˜?์ด๋ฉด ์ž˜ ํ•˜๋ฉด ๋˜์ง€ ์•Š์„๊นŒ๋‚˜...

0
0

ๅฎ‰ๅ…จ้‹่ปขใ‚’ใ™ใ‚‹ใชใƒผใกใ‚ƒใ‚“ใ€ใˆใ‚‰ใ„ใชใ๏ฝž
ใ‚„ใฏใ‚Š้ซ˜็ดš่ปŠใƒ‰ใƒฉใ‚คใƒใƒผใฏๅ„ช้›…ใซ้‹่ปขใ—ใฆใ“ใใ‚ˆ
โ€‹:blobcatuwu:โ€‹

0
0
0
0
0
0
0
0
0

@noellabo@fedibird.comใฎใˆใ‚‹
ใ™ใฟใพใ›ใ‚“ใ€fedibirdใ‹ใ‚‰ใฎใƒ•ใ‚ฉใƒญใƒผใ‚คใƒณใƒใƒผใƒˆใ‚นใƒ‘ใƒ ไฝ•ใจใ‹ใงใใพใ›ใ‚“ใงใ—ใ‚‡ใ†ใ‹ใ€‚ๆฏŽๅบฆๆฏŽๅบฆ้€šๅ ฑใŒๆฅใฆใƒขใƒ‡ใƒฌใƒผใ‚ทใƒงใƒณใŒ่ฒ ๆ‹…ใซใชใฃใฆใ„ใ‚‹ใฎใงใ€ๆ–ฐ่ฆใฏ2้€ฑ้–“ใƒ•ใ‚ฉใƒญใƒผใ‚คใƒณใƒใƒผใƒˆใงใใชใ„ใ‚ˆใ†ใซใ™ใ‚‹็ญ‰ใ€ๅฏพ็ญ–ใ‚’ใŠ้ก˜ใ„ใ—ใŸใ„ใงใ™ใ€‚

0
1
1
0
2

ๅ‹ๆ‰‹ใซ4ๆžšใ ใ‘ใ—ใ‹่ผ‰ใ›ใ‚Œใ‚“ใŠใ‚‚ใฆใŸใ‘ใฉใ„ใฃใฑใ„ใฎใ›ใ‚Œใ‚‹ใ˜ใ‚ƒใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ€œใ‚“๏ผ๏ผ๏ผ๏ผ๏ผ๏ผ๏ผ๏ผ่ชฟๅญไน—ใฃใกใ‚ƒใŠ
ใ“ใ€œใ€œใ€œใ€œใ€œใ€œใ‚“ใชใƒ†ใƒˆใ•ใ‚“ใฎ็ตตใ‚’ใ‚†ใ‚‹ใฃใจๆฐ—ใพใพใซๆใ„ใฆใ‚‹ไบบ้–“ใงใ™ใ‚ใ‚ˆ

1

ไธ‹ๆ‰‹ใซ้€Ÿๅบฆๅ‡บใ™ใจใ€ใ‚ซใƒผใƒ–ใงๆ™ฎ้€šใซ้ ๅฟƒๅŠ›ใงไธ‰่„šๅ€’ใ‚Œใ‚‹ใ‹ใ‚‰ใ€ใ‚ใฃใกใ‚ƒ็œŸ้ข็›ฎใซๅฎ‰ๅ…จ้‹่ปขใงใ™ใ‚ˆโ€‹:meowflushed:โ€‹

RE: https://misskey.io/notes/agura3196mie0clx

1
0
0
0
0
0
0
0