Ubuntu: How to Show MySQL User Accounts via the Terminal

Ubuntu: How to Show MySQL User Accounts via the Terminal

To get a list of user accounts on a MySQL server instance, we need to make a SELECT call to the mysql.user table. First, fire up MySQL in your terminal and login as an administrator account with: mysql -u root -p You will be prompted for your root password before being granted access to the

[ read more ]

Get Data from Clipboard in Java

An example on getting and printing a string from system clipboard in Java in just 2 statements. Example import java.awt.*; import java.awt.datatransfer.*; class SystemClipboard { public static void main(String args[]) throws Exception { // Create a Clipboard object using get

[ read more ]

Paste Image from Clipboard on JFrame in Java

Paste Image from Clipboard on JFrame in Java

An example on pasting an image that is on system clipboard in Java on a JFrame. Here we've used a JLabel and set the image from the clipboard to it as icon. Example // Import for BorderLayout import java.awt.*; // Import for JFrame, JLabel import javax.swing.*; // Import for Clip

[ read more ]

Generating Tag cloud with PHP and MySQL

The basic idea this time is to present a way to form a tag cloud from user input text and text entered in the past. A tag cloud is a visual depiction of user-generated tags, or simply the word content of a site, used typically to describe the content of web sites. for this we will create an HTML

[ read more ]

Solved How do I get data from Excel file in java?

Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...

[ read more ]

Solved How do I get data from Excel file in java?

Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...

[ read more ]

Netbeans Problem: How To Change Port Number For GlassFish

Netbeans Problem: How To Change Port Number For GlassFish

Both Oracle an GlassFish runs by default on port number 8080,results in port conflict Following are simple steps to change the port number of glassfish server : Go to the folder where Glassfish is installed. Locate config folder which is as follows: C:Program Filesglassfish-3.0.1glassfishdo

[ read more ]

Android Tutorial Table Of Content

Android Tutorial Table Of Content

Android Development Introduction Android Development Tutorial  (Part 1)  (Part 2) Android Filebased Persistence with Preferences, Filesystem and SD Card Android ListView and ListActivity Android Intents Android SQLite Database and ContentProvider Android Custom Views Android Liv

[ read more ]