Tuesday, October 31, 2017

Cancel NORD VPN and get the refund.


Recently I purchased nord-vpn for testing. But I could not use their service due to a technical reason. So I wanted to cancel and get my money back. In their website they don't have any user interface to do such an operation. So only way to cancel nord-vpn is to contact them via Email. 

1. Send an email to support@nordvpn.com saying that you need to cancel nord-vpn and get your money back,

2. They will reply you and ask the reason for cancellation.

3. Reply back with your reason and said you want your money back.

** You only have 30 days to get money back option and if you purchase via itunes they cant refund your money.


Sunday, October 15, 2017

Angular JS drop-down first options vs jQuery UI.


Hi All

Recently I had an issue with angular-js dropdown  which had ng-repeat to load it's options from a web service. Problem was I always could see an empty option even if I dont need that empty option. I needed to show the first real option to my users.

So I googled and see lot of answers but non of them did not work for me. My case was really rare.
My app was kind of converted app from jquery mobile to angular. So I had some jQuery mobile reference as well. Also I realised that my drop down had jquery mobile styles as well.

So all I did was removing all references to jQuery mobile js and jQuery mobile css. So everything works now.


So the conclusion is 

1. If you have any problems with angular data-bindings please remove jquery mobile references.



Removing click delays in iOS - apache cordova apps


 I started to use Angular JS in cordova for iOS. Every thing was perfect except I experienced a delay in response to ng-click function. In windows and android I did not see that delay.

Finally after we searches I found the solutions  You just need to include the fast click library from bellow url.


 https://github.com/ftlabs/fastclick 

Now if you using winstore-js-compact.js to fixed problems with angular in windows environment you cant refer fast-click library as a direct javascript reference. Instead of that add your script as follows.

       if (cordova.platformId == "ios") {
            /*  Add fast-click.j's content  to here */
       }

Wednesday, September 6, 2017

The imported project "C:\Program Files (x86)\Microsoft SDKs\TypeScript\build\Microsoft.TypeScript.targets" was not found


All I did  to create above mess is...

1. Installing visual studio 2017 while working on visual studio 2015.
2. And I stopped the visual studio 2017 installation as I thought I would  do it in another day.


So the setup application has removed my installed typescript  plugin.  All you have to do is
install type script for Visual Studio 2015. You can download the setup from bellow link.


https://www.microsoft.com/en-us/download/details.aspx?id=48593




Monday, August 21, 2017

Google chrome cache not clearing


We had this caching problem in one of our windows 8.1 computer. But I'm sure this issue is exist in all new version of windows and chrome.

So this is what we did to clear the google chrome cache and none of this work for us.

1. Clear cache using google chrome options.
2. Full page reload ( Ctrl + F5 )
3. Uninstall  google chrome install again.

So the conclusion is google chrome getting cached data from somewhere in your own hard disk. Sorry I didn't know exact location right now. ( Will find it and update ) .

All I did was doing a disk cleanup for the partition which has windows OS installed.  To do this please follow bellow steps and its  better to restart after doing this.

1. Right click on the drive.
2. Go to properties.
3. Click on disk cleanup button wait till you see the report.
4. Check all options in side the dialog window.
5. Click on OK button.
6. Restart windows.







 

iTunes won't open windows 10 64 bit


There are few solutions for this problem.

1. Run itunes as an administrator. If you are an admin user of your windows 10 computer this is the easiest way to fix the problem.


2. Uninstall and Install iTunes software. ( You need admin access for this as well )


3. Ask your administrator to install windows updated and itunes updated version.


First solution worked for me.



Monday, August 7, 2017

System.Security.Cryptography.CryptographicException: Access denied. ( IIS and X509 Client Authentication Certificate )


 I'm using following code part to access a ReST API. I'm communicating with this API using a X509 client certificate.






In development site which I have IIS 10.0 its working without any issues. But after publishing on windows server 2012 R2 and using IIS 8.5 on windows server it's giving me following error.

System.Security.Cryptography.CryptographicException: Access denied.

This happened even if I gave full rights to the machine key folder.

Ok. Lets focus on  the solution.

First I added certificate to user key set from code instead of machine key folder.


var certificate = new X509Certificate2(objApiCertficate.CertificateData, this.strApiPassword, X509KeyStorageFlags.UserKeySet);
                    certHandler.ClientCertificates.Add(certificate);






Then you have to load user profile in your application pool.






Please restart IIS before test this.