Monday, October 21, 2019

Ionic 4 menu not working navigating to root.


I noticed that all events of root/home page isn't working after I have navigated back in my ionic 4 app.

So if you using a back button or a button to navigate to the root page use following code.

Click event of back/home menu item

  onHomeClick() {
    this.navController.navigateRoot('/menu');
    this.menuController.close();
  }



Sunday, October 20, 2019

Windows SDK not found. Ensure that you have installed Windows 8.1 SDK along with Visual Studio or install Windows 8.1 - ionic 4, WIndows 10 UWP

Windows 8.1 is pretty much outdated. I think most of portable windows devices using windows 10. So add following lines to config.xml of your cordova or ionic app.


    <platform name="windows">
        <preference name="windows-target-version" value="10.0" />
    </platform>

Monday, July 15, 2019

Cordova InAppBrowser EventListeners not working on iOS


Hi All


I'm using cordova-inappbrowser plugin for several purposes inside a cordova app. This plugin worked without a problem for months.

Then  I noticed its not firing loadstop event when the navigation completed. After 3-4 hours of hit and misses found the perfect solution.


Problem was my iOS platform wasn't latest.

So when you developing apps using cordova make sure your platform versions and plugins are up-to date with OS upgraded.

So all I had to do is



Removing iOS platform.

cordova platform rm ios

Adding iOS platform - Latest Version 

cordova platform add ios

Removing the plugin cordova-plugin-inappbrowser 

cordova plugin remove cordova-plugin-inappbrowser

Adding the plugin cordova-plugin-inappbrowser - Latest Version 

cordova plugin add cordova-plugin-inappbrowser

Thursday, July 4, 2019

Using google places API with ASP.net Server Controls


 When you are trying to using Google places API on a ASP:TextBox it will give you following error.

InvalidValueError: not an instance of HTMLInputElement

 Reason for this is APS.net creating a client control as a TextArea not as an input field. Current version of Google Places API not supporting TextAreas for some reason.

But good news is you can still use ASP:TextBox with Google Places API. Only change you should make is set the TextMode of your ASP:TexBox as search.


TextMode = "Search"

 

Sunday, February 17, 2019

Slowness of windows 10 and Google Chrome


Whats your favourite web browser? 

Yes, I know the answer its must be Google Chrome. What else as internet explorer is still too slow in response time and Firefox, Safari is still long way behind from google chrome.

But luxury is always comes with a cost. In my work computer I have 16GB of ram, state of state of the art  lintel i7 CPU and Solid State Drive as my primary storage.

Still my computer was too slow and and CPU usage was always about 100%. You can check cpu usage on your task manager.

So in my case I'm using google chrome installation for last year without clearing the cache or deleting temporary files.So google user data folder had around 5GB of space which slowing down the whole computer when I was using chrome.





 













So the solution.

1. First uninstall google chrome. Delete the old user data folder.

C:\Users\\AppData\Local\Google\Chrome\User Data

** You will lose all the bookmarks and any web browsing history. If you don't want to delete the history  just clear the google chrome cache. But its will not clean everything.



Wednesday, January 23, 2019

ASP.net publish to file system using old versions of release DLLs.


I still don't know the reason for this issue. I have a wild guess that my GIT configurations has something to do with this one.

Whats happened was when I'm publishing the project it was using old versions of DLLs.

Solution

All I had to do is build a release version before the next publish.



Could not start Gradle Daemon android build error in Cordova


This was the most confusing error I got when I was building  and release the app for Android Store. 

My android build configurations are listed bellow.

1. Tool Set - Cordova 6.3.1 using visual studio 2017
2. Target API level - 28
3. cordova-android @7.0.0


So the error message clearly gives the idea that Gradle deamon  cannot start to complete the android build. 

** First make sure you have installed and updated all the components for android SDK.


1. Lets check if you have installed Gradle, and it up and running. Open command prompt and enter the command 'gradle'.  If you getting the un-recognised command error move to the step 2.


2. Delete all existing installations of gradle.

