Showing posts with label Update. Show all posts
Showing posts with label Update. Show all posts

February 02, 2022

Ubuntu - update NPM and NodeJS

Hi folks,

Some people often confuses with NPM update vs Node.js update.

Let me clarify that, NPM (Node Package Manager) is a CLI (Command Line Interface) to manage the JS (JavaScript) packages from https://www.npmjs.com/ or any other external package managers like GitHub.

Node.js is a FrontEnd JavaScript Framework like Vue.js, AngularJS which helps to build the scalable network applications. Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

NVM (Node Version Manager) and n are command line utilities to manage and switch between Node.js versions.

When you are installed for the first time, you will be installing Node.js from https://nodejs.org/en/download/ which also installs NPM CLI utility.


But when upgrading the NPM or Node.js, it's a different story.


Update NPM

npm install -g npm

Update Node.js with Node version manager (n)

Install the n

sudo npm install -g n

Update the Node.js to stable version

sudo n stable

As of now, the stable version is 16.3.2 which includes NPM 8.1.2

Update the Node.js to current version

sudo n current

As of now, the current version is 17.4.0 with NPM 8.3.1


Check the versions

NPM

npm --version

Node.js

node --version


Hope this helps you to understand the NPM and Node.js difference along with update of individual components.

Send your comments and feedback to psrdotcom@gmail.com

 

April 07, 2018

Android and Java latest integration changes for AVDManager and SDKManager non-working issues

Hi all,

If you haven't used your Android skills in recent times with latest Java then, you might come across a situation where the SDK Manager and AVD Manager are not working.

Issue

SDK Manager and AVD Manager are not working.

Environment

Java 9 with Android SDK 23

Note

Though, I am able to perform development using Android Studio but when it come to update the SDK build tools and others, I was not able to update with SDK Manager.

Solution


  1. Now, Android SDK Manager have moved to sdk/tools/bin with filename sdkmanager.bat
  2. Edit the sdkmanager.bat file with any text editor
  3. Go to "@rem Execute sdkmanager" command
  4. Update the command with options: -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee 
  5. It should look like below after you add the arguments
    • @rem Execute sdkmanager
      "%JAVA_EXE%" %DEFAULT_JVM_OPTS% -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee %JAVA_OPTS% %SDKMANAGER_OPTS%  -classpath "%CLASSPATH%" com.android.sdklib.tool.sdkmanager.SdkManagerCli %CMD_LINE_ARGS%
  6. If you run android-sdk/tools/bin/sdkmanager.bat, it should be able to run

Note

There is nothing like platform-tools folder now in Android SDK.

So, make sure that you have specified ANDROID_HOME/SDK in your environment variables with your system/pc Android SDK folder

In PATH environment variable, you can specify %ANDROID_HOME%/tools/bin

Thanks for reading my blog. Feel free to post your comments below. Contact me on psrdotcom@gmail.com

February 22, 2017

Tomcat issue "windows could not start apache tomcat on local computer" after java update issue with resolution

Hi friends,

Today I have faced an issue with Tomcat service starting. I would like to share with you the resolution as well. Please find the details below.

Root cause

Updated java version

Resolution


  • Navigate to you apache installed folder
  • Go bin folder
  • Double click on "Tomcat(X)w.exe" where X the version of tomcat.
  • In my case it is "Tomcat8w.exe" because the version is 8
  • Select "Use Default". So that, it uses the JAVA_HOME version by default.
  • Click on OK
  • Start the Tomcat service and enjoy deploying


Please send your comments and feedback to psrdotcom@gmail.com

February 20, 2017

Consolidate / Merge all your PF accounts

Hi friends,

Today, I have come across one useful website which consolidates all your PF accounts under one roof.

Pre-requisite


  1. You should have one active and current PF account
  2. You should have UAN created and activated
  3. You should have your old PF account numbers

Important Information

If you have changed organization, then wait till the previous employer update your "Date of Exit (DoE)"
After that your current employer details should be available
To verify that, please login to your UAN services account
https://unifiedportal-mem.epfindia.gov.in/memberinterface/
Go to "View" -> "Service History"
You should be able to see your present and previous employers
Note: You wait for atleast 3 months, after you exit from your previous organization

