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

Indonesian government to investigate origin of washed-up logs

Throughout the catastrophic flooding that rocked Sumatra over the weekend, residents noted a common phenomenon – huge piles of logs that crowded on shorelines, rumbled through floodwaters, and piled up where homes once stood.

From 2001 to 2024, lost 320,000sq km (123,553sq miles) of tree cover, according to watchdog Global Forest Watch, equivalent to about 20 percent of its total tree cover area in 2000.

Rescuers walk on a log to cross a river during the search for flood victims in Batang Toru, North Sumatra [Binsar Bakkara/AP]
0
0
0
1
0
0
0
0

Ovocný koláč, cukrová vata nebo žvýkačka – cukrovinkové příchutě elektronických cigaret už brzy zmizí. Obchodníci mají od pondělí sedm měsíců na jejich doprodej. Vyhláška, která pravidla pro e-cigarety zpřísňuje, zavádí i povinná zdravotní varování.

0
0
0
0
0
0
0

After procrastinating for long (I had some of unfinished business to take care of) I finally exported my data from my Instagram, Facebook and Twitter accounts, now its scrapping time.

At the moment I have deleted:
- Main Instagram account
- Gaming Instagram account
- Motorsport Twitter account (an account I basically used once a year to be able to live comment the 24 Heures du Mans)
- Professional networking Twitter account (created and left to rot as soon as I understood that reading and sharing JaVAScrIpT HoT TaKEs isn't going to enrich my day nor my wallet)

Late this week as soon as I finish apartment hunting I'll delete my Facebook account too (might recreate one with as little data as I can just for future apartment search and buy nothing groups).

0

I got into "self-defense" and guns briefly as a young conservative adult.

I took the self-defense part seriously & started reading books about it, & you know what I learned? The best self-defense is to recognize & leave dangerous situations. Your weapon is your final backup. Your best bet is staying out of danger in the first place.

So any fucking person that is talking about "I wish someone would try something" because they want to get into a fight is NOT fucking interested in self defense.

0
0
1

https://news.jtbc.co.kr/article/NB12273106

쿠팡 측은 "키 종류에 따라 다양하지만, 업계에서 5~10년으로 설정하는 사례가 많다는 걸로 알고 있다"는 입장입니다.

ㅋㅋㅋㅋㅋㅋ 지금까지 온 게 용하네. 아마존 따라한다면서 보안은 코리안 스탠다드도 안 되는 회사였구나? 쿠팡?

0
1
0
0

At this weekend I finally established another network in my home — a ZigBee network. A looong time ago (in 2010 year) I touched the ZigBee networking in my university (ITMO, previously IFMO, in Saint-Petersburg) — these times it was a new technology, not used widely. And as a student I have some fun time playing with ZigBee main router, supplemental router and end-devices. You can view old photos and screenshots of old software on a my extremely old blog: h0rr0rr-drag0n.blogspot.com/20 (and read a blogpost, if you understand Russian).

It is kindly fascinating, that now, after 15 years, I can just buy some ZigBee-powered devices from AliExpress (using Black Friday discounts) and connect them to the network inside my house right in the way I did it in the university 15 years ago!

Sadly, although I bought native supported main router device, based on the EFR32MG2 with some software from Ember (EZSP v8) inside, the OpenHAB doesn't support this device natively — it supports it, but since my server is running NetBSD, I got problems with some bundled with OpenHAB things. Looks like some native libraries (rxtx-java) don't have bundled NetBSD versions. And the same library in the repository built for Java 8, not for Java 17.

So, I decided to use Zigbee2MQTT, not to build the necessary Java library myself. It was kinda scary — use program, which connects my ZigBee network via ZigBee USB-dongle to the MQTT server — which is written on JavaScript :drgn_hide: . Not on the C (as I can totally understand, for a such low-level program, operating with embedded devices) or at least on the C++/Perl/Python/whatever. But, looks like it works good enough, if I don't try to pair the device in wrong mode (my window sensors has two modes to pair them with network: first "common" mode causes zigbee2mqtt to silently crash and the second "compatible" mode works without problems).

And I could understand now, why people has so much problems with smart home security. Installed MQTT server mosquitto — it allows unauthenticated connections by default. Installed zigbee2mqtt — it allow connections to frontend without any password by default :drgn_sigh:

At least these two services don't each much memory: 1.2 Mb for Mosquitto and 75.6 Mb for ZigBee2MQTT.

For now, my ZigBee sensors works pretty well and robust, like these devices from university 15 years ago :drgn_aww:

OpenHAB main page with some labels in it. Labels divided into two parts: "Weather" and "Home".

On the "Weather" part there are labels with the next contents:
1) Temperature (-0.1°C) with temperature graph on the background.
2) Textual description of the weather (cloudy)
3) Pressure (759,062 mmHg) with pressure graph on the background
4) Humidity (93%)
5) Wind speed (18,7 km/h)

