Alts (mostly for modding)

@[email protected]

(Earlier also had @[email protected] for a year before I switched to lemmings)

  • 40 Posts
  • 558 Comments
Joined 5 months ago
cake
Cake day: January 16th, 2025

help-circle
  • sga@lemmings.worldtoScience Memes@mander.xyzPeasants
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 hours ago

    I have a script which fetches bib entries for pdfs, and then renames it to my prefered format (names of author (no more than 2) - name of paper).

    in case you are interested

    
    #!/usr/bin/env sh
    
    newnamefn(){
    	bib="$(pdf2bib "$1")"
    	name="$(echo "$bib" | grep "title = " | cut -d'{' -f 2 | cut -d'{' -f 1 )"
    	authors=$(echo "$bib" | grep "author = " | cut -d'{' -f 2 | cut -d'{' -f 1  | sed -z 's/\ and\ /\n/g' | head -n 2 | tr '\n' ' ')
    	echo "$authors-$name" | detox --inline
    }
    
    for i in "$@" ; do 
    	newname="$(newnamefn "$i")" 
    	mv "$i" "${i%/*}/$newname".pdf
    done
    
    

    detox --inline is just a utility which makes the file names shell friendly (removes special characters and spaces), but that is optional. Also, technically the newnamefn is what does all of the job, and below is just a loop to iterate on all files that are given as input like script file1 "file2" file3, where file2 had some special characters, so enclosed in "" quotes. you can also translate it to python, then you would not even require sed and grep (you can just get output in json-esque format). I have a small keybinding in my file manager, which renames all selected files, so I do not have to spend any amount of my mind

    you can make it work in any os (maybe use some llm for it), you just have to install pdf2bib



  • Easy, bowl 2 overs from each end

    broadcasters would not allow this. I agree with your general sentiment, but advertiser usually sneak in 30-40 s of ads in this time, and if we do not change ends for 2 overs, then essentially total break time would be halved. there still would be some small window where bowler will collect their items from umpire, and next bowler comes, so not halved, but more like 30% dip in breaks, and that is 30% dip in ad revenue.

    I’m very pro bowling

    My man. Game currently is way too much in batters court. Recent ind vs eng match basically was a display of very ipl esque batting and flat pitches. I did not expect a full time bowler, who has bowled atleast 10 overs to have a economy over 6; especially a fast bowler.

    Deliberate short run: I like it.

    will ask the fielding team to decide which batter they want on strike.

    This seems a tad too powerful. Especially, becausee decision that a short run was deliberate or not is still largely subjective (how far do you have to be from the crease line for it to be deliberate or just accidentally short. and if the batter is not looking vs looking at his bat/feet as they approach the crease line)

    Now refering to linked article

    Also, can we please nearly get rid of umpires call. I kinda hate it. Especially, wickets hitting being less than 50%. If the trajectory known is not precise, then there should be changes done to predict trajectory better. In last 10 years, the measurement has approved, with better/cheaper cameras, which now record at even higher rates (hence, we would have more precise and larger amount of data), but the 50% has been the same. 50% should at least be decreased to something like 10%. Practically, if there is no contact involved with body, bails get removed with any reasonable amount of impact, so even 10% touching would dislodge the bails.

    So if there is an appeal for an lbw as well as a run out, the TV umpire would now first take up the leg-before review as that occurred first. In case the batter is out, then the ball would be declared dead.

    Thank you, it had to be done.

    The injury will need to be evident and visible to the match officials before they allow a full-time replacement. This would not apply for players suffering hamstring pulls or niggles.

    this “not applies to hamstring/ niggles” is bad imo, because these are one of the most common form of injuries one can get. I get the idea that these are also easy to fake, but maybe icc officials can allow one (or both) team physios to check the player, and verify if the injury is sub worthy or not. In recent memory, tim david (some ipl match I do not remeber exactly, but towards the end of season) got a hamstring pull. Most fast bowlers keep getting niggles because that is the demand of fast bowling on the body.



  • I am not a drummer, but I did learn something closer to piano.

    My 2 cents - Just go and teach. I would have loved if I were taught drums. The children who lost their last teacher also lost some of their recreational activties, and regaining that would be great. Also, DRUMS ARE FUN!.

    Do not be afraid. If you think you are not going to do well, maybe try to teach it to some relative or friend or neighbours’ kids first, and make sure it is a good experience for them.




  • what exactly are you looking for? there are many guides for switching to linux, for example, arch wiki; has enough details for anybody. similarly, there are other distro wikis (fedora/debian/mint/…). But none of them are specifically for switching from windows (10). Most of them do mention that backup your stuff, or mount windows partitions for moving stuff.

    If you need something to switch specifically from windows, that is hard. because the way people use windows changes a lot with people. My personal recommendation would be to just search “switch to linux” on youtube, find suitable videos (in prefered languages or target audiences, which are also suitabbly licensed(most linux youtubers release their stuff under some variation of cc, and youtube by default has also some cc license for all videos. you can check about licenses in youtube description.)). Video demos for people today or more approachable, and can also help navigate any issues that might occur during the move. Once they have some distro installed, they can look up distro wikis to build upon.




  • does your language assume that gay people do not exist?

    pretty much. Many old folks consider it as a disease or mental illness.

    Do you use the exact same word for a man who likes women (eg a straight man) as you would for a woman who likes women (eg a lesbian)?

    That was not a thing, and hence it never had a word/s. basically someone born with a male reproductive part was male, other is female, and that is about it. A male was (is) expected to marry a female (love or arranged(where family finds “suitable” partners, and the bride/groom have little idea of other)).

    Things have changed a lot for better in past 2 decades, but much of the “older ways” still remain as “traditions”.

    I never confused sex and gender, as you describe them, as I said these do not exist as separate concepts in my natiive tounge. I used different words for them, which while not ideal, do convey the meaning. My questions were mostly regarding gendered pronouns, and having terms for different sexes (as in lgb of lgbt) or genders (t of lgbt), and why do even need terms for these, or why would one like to share it with others.






  • No, it is unnecessary, and it would break many auto updating websites, for example, if you use mail in web, then your mail provider has web sockets to get notifications from server to fetch you mail.

    I generally would recommend to disable javascript , and have a whitelist for websites you trust (easily achievable by ublock, or no script). If they do not have js, most attack vectors are neutralised. If you can trust a website to run js, you can trust it to run web sockets.




  • that was not the part of chain i wanted to refer to. Essentially, my native tongue (or culture in which I was raised), there is (was) no difference between sex and gender, as in, there were not separate concepts. What you guys would call a gender (and this is also partly based on interaction in this chain, where I even ask what does being a male even mean) - users preference of pronoun, or attire, etc is what I called orientation in my op (again, I also said in op that I do not know if that is correct term for it, and it was not).

    the paragraph you have highlighted was the only part where I refered sex as sex (the one associated with your partner/s). Other than that paragraph, I mostly (I am guessing here, again, for me concept of gender is new and still fuzzy) meant gender.

    I would apologise again for mmy lack of knowledge on this stuff, and this post has helped me understand gender better.