Serilog – Add timed operations to audit method duration

Using Serilog is a bliss. There is one good thing I like about this is to use the Serilog.Metrics nuGet package to put some timed logging around the operation which can further be used for Audting purposes during optimization or code refactoring.

Here is the syntax for using this feature (notice the using block) : Read more ›

Posted in Development Tagged with: , ,

Missing Function definitions in Jasmine Karma testing – Not a function

I have been struggling such issues in past as well and every time after fixing those petty issues, I usually forgot about them until they come back to bite me again. Recently, I faced an issue where a JavaScript test (Jasmine with Karma) was complaining about

So here is the fix which I applied to make sure my test case integrity is unharmed.

Read more ›

Posted in Development Tagged with: ,

Android app crashes on docking and undocking to Pogo charger

Pogo Charger Cradle

Pogo charger cradle for Samsung Galaxy 8 Active

Recently, we were reported about an issue where the Android app was seemingly crashed as soon as the Device (Samsung Galaxy 8 Active to be specific) was mounted or unmounted on to the cradle with Pogo charger. Those who are unaware of Pogo charger, it is an after market charging alternative which claims to speed up the device charging up to 40% faster and more.

At first sight, it looks like some issue with user settings or something funny like that but upon testing we found it to be the case.

There were no such incidents reported over internet or any such solutions in sight as well. Even Samsung reported about such incidents been reported to them via support calls.

Root cause: This is the case where the docking/undocking of the device on to the cradle i.e. Pogo charger connect or disconnect, caused “android.intent.action.CONFIGURATION_CHANGED” event to be broadcasted to the application and caused refresh and in some cases even crashing the app.

Our app is hybrid app compiled with Cordova but that’s immaterial as the issue was happening at operating system level. This can be fixed very easily if the handling for the “uiMode” been specified in the Android manifest. That’s it. Really.

Read more ›

Posted in Development Tagged with: , , ,

Flight times to famous destinations from Australia and best time to visit them

Australia Flight Times

Want to know how long your flight time will be when flying from Australia?
Calculate your travel destination arrival time using popular travelers guide to average flight durations from Australia to a selection of international airports, plus a guide to the best time of year to travel to those countries…

Read more ›

Posted in General Tagged with:

Tax related tips for property investors

As per my research on internet,  about how property investors should be approaching and optimising their planning for tax season, I found the following tips and thought of sharing it here. Even for me ti is easy to read from here instead of searching again on google.

1. Initial repairs

A common mistake is to claim initial repairs or capital improvements as an immediate deduction. Initial repairs to rectify damage, defects or deterioration that existed at the time of purchasing a property are generally considered capital in nature and not deductible, even if conducted to make the property suitable for renting.

A better approach could be to claim depreciation on this expenditure as a capital works deduction over 40 years. Read more ›

Posted in Tax Calculations Tagged with:

Me on Stackoverflow

Global Footprint

Sehajpal.com
visitors since October 2008