Archives

You are currently viewing archive for January 2008
Category: Web dev
Posted by: hajime osako
MySQLクイック・リファレンス
mysql> GRANT ALL PRIVILEGES ON *.* TO user1@"%"
    ->  IDENTIFIED BY 'パスワード' WITH GRANT OPTION;
mysql>  GRANT ALL PRIVILEGES ON *.* TO user1@localhost
    ->  IDENTIFIED BY 'パスワード' WITH GRANT OPTION;
mysql>  FLUSH PRIVILEGES;
Category: Web dev
Posted by: hajime osako
Category: MS tips
Posted by: hajime osako

01/22: Mysql debug

Category: Web dev
Posted by: hajime osako
Category: Linux tips
Posted by: hajime osako
秒間隔でコマンドを繰り返し実行し続ける

$ while true; do date; netstat -i; sleep 1; clear; done;
$ watch --interval 1 date
Category: Web dev
Posted by: hajime osako
Category: Web dev
Posted by: hajime osako
Category: Study
Posted by: hajime osako
Types of Subqueries

Scalar subqueires return a single value.
Row subqueries return a single row.
Colulmn subqueires return a single column.
Table subqueires return a result set.


Multiple table UPDATE and DELETE statements

UPDATE t1, t2 SET t1.name = t2.name WHERE t1.id = t2.id;
DELETE t1 FROM t1, t2 WHERE t1.id = t2.id;
DELETE FROM t1 USING t1, t2 WHERE t1.id = t2.id;

The ODER BY and LIMIT clauses are not allowed for multiple table UPDATE and DELETE statements.


Using ALL, ANY, and SOME

SELECT Name, Population FROM Country WHERE Population < ALL (SELECT AVG(Population) FROM Country GROUP BY Continent) ORDER BY Name;

ANY and SOME may be equivalent to IN except IN can't be combined with any comparison operators such as '=' or '><'.
NOT IN is an alias of '>< ALL'.


Comparison Using Row Subqueries

The row subquery must return a single row.

SELECT City.Name FROM City WHERE [ROW](City.ID, City.CountryCode) = (SELECT Capital, Code FROM Country WHERE Name='Finland');

* ROW is optional.

Row constructors can be used only for equality comparison using the = operator.

Category: Linux tips
Posted by: hajime osako

01/11: Apache LDAP

Category: Web dev
Posted by: hajime osako
Category: Web dev
Posted by: hajime osako
Category: MS tips
Posted by: hajime osako
SpeedGuide.net :: Windows 2k/XP Tweaks
Automatic Updates
Computer Browser
Error Reporting Service
Help and Support
Indexing Service
Messenger (pop-up spam vulnerability)
NetMeeting Remote Desktop Sharing
Performance Logs and Alerts
Protected storage (stores passwords and enables ato-complete)
Remote Registry (remote access to your registry)
Routing and Remote Access (enables dial-in routing to your computer)
Secondary Logon
Task Scheduler
Category: Linux tips
Posted by: hajime osako
Category: N800
Posted by: hajime osako
1. Install becomeroot
http://eko.one.pl/maemo/dists/mistral/user/binary-armel/becomeroot_0.1-2_armel.deb 

2. Copy Japanese ttf fonts into /usr/share/fonts
   then fc-cache -fv /usr/share/fonts

FM Radio is already the installable application list.

Set up phone connection (Bluetooth)
Create a packet data connection:
   Access point name: 3netaccess
   Dial-up number: *99#
   User name: (blank)
   Password: (blank)