Posts tagged: thought

All posts with the tag "thought"

883 posts latest post 2026-08-08
Publishing rhythm
Jul 2026 | 7 posts
Proper handling of None in WHERE condition · Issue #109 · fastapi/sqlmodel First Check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't find it. I searched the SQLModel documentation, with the integrated search. I... GitHub · github.com [1] SQLModel models ship with an is_, and is_not that you can use to compare to None without pesky linters complaining. This comment summed it up quite well. I believe this is concerned entirely with SQLAlchemy, not with SQLModel, and has to do with the required semantics to construct a BinaryExpression object. Hero.age == None evaluates to a BinaryExpression object which is eventually used to construct the SQL query that the SQLAlchemy engine issues to your DBMS. Hero.age is None evaluates to False immediately, and not a BinaryExpression, which short-circuits the query no matter the value of age in a row. From a cursory search, it does not seem that the is operator can be overridden in Python. This could help explain why the only possibility is by using the == operator, which can be overridden. so rather than using Team.heros == None we can use Team.seros.is_(None) which checks for...
Gridfinity Generator gridfinity.perplexinglabs.com [1] Gridfinity generator uses open scad, so you can make rugged boxes, bins and base plates with form input. not fully custom fit to things, but you can custom size square bins, hole cut out sides and all. From what I can tell, no bento box either. so as long as what you are looking for is square this generator has you pretty well covered. I’m definitely using this for simple bins and rugged boxes. References: [1]: https://gridfinity.perplexinglabs.com/pr/gridfinity-extended/0/0
External Link printables.com [1] The BethDeck is a sick looking DIY steam deck competitor built on top of the framework 13" mainboard. No soldering needed, lt with all off the shelf parts. Controllers appear to be an off the shelf controller with the shell removed and plugged into a usb hub. [2] References: [1]: https://www.printables.com/model/1051411-framework-portable-handheld-case-beth-deck [2]: https://media.printables.com/media/prints/1051411/images/7965723_09c13004-58b9-4868-b078-e3a66073d740_3b514c55-bb6b-4448-a216-842d7de48955/thumbs/inside/1600x1200/jpg/pxl_20240910_005549812.webp
Document how to provide a negative number as an argument · fastapi typer · Discussion #798 First Check I added a very descriptive title here. I used the GitHub search to find a similar question and didn't find it. I searched the Typer documentation, with the integrated search. I already ... GitHub · github.com [1] Today I learned that you cannot pass negative integers as values to typer. in this case context_settings={"ignore_unknown_options": True} is required so that the - does not look like a flag. # script name: main.py import typer app = typer.Typer() @app.command() def failing(value: float): print(f"{value=}") @app.command( context_settings={"ignore_unknown_options": True} ) def working_good(value: float): print(f"{value=}") if __name__ == "__main__": app() References: [1]: https://github.com/fastapi/typer/discussions/798
Aaron Francis (@aarondfrancis) on X 📣 We're excited to announce Mastering Postgres, a video course coming October 15th. @steve_tenuto and I started this business with dreams to improve the quality of database education. With the… X (formerly Twitter) · x.com [1] Aaron Francis is a database master, pumped for thsi dude and all that he is able to accomplish. References: [1]: https://x.com/aarondfrancis/status/1833533150674268469
[1]@willmcgugan [1]) on X — New Version of #Textual released! 😎🤓🦾 The demo has been updated. It's not quite finished, expect an update next release, but it is a lot of fun. Press C at any point to see the code powering that page (makes a great learning tool). Video 👇 https://t.co/p2ScsuL7GZ" [2] loading=“lazy”> Will McGugan (@willmcgugan [3]) on X New Version of #Textual released! 😎🤓🦾 The demo has been updated. It's not quite finished, expect an update next release, but it is a lot of fun. Press C at any point to see the code pow… X (formerly Twitter) · x.com This new demo of textual is wildly awesome, so many widgets and features being added into the main library. The themes and animations are on point and far surpass my expectations of a tui. References: [1]: https://x.com/willmcgugan/status/1849831271289012463 [2]: https://t.co/p2ScsuL7GZ%22 [3]: https://willmcgugan.github.io
Reddit - Please wait for verification reddit.com [1] ploopy just dropped a trackpad that runs qmk. This sounds so cool. I’m excited to see some videos on it. It would be sick to get this incorporated into a porta john running zmk, one bluetooth device to run all the peripherals. References: [1]: https://www.reddit.com/r/ErgoMechKeyboards/comments/1g5phts/not_a_split_keyboard_but_perhaps_a_companion_to/
Pin versions of dependencies · Issue #2200 · Kozea/WeasyPrint Stack trace: pdf = HTML(file_obj=html, base_url='/').write_pdf() File "/service/venv/lib/python3.9/site-packages/weasyprint/__init__.py", line 252, in write_pdf self.render(font_config, counter_sty... GitHub · github.com [1] weazyprint was throwing me some errors, turns out that it’s currently not compatible with the latest pydyf package. my error TypeError: __init__() takes 1 positional argument but 3 were give I fixed it by locking in pydyf at 0.8.0 pydyf==0.8.0 References: [1]: https://github.com/Kozea/WeasyPrint/issues/2200
These are SICK, gonna be using this a lot. (Thanks @evantravers 🥰.) · jesseleite/dotfiles@4979400 My dotfiles 💾. Contribute to jesseleite/dotfiles development by creating an account on GitHub. GitHub · github.com [1] helix inspired treesitter select outwards and select inwards. References: [1]: https://github.com/jesseleite/dotfiles/commit/49794006cbc9dc0e743925ec1a7122514d7148be
add helix · WaylonWalker/devtainer@71b9b29 🐳 (dotfiles) My personal development docker container base image - add helix · WaylonWalker/devtainer@71b9b29 GitHub · github.com [1] Helix officially made it in my devtainer. I am installing the binary right out of the github release with wget and tar. I can’t use installer because their release format does not match what installer is looking for. : I also move the runtime over to /usr/local/share/helix/runtime. : I use /usr/local/bin rather than my home directory as it works better with distrobox. References: [1]: https://github.com/WaylonWalker/devtainer/commit/71b9b29baf14f3714601d022ca12c3417437395b
[1] Here are some really great keybinds to make helix vim-like. It feels very antithetical to use this whole sale and forego the helix motion-verb language, but there are some nuggets like G in here that I find useful. References: [1]: /static/https://github.com/LGUG2Z/helix-vim/blob/master/config.toml
Support regex substitution command · Issue #2232 · helix-editor/helix Support regex substitution, comparable to vim :s or VSCode search & replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes + /. This could be acc... GitHub · github.com [1] helix multicursor has the ability to do what vims :s/hello/world/gc does by using ) to cycle through cursors, and n to discard unwanted cursors. References: [1]: https://github.com/helix-editor/helix/issues/2232#issuecomment-1250371051
Support regex substitution command · Issue #2232 · helix-editor/helix Support regex substitution, comparable to vim :s or VSCode search & replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes + /. This could be acc... GitHub · github.com [1] Here is a really good vim substitute with regex capture groups, saving this one for a rainy day. * Reading 1: This is a title to a link * Reading 2: This is another title :%s/\v(: )(.+)$/\1\[\2\]\( * Reading 1: [This is a title to a link]( * Reading 2: [This is another title]( References: [1]: https://github.com/helix-editor/helix/issues/2232#issuecomment-1228632218
Support regex substitution command · Issue #2232 · helix-editor/helix Support regex substitution, comparable to vim :s or VSCode search & replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes + /. This could be acc... GitHub · github.com [1] Interesting take on refactoring the whole codebase from your editor. In this thread the-mikedavis suggests multicursor as a replacement for substitute, and later in the thread takes the side that larger workspace wide edits are outside the scope of helix and he would reach for a refactoring tool like fastmod [2] to do the job. References: [1]: https://github.com/helix-editor/helix/issues/2232#issuecomment-1107644740 [2]: https://github.com/facebookincubator/fastmod?tab=readme-ov-file