Suramya's Blog : Welcome to my crazy life…

January 21, 2025

Getting my NVIDIA card working after breaking it again with the latest updates

Filed under: Computer Software,Knowledgebase,Linux/Unix Related — Suramya @ 11:10 AM

NVIDIA doesn’t have the best history with Linux as it’s cards historically didn’t work well with Linux. But over the past few years things were changing and at least in my experience they were at a point that the cards worked without major issues. As some of you know I use the unstable version of Debian, primarily because it has the newest versions of software available but the downside of using it is that things break and sometimes they break spectacularly.

This time there was an issue with the NVIDIA driver/configuration which caused my system to stop opening the GUI login interface when I restarted the system. I tried reinstalling the driver as the error messages in the log suggested that the issue was caused by a missing driver. I purged the nvidia drivers by issuing the following command as root:

apt purge *nvidia*

Then reinstalling the drivers using the following command:

apt-get install nvidia-detect nvidia-driver

After this reinstall the driver was being detected correctly but the GUI still wasn’t coming up. A search on the net didn’t return many useful results but on one of the sites, there was a reference to the fact that running nvidia-xconfig recreats the X Configuration file for NVIDIA cards, so I tried that by running the following commands as root

apt-get install nvidia-xconfig 
nvidia-xconfig 

This created the Configuration file and once I rebooted everything started working again. I did have to reconfigure my desktop since one of the things I had tried was to reset all the custom configurations to KDE but that was mostly a minor issue.

This issue was on Kernel 6.12.9-amd64 with Debian Unstable release as of 17th Jan 2025

– Suramya

January 20, 2025

ISRO successfully docks two satellites with each other

Filed under: Astronomy / Space,My Thoughts — Suramya @ 10:25 AM

If you have been following my blog you know I love ISRO (Indian Space Research Organisation), they have been doing fantastic work at a fraction of the budget available to NASA and ESA. 3 days ago they made history again by becoming the 4th nation (after US, China and Russia) to successfully dock two satellites with each other. The mission was a Technology Demonstrator/Poof of Concept essential for India’s future space missions (which are quite ambitious). The mission parameters and Objectives were as follows:

SpaDeX mission is a cost-effective technology demonstrator mission for the demonstration of in-space docking using two small spacecraft launched by PSLV. This technology is essential for India’s space ambitions such as Indian on Moon, sample return from the Moon, the building and operation of Bharatiya Antariksh Station (BAS), etc. In-space docking technology is essential when multiple rocket launches are required to achieve common mission objectives. Through this mission, India is marching towards becoming the fourth country in the world to have space docking technology.

Objectives:

The primary objective of the SpaDeX mission is to develop and demonstrate the technology needed for rendezvous, docking, and undocking of two small spacecraft (SDX01, which is the Chaser, and SDX02, the Target, nominally) in a low-Earth circular orbit. Secondary objectives include:

  • Demonstration of the transfer of electric power between the docked spacecraft, which is essential for future applications such as in-space robotics,
  • Composite spacecraft control, and
  • Payload operations after undocking.

ISRO is also doing good marketing and publicizing of its mission to get get more kids interested in Space and ISRO’s missions and towards that aim they released a video of the successful docking of the twin SpaDeX (Space Docking Experiment) spacecraft on YouTube:



SPADEX Successful Docking Video

Congrats again on a successful mission ISRO, we are all proud of you.

– Suramya

January 19, 2025

A Marriage Proposal Spoken Entirely in Corporate Jargon

Filed under: Humor — Suramya @ 9:53 PM

We all have heard about Corporate Jargon and some of us have used it (willingly or unwilling) as well. If you haven’t then Wikipedia defines Corporate Jargon as:

Corporate jargon (variously known as corporate speak, corporate lingo, business speak, business jargon, management speak, workplace jargon, corpospeak, corporatese, or commercialese) is the jargon often used in large corporations, bureaucracies, and similar workplaces. The language register of the term is generally being presented in a negative light or disapprovingly. It is often considered to be needlessly obscure or, alternatively, used to disguise an absence of information. Its use in corporations and other large organisations has been widely noted in media

