Posts

Having tools and using them helps!

I like giving at least one try to fix broken things on my own and only when things are a bit too complex to simply fix it, I forward them to respective technicians. Sometimes there are simple things like a washer that's gone, or little bit of soldering that's needed. Sometimes there are wires that are broken. I like to fix these things are avoid a (possibly costly) visit to the tech people. Recently my wireless keyboard was acting up. It was quite random and I previously thought it was some noise from all the electronic stuff crammed on my desk, but it was a failing AAA cell. Used the multimeter to confirm that that cell's voltage was down to 1.1v instead of 1.4v and that was causing the issue. Replaced it and all's well. Usually we end up a non-working keyboard and the cell probably leaked it's guts all over the place. So catastrophe avoided! Cheers!!

Parallel GZip

hmm, I was not aware of this. Basically pigz ( parallel gzip ) is a fully compatible replacement for gzip. This uses parallel processing via multi-threading thus using SMP capabilities of a multi-core/+multi-threaded processor to improve zipping throughput. Cheers!

A case of video editing

Recently I went out and had a really great ride. Got a lot of rain, some good amount of driving in hill twisties, and overall some really great time. As usual the dash cam had captured almost all the driving, and I thought of putting together a small timelapse video with friends as a memory. Copied all the clips onto a portable hard disk. From there went into Ubuntu and put together a decent clip using OpenShot. A surprize was waiting for me though. Went to export and found out on my updated system with Ubuntu 20.10, OpenShot export with hardware acceleration did not work anymore.  Puzzled I searched around via google, found a few solutions, tried them but to no avail. Then decided to shift to another video editor. On Linux the only decent choice is shotcut or kdenlive. Both did not support my midlife radeon integrated graphics. So what else to try. I have windows on other partition, so I could try some windows programs. As expected, I downloaded a bunch of video editors and tried out ...

Gitlab repositories and ssh keys Pt 2

Hmm, I was supposed to put in the process and commands in pt. 2 but somehow I seem to have forgotten that. Anyway lets start. 1. Create SSH Key for development PC. https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html I did not have any old keys n ~/.ssh so went ahead with below command to create a new one. $ ssh-keygen -t rsa -C " your_email@example.com " Rest all is straight-forward. At the end you have a private key and a public key. 2. Add this key to gitlab. Open your gitlab server instance ( e.g. gitlab.xyz.com etc ). Then login with your credentials. After logging in, go to user settings by clicking on the user menu at top left corner and clicking on Edit profile option. This will open User Settings page. Here at left side is a list. Click SSH Keys in this list. This will open the SSH Keys setting page. Here you can paste the public key in the .pub file which you generated above. DO NOT PASTE PRIVATE KEY, as it is PRIVATE!!! 3. Add your ss...

Yocto Build issue solution for building mali libraries

I was trying my hands at Yocto and was having some success. Then one day I got stuck building the mali libs and it turned out there's a non-working URL behind this. The error was like below: ************************************** ERROR: libmali-xlnx-r7p0-00rel0-r0 do_fetch: Fetcher failure for URL: 'git:// gitenterprise.xilinx.com/Graphics/mali400-xlnx-userspace.git;protocol=https;branch=master '. Unable to fetch URL from any source. From a linux prompt, I try:  git clone https://gitenterprise.xilinx.com/Graphics/mali400-xlnx-userspace.git/ Cloning into 'mali400-xlnx-userspace'... fatal: unable to access ' https://gitenterprise.xilinx.com/Graphics/mali400-xlnx-userspace.git/ ': Could not resolve host: gitenterprise.xilinx.com ************************************** I googled some and found that there are some solutions. Further search led me to this solution at: https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-Yocto-rel-v2019-1-build-fails-du...

Gitlab repositories and ssh keys Pt 1

We have been using https authentication for a while in my current organization for accessing git. As the number of repositories I have been working on increased, I found it difficult to do this manually. So I decided to use ssh keys to access my forks of the actual repositories. So my access model is like below. 1. I add a SSH key for my office desktop in gitlab. 2. Then I modify settings in all my forks to add and enable the ssh key for access. 3. Then I create a folder where I'll keep all this code. Then I clone everything to this folder.  4. And lastly I use a small shell script to run git pull so that I can update these with one command and no pesky passwords. From security perspective though, I have to ensure my desktop is not stolen and my keys are secure. Lets see the steps in detail in next parts.

Opening a NPS account

NPS stands for National Pension System. It's a new better-returns with more-investment system provided by the govt of India for primarily private / unorganized sector employees. You can simply search for "why should I invest in NPS" in google and get any results like https://www.etmoney.com/blog/6-benefits-for-investing-in-nps/ . Basically if you have extra money and think of future retirement planning, then better to invest a portion of it in NPS. One big advantage is upto 50000INR is tax-deductible. And if you are like me whose some income is eligible for 30% income tax, this 50000INR deduction can save about 15.5K which is not a small amount. From last couple of years the NPS enrollment procedure is fully digital and if you have a working Aadhar authentication with either OTP or virtual aadhar, this process becomes very easy. I tried to enroll last year, but there were some glitches in authentication and it did not work out. This year in March 21, when I was looking at...