|
User input from HTML form fields is generally provided to JavaScript as a string. We’ve lived with that fact for decades but sometimes developers need to extract numbers from that string. There are multiple ways to get those numbers but let’s rely on regular expressions to extract those numbers! To employ a regular expression to […] The post Extract a Number from a String with JavaScript appeared first on David Walsh Blog .
|
|
A retrospective on getting solar panels installed. The installation cost around 5k€ (4k€ after government subsidies), and we were able to generate over 80% of our yearly consumption and save just short of 1k€ in year 1 as well as shave off our CO2 footprint by over a ton
|
|
Executive summary: If you have excess savings that you want to grow and compound with minimum drawdowns, you should put half of it in global stocks, a quarter in bonds, and the last quarter in gold. Rebalance yearly and go to the beach. The Persian Portfolio is an investment portfolio that consists of just three […]
|
|
This site under construction I had a failure scenario with WordPress and PHP versions. As I think a static site should be created statically, I’ve decided to export the current content and create a new web site with Hugo.
|
|
Not technical writing, but Jim Lawless interviewed me on his "Stray Pointers" podcast. We discuss Forth, C, CGI, Python, Go, and AWK.
|
|
I've started a new position as Staff Engineer at Float Health. We're using a nice SaaS tool called Range for daily checkins as well as meeting agendas and notes. The workflow encourages everyone to write a small handful of bullets about the main things they worked on each day. We are lucky enough to have Range founder Dan Pupius working with us at Float Health, and I had to smile and send him this ancient screenshot. This is essentially m..
|
|
In the world of mathematical statistics, there is a constant confrontation between adepts of different paradigms. This is a constant source of confusion for many researchers who struggle to pick out the proper approach to follow. For example, how to choose between the frequentist and Bayesian approaches? Since these paradigms may produce inconsistent results (e.g., see Lindley’s paradox ), some choice has to be made. The easiest way to con..
|
|
This is a story of how a random person on the internet set me thinking and eventually triggered a change to this blog. It started last September, when someone suggested offering email subscriptions in addition to the existing RSS feed. The thing is… I was purposefully not offering email subscriptions! What a waste, someone might say: you had multiple articles reach the Hacker News frontpage in 2023, yet you failed to “capitalize” on the opp..
|
|
In the world of mathematical statistics, there is a constant confrontation between adepts of different paradigms. This is a constant source of confusion for many researchers who struggle to pick out the proper approach to follow. For example, how to choose between the frequentist and Bayesian approaches? Since these paradigms may produce inconsistent results (e.g., see Lindley’s paradox ), some choice has to be made. The easiest way to con..
|
|
In this post I will show you how to setup Linkding, a self hosted bookmark manager that I am personally using for a while now and I am very happy with it. I will also share with you my setup and how I am using it.
|
|
In this post I will show you how to setup Linkding, a self hosted bookmark manager that I am personally using for a while now and I am very happy with it. I will also share with you my setup and how I am using it.
|
|
You've likely heard some variant of the morality story where someone justifies their (commercial) worth as mostly a matter of knowledge, and not just labor. A typical version is as follows - a handyperson is hired to fix a failing heater. They spend a few minutes investigating and listening to it from a variety of locations, and then tap a particular spot with a hammer and fix it. They bill the owner of the heater $300 - the owner obj....
|
|
Streaming services have revolutionized content delivery, sending linear media companies into a panic as they watch traditional cable services decay. “Cutting the cord” is a common practice these days, but the streaming landscape isn’t perfect. We’re a decade into streaming so I wanted to share my thoughts on the state of new media: first impressions, […] The post Thoughts on Streaming Services: 2024 Edition appeared first on David Wals..
|
|
Streaming services have revolutionized content delivery, sending linear media companies into a panic as they watch traditional cable services decay. “Cutting the cord” is a common practice these days, but the streaming landscape isn’t perfect. We’re a decade into streaming so I wanted to share my thoughts on the state of new media: first impressions, […] The post Thoughts on Streaming Services: 2024 Edition appeared first on David Wals..
|
|
The structure [ of most Miyazaki’s works ] is not bound by the western-culture Aristotelean three act setup, conflict, pay-off, and resolution… its about showing you the sweet and sour of life. The loss and the love and the beauty all at the same time. – Guillermo del Toro For more context, see: Move review: The Boy and the Heron .
|
|
Motivation I have needs. Very specific needs. Namely, I want: To hash a corpus of English words, individually …using a cryptographic hash …quickly …in Python. Putting aside that this is a strange thing to want to do, I’ve compiled a few benchmarks to help me chose the best function for my purposes. I’ve found plenty of benchmarks for all these hash functions, but they’re almost always for very large inputs.
|
|
If there are problems with loading a shared library with name libopenh264.so.7 when doing work with ffmpeg, there are two possibilies. Outdated version of ffmpeg. libopenh264.so.7 is not installed. [libopenh264 @ 0x55925d5bf780] libopenh264.so.7: cannot open shared object file: No such file or directory: libopenh264.so.7 is missing, openh264 support will be disabled [mpegts @ 0x55925d59a9c0] Failed to open codec in avformat_find_stream_i....
|
|
I have always appreciated the Go Team investing time on providing the community with the Go Tour . This website is designed to help developers get started in learning the Go programming language. The nice part of the website is that it provides an interactive environment where one can read, write, and run Go examples. Since the first time I’ve navigated this tour, I’ve had a few problems. First, this tour is not comprehensive both in the..
|
|
Dm7 Dm7/A G7sus4 G7/F Never guess and never know Losing everything you own But just before you hit the red Your best ideas hit your head The ones you love will call you back The regulars will treat you bad A bolt of lightning from the blue Now it’s really clear to you Things may not work out how you thought Things may not work out how you thought Maybe it is good, maybe it is bad Either way the only truth we have, is, Things may not work ou..
|
|
Dm7 Dm7/A G7sus4 G7/F Never guess and never know Losing everything you own But just before you hit the red Your best ideas hit your head The ones you love will call you back The regulars will treat you bad A bolt of lightning from the blue Now it’s really clear to you Things may not work out how you thought Things may not work out how you thought Maybe it is good, maybe it is bad Either way the only truth we have, is, Things may not work ou..
|
|
Hi, Ich habe auf main committed. Einfach so 🫢 , du wirst wahrscheinlich eine von zwei Reaktionen haben: “Ja und? Langweile mich nicht damit!” oder “WTF? DAS GEHT DOCH NICHT!” Wenn du zu der Kategorie des ersten Beispiel gehörst: Cool! Entweder du bist noch nicht live und hast die Freiheit Trunk-based zu entwickeln, oder deine Organisation ist so weit mit der Automatisierung und dem DevOps Gedanken, dass du auch Trunk-based ent..
|
|
In theory, behavior change should be easy. At first glance, it seems like you control your behavior. So, if you desire different behavior, why doesn’t your behavior change as instantly as your desire to change it? In short, lasting change of habitual behaviors is a multi-stage process. In 1977, as psychologists James Prochaska and Carlo DiClemente were studying the behavior of smokers, they identified these stages. Their transt....
|
|
I'll be the first to admit that I think I'm terrible at tech interviews. I never had a proper computer science education, and if I have never encountered a…
|
|
Taoism I recently became interested in Taoism (also rendered as Daoism). I started by reading the Zhuangzhi , which took me several months, and more recently finished the Tao Te Ching , which didn’t take nearly as long. I don’t recommend reading them in that order, although it was certainly interesting - these two are typically considered to be the foundational texts of Taoism, but the Tao Te Ching is much easier to read. There are a....
|
|
Sourcehut and Codeberg are experiencing reliability issues due to an ongoing layer-3 DDoS attack. I managed to continue working on this site uninterrupted: I practice Hydra Hosting by simultaneously pushing to at least four remotes (git.sr.ht, codeberg.org, github.com, gitlab.com, git.envs.net, and a private one). My CI manifests are thin wrappers around shell scripts, Makefiles, and other portable tooling. My CI dependencie..
|
|
NTS Radio is a family of like-minded and passionate individuals, dedicated to supporting exciting music and culture through online radio and events. NTS uncovers the best of the musical past, celebrates the present and cultivates the future of the underground music scene, and prides itself on being open-minded and experimental. ( source ) I’m certainly a latecomer, but NTS Radio is the bomb. I have not opened Spotify (whose algorithm..
|
|
NTS Radio is a family of like-minded and passionate individuals, dedicated to supporting exciting music and culture through online radio and events. NTS uncovers the best of the musical past, celebrates the present and cultivates the future of the underground music scene, and prides itself on being open-minded and experimental. ( source ) I’m certainly a latecomer, but NTS Radio is the bomb. I have not opened Spotify (whose algorithm..
|