A marriage proposal can be quite stressful and people go out of their way to make their proposal unique. Evan Barber from McSweeney’s decided to explore what

a marriage proposal spoken entirely in office jargon would look like and it is hilarious.

GARY: Me too. You said you wanted to see hockey-stick growth. Well, I’ve realized that I want to see hockey-stick growth too—in our relationship.
CINDY: Unpack that for me.
GARY: This relationship has been such a value-add. Some of my friends were worried that it would take too long for us to get into alignment. But you have been an absolute rockstar.
CINDY: I feel the same way, Gary. The ROI on this relationship has been unbelievable. You’ve really given 110 percent.

I understood all of the words and terms in the proposal and that is a little scary to think about.

– Suramya

January 3, 2025

Playing Doom to solve a CAPTCHA

Filed under: Computer Software,Interesting Sites — Suramya @ 10:48 AM

I guess traditional CAPTCHA’s are getting too easy for LLM’s and humans to solve so Guillermo Rauch decided to create a CAPTCHA that lets you play DOOM® to prove that you’re human.

The project works by leveraging Emscripten to compile a minimal port of Doom to WebAssembly and enable intercommunication between the C-based game runloop (g_game.c) and the JavaScript-based CAPTCHA UI.

Some extensions were made to the game to introduce relevant events needed for its usage in the context of a CAPTCHA.

It is actually a fun implementation of the game and while I doubt it will gain widespread usage it is an interesting proof of concept.

– Suramya

January 2, 2025

Welcoming 2025 and looking back at 2024

Filed under: My Life,My Thoughts — Suramya @ 11:37 PM

Happy New Year folks! 2024 was a pretty eventful year for me with a lot of things happening. I made some new friends, lost touch with a few, traveled to some pretty cool places and just overall had a blast. This year I thought it would be interesting to do a sort of recap with some numbers and data points.

Books Read

  • Read a total of 275 books in 2024, which is an average of 23 books a month
  • Max books read (32) was October and the least (10) was in May
  • Top 5 authors by no of books read by them was
    • Mercedes Lackey : 49
    • Kelley Armstrong : 30
    • Jim Butcher : 25
    • Elizabeth Moon : 25
    • Timothy Zahn : 18

Travel/Trips

  • Drove 8090 kilometers in India (excluding Cabs etc)
  • 7 Trips, Including 4 International destinations

Others

  • 2349 photos taken (After removing duplicates)
  • 80 Blog posts published

My goal was to read 365 books in a year but am happy with managing to read 275 books. Not that happy about only posting 80 blog posts last year… Will be aiming to post more regularly this year. It would have been interesting to count the number of words published, hours of music listened, the no of calls made and received and the time spent on calls (non-work related) but didn’t see an easy way to extract this data. If I do manage to get the data I will publish it. Maybe by the time the next years rolls up I will have gotten this worked out.

Well, this is all for now will post more later.

– Suramya

November 11, 2024

Some Tips to make your travels more fun and convenient

Filed under: My Thoughts,Travel/Trips — Suramya @ 9:41 PM

Someone shared some tips in one of the Travel groups on what to do when traveling outside India and I didn’t agree with some of them so decided to make my own post on things you should do and not do when traveling. This is based on my personal experience and way of traveling and not everyone will agree with everything I say here just as I didn’t agree with everything in the post that inspired this one. Feel free to share your thoughts in the comments or via email.

Research the destination before you go

Sounds pretty obvious when you say it, but not everyone does it. When you research the destination beforehand you know what are the places to see, things to do, things not to do etc. It will also give you a good idea of local customs that you should be aware of. Things that are normal in one country might be the most offensive thing in another.

Forex/Money Conversion

I have found that if you are traveling to a country that is relatively less popular with tourists, it is cheaper to go to the country and then withdraw cash over there using the ATM instead of getting it converted in your home country. I have stopped converting money at home for the past 3-4 years and it does save money.

