1. Start -> Run -> cmd <-|
2. Go to drive by command drive_letter: for example g: <-|
3. Type attrib -s -h -r /s /d <-|
Comment
arrtib = attribute command
/s = file
/d = directory
-s = system file
-h = hidden file
-r = read only file
Story by http://hpitcha.wordpress.com/2010/12/02/shortcut-virus/
วันพุธที่ 7 ธันวาคม พ.ศ. 2554
วันศุกร์ที่ 26 สิงหาคม พ.ศ. 2554
cxGrid : How to create a Level/View programmatically at runtime
// Delphi code
var
Grid: TcxGrid;
Level: TcxGridLevel;
View: TcxGridDBTableView;
...
// Creates a Grid instance
Grid := TcxGrid.Create(SomeOwner);
Grid.Parent := SomeParent;
// Creates a Level
Level := Grid.Levels.Add;
Level.Name := 'SomeLevelName';
// Creates a View
View := Grid.CreateView(TcxGridDBTableView) as TcxGridDBTableView;
View.Name := 'SomeViewName';
// ... and binds it to the Level
Level.GridView := View;
// Hooks up the View to the data
View.DataController.DataSource := SomeDataSource;
// ... and creates all columns
View.DataController.CreateAllItems;
end;Copy from : http://www.devexpress.com/Support/Center/KB/p/A295.aspx
วันอาทิตย์ที่ 14 สิงหาคม พ.ศ. 2554
SQL Command Reference
SQL INNER JOIN
The INNER JOIN keyword return rows when there is at least one match in both tables.
SQL INNER JOIN Syntax
SELECT column_name(s)
FROM table_name1
INNER JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: INNER JOIN is the same as JOIN.
--------------------------------------------------------------------------------------------------------------
SQL LEFT JOIN Keyword
The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2).
SQL LEFT JOIN Syntax
SELECT column_name(s)
FROM table_name1
LEFT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: In some databases LEFT JOIN is called LEFT OUTER JOIN.
--------------------------------------------------------------------------------------------------------------
SQL RIGHT JOIN Keyword
The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1).
SQL RIGHT JOIN Syntax
SELECT column_name(s)
FROM table_name1
RIGHT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: In some databases RIGHT JOIN is called RIGHT OUTER JOIN.
--------------------------------------------------------------------------------------------------------------
SQL FULL JOIN Keyword
The FULL JOIN keyword return rows when there is a match in one of the tables.
SQL FULL JOIN Syntax
SELECT column_name(s)
FROM table_name1
FULL JOIN table_name2
ON table_name1.column_name=table_name2.column_name
--------------------------------------------------------------------------------------------------------------
Source : http://www.w3schools.com/sql/default.asp
The INNER JOIN keyword return rows when there is at least one match in both tables.
SQL INNER JOIN Syntax
SELECT column_name(s)
FROM table_name1
INNER JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: INNER JOIN is the same as JOIN.
--------------------------------------------------------------------------------------------------------------
SQL LEFT JOIN Keyword
The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2).
SQL LEFT JOIN Syntax
SELECT column_name(s)
FROM table_name1
LEFT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: In some databases LEFT JOIN is called LEFT OUTER JOIN.
--------------------------------------------------------------------------------------------------------------
SQL RIGHT JOIN Keyword
The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1).
SQL RIGHT JOIN Syntax
SELECT column_name(s)
FROM table_name1
RIGHT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
PS: In some databases RIGHT JOIN is called RIGHT OUTER JOIN.
--------------------------------------------------------------------------------------------------------------
SQL FULL JOIN Keyword
The FULL JOIN keyword return rows when there is a match in one of the tables.
SQL FULL JOIN Syntax
SELECT column_name(s)
FROM table_name1
FULL JOIN table_name2
ON table_name1.column_name=table_name2.column_name
--------------------------------------------------------------------------------------------------------------
Source : http://www.w3schools.com/sql/default.asp
Delphi Trick
Hot Key
F12 : switch before Code and Design work space.
CTRL + F9 : Compile Source Code.
Variable
Char Type : use single Quote ' '
#number for get char from int or chr(number) function
Component
cxGrid : show Nevigator Tools Bar => OptionView->Navigator
cxGrid : Show Detail Tab Level => Properties -> RootLevelOptions -> DetailTabPosition
cxButton : Picture Button => Glyph
Programer Trick
Property : prop_name : type read func_name write proced_name;
F12 : switch before Code and Design work space.
CTRL + F9 : Compile Source Code.
Variable
Char Type : use single Quote ' '
#number for get char from int or chr(number) function
Component
cxGrid : show Nevigator Tools Bar => OptionView->Navigator
cxGrid : Show Detail Tab Level => Properties -> RootLevelOptions -> DetailTabPosition
cxButton : Picture Button => Glyph
Programer Trick
Property : prop_name : type read func_name write proced_name;
วันอังคารที่ 2 สิงหาคม พ.ศ. 2554
FreeBSD Apache,PHP,MySQL UTF-8 support
httpd.conf:
=============
AddCharset UTF-8 .utf8
AddDefaultCharset UTF-8
php.ini
===============
default_charset = "utf-8"
my.cnf
================
character-set-server=utf8
default-collation=utf8_unicode_ci
ที่มา : http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=16348
=============
AddCharset UTF-8 .utf8
AddDefaultCharset UTF-8
php.ini
===============
default_charset = "utf-8"
my.cnf
================
character-set-server=utf8
default-collation=utf8_unicode_ci
ที่มา : http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=16348
วันพุธที่ 8 มิถุนายน พ.ศ. 2554
กู้ Grub Loader เมื่อ Grub Menu ไม่ขึ้น
1. Boot Ubuntu Live CD
2. Open Terminal
3. sudo -i
4. mount /dev/your_ubuntu_partition /mnt
5. grub-install --root-directory=/mnt/ /dev/your_HDD_Device
6. shutdown -r now
7. if your menu doesn't correct
go to synaptic and then install grub-pc for reconfig your boot menu again
and restart for finish.
8. if you have BSD OS. /boot/grub/grub.cfg require editing. see example on referlink
referlink : http://www.gggcomputer.com/index.php?topic=2388.0;wap2
2. Open Terminal
3. sudo -i
4. mount /dev/your_ubuntu_partition /mnt
5. grub-install --root-directory=/mnt/ /dev/your_HDD_Device
6. shutdown -r now
7. if your menu doesn't correct
go to synaptic and then install grub-pc for reconfig your boot menu again
and restart for finish.
8. if you have BSD OS. /boot/grub/grub.cfg require editing. see example on referlink
referlink : http://www.gggcomputer.com/index.php?topic=2388.0;wap2
วันพุธที่ 25 พฤษภาคม พ.ศ. 2554
Interesting FreeBSD Link
FreeBSD Software Raid : Raidhttp://www.schmut.com/howto/freebsd-software-raid-howto
FreeBSD Thai forums : www.thaibsd.com
FreeBSD Thai forums : www.thaibsd.com
สมัครสมาชิก:
บทความ (Atom)