Alts (mostly for modding)

@sga013@lemmy.world

(Earlier also had @sga@lemmy.world for a year before I switched to lemmings)

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

help-circle
  • sga@lemmings.worldtoScience Memes@mander.xyzPeasants
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    you can create a python virtual environment, and you do not even have to install python for that. you can install python in a user only mode, and then create a virtual environment (these can be made anywhere, so for example, your downloads or documents folder(assuming you are allowed to access these folders, you usually do)), script would have to be modefied a bit, but still doable. In case you need help for this, feel free to reply/message





  • sga@lemmings.worldtoScience Memes@mander.xyzNorman Borlaug
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 days ago

    In India, Punjab Haryana side (north west near pakistan border) were traditionally the bread baskets. But after a crop failures and droughts in 1960s and in 70s, they were experimented here and they were successful - a gree revolution for 10 or so years. But these varieties were very water intensive, and seeing the yields, most farmers just continously year on year did atleast 2 ccrops a year (a winter one (wheat) and a summer (rice)). This made the lands a lot less productive and many parts of the land since then have nearly become barren. 2 crops per year were normal, but it usually was never this intensivem and natural processes to restore the land (artificial or natural fertilisers, or burning parts of previes crops, or tilling) were just not effective. This lead to reduction in output, and today, a lot of youth just can not do farming, either because they do not want to (they have seen/heard of hard times from parents, or just do not have good land left to farming. This is also one of the reasons why a lot of punjabi-haryanvi diaspora is now outside India - many students just did not see a future here, and if their parents had some money from the good times, they sent their children abroad (us and canada makorly).

    The intention to improve crop yield was right, but the implementation went wrong, and consequences were not great. We did not have a major famine since. Many other states took the job of producing these crops (either they partially adopted the newer seeds, or just had external investments, and used older stuff in a less intensive manner), but atleast the punjab side region lost a lot.

    edit - after reading again, I forgot to add that a big part of the problem was also fertilisers. with the hyv (high yield variety) seeds, fertilisers and pesticides adoption also became the norm, and this made the yield more to very high levels for 10-15 years (uptil early 90s). but with time, land became less productive, and the amount (and hence cost) of fertilisers kept on in increasing, and this is a major part of why it was not as economicaaly viable to do farming anymore.


  • What I meant was for example, if someone is weak in, let’s say, english, but understands their shit, then they conduct their research however they do, and then have some llm translate it. that is a valid use case to me.

    Most research papers are written in English, if you need international cites, collaboration or accolades. A person may even speak english but it is not good enough, or they spell bad. But then the llm is purely a translator/grammar checker.

    But there are people who use it to do the latter, use it to generate stuff, and that is bad imo




  • others have given pretty good picture of what you have to do, but you can also do this in some other language, for example in binary, or ascii, and then reduce the font size to something close to 1 pixel. the actual text of pdf is stored in seperate xml tags. Plus you can also write it simply in plain text anywhere near margin of page (no need to do color or size shenanigans) and simply crop pdf out. Cropping of pdf does not remove the stuff, just hides it. Unless you rasterise pdf afterwards and then submit, the stuff is simply there with no special amount of work required.










  • sga@lemmings.worldtoScience Memes@mander.xyzPeasants
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days 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