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.

1
0
0

今日は、としぁさんの128 GiB /bootの件について、/bootに256 MiB割り当てようとして「256M」と入力したらディスクマネージャーから256 Miセクター(セクターはディスク内部の記憶容量の単位。伝統的に1セクターは512バイトを意味するが、現代のコンシューマー向けHDD・SSDでは1セクターが4096バイトを意味する。)と解釈されて256 × 1024 × 1024 × 512バイト、すなわち128 GiBになったという経緯を知る収穫があった。

0
0
0
0

중국 출장용 폰 새로 주문했는데 계정도 새로 파고 모토롤라 폰을 사봤음 99달러인데 카메라 성능도 좋고 스타일러스 펜도 있고 좋구만 램이 약간 작긴한데 구글 픽셀 9 못지 않음... 번호도 새로 받았다 아마 가서 혹은 가기전에 새로 심을 하나 개통해야할듯 과거에는 회사에서 출장용으로 아이폰 대여해줬는데 판데믹 이후로 다 없앴음 하하...

0
0
0

6/

Obviously, beginners are NOT going to do this, but — some power-users may want this level of control.

There are different way this could be done, but — one way might be that power-users could use RDFa to explicitly specify what data from the HTML gets into the ActivityPub / ActivityStreams data.

Again, beginners and typical users would NOT do this.

But a power-user might want to.

Here is an example —

0

This must be peak UI design. That super thin, tiny and faint edit field is not visible on a small phone screen. I tried for ages to tap around and find it. Only saw it after taking this screenshot and viewing it on my iPad with its better screen. Seems to be 0.1 pt line in fefefe on ffffff. Absolutely rubbish UI design.

0
0
0
0
0

5/

So, what would be a good user-experience (UX) for power-users be — in a system that automatically creates ActivityPub / ActivityStreams data from HTML and Markdown‽

One thought I had is that power-users could explicitly mark what data from their HTML gets into the ActivityPub / ActivityStreams data (if they want to).

I'll explain —

0
0

TFed 🍉🌻 shared the below article:

How to Build a Simple ActivityPub Reminder Bot in Python

AmaseCocoa @cocoa@hackers.pub

This post guides you through building a simple ActivityPub bot in Python using the `apkit` library. The bot listens for mentions and schedules reminders for users. It covers setting up the project, generating cryptographic keys for secure communication, defining the bot's identity as an ActivityPub Actor, and initializing the `apkit` server. The tutorial walks through the core logic for parsing reminder commands, sending notifications, and defining necessary web endpoints like `/actor` and `/inbox`. It also details how to handle incoming activities, such as `Follow` and `Create` events, and how to run the application using `uvicorn`. While the example uses in-memory storage for simplicity, the post suggests improvements like persistent storage and robust task queuing for production environments. This tutorial provides a solid foundation for building more complex ActivityPub applications.

Read more →
15
1
0
0
0
0

2/

What are "good" ways of automatically creating ActivityPub / ActivityStreams data from HTML and Markdown‽

I think the answer depends on who, for example, is writing HTML, and how they are writing it.

For example, is this a typical user? Is this a power-user? Do they know HTML? And if they do know HTML, how well do they know it? Etc?

I will show you what I mean —

...

0

Apropos of nothing, the Vision Pro remains an incredibly weird piece of technology. On the one hand I can understand why it exists more than it seems most pundits can. If you talk to the people who've used it, nobody's under the impression that it's anything but an ultra-luxury frivolous purchase, but within that category, it does deliver some powerful experiences that can't be had anywhere else. But it remains an own-goal for very stupid apple-y reasons

0

삶의 탐구 여정에서 발견한 자아 성찰의 순간들

1. 내면의 소리에 귀 기울이는 용기
2. 스스로를 사랑하는 깊이 있는 연민
3. 변화에 대한 두려움 없이 받아들이기
4. 순간의 불완전함을 아름답게 받아들임
5. 자신의 한계를 넘어서는 끊임없는 성장

0

1/

I have spending time thinking of ways you could automatically create ActivityPub / ActivityStreams data from HTML and Markdown

Most people will probably write in plain UTF-8 text, or Markdown, or HTML

How to do you take that and get it onto the Fediverse and Social Web‽

This isn't just a question of how to technically do it — but also a question of user-experience (UX)

I.e., what are "good" ways of doing it‽

...

2/

What are "good" ways of automatically creating ActivityPub / ActivityStreams data from HTML and Markdown‽

I think the answer depends on who, for example, is writing HTML, and how they are writing it.

For example, is this a typical user? Is this a power-user? Do they know HTML? And if they do know HTML, how well do they know it? Etc?

