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”
How to read a live-stream of posts on #Mastodon using #Java #Spring and #WebFlux. About 5-10 posts per second
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
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”
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
@[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
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”
#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:
“All good APIs are alike; each bad #API is bad in its own way” - Leo Tolstoy
My talk about Project #Loom from #Jetbrains #Intellij #IDEA Conf is online: https://www.youtube.com/watch?v=0DUlUzqr09I #Java
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
#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
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
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
Hofstadter’s Law: It always takes longer than you expect, even when you take into account Hofstadter’s Law
Replying to a Mastodon post
@moelholm Check out https://javabubble.org by @marcandsweep. Currently 140 #Java gurus, ready to batch import via CSV :-)
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 😉
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.
#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!
#React VFC and FC, less than 1 year apart :-). See also:
Migrating #Uber from #MySQL to #PostgreSQL (2013: https://www.yumpu.com/en/document/view/53683323/migrating-uber-from-mysql-to-postgresql)
Why Uber Engineering Switched from #Postgres to #MySQL (2016: https://www.uber.com/en-PL/blog/postgres-to-mysql-migration/)
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)
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.
“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
@jponge Check out https://mastodon.social/@marcandsweep/109264939603607451
“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
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
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
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/
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
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




