In mySQL 6
Virtual Column
Written by maclochlainn
http://blog.mclaughlinsoftware.com/2011/05/05/mysql-virtual-columns/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+orana+%28OraNA%29
and Official Site Preview
http://forge.mysql.com/wiki/MySQL_virtual_columns_preview
เอกสารอื่นๆ สามารถดูได้จาก MySQL forge
http://forge.mysql.com/
tu blog , programming C#,PHP,Java,VB.NET,VB,HTTP,Protocol
06 May 2011
29 April 2011
windows 7 lost pass
http://answers.yahoo.com/question/index?qid=20100416134329AAlWwQM
http://ophcrack.sourceforge.net/
http://ophcrack.sourceforge.net/
http://ophcrack.sourceforge.net/download.php
http://ophcrack.sourceforge.net/tables.php
http://pogostick.net/~pnh/ntpasswd/
http://superuser.com/questions/72244/what-can-i-do-if-i-forgot-my-windows-password
http://www.freerainbowtables.com/en/tables/
http://www.it-guides.com/index.php/tips-a-techniques/windows-tips/1439-reset-windows-7-administrator-password
http://www.kryptoslogic.com/
http://www.monavista.com/webboard/showthread.php?t=20811
http://www.online-tech-tips.com/windows-7/forgot-lost-administrator-password-windows-7/
http://www.piotrbania.com/all/kon-boot/
http://www.question-defense.com/2009/11/05/reset-your-windows-password-with-chntpw
http://www.sevenforums.com/general-discussion/5087-forgotten-password-workaround.html
http://www.ubuntu.com/
http://www.winvistaclub.com/t7.html
http://ophcrack.sourceforge.net/
http://ophcrack.sourceforge.net/
http://ophcrack.sourceforge.net/download.php
http://ophcrack.sourceforge.net/tables.php
http://pogostick.net/~pnh/ntpasswd/
http://superuser.com/questions/72244/what-can-i-do-if-i-forgot-my-windows-password
http://www.freerainbowtables.com/en/tables/
http://www.it-guides.com/index.php/tips-a-techniques/windows-tips/1439-reset-windows-7-administrator-password
http://www.kryptoslogic.com/
http://www.monavista.com/webboard/showthread.php?t=20811
http://www.online-tech-tips.com/windows-7/forgot-lost-administrator-password-windows-7/
http://www.piotrbania.com/all/kon-boot/
http://www.question-defense.com/2009/11/05/reset-your-windows-password-with-chntpw
http://www.sevenforums.com/general-discussion/5087-forgotten-password-workaround.html
http://www.ubuntu.com/
http://www.winvistaclub.com/t7.html
ดึงข้อมูลออกจากรูป jpg
>> ต้อง ติดตั้ง ดังนี้ http://www.php.net/manual/en/exif.installation.php
คือ
php_mbstring.dll และ
php_exif.dll
ในไฟล์ php.ini แล้ว restart apche ใหม่
แล้วใช้ Code ลักษณะนี้ ในการดึงข้อมูลภาพออกมาแสดง
//$pic = "" ;
$pic_arr = array( "c://test//silom.jpg" , "50717.jpg" , "a.jpg" , "P8988833-1.jpg" ,"P9026859-2.jpg","webboard.news.sanook.com.jpg") ;
คือ
php_mbstring.dll และ
php_exif.dll
ในไฟล์ php.ini แล้ว restart apche ใหม่
แล้วใช้ Code ลักษณะนี้ ในการดึงข้อมูลภาพออกมาแสดง
//$pic = "" ;
$pic_arr = array( "c://test//silom.jpg" , "50717.jpg" , "a.jpg" , "P8988833-1.jpg" ,"P9026859-2.jpg","webboard.news.sanook.com.jpg") ;
foreach($pic_arr as $i => $pic ) {
echo "
";
$exif_data = exif_read_data( $pic);
echo "
";
$exif_data = exif_read_data( $pic);
echo '
';
print_r($exif_data);
echo '
';
}
---------------------------------------------------------ข้อมูลอื่นๆ เช่น
http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos
http://stackoverflow.com/questions/2526304/php-extract-gps-exif-data
ASP.NET
http://weblogs.asp.net/zroiy/archive/2008/07/13/embedding-gps-coordinates-and-other-info-in-jpeg-images-with-c.aspx
Flickr , Mappr , Google Earth
http://blog.makezine.com/archive/2008/02/how-to-gps-tag-photos-fli.html
Extract GPS Data , From NOKIA forum , PHP
http://wiki.forum.nokia.com/index.php/Extract_GPS_coordinates_from_digital_camera_images_using_PHP
http://stackoverflow.com/questions/2526304/php-extract-gps-exif-data
ASP.NET
http://weblogs.asp.net/zroiy/archive/2008/07/13/embedding-gps-coordinates-and-other-info-in-jpeg-images-with-c.aspx
Flickr , Mappr , Google Earth
http://blog.makezine.com/archive/2008/02/how-to-gps-tag-photos-fli.html
Extract GPS Data , From NOKIA forum , PHP
http://wiki.forum.nokia.com/index.php/Extract_GPS_coordinates_from_digital_camera_images_using_PHP
05 April 2011
Run Java query MySQL
java File ชื่อ listtable.java
-----------------------------------------------
import java.sql.* ;
public class listtable{
public static void main(String[] args) throws Exception
{
System.out.println("OK");
// String sql = "show databases;" ;
String sql = "show tables;" ;
getdb( sql ) ;
}
public static void getdb(String sql ) throws Exception
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
String url = "jdbc:mysql://127.0.0.1:3306/database_name" ;
String user = "user" ;
String pass = "password" ;
Connection con = DriverManager.getConnection(url , user, pass) ;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql ) ;
while(rs.next() ){
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
con.close();
}
}
-------------------------------------------------------------------------
แล้ว สร้าง file run.bat ดังนี้
SET JAVA_HOME=c:\Program Files\Java\jdk1.6.0_13
set classpath=.;c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\classes12_g.jar;.\mysql-connector-java-5.1.10-bin.jar
javac listtable.java
pause
java listtable
-------------------------------------------------------------------------
โดย ใน Folder ที่เก็บ File *.java และ *.bat จะอยู่ที่เดียวกัน
และมีรายการ File ดังนี้
04/05/2011 01:41 PM
.
04/05/2011 01:41 PM
..
04/05/2011 01:25 PM 843 listtable.java
09/22/2009 04:01 PM 724,225 mysql-connector-java-5.1.10-bin.jar
04/05/2011 01:25 PM 270 run.bat
-------------------------------------------------------------------------
File mysql-connector-java-5.1.10-bin.jar เป็น file ที่อยู่ใน
path
c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\
ที่ได้รับการติดตั้ง พร้อม jdk1.6.0 _13
copy จาก
c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\mysql-connector-java-5.1.10-bin.jar
มาไว้ที่ folder ที่มี *.java *.bat
หรืออาจจะโหลดจาก web mysql ( oracle )
ที่หัวข้อ connector/j
แต่ต้องมี user password ก่อน
http://dev.mysql.com/downloads/connector/j/
---------------------------------------------------------------------------
แล้วรัน
> run.bat จะ แสดงรายการ table ในฐานข้อมูล mysql นั้น
---------------------------------------------------------------------------
-----------------------------------------------
import java.sql.* ;
public class listtable{
public static void main(String[] args) throws Exception
{
System.out.println("OK");
// String sql = "show databases;" ;
String sql = "show tables;" ;
getdb( sql ) ;
}
public static void getdb(String sql ) throws Exception
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
String url = "jdbc:mysql://127.0.0.1:3306/database_name" ;
String user = "user" ;
String pass = "password" ;
Connection con = DriverManager.getConnection(url , user, pass) ;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql ) ;
while(rs.next() ){
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
con.close();
}
}
-------------------------------------------------------------------------
แล้ว สร้าง file run.bat ดังนี้
SET JAVA_HOME=c:\Program Files\Java\jdk1.6.0_13
set classpath=.;c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\classes12_g.jar;.\mysql-connector-java-5.1.10-bin.jar
javac listtable.java
pause
java listtable
-------------------------------------------------------------------------
โดย ใน Folder ที่เก็บ File *.java และ *.bat จะอยู่ที่เดียวกัน
และมีรายการ File ดังนี้
04/05/2011 01:41 PM
04/05/2011 01:41 PM
04/05/2011 01:25 PM 843 listtable.java
09/22/2009 04:01 PM 724,225 mysql-connector-java-5.1.10-bin.jar
04/05/2011 01:25 PM 270 run.bat
-------------------------------------------------------------------------
File mysql-connector-java-5.1.10-bin.jar เป็น file ที่อยู่ใน
path
c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\
ที่ได้รับการติดตั้ง พร้อม jdk1.6.0 _13
copy จาก
c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\mysql-connector-java-5.1.10-bin.jar
มาไว้ที่ folder ที่มี *.java *.bat
หรืออาจจะโหลดจาก web mysql ( oracle )
ที่หัวข้อ connector/j
แต่ต้องมี user password ก่อน
http://dev.mysql.com/downloads/connector/j/
---------------------------------------------------------------------------
แล้วรัน
> run.bat จะ แสดงรายการ table ในฐานข้อมูล mysql นั้น
---------------------------------------------------------------------------
04 April 2011
Run Java query Oracle
Source Code
จะแสดง Table ใน Oracle ออกมา
--------------------------------------------------
import java.sql.* ;
//import oracle.jdbc.OracleDriver;
public class showtable{
public static void main(String[] args) throws Exception
{
System.out.println("OK");
String sql = "select * from tab" ;
getdb( sql ) ;
}
public static void getdb(String sql ) throws Exception
{
Class.forName("oracle.jdbc.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@192.168.1.2:1521:schemaname";
String user = "user" ;
String pass = "password" ;
Connection con = DriverManager.getConnection(url , user, pass) ;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql ) ;
while(rs.next() ){
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
con.close();
}
}
-----------------------------------------------------------------------------
run.bat
set classpath=.;c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\classes12_g.jar;
javac showtable.java
java showtable
-----------------------------------------------------------------------------
จะแสดง Table ใน Oracle ออกมา
--------------------------------------------------
import java.sql.* ;
//import oracle.jdbc.OracleDriver;
public class showtable{
public static void main(String[] args) throws Exception
{
System.out.println("OK");
String sql = "select * from tab" ;
getdb( sql ) ;
}
public static void getdb(String sql ) throws Exception
{
Class.forName("oracle.jdbc.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@192.168.1.2:1521:schemaname";
String user = "user" ;
String pass = "password" ;
Connection con = DriverManager.getConnection(url , user, pass) ;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql ) ;
while(rs.next() ){
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
con.close();
}
}
-----------------------------------------------------------------------------
run.bat
set classpath=.;c:\Program Files\Java\jdk1.6.0_13\jre\lib\ext\classes12_g.jar;
javac showtable.java
java showtable
-----------------------------------------------------------------------------
apache mod_rewrite
เอกสารภาษาไทย
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://www.scriptdd.com/webtip/apache-mod-rewrite-easy-url.html
http://forum.datatan.net/index.php/topic,377.0.html
http://www.thaiseoboard.com/index.php?topic=3675.0
http://www.dek-ac.com/d-sign2u/knowledge24-%E0%B8%97%E0%B8%B3-SEO-%E0%B9%83%E0%B8%AB%E0%B9%89-URL-%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89-Mod_Rewrite.html
http://www.siamfocus.com/content.php?slide=1&content=160
mod_rewrite สำหรับ CakePHP Framework
http://www.cakephp.in.th/index.php?topic=9.0
สำหรับ joomla
http://www.joomlathaiclub.com/joomla/basic/basic/648-test-mod-rewrite
บน Ubuntu
http://kiterminal.com/blog/content/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89-apache2-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-modrewrite-%E0%B8%9A%E0%B8%99-ubuntu-810
Debug Mode
http://kiterminal.com/blog/content/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89-apache2-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-modrewrite-%E0%B8%9A%E0%B8%99-ubuntu-810
ตัวอย่าง .htaccess
http://www.narongrit.net/download-free-mod-rewrite-code-of-narongrit-dot-net.html
บน IIS
http://www.narisa.com/forums/index.php?showtopic=24116
WordPress
http://www.autthapon.in.th/tag/mod_rewrite/
เอกสารของ Apache Httpd Server
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://www.scriptdd.com/webtip/apache-mod-rewrite-easy-url.html
http://forum.datatan.net/index.php/topic,377.0.html
http://www.thaiseoboard.com/index.php?topic=3675.0
http://www.dek-ac.com/d-sign2u/knowledge24-%E0%B8%97%E0%B8%B3-SEO-%E0%B9%83%E0%B8%AB%E0%B9%89-URL-%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89-Mod_Rewrite.html
http://www.siamfocus.com/content.php?slide=1&content=160
mod_rewrite สำหรับ CakePHP Framework
http://www.cakephp.in.th/index.php?topic=9.0
สำหรับ joomla
http://www.joomlathaiclub.com/joomla/basic/basic/648-test-mod-rewrite
บน Ubuntu
http://kiterminal.com/blog/content/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89-apache2-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-modrewrite-%E0%B8%9A%E0%B8%99-ubuntu-810
Debug Mode
http://kiterminal.com/blog/content/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89-apache2-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-modrewrite-%E0%B8%9A%E0%B8%99-ubuntu-810
ตัวอย่าง .htaccess
http://www.narongrit.net/download-free-mod-rewrite-code-of-narongrit-dot-net.html
บน IIS
http://www.narisa.com/forums/index.php?showtopic=24116
WordPress
http://www.autthapon.in.th/tag/mod_rewrite/
เอกสารของ Apache Httpd Server
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
Service Path in Windows Registry Key
เมื่้อมีการคลิกขวา
My Computer เลือก Management
แล้วเลือก Services จะเห็น Service ต่างๆ เช่น
Apache Web Server , MySQL
และในช่องจะมี field ชืื่อ path to executable
เช่น
"D:\ms4w\Apache\bin\Apache.exe" -k runservice"
Path เหล่านี้ จากการ Search ใน Google พบว่า
อยู่ที่ Registry
ดัง Link ต่อไปนี้
http://forum.soft32.com/win3/Changing-Path-Executable-Services-msc-WinXP-SP2-ftopict54633.html
อธิบายได้ว่า
อยู่ที่ Registry Key ที่ตำแหน่ง
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
เช่น
Service ชื่อ (Display Name)
Apache Web Server
จะมี Key อยู่ที่ ApacheWebServer
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ApacheWebServer
และ จะมี DisplayName= Apache Web Server
และ มี ImagePath = "D:\ms4w\Apache\bin\Apache.exe" -k runservice
ดูข้อมูลเพิ่มเติมเกี่ยวกับ Registry Key นี้ ดังนี้
http://support.microsoft.com/kb/103000
ส่วนในการเขียนโปแกรม ด้วย C# หรือโปรแกรมกลุ่ม .NET Framework เช่น VB.NET
สามารถเข้าถึง Key นี้ได้จาก
Microsoft.Win32.RegistryKey class
My Computer เลือก Management
แล้วเลือก Services จะเห็น Service ต่างๆ เช่น
Apache Web Server , MySQL
และในช่องจะมี field ชืื่อ path to executable
เช่น
"D:\ms4w\Apache\bin\Apache.exe" -k runservice"
Path เหล่านี้ จากการ Search ใน Google พบว่า
อยู่ที่ Registry
ดัง Link ต่อไปนี้
http://forum.soft32.com/win3/Changing-Path-Executable-Services-msc-WinXP-SP2-ftopict54633.html
อธิบายได้ว่า
อยู่ที่ Registry Key ที่ตำแหน่ง
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
เช่น
Service ชื่อ (Display Name)
Apache Web Server
จะมี Key อยู่ที่ ApacheWebServer
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ApacheWebServer
และ จะมี DisplayName= Apache Web Server
และ มี ImagePath = "D:\ms4w\Apache\bin\Apache.exe" -k runservice
ดูข้อมูลเพิ่มเติมเกี่ยวกับ Registry Key นี้ ดังนี้
http://support.microsoft.com/kb/103000
ส่วนในการเขียนโปแกรม ด้วย C# หรือโปรแกรมกลุ่ม .NET Framework เช่น VB.NET
สามารถเข้าถึง Key นี้ได้จาก
Microsoft.Win32.RegistryKey class
การ Set Mod_rewrite ใน CodeIgniter , Apache Web Server
Set mod_rewrite ดังนี้
http://codeigniter.com/wiki/mod_rewrite/
โดย
ปรับแก้ Apache2.2/conf/httpd.conf
แก้ประมาณบรรทัดที่ 196
(ดูได้ดังนี้ )
C:\AppServ\Apache2.2\conf>type httpd.conf | findstr /i /n rewrite
196:LoadModule rewrite_module modules/mod_rewrite.so
โดยเอา # หน้าบรรทัดออก ถ้ามี# อยู่
ต้องสร้าง .htaccess ไว้ที่ path บนสุดของ CodeIgniter ( ถ้า unzip มาใหม่ๆจะเห็น folder ที่ยังไม่มี .htaccss )
RewriteBase / จะเป็น Path ของเราเองเช่น
RewriteBase /CodeIgniter_2.0.1/
----------------
http://codeigniter.com/wiki/mod_rewrite/
โดย
ปรับแก้ Apache2.2/conf/httpd.conf
แก้ประมาณบรรทัดที่ 196
(ดูได้ดังนี้ )
C:\AppServ\Apache2.2\conf>type httpd.conf | findstr /i /n rewrite
196:LoadModule rewrite_module modules/mod_rewrite.so
โดยเอา # หน้าบรรทัดออก ถ้ามี# อยู่
ต้องสร้าง .htaccess ไว้ที่ path บนสุดของ CodeIgniter ( ถ้า unzip มาใหม่ๆจะเห็น folder ที่ยังไม่มี .htaccss )
RewriteBase / จะเป็น Path ของเราเองเช่น
RewriteBase /CodeIgniter_2.0.1/
แล้ว แก้ไข / config.php ไฟล์
28 $config['index_page'] = '';
48 $config['uri_protocol'] = 'QUERY_STRING' ;
160 $config['enable_query_strings'] = TRUE;
เมื่อติดตั้งแล้ว restart apache2.2 ใหม่
แล้วลองรันดูจะเห็นว่าไม่ต้องมี index.php แล้ว
แต่ว่า $_GET จะได้เป็น
Array ( [/auth/check] => )
ซึ่งจะพบว่า ไม่สามารถใช้งาน $_GET ได้
(ซึ่งก่อนหน้าติดตั้ง mod_rewrite และใช้ .htaccess จะยังสามารถใช้ $_GET ได้ปกติ
แต่ url จะเป็น
-------------------------------------------------------------------------------------
หากต้องการ $_GET ใน Controller ให้ สร้าง $_GET โดย Parse QueryString ดังนี้
จาก link จะเห็นว่ามีเขียนว่า 100%
นั่นคือใช้
parse_str(substr(strrchr($_SERVER['REQUEST_URI'], "?"), 1), $_GET);ตัวอย่างเช่น ใน Controller auth
public function check()
{
print_r($_GET);
echo "
";
";
print_r($_SERVER['REQUEST_URI']);
parse_str($_SERVER['REQUEST_URI'], $_GET);
echo "
";
";
print_r($_GET);
parse_str(substr(strrchr($_SERVER['REQUEST_URI'], "?"), 1), $_GET);
echo "
";
";
print_r($_GET);
}
จะได้ผล ดังนี้
Array ( [/auth/check] => )
/codeIgniter_2.0.1/auth/check?user=bb&pass=vc
Array ( [/codeIgniter_2_0_1/auth/check?user] => bb [pass] => vc )
Array ( [user] => bb [pass] => vc )
/codeIgniter_2.0.1/auth/check?user=bb&pass=vc
Array ( [/codeIgniter_2_0_1/auth/check?user] => bb [pass] => vc )
Array ( [user] => bb [pass] => vc )
=================================================================
NOTE:
HTML Form ที่เรียกใช้ URL จะเป็นดังนี้
กรณี ไม่ได้ใช้ mod_rewrite
กรณีมีการติดตั้ง mod_rewrite และ แก้ไข config.php แล้ว
เครื่องมือ Manage งาน
MindMap สำหรับผู้ที่ลืมบ่อยๆ หรืองานยุ่งมาก
FreeMind
FreePlan
คุณสมบัติโดยรวมของทั้งสองโปรแกรม
ArgoUML
FreeMind
FreePlan
คุณสมบัติโดยรวมของทั้งสองโปรแกรม
- ต่างกันไม่มาก เช่น ShortKey ต่างๆ เหมือนกัน อาจมาจาก SourceCode เริ่มต้นเดียวกัน
- มีส่วนที่ทำ Encrypt โดยต้องป้อนรหัสก่อนเข้าถึงข้อมูลได้ แต่ต้องเลือกตั้งแต่ตอนสร้าง Map ใหม่
- ตัวโปรแกรมมีขนาดเล็ก
- รันได้บนหลาย OS เนื่องจากเขียนจากภาษา Java
- สำหรับบน Windows มีทั้งแบบ Install (*.exe) และ แบบ Zip File ที่รันได้โดยไม่ต้อง Install
- ต้องมีการติดตั้ง Java Runtime (JRE ) ก่อน
- Key หลักๆที่ใช้ได้แก่ Enter , Insert , และ คีย์ลูกศรต่างๆ
ArgoUML
- http://argouml.tigris.org/
- เป็นโปรแกรม UML ที่รองรับ UML1.4
- มีหลายคุณสมบัติที่น่าสนใจ
- ข้อมูลแบ่งเป็น ส่วนของ Model และ View ตามแบบ MVC ซึ่งจะเรียกว่า Model และ Diagram
- การลบ ข้อมูลจะลบได้สองแบบคือ ลบจาก Model หรือ ลบจาก Diagram
- ตัวโปรแกรมมีขนาดเล็ก
- รันได้บนหลาย OS เนื่องจากเขียนจากภาษา Java
- สำหรับบน Windows มีทั้งแบบ Install (*.exe) และ แบบ Zip File ที่รันได้โดยไม่ต้อง Install
- ต้องมีการติดตั้ง Java Runtime (JRE ) ก่อน
- ข้อด้อย
- ไม่สามารถ Copy/Past Diagram ต่างๆได้
- ไม่มี Undo
- http://staruml.sourceforge.net/en/
- มีหลายคุณสมบัติที่ดีมาก
- มีแบ่งระหว่าง Model และ Diagram
- ตัวโปรแกรม คาดว่าน่าจะเขียนจาก Delphi
- ข้อด้อย
- หยุดการพัฒนาเพิ่มเติมตั้งแต่ ปี 2008
- รันได้บน Windows เท่าัันั้น
03 April 2011
ใช้ $_GET ใน CodeIgniter PHP Framework
การใช้ $_GET
เพื่อใช้ url แบบ http://myserver.com/controller/method/?data1=10&data2=20&data3=30&data4=test
http://stackoverflow.com/questions/5361032/getting-get-data-in-codeigniter-while-using-request-uri
หรือ อ่าน ส่วนล่างๆของ ฟอรัมนี้
http://codeigniter.com/forums/viewthread/68698/
และนี่
http://stackoverflow.com/questions/2171185/codeigniter-php-framework-need-to-get-query-string
------------------------------------------------
อีกแบบ คือ enable query string , คือ ทั้ง controller / method จะกลาย เป็น parameter $_GET ทั้งหมด
http://codeigniter.com/user_guide/general/urls.html
เพื่อใช้ url แบบ http://myserver.com/controller/method/?data1=10&data2=20&data3=30&data4=test
http://stackoverflow.com/questions/5361032/getting-get-data-in-codeigniter-while-using-request-uri
หรือ อ่าน ส่วนล่างๆของ ฟอรัมนี้
http://codeigniter.com/forums/viewthread/68698/
และนี่
http://stackoverflow.com/questions/2171185/codeigniter-php-framework-need-to-get-query-string
------------------------------------------------
อีกแบบ คือ enable query string , คือ ทั้ง controller / method จะกลาย เป็น parameter $_GET ทั้งหมด
http://codeigniter.com/user_guide/general/urls.html
01 April 2011
สร้าง Theme , รายการ PlugIn ของ WordPress
สอนการทำ Theme ของ WordPress
http://www.designil.com/wordpress-theme-design-2011-slides.html
http://www.mekz.net/make-your-own-wordpress-theme-by-cssez/
http://www.thaiseoboard.com/index.php?topic=44795.0
http://www.divland.com/blog/2008/10/19/create-your-wordpress-theme-lesson1/
http://nattawut.com/2009/04/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-wordpress-theme-1/
http://supachai.com/present/?p=1266
Plug-In ของ WordPress
http://www.enjoyday.net/wordpress-theme-plugin.
Free Theme อื่นๆ
http://pongcp.wordpress.com/2011/02/17/%E0%B8%A1%E0%B8%B2%E0%B9%81%E0%B8%A5%E0%B9%89%E0%B8%A7%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A-free-wordpress-theme-%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%AA%E0%B8%AD%E0%B8%87/
Free Theme แบ่งตามว่า จะเอาไปใช้งานอะไร
http://www.danghomohox.com/category/opensource/wordpress-theme
http://www.designil.com/wordpress-theme-design-2011-slides.html
http://www.mekz.net/make-your-own-wordpress-theme-by-cssez/
http://www.thaiseoboard.com/index.php?topic=44795.0
http://www.divland.com/blog/2008/10/19/create-your-wordpress-theme-lesson1/
http://nattawut.com/2009/04/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-wordpress-theme-1/
http://supachai.com/present/?p=1266
Plug-In ของ WordPress
http://www.enjoyday.net/wordpress-theme-plugin.
Free Theme อื่นๆ
http://pongcp.wordpress.com/2011/02/17/%E0%B8%A1%E0%B8%B2%E0%B9%81%E0%B8%A5%E0%B9%89%E0%B8%A7%E0%B8%84%E0%B8%A3%E0%B8%B1%E0%B8%9A-free-wordpress-theme-%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%AA%E0%B8%AD%E0%B8%87/
Free Theme แบ่งตามว่า จะเอาไปใช้งานอะไร
http://www.danghomohox.com/category/opensource/wordpress-theme
สร้าง Graph แท่ง , CAPCHA ,PDF บน PHP
มีดังนี้ ครับ
http://www.basic-skill.com/category.php?cat_title=%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%20Graph%20%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89%20JPGraph&cat_id=49&sec_id=2
http://www.basic-skill.com/content.php?cont_title=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%A3%E0%B8%B2%E0%B8%9F%E0%B9%81%E0%B8%97%E0%B9%88%E0%B8%87%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%20%E0%B9%86%20%E0%B9%81%E0%B8%97%E0%B9%88%E0%B8%87&cont_id=361&sec_id=2
http://www.thaicreate.com/free-web-script/php-charts.html
CAPCHA ด้วย PHP
http://share.psu.ac.th/blog/siripong/1131
http://thebggaro.wordpress.com/tag/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-captcha-php/
http://thebggaro.wordpress.com/2010/10/24/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-captcha-%E0%B8%AA%E0%B8%B8%E0%B9%88%E0%B8%A1%E0%B9%80%E0%B8%A5%E0%B8%82%E0%B9%83%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%9E-%E0%B8%94%E0%B9%89%E0%B8%A7/
PDF ภาษาไทย
http://kiterminal.com/blog/content/generate-%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%AA%E0%B8%B2%E0%B8%A3-pdf-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-php
http://www.basic-skill.com/category.php?cat_title=%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%20Graph%20%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89%20JPGraph&cat_id=49&sec_id=2
http://www.basic-skill.com/content.php?cont_title=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%A3%E0%B8%B2%E0%B8%9F%E0%B9%81%E0%B8%97%E0%B9%88%E0%B8%87%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%20%E0%B9%86%20%E0%B9%81%E0%B8%97%E0%B9%88%E0%B8%87&cont_id=361&sec_id=2
http://www.thaicreate.com/free-web-script/php-charts.html
CAPCHA ด้วย PHP
http://share.psu.ac.th/blog/siripong/1131
http://thebggaro.wordpress.com/tag/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-captcha-php/
http://thebggaro.wordpress.com/2010/10/24/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-captcha-%E0%B8%AA%E0%B8%B8%E0%B9%88%E0%B8%A1%E0%B9%80%E0%B8%A5%E0%B8%82%E0%B9%83%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%9E-%E0%B8%94%E0%B9%89%E0%B8%A7/
PDF ภาษาไทย
http://kiterminal.com/blog/content/generate-%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%AA%E0%B8%B2%E0%B8%A3-pdf-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-php
Link วิธีติดตั้ง PHP 5.3 ให้กับ Apache Web Server (on windows)
พบปัญหาการใช้งาน AppServe ( http://www.appservnetwork.com ) บน Windows
คือไม่มี Package PHP5.3 พบแต่ PHP 5.2
บาง PHP Framework รองรับการทำงานเฉพาะ PHP5.3 ขึ้นไป
จึงต้องหา Solution ในการติดตั้ง PHP5.3 บน Apache ที่ได้ติดตั้ง ด้วย appserv ไว้แล้ว
พบว่า ไกล้เคียงที่สุดคือ Link ต่อไปนี้
http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/#installphp
ซึ่ง Link นี้จะช่วยให้เข้าใจ การติดตั้ง Apache + PHP บน สภาพแวดล้อม Windows ด้วย
รวมทั้ง หากติดตั้งใน Linux Server CentOS จะมีการติดตั้ง PHP Package มาตรฐานมาให้
ซึ่งจะเป็น PHP5.1 ซึ่งไม่ สามารถใช้กับ บาง PHP Framework ได้ จึงอาจต้องติดตั้งใหม่
ซึ่งจากตัวอย่างนี้ จะเป็นแนวทางได้ แม้จะไม่ทั้งหมด
คือไม่มี Package PHP5.3 พบแต่ PHP 5.2
บาง PHP Framework รองรับการทำงานเฉพาะ PHP5.3 ขึ้นไป
จึงต้องหา Solution ในการติดตั้ง PHP5.3 บน Apache ที่ได้ติดตั้ง ด้วย appserv ไว้แล้ว
พบว่า ไกล้เคียงที่สุดคือ Link ต่อไปนี้
http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/#installphp
ซึ่ง Link นี้จะช่วยให้เข้าใจ การติดตั้ง Apache + PHP บน สภาพแวดล้อม Windows ด้วย
รวมทั้ง หากติดตั้งใน Linux Server CentOS จะมีการติดตั้ง PHP Package มาตรฐานมาให้
ซึ่งจะเป็น PHP5.1 ซึ่งไม่ สามารถใช้กับ บาง PHP Framework ได้ จึงอาจต้องติดตั้งใหม่
ซึ่งจากตัวอย่างนี้ จะเป็นแนวทางได้ แม้จะไม่ทั้งหมด
25 March 2011
Joomla multi-lanuage
การ set joomla multi language
http://docs.joomla.org/Adding_multi-language_support#Multi-Lingual_content_in_Joomla.21_1.5
ใช้ joomfish น่ะครับ
http://killthewhat.com/joomla-tutorial/instruction-joomfish/
http://www.softwaresiam.com/viewthread.php?tid=40
ข้อมูลเพิ่มเติมเกี่ยวกับ i18n
http://docs.joomla.org/Adding_multi-language_support#Multi-Lingual_content_in_Joomla.21_1.5
ใช้ joomfish น่ะครับ
http://killthewhat.com/joomla-tutorial/instruction-joomfish/
http://www.softwaresiam.com/viewthread.php?tid=40
ข้อมูลเพิ่มเติมเกี่ยวกับ i18n
i18n
24 March 2011
Apache web server with SSL , mod_ssl
ข้อมูลการติดตั้ง OpenSSL บน Apache WebServer (httpd server ) บน Windows
Thai Admin
http://www.thaiadmin.org/board/index.php?topic=48282.0
วิธีการ สร้าง Certificate .. ข้อมูลเก่าหน่อย
http://www.neilstuff.com/apache/apache2-ssl-windows.htm
OpenSSL มีทั้งบน Linux และ Windows
Windows Binary
http://www.openssl.org/related/binaries.html
การสร้าง Certificate / Key บน Apache Web Server โดยใช้กับ OpenSSL
บน Server Ubuntu
https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html
Apache2 :: mod_ssl document
http://httpd.apache.org/docs/2.0/mod/mod_ssl.html
Thai Admin
http://www.thaiadmin.org/board/index.php?topic=48282.0
วิธีการ สร้าง Certificate .. ข้อมูลเก่าหน่อย
http://www.neilstuff.com/apache/apache2-ssl-windows.htm
OpenSSL มีทั้งบน Linux และ Windows
Windows Binary
http://www.openssl.org/related/binaries.html
การสร้าง Certificate / Key บน Apache Web Server โดยใช้กับ OpenSSL
บน Server Ubuntu
https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html
Apache2 :: mod_ssl document
http://httpd.apache.org/docs/2.0/mod/mod_ssl.html
23 March 2011
CScript.exe อ่าน stdin , เขียน stdout
ทำโดย
http://msdn.microsoft.com/en-us/library/skwz6sz4(v=vs.85).aspx
ตั้งชื่อไฟล์ เป็น *.vbs
แล้ว รันด้วย cscript.exe abc.vbs
เช่น
c:\> dir | cscript.exe showlinenum.vbs
http://msdn.microsoft.com/en-us/library/skwz6sz4(v=vs.85).aspx
ตั้งชื่อไฟล์ เป็น *.vbs
แล้ว รันด้วย cscript.exe abc.vbs
เช่น
c:\> dir | cscript.exe showlinenum.vbs
17 March 2011
update worm
Blog of Worm , Knowledge
http://blogs.technet.com/b/mmpc/archive/2011/03/16/win32-renocide-the-aftermath.aspx
http://blogs.technet.com/b/mmpc/archive/2011/03/16/win32-renocide-the-aftermath.aspx
11 March 2011
Integrate Java with C++ with JNI
JNI Tutorial from These ..
JavaWorld http://www.javaworld.com/javatips/jw-javatip17.html
IBM - http://www.ibm.com/developerworks/java/tutorials/j-jni/
Oraclle - http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html
DevArtilcles (1/2) - http://www.devarticles.com/c/a/Java/Interacting-With-C-From-Java-With-JNI-Part-1/
DevArticles (2/2) - http://www.devarticles.com/c/a/Java/Interfacing-With-C-From-Java-With-JNI-Part-2/
http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/cpp.html
http://home.pacifier.com/~mmead/cs510jip/jni/
JNI Definition from Wikipedia - http://en.wikipedia.org/wiki/Java_Native_Interface
JavaWorld http://www.javaworld.com/javatips/jw-javatip17.html
IBM - http://www.ibm.com/developerworks/java/tutorials/j-jni/
Oraclle - http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html
DevArtilcles (1/2) - http://www.devarticles.com/c/a/Java/Interacting-With-C-From-Java-With-JNI-Part-1/
DevArticles (2/2) - http://www.devarticles.com/c/a/Java/Interfacing-With-C-From-Java-With-JNI-Part-2/
http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/cpp.html
http://home.pacifier.com/~mmead/cs510jip/jni/
JNI Definition from Wikipedia - http://en.wikipedia.org/wiki/Java_Native_Interface
08 March 2011
MSWord : วิธีสร้าง Table of Content ข้ามหลายๆไฟล์
ตอนนี้ ทำรายงานอยู่ครับ
ไฟล์ใหญ่มาก
แบ่งเป็นหลายๆไฟล์
หาวิธีการ ทำ สารบัญ อยู่ให้รวมกันที่เดียว
ค้นเจอข้อมูลดังนี้ ยังไม่ได้ทดลองนะครับ
ข้อมูล ภาษาอังกฤษครับ
ไฟล์ใหญ่มาก
แบ่งเป็นหลายๆไฟล์
หาวิธีการ ทำ สารบัญ อยู่ให้รวมกันที่เดียว
ค้นเจอข้อมูลดังนี้ ยังไม่ได้ทดลองนะครับ
ข้อมูล ภาษาอังกฤษครับ
- http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=148
- http://www.techsupportforum.com/forums/f57/table-of-contents-for-multiple-word-files-339210.html
- http://addbalance.com/usersguide/complex_documents.htm
อันนี้อื่นๆ เกี่ยวกับวิธีใช้ MSWord
07 March 2011
วิธีการ run cmd.exe / notepad.exe ด้วย Admin บน Vista
จาก
http://www.howtogeek.com/howto/windows-vista/sudo-for-windows-vista/
พิมพ์ที่ start ช่อง Run
cmd.exe ตามด้วย Ctrl + Shift + Enter
notepad.exe ตามด้วย Ctrl + Shift +Enter
http://www.howtogeek.com/howto/windows-vista/sudo-for-windows-vista/
พิมพ์ที่ start ช่อง Run
cmd.exe ตามด้วย Ctrl + Shift + Enter
notepad.exe ตามด้วย Ctrl + Shift +Enter
Subscribe to:
Posts (Atom)
