Skip Navigation

ScrewdriverFactoryFactoryProvider [they/them]

@ ScrewdriverFactoryFactoryProvider @hexbear.net

Posts
26
Comments
396
Joined
3 yr. ago

Profile picture credit to Andy Warhol

  • I don’t have the link anymore but there used to be a good effortpost here on how neofeudalism doesn’t actually have the same material base as feudalism and that what we’re really witnessing is the reproletarianization of the American working class. The slave labor is drying up. The stolen land is drying up. The capitalism-saving policies a la the New Deal which were feasible because they excluded various PoC and other minorities? They’re being gutted and will not be replaced. There are a lot of PMC folks and a lot of white folks and a lot of “middle class” folks who are starting to experience what others have experienced for decades: what’s it like to be a worker under capitalism.

  • Stalin did re-criminalize homosexuality after the Civil War due to extreme loss of population at the time.

  • I’m glad we ban generously when it comes to reactionaries like that. Makes the place so much more tolerable. It’s probably why we confuse so many people used to other spaces.

  • One wonders if we'll see a resurgence in religiosity in the West as conditions deteriorate.

    All of the soup kitchens, food banks, and homeless shelters in my area are still run by church or out of churches. This wouldn’t surprise me, especially in rural areas, especially with churches becoming more and more capitalist.

  • The peak was probably sending a couple (not really) lesbians to perform in Eurovision 2003 (to date iirc they're still the most popular Russian band among foreigners).

    Was this t.A.T.u.? Because if you have any other musical groups that consist of a couple (not really) lesbians, I’m all ears.

  • These are the main sorts of accounts used to justify sectarian bullshit by people who are on Twitter too much

  • If our police are a service, does that mean I can unsubscribe? Or are they gonna come shake down my apartment for protection money?

  • Even bourgeois media has an obsession with memorization. What do Hollywood writers do when they want to quickly get across that a character is smart? They have him (usually a man) quote some old book/play word for word, often at length. Turns out memorizing things is a skill that almost anyone can learn and get good at. But it’s treated like some super power.

  • It simply finds all possible digits and then locates the last one through the reverse indexing. It’s not efficient because there’s no shortcircuiting, but there’s no need to search the strings backwards, which is nice. Python’s startswith method is also hiding a lot of that other implementations have done explicitly.

  • I already write code in my sleep and it sucks. Pushing this code to production would be heretical.

  • I think I found a decently short solution for part 2 in python:

     
        
    DIGITS = {
        'one': '1',
        'two': '2',
        'three': '3',
        'four': '4',
        'five': '5',
        'six': '6',
        'seven': '7',
        'eight': '8',
        'nine': '9',
    }
    
    
    def find_digit(word: str) -> str:
        for digit, value in DIGITS.items():
            if word.startswith(digit):
                return value
            if word.startswith(value):
                return value
        return ''
    
    
    total = 0
    for line in puzzle.split('\n'):
        digits = [
            digit for i in range(len(line))
            if (digit := find_digit(line[i:]))
        ]
        total += int(digits[0] + digits[-1])
    
    
    print(total)
    
      
  • Those overlapping spelled out numbers were rough

  • This is literally the premise of a Robert Evans novel

  • You may be able to find a repository of example inputs and outputs to work with, but that’s generally frowned upon since organizing AOC involves so much work.

  • There’s a genuine issue where big data is good for prosecuting people once you have a name, but doing it in reverse can be very difficult because there’s just so many that you get too many false positives to properly follow up on. Surveillance isn’t a panacea, for better and for worse, depending on the circumstance.

  • What happened to The Tenth Man? They just keep doing this lol

  • No need to search when you already have someone you wanna pin it on.

  • Indeed

    Jump
  • Chumbawamba is so fucking based

  • The way I see it, Kissinger loved people dying. In a way, this was his lifelong dream.

  • chat @hexbear.net

    Looks like I’m spending most of next week without water or electric

  • Chapotraphouse @hexbear.net

    no more shaft measures

  • memes @hexbear.net

    Beetlejob: The Musical

  • Chapotraphouse @hexbear.net

    Just remembered it was 9/11 in a couple days and got excited like it was Christmas

  • Programmer Humor @lemmy.ml

    When someone asks me how I know so much about computers

  • Programming @lemmygrad.ml

    HTMX has me yearning for simpler times