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.




Thursday, June 21, 2018

Cordova Gradle wrapper missing in android SDK


When you develop apps with Cordova and Microsoft Visual Studio there are some important facts you should know. I learned these things over 2.5 years of period.

1. Visual Studio tools for apache cordova is Microsoft product  and it's not updated alongside with other tools using by app developers.




So lets focus on this graddle issue. The latest android version released in 2018 is android 8.0 and 8.1 Oreo . But unfortunately microsoft tools for apache cordova is still supporting Android 7.1 - Nougat.

So in case you have updated your android  SDK and tools you might need to rollback that update to use Microsoft tools to build and release your app to Google Play. 

But again try to  keep Visual Studio for development tasks and always try to native tool set for release purposes. 

    

Thursday, May 3, 2018

Backup solutions for normal windows pc/laptop users. ( Not for geeks )


I have done few data recovery jobs for normal personal computer users who couldn't start their computers because of several reasons. Even though it's not a big deal to get your data back when your computer is in good shape and your windows operating system  isn't working.

But it's very hard for some one who doesn't  have the skill of doing it. Also if you go to a technician they will charge you at least  hundred dollars to do these things.  Other than that you'll have to expose your personal data to a third party and they can do some damage if they are not very professional people.

So my advise is its always good to prevent these scenarios before something happened to your windows operating system. If you follow these steps you will be confident enough to format your hard disk and  install a fresh copy of windows operating system.

1. Always make at-least two partitions in your hard disk and use one only for operating system and other one for data.

2. Do not save any sensitive data in your OS drive. If you concern about privacy and security of data use window's default  Bitlocker encryption tool. ( You cant use bitlocker in windows home editions )

3. Use a personal file sharing application like dropbox or google drive and configure it to sync your data automatically.

4. Use external hard disk to backup your data time to time.

5. Make sure you always have your data in at lest two physical locations in case of a disaster. ( Cloud and Your PC will be ok for a basic backup plan )

6. If you want to use an antivirus software please buy a commercial antivirus. Never use a pirate copy of  an antivirus software. ( Simply do not use any pirate copies as there are many opensource alternatives around )

7. Do not use an older versions of antivirus software. This will cause compatibility issues and  will  reduce the speed of your computer.
     




How to load image on webview from ms-appdata:///local


I recently updated my  Visual Studio 2015  apache cordova project to visual studio 2017. I had few problems with working with angular js otherwise everything worked in windows 10 environment.

But what I noticed was images from ms-appdata:///local folder couldn't load  to img tags. I tried many ways like row html, dynamic tag creation and add url as a base64 data url.

In base64 solution it worked. But I want to get the file itself  as my app was supporting iOS and Android as well.

So after trying hundred things solutions was simple.  You have to set img-src  option to All ( *  ) Content-Security-Policy meta tag of the html file.

Please check following screen shot. You need to add the part with the read border to load image resources from any location.








Reference URL  if you need to see more options.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src