Posts

.Net Solutions, DLL's, Build orders etc

Got to learn some new thinigs about Visual Studio today. Basically I wanted to build a library and integrate it into an existing solution.  Steps: 1. Open Solution, Add new project of type "Class Library". Then create namespaces, classes, static library functions etc. Build it. Build OK, DLL ready. Step 2: In other project ( where DLL is to be used), Add reference, Browse, Select Newly created DLL. Add using for DLL namespace. Call function in DLL. Call OK. Build this project.  Hiccup! Issue no 1: DLL project was using newer .Net version while other project (Lets say App project) was using slightly older version and so it's build was giving error - Type or namespace for Library namespace not found.  Bit of googling gave me solution. So set Lib's .Net version to same as App. Build OK.  Next step: Verify solution is building correctly. For this there's something called build order to consider. For this in VS there's a setting - "Project Build Order..."...

Maybe nothing can fix it [SailfishOS Enterprise WiFi]

So yesterday I re-updated my AquaFish from 2.0.4.3 to 2.0.5.6 and then to 2.1.3.7. This halfway update was because 2.0.5.6 is a major update and we can't directly update from 2.0.4.3 to 2.1.3.7. So instead we have to update in steps.  Anyway, just reached office and checked the connection. Sadly nothing! I checked dmesg output and there was a boatload of vos_malloc errors. So looks like there's some bug somewhere where something critically dies and the connection fails.  Anyway my curiosity is satisfied. Maybe the one working connection instance I observed was a fluke, a mere chance, an aberration and looks like the universe has fixed it!  Alas! Sometimes we can do with some error! Cheers!

Jolla Recovery - last resort for Enterprize WiFi bug

So today I decided to take the plunge and completely reset my Aquafish to recovery image to see if I can get the enterprize WiFi working. A bit of background: SFOS did not support Enterprize WiFi using TLS etc back in 2.0.5.6. In 3.1.2 I guess, they added support for that. I have Work WiFi at office that uses TLS with MSChapV2. And on 3.1.2(or whatever that release was), I did manage to connect to my Work WiFi once. The Captive portal login appeared in SFOS browser, I logged in and was able to access the internet. But after that one time it never connected. So I reset Jolla, upgraded once again and tried but to no avail. Now Recovery image reset is something else. It does not just reset the settings. But rather wipes out the partitions and writes partitions from recovery image. The process is straight forward. Remove the battery and after inserting use [power] + [vol+] button to power device in Recovery Mode. The phone displays message to conenct to PC using USB cable and ssh to it...

(Meld, Gnome, Crap) All in one sentence

I have been using Meld for about 3 yrs. And it has been solid. Until today! Actually what happened is I have not been using Linux and Meld for last 3-4 months. Today I required some code merging in Linux. So I fired up Meld and started going at it. I was about halfway, when suddenly my laptop hung. Wait! Ubuntu never hangs! So after struggling to open a System Monitor windows for five minutes I went through the apps and voilla. It is meld! WTF! Then I saw that Meld has opened separate threads for all the docs I have opened and merged and closed. But it conveniently forgot to kill those threads and each thread was eating about 120MB memory and there were about 30+ of them. Gods! Anyway, I killed Meld and the system recovered from the butchery. Then just to coonfirm I opened the folders in merge and confirmed that my analysis is correct that indeed for each opened file a new thread is getting created and when file is closed it's not getting closed. Ok, I check the version - it's ...

SFOS new update, SFOS 3 and new tablet in family

Image
Last week a new update for SFOS is released to early subscribers. Thats v2.1.4 Lapuanjoki. I have been using v2.1.3 kymijoki on my Intex Aquafish for a while as my main phone. And I think SFOS is god enough for daily use. I have a few android apps like - WhatsApp for communication, WPS Office for PDF EBooks, A Better Camera as better Camera app, todoist as TODO app and that's it. I'm getting decent battery life on an average of two days. Of course I had to shoot down couple of problems of errant android apps and downgrade Play Services version. So now the android apps display an annoying pop-up for upgrading Play Services, but they work fine beside this. The upgrade breaks a lots of things - causes battery drain, instability etc etc. So I'm better off with older version and few annoying pop-ups.  Of course I can always get rid of android apps, but right now that's not possible, so I live with compromises. On system front the few things I miss are - apps should be ab...

Case of issues with Google Play Services on Sailfish

So few days back I started using my Intex Aquafish as my daily driver. The phone is great at a basic phone. Calling and internet works fine. Whatsapp also works fine and so does Google Drive. That's almost all the use cases for me. But something threw a spanner in the works. I tried installing few more apps, and they get stuck at Installing screen. Then couple of days back I started seeing large battery drains by gms.persisttent. After a lot of googling and searching I did not find much. But then today I hit the lottery. Found out that I someday mistakenly upgraded Google Play Services and that caused all this. Anyway, how to revert back. Big question. After fiddling out here and there, I found out that I have to search for Google Play Services in Store app, and from there I could downgrade Play Services. Once that done and after testing half a dozen installs and checking battery draws in Battery Log app, I confirmed that this indeed fixes the works! Cheers!!!

Using an Android phone with busted power button

I have a number of old phones. Mostly they just hang around in a box of all other computer hardware. I have two smartphones, one feature phone and one dumb phone.  First one is Intex Aquafish. Great phone, but since it can't connect to my office network (Crazy!!!), can't really use it.  Next one is Karbonn S1 Plus which is ancient now. Gifted this to sister, she used it for 2.5Yrs., and by then it was quite busted. Battery gone, frame cracked, power button barely working, and horizontal white lines on screen. I gifted another phone to sister. But this phone is not totally dead. I replaced the battery for 300Rs and reset the phone. Turns out it works fine as a standalone GPS navigator. So that's it. Its hanging around like that.  Next one is a Nokia C5. This was the first phone I gifted to sister, before the Karbonn. It works fine, but no it's quite obsolete. No wifi, Symbian etc etc. But the thing is it's still a fine phone. I use this as mp3 player these days. Work...