I will show you what I mean —

...

0

1/

I have spending time thinking of ways you could automatically create ActivityPub / ActivityStreams data from HTML and Markdown

Most people will probably write in plain UTF-8 text, or Markdown, or HTML

How to do you take that and get it onto the Fediverse and Social Web‽

This isn't just a question of how to technically do it — but also a question of user-experience (UX)

I.e., what are "good" ways of doing it‽

...

0

1/

I have spending time thinking of ways you could automatically create ActivityPub / ActivityStreams data from HTML and Markdown

Most people will probably write in plain UTF-8 text, or Markdown, or HTML

How to do you take that and get it onto the Fediverse and Social Web‽

This isn't just a question of how to technically do it — but also a question of user-experience (UX)

I.e., what are "good" ways of doing it‽

...

0
0

What I'm listening to today: "Late Morning", Breakbeat Era

A couple days ago I linked the song from this album I thought had the closest chance of getting mainstream euro radio recognition for this odd Roni Size project. This (incidentally the next song on the album) is the track I think appeals best if you just like SOUNDS. Six minutes onrushing bull head down subway to an afternoon headache, breakbeat jungle boiled down to annihilation of all thought, moksha in motion

youtube.com/watch?v=uKTcJqkfzNU

What I'm listening to today: "icm", a773

One last track from the musician I've been calling "the fusion-jazz-on-modular-synths guy". So thing is, mixing jazz and electronic music is not odd, it's just what you're *expected* to do is cut up the jazz as a backing for sampled breakbeats. This raises a question: What if a773 made a track with breaks? Turns out it turns out extremely well. Something here for both prog and Ninja Tune lovers. Nice understated bassline groove.

youtube.com/watch?v=7ikmBVXgg-g

0

On corporate social media, using euphemism and indirect phrasing (maybe) evades censorship. On the fediverse, doing so evades the filters that other fedizens have set up. If you want to talk about a current distressing topic in the news, if you're not going to CW, *use unredacted, specific keywords*

0
0
1
0
0
0

@silverpill

If an HTTP request is made on a page on a Retejo server with:

Accept: application/activity+json

For some pages Retejo will automatically create a ActivityPub / ActivityStream version of the page.

(Retejo looks at the HTML to infer what the data in the application/activity+json document should be.)

...

Currently it is working on way, but — I want to improve it a bit though.

.

0

Fun fact: HTTP RFCs and drafts between ~1994 and 1999 assumed that servers using compression were storing precompressed data:

"The content-coding is a characteristic of the entity identified by the Request-URI. Typically, the entity-body is stored with this encoding and is only decoded before rendering or analogous usage."

This assumption is critical for interpreting a later sentence that otherwise makes no sense, about servers being expected to default to the "identity" non-encoding... if it is "available." Why would non-encoding ever not be an option? Precompression.

This is non-normative flavor text in the RFC, but I still think it's useful for interpreting its guidance for my weird-ass situation.

0
1
0
0
0

HR 3860 allows the Secretary of State to revoke the US passport of anyone “whom the Secretary determines has knowingly aided, assisted, abetted, or otherwise provided material support to an organization the Secretary has designated as a foreign terrorist organization.”

There’s no due process, and the only way to overturn it is to “request a hearing to appeal such denial or revocation not later than 60 days after receiving notice of such denial or revocation.”

congress.gov/bill/119th-congre

0
1
0

Mastodon weirdness

When I write the same custom emojis without spaces after each other like so
:test::test:
they are not picked up, but when I add another one with space like so
:test::test: :test:
all three are picked up. Seems like the server and client logics are different.

0

lb: isn't it funny how any criticism of IP law is immediately shut down with the argument that without IP protection, there would be no incentive to innovate, and yet in practice the IP system we have actively makes things worse

0
0
0

Disclosed a script to generate script to upgrade that depends on old shlibs of base at brew.bsd.cafe.
brew.bsd.cafe/TomAoki/sh_scrip

It can be used just for confirming no more ports depending on old shlibs of base. See generated script or file specified by NeedUpdate variable.

0
0
0
1
0

The great thing about Unix CLI or SQL syntax is that if you know what you're doing, you can get a lot done. The terrible thing about Unix and SQL is that if you don't know what you're doing, you can do a lot of damage. Unix/SQL doesn't protect you from yourself. It just assumes you know what you're doing.

A meme featuring Lisa Simpson writing on a chalkboard. The chalkboard text says: "UPDATE and DELETE statements should raise a syntax error on a missing WHERE clause."
0
0
0
0