@nurkiewicz@fosstodon.org
@nurkiewicz@fosstodon.org avatar

nurkiewicz

@nurkiewicz@fosstodon.org

Member of https://mastodon.social/@JavaChampions | 👨‍💻 Senior Engineering Tech Lead at monday.com | ✉️ nurkiewicz (at gmail) | Podcaster: 🔊 http://nurkiewicz.com

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

'See Bryan Cantrill's description of Larry Ellison: "You need to think of Larry Ellison the way you think of a lawnmower. You don't anthropomorphize your lawnmower, the lawnmower just mows the lawn, you stick your hand in there and it'll chop it off, the end. You don't think 'oh, the lawnmower hates me' -- lawnmower doesn't give a shit about you, lawnmower can't hate you. Don't anthropomorphize the lawnmower."' https://news.ycombinator.com/item?id=39035787

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar
  • In my response_check callback does not run when SimpleHttpOperator receives HTTP 4xx
  • Yes, it's bypassed for non 2xx codes. In order to run response_check you must configure check_response to False
  • WAT?
  • What?
task = SimpleHttpOperator(  
 extra_options={'check_response': False},  
 response_check=lambda ..., # now it runs  
 # ...  
)  
nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

TIL in if you post +:some-emoji: it will add that emoji as a reaction to the message above. For example: +:thumbsup: or simply +:+1:

nurkiewicz, to Redis
@nurkiewicz@fosstodon.org avatar

Shout out to team for providing this interactive sandbox. Great to learn or quickly check API: https://try.redis.io

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

Being a cloud provider, has a surprisingly large and high quality library of tutorials: https://www.digitalocean.com/community/learning-paths

holly_cummins, to random
@holly_cummins@hachyderm.io avatar

If I hadn't deliberately put a failing test into my pull request, I would never have noticed that the CI wasn't running my tests.

Never trust a test you haven't seen fail ... in all environments.

nurkiewicz,
@nurkiewicz@fosstodon.org avatar

@twasink @holly_cummins Exactly! If I can outsource time-consuming checks to CI server, why bother? I even wrote an article about it like a decade ago ;-) https://nurkiewicz.com/2013/02/breaking-build-is-not-crime.html

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar
nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar
nurkiewicz, to javascript
@nurkiewicz@fosstodon.org avatar

Nicely explained difference between Promise.all and Promise.allSettled in : https://www.youtube.com/watch?v=f2Z1v3cqgDI

sormuras, to Java

Always a good read: Best Practices by Jonathan Giles

https://www.jonathangiles.net/jbp

nurkiewicz,
@nurkiewicz@fosstodon.org avatar

@sormuras @rotnroll666 @FrVaBe Unlisted posts: "Exactly the same as public, but with the following difference:
Your post will not appear in Mastodon’s public timelines" https://docs.joinmastodon.org/user/posting/#unlisted. My client (https://elk.zone), on the other hand, describes it as "Visible for all, but opted-out of discovery features"

nurkiewicz, to github
@nurkiewicz@fosstodon.org avatar

Issues has... issues. Also API Requests, Pull Requests, Actions, Pages, Operations, Webhooks, Packages and Codespaces

nurkiewicz, to RSS
@nurkiewicz@fosstodon.org avatar

"This is a tool you can use to get feeds into the . You can use it to create an account which will post a new entry any time there's a new entry in the feed" https://feedsin.space/

nurkiewicz, to til
@nurkiewicz@fosstodon.org avatar

: "According to the UN, the year 2007 witnessed the turning point when more than 50% of the world population were living in cities, for the first time in human history" https://en.wikipedia.org/wiki/Urbanization

glaforge, to Java
@glaforge@uwyn.net avatar

Slugs: or how to create friendly URLs from your blog post titles? (in )

By removing diacritical marks, punctuations, and potentially doing transliteration.

https://glaforge.dev/posts/2024/01/url-slug-or-how-to-remove-accents-in-java/

nurkiewicz,
@nurkiewicz@fosstodon.org avatar

@glaforge Cool! I also heard the term "romanization" for removing accents: https://nurkiewicz.com/slides/charbusters#/120, https://en.wikipedia.org/wiki/Romanization

nurkiewicz, (edited ) to Java
@nurkiewicz@fosstodon.org avatar

The current leaderboard of The One Billion Row Challenge is a testimony of . 6 out of 10 best results run on it. https://github.com/gunnarmorling/1brc/blob/main/README.md#results

nurkiewicz, to RSS
@nurkiewicz@fosstodon.org avatar

I just found https://kill-the-newsletter.com/. It's a simple services that gives you unique e-mail and ( to be precise) feed. Whenever someone sends newsletter to that e-mail, it becomes an entry in your Atom feed. Your personal inbox remains safe and empty

nurkiewicz, to Java
@nurkiewicz@fosstodon.org avatar

"Your mission [...] is deceptively simple: write a program for retrieving temperature measurement values from a text file and calculating the min, mean, and max temperature per weather station. There’s just one caveat: the file has 1,000,000,000 rows!" https://www.morling.dev/blog/one-billion-row-challenge/ by @gunnarmorling

nurkiewicz, (edited ) to javascript
@nurkiewicz@fosstodon.org avatar

What's the best approach to safely add new nested property to object?

a)

obj.field = obj.field || {};  
obj.field.value = 42;  

b)

obj.field = {...obj.field, value: 42};  

c)

obj.field = Object.assign({}, obj.field, { value: 42 })  
nurkiewicz, to music
@nurkiewicz@fosstodon.org avatar

I struggle to comprehend that all these groundbreaking albums:

Nirvana - Nevermind
Pearl Jam - Ten
U2 - Achtung Baby
Red Hot Chili Peppers - Blood Sugar Sex Magik
Metallica - Metallica
Massive Attack - Blue Lines
R.E.M. - Out of Time
Guns N' Roses - Use Your Illusion I and II
Primal Scream - Screamadelica
My Bloody Valentine - Loveless

were released the same year...

nurkiewicz, (edited ) to random
@nurkiewicz@fosstodon.org avatar

I wonder how appleinsider.com "values our privacy" by sharing our data with 1500+ other "partners". Fun fact: Apple is not on that (unsearchable and almost alphabetical) list

nurkiewicz, to random Polish
@nurkiewicz@fosstodon.org avatar

2024 is the election year with polls in at least 64 countries. I wish all of us, especially journalists, to finally understand the difference between percents and percentage points

nurkiewicz, to javascript
@nurkiewicz@fosstodon.org avatar

We can make fun of as long as we want, but 0.1 + 0.2 not equal 0.3 is not JS's bug. It's because it follows a standard, like many other languages:

$ node  
Welcome to Node.js v18.12.1.  
> 0.1 + 0.2  
0.30000000000000004  
$ python3  
Python 3.11.6  
>>> 0.1 + 0.2  
0.30000000000000004  
$ irb  
3.0.0 :001 > 0.1 + 0.2  
 => 0.30000000000000004  
$ jshell  
| Welcome to JShell -- Version 19.0.2  
jshell> 0.1 + 0.2  
$1 ==> 0.30000000000000004  
nurkiewicz, to OpenAI
@nurkiewicz@fosstodon.org avatar
nurkiewicz, to random Polish
@nurkiewicz@fosstodon.org avatar

A fascinating story of Polish hackers discovering and bypassing evil DRM-like mechanism planted by the producer in... trains. They were suppose to report malfunction at a given date. Or when serviced at a competitor's location (sic!) https://media.ccc.de/v/37c3-12142-breaking_drm_in_polish_trains

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

Finding and fixing problems - maintenance.
Finding solutions to problems you didn't know you had - engineering.
Finding solutions to non-existing problems - bike shedding.
Finding insecure, inefficient and wasteful solutions to non-existing problems - cryptocurrencies

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • modclub
  • DreamBathrooms
  • InstantRegret
  • tacticalgear
  • magazineikmin
  • Youngstown
  • thenastyranch
  • mdbf
  • slotface
  • rosin
  • Leos
  • kavyap
  • Durango
  • normalnudes
  • ethstaker
  • everett
  • GTA5RPClips
  • cubers
  • khanakhh
  • ngwrru68w68
  • anitta
  • provamag3
  • cisconetworking
  • tester
  • osvaldo12
  • megavids
  • lostlight
  • All magazines