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

Even when the underlying reality changes, the status quo has a strong grip. People are deeply creatures of habit. It's also difficult for the emerging understanding to overcome the barrier of becoming "common knowledge" and, prior to that, people will follow old patterns because they assume that it's expected.

High-salience events create new common knowledge and so lead to larger changes in behaviour than might otherwise be justified. For example, the '56 Suez crisis was a high-salience event that communicated that world power had shifted from Europe to the US. Its impact was much greater than a narrow analysis would convey.

The Russo-Ukrainian war and today's events are also high-salience, and they communicate that there aren't any rules any longer.

One consequence is that, in the absence of Pax(ish) Americana, the only effective defense is a nuclear one. This was well understood: a lot of the motivation for creating the post-WWII system was to create an alternative to nuclear weapons. But Libya gave up its program and Gaddafi ended up dead. Ukraine gave up its weapons and got invaded. Venezuela didn't have them.

It'll take a while for this to play out, but I suspect keeping it in mind will help with understanding the news over the next decade or so.

0
0
1
0
0
0
0
0
0
0
0
0
0
UCC = ์šฐ์—์‹œ๋งˆ ์ปคํ”ผ ์ปดํผ๋‹ˆ, ๋ณธ์ ์€ ๊ณ ๋ฒ .
์šฐ์—์‹œ๋งˆ ์ปคํ”ผ์ ์ด UCC์—์„œ ์šด์˜ํ•˜๋Š” ๊ณณ ์ž…๋‹ˆ๋‹ค.
๋‹ค๋ฅธ ๋ธŒ๋žœ๋“œ๋Š” ์นดํŽ˜๋ผ, ๋ฉœ๋กœ์šฐ ๋ธŒ๋ผ์šด.
๋‹ค๋ฅธ ์ด๋ฆ„์€ ๋‹ค UCC๊ฐ€ ๋ถ™์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
0
๊ณ ๋ฒ ํ•˜๋ฉด ๋‹ˆ์‹œ๋ฌด๋ผ ์ปคํ”ผ๊ฐ€ ์œ ๋ช…ํ•œ๋ฐ... ๋‹ค๋ฅธ ๊ณณ๋“ค์€ ์ปคํ”ผ๋ฅผ ์ฐพ์•„๋‹ค๋‹ˆ์‹œ๋Š” ๋ถ„๋“ค์ด๋ฉด ์•Œ์•„์„œ๋“ค ์ž˜ ๊ฐ€์‹ค ๊ฒƒ ๊ฐ™๊ณ , ๊ด€๊ด‘์œผ๋กœ ๊ฐ€์‹œ๋Š” ๊ฑฐ๋ฉด ๊ธฐํƒ€๋…ธ์ด์ง„์นธ ์Šค๋ฒ…์€ ์ž ๊น๋งŒ ๊ฐ€์‹œ๊ณ , ๋ฐค์— ๋ฉ”๋ฆฌ์ผ„ํŒŒํฌ ์Šคํƒ€๋ฒ…์Šค๊ฐ€!
0

่‡ชๅฎคใฎไบ‹ใ‚’ใ€Œๆดž็ชŸใ€ใจๅ‘ผใ‚“ใงใ„ใ‚‹ใ€‚
็†็”ฑ๏ผšๅŠฃๅŒ–้˜ฒๆญขใฎ็‚บใซๅŸบๆœฌใ‚ซใƒผใƒ†ใƒณใ‚’้–‰ใ‚ใฆใ„ใ‚‹็‚บ

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

Google Docs has been annoying me lately, and I had a vague memory of writing my own web-based file management system back in the Long Long Ago. I found it; it's from 1998; and it took about ten minutes to get it working again.

Edit to add screenshot:

0

โ€œTrump hinted at a future conflict with Mexico in particular in an interview with Fox News Saturday morning.โ€

โ€œSomething is gonna have to be done with Mexico,โ€ said the convicted felon:

newrepublic.com/post/204884/ve

0
0
0
1
0
1
1
0

The why and how of backing up your Mastodon data

Why this matters

Recently, the admin of a relatively prominent Mastodonยน server, med-mastodon.com, decided to stop maintaining the server and shut it down without warning. This is, generally speaking, a terrible thing to do, but I will give the admin the benefit of the doubt and assume that he had some very good reason why he needed to shutdown without giving his users time to export their data or migrate their account to a new server (though as far as Iโ€™ve seen he hasnโ€™t shared any such explanation).

Unfortunately, this isnโ€™t the first time this has happened, and it wonโ€™t be the last. Even servers whose admins have agreed to follow the Mastodon Server Covenant, which among other things requires server admins to commit to giving users at least 3 monthsโ€™ warning before shutting down, occasionally go belly-up without warning.

This could happen to your server at any time. Your server admins may be great people, but shit happens. Not only that, but your serverโ€™s admins or moderators could decide at any time to suspend or delete your account.

Some people protect themselves from this by self-hosting their own server. That has advantages, but it also has disadvantages, including time and money costs, and so itโ€™s not for everyone. If youโ€™re not interested in self-hosting, but you also donโ€™t want to run the risk of suddenly losing all your Mastodon data, then you should be backing up your data on a regular basis.

How to back stuff up

The most important thing to back up is the list of who you follow; fortunately thatโ€™s also the easiest. In the Mastodon web app, go to Preferences, then click โ€œImport and Exportโ€ on the left, and click โ€œCSVโ€ to the right of โ€œFollowsโ€.

There you can also download your lists, muted and blocked people and domains, and bookmarks. All of those can be imported into a different Mastodon server using the โ€œImportโ€ page linked on the left.
Set up a reminder to back up this stuff regularly!