On the "Home" part there are the next labels with data from my ZigBee sensors:
1) Temperature in the living room (23.3°C) with temperature graph on the background.
2) Temperature in the kitchen (22.4°C) with temperature graph on the background.
3) Humidity in the living room (23.0%) with humidity graph on the background.
4) Humidity in the kitchen (29.0%) with humidity graph on the background.
5) State of the window in the living room (window opened).Zigbee2MQTT dashboard with three devices in it:
1) Temperature sensor in kitchen. It exposes the temperature, humidity, signal level and battery level. Also it provides controls to set temperature units, and to calibrate readings of temperature/humidity.
2) Temperature sensor in living room. It has the same controls.
3) Sensor with magnet contact, installed on the window in the living room. It exposes, set of contact, "low battery" signal, battery level and signal level.
0
1

잠옷 입고 국회 간 시민도, 응원봉 든 시민도··· "변한 게 없어 울화통" [계엄 1년, 국회 다시 찾은 시민들] www.hankookilbo.com/News/Read/A2... "송화(34)씨는 그날 반려묘 밥그릇에 사료를 유난히 수북이 담았다. 남편 허우진(35)씨가 긴장감을 애써 감추며 한마디 했다. "왜 그리 많이 줘? 우리 금방 돌아올 거야." 2024년 12월 3일 오후 11시쯤, 송씨 부부는 허둥지둥 서울 은평구 집을 나섰다. 잠옷 차림에 패딩을 걸치고는 차량을 국회로 내몰았다."

잠옷 입고 국회 간 시민도, 응원봉 든 시민도··· "...

0
0
0
0

Kicking off (thanks, @neilNeil Brown), I'll open with remind(1)

While it took several articles and a couple attempts before I switched over to using it, once you taste the power of what it can do, it's hard to go back to less-capable calendaring tools.

While the classic "garbage day is on Thursday unless there was a holiday earlier in the week, in which case it moves back to Friday" scenario is a nice little demo of its power, one of the best examples from my daily use is the kids' school calendars:

• the teen has an A/B schedule which doesn't mesh nicely with calendar days, week-days, etc

• similarly, our elementary-age kiddo has a 4-day cycle schedule for her "specials" class

But remind's nonomitted() function makes quick work of both of those, taking into consideration weekends, the school holidays, and using PUSH/POP directives for high-school testing days that impact his A/B schedule but not her 4-day cycle. I've never encountered another calendar that handled all the edge-cases with so little effort.

It's a little rocky interchanging with other calendars (you have to use rem2ics to create .ics files to share, and pulling in others' iCal is non-trivial and doesn't seem to maintain the fidelity of remote events).

But otherwise, this runs a great deal of my life schedule.

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

Got a vendor feedback request recently that said:

“For every survey completed, we’ll provide a nutritious meal to a schoolchild in India.

“So if you don’t help us meet our KPIs, THE CHILDREN WILL STARVE AND IT WILL BE YOUR FAULT.”

The last part was implied.

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