sga

joined 5 months ago
MODERATOR OF
[–] sga@lemmings.world 4 points 8 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

[–] sga@lemmings.world 3 points 5 days ago

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.

[–] sga@lemmings.world 5 points 5 days ago

might as well take a safety factor of 2, so I can use τ, which requires less tie to write than π (I am a engineer)

[–] sga@lemmings.world 3 points 5 days ago

yes, there are "characters" from linux universe (like bsd puffer fish, or krita female something, goat (fsf) and more))

[–] sga@lemmings.world 11 points 6 days ago

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.

[–] sga@lemmings.world 2 points 6 days ago

no (ish), what I meant there was i can manually click through all links in yacy's index (a bit of a hyperbole). But as I had hinted, I have offline backup for a lot of pages (so it is not a index really, but it is searchable and i can just open pages). I have nearly 0.5 million articles. 90+% is wiki, then arch and programming books/docs, and hopefully more to come. And all of this requires less than 60 GiBs, and searching is really fast (my typing speed is the limiting factor)

[–] sga@lemmings.world 1 points 1 week ago

I’d be curious to know what your native tongue is

I would not give you a specific language, but country is India

Orientation refers to the same thing as attraction

this is new to me. In my post I used orientation for what I assumed to be gender, but I had no idea it was also related to attraction.

I do understand both points of finding similar folks or possibly finding partners

[–] sga@lemmings.world 1 points 1 week ago (2 children)

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.

[–] sga@lemmings.world 2 points 1 week ago (2 children)

I also did use yacy for some time, but problem is - index is too small. I could within weeks visit each and every page indexed by yacy, and that is not a good thing

[–] sga@lemmings.world 2 points 1 week ago

no, libreddit ( a privacy frontend for reddit, third party) was renamed to redlib.

[–] sga@lemmings.world 6 points 1 week ago

We all got our own shit and the world would be a better place if people could just not be assholes to each other about the little things

If only everyone would get that. Thanks!

[–] sga@lemmings.world 3 points 1 week ago (2 children)

old reddit or libreddit (now redlib). If you browse without accout, that should be enough. If you have a account, I would still enable js only for old reddit and not reddit as whole.

 

TL;DR - why do we need so many terms? can we all not use just a simplified pronoun system (as explained below, or if someone else comes up with something better), and can we stop adding a sexual preferences as a part of gender, as that is something too personal in my opinion?

I primarily want to understand how it relates to a person's identity.

Before starting, let me partially introduce myself. I am a male, and If I get my terms correctly, I am possibly Aero Ace. I am (possibly) coming of a privilige that my percieved gender identity is same as that of what I accept myself to be. Also, I have not read any literature or watched much content about this stuff. I am not asking anything about why would someone have a "different gender". I just want to understand how it relates to you as a being.

And before going ahead, I am not sure gender is the best word or not. If it is not, please correct me. And I am sorry in advance in case I say stupid or bizzare or straght wrong stuff. Please forgive me if possible.

Also I am quite ramble-y, so reading and understanding what I write may be hard, or non-sensical, so pardon me for that too.

My first question is, why do we have so many terms? I know the answer is somewhat obvious, that everyone has there own preferences, and it may not align with someone else, so to identify themselves, they would get a different label. (kinda like names, if everyone had same names, it would cause confusion) But I also want to ask, Is using a label not somewhat alienating?

Try to understand my perspective, I have almost never mentioned my gender to anyone. Possibly it is because my "attire" says it. Or maybe it is because I am not a very social person, or the fact that I have never had a "personal" conversation with some other person. My general conversational idea is how it goes with siblings - slightly informal, a lot of stupid slander, and jokey stuff, and the actual stuff. If someone comes to me, and mentions there gender, I kinda do not know how to process it. because as I understand, 1 part of gender ideentity is what "orientation" (sorry if it is a bad way to put it, but I want to mean how they dress, or how they want to adressed as) and another is sexual preferences. I understand that If I know there gender, I can atleast address them as they prefer (also I do not know how to do it in general. I am an old school guy, I use they/them/their for people older than me (as a form of honorification), with small children (it is somewhat amusing, and also children like it when they get respeect) and whenever I do not know what gender a person is, or how does that gender prefered to be addressed). But this gave me the thought, that why do we not use the same pronouns for everyone (for example they/them), or maybe 2 pairs, one for formal, one informal, or 1 more pair, for singular and plural. Why do pronouns have to depend on gender?

