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
0

RE: freesewing.social/@Kholud1972/

If you have the means to help Kamala and Kholud, please donate to their campaign. They are suffering the incredibly harsh realities of life in the midst of a genocide and need our help and compassion.

chuffed.org/project/152941-hel

0
0
0

RE: social.vivaldi.net/@TonyVivald

For the last two months, our mascot Tony has been trying to persuade people to leave Big Tech behind as their new year resolution for 2026. We're already in March, so it's time to put an end to this campaign, but we hope you'll let us keep walking with you on this journey towards digital sovereignity.

Here's some mantras for you to repeat in front of the mirror every morning:

"I can make choices."
"My data is mine to control."
"I'm done being used and abused by big corporations."

We've got this!

0
0
0
1

I have a question about Python libraries and testing scope.

If I'm importing 'serial' in my library, and use it like the following to create a connection to a sensor:

--- start code ---

import serial

class Sensor:
def __init__(self, serial_device):

self.__serial_device = serial_device

try:
self.__connection = serial.Serial(
port=serial_device,
baudrate=9600,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
)

except serial.SerialException:
print("Could not establish serial connection to sensor")

--- end code ---

how much testing should I do around the serial connection? Just mock up a few buffers (byte streams), and see how my class handles unexpected input?

One the one hand, I want to make the library as solid as possible. On the other hand, I don't want to run tests on code I don't control (the library module). I know of the 'mock-serial' utility, but haven't used it.

The aim is to make a Python version of my Arduino library for the CozIR Ambient CO2 sensor:

codeberg.org/mjack/ambientCO2/

0
0
0
2

I have a question about Python libraries and testing scope.

If I'm importing 'serial' in my library, and use it like the following to create a connection to a sensor:

--- start code ---

import serial

class Sensor:
def __init__(self, serial_device):

self.__serial_device = serial_device

try:
self.__connection = serial.Serial(
port=serial_device,
baudrate=9600,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
)

except serial.SerialException:
print("Could not establish serial connection to sensor")

--- end code ---

how much testing should I do around the serial connection? Just mock up a few buffers (byte streams), and see how my class handles unexpected input?

One the one hand, I want to make the library as solid as possible. On the other hand, I don't want to run tests on code I don't control (the library module). I know of the 'mock-serial' utility, but haven't used it.

The aim is to make a Python version of my Arduino library for the CozIR Ambient CO2 sensor:

codeberg.org/mjack/ambientCO2/

0
1
0

Introducing TestFlight version of my latest app: Changelogs. It's an app that lets you track releases of other applications. Quickly add your favorites and receive notifications when new versions are available.

Started this one almost 4 years ago and finally decided to release to public. Looking for testers to find any issues before release to App Store.

testflight.apple.com/join/J849
changelogs.thanel.me

Screenshot of the main screen in the app. An unread queue that lists new releases in a card stack. You swipe right to mark release as read or left to keep it unread for later.Screenshot of timeline listing tracked application's releases in chronological order.Screenshot of the tracked applications list.Screenshot of the share extension showing new app being tracked.
0
0
0

Ich bin froh über die Entscheidung meines Instituts, die Verwendung sogenannter KI-Tools in Studien- und Prüfungsleistungen vollständig zu verbieten. Keine „Prompt-Kompetenz“, kein „Man muss die KI nur *richtig* einsetzen“, kein „Wir können uns dem nicht verschließen“, sondern die einfache Erkenntnis, dass „KI“ das Gegenteil von dem ist, was unsere Studierenden lernen sollen. geisteswissenschaften.fu-berli

0
11
0
0
3
0
0
0
1
1
0
0
1
0
0
1
1

이란 장기전 셈법…美, 3천만원 드론 격추에 60억원 미사일 쓴다 송고2026-03-03 09:55 쌍방 공습역량 급감중…"이란, 美·이스라엘 방공망 소진 노려" 전쟁결과에 중대변수…이란 탄약고갈 vs 미국 고비용·반전여론 www.yna.co.kr/view/AKR2026...

이란 장기전 셈법…美, 3천만원 드론 격추에 60억원 ...

0
0
0
1
0

Noch nie war die Arbeit des CCC für unsere Gesellschaft so wichtig wie heute. Darum wird das Congress Center Hamburg zu klein für uns. Beim kommenden Congress, dem 40c3, verlassen wir das CCH. Für die nächsten Jahre ziehen wir in die Messehallen Hamburg. Dort ist viel mehr Platz. Platz für ERFAs, Spaces, Assemblies, Projekte, Kunst und Vorträge. Hoffen wir, dass dieser neue Ort genug Raum für das ganze Chaos und all unsere Ideen bietet.

0
1
2
0

皿うどんは良いよね。選択肢といえば麺の太さくらいで、お好み焼きみたいに麺がなくなったりキャベツと粉混ぜてから焼くみたいなカスタムが発生してなくて安心感ある

0

Win11 신버전 일본어 IME 너무 buggy해서 진짜 영원히 못 쓰겠다. 윈10 초기부터 내내 말썽이더니 24H2 25H2 다 와도 여전히 개쓰레기다. 뭐 삐끗하면 브라우저 입력시에 1. 변환을 누르면 스레드째로 잠겨버림 2. 삭제동작시 마지막 한글자를 못 지우고 잠겨버림 마소제 소프트웨어는 이미 지난 십년시점에도 별로 칭찬할만한 꼬락서니가 아니었지만 2020년대의 물건은 특기할만큼 개똥쓰레기가 되어있다. 사람새끼가 내놓는 물건 같지가 않음.

0
0
1
0
0