Procedure


  1. Visit http://oeoea.epfoservices.com/UANDEDUP/index.jsp site
  2. Enter your registered mobile number
  3. Enter your UAN number
  4. Enter your current active PF account
  5. Once you login, you should be able to view your all registered and linked PF accounts
  6. Consolidate all PF accounts by selecting and further processing


Please send your comments and feedback to psrdotcom@gmail.com

December 13, 2016

E Aadhaar password for mail copy PDF received from aadhaar@uidai.gov.in

Hi friends,

I have updated my Aadhaar details from Aadhaar update center.
It is mentioned that within 72 hours, my details will be updated.

Before 72 hours of my updated application, I had received an email from aadhaar@uidai.gov.in with an attachment which is password protected.

As I was unable to find the password to open the file in the sent mail, I have googled to find the answer. I have found mulitple options. You can try the following procedure to open the file with your password.

Procedure to open the document


  1. Download the file
  2. Rename the file by adding .pdf extension, if missing
  3. Try the following passwords
    • Password length is 8 characters
      • First 4 characters of your name as mentioned in Aadhaar card (All small letters)
      • Next 4 characters are your year of birth which is mentioned in Aadhaar card
    • Password length is 6 characters
      • Pin code of your address as per Aadhaar records
      • Pin code of your enrolled area where you have applied the Aadhaar card
  4. For me, 8 character password (first 4 characters of my name as mentioned in Aadhaar card + year of birth) worked.
Please send your feedback and queries to psrdotcom@gmail.com

January 03, 2016

Nexus 7 Files accessing (storage drive) issue fix after upgrading to Marshmallow

Hi friends,

Today when I connected my Nexus 7 tab, I was unable to see the drive and folder structure. But in the file explorer it is able to detect the Nexus 7 by showing the icon. When you double click to view the files, there is nothing.
  1. After googling, the following solutions worked for me.
  2. Go to device management
  3. Right click Android ADB Interface and do uninstall
  4. After uninstalling the drivers, change the USB type in Nexus to PTP and immediately change to MTP
  5. Unplug and plug the Nexus to your PC
  6. Now the system will re-install the driver
Hope, this post will be useful when OS upgraded and unable to access file system of device

Android 6.0.1 Upgrade fix

After installing the driver, device might be recognized but we need to change the "Use USB for options" from any one of the following options

Notification Panel

  1. Select the "USB for file transfer - Touch for more options"
  2. You will be prompted to choose any one of the following
    • Charging
    • File transfers
    • Photo transfers
    • MIDI
  3. Select File transfers to see the "Internal Storage"

Developer Options

  1. Go to "Settings->Developer Options"
  2. Go to "Select USB Configuration" setting
  3. Choose "MTP (Media Transfer Protocol)" for transferring the files
Now you should be able to see the file storage in explorer

Please send your feedback and comments to psrdotcom@gmail.com

December 14, 2014

Install and configure latest Oracle Java JDK 8 and 7 in Ubuntu

Hi friends,

Today, I'll try to explain the way how to install the latest Oracle Java JDK 8 and 7.

Pre-requisites

Ubuntu 12.02 or above

Procedure

We can install in two ways
  1. Using PPA
  2. Manual Installation

PPA installation

  • Open terminal from "Applications" or press key combination "Ctrl+Alt+T"
  • Type the following commands in sequence
    • $ sudo apt-add-repository ppa:webupd8team/java
    • $ sudo apt-get update
  • To install latest JDK 8, type the following command
    • $ sudo apt-get install oracle-java8-installer
  • To install latest JDK 7, type the following command
    • $ sudo apt-get install oracle-java7-installer
  • Once the download complete, it will ask for agree for terms and conditions
  • Click on "OK" to complete the installation

