Find the Ubuntu Version installed from terminal

From terminal type

lsb_release -a

It shows up information like

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

If  you type

lsb_release -cs 

The sub-command prints specifically name of your Ubuntu version, like xenial or trusty.

Smooth!

Windows CDC drivers issue

Apparently I was trying to connect my Samsung Galaxy S2 I9100 to my Windows 7 system

  1. Kies installed  – nothing happened
  2. Drivers from Samsung installed – nothing happened

It kept showing that drivers for CDC were not installed

Finally got the fix from XDA developers forum

We need to switch teh UART and USB settings:

Enter UART mode with *#9090# and select "Log via UART"

then

enter *#7284# and select "UART MODEM" and select "USB PDA"

Now Windows ask normal Samsung drivers!

Cheers!

 

 

Getting Error “‘Microsoft.VisualStudio.Editor.Implementation.EditorPackage’ package did not load correctly”

Recently I cam across 2 errors one after another while launching Visual Studio 2015

It has been quite some time I used VS, and now I am getting used to the fact that whatever was running a month before, wont work as expected the next time I open it!

The first error looked something like this

Microsoft.VisualStudio.ProjectSystem.VS.Implementation.SharedProjectFilesPackage, Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package. XXXXXXX package did not load correctly.

Second error:

‘Microsoft.VisualStudio.Editor.Implementation.EditorPackage’ package did not load correctly

 

 

Well, I tried many things. However some times, the simple tricks get us what is needed!

Steps:

  1. Close any instances of Visual Studio running on your computer.
  2. open the application data folder from the Run command . You can use %appdata% to get quick access.
  3. Go to C:\Users\<username>\AppData\Roaming\Microsoft\VisualStudio\14.0 – take backup of all the folders inside and then delete them.
  4. Go to C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\14.0  – take backup of all the folders inside and then delete them.
  5. Run Visual Studio as Administrator (this allows all the deleted run-time items to be created without any error).
  6. Try to open the project giving errors above from this Visual Studio instance
  7. TADA!

Update Node.js on Mac OS

Well for quite sometime I was using Node v 0.12x on my system, whereas nodejs has been updated to 7.x till date
I thought I used the right commands but the updates were never reflected

Gladly, I found this article on web.

I am writing down the steps that worked for me (it seems XAMPP on mac adds on some steps to the installation procedure) :

A simple way to upgrade Node.js from the Terminal is to use the n version manager:

1 npm install -g n
2 npm cache clean -f

Now, if you have XAMPP installed on your Mac, you need to do an extra step before upgrading Node.js:

1 cd /Applications/XAMPP/xamppfiles/bin
2 sudo mv HEAD _HEAD

At this point upgrading Node.js is as simple as:

1 sudo n stable
2 npm update -g

For XAMPP users only, rename _HEAD back to the original HEAD:

1 cd /Applications/XAMPP/xamppfiles/bin
2 sudo mv _HEAD HEAD

You can check which versions of npm and Node.js you have on your system with:

1 node -v
2 npm -v

Cheers!

“This Publisher has been Blocked from Running Software on your Machine”

“This Publisher has been Blocked from Running Software on your Machine” 

This message showed up recently on my windows 10 PC.

And it showed when I tried to install a driver downloaded from Samsung official website!!

So yes the quick fix is

run the software which is showing this issue from Command prompt

Yes , I know this is the fix! And it works!

Cheers!

 

 

Updating Cordova plugins

Well, mine was an older Cordova project, and I was under the impression that every time I update the Cordova installation, or the platform (ios/android) the plugins too upgrade. Well my fault! It seems we have to manually delete and re-install each plugin (Yes! there is no update command for plugins yet!)

So the plugins looked like initially :

cordova plugin ls

com.msopentech.websql 0.0.9 "Web SQL plugin"
cordova-plugin-inappbrowser 1.2.0 "InAppBrowser"
cordova-plugin-whitelist 1.1.0 "Whitelist"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.dialogs 0.3.0 "Notification"
org.apache.cordova.file 1.3.3 "File"
org.apache.cordova.file-transfer 0.5.0 "File Transfer"
org.apache.cordova.network-information 0.2.15 "Network Information"

For updating Cordova plugins, there is no update command. I know, we did not see that coming!

So to update a single plugin, you need to execute 2 commands:

cordova plugin rm <plugin-package-name/>
cordova plugin add <plugin-package-name>

So for eg you can :

cordova plugin rm org.apache.cordova.file
cordova plugin add cordova-plugin-file

Yes the package names change sometimes, and you can get the details of the latest package names from the official documentation.

So after the changes the plugins were updated to :

com.msopentech.websql 0.0.9 "Web SQL plugin"
cordova-plugin-inappbrowser 1.2.0 "InAppBrowser"
cordova-plugin-whitelist 1.1.0 "Whitelist"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.dialogs 0.3.0 "Notification"
org.apache.cordova.file 1.3.3 "File"
org.apache.cordova.file-transfer 0.5.0 "File Transfer"
org.apache.cordova.network-information 0.2.15 "Network Information"

Yes, quite some updates, sorting all the errors and warnings!

I also saw information about some scripts, if the package names are same, I believe they can be useful. Please check Stackoverflow for more details.

Cheers!