You do need to ensure that you have enabled international transactions & withdrawals on your Debit card. In addition, try to ensure you are using an ATM that is in a reputed place like a bank or hotel lobby or busy street etc instead of one that is in a shady shop somewhere. This is to avoid having your card copied/cloned. The following link has good advise on how to spot ATM skimmers. I have never found one in the wild but enough people have that I follow this checklist when I go to withdraw cash.

Another point to remember is that the bank (and potentially the ATM) might charge transaction fees so instead of making multiple small withdrawals do a single large withdrawal. That way you don’t end up paying too much in transaction fees.

Language

If the language spoken by majority of folks in your destination is not English then it is a good idea to learn basic phrases in the local language, especially please and thank you. We usually ask a local on how to say Thank you and they are happy to help with the pronunciation. You will see a remarkable difference in people when they see that you are trying to communicate in their language. Google Translate does work in a pinch but sometimes the translations can be a bit off. 🙂 Translate also works with images so you can take a photo of text or a menu and get it translated like that. This is pretty much what we did in Hong Kong & Macao as a lot of places didn’t have English menus. If you are in places like China, Vietnam etc then you might want to get a local guide that speaks English as That can save you some time and effort.

Keep in mind that if you can’t speak the local language don’t look down on the locals for not speaking English.

Food

One of the best parts of traveling is to explore the local food. Sometimes I do feel bad that I can’t explore the food as much as Jani does because I am a vegetarian. But that doesn’t mean I don’t try the local vegetarian options. You will not get the same food that you get at home as the dishes are as per the local palate. If you insist on getting the exact same taste and dishes as what you get at home you will be miserable and so will the folks traveling with you.

Things that are common at home might not be where you are traveling to. For example, in a recent trip I heard about one of the girls who had a screaming fit at a waiter because they didn’t make her ‘Filter coffee’ correctly. She literally yelled at them asking “How can you not know how to make filter coffee?”. My question to her if I was a local would have been do you know how to make egg coffee, because for them that is something everyone should know how to make. You are a guest in their place, you need to adjust to their way of doing things instead of expecting them to adjust to your way.

Another thing to remember is that the local version of a particular food might just be drastically different than what you are used to. When I was in Vietnam I ordered a margarita pizza. What I got was a square of bread (about 8 inches wide) with cheese slices (yes, like what you put on sandwiches) on it. Then a whole tomato was cut into four thick slices with a slice put in each quadrant of the ‘pizza’. It tasted ok but was definitely not what I expected. 🙂 Chinese food that you get in India tastes nothing like the actual Chinese food in China.

Some people recommend that you should carry food with you and I know people who will cook stuff like Puri & Aaloo for a week long trip and just eat that. Another person I know told me that they were in Boston for an year and survived on just French fries. I asked them that Boston has enough Indian restaurants and Vegetarian options so why not eat there and I was told that the food didn’t taste like food at home. So far I have traveled to all 7 continents but never felt like I should have carried food with me.

Transit

Use the local public transit when possible, especially Subway and Trams as they are a lot cheaper than Uber or Taxi’s. If you have to take a cab use the local app (if available) such as Grab in South East Asia instead of Uber.

Explore places other than the Tourist hotspots

Every location has places that are must see, for example Eiffel Tower in Paris, Qutub Minar in Delhi, Mysore Palace in Mysore etc. You should definitely visit these locations because they are famous for a reason. However, once you see the tourist traps explore other places which might not be that well known. By that I mean check out the local market instead of the mall and instead of the world famous beach check out the beach where locals hang out.

This is where the research you did before the trip will help. Another way to find off-beat places is to ask the locals (Hotel Staff, Local Tour companies etc) for advice on must see places. We (me and Jani) always do this and while we were in Hampi we ended up visiting a 3000 year old Megalithic site that hardly anyone knew about. This way you will see places that will blow your mind and are not super crowded. Obviously you need to ensure your safety before going off to someplace in the middle of nowhere, so take a judgement call before going anywhere.

