@kleaders@fosstodon.org
@kleaders@fosstodon.org avatar

kleaders

@kleaders@fosstodon.org

Searching for a new position. Former Director of Engineering for conda and packages @Anaconda, OSS fan, urbanist.

#python #rust #urbanism #seattle #yimby

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kleaders, to python
@kleaders@fosstodon.org avatar

The first model in my review series is 1.5 0.5b. A truly tiny model that can run comfortably on my Lichee Pi4a single board system. Read the article and let me know if you can think of anything else I should test on and the future models.

https://kyle.works/blog/tiny-llm-reviews-qwen-1-5/

kleaders, to llm
@kleaders@fosstodon.org avatar

With all the valid concern around and power and water usage, I thought I'd start a blog series on tiny LLMs. Let's see what they can do on real tasks on very power efficient hardware.

https://kyle.works/blog/tiny-llm-reviews-intro/

kleaders,
@kleaders@fosstodon.org avatar

@twilliability @vicki Oh yeah, totally forgot about that. I don't use RSS readers that often myself.

I just added an RSS feed can you check it? I didn't link it on the page but its in the <head> as a <link>

brainwane, to random
@brainwane@social.coop avatar

I feel really lucky that my 11th grade American literature teacher devised a curriculum that relentlessly attacked the American success myth.

We read Christopher Lasch, Ben Franklin's autobiography, The Great Gatsby, "Paul's Case" by Willa Cather, a bunch of other stuff ....

And at the same time, I was volunteering with the local hippies, and my mentor was a guy who'd burned out on working as a philosophy professor, and now did carpentry to support his peace activism.

kleaders,
@kleaders@fosstodon.org avatar

@brainwane this is such an insightful thread, thanks for sharing. As someone in leadership I feel the same complex emotions about success. I enjoy leadership as a challenge, and I want to make work better for everyone I work with, but it can really be hard and sometimes not worth it.

kleaders, to animals
@kleaders@fosstodon.org avatar

It's 10am here. Definitely too early to get up.

kleaders, to javascript
@kleaders@fosstodon.org avatar

I have to say I've been actually enjoying working with in lately. I haven't attempted anything too complicated, but I love the idea of reusable components. Next up, I need to figure out how to best do reactive updates.

cassidy, to security
@cassidy@blaede.family avatar

People building apps and web services: I feel like we need to talk about two-factor authentication terminology.

Here are some of the things I always think and then realized I've never written down. 🧵

kleaders,
@kleaders@fosstodon.org avatar

@cassidy Yes please! Let's drop the technical acronyms in all user facing flows. Another place this shows up is credit card forms: CVV, CSC, CVC, CVD, SPC. I don't have a great replacement name but can we at least pick something?

kleaders, to cycling
@kleaders@fosstodon.org avatar

Is there an app where people are tracking safe bicycle routes and/or bike parking?

mcc, to random
@mcc@mastodon.social avatar

My constant experience with Python over the last ~16 years is I start writing it and it's like, wow, this is so easy, this is great! And then I run my program, and invariably it fails with an inscrutable error/exception 4 layers deep in someone else's library, code I know nothing about— in this case, a wav file library claiming that the number 960 is "not a valid shape"— and I realize that maybe I actually hate Python

kleaders,
@kleaders@fosstodon.org avatar

@mcc you can. It's been a while since I've done it, but if I remember correctly you can .extend() an array with an array of the same shape.

paigerduty, (edited ) to random
@paigerduty@hachyderm.io avatar

If you were attending a workshop on say...instrumenting traces with in a containerized app where you to frequently modified code, restarted the app, verified your changes in an o11y UI over and over....

How would you prefer to handle repetitive commands like that?

kleaders,
@kleaders@fosstodon.org avatar

@paigerduty this sounds like a good use case for something like Ike entr https://github.com/eradman/entr or guard (ruby) https://github.com/guard/guard

I've been looking but I haven't found a pure Python equivalent. Let me know if you know of one!

flexghost, to random
@flexghost@mastodon.social avatar

DeSantis wants to “move on” from his losing fight with Disney and he pleads for them to drop their lawsuits

Crybully Republicans: Pick a fight you can’t win and blame everyone else

Wanna know who hasn’t “moved on” ?

Disney’s lawyers.

video/mp4

kleaders,
@kleaders@fosstodon.org avatar

@flexghost fun fact CNBC doesn't rank Florida as number one for "economy" as he says. It's actually 8th, but that assumes you aren't being targeted by the state to make a political point.

https://www.cnbc.com/2023/07/11/americas-top-states-for-business-2023-the-full-rankings.html

GottaLaff, to washington
@GottaLaff@mastodon.social avatar

Via Kyle Griffin:

👏🏻💪🏼 In a win for voters, a federal judge struck down state's legislative districts, ruling they violate Section 2 of the Act by diluting the voting strength of in the Yakima Valley region.

kleaders,
@kleaders@fosstodon.org avatar
nicolemark, to python
@nicolemark@vis.social avatar

Any devs in the house? I’m getting unpickling error A, which I’ve never seen before. I searched StackOverflow already, obv. It’s esp hard to troubleshoot because it’s in a Jupyter notebook environment controlled by my professor, so I can only change certain parts of the code. TA wasn’t much help—told me to install pickle. 🤦🏼‍♀️

kleaders,
@kleaders@fosstodon.org avatar

@nicolemark Does that file work for others with that version of Python? It looks like it is corrupted or just created with a different version of pickle that isn't supported with what you're using.

kleaders,
@kleaders@fosstodon.org avatar