3. Download gradle latest version from  https://gradle.org/releases/  

4. Copy the content to a folder in your C:\ drive.


5. Add gradle location to system variable 'path'.



6. Restart the computer and enter the command 'gradle' in command prompt.








Monday, December 10, 2018

Cordova, PhoneGap, Ionic - UWP Windows 10 Release Build Failed ( SQLlite )


Recently I had some issues of building packages for Windows 10 app I have developed using cordova. App was working in debug mode without issues. But in release mode it was crashing when opening the app.

So first question is how to find the errors when they only appear in release mode.


1. Go to the platform folder and open the windows native project.

2. Run windows native project in release mode and it will fail with the error message that it cant debug.

3. Now switch to debug mode and run your project .

4. In output window you will see all the errors.

5. Fix all errors and try to publish to windows store again.


Tuesday, November 6, 2018

What to do and Not do when your windows computer infected. ( Spyware, Malware and Bots )


Most windows 10 computers easily  get infected due to following reasons.

1. Using pirate copies of commercial software.
2. Installing unwanted web browser extensions - chrome, firefox.
3. Installing free softwares without checking the author of  the software.


So if you feel your computer is not doing well here is the list of things you should not do.

1. Do not make any online payments until you satisfied with your system;'s safty.
2. Do  not use any free virus removal tools or do not run any browser based system checks.
3. Do not install a cracked version of antivirus software.



So here is the To Do list.

1. Backup your important data to a portable hard drive you can format.
2. Install a trail version of a commercial antivirus software and run a full system scan.

You can use AVG, Norton, Kaspersky any commercially recognised product.

3. After scanning you can remove the anti-virus software  and switch back to windows defender.




Speed-up windows 10 - ( Devices with non-SSD drives )


Hi All

If using windows 10 and you are using a normal hard disc in your computer you may have experiencing slow starting-up, slow loading in apps and some lagging when using your applications.

Here are the tips for speed up your system.

1. Disable location service if you are not using.

Search >> Settings >> Location >> Switch Off Location Service


2. Disable un-wanted startup apps.

Right Click on Task Bar >> Task Manager >> ( Click  More Details if You Cant See Startup tab) >> Startup


3. Disable windows search - This will reduce the penalty of  indexing your files when you using the computer. ( Disabling windows search can slow down searching for files and folders )

Search >> Services >> Windows Search >> Disable Service



4. Disable Superfetch - This one is tricky. This function suppose to speed-up your system for NON-SSD based systems. But some times disc operation percentage can go up to 100% because of this service.

Do this if your disk operation percentage is 100%   without a valid reason. You can check disk operation percentage  from the task manager.




Here is how to disable Superfetch service.












Tuesday, October 23, 2018

Your connection is not secure - Firefox


There are few things you can do like check the date and time of the computer etc.  But my issue was I had running instance of fiddler web debugger. All I had to do is turn off fiddler.




 

Monday, October 1, 2018

Cannot uninstall Sourcetree windows 10


If you cant fully uninstall the third party git manager tool, sourcetree in windows please follow these steps.

1. Try to delete C:\\local\appdata\atlassian folder completely and then remove all the shortcuts.


if the you cant delete appdata\atlassian folder that means there are some GIT processes running.


2. Go to task manager and kill all GIT processes and Try step 1 again.

 

Tuesday, September 11, 2018

Upgrade node js to latest version in Mac or Windows

I recently tried to upgrade my node js version on both Mac and Windows environment. Tried most of methods in internet using NPN, BREW etc.

But the easiest way to do this is reinstall Node JS.

For Mac

Download the latest node js package for mac and install it. This will overtire the old installation.


For Windows

Uninstall the old node js version and install the latest node js version for windows.


Please restart the computer after installation in both environment.



Thursday, September 6, 2018

Cortna search is unresponsive in Windows 10


 Hi All

In windows 10 sometimes search get frozen. I did not research for the reason for this issue as the fix was easy and This will happen very occasionally.

All you need to do is go to task manager and end all cortna tasks. Please look at the screen shots.




