Welcome to my blog, hope you enjoy reading
RSS

Friday, 10 July 2015

Redo keyboard shortcut for eclipse

In Eclipse go to:

Window > Preferences > General > Editor > Keys


Type filter text to redo then select command.
copy command to give another shortcut to redo
-->Apply
-->OK.

source.
Share

A fatal error has been detected by the Java Runtime Environment: in ubuntu

$ sudo unlink /usr/lib/i386-linux-gnu/libsoup-2.4.so.1

souce.

Share

The system not connecting the internet and network symbol not showing in ubuntu


  • dhclient eth0
  • apt-get --reinstall install network-manager
Share

System Settings icons missing in 14.04


sudo apt-get install ubuntu-desktop

sudo apt-get install unity-control-center-signon gnome-control-center-unity

source
Share

Ubuntu software center keeps crashing

Ubuntu software center keeps crashing


  •     sudo apt-get install -f
  •      apt-get autoremove
  •      sudo apt-get purge software-center
  •      sudo apt-get update
  •      sudo apt-get dist-upgrade
  •      sudo apt-get install software-center
  •      sudo dpkg-reconfigure software-center --force
Share

Wednesday, 14 January 2015

How to include Java Source code within Eclipse?

How to include Java Source code within Eclipse?

In Netbeans, I can see the built-in sourse code of Java by clicking on LeftClick + Ctrl, and the .java file is shown:
Share

Tuesday, 13 January 2015

android Error in http connectionjavajava.lang.SecurityException: Permission denied (missing INTERNET permission?)

android Error in http connectionjavajava.lang.SecurityException: Permission denied (missing INTERNET permission?)

solution:
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
Share

“appcompat_v7” project is created automaticaly after creating a new project in Eclipse

“appcompat_v7” project is created automaticaly after creating a new project in Eclipse

Do as follows to overcome this issue, this works for me. Create project as usual than follow below steps

Share

Count number of Delimited value in Column in mysql


Now i want count no of items in one particular row in one particular cell.

i.e If i have 25,45,26,45,46 in a cell in table.
I want the output like 5

Solution:

 If data is end with delimiter then
Query: SELECT LENGTH(yourColumn) - LENGTH(REPLACE(yourColumn, ',', '')) AS numberOfItemsInRow FROM yourTable;

example:
SELECT LENGTH('123,123,') - LENGTH(REPLACE('123,123,', ',', '')) AS numberOfItemsInRow;
o/p: 2

If data is not end with delimiter
Query: SELECT LENGTH(yourColumn) - LENGTH(REPLACE(yourColumn, ',', '')) + 1 AS numberOfItemsInRow FROM yourTable;

example:
SELECT LENGTH('123,123') - LENGTH(REPLACE('123,123', ',', ''))+1 AS numberOfItemsInRow;
o/p: 2

Share

Saturday, 8 November 2014

APACHE TOMCAT VERTIONS NOT SHOWING IN ECLIPSE SERVER RUNTIME ENVIRONMENTS (KEPLER/LUNA INSTRUCTIONS)

Following are the steps to install Apache Tomcat and add it into Eclipse Kepler or Luna:


  1. In Eclipse Kepler, go to Help, select ‘Install New Software
  2. Choose “Kepler- http://download.eclipse.org/releases/kepler” site or add it in if it’s missing. If you’re using Luna, choose “Luna – http://download.eclipse.org/releases/luna” site or add it in if it’s missing
  3. Expand “Web, XML, and Java EE Development” section
  4. Check JST Server Adapters and JST Server Adapters Extensions
  5. Once installed, in Eclipse, go to Window / Preferences / Server / Runtime Environments
  6. Press Add button, select Apache / Apache Tomcat v7.0 or Apache Tomcat v8.∞
  7. Press Next, select location on the drive (i.e. c:\apachetomcat) for Tomcat installation directory. Make sure that the directory exist.
  8. Then press ‘Download and Install’ button, accept terms and point to your installation directory (i.e. c:\apachetomcat) and press OK button
  9. Apache TomCat v7.0 will install (you’ll see a progress in the status bar
  10. Press Finish.
  11. Apache Tomcat v7.0 or Tomcat v8.0 (depending on your selection)  will show in the list under Server Runtime Environments now.
Share