Some folks prefer to have a fully planned itinerary for a trip with everything pre-booked but personally I prefer to have more flexibility. When we visited Sri Lanka we had booked hotel for only the first night, we had a list of places we wanted to cover but diverted quite a lot to cover other places that were recommended to us. Each evening we would get on Tripadvisor and search for places to stay within an hour of where we were and would book a place when we found something we liked. It did help that we were a group of 6 guys instead of a group of 6 girls.

Respect the local culture

This is a must as you are a guest in their country/town so please don’t act like idiots. I understand that you might want to get the perfect photo for Instagram but that doesn’t mean you can climb into restricted places, create a nuisance or block paths. Especially don’t insult local religious structures or deface property. There was a case few years ago where a tourist in Bhutan decided to climb the one of the Stupa’s for a photoshoot on top of it. (The stupas at Dochula are built in the memory of Bhutanese soldiers who died) and it became an international incident where the guys passport was confiscated and he got jailed. There are thousands more such examples and it is embarrassing when folks do this kind of nonsense.

Don’t make fun of local eating habits or way of life. Remember you are a guest there and they have no obligation to you. I once traveled with someone from Canada who kept complaining about having to climb steps to visit the temples. He said something to the effect of “Don’t Indians know how to put an Escalator and why can’t you Indians put escalators in these places so we don’t have to climb stairs.” (It was stated in a lot more obnoxious way) Had to tell him that the whole point of having the temple at the top was so that the devotees had to put in effort to pray, which is an integral part of the Hindu faith.

Travel Light

You should travel as lightly as possible, that way you don’t have to worry about how to carry your luggage. Jani and Me usually just take a backpack each (Unless I need to have formal clothes for meetings etc in which case I carry a suitcase), that way it is easy to carry and it leaves your hands free for other things. My rule of thumb is that in a pinch you should be able to carry all your luggage yourself.

Once we stayed at a home stay where the only way to get there was by a small path and we all had to carry our own luggage. Me and Jani didn’t have an issue because we both had backpacks but another person in the group had this massive suitcase that they couldn’t carry down. In the end a few of the others in the group had to carry it down (and then back up when returning). It was not fun for anyone.

Maps

Save offline copies of Goggle Maps on your phone so you don’t get stuck when you don’t have a signal.

Don’t worry about taking the perfect picture and just enjoy the moment

When traveling I have seen folks getting stressed about taking the perfect picture that they can post online to show folks how much fun they are having. They end up stressed out and miss out on all the fun and the beauty of the location. I have been guilty of that as well. When we visited Andaman & Nicobar a long time ago, we had just gotten a Camcorder (This was back in 1998) and instead of enjoying the spectacular views I spent most of the time looking at things through the viewfinder. One specific example I remember is when we were on a glass bottom boat and the entire time I was on the camcorder, since the internal display was black and white I didn’t even see any of the colorful fishes in the see. For me it was all black and white.

In my opinion, actually having fun is more important than showing others that you are having fun.

Well this is all now now, I am sure I will remember more tips once I publish this post and if I have enough additional topics I will create a follow up post.

– Suramya

November 10, 2024

Blocking content when ad block enabled expectation vs reality

Filed under: My Thoughts — Suramya @ 3:20 AM

If your site shows me a message like the screenshot below when I visit a site then I am not going to disable my ad blocker like you imagined I would do, I will just close the site and use another site.

Content blocked. Please turn off your ad blocker
Content blocked. Please turn off your ad blocker

Please stop this nonsense because no one likes this kind of stuff.

– Suramya

November 9, 2024

There is a reason folks tell others that they are a Vegetarian/Vegan

Filed under: My Thoughts — Suramya @ 1:09 PM

One of the constant jokes that I see on the internet is that Vegans/vegetarians will insist on telling everyone that they are vegans even if no one asks them. Like this one:

