Posts

Test Driven Developmen (TDD): What is it?

Recently my current company gave us a training on Test Driven Development (TDD). So today lets see what's TDD and how is it different from our everyday programming. Test Driven Development is a way of developing programs where you focus on the testing aspect of the code and write unit tests and code together. How this is different from your day-to-day coding is that we write all code at once. Then we either before or after write the unit tests. Then we unit test the code. And then we find bugs and we fix them. In TDD, we write tests and then we write code to make that test pass. Once we have gone through all the tests, and written all the code to satisfy the tests, you are done. So the advantages: 1. All code is unit tested. 2. Since we are writing only as much code to satisfy unit tests, code bloat should be less. 3. Since we are thinking only enough requirements for testing current tests, code should be cleaner. 4. Since we are coding, testing and debugging in one go, time should...

Mobile number porting

Recently I ported my personal cellphone number from Airtel to Reliance Jio. The process was quite simple. I just took with me my Aadhar card, and paid 60 Rs. Then the storekeeper used the jio app on his cellphone to enter my info and took a photo of me. Then entering the porting code which I generated by sending "port" SMS to 1909. And it was done. 5 days later yesterday evening I received an SMS that my number porting process is done. They will activate my number on the given SIM by 6AM today. And so in morning I saw that Airtel has deactivated my SIM, so I popped in the Jio card and then called the activation number. And after providing some basic details the number activation was done. Lets see how Jio works!

Using Raspberry Pi 3B as a general purpose computer

Last month I put together my Raspberry Pi desktop and tried using it as general purpose computer. Previously I was using my "long in the tooth" Lenovo G480 as main computer. Now what's changed with Raspberry Pi? Actually not much really. For couple of weeks I was using older Raspbian and it was quite unfulfilling. For video playback there was only OMX Player which did not do windowed playback. Web browsing was bit slower than I liked. And system was not fast. It lagged somewhat. Then I got latest Raspbian Stretch downloaded. And the difference was between night and day. The desktop is faster. Web browsing is smoother. VLC is provided. Full HD video playback is working. Office is working fine as well. Now, I know the 1GB RAM is actually not a lot. In fact on the Lenovo, with even 2GB RAM, things get creepy crawly after opening 2-3 tabs. So here I'm restricting myself to only 1-2 tabs. And overall it's working fine. One thing that did not work out was NTFS partition...

Redmi Note 7 Pro 4GB bought

Image
Xiaomi Redmi Note 7 Pro     Released 2019, March     186g, 8.1mm thickness     Android 9.0; MIUI 10     128GB storage, microSD card slot Hybrid SIM slot     6.3" 1080x2340 pixels     48MP 2160p     4/6GB RAM     Snapdragon 675     4000mAh Li-Po Network Technology GSM / HSPA / LTE Launch Announced 2019, February Status Available. Released 2019, March Body Dimensions 159.2 x 75.2 x 8.1 mm (6.27 x 2.96 x 0.32 in) Weight 186 g (6.56 oz) Build Front/back glass (Gorilla Glass 5) SIM Hybrid Dual SIM (Nano-SIM, dual stand-by) Display Type IPS LCD capacitive touchscreen, 16M colors Size 6.3 inches, 97.4 cm2 (~81.4% screen-to-body ratio) Resolution 1080 x 2340 pixels, 19.5:9 ratio (~409 ppi density) Protection Corning Gorilla Glass 5 Platform OS Android 9.0 (Pie); MIUI 10 Chipset Qualcomm SDM675 Snapdragon 675 (11 nm) CPU Octa-core (2x2.0 GHz Kryo 460 Gold & 6x1.7 GHz Kryo 460 Silver) GPU Adreno 612 Memory Card slot microSD, up to 256 GB (uses shared SIM slot) Int...

Add month to date in excel

Formula is as below:  =EDATE(A1,1) Here A1 is the cell containing previous date.  After entering above formula, you will get an integer value.  Use format cell option in right click menu, and set as date. This will correctly show the date.  Then we can drag this down for further repetition. 

Sailfish OS not updating any more

Recently I hard reset Aquafish. And then I thought to update is as usual. But its not updating anymore. As usual there are few variables, the internet by Vodafone mobile is utter crap, or maybe the repositories are not working anymore, or maybe the phone itself has gone kaput. God only knows.  So I'm back to zero base. As noted previously, the phone was useless because of google account syncing issue where the contacts sync'd over google would vanish on a failed sync.  Hmm, maybe its time I dumped the phone and got another in exchange.  Let's see if I get a good deal anywhere. 

Lenovo K8 Note 3GB/32GB in exchange for Nubia Z11 mini

Image
Recently the Nubia that my sister was using started showing death signs. The power button died, mobile started restarting at random. It's been over three years of good use, so I decided to get something else for my sister in exchange for this while it's still alive. After browsing both Amazon and Flipkart and also checking other old mobile selling websites like Cashify, I decide on Lenovo K8 Note on Amazon. It's price was 8000/- Rs and in exchange of Nubia I was getting about 1000 Rs off. There were many other latest phones within my budget but they did not have exchange option. And I didn't want to keep this dying phone around if I was getting some money for it. So anyway I went for it. The phone was shipped from Hyderabad and I received it in 3 days time. Amazon delivery was good as usual. Coming to the new phone - it's not exactly latest. in fact, it's quite old, released in Sep 2017 with Android 7 on board. If I remember correctly it was launched for 11K and...