Manual Installation

  • Download the Oracle JDK from the following official link
  • Extract the downloaded zip (Example "jdk-1.8.0.25.tar.gz")
  • It will create a folder with name "jdk-1.8.0.25"
  • Create a folder "java-8-oracle" under "/usr/lib/jvm" folder
    • $ sudo mkdir -p /usr/lib/jvm/java-8-oracle
  • Move the folder contents to /usr/lib/jvm/java-8-oracle
    • $ mv jdk-1.8.0.25/* -rf /usr/lib/jvm/java-8-oracle/

Configure the java executables

Configuration can only be done if more than one JDK is installed.

To configure java execute the following command

$ sudo update-alternatives --config java

Example output if Java 7 and Java 8 installed
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-oracle/jre/bin/java   2         auto mode
  1            /usr/lib/jvm/java-7-oracle/jre/bin/java   2         manual mode
* 2            /usr/lib/jvm/java-8-oracle/jre/bin/java   1         manual mode

Similar way you can do for javac, javaws and other executables

Configure javac

$ sudo update-alternatives --config javac

Configure javaws

$ sudo update-alternatives --config javaws

Happy java coding guys :)

References

  1. http://askubuntu.com/questions/121654/how-to-set-default-java-version
  2. http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04
  3. http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre

Please send your feedback and comments to psrdotcom@gmail.com

January 14, 2014

Sony Xperia L Jellybean 4.2.2 Update Speaker Volume and Mobile Internet Data Connectivity Problem and Solutions

Hi all,

I have updated my sister’s phone from Jellybean 4.1.2 to Jellybean 4.2.2.

She found two problems,

Problems

1) Internet Mobile Data is not working

2) Speaker Volume is very low

Solutions

1) Install “Internet Settings” from Settings->Xperia option. It will installs and activates your mobile data

2) After update manually Switch off and Switch On the device

 

Simple but vital solutions for any Sony customer

 

Please feel free to send your comments and feedbacks to psrdotcom@gmail.com

Blogger Labels: Sony,Xperia,Jellybean,Update,Speaker,Volume,Mobile,Internet,Data,Problem,problems,Install,option,Switch off,Switch On,Simple,customer,comments,Solutions

December 28, 2011

Facebook Timeline Feature Wall Design Update Procedure

Hi all,

Today I have update the new Facebook Timeline Feature. You can also update to Facebook Timeline but it is allowing us to use a trail period of 7 days. Hope this layout wall design will be liked by more persons?

Steps to update the Facebook Timeline:
  • Login with your username and password into Facebook
  • Type "Timeline" in the search box (top)
  • Select the "Introducing Timeline" as shown below

Please send your feedback to psrdotcom@gmail.com

December 22, 2011

Netbeans Plugin Install, Update, Problem, Troubleshoot

Dear all,

I was facing an issue while updating my netbeans. It was showing the following screen


I tried to  resolve this problem by checking the proxy configuration, firewall configuration, refreshing the content. None of them solved my problem.
Note: You please try all those settings, it may work for you. If none the above configuration solves your problem then follow the below solutions.


I have found 2 solutions to resolve/troubleshoot this problem.

a) Manual Update
  1. Copy the path of the networking problem link
  2. Download the .nbm file
  3. In Netbeans, Click on Tools (Menu) -> Select "Plugins" option
  4. Select the tab "Downloaded" -> Click "Add Plugins"
  5. Choose the appropriate .nbm file from the downloaded directory
  6. Click "Open" to view in the "Downloaded" tab
  7. Check the plugin and Click on "Install" button
  8. Now the Netbeans plugin will be updated and it will auto download the dependencies
Note: Above Screens are of Netbeans IDE 7.0.1. For your netbeans IDE the options may be different menus but the procedure is same.
  • Pros: Easy to install the specified/chosen plugin and update
  • Cons:
    • Issue: While updating, if it was not able to get the dependency, then it will show the same "Networking Problem"
    • Resolution: Follow the same procedure from step 1

b) Automatic Update:

  1. In Netbeans, Click on Tools (Menu) -> Select "Plugins" option
  2. Select the tab "Settings"
  3.  
  4. Click "Add" button to add a plugin update center
  5.  
  6. Enter the name and path of the plugin update center and Click on "OK"
  7. It will auto-refresh the plugins available
Install Plugin:
You can download many netbeans plugins from "Available Plugins" tab of "Plugins" window.
Install your own choice of plugins and enjoy application development with Netbeans.

If you have any queries, please contact me on psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com