Me waiting patiently to slip in the fact that I'm vegan into a conversation
Me waiting patiently to slip in the fact that I’m vegan into a conversation

Having been vegetarian for 44 years, I don’t think I walked up to anyone just to tell the that I was a vegetarian or brought it up in a conversation for no reason and I have not seen anyone else do it either.

It does come up when you are discussing food items or planning where to go for a meal. Telling people at that time is required when planning a meal because you want to make sure that there are vegetarian options available wherever you are going because if you don’t then you can end up in a situation like I did where my team took me out for lunch to celebrate a major release and we ended up going to a steakhouse because this was in Kansas and everyone else in the team loved steaks. Luckily they had veg options available but that’s not always the case. So in those cases telling people that you are a vegetarian has nothing to do with bragging but more towards ensuring they take that into account as well when choosing a restaurant. The same would be the case when someone has a severe allergy to something. A friend of mine is allergic to eggs so we all ensure that he doesn’t end up consuming something with egg in it. It is just basic courtesy and friendship to do that.

However there are some people who take it as a personal affront that a person doesn’t eat meat. There was a post a little while ago where this girl was proudly telling that her brother fed a cheeseburger (beef burger with cheese) to his vegan girl telling her that it was vegan and she said that it was the best one she had. This not correct, it is a serious breach of trust and a jackass thing to do. People can be vegans/vegetarians for various reasons such as religion, medical or personal choice. But it doesn’t matter because it is their choice (the same thing applies the other way round as well) and you can’t feed them meat because you disagree with them. What did guy did is inexcusable.

Jani is what she calls a pure non-veg eater but she has never tried to feed me meat without me knowing just like my friends don’t do it either. They do at times make fun of me and I do the same to them which is a healthy relationship. I remember once I went to Tarini’s place and she was cooking fish so I asked her ‘what about me?’ and she pointed me to the flowerpots on the window sill next to her and told me “You are a vegetarian na… so go eat those plants.”

Well this is all for now. Will post more later.

– Suramya

November 8, 2024

Please be patient with me, I’m from the 1900’s

Filed under: Humor — Suramya @ 12:05 PM

I need to get this shirt for myself: 🙂


Please be patient with me, I’m from the 1900’s

– Suramya

November 7, 2024

Artificial Intelligence is not a reason to stop using your natural Intelligence

Filed under: Artificial Intelligence,My Thoughts,Tech Related — Suramya @ 6:59 PM

The more I see posts about some of the proposed use cases for AI the more I feel that some people just don’t want to use their brains and want to outsource all thinking to the ‘AI’. The latest example that triggered this post is screenshoted & Quoted below:

See BlockQuote Below the Image

Though malloc is a very useful function in c, it is not without its problems. The biggest is that it can be confusing for some to decide how much memory to allocate, needing complicated statements with sizeof . To solve this I propose a new alternative to malloc that utilizes the power of modern developments in Al, mallocPlusAI . The usage is simple.

int* x = (int*)mallocPlusAI(“Enough memory to store up to 5 integers”);

mallocPlusAI takes in a character array which is forwarded to a ChatGPT instance alongside an initial prompt “You are a memory allocator for a computer, and you need to tell me how many. bytes of memory I would need to accomplish a certain task. Make sure to give your response as only a whole number of bytes, do not provide any other text. Here is what I request: “

So instead of doing something like the following

5 * sizeof(int) + allocation overhead

Because apparently it is too hard to type 5 * sizeof() * Allocation Overhead, we will call an external API which brings the following downsides:

  • Which has a cost associated with it
  • Adds another layer of complexity & dependency to your application
  • Each ChatGPT query consumes an estimated 2.9 Wh of electricity, nearly ten times more than a standard Google search
  • Opens an avenue for attack where the remote prompt can be modified by a malicious actor to return incorrect values of size potentially causing the application to crash or leak data

Can someone please explain to me why you would use something like this instead of spending 2 mins thinking about what size of memory to assign?

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress