PigRider Blogs

Sign In
HTML CSS Javascript Ruby on Rails C++ Java Python SQL Git Linux Others All
Previous 1 2 3 4 5 6 7 8 Next

Java Web application with Mysql

[Author: lzhang]   [Wed, 2014-04-09, 15:21]   [2461 views]

Java SQL

1 Java connection to MySQL 
To start, let us work on a simple java application(no web) connected to MySQL database(other database will be similar). 
Software needed: 
      Java http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
      MySQL  http://dev.mysql.com/down ... see full article

Comparing two branches in Git

[Author: Dingyu]   [Wed, 2014-02-26, 15:48]   [1694 views]


git diff Branch_1..Branch_2
That will produce the diff between the tips of the two branches. If you'd prefer to find the diff from their common ancestor to test, you can use three dots instead of two:
git diff Branch_1...Branch_2 ... see full article

Vim Cheat Sheet

[Author: Dingyu]   [Wed, 2014-01-15, 15:10]   [1763 views]


In the Insert Mode
Esc Go back to the normal mode.
In the Normal Mode
i Change into the insert mode. Insert text before the character under the cursor.
a Change into the insert mode. Append text after the character under the cursor.
o Change into the insert mode. Create a new, empty line below the c ... see full article

How to use Git to download a particular tag?

[Author: Dingyu]   [Tue, 2014-01-14, 10:30]   [1696 views]


git clone will give you the whole repository.
After the clone, you can list the tags with: git tag -l 
Then you can checkout a specific tag with: git checkout tags/TAG_NAME ... see full article

Useful Linux Commands

[Author: Dingyu]   [Sat, 2014-01-11, 15:19]   [1660 views]


Add a user and set the password
useradd USERNAME
Add a user with the username "USERNAME".
Set the password for the user "USERNAME".
Delete a user
userdel USERNAME
The disadvantage of the above command is that it only deletes users login details but not his home directory.
userdel -r ... see full article

Java Singleton Design Pattern

[Author: ming.lian]   [Mon, 2013-10-28, 20:16]   [2317 views]


This blog was from java dzone.
In Java the Singleton pattern will ensure that there is only one instance of a class is created in the Java Virtual Machine. It is used to provide global point of access to the object. In terms of practical use Singleton patterns are used in logging, caches, thread poo ... see full article

Start and Stop MySQL Service on Windows with Windows Command Prompt

[Author: Dingyu]   [Sun, 2013-10-20, 15:03]   [1846 views]


# Start MySQL Service on Windows with Windows Command Prompt
net start MySQL
# Stop MySQL Service on Windows with Windows Command Prompt
net stop MySQL
# Start and Stop other Windows Service with Windows Command Prompt
net start ServiceName
net stop ServiceName ... see full article

Basic C++ Concepts

[Author: Dingyu]   [Wed, 2013-10-02, 09:35]   [1778 views]


Basic C++ Concepts
int square(int iNum) {
  return iNum*iNum;
int main() {
  int iNum=10;
  int* p1=&iNum;      // Define a pointer and let it point to an integer variable
  int* p2=p1;      // Still point to that integer variable
  int** p3=&p2;      // Define a pointer that points to ano ... see full article

Shell Concepts and bash shell basic use

[Author: lzhang]   [Fri, 2013-09-27, 19:54]   [1684 views]


A shell is software that provides an interface for users of an operating system to access the services of a kernel(from Wikipedia).
There are two categories of shell: Graphical User Interface shell(i.e. GUI shell) and Command Line Interface shell(i.e. CLI shell). 
GUI shell includes Windows Explorer ... see full article

Study note for Java

[Author: Dingyu]   [Sun, 2013-09-22, 21:29]   [1577 views]


1. Bitwise and Bit Shift Operators
// Operator & performs a bitwise AND operation.
// Operator | performs a bitwise inclusive OR operation.
// Operator ^ performs a bitwise exclusive OR operation.
// Operator ~ is an unary bitwise complement operator.
// Operator << is the signed left shift operator ... see full article
Previous 1 2 3 4 5 6 7 8 Next

Recent Most Popular Blogs: