Natchnął mnie przedostatni wykład z Farmakologii, na której profesor opowiadał o gazach bojowych takich jak VX, sarin, soman czy tabun. Jak one działają? Otóż wszyscy mamy coś takiego jak nerwy. Te nerwy przekazują impulsy do mięśni. Jak to się odbywa? Z końcówki nerwu uwalniana jest niewielka ilość acetylocholiny. Pod wpływem tej acetylocholiny mięsień się kurczy.… Continue reading O nikotynie, gazach bojowych i środkach na pasożyty
Category: Uncategorized
Designing stuff in Python
While navigating the murky waters of writing not only correct but also extendable, easy-to-read, well just let’s say it’s good code, I’ve had a lingering thought. How to I write my code to be testable? What are the guidelines to testing? Here go my considerations from today. The Environment design pattern This is the pattern you’d… Continue reading Designing stuff in Python
Configuring GitLab behind a reverse proxy
Many of you are discouraged by the arduous task of making a GitLab run behind a reverse HTTPS proxy. What is an reverse HTTPS proxy? It’s a (preferably letsencrypt hooked) Web server that terminates SSL and routes your URLs into correct services. This terminator should be a nginx (if not, please adjust respectively). This article… Continue reading Configuring GitLab behind a reverse proxy
Some words about Python to prior Java programmers
tl;dr – if you class name ends with Collector, Executor or Task, did you consider writing collect(), execute() or task() instead? Dude, not everything is a class. In Java, you cannot have free procedures. In Java if you wanted just a behaviour, you would define a class with a constructor and a single routine, say… Continue reading Some words about Python to prior Java programmers
Dobre rady pana ojca
czyli porady zebrane w trakcie 20+ lat doświadczenia z informatyką. Ten artykuł może być od czasu do czasu aktualizowany, dlatego walnij sobie zakładkę i wracaj tu średnio raz na 2 miesiące. Usunę ten disclaimer jak uznam, że jest skończony. Artykuł pisany jest również ze sporym zboczeniem backendowym, ale nawet frontendzi znajdą tu coś dla siebie.… Continue reading Dobre rady pana ojca
Rzeczy o których dowiedziałem się dopiero po trzydziestce – cz. 2
Druga część postu-rzeka “Rzeczy o których dowiedziałem się dopiero po trzydziestce”. Tym razem o szczęściu, oraz o umiejętnym zarządzaniu nim.
What I know about gamedev
Today, a realization struck me. In my life I have published 2 fully featured games (along with the domain and so on). This theoretically grants me the right to do a short ex-cathedra. What games did you make? I made two fully-featured games. First of them was called Bellum, and was essentially a browser-based strategy… Continue reading What I know about gamedev
List do syna – Rudyard Kipling
Poniżej znajduje się moje tłumaczenie słowo-za-słowo genialnego poematu Rudyarda Kiplinga pt. Jeżeli (ang. If) znanego również jako List do syna. Postanowiłem się go dopuścić gdyż obecne tłumaczenie na język polski uznałem za: Także without further ado, zapraszam do konsumpcji. Jeżeli (List do syna) Jeżeli potrafisz utrzymać swą głowę na miejscu, gdy wszyscy inni ją tracą,… Continue reading List do syna – Rudyard Kipling
How an upgrade to Cassandra 4.0.5 broke my Python
I’ve got a bunch of Python 2.7 code hooked up to Cassandra storing there blobs. Cassandra had no problem with returning a bytes or a string. Anyway. Here I switch to Cassandra 4 Suddenly the blobs I expected to be returned just as I put them, Cassandra responded with either a pronounceable blob or a… Continue reading How an upgrade to Cassandra 4.0.5 broke my Python
MATERIALIZED VIEWS in Cassandra 3.0
Have you been bothered by the way Cassandra organized data, and that you need to frequently deduplicate data just to modify or find them at once? Not to bother updating them using the infamous consistency level of QUORUM, which may yield you Cassandra in less that consistent state. MATERIALIZED VIEWS Materialized views are just another… Continue reading MATERIALIZED VIEWS in Cassandra 3.0