The second part is sexual prefernces. I do not know much about sex or sexual preferences. I am a young adult, and have not had to know about this for any person that I have met yet. I have never had the interest to know about this for someone, neither have I retained this information. I understand that if you are looking out for partner/s, then you would have to share this, so we would have to use some words for it. But why do we have to keep this as a part of gender. As in, why would I want to share this information with my governments (who do census), or for my visa applications. Should this not just be something personal?

I understand that one reason to have some words for it is inclusivity. If, for example, we want some group to better assimilate with society, and we want to do some "positive discrimination" (I do not know if this is appropriate wording or not, what I mean is for example, reservations, or some other kind of actions to integrate some people in society), then we would need some terms to make rules with. And that makes sense, but then again I feel that revealing your preferences is a bit too revealing. Am I overblowing this? I also understand that completely ditching the sexual part from gender might not be possible today. It would probably require a more accepting society. For example, in most places, gay marriage is still illegal. I do not know why laws have to have laws defining marriage (it may have something to do with subsidies going for marriages, or definitions of families/spouse being used by insurance companies or any other banking system, where your spouse also gets certain benefits/rights), or gay adoption is illegal, but can we not make something like - any reasonable person/s can adopt anyone (where reasonable part is just to maybe seculde criminals, or people with prior histories of child related offences, or if they are not financially stable - but all this is very separate discussion)

If a person tells me their gender, how should I react/respond to it? Is my current line of actions appropriate (just address them with their preferd pronouns, and if I do not know that, use they/them; completely ignore the sexual part of it)

Another thing that I want to ask is, why do some groups use different acronyms? I remeber hearing about this the first time, and the word used was LGBT. Then I heard LGBTQ, then LGBTQIA+, and today I heard LGBTQ2. I presume that since more people are getting aware, and they are trying to express themselves, they need some newer words, and hence the acronym would keep on evolving, if so, is it not a endless exercise? Am I being insensitive If I use one over other (for quite some time, I have been sticking with lgbtqia+, in hope that + means extensions, as in, others, so hopefully it is less excluding than others, but if that is not the case, please correct me.)

edit - moved my summary to the top as tl;dr

 

Most people either use google as their search engine, or one of the "privacy friendly ones" (ddg, qwant, brave, startpage, ...), or use self hosted or publicly available metasearch engines, like searxng, or whoogle, etc.

This websites lists out websites which have their own indexes, and which depend on big providers.

Why YSK?

It is good for your privacy to not use a big provider like google, which now prefers to serve you ai generated ssummaries, which are based on a few giant websites, and this is not good for a open web.

I am also a person who almost always uses "(insert query) reddit" to get better results, because I mostly do not want SEO spam, and reddit results used to be human generated content. Now even that is hit and miss. Also, reddit made a deal with google, so for newer results from reddit, you can only get them from google.

Then we have the "privacy friendly ones" which most of the time are wrappers for other bigger indexes, for example ddg famously uses bing, brave "suppliments" (read this suppliments as almost always) it's results from google, startpage is basically a google frontend, etc. Brave, qwant, and few others also claim to have their own indexes, but they are small and not rich as google and bing. Also, wwhen you think about it - what is their business model - how do they get money for the search apis - most either serve adds or have some form of tracking. Also, bing has "kinda" closed it's search api (not really clear about this), so many of these privacy friendly options will have to either switch to google, or only serve using their indexes.

Meta-search engines kinda seem like better options, as you can run searxng on your own machine, or use the public ones, but it still has problems. You are still bringing the big providers traffic, which makes their advertisement clients happier and prefer them over smaller search engines. If you use a public instance, then it is good for your privacy, but the public instance would now generate a lot traffic, and often get banned or rate limited, and hence you can not rely on them. If you use your personal instances (I did this for a long time), you will still be tracked as your IP is still visible. You avoid their annoying ui and popups but still are tracked.

So what should you use?