Wednesday, August 1, 2018

Adobe Acrobat Reader is slow or not opening in windows 10

There are two type of this problem.

1. Adobe reader start taking more than 5 minutes to load.
2. Adobe reader not starting and it's showing multiple adobe reader processes in  windows task manager.


The Solution

1. End all adobe reader tasks in task manager.

2. Right click on adobe reader short-cut and set compatibility mode to windows 8.



3. Open adobe reader. Now adobe reader will load without a problem.

4. Go to Edit > Preferences >  Security ( Enhanced ) 



5. Set the compatibility mode  back to normal. 



6. Restart adobe reader. 

Wednesday, July 25, 2018

Microsoft Office alternative options for windows, linux and mac


As Microsoft Office 360 and 2016 is bit expensive for most users it is a good idea to go for open source alternatives.


https://www.libreoffice.org/

Libre office is a good alternative and I have used libre office in my Mac and Ubuntu operating systems. Libre documents can open using MS office and vise-versa.

https://www.openoffice.org/

Open office is also a good  alternative software for MS office suit. I haven't use open office for long time but it is a reliable software to use in most platforms.






Monday, July 16, 2018

Tips to save money when buying computer, laptop parts and cables


Please  note that this article using facts and data in Australia but I think this is true for most developed countries.



1.  Don't buy  

Again this is the best advice I can give for most common laptop, PC and Mac users. Sometime you actually really need the device and you just blindly buying it just because some retail shop giving you a 10% discount on the product. So please think at least 3 times before buy something.

Also if it's for a one time use just try to burrow it from a friend. But always return it on-time.

2. Do no buy it from major retail shops

This is a common mistake most people do when they need a cable or some other small part for a computer. These big retail giants has lots of expenses like rent, wages of workers and insurance etc.
Just try to buy the product on ebay, amzon or ali express and you will find the same product with a discount more than 30%-50%.


3.Try facebook market place or gumtree

Some times offices  and some people tend to put these items on online market places for free or for a very small amount of money. Even these things are used, especially cables they can last longer. .


4.Cables and Accesries for Apple products are expensive 

Just consider this as when you choosing an apple product, They are very good products and comes with an additional cost.

5.Do not throw cables away

You never know when you need things and please keep your old cables and other commuter parts for at-least four to five years.








 

iTunes connect UI freezes.


When you publishing apps for apple store using itunes connect screens are freezing more often. Main reason behind for this is poor internet connection. Make sure you have a good internet connection when you publishing apps to apple store.

I'm always using my mobile's hotspot if the wi-fi or LAN is super slow.


Thursday, July 12, 2018

Android app missing permissions after publishing - Cordova, Visual Studio 2017


Hi All

All you have to do is update your android manifest file with required permission before create the release APK.

** You have to do it before every release if you cleaned the project.

 android:name="android.permission.CAMERA" />
 android:name="android.permission.FLASHLIGHT" />
 android:name="android.permission.ACCESS_NETWORK_STATE" />
 android:name="android.permission.INTERNET" />
 android:name="android.permission.READ_PHONE_STATE" />

Monday, July 2, 2018

Tips to save money when you buying a laptops and computers.



Tip 1 : Do not buy!!!

I know this is a strange tip. When you got the first idea to buy a new laptop and computers please consider why you need that. It may be your old laptop is broken or has some sort of software issue.
Try to repair it by yourself or go for a professional technician or ask  for help from your friends. You'll save lot of money this way. Laptops are designed to last for at-least 2-4 years. 

Tip 2 : Do not buy any software from the retail shop!!!

When you buying a laptop or desktop pc sales person will try to sell some products like antivirus software, office suits and some other commercial software.  Please try to buy these stuffs from online sources and you can save up-to 20-30 dollars .

Regarding antivirus you may do not need one as windows defender is good enough to protect you form most of the attacks.



Tip 3 : Buy used.

Buying a used laptop/desktop will at-least save you  100-200 dollars. Use ebay, gumtree ot facebook market place to buy used items.