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

When you've made modifications to a file in vi(1) and then find that
you can't write it, type ``<ESC>!rm -f %'' then ``:w!'' to force the
write

This won't work if you don't have write permissions to the directory
and probably won't be suitable if you're editing through a symbolic link.

If you have sudo(8) installed and permissions to use it, type
``<ESC>w ! sudo tee %'' to force a write.

0
0

When you've made modifications to a file in vi(1) and then find that
you can't write it, type ``<ESC>!rm -f %'' then ``:w!'' to force the
write

This won't work if you don't have write permissions to the directory
and probably won't be suitable if you're editing through a symbolic link.

If you have sudo(8) installed and permissions to use it, type
``<ESC>w ! sudo tee %'' to force a write.

0
0
0
0
0
0
0
0
0
0

A lot of Fediverse software has a HEALTH-CHECK URL.

But not all Fediverse does.

It would be better if ALL Fediverse software had a HEALTH-CHECK URL.

...

A HEALTH-CHECK URL is a special URL that tell others if the system is running properly.

It would return "200 OK" if everything is fine. And return "500 Internal Server Error" if there is a problem

...

A HEALTH-CHECK URL is important to those who actual run and administrate Fediverse servers

A HEALTH-CHECK URL would, for example, make sure:

• the web-server is up,
• the database connection is fine,
• maybe query one or more important tables to make sure that still works,
• make sure any 3rd party APIs are working,
• etc.

If any of those things has a problem, then it would return "500 Internal Server Error".

Else (if everything was fine then) it would return "200 OK".

0

A lot of Fediverse software has a HEALTH-CHECK URL.

But not all Fediverse does.

It would be better if ALL Fediverse software had a HEALTH-CHECK URL.

...

A HEALTH-CHECK URL is a special URL that tell others if the system is running properly.

It would return "200 OK" if everything is fine. And return "500 Internal Server Error" if there is a problem

...

A HEALTH-CHECK URL is important to those who actual run and administrate Fediverse servers

0

Head of Homeland Security can't even secure her purse.

CNN: Department of Homeland Security Secretary Kristi Noem fell victim to a thief while eating dinner at a downtown Washington, DC, restaurant Sunday night. Noem, who was asked about the theft at the White House Easter Egg Roll, acknowledged the incident & said the matter has not been resolved.

The Secret Service, which provides security for Noem, reviewed security camera footage at the restaurant & saw an unknown white male wearing a medical mask steal her bag & leave the restaurant. The thief got away with Noem’s driver’s license, medication, apartment keys, passport, DHS access badge, makeup bag, blank checks, and about $3,000 in cash.
___

Who the hell carries around $3000 in cash?!? Did she just take a bribe or something?

0

hard to fix Tusky bug 😒

So there is one bug that I'm aware of since at least a year and already spent days trying to fix it.

Here is how it goes:
You click a post in the home timeline, but a different one opens. You click an image, the app crashes (because it tries to open an image from a different post that has none).

I have seen it myself multiple times and got it reported often, but I have no idea what triggers it.

(continued in next post)

hard to fix Tusky bug 😒

So here is my call for help: If you see this bug again or have seen it recently, please tell me everything that could help me track it down.

• What did you do before it occured?
• Which Device and Android Version?
• How many and which instances are you connected to?
• How was the network connection?
• Did you change any Tusky settings from their default?
• Any weirder than usual posts in your timeline that could have glitched the app?
• etc

thx 🥺

0

hard to fix Tusky bug 😒

So there is one bug that I'm aware of since at least a year and already spent days trying to fix it.

Here is how it goes:
You click a post in the home timeline, but a different one opens. You click an image, the app crashes (because it tries to open an image from a different post that has none).

I have seen it myself multiple times and got it reported often, but I have no idea what triggers it.

(continued in next post)

0
0
0
0
0
0
0
0

I am really touched by how many people have sent me messages about my essay. I write a lot of things in a lot of ways: THIS thing is not written for everyone and was written to be challenging. I think those for whom it was written have found it!

There are a few reasons for that difficulty: I think it's fun. I like it. It's how I think. It's also effortful in the same labyrinthine way that trying to figure out why you never BELONG in tech is labyrinthine.

fightforthehuman.com/why-i-can

0
0
0

Tips to repro bugs on Android

• If you know where it happenend, try to use an environment as similar as possible. Device, Network, Appversion, etc. For fedi apps, same instance, same post, etc.
• Try with spotty network and offline
• Try after a cold start, and after bringing the app to the foreground.
• Turn on the developer option "don't keep activities". This helps simulate the system memory killing old activities and can expose very weird behavior.
• Rotate the screen

Tips to repro bugs on Android

• click fast
• or super slow
• Not all bugs happen in debug versions. Code shrinking etc should not but can alter the behavior.
• To repro race conditions I often manipulate the code to make stuff take exactly as long as necessary for the race to occur
• For visual glitches, turn animation speed down in developer settings. You will see exactly what is happening.

0

Tips to repro bugs on Android

• If you know where it happenend, try to use an environment as similar as possible. Device, Network, Appversion, etc. For fedi apps, same instance, same post, etc.
• Try with spotty network and offline
• Try after a cold start, and after bringing the app to the foreground.
• Turn on the developer option "don't keep activities". This helps simulate the system memory killing old activities and can expose very weird behavior.
• Rotate the screen

0
0
0
0

남편이랑 근처 호숫가 산책하고 비어가르텐 가서 맥주도 한잔 했다. 극우성향 가족을 어떻게 대할 것인가 이야기했고 나름 결론을 냈다. 마음이 한결 낫다. 독일에선 코로나 때 갈라진 가족들이 많대. 코로나 터지고 예방주사와 마스크, 격리 조치에 반대하는 시위에 나가는 가족 구성원 이해하기 vs 내란세력 지지하는 가족 구성원 이해하기😇

1

With this release, Ivory now UNOFFICIALLY supports additional fediverse platforms such as GoToSocial, IceShrimp.NET. I've tried these platforms with mostly success.

The better the Mastodon API support on your platform, the better your experience will be. Obviously, platform specific features like emoji reacts or reply controls aren't going to be available. Still nice!

Edit: SNAC and Hollo work as well now!

tapbots.social/@ivory/11411043

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

A couple of quick thoughts on this before I disappear for my morning block of meetings 1. Domains are still valuable identity signals! Multiple methods are good to have 2. Identity verification will continue to evolve from here 1/2

RE: https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/post/3lndjyecwcs2a

0
0
0
0
0
0
0