@nicolemark @kimvanwyk yeah I think it's a corrupted file. You can compare the shasums/file sizes on each system to see if something doesn't match up. But the answer probably will be to download again.

treyhunner, to python
@treyhunner@mastodon.social avatar

What feature would you have trouble explaining to a new programmer?

(If you think you CAN explain that feature, feel free to reply to replies with your own new-programmer-oriented explanation)

kleaders,
@kleaders@fosstodon.org avatar

@treyhunner I still have trouble with list comprehensions myself. They are very powerful, but the syntax always confuses me.

kleaders,
@kleaders@fosstodon.org avatar

@treyhunner thank you!

kleaders,
@kleaders@fosstodon.org avatar

@meejah @treyhunner thanks, this is helpful!

toplesstopics, to Seattle
@toplesstopics@eldritch.cafe avatar

took me four hours of calling around to find a hotel that had a "roll in shower with handicap bars" AND a pool, but at last I got us all booked for a family trip to Seattle in late August, right before the kids start school again, lol. It's a couple blocks walk from the southern monorail station and has plenty of restauraunts nearby to see, we'll have two elderly disabled people with us (one severely disabled) and two young kids so that will impact our travel ability a lot, but we'll drive our cars there (and pay $52/night/car for four nights, so that'll be a lovely chunk, but again, disabled people makes it a lot harder to rely on public transit...) and just be prepared to always take one or both disabled person back to their hotel room to rest. My dad is freaking out but that's exactly why we need to take him--I won't let his agoraphobia get the best of him, when he always feels much happier once he's finally out of the house.

Hopefully the weather isn't too sweltering...every year is hotter (it's 96 degrees in Portland today) but we'll do the best we can, I guess. I'm pissed how hard it was to find a hotel that was actually ADA compliant, and that I have to pay out the ass for a "suite" just to have a walk-in shower. But this country hates disabled people (and those who experience mental healthcare crises, and people who don't want to get shot, etc etc etc...) so what else is new?

kleaders,
@kleaders@fosstodon.org avatar

@toplesstopics I hope you have a good trip here! I don't know much about accessible options downtown, sorry it was such a pain.

sudoedit, to python

Ok guru's.

I'm working on a very simple csv reader and I can't get the value from the first column.

I've got a csv file like this:
Last Name,First Name
Smith,Joe

and then a short python script like this:
import csv

with open("test.csv",'r', encoding='utf-8-sig') as f:
reader = csv.DictReader(f)
for row in reader:
print(row['First Name'], row['Last name'])
print(row)

if I remove row['Last Name'] from the print statement I get the first names.

kleaders,
@kleaders@fosstodon.org avatar

@sudoedit if you don't have any constraints around using external libraries, pandas and Polars both have really great CSV capabilities. A bit overkill though if you don't plan on doing a lot of data manipulation.

Is it throwing an error? Or just returning None? It looks like you may need to capitalize the n in Last Name as well.

GossiTheDog, to random
@GossiTheDog@cyberplace.social avatar

deleted_by_author

  • Loading...
  • kleaders,
    @kleaders@fosstodon.org avatar

    @GossiTheDog since stock price and employees are inversely correlated, they can hit infinity dollars by laying off everyone. Good idea or best idea?

    I'll take my business consulting check now please.

    drcaberry, (edited ) to math
    @drcaberry@blacktwitter.io avatar


    Kiante' can clean a room in 3 hours. If his little sister, Kiandrea helps, they can clean it in 2.4 hours. How long does it take Kiandrea to clean the room alone?

    kleaders,
    @kleaders@fosstodon.org avatar

    @drcaberry depends, is mom watching? If she's not they'll just go play and make the mess bigger 😂

    matdevdug, to rust
    @matdevdug@c.im avatar

    I am baffled by how much trouble I’m having at writing at a decent clip. I felt pretty good at after a few months, same with and . Meanwhile I’ve been trying to write anything useful in Rust for months and it’s so incredibly slow going.

    I’m shocked people are enthusiastic about adopting this for their jobs. If I had a specific part of an app that needed more speed, absolutely. But as a general purpose language? I’m not seeing it yet.

    I’ll keep ramming my head against it but have not enjoyed myself thus far. If writing a proof of concept in python takes me 4 hours, rewriting that in rust clocks in easily at 12-16 hours.

    kleaders,
    @kleaders@fosstodon.org avatar

    @matdevdug Rust really shines in situations where you need both speed and maintainability. If you need to pretty regularly rewrite portions of a code base refactoring is super easy.

    Your time estimate feels about right for my experience as well, but where you'll see value is later refactoring.

    If you're not likely to refactor or make regular changes, python is definitely going to be more time effective long term. Python really shines with its libraries and speed of writing.

    fasterthanlime, (edited ) to random
    @fasterthanlime@hachyderm.io avatar

    so the built-in macOS terminal emulator lacks truecolor, are folks using iTerm2 still nowadays? or did something better come out?

    kleaders,
    @kleaders@fosstodon.org avatar

    @fasterthanlime kitty on Mac and linux all day everyday.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • everett
  • magazineikmin
  • Durango
  • thenastyranch
  • Youngstown
  • slotface
  • hgfsjryuu7
  • osvaldo12
  • rosin
  • kavyap
  • mdbf
  • PowerRangers
  • DreamBathrooms
  • modclub
  • khanakhh
  • InstantRegret
  • tacticalgear
  • vwfavf
  • ethstaker
  • ngwrru68w68
  • normalnudes
  • tester
  • GTA5RPClips
  • cubers
  • cisconetworking
  • Leos
  • provamag3
  • All magazines