Alts (mostly for modding)

@sga013@lemmy.world

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

  • 9 Posts
  • 244 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
    ·
    8 hours 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
    2 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.xyzpHun
    link
    fedilink
    English
    arrow-up
    13
    ·
    7 days ago

    I know this is a meme, but in case someone is interested, we usually do not want to use strong acids/bases to maintain buffers, instead, weaker acids (for eg, acetic acid), weaker bases (nh4oh), or their correponding weak-strong salt pair, or if it is really close to 7, then weak-weak, weakly dissociating salts (likr (nh4)2 co3).

    I am probably forgetting the proper names for this, but idea is that waker acids/bases do not dissociate completely. for example, iirc, nh4oh is something close to 9-10, so if you want a basic buffer, then you use nh4oh in bulk to get close to required absolute amount of oh- ion concentration (maybe, because you want some reaction to happen in proper stoichiometric ratios), and for fine tuning, use very low concentration of stronger acid/base (depending on the fact that your target is above or below the value of bulk). stronger acids/bases almost immediately completely ionise. for example, i want to make something like 8.5, then i start with nh40h with 9, and slowly add hcl to reduce ph. with this, you make nh40h + hcl -> nh4cl + h2o. this nh4cl, is now acting as weakely dissociating. this reaction is also reversible. around the equillibrium ph, if you add more h+, then reaction goes forward. but simply by adding more water (or diluting), you can reverse this. with salt like nacl(nacl + h2o -> na+ + cl-) , they will practically never recombine, and you can not use this to your advantage.

    the actual salt/acid/base to be used will also depend on solubility of present ions, miscibility, organic or non organic (in this context, organic means carbon related molecules)



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



  • 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.