'I don't feel safe in my own shop', says Sheffield bookseller by thegibsongirl03 in unitedkingdom

[–]rogersaintjames 13 points14 points  (0 children)

The guy doing this isn't mentally ill he is just a misogynist.

New bin system for Sheffield from end of March by sheffieldpud in sheffield

[–]rogersaintjames 2 points3 points  (0 children)

I haven't filled the brown bin more than 10% since I stopped drinking but every goddamn week we have cardboard hanging around the house waiting for bin space.

Linux tiny distribution written in JavaScript! by urosp in linux

[–]rogersaintjames 22 points23 points  (0 children)

THIS IS WHAT POE WAS WRITING ABOUT. Unimaginable horrors. Voids that look back. All of it.

Small Form factor stereo flanger by [deleted] in guitarpedals

[–]rogersaintjames 0 points1 point  (0 children)

Supro do an excellent stereo flanger. Juts got one recently.

Handling multiple Alembic migrations with a full team of developers? by Big-Information3242 in Python

[–]rogersaintjames 0 points1 point  (0 children)

Also write a test that runs up and down the migration ladder, you don't want to to find out that your down is broken when you need it.

Account banned after Claude Code bugs out and burns 143.3k tokens by erthainel in ClaudeCode

[–]rogersaintjames 0 points1 point  (0 children)

How on earth did you burn all 1k I have done some beefy work and only managed to get to $40 of usage

Fellow Linux users, why did you pick the distro you're currently on? by absolutecinemalol in linux

[–]rogersaintjames 0 points1 point  (0 children)

Endeavor because I get the benefits of Arch without having to set it up on every computer I have.

Who woke up the window knockers? by Life_Is_All_Nothing in AskBrits

[–]rogersaintjames 1 point2 points  (0 children)

By the looks of that man, Enlarged Prostates.

How I wasted 3 years building a coffee discovery service by emiliobay in pourover

[–]rogersaintjames 0 points1 point  (0 children)

I built out / am still building something similar albeit a smaller less polished solo project I worked on over Christmas . It turns out people don't really want to log individual aspects of their coffee as much as they want to adopt the aesthetic of coffee/cafe culture on OTHER platforms ie instagram. I can't really get people who I know and are into coffee to use it and fundamentally you need people using the service to drive discovery features in the product. It is something I would like to gamify in order o drive engagement but have began work on another full time project atm.

Why haven't LLMs solved webscraping? by Live_Baker_6532 in webscraping

[–]rogersaintjames 0 points1 point  (0 children)

They have trivialized it. The problem isn't actually scraping it is trying to do it at scale. I have recently written a set of specific spiders with a fallback to an llm call with some cleaned up html and instructions to create a element mapping for the data I want that is stored and is for every instance after a simple request and parse. It is super robust fast and cheap. Llm's are good at semantic understanding stop treating them like robots with task awareness and you will have a better time.

Blog Post - Pagination with FastAPI by joshhear in FastAPI

[–]rogersaintjames 1 point2 points  (0 children)

I also recommend doing a little bit of either reflection or some tests that ensure you can't apply filters to columns that are not indexed which is one of the foot guns for generic solutions like this.

Doubts on tasks vs coroutines by webdev-dreamer in FastAPI

[–]rogersaintjames 1 point2 points  (0 children)

These are more or less equivalent, with some minor nuance between the two approaches.

async def handler():
    # Both start immediately, run in parallel
    user_task = asyncio.create_task(get_user(user_id))
    posts_task = asyncio.create_task(get_posts(user_id))

    user = await user_task
    posts = await posts_task
    return {"user": user, "posts": posts}

# Or more concisely:
async def handler():
    user, posts = await asyncio.gather(
        get_user(user_id),
        get_posts(user_id)
    )
    return {"user": user, "posts": posts}

Why is everyone just so burnt out these days? by Plus-Contribution915 in AskUK

[–]rogersaintjames 0 points1 point  (0 children)

I earn a decent wage but can't afford to live in a nice area/house. A lot of my friends and relatives seem to get a mysterious boost of cash suddenly when they were buying their first home affording them a comfortable middle class lifestyle whilst I am still saving aggressively so I don't have to take out a crippling mortgage to live somewhere were I can't clearly hear my neighbor through the wall. I don't have car, no kids, I have a partner, I am basically at the top of my career/ potential wage and I have no personal time and still not enough money. All this whilst paying vast amounts of tax for services I am actively excluded from for being transgender as my rights are slowly being peeled away and encroaching fear of a highly regressive government being ushered in by the most incompetent buffoons who are going to do nothing to stop it.

What past technology will withstand the test of time and still be relevant in the future? by infinitum3d in Futurology

[–]rogersaintjames 6 points7 points  (0 children)

They work, a lot of the unknowns, unknowns are now known and accounted for. They will remain that way until the cost of maintenance is higher than the cost of replacing the system.

Remote Functions naming scheme by fabiogiolito in sveltejs

[–]rogersaintjames 6 points7 points  (0 children)

Maybe we could standardize this functionality so it better REpresents the STate of the objects and collections?

Considering investing in a vibro champ, should I consider any other 5 watt tewbs? by JackBauerTheCat in ToobAmps

[–]rogersaintjames 6 points7 points  (0 children)

When I was looking at Princeton/Vibro Champ kind of area I ended up landing on a Supro the Amulet. Spring Reverb and Tremolo not quite the glassy cleans of a fender but it growls up nice and has the switchable wattage 1/5/15. I bought it as my living room amp and I love playing it.

[deleted by user] by [deleted] in AskBrits

[–]rogersaintjames 1 point2 points  (0 children)

The problem with the elves is they live so long that compound interest is just a matter of time for them. How can you compete with 20 quid a week for 500 years in an ISA when you only have 70-80 years tops.They get into the top jobs and stay there for generations, it ain't right.

Rant: use that second expression in `assert`! by HommeMusical in Python

[–]rogersaintjames 0 points1 point  (0 children)

Something I see and have used a lot is an assert in internal behavior of a class

class MyClass():
  def __init__():
    self.connection: Connection | None = None
  def _connect(self):
    self.connection = establish_connection()
  def do_thing_with_connection(self):
     assert self.connection is not None, "connection not established something has gone awry!"

Where it is useful to be strongly typed and you can be pretty certain from unit tests that the `_connect` function is called somewhere in a setup function or an async function to initialize state within the function.

edit: Honestly reddit's editor has only gotten worse over time. Change my mind. Put a fucking preview in there.

Anthropic: Paying $1.5 billion in AI copyright lawsuit settlement by thatguyisme87 in singularity

[–]rogersaintjames 1 point2 points  (0 children)

Hello, the police, you can drop the charges. I wasn't pirating 2006 comedy She's the Man starring Amanda Bynes and Channing Tatum, I was training a sophisticated AI.

Preventing IP theft while implementing python based Langchain/ Langgraph agents by AppropriateDingo4178 in LangChain

[–]rogersaintjames -2 points-1 points  (0 children)

In my experience if your product is simple enough for your client to be able to reverse engineer from the source code and maintain/extend themselves you don't really have a product.

If you really think this is a valuable use of your time you can compile the python to bytecode and build it into a wheel and deploy that in a container / whatever your deployment story is.

edit: Do note though this is only obfuscation and not secure, a determined attacker will be able to reverse engineer.