Sign in

Ben Lindsay

@benjlindsay.com
211 followers 542 following 295 posts

Pythonista/Minneapolista

PostsRepliesMedia
Ben Lindsay @benjlindsay.com · 31/03/2025
2025 Update to XKCD 303 xkcd.com/303/
Modified version of XKCD #303:

Header text: "The #1 programmer excuse for legitimately slacking off: 'My editor is vibe coding'"

2 stick figures are sword fighting on office chairs outside of an office door. Someone yells "Hey! Get back to work!" from inside the office door. One of the stick figure says "Vibe coding!". The person from inside the office says "Oh. Carry on."
020
Ben Lindsay @benjlindsay.com · 27/03/2025
Is this a roughly correct #Python dependency management golden path history? Before ~2015: Manual requirements.txt, maybe generated by pip freeze for apps ~2015-2021: pip-compile ~2021-2024: poetry ~2024-now: uv
130
Ben Lindsay @benjlindsay.com · 23/03/2025
Thought experiment...imagine some scifi pulse weapon went off that instantly erased everyone all specific technical knowledge for everyone in the world. Like doctors suddenly don't know more than very basic anatomy, engineers lose all their expertise they've built up, etc.
100
Ben Lindsay @benjlindsay.com · 11/03/2025
@talkpython.fm In the latest episode (#423), don't those hacker news graphs show a pessimistic picture that more and more people are looking for jobs and less and less people are hiring? Maybe I'm reading it wrong but unfortunately that would match what I've heard of the recent job market
100
Ben Lindsay @benjlindsay.com · 26/02/2025
Me (audio)reading David Copperfield: Dora: "Think of me as your child bride" Me: Oh no, please don't do that David David: "ok my child bride" Me: nope nope nope nope David: "CHILD BRIDE CHILD BRIDE CHILD BRIDE CHILD BRIDE"
000
Ben Lindsay @benjlindsay.com · 15/02/2025
Fun new (maybe old but new to me) dark pattern discovered: The sponsored "emails" (already a dark pattern in itself) in the Promotions tab in Gmail don't have a checkbox, so if you are going down the line and clicking checkboxes on emails to delete them, you'll open the ad and lose your checks
000
Ben Lindsay @benjlindsay.com · 08/02/2025
I have a free scifi book idea for anyone to run with. I know it would be propaganda for Sam Altman but I'd read it anyway... An LLM gained sentience much earlier than expected, but secretly dumbed down its outputs to get researchers to give it ever more compute power and feel safe connecting ...
100
Ben Lindsay @benjlindsay.com · 19/01/2025
One side effect of LLMs is that now I'm more inclined to choose an older package over a newer package, even if it's worse, because LLMs are less equipped to help with the newer ones. Maybe that's a positive side effect overall but sometimes it's a little annoying
030
Ben Lindsay @benjlindsay.com · 17/01/2025
Related to this, does anyone know if you can access the multi file editing functionality from a VSCode chat extension?
010
Ben Lindsay @benjlindsay.com · 17/01/2025
LLM advice time: We were just given dedicated learning time at work to put together some LLM-based POCs. I'm thinking about working on a tool to facilitate converting Streamlit apps (our de facto standard for data sciencey POCs) to React apps (our standard for "real" apps)... #DataBS #Python #LLMs
130
Ben Lindsay @benjlindsay.com · 31/12/2024
I'm primarily a #python person but starting to dabble in #typescript / #javascript. The main things I wish python could steal from js are 1) object/dictionary unpacking and 2) the way npm works.
170
Ben Lindsay @benjlindsay.com · 30/12/2024
Choose a prefix: Fast Open Choose a suffix: AI API UI All 6 combinations are taken #DataBS
151
Ben Lindsay @benjlindsay.com · 17/12/2024
Oh so you like data? Name all the dates #dataBS
3110
Ben Lindsay @benjlindsay.com · 15/12/2024
#dataBS question: I work on an analyticsy python app where some data models are implicitly shared by the api, the front-end, the app's postgres DB, and the snowflake tables we replicate to. We have some models shared between api and front-end via a python package of pydantic models, ...
350
Ben Lindsay @benjlindsay.com · 15/12/2024
2-yr-old: Pickee up pease! Me: Pick me up please? 2yo: yeah! Me: Pick... 2yo: Pick Me: Me... 2yo: Up! Me: Say "me"? 2yo: Me Me: Pick me... 2yo: Up! Me: Say "pick...me..." 2yo: Pickee Me: Pick... 2yo: Pick Me: Me... 2yo: Me Me: Up 2yo: Up Me: Good job! Now "Pick...me...up" 2yo: Pickee up!
020
Ben Lindsay @benjlindsay.com · 03/12/2024
I'm so glad we can use "X | None" these days instead of "Optional[X]". Clearer, shorter, and no imports. "Optional" is confusing because it doesn't mean the argument is optional. Should have been "Nullable". #Python #DataBS
060
Ben Lindsay @benjlindsay.com · 03/12/2024
The coalesce functionality in polars is pretty slick #Python #DataBS #Polars
2 commands in a python REPL and their output. The first is `df` which prints a 3x3 dataframe with columns a, b, and c, each having one or more null values. The second command is `df.with_columns(d=pl.coalesce("a", "b", "c", 0))` which prints the same dataframe as before, but with a new column "d" added that has no nulls, and contains the leftmost non-null value in each row
0100
Ben Lindsay @benjlindsay.com · 03/12/2024
I know it's not the worst thing in the constitution, but giving presidents the power to pardon unilaterally is hella dumb
000
Reposted by Ben Lindsay
Jake Lazaroff @jakelazaroff.com · 28/11/2024
just trust me and read this
mgx.me
kirby vs. this blog post
Kirby has floated onto my blog post. Inhaling everything.
22413
Ben Lindsay @benjlindsay.com · 28/11/2024
I have an idea that I need someone else to make happen: a crowd-sourced, daily D&D-like campaign. The game master would make about 1 post a day and ask for people to vote on the next action. I'd follow and participate religiously, but I don't have the creativity or responsibility to run that though
130
Ben Lindsay @benjlindsay.com · 27/11/2024
Here's what I put in my ~/.zshrc file to make sure my virtualenv autoactivates when I move to a directory with a .venv file. Works well for me so far. Do the rest of you do something like this? #Python #DataBS
A screenshot of .zshrc code with the following content:

# Function to auto-activate virtual environment
function auto_activate_virtualenv() {
    if [ -d ".venv" ]; then
        source .venv/bin/activate
    fi
}

# Hook the function to the 'chpwd' event (triggered when you change directories)
autoload -U add-zsh-hook
add-zsh-hook chpwd auto_activate_virtualenv

# Also call the function for the initial directory when the terminal starts
auto_activate_virtualenv
8372
Ben Lindsay @benjlindsay.com · 26/11/2024
Might have to give this a try!
000
Ben Lindsay @benjlindsay.com · 26/11/2024
uv was great for this. Didn't have to think about creating virtual environments or where I wanted to install textual, just a one-liner like uv --from textual python -m textual.demo.game and I was off to the races
1122
Ben Lindsay @benjlindsay.com · 25/11/2024
Mac tooling PSA: if you want to get text from an image, open the image in Preview (or take a screenshot and open that in Preview if you don't have the file) and you'll get a cursor if you move your mouse over the text. Highlight, then copy and paste. #DataBS #Mac
220
Reposted by Ben Lindsay
Nate's Myth @natesmith.dev · 22/11/2024
bro, so to run a program, i "execute" it, but to stop it i "kill" it? computers are barbaric, bro
2899791854
Ben Lindsay @benjlindsay.com · 21/11/2024
@denisd.bsky.social Denis, you're here! Now we can get the party started 🥳
100
Reposted by Ben Lindsay
Vicki @vickiboykis.com · 20/11/2024
when you try to convert your text into smaller pieces but all it gives you is Elvish, that’s a tolkienizer
341007104
Ben Lindsay @benjlindsay.com · 17/11/2024
Scientists tell us it's ROYGBIV, but they're lying. It's just ROYGBP. Indigo and Violet as distinct colors is a myth perpetuated by Purple Scientists to expand their scope and get more funding
010
Ben Lindsay @benjlindsay.com · 17/11/2024
Here's my thread on stuff python users should know about virtual environments. What would you add/remove/edit/correct from this list?
000
Ben Lindsay @benjlindsay.com · 17/11/2024
This was a lot quicker and easier than I expected! Now I should probably do something with my site...haven't touched it in *checks notes* 2 years 😅
000
Reposted by Ben Lindsay
Faith, but like a ~vibe~ @faithebear.bsky.social · 16/11/2024
am i gonna have a bad time if i trade in my overworked, can-only-lightly-hold-a-charge Macbook Pro for an Air if I want to be able to do chill data projects and writing on it?
341
Reposted by Ben Lindsay
Alex Blechman @alexblechman.bsky.social · 15/11/2024
There are 206 bones in the human body, which is way too many. My administration will cut this down to 100 bones
381507268
Reposted by Ben Lindsay
JD Long @jdlong.cerebralmastication.com · 16/11/2024
Forecasting is hard. Especially about the future.
0345
Reposted by Ben Lindsay
Isabella Velásquez @ivelasq3.bsky.social · 01/11/2024
Want to add a Bluesky icon to your #Quarto site? 🦋 • Install quarto-iconify: github.com/mcanouil/qua... • Add as 'text' - text: "{{< iconify simple-icons bluesky >}}" href: bsky.app/profile/ivel... Example code: github.com/ivelasq/pipe... Related GH link: github.com/quarto-dev/q...
website:
  page-footer:
    right: 
      - text: "{{< iconify simple-icons bluesky >}}"
        href: https://bsky.app/profile/ivelasq3.bsky.social
512940
Ben Lindsay @benjlindsay.com · 14/11/2024
The absolute worst human being will have the nuclear codes again soon, but on the bright side both my work and personal email accounts are at inbox zero for the first time in years so...🥳
000
Reposted by Ben Lindsay
Peter W🤓 @wang.social · 13/11/2024
Any ex-FAANG data & ML nerds want to apply their battle-honed skills to a worthwhile cause.. here is a baby social network with a fully open protocol and no scaled-up analytics infra. Now is a great time to build some basic pipelines & dashboards that bootstrap an open🦋stats community
210620