Posts

CMake useful shortcuts

Add below code block to .bashrc and then you have these shortcuts available to make life easy. # === CMake Shortcuts === alias cmkconf='cmake -S . -B build' # Configure alias cmkbuild='cmake --build build --parallel 8' # Build with 8 threads alias cmkinstall='sudo cmake --install build' # Install to system alias cmktest='ctest --test-dir build -V' # Run tests

Got a desktop PC

I found that my laptop was lacking when it came to AI related stuff. So now the thing is I could buy a new desktop but the prices were quite crazy and it did not seem like a good value. So I did a bunch of R&D and finalized that I should be buying a refurbished desktop and then upgrade it in limited capacity. So I looked around and bought an Acer corporate refurbished desktop for 19500. Then I added a beefier PSU and a graphics card to that by spending 24000 and some change for some fans and sata cables etc. So now finally I have below config: Intel core i5 8500T 2.1GHz Acer H310ch5-M19 mainboard Zebronics 256GB SSD 500GB HDD The desktop came with a 200W generic PSU. I replaced that with a CoolerMaster 550W 80 Bronze PSU. Added a Zotac RTX 3050 8GB graphics card. I had an extra WD Green 240GB SSD here with me, so ordered couple of SATA cables and plugged it in. That took total storage to almost 1TB and it also gave me a separate drive to install Linux on. So have...

A FULL PRICE-TO-TOPS VALUE TABLE for all major AI hardware

Recently I was doing some research on various hardware available in all segments. I did not expect below results. The surprising thing was the amount of options available and the various price points for that. Anybody looking into AI will definitely find this helpful. Global MSRP (approx.) Converted to Indian Rupees (₹) using a neutral rate: $1 = ₹85 Computing ₹ per TOPS so you can instantly see value-for-money. ⚠️ Prices vary, but this gives clear comparative value. ________________________________ 🔥 PRICE PER TOPS (₹ per TOPS) Sorted from BEST value → WORST value ________________________________ 🟩 1. Desktop GPUs (Best Value in the Consumer Market) Hardware TOPS Approx Price ₹ Price ₹ per TOPS RTX 4090 1500 $1599 ₹1,36,000 ₹90 per TOPS RTX 4080 Super 780 $999 ₹85,000 ₹109 per TOPS RTX 4070 Ti Super 450 $799 ₹68,000 ₹151 per TOPS RTX 4060 Ti 353 $399 ₹34,000 ₹96 per TOPS AMD RX 7900 XTX 300 $999 ₹85,000 ₹283 per TOPS ➡ Winner: RTX 4090 ...

Using AI for work

I have started using copilot AI more and more for work. It seems that if you have a general idea of the work, it can generate the code pretty much at about 70%. It's not perfect - for example it almost always messes up lambda functions but that 30% of problematic work one can fix. Meanwhile using other AIs also provide different different outcomes. So turns out the training data and usage matters a lot. Anyway I think human intuition and other hard won skills still matter and when AI screws anything then knowing the nitty-gritty of things really comes handy. But yeah it's going to mess with people's learning habits and probably going to make more scatter-brained people. Learning is a hard process and the inception of knowledge is a difficult thing. Looking around we already find so many idiots with dirt for brains, I think for disciplines like engineering where really complex knowledge needs to be ingested, AI is going to probably tip over people into un-lear...

Office laptop fan failed

So apparently this is a thing with Lenovo T14 laptops. The fan starts making high pitched whiny noise and becomes useless. https://www.reddit.com/r/Lenovo/comments/1lnbmir/my_lenovo_thinkpad_t14_gen_1_fan_started_making/ Going to have to go to office and get it fixed.

Non-tech: Regarding petrol NA vs Turbo engines

I owned a Maruti Celerio VXI AGS MY2020 for almost 5 years. And recently switched to a Tata Nexon Creative S+AMT. This post will talk about the difference in engines on both these cars and the effect it has on driving dynamics and mileage. First of all Maruti has 1L NA engine which is tuned frugally and returns very good mileage. I have seen it return 15kmpl in city with AC ON. And on highways it can hit 18-19kmpl fully loaded and with AC ON. Although this car is an economy hatchback and is not really tuned to cruising. That's why at 80-90kmph, engine is around 2800-3000 RPM and good mileage is observed around 80kmpl, and after that it drops. Plus the 1L 3-Cyl engine means not enough torque and so jerky driving in low speeds and ghats. Still for the low price even with AMT gearbox, very good value for money. Moving on to Nexon, the engine is 1.2L turbo-petrol. The turbo really spins at around 2000RPM and provides max boost. Although the engine maps provided are such that there'...

Replacing the western digital 1TB hdd

Bought a 1TB Samsung T7 SSD to replace the western digital one. Cost was 9000 INR. Quite costly but I'm hoping it pays off. It's specs as below: Samsung T7 1TB Up to 1,050MB/s USB 3.2 Gen 2 (10Gbps, Type-C) External Solid State Drive (Portable SSD) Grey(MU-PC1T0T) Performance of up to 1,050 MB/s, up to 9.5x faster than external HDD Interface: USB 3.2 Gen 2 (Up to 10Gbps). Backwards compatible. The host device and connection cable must support USB 3.2 Gen 2 to reach the maximum speed. Durable: Shock resistant internal frame lets the T7 withstand falls from up to 2 meters Security: Optional password protection and AES 256 bit hardware encryption Windows 7 and higher, Mac OS X 10.10 and higher, or Android 5.1 (Lollipop) and higher. Includes USB Type C to C and USB Type C to A cables Going to sync all the data to this one. I'm not moving the data right away. But I'm going to slowly move all of it to here while keeping other copies. If there's no ...