You can only decide this. I would prefer something which has a reasonable business model - if they do advertisement, that should ideally be non tracking. Ideally their client and server code should be foss (so you can verify their claims), or have paid plans or apis if you do not want ads.

For example, Kagi has only paid plans, but I do not prefer or use them, because they are expensive (5 dollars for 300 searches per month or something similar. I am from one of third world countries, and 5 dollars is a lot. plus 300 searches seem less to me) but that is subjective, and your privacy has a price, so this is not neccessarily a objectively bad thing. But their code is closed source, and they do not completely use their own indexes.

I have also used Mullvad's Leta search engine for about a month, and they are now effectively frontends for brave search or google (you can choose). Their business plan initially was that Leta was only available to their VPN clients, and VPN subscription would supplement the search cost. Now they have it available for free, so I do not really understand their business plan (maybe the number of clients they have is large enough, and number of leta users is small, that they can afford to run leta for loss, and maybe as possible advertisement for mullvad. Mullvad to me is a good privacy centric company. I am not their client, but they seem to be trust worthy. You can try them, but you would still support some big provider.

You can also try the independent search providers listed in the article. They are often small, serve bad (subjectively speaking; your taste regarding search engines is also heavily tuned to google like results because of years of exposure to it) results, but using them also supports open web (you would often find that these smaller providers do not have good indexes for big websites, and sometimes it is intentional, sometimes it is a byproduct of them being careful, or the websites banning/rate limiting then).

I have now started trying stract, and will try others too. You should also consider trying some independent search engines.

In my personal case - I have a offline setup where I have large sections of wikipedia and a few other websites (like programning language docs, or my favorite manga wiki, will be adding much of stack overflow soon) available offline, and I use my custon launcher to search through them (faster then searching them online). I bookmark a lot of sites (~ 2000) and do this to stop searching the same stuff over and over again. This has reduced at least 30-40% of all my searches. But I still need a search engine for anything I do not have currently, or stuff I do not/ can not get. I am trying stract, because it is open source, they seen to have some fine plans for business in future (non tracking, current search term related ads or subscription service ; currenlty they are running on previous funding from nlnet); search results are acceptable (not good, but servicable); and finally - it is written in RUST (I an a rust fan). I am not affiliated with the project, but just spreading a good word because I just found them, and could not find much online.

PS: I am not used to writing much, and not a good typist. Please forgive the brevity. Feel free to correct me, both on spellings and content

 

Most people either use google as their search engine, or one of the "privacy friendly ones" (ddg, qwant, brave, startpage, ...), or use self hosted or publicly available metasearch engines, like searxng, or whoogle, etc.

This websites lists out websites which have their own indexes, and which depend on big providers.

Why YSK?

It is good for your privacy to not use a big provider like google, which now prefers to serve you ai generated ssummaries, which are based on a few giant websites, and this is not good for a open web.

I am also a person who almost always uses "(insert query) reddit" to get better results, because I mostly do not want SEO spam, and reddit results used to be human generated content. Now even that is hit and miss. Also, reddit made a deal with google, so for newer results from reddit, you can only get them from google.

Then we have the "privacy friendly ones" which most of the time are wrappers for other bigger indexes, for example ddg famously uses bing, brave "suppliments" (read this suppliments as almost always) it's results from google, startpage is basically a google frontend, etc. Brave, qwant, and few others also claim to have their own indexes, but they are small and not rich as google and bing. Also, wwhen you think about it - what is their business model - how do they get money for the search apis - most either serve ads or have some form of tracking. Also, bing has "kinda" closed it's search api (not really clear about this), so many of these privacy friendly options will have to either switch to google, or only serve using their indexes.

Meta-search engines kinda seem like better options, as you can run searxng on your own machine, or use the public ones, but it still has problems. You are still bringing the big providers traffic, which makes their advertisement clients happier and prefer them over smaller search engines. If you use a public instance, then it is good for your privacy, but the public instance would now generate a lot traffic, and often get banned or rate limited, and hence you can not rely on them. If you use your personal instances (I did this for a long time), you will still be tracked as your IP is still visible. You avoid their annoying ui and popups but still are tracked.

So what should you use?

You can only decide this. I would prefer something which has a reasonable business model - if they do advertisement, that should ideally be non tracking. Ideally their client and server code should be foss (so you can verify their claims), or have paid plans or apis if you do not want ads.

For example, Kagi has only paid plans, but I do not prefer or use them, because they are expensive (5 dollars for 300 searches per month or something similar. I am from one of third world countries, and 5 dollars is a lot. plus 300 searches seem less to me) but that is subjective, and your privacy has a price, so this is not neccessarily a objectively bad thing. But their code is closed source, and they do not completely use their own indexes.

I have also used Mullvad's Leta search engine for about a month, and they are now effectively frontends for brave search or google (you can choose). Their business plan initially was that Leta was only available to their VPN clients, and VPN subscription would supplement the search cost. Now they have it available for free, so I do not really understand their business plan (maybe the number of clients they have is large enough, and number of leta users is small, that they can afford to run leta for loss, and maybe as possible advertisement for mullvad. Mullvad to me is a good privacy centric company. I am not their client, but they seem to be trust worthy. You can try them, but you would still support some big provider.

You can also try the independent search providers listed in the article. They are often small, serve bad (subjectively speaking; your taste regarding search engines is also heavily tuned to google like results because of years of exposure to it) results, but using them also supports open web (you would often find that these smaller providers do not have good indexes for big websites, and sometimes it is intentional, sometimes it is a byproduct of them being careful, or the websites banning/rate limiting then).

I have now started trying stract, and will try others too. You should also consider trying some independent search engines.

In my personal case - I have a offline setup where I have large sections of wikipedia and a few other websites (like programning language docs, or my favorite manga wiki, will be adding much of stack overflow soon) available offline, and I use my custon launcher to search through them (faster then searching them online). I bookmark a lot of sites (~ 2000) and do this to stop searching the same stuff over and over again. This has reduced at least 30-40% of all my searches. But I still need a search engine for anything I do not have currently, or stuff I do not/ can not get. I am trying stract, because it is open source, they seen to have some fine plans for business in future (non tracking, current search term related ads or subscription service ; currenlty they are running on previous funding from nlnet); search results are acceptable (not good, but servicable); and finally - it is written in RUST (I an a rust fan). I am not affiliated with the project, but just spreading a good word because I just found them, and could not find much online.

PS: I am not used to writing much, and not a good typist. Please forgive the brevity. Feel free to correct me, both on spellings and content

 

For me, fitgirl installer does not work with wow64 (where you do not have to install 32 bit libraries). I had earlier also tried with wine-wow64 package from chaotic aur repo, and it did not used to work back then, and now arch linux has made the default wine package wow64 version. This has benefits (smaller package size, you can disable mulitlib repo, etc), but now installer does not work. It gets stuck as soon as any decompression is about to begin. And to me not much is clear. My guess is the freearc compression that fitgirl uses, its decompressor does nto work in wow64. Has anyone else tried for whom it works? Maybe I have to add a separate dll for this and create a override. Fitgirl faq does not mention it (probably since wow64 is still relatively new).

If this is not a right community for this, then sorry, I do not know of a better one. (wine team would not handle requests related to pirated installers, fitgirl or related communities in general do not do linux much, and of them, only a small fraction would be using wow64)

For testing purposes, You can grab almost any installer, I went and sorted by size (smallest first) and got it, and it does not work. (I am not going to provide link here for somewhat obvious reasons)

 

For more context look at the following posts

Look up what "Uplifting" means - https://lemmy.world/post/30071584

also I made a post some time back - https://lemmy.world/post/28597945

For voting - I will not use the post upvotes and downvotes as the vote, and instead, vote on the comments which are highlighted (spoken as moderator, in case your ui does not show them differently, just sort the comments by oldest).

This will essentially remove the votes of people who did not bother reading this line (I have no problem with someone being busy, and one may not have time to read) but someone who just reads titles and moves on is not really even caring about what community a post came from, and may just treat it is a post from news community. This is inspired somewhat by someones comment of thee first linked post, where they said they upvoted stuff but did not pay attention to what community they belonged to (I am not hating on them, actually it is great of them to admit what they did, which in itself is not wrong).

 

Ask anything you would consider too vague or too stupid. It is not supposed to be very refined or thought through, it can as well be a string of random symbols, just tell us how to read them. Consider it a very serious questions community, where questions most definitely are not serious, or the other way round. WE APPRECIATE ABSURDISM. WE APPRECIATE CREATIVITY. WE THRIVE ON ANSWERING GENUINE CURIOSITY!

These could be questions which you think a 5 year or 10 year old would ask, but you are not 5/10 year old and you don't have anybody to ask.

Rules:

  • Standard Netiquette reference - TL;DR - just be civil

  • Lemmy Instance Guidelines - TL;DR - just be civil

  • Post format is simple - it should be a question. You can add additional context to your delight, for example, what do you expect the answer to be, or how do you think one should try to answer it. Questions can be any any language (preferably english) but do what you like, just tag the post appropriately (you can select language while creating post). NSFW is fine as well, but please tag appropriately.

  • Stupid in a general sense - Ideally questions should not be stupid because they use fancy words. For example, if someone asks - why do we not use ferritic steels in cold temperatures? This question is stupid to all metaallurgy people because almost all of them know of ductile to brittle transition. But how many of us are metallurgists? (or have taken some crystal structure courses). They can be niche, we are not against questions that only some of us understand, but if you think the questions are too specific, give us additional context. WE ARE WELL SERVING SERVERS!

  • Academic Integrity - try to answer questions just the best way you can. if you think a alphabet is good, just do it, if you think.

  • New Rules maybe added in future - to which all of you also agree to while creating any post. YOU MUST OBEY A CONTRACT INDEFINITELY. BY POSTING/COMMENTING, YOU ARE CONSIDERED TO BE AGREEING THIS CONTRACT. IF YOU FAIL TO UPHOLD TO THE CONTRACT, YOU SHALL SACRIFICE YOUR FIRST BORN CHILD OR BEAR THE CONSEQUENCES OF ENRAGING THE GODS WHO SHALL PUT A CURSE OPEN THOU (or the subsequent ones in case you already sacrificed one, we are accepting in that sense, we would not be cursing your lineage/subsequent lives and stuff. If you do not have kids, then have them. The kid should be born or Feb 29 of any year, and must be 32 years and 42 days old at the time of sacrifice. Please do remember to contact us for the birthday parties, we can bring the best food and entertainment (rated the 17th best party organiser, by my friends list of - best birthday organisers who were born on 29th feb). Also, most of the blessed servants of god (read moderators) are very kind, and can "pardon" your crimes, for appropriate gifts).

-6
submitted 2 months ago* (last edited 2 months ago) by sga@lemmings.world to c/upliftingnews@lemmy.world
 

Before beginning, I know this is not apprpriate question, and there may be better places to ask these questions. I also know that I as a mod am kinda abusing my powers 9not pinning the post, but still breaking the 1 important rule - to post a uplifting news, and this post is neither upliftiing nor a news. I also do not know how it is decided in other communities, I am a relatively new mod, so I do not know how to act in certain situations. But by the powers that have been vested to me by the gods (previous mods), I want to ask a lot of questions.

Also for the time being, lets say the world has 2 major groups, martians, and venusians, there are other minority groups too, but if funded govts can not bother to listen to them, how can i, a under paid corrupt mod do that. (/s just in case people do not get it).

What I am basically asking is, is please help me make a 'constitution' (for the galactic rulings, obviously) on how should I (or maybe others if they choose to accept it) moderate, certain galaxy.

More seriously, please help discuss democratically, what should be the rules. To you questions may seem to have obvious answers, they did to me too, but what was not obvious, that different people have different obvious things (mind blown /s). And you all will get a chance to be "immortalized" by getting your name in the constitution drafting committee.

  • What deserves a deletion of content (a comment or a post)?

-> my current understanding -> anything that breaks obvious rules. Lets say a martian, non sarcastically says - all venusianns are morons, illeterate wild animals who do not deserve to live. I would consider this as hate speech, and delete it. If someone posts something nsfw, but does not mark it appropriately, i should delete it. But what if someone posts something stupid - lets say someone thinks venusians have seven legs, when they actually have 4, and say, i want all 7 legged venusians to die. What should i do - should i upvote it, considering it is a attempt at humor, and support them, or delete it since they are still killing "hypothetical" venusians, or ignore them (that is what i have been doing right now for some reports)

  • what deserves a ban?

-> similar to prior, so not explaining any further. Sometime back, i had a discussion with another mod, that we should have a strike system - something like, post hate speech 3 times, or something alike, then we ban, because you were given ample chances to figure out that you are doing something wrong (there comments would still be deleted, they would still get the downvote beating, just not a instant ban)

these questions were general, and not community specific, but following are

there are going to be lots of situations, to which you have to vote yes or no, is it uplifting or not (you are welcome to write 20 para replies too, but atleast 1 letter is required, something like 1 y, 2 n)

  1. a female dog gave birth to ten little cubs

2a) cure to cancer has been found, and the researchers have patented it, and selling it for 1 million usd (for each patient) (and i know there is no 1 single cure to cancer, consider a hypothetical situation)

2b) cure to cancer has been found, and they make it free for all

3a) linux market share grows by 5 times, used by 30% of desktop users

3b) microsoft windows is now open source

3c) apple makes all their hardware designs open

Also, for the following part - any resemblence to reality is purely coincedental and unintended, i do not even live in mars or venus to know much about their politics. 4) (this question requires context) - We all know about the martian leader, he is currently leading everyone, some martians love him, others are ok with him, but he absolutely hates all venusians, and does not even acknowledge existence of saturnians, and calls them confused folk (because saturnians wear rings on them). He lies, he robs, he takes away the very last saved bite you keep while eating the food (the best bite™).

4a) the martian leader is defeated in a peaceful manner

4b) the martian leader has been taken down in a millitary coup

4c1) people march to martian leaders door, and he leaves under pressure

4c2) people march to martian leaders door, and he leaves after a bit of riot (a "few" people become "martyrs")

4d) the martian leader today opened amusement park

4e) the martian leader finds cure to cancer, and makes it free

4f1) martian leader is sad because his house has been a lot less "dusty" lately (he loves sand, because it coarse, rough, and gets everywhere)

4f2) martian leader is sad because his house has been a lot more "dusty" lately (he hates sand, because it coarse, rough, and gets everywhere)

4g) he is sad because his dog died

4f) he is sad because his business is making less profits.

I will not reveal my answers here, not to bias you people, but i would leave my general strategy in the spoilers section below

spoiler

To me something is upliftng, if i can tell it a youngling, a growing learning mind. Their brain is pure, maybe not ready to comprehend the vast world. To them, there are only simple rules - you see someone injured, you dress them. You see someone crying, ask why, if you can not help, ask someone else, and so on. This should be enough to get most questions answered from my perspective

 

Many people might already be knowing this, for example people who use custom keyboard layouts, or people using different keyboard layouts, other than US, which most manufacturers and operating system and desktop environmnets use as default.

Most of my applications use vi like bindings, so pressing shift + ; to get : was a bit annoying, and so i was trying to find a way to swap them, and while doing so, I added most of greek alphabet, makes my technical writing a bit more easier (instead of doing $alpha$, I can do alt + a to get $α$), If you use TeX, then you can use #XeTeX to enter unicode, I use Typst, so I can directly use them, and they are used appropriately in text and equation mode. This also is helpful if your notes system does not have some math mode rendering (like plain markdown, without any katex).

If you are multilingual, but don't write much in the other language, this approach works well, if you write comparable amount in both languages, then you should consider setting a keyboard shortcut in you DE/WM config to switch the keyboard layouts

The following procedure is linux specific (or maybe other posix systems too, if they use xkb to manage keyboard stuff (this also works on wayland)), but I am sure windows and macos will have something similar (though i have not bothered to check for it, sorry for that). This does not work as a daemon sitting in between, this is using the standard way to modiify keyboard layout.

You can start by making a file like the following, and you can start with /usr/share/X11/xkb/symbols/us (or the base language of your choice, for most european language layouts, base is /usr/share/X11/xkb/symbols/latin). You have to save it in the /usr/share/X11/xkb/symbols/ directory (in my case, my original file is in config dir, and I have symlinked it to /usr/share/X11/xkb/symbols/us-custom). For list of valid symbols (most of unicode, the thing we want is the correct names) please refer /usr/include/X11/keysymdef.h. You can choose what modifier you want to use with include "level3(ralt_switch)" - I am using right alt as the third modifier, so to get the third layer, I go alt + <key>, for 4th layer, mod3 + shift + <key>. Then you can set to use this custom symbol map in your DE/WM config, in my case I have added xkb_layout "us-custom" in my sway config (for input keyboard).

// parent system is US, with a lot of greek sybols appended, and some more
// ; -> :, : -> ; - mostly for vim modes (easier to do : now)
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
    name[Group1]= "English US - Custom"; 
    include "level3(ralt_switch)"

    key <TLDE> {[ grave, asciitilde ]};
    key <AE01> {[ 1, exclam, exclamdown ]};
    key <AE02> {[ 2, at ]};
    key <AE03> {[ 3, numbersign, Greek_pi ]};
    key <AE04> {[ 4, dollar, trademark ]};
    key <AE05> {[ 5, percent ]};
    key <AE06> {[ 6, asciicircum ]};
    key <AE07> {[ 7, ampersand ]};
    key <AE08> {[ 8, asterisk, Greek_PI ]};
    key <AE09> {[ 9, parenleft ]};
    key <AE10> {[ 0, parenright, degree, schwa ]};
    key <AE11> {[ minus, underscore ]};
    key <AE12> {[ equal, plus, plusminus ]};

    key <AD01> {[ q, Q ]};
    key <AD02> {[ w, W ]};
    key <AD03> {[ e, E, Greek_epsilon, eacute ]};
    key <AD04> {[ r, R, Greek_rho ]};
    key <AD05> {[ t, T, Greek_theta, Greek_tau ]};
    key <AD06> {[ y, Y ]};
    key <AD07> {[ u, U ]};
    key <AD08> {[ i, I, integral ]};
    key <AD09> {[ o, O, Greek_omega, Greek_OMEGA ]};
    key <AD10> {[ p, P, Greek_phi, Greek_psi ]};
    key <AD11> {[ bracketleft, braceleft ]};
    key <AD12> {[ bracketright, braceright ]};

    key <AC01> {[ a, A, Greek_alpha, ae ]};
    key <AC02> {[ s, S, Greek_sigma, Greek_SIGMA ]};
    key <AC03> {[ d, D, Greek_delta, Greek_DELTA ]};
    key <AC04> {[ f, F ]};
    key <AC05> {[ g, G, Greek_gamma, Greek_GAMMA ]};
    key <AC06> {[ h, H, Greek_eta ]};
    key <AC07> {[ j, J ]};
    key <AC08> {[ k, K, Greek_kappa ]};
    key <AC09> {[ l, L, Greek_lambda, Greek_LAMBDA ]};
    key <AC10> {[ colon, semicolon ]};
    key <AC11> {[ apostrophe, quotedbl ]};
    key <BKSL> {[ backslash, bar ]};

    key <AB01> {[ z, Z, Greek_zeta ]};
    key <AB02> {[ x, X, Greek_xi, Greek_XI ]};
    key <AB03> {[ c, C, Greek_chi ]};
    key <AB04> {[ v, V ]};
    key <AB05> {[ b, B, Greek_beta ]};
    key <AB06> {[ n, N, Greek_nu, ntilde ]};
    key <AB07> {[ m, M, mu ]};
    key <AB08> {[ comma, less ]};
    key <AB09> {[ period, greater ]};
    key <AB10> {[ slash, question, questiondown ]};
};

 

This may not be a appropriate post for this community, and is not strictly web development. It is browser related, specifically qutebrowser, but i don't think the behaviour is qutebrowser specific, it may be chromium specific though, but i don't know how to test on any other browser because i hardly know js. If this is not valid for this community, please do tell.

I was writing a way to redirect other lemmy instance links to my home instance. I am basically trying to write lemmyverse.link (it's working is explained in the following issue, but essentially we just ask the instance where we want to be redirected, if they have the post, if so, they return json, which will have post_id in that instance, and we can use that.

https://github.com/RikudouSage/lemmyverse.link/issues/14

I think I have implemented that somewhat successfully, and it works for all the instances that i have tried, except lemmy.world (why could it not be some tiny instance which i could ignore). For lemmy.world, browser ui shows as if it is loading. I checked dev tools, and we do get the redirection (see the post_id change below in the attched video, and when i click that, i get redirected to correct page). It shows a red errors, but i can not find how to find errors (none of tabs show any errors).

https://envs.sh/s/NhX_dHEZh52CD1MwcXXLwg/cSI.mkv

(the video show succesful redirection for some instance, and unsucceful redirection for other)

I hope someone who knows how to do this help, I could not find anything wrong, and hence am not able to even search for errors online.

code for anyone wanting to see it


import qutebrowser.api.interceptor
import re
import requests
import sys
def match(patterns, url):
    for pattern in patterns:
        if re.match(pattern, url):
            return True
    return False
with open('/home/sg/data/dev/program-data/lemmings_coookie_jwt', 'r') as f:
    cookie = f.read().strip()
def resolve_lemmings_object(query):
    url = "https://lemmings.world/api/v3/resolve_object"
    params = {"q": query}  # Pass the query as a parameter
    headers = { "Cookie": cookie}
    try:
        response = requests.get(url, params=params, headers=headers)
        response.raise_for_status()  # Raise HTTPError for bad responses (4xx or 5xx)
        return response.json()['post']['post']['id']
    except requests.exceptions.RequestException as e:
        print(f"Error: {e}")
        return None

def per_website_rules(request: qutebrowser.api.interceptor.Request):
	lemmy_patterns = [ r"crazypeople\.online", r"discuss\.online", r"discuss\.tchncs\.de", r"feddit\.nl", r"feddit\.org", r"feddit\.uk", r"jlai\.lu", r"lemm\.ee", r"lemmy\.blahaj\.zone", r"lemmy\.ca", r"lemmy\.cafe", r"lemmy\.dbzer0\.com", r"lemmy\.ml", r"lemmy\.one", r"lemmy\.run", r"lemmy\.selfhostcat\.com", r"lemmy\.wtf", r"lemmy\.zip", r"mander\.xyz", r"ponder\.cat", r"programming\.dev", r"sh\.itjust\.works", r"slrpnk\.net", r"sopuli\.xyz", r"toast\.ooo", r"lemmy\.world", r"spaffel\.social" ]
	post_pattern = [ r"^/post/.*$" ]
	if match(lemmy_patterns, request.request_url.host()) and match(post_pattern, request.request_url.path()):
		url = request.request_url.scheme() + "://" + request.request_url.host() + request.request_url.path()
		# post_id_in_my_prefered_instance = os.popen("lemmy-redirect " + url).read()
		post_id_in_my_prefered_instance = resolve_lemmings_object(url)
		request.request_url.setHost('lemmings.world')
		request.request_url.setPath('/post/' + str(post_id_in_my_prefered_instance))
		try:
			request.redirect(request.request_url)
		except:
			pass

 

I ask this question because of this comment chain (and totally not because I got down voted and my ego is too fragile, it is most definitvely absolutely positevly me asking for the science. I swear)

https://lemmings.world/post/23635250/14708515

If you can go through it, please do, there are some references for some claims, if not you can go through the following ai generated summary (if it helps, it is a local llama)

The original poster (sga) expressed concerns about the practice of trimming cat nails, comparing it to declawing and suggesting that it may cause trauma for the cat. Other users (Bamboodpanda and Chairman Meow) responded that trimming cat nails is a normal and necessary practice, especially for indoor cats, to prevent overgrown nails and damage to furniture. sga argued that cat claws are an essential part of a cat’s predatory nature and that trimming them may impair their ability to hunt and defend themselves. Chairman Meow countered that cat nails are not as robust as sga suggested and that trimming them does not impair their usability. sga provided several sources suggesting that indoor cats often engage in predatory behavior outdoors, despite being fed at home. SupremeDonut responded that the sources sga provided referred to free-range and feral cats, rather than indoor house cats. sga provided additional sources to support the claim that indoor cats also engage in predatory behavior outdoors. sga also mentioned the hypothesis that some amount of injuries or exposure to allergens can be beneficial for children’s immune systems, and provided a source to support this claim.

view more: next ›