sudo apt-get install mysql-server-5.1 sudo mysql_install_db sudo mysql_secure_installationThen download and install JDBC (connector/J) driver.
Setup MySql on Ubuntu 11.04
Posted at
6/23/2011 11:06:00 AM
Install MySQL
MySQL Programming in Java
Posted at
6/23/2011 11:05:00 AM
Connecting to Database:
String url = "jdbc:mysql://hostname:portNumber/databaseName"; String username = "dbuser"; String password = "secret"; Connection conn = DriverManager.getConnection(url, username, password);
Setup MySQL on Fedora 15
Posted at
6/23/2011 11:04:00 AM
yum install mysql-serverStart MySQL server and autostart on boot:
/etc/init.d/mysqld start ## use restart after update ##OR## service mysqld start ## use restart after update chkconfig --levels 235 mysqld on
Acronyms of Programming Terms(DRAFT)
Posted at
6/23/2011 11:02:00 AM
W3C — World Wide Web Consortium
XML — Extensible Markup Language 可扩展标示语言
SGML — Standard Generalized Markup Language
SMTP — Simple Mail Transfer Protocol 简单邮件传输协议
TCP — Transmission Control Protocol
IP — Internet Protcol
XML — Extensible Markup Language 可扩展标示语言
SGML — Standard Generalized Markup Language
SMTP — Simple Mail Transfer Protocol 简单邮件传输协议
TCP — Transmission Control Protocol
IP — Internet Protcol
Configuration of Eclipse and Tomcat
Posted at
6/23/2011 11:00:00 AM
1. Install Eclipse and Tomcat
Extract compressed files into your desired directories.
2. Create an Environment Variable JAVA_HOME for Tomcat if under Windows environment
Start --> Control Panel --> System --> Advanced --> Environment Variables
--> System Variables --> New :
name: JAVA_HOME
value: "Path to tomcat"
Extract compressed files into your desired directories.
2. Create an Environment Variable JAVA_HOME for Tomcat if under Windows environment
Start --> Control Panel --> System --> Advanced --> Environment Variables
--> System Variables --> New :
name: JAVA_HOME
value: "Path to tomcat"
[Java] Renaming a batch of files
Posted at
6/23/2011 09:41:00 AM
Due to some reason, the file names in my MP3 folder begin with two digits like this: 01 file.mp3. It is too tedious to rename them one by one since there are too many (hundreds of them). So I wrote a small program to remove the digits :) .
Subscribe to:
Posts (Atom)