|
For a while now, I have wanted a place to post my long form content. So after literally years of delay, I finally got around to it, and thoughts.greyh.at was born.
|
|
xml:space would make whitespace issues easier to handle and simplify my current solution , but not everything supports XML namespaces; I want to keep this polygot HTML5 and XHTML5 markup for now. Eventually I’ll offer certain enhancements to the XHTML version (add index.xhtml to the URLs or remove text/html form your Accept header but include application/xhtml+xml) and I’ve already made my Atom feeds a bit simpler, but there’s a lot to d..
|
|
ncurses is fine for certain specific purposes, like querying terminal characteristics. I think if you’re building a TUI it should generally be one of multiple options that share a library/backend or it should be something with many alternatives that are at least equivalent, given the poor accessibility of TUIs in general. If one of those things is true, then it should be fine to use ncurses for the TUI. There’s a Python library called ..
|
|
My current approach to “responsiveness” is to increase the font sizes on screens. User interfaces should generally have smaller text while article bodies should prioritize readability and be larger. Default stylesheets are take a (literal) one-size-fits-all approach, trying to optimize for both. But I only use percentages for font sizes, to respect user preferences. I also increase the default font size to make it easier to increase tap t....
|
|
Xcode 14's First Beta has a bug that may cause App Intents to work. Fortunately a quick fix is listed in release notes.
|
|
TLDR: Alphabet chess is a chess variant that allows handicapping by mixing in a bit of poker into the beginning of the game. Moves must be played according to a secret word at the beginning of the game. Chess has been played in different forms since the seventh century, and in its modern form since the nineteenth century. Opening theory, i.e. the study of the best moves to begin the game with, has been developing since then.
|
|
Preface This began as a reply to another article by Lucas F. Costa; it lists practices to improve user-experience (UX) of command-line interfaces (CLIs). It comes from a good place, and has some good advice: I particularly like its advice on input-validation and understandable errors. Unfortunately, a number of its suggestions are problematic, particularly from an accessibility perspective. This is a “living article” that I plan on addin....
|
|
Note : This is a work in progress. Rather than finish it in one go, I'm updating it live as a draft document as I learn new things about Twitter. Last update: 2022-06-15 I am, at heart, a long form blogger. Still – the cool kids, as they say – these days are all on twitter (and, yes, I know by saying it that way, I'm dating myself even further; so be it; it amuses me). I find myself, here in 2022, wanting to get a better handle on ....
|
|
Note : This is a work in progress. Rather than finish it in one go, I'm updating it live as a draft document as I learn new things about Twitter. Last update: 2022-06-15 I am, at heart, a long form blogger. Still – the cool kids, as they say – these days are all on twitter (and, yes, I know by saying it that way, I'm dating myself even further; so be it; it amuses me). I find myself, here in 2022, wanting to get a better handle on ....
|
|
When I walked outside a few hours after my 2009 LASIK surgery and managed to peer out of the tiny holes in the goggles taped to my face, I got the sense of suddenly seeing the world in high definition. Looking up at a tree, even through gritty eyes that were still in pain and sensitive, I saw every little leaf. I saw the crags in the branches and every crisp shadow between the greenery. I had to pause and take in the realization that there ..
|
|
I've been dealing with a new application with a lot of objects and one of my concerns is idempotency. Idempotency is the idea that you can do the same thing over and over and only create a new object when Idempotence (UK: /ˌɪdɛmˈpoʊtəns/,[1] US: /ˈaɪdəm-/)[2] is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. ....
|
|
I've been dealing with a new application with a lot of objects and one of my concerns is idempotency. Idempotency is the idea that you can do the same thing over and over and only create a new object when Idempotence (UK: /ˌɪdɛmˈpoʊtəns/,[1] US: /ˈaɪdəm-/)[2] is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. ....
|
I stumbled upon a very interesting question on Stack Overflow about how to use jOOQ’s MULTISET operator to nest a collection, and then filter the result by whether that nested collection contains a value. The question is jOOQ specific, but imagine, you have a query that nests collections using JSON in PostgreSQL. Assuming, as always, … Continue reading How to Filter a SQL Nested Collection by a Value →
|
|
Fixing FactoryBot Validation Name Has Already Been Taken Controller Test or Spec Errors
-
fuzzyblog.io
-
4 years ago
-
eng
So, last night, whilst pulling vampire hours on writing tests – always, always, always a bad idea – I encountered multiple variants on this bug: ❯ bundle exec rails test test/controllers/links_controller_test.rb:44 Running 7 tests in a single process (parallelization threshold is 50) Run options: --seed 21798 # Running: E Error: LinksControllerTest#test_should_get_edit: ActiveRecord::RecordInvalid: Validation failed: Name has already bee....
|
|
Fixing FactoryBot Validation Name Has Already Been Taken Controller Test or Spec Errors
-
fuzzyblog.io
-
4 years ago
-
eng
So, last night, whilst pulling vampire hours on writing tests – always, always, always a bad idea – I encountered multiple variants on this bug: ❯ bundle exec rails test test/controllers/links_controller_test.rb:44 Running 7 tests in a single process (parallelization threshold is 50) Run options: --seed 21798 # Running: E Error: LinksControllerTest#test_should_get_edit: ActiveRecord::RecordInvalid: Validation failed: Name has already bee....
|
|
Build Streamlit Data Science Dashboards & Verbose Regex f-Strings
-
realpython.com
-
4 years ago
-
eng
Would you like a fast way to share your data science project results as an interactive dashboard instead of a Jupyter notebook? Streamlit is a library for creating simple web apps and dashboards using just Python. This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder's Weekly articles and projects.
|
|
Rails 7, Rodauth, BootRails, Nested Resources and Testing Controllers
-
fuzzyblog.io
-
4 years ago
-
eng
I'm working on a new project and, as I am front end challenged, I started by purchasing a copy of the BootRails framework as it seemed to have sensible defaults and an appearance that vastly outstrips my personal ability to manipulate Bootstrap. Previously I've worked with the JumpStart framework from Go Rails and while I love, love, love Chris Oliver, GoRails, HatchBox and everything Chris has done (yes I'm a super fan), I just can't get ....
|
|
Rails 7, Rodauth, BootRails, Nested Resources and Testing Controllers
-
fuzzyblog.io
-
4 years ago
-
eng
I'm working on a new project and, as I am front end challenged, I started by purchasing a copy of the BootRails framework as it seemed to have sensible defaults and an appearance that vastly outstrips my personal ability to manipulate Bootstrap. Previously I've worked with the JumpStart framework from Go Rails and while I love, love, love Chris Oliver, GoRails, HatchBox and everything Chris has done (yes I'm a super fan), I just can't get ....
|
|
DNS records List DNS records of a zone: 1 $ curl -X GET "https://api.cloudflare.com/client/v4/zones/ |
|
DNS records List DNS records of a zone: 1 $ curl -X GET "https://api.cloudflare.com/client/v4/zones/ |
|
Whether you identify as cisgender or fall somewhere under the gender-nonconforming umbrella, disclosing your pronouns early and often makes everyone’s lives easier. So, in honor of Pride Month, let’s discuss why pronouns are important, the benefits of disclosing them, and what to do if you make a mistake.
|
|
Software at Scale 48 - API Gateway Management with Josh Twist
-
www.softwareatscale.dev
-
4 years ago
-
eng
Listen now | Josh Twist is the co-founder and CEO of Zuplo, a programmable, developer friendly API Gateway Management Platform. We discuss a new category of developer tools startups - API Gateway Management Platforms. We go over what an API Gateway is, why do companies use gateways, common pain-points in gateway management, building reliable systems that serve billions of requests at scale. But most importantly, we dive into the story of Jo..
|