The next thing to back up is posts and uploads. If you consider social media transient, you may not care about this, but otherwise, you can periodically click the โ€œRequest your archiveโ€ button on the export page. Youโ€™ll receive a notification when the archive is ready to download.

Note that unlike the CSV files, your posts and media are not easy to upload into a new server. Unless you want to jump through some hoops (see below), youโ€™re just downloading them for reference.

If youโ€™re paying attention, you may have noticed that thereโ€™s something important missing above: what about your followers? Can those be backed up? Alas, itโ€™s not easy.

The way itโ€™s supposed to work is when you decide you want to migrate to a new account, you configure your old account to tell your followers automatically what your new account is, and their accounts follow your new account automatically. But obviously, that doesnโ€™t work if your old server goes away with no notice!

Iโ€™m not aware of any web tools for backing up your followers (if you know of any, post a reply!), so if this is something you care about, youโ€™re going to need to resort to the command line. Command-line tools that support exporting followers from your server include:

If youโ€™re so inclined, you could also write code to do the export yourself; Mastodon has a rich, well-documented API.

Note that mastodon-archive also supports backing up a bunch of other stuff, so you could use it to set up periodic automated backups of all the data listed above, rather than just followers. Personally, I have mastodon-archive backing up my data automatically every night.

The toot utility mentioned above also supports downloading followed hashtags (โ€œtoot tags followedโ€œ), which you may also want to back up if following hashtags is a significant part of how you use the fediverse.

What to do with the backed-up data

You pretty much canโ€™t import your old posts

The bad news first: there is no good way to migrate your posts from one server to another. This isnโ€™t just true if the old server goes away; thereโ€™s also no good way to copy posts from an existing server to a new one. People have been asking for this for many years but apparently it has not been enough of a priority for the Mastodon developers to implement it.

Thereโ€™s at least one early-stage effort to build this functionality, and somebody has written a clever tool that server admins can use to do it as long as the old account is still available, but neither of these is a robust general-purpose solution.

You can still browse your exported data, look at the posts in a text editor, write your own code to do stuff with the data, etc. Furthermore. There are a number of tools for viewing and searching through your exported post archive.

How to get your followers back

If your account wasnโ€™t migrated automatically because it disappeared out from under you, then assuming youโ€™ve archived your followers as described above, youโ€™re going to need to reach out to them one by one, let them know what your new account is, and ask them to follow you again.

(If youโ€™re in online fediverse communities where people know you, you can also make a public post about your new account and ask people you know in those communities to boost it. You may need to do this several times to catch everybody, and you might still miss some people.)

If you have a lot of followers, then sending a bunch of DMs one by one to all of them will probably be a drag. You could automate it with toot, but be careful of running afoul of your serverโ€™s posting limits; you may get throttled if you post too many DMs too quickly.

Also, keep in mind that some people donโ€™t read DMs at all, or donโ€™t read DMs from people they donโ€™t follow, so everyone may not see your messages asking for them to follow you again.

Restoring followed hashtags

You can use the toot utility (โ€œtoot tags follow hashtagโ€œ) to restore the followed hashtags from the list you previously exported with toot. Or if there arenโ€™t too many you can just search for them by hand in the web app and then follow them.

Everything else, you can import

The import page in the web appโ€™s preferences can be used to import the CSVs exported from the export page. If you used mastodon-archive or toot or whatever to export the data instead, then you can manually construct a CSV in the correct format for import.


ยนThis article focuses on Mastodon for clarity, but much of what is written here is applicable to any type of fediverse server.

Share
0
0
0
0
0
0
0
0
0

ใ‚ใƒผใ‚‚ใตใ‚‚ใต๏ผใŠใ†ใกใฎใ‚ชใƒ•ใƒˆใ‚ฅใƒณใŒๅฎŒๅ…จใซ่‡ชๅˆ†ๅฅฝใฟใซใ‚ปใƒƒใƒ†ใ‚ฃใƒณใ‚ฐใ•ใ‚ŒใŸใ‚‚ใตใ‚‚ใตใงใ‚‚ใตใ‚‚ใต๏ผโ€‹:murakamisan_sleeping:โ€‹

0
0
0
1
1

์ „์— ์ „๊ฒฉ๋Œ€์™•์ด์—ˆ๋˜๊ฐ€? ์žก์ง€ ์—ฐ์žฌ์ž‘ ๋‘˜๋Ÿฌ๋ณด๋Š”๋ฐ ์ค‘๊ฐ„์— ํŽธ์ง‘๋ถ€ ๋ช…์˜๋กœ ๋ชจ ์ž‘ํ’ˆ์€ ์—ฐ์žฌ๋ฅผ ์ค‘์ง€ํ•˜๊ธฐ๋กœ ํ–ˆ์Šต๋‹ˆ๋‹ค ๊ฐ™์€ ๊ณต์ง€ ํŽ˜์ด์ง€๋ฅผ ๋ณธ ์ ์ด ์žˆ์–ด์š”. ์ž‘๊ฐ€์—๊ฒŒ ์ตœ์ข…ํ™”๋ฅผ ์—ฐ์žฌํ•  ๊ธฐํšŒ์กฐ์ฐจ ์ฃผ์ง€ ์•Š๊ณ  ๋๋‚ด๋ฒ„๋ฆด ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒŒ ๊ฐ•๋ ฌํ•˜๊ฒŒ ๊ธฐ์–ต์— ๋‚จ์•˜์ฃ .

0
0
0
0