Post

mastodon.social Archive

I migrated from mastodon.social to fosstodon.org. This page is meant to archive all my posts from the old instance, just in case.

This entire page was generated using a script that can be found here: github.com/nurkiewicz/nurkiewicz.com/tree/master/src/mastodon-import. The script takes export from any Mastodon server (in ZIP format) and turns it into a markdown page.


Ep #91 of #aroundITin256 podcast: Asynchronous communication: loose coupling in distributed systems: https://nurkiewicz.com/91

“There are two main ways to communicate between components in your distributed system: synchronous and asynchronous. Synchronous communication is like making a phone call. The system on the other side must be present and you actively wait for a response to your every question. Examples of this style include #REST, #SOAP and #GraphQL

Mon Nov 21 20:26:14 2022 #


How to read a live-stream of posts on #Mastodon using #Java #Spring and #WebFlux. About 5-10 posts per second

WebClient.create() .get() .uri("https://mastodon.social/api/v1/streaming/public") .retrieve() .bodyToFlux(ServerSentEvent.class) .subscribe(System.out::println);

Fri Nov 18 13:54:14 2022 #


I once worked at a bank with a very strict firewall. Accessing Facebook or GMail resulted in “This website is blocked. Your manager will be notified”. So one day I found a list of a few thousand most popular websites in a large CSV file. I run a script to check HTTP status of all of them.

Never mind the results, I soon realized I just opened, among others, hundreds of adult websites. On a work computer. Notifying my manager. That I visited tons of XXX sites in a matter of minutes. Using curl

Fri Nov 18 12:53:43 2022 #


Ep #90 of #aroundITin256 #podcast: #Mastodon: next-generation, open source social network: https://nurkiewicz.com/90

“After many dramatic events around #Twitter lately, many people, including myself, began experimenting with Mastodon. Superficially it’s an open-source clone of the former that anyone can deploy and host. However, once you look deeper, it’s actually a completely different philosophy and architecture. Let’s focus on how Mastodon federated network is built”

Wed Nov 16 08:01:59 2022 #


11 years of #Twitter posts, 600 tweets and 300 RTs, all archived on my blog: https://nurkiewicz.com/2022/11/Twitter-archive.html

Thank you @timhutton for your https://github.com/timhutton/twitter-archive-parser

Tue Nov 15 21:19:53 2022 #


@[email protected]: “Dziś w Better Software Design rozmowa z @nurkiewicz na temat programowania reaktywnego. Jak działa ten paradygmat, w czym pomaga, a kiedy przyniesie więcej problemów niż korzyści - o tym wszystkim (i nie tylko) można posłuchać w odcinku BSD 44”

https://bettersoftwaredesign.pl/episodes/44

#RxJava #Reactor #Reactive #Java #RxJS

Tue Nov 15 13:17:38 2022 #


The #Netflix Simian Army is growing! #ChaosEngineering at its best at #Twitter:

  • Chaos Monkey: randomly disables individual instances
  • Chaos Gorilla: simulates an outage of an entire availability zone

  • [new] Chaos CEO: fires half of the stuff, figure out later who was actually needed
  • [new] Chaos PO: ships half-baked features with impossible deadlines; rolls back hour later
  • [new] Chaos ego: “turning off the ‘microservices’ bloatware. Less than 20% are actually needed”

Mon Nov 14 22:25:52 2022 #


#TIL from @panprocesor When extracting nullable INT from ResultSet in #Java #JDBC, getInt() method returns primitive int. So if column is nullable, you won’t get null but… 0. Extra care must be taken:

Integer column = resultSet.getInt("column"); if (resultSet.wasNull()) { column = null; }

Mon Nov 14 14:43:31 2022 #


“All good APIs are alike; each bad #API is bad in its own way” - Leo Tolstoy

Mon Nov 14 10:36:56 2022 #


My talk about Project #Loom from #Jetbrains #Intellij #IDEA Conf is online: https://www.youtube.com/watch?v=0DUlUzqr09I #Java

Sun Nov 13 22:17:56 2022 #


I found watching this #AI simulation of predators and preys using #artificialNeuralNetwork pretty mesmerizing: https://www.youtube.com/watch?v=tVNoetVLuQg. At least check out video after 19th minute

Sun Nov 13 21:47:07 2022 #


#TIL: What do the: “two of the world’s deadliest disasters in modern human history: lead poisoning and the depletion of the ozone layer” have in common? Both leaded gasoline and Freon were invented by the same guy, Thomas Midgley Jr.

How he died? “He devised an elaborate system of ropes and pulleys to lift himself out of bed. In 1944, he became entangled in the device and died of strangulation”. Quotes from #Wikipedia: https://en.wikipedia.org/wiki/Thomas_Midgley_Jr. Also, check out https://www.pushkin.fm/podcasts/cautionary-tales/the-inventor-who-almost-ended-the-world #podcast

Fri Nov 11 20:43:19 2022 #


Extremely useful #Linux #Bash knowledge base: https://github.com/jlevy/the-art-of-command-line. I love how dense it is. Just pointers to things you should be aware of, rather than complete #tutorial

Thu Nov 10 15:56:02 2022 #


In #Slack “When you’ve sent a message and notice it’s not quite right, you can unsend it to fix your typo […] and then send it off when it’s truly ready. Unsending messages will remove the message from the channel and return the content, including files, to the message input, where you can edit the message to resend or delete it.”

Use ⌘+Z or Ctrl+Z. See https://slack.com/help/articles/202395258-Edit-or-delete-messages#unsend-a-message

More #Slack tips: https://nurkiewicz.com/2022/01/slack-pro-tips.html

Thu Nov 10 09:21:00 2022 #


Hofstadter’s Law: It always takes longer than you expect, even when you take into account Hofstadter’s Law

Thu Nov 10 09:09:06 2022 #


Replying to a Mastodon post

@moelholm Check out https://javabubble.org by @marcandsweep. Currently 140 #Java gurus, ready to batch import via CSV :-)

Wed Nov 09 20:08:25 2022 #


Since 2019 I have been collecting #crypto scams and fails under https://github.com/nurkiewicz/crypto-hall-of-shame.

However, especially after #NFT craze, the number of cases was impossible for me to digest. @molly0xfff with her @web3isgreat is doing much better work 😉

Wed Nov 09 13:56:22 2022 #


In #Mastodon you can easily filter out posts with tags or keywords you are not interested. Just add custom filter under Preferences.

Toots will be either hidden completely, or hidden with possibility to show anyway.

#Mastodon interface showing a filtered keywords

Tue Nov 08 09:55:38 2022 #


#Math videos by #3blue1brown are stunning. Brilliant visuals, fantastic explanations. Every single movie is a #science masterpiece.

For example, check out the last one: https://www.youtube.com/watch?v=851U557j6HE. I never saw Fourier Transformation being explained so nicely!

Mon Nov 07 20:46:17 2022 #


#React VFC and FC, less than 1 year apart :-). See also:

Google search result showing React.VFC vs. React.FC

Mon Nov 07 13:59:46 2022 #


Replying to a Mastodon post

@philipp_hauer I love #Obsidian for simple #UX. Especially the Command Palette (Cmd+P) helps in navigation. For a while I wrote Work Journal every day, but I switched to notes on #GitHub: https://github.com/nurkiewicz/awesome-notes.

What I use most is looking up relationships between notes, e.g. which one of my colleagues worked for some company or technology.

Things that didn’t work well for me:

  • simple presentations from markdown
  • global knowledge graph is shiny, but not that usable (see image)

Obsidian knowledge graph of all notes, without labels

Mon Nov 07 09:55:58 2022 #


Replying to a Mastodon post

@debugagent With URL in #Java it gets even better. Two different URLs may be considered equal when you have Internet access, but not equal when disconnected. That’s because DNS unavailability triggers fallback to literal comparison. See also: https://twitter.com/tnurkiewicz/status/1519643900423688192

Originally published to a limited audience.

Sat Nov 05 20:20:32 2022 #


“Weeks of coding can save you hours of planning”

Do you know who’s the author of this quote? It seems to be decades old, but I can’t seem to find the source… https://twitter.com/codewisdom/status/1002181404061552640

Sat Nov 05 11:09:03 2022 #


@jponge Check out https://mastodon.social/@marcandsweep/109264939603607451

Fri Nov 04 15:37:16 2022 #


“Where We’re Going, We Don’t Need Servers!” by @[email protected] - very good introduction to serverless and FaaS in particular: https://www.youtube.com/watch?v=Mz-b-rQ9wL0

Fri Nov 04 12:37:04 2022 #


Replying to a Mastodon post

@shmarkus One more idea if #TDD is too much for someone - never fix a bug without proving there’s a bug in the first place. How? By creating a failing test case first. Now you:

  • documented a bug
  • it’s much easier to fix, guided by test
  • code review is simpler
  • you don’t risk someone reverting your fix
  • you gradually build code coverage

Fri Nov 04 09:51:15 2022 #


Replying to a Mastodon post

@yorgos Indeed, I can’t imagine working without clipboard manager. My app of choice is https://tapbots.com/pastebot/, nice and simple

Wed Nov 02 19:18:19 2022 #


4 #Twitter features #Mastodon is better for not having (by @graue). These are deliberate #UX choices:

  • post metrics aren’t visible at first sight
  • notifications when someone likes a reply
  • quoting toots
  • full-text search

See: https://scott.mn/2022/10/29/twitter_features_mastodon_is_better_without/

Wed Nov 02 14:35:46 2022 #


The importance of unit tests is often underestimated. Failing test case takes seconds to fix. Failing production due to the same bug takes hours of troubleshooting, retesting and deploying. We don’t appreciate how much time we save by having them

Wed Nov 02 12:34:03 2022 #


Story time. About a decade ago we sent 700 thousand text messages to one person. Why? Sending an SMS was as simple as inserting a record into a special DB table. Some background job was picking it up and forwarding it to the SMS gateway. But for performance reasons, we disabled transaction isolation 😱. Transaction failed and rolled back 700k times. But the temporarily created record was still visible outside, despite rollback. Please, use transactions. And don’t use the database as a queue

Sun Oct 30 22:32:03 2022 #

This post is licensed under CC BY 4.0 by the author.