bzip2 㨠xz ã®æ¯è¼
root@sv tmp]# /usr/bin/time -v xz -9 youme-20140223-11hour.pcap Command being timed: "xz -9 youme-20140223-11hour.pcap" User time (seconds): 574.53 System time (seconds): 2.16 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 9:37.74 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 2759904 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 1 Minor (reclaiming a frame) page faults: 170496 Voluntary context switches: 20 Involuntary context switches: 4595 Swaps: 0 File system inputs: 1054840 File system outputs: 446224 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 [root@sv tmp]# /usr/bin/time -v xz youme-20140223-11hour.pcap Command being timed: "xz youme-20140223-11hour.pcap" User time (seconds): 436.28 System time (seconds): 1.54 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 7:18.77 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 384224 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 4 Minor (reclaiming a frame) page faults: 24048 Voluntary context switches: 12 Involuntary context switches: 4809 Swaps: 0 File system inputs: 1030472 File system outputs: 442800 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 [root@sv tmp]# /usr/bin/time -v xz -6 youme-20140223-11hour.pcap Command being timed: "xz -6 youme-20140223-11hour.pcap" User time (seconds): 471.36 System time (seconds): 3.86 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 7:58.38 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 384512 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 4 Minor (reclaiming a frame) page faults: 20501 Voluntary context switches: 83 Involuntary context switches: 9157 Swaps: 0 File system inputs: 1120024 File system outputs: 475480 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 [root@sv tmp]# /usr/bin/time -v bzip2 -9 youme-20140223-11hour.pcap Command being timed: "bzip2 -9 youme-20140223-11hour.pcap" User time (seconds): 68.78 System time (seconds): 0.46 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 1:09.45 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 28176 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 2 Minor (reclaiming a frame) page faults: 1792 Voluntary context switches: 5 Involuntary context switches: 92 Swaps: 0 File system inputs: 200 File system outputs: 480072 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0
mysqli ã®ã©ããã¯ã©ã¹ãæ¸ãã
prepare(ããªãã¢ãã¹ãã¼ãã¡ã³ã)ã©ããããã¬ã¼ã¹ãã«ãããªãã«ããã°ã©ãã¼ãSQLãæ¸ããªããã°ãªããªãæ社ã®èªç§°ãã¬ã¼ã ã¯ã¼ã¯()ã«è¾æãã¦ãナントカãããªã¹ã¹ã¡ã® MDB2 ã試ããã MySQL-4.1.x ã§ã¯ã©ãã対å¿ãã¦ããªãããã§ãã¨ã¦ãæ²ããç®ã«éã£ã¦ãã¾ãã¾ããã
ããã«PDOããã¾ãã¡ãªè©å¤ãç®ã«ä»ããã®ã§ãä»æ¹ãªãmysql()ã使ãã¹ãããªããã¦ããã¨ãããmysqli()ãªããã®ãphpããã¥ã¢ã«ã§è¦ã¤ããã®ã§ã使ã£ã¦ã¿ããã¨ã«ãã¾ããã
ã¨ãããï¼ãã¤ãã£ãã«prepareåºæ¥ãã®ã¯ããããã©ãprepare()ã®åã«å¤ã®åããã¤ã³ãããªãã¨ãããªããfetch()ã®åã«å¤ãå
¥ããå¤æ°ããã¤ã³ãããªãã¨ãããªããããã ãé¢åãªã®ã«ãååä»ããã«ãã¼ã使ããªãããã£ãã¼é¢åãããç¸ããããã
æ¢ã« MDB2 ã使ãã¤ããã§ååä»ããã«ãã¼ã®åæã§ã¯ã¨ãªã¼ãªã¹ããã¤ãã£ã¦ãã¾ã£ã¦ããã
ã¨ããããã§ä»æ¹ãªã myqli ãååä»ããã«ãã¼ã£ã½ã使ãåæã®åºæ¥ãã©ããã¯ã©ã¹ãæ¸ãã¾ããã
ã¾ã å
¨ç¶ä½¿ã£ã¦ããªãã®ã§ããã°ãããã ããããæ©è½çã«ã足ãã¦ããªãã§ãããããæä½éåãããã«ã¯ãªã£ã¦ããã¯ãã§ãã
ãã§ãä¾ã«ãã£ã¦ä¾ã®ãã¨ããã©ã¤ã»ã³ã¹è¡¨è¨ã¯ãªããèä½æ¨©ã¯ç§ã«ãããã³ãããã¦ä½¿ãã®ã¯èªç±ã ããé å¸ãã¦ãããã¯ããªãã®ã§ãã
ãµã³ãã«ã³ã¼ã
<?php require_once('YamaDB.class.php'); $db = new YamaDB( array( 'host' => 'localhost', 'user' => 'username', 'passsword' => 'passwd', 'db_name' => 'dbname', 'port' => 5432, 'charset' => 'ujis',, 'socket' => '/tmp/my.sock') ); $sql = " SELECT server_id as id, count(*) as calls, sum(Price) as price "; $sql .= "FROM cdr WHERE End_tm >= :startDate AND End_tm < :endDate "; $sql .= "AND server_id = :serverId "; $sql .= "GROUP BY server_id ORDER BY server_id asc"; $types = array( 'startDate' => 's', 'endDate' => 's', 'serverId' => 'i' ); $vars = array( 'serverId' => 6800002345, 'startDate' => '2012-04-05 12:00:00', 'endDate' => '2012-04-06 00:00:00' ); try { $db->prepare( $sql, $types, $vars ); $db->execute(); $res = $db->fetch(); } catch( Exception $e ) { die( $e->getMessage() ); }
- å¾ã§èªãï¼å½ããåã ãã©åããããªã®ãããã¤ãããã¾ããããã£ããã£ããå¿ãã¦ããã©ãä¸ã®ä¸çã«ã¯MDB2ã§è§£æ±ºã§ãã話ãªãã ããã
è¨å®ã®ããã ãã ã£ãã®ããªï¼MDB2
Androidå ¥éã®å¾©ç¿ã¡ã¢
新春!androidを1からやってみる勉強会<第3回>@東京・半蔵門 : ATNDã§ç¿ã£ããã¨ã®å¾©ç¿ã§ãã
- cf. adakoda.com -
- ããã©ãããã¨æã£ã¦å
¨é¨ã¢ãããã¼ããããèµ·åããªããªã£ããã¨ã©ã¼ãã°ãã¤ããéãã【Android開発】EclipseのAndroid SDKをアップデートする方法
- Android ã ããã¢ãããã¼ãããã¨ããã²ã¨ã¤ãã¤ã¢ãããã¼ããããï¼ããä¸åº¦usbãã復帰ãããã
SDKã®ã¤ã³ã¹ãã¼ã«ã¨ã»ããã¢ãã
- C:\android 以ä¸ã«usbããï¼ã¤ã®ãã©ã«ããã³ãã¼
- pleiades/eclipse/eclipse.exe ãèµ·åãã
- eclipse â ã¦ã£ã³ã㦠â è¨å® ã§ãã¯ã¼ã¯ã¹ãã¼ã¹ã®è¨å®ããAndroidã®SDKã¯ã¼ã¯ã¹ãã¼ã¹ãé¸æ
- å³ä¸ã®ãJavaããã¯ãªãã¯
ããã§ããã¸ã§ã¯ããä½æããã¾ã§ã¯å®äºã§ãã*1
Hello World!! çãªããã¸ã§ã¯ãã®å®è¡
æåã«ã¤ãã£ãããã¸ã§ã¯ãããã«ããã¦ã¿ãã
- eclipseã®ä¸çªå·¦ã®ã¦ã£ã³ãã¦ã§ãã«ããããããã¸ã§ã¯ããå³ã¯ãªãã¯
ãã¦ãå®è¡ â Androidã¢ããªã±ã¼ã·ã§ã³ ãé¸ã¶ã¨èªåã§ã¿ã¼ã²ãã端æ«ã«ãã«ãããã¢ããªãã¤ã³ã¹ãã¼ã«ãã¦å®è¡ã¾ã§ãã£ã¦ããã¾ããã¿ã¼ã²ããããªãå ´åã¯ãã¨ãã¥ã¬ã¼ã¿ãèµ·åãã¦ãã¨ãã¥ã¬ã¼ã¿å
ã«ã¢ããªãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã*2
åºåæååãå¤ãã¦ã¿ã
æåã®ç¶æ ã ã¨ããã¸ã§ã¯ãåã表示ãããã®ã§ããããå¥ã®æååã«æ¸ãæãã¦ã¿ã¾ãã
test1 | -- res | -- values | -- strings.xml
ãªã½ã¼ã¹ããã¼ã¸ã£ã®xmlã¨ãã£ã¿ã§ãä¸è¨ã®å¤ãç·¨éããã°O.K.ãä¿åãã¦ãããå®è¡ãããã°ãã¿ã¼ã²ããä¸ã®ã¢ããªãæ¸ãæãããã¦ãã¾ãã
*1:ã¦ã£ã³ãã¦ãºã®ã¦ã¼ã¶ã¼åï¼ãã°ã¤ã³ã¢ã«ã¦ã³ãï¼ã«æ¥æ¬èªãå«ãã§ããã¨AVDã®ã»ããã¢ããã«å¤±æãã¾ãã
*2:AVDï¼ã´ã¡ã¼ãã£ã«ã³ã³ã½ã¼ã«ï¼ãèµ·åããã¾ã§ããã¨ã©ã¤æéãæãããAVDãèµ·åãã¦ããã«å¾ ã¤ã¨ããã«ãããã¢ããªãèµ·åãã¾ããå®éã®éçºæã«ã¯ã¿ã¼ã²ããããªãã¨ãã£ã¦ãããªããã
2009å¹´10æ2æ¥ã§ã®ææ°ç æºå¸¯é»è©±ã²ã¼ãã¦ã§ã¤ip帯åæ å ±ãæ´æ°ãã¾ããã
å
ã«è§ãæ¾ç½®ãã¾ããã ã£ãã®ã§ãããå
æã¡ãã£ã¨ã ãæ´æ°ãã¾ãããåºæ¥ãã°ä»å¾ã¯ã¤ã¼ï½¥ã¢ãã¤ã«ã«ã対å¿ãããã§ãã
ã±ã¼ã¿ã¤ãã£ãªã¢ã®IPã¢ãã¬ã¹å¸¯åãæ´æ°ãã¾ããã
Google Apps ã¨ã¬ã³ãµãã§ã¤ããã¡ã¼ã«é§ååWebãµã¼ãã¹
å¿
è¦æå°éã®æéã§æºå¸¯é»è©±åãã®ã¦ã§ããµã¼ãã¹ãã¤ãã£ã¦ã¿ãããªããªãæã ãããã¤ãお前の予定!ãã¤ãã£ããã¦ãã¦ãã¾ã¨ãã¦ãããã
以ä¸ãç®æ¬¡ãããããã®é
ç®ãæ¸ãããã£ããå
¬éãã¦ããã¾ãã
ç¬èªãã¡ã¤ã³ã¨ã¡ã¼ã«è»¢é
- Google Apps ã使ãã¨ç¬èªãã¡ã¤ã³ãè¤æ°ä½¿ããã
- è¤æ°ã®ãã¡ã¤ã³ã§ç°¡åã«ã¡ã¼ã«ã使ããã
- ã¡ã¼ã«è»¢éããã£ãããªã¼ã«ã¨ãã£ã«ã¿ã§ç°¡åã«
èªå® ãµã¼ãã¼ãããã¬ã³ãµãã§
- èªå® ãµã¼ãã¼ã¯ãªã¹ãã¼ã§ã³ã¹ãé«
- ãªãã§ãåºæ¥ã¡ããã¬ã³ãµãï¼ãããã¨ãï¼
- ãã£ã¨ãªãã§ãåºæ¥ã¡ããVPS
ã¬ã³ãµãã¨Google Apps
ãµã¼ãã¼ã®æºå
- MTA: qmail
- ã¢ããªç³»
- Apache
- PostgreSQL
- PHP
- ã»ãã¥ãªãã£ç³»
- sshã®ãã¼ãè¨å®
- jail
ãã¡ã¤ã³ã¨ã¡ã¼ã«ã®è¨å®
- Google Apps ã§ã®ãã¡ã¤ã³è¿½å
- ãã£ãããªã¼ã«ãªè¨å®ãªã©
- qmail ã®åä¿¡è¨å®
ã¡ã¼ã«åä¿¡ãå¼ãåããã¹ã¯ãªãã
- .qmail
- ããã¯ããã¡ã¼ã«ã®å¦çãæ¯åããããã®ã¹ã¯ãªãã
ã¡ã¼ã«éä¿¡ãå¼ãåããã¹ã¯ãªãã
- shellããã¡ã¼ã«ã渡ã
- cronã§ã¡ã¼ã«ã¹ãã¼ã«ãã£ã¬ã¯ããªãç£è¦ãã
- ãããã㯠smtp 㧠gmail ããåºããã»ããè¯ãããã SMTP-AUTH
ã±ã¼ã¿ã¤åãWebã¢ããªã®è¨è¨
- ã¦ã¼ã¶ã¼ãã©ããã£ã¦ç¹å®ããã
- ã¡ã¼ã«ã¢ãã¬ã¹ï¼ or UIDï¼
- ã¯ããã¼ã¨ã»ãã·ã§ã³
- ã»ãã·ã§ã³ã使ããã«UIDã«ä¾åãã
- ç»é¢ï¼UIï¼è¨è¨
- ã¹ã¯ãã¼ã«ããªããã¯ãªãã¯ãæ¸ãããã¢ã¯ã»ã¹ãã¼ã使ã
èªè¨¼ã¨ã»ãã·ã§ã³
- uid ã¨ç«¯æ«è£½é çªå·ã使ã£ãèªè¨¼
- ã»ãã·ã§ã³ã§ã®èªè¨¼ã¨ãã®ç¶æ
- uid ã«éã£ãèªè¨¼ã¨ãã®ç¶æ
- 常ã«uidããã§ãã¯ãããã¨ã§èªè¨¼ãã
ã¡ã¼ã«ã®åä¿¡ãã¼ã¿ãç»é²ãã¼ã¿ã«ããããã«
- åå¥ã®ã¡ã¼ã«ã¢ãã¬ã¹ã§ã®åä¿¡ã¨å¤å¥ãããæ¹æ³
- ããã¹ãèªã¿åãå¦ç
- æ¥ä»ãæå»ãã©ã¼ããããèªã¿åã
- ã¡ã¼ã«ã¢ãã¬ã¹ãèªã¿åã
ã¿ã¹ã¯ãªã¹ããä½ã£ã¦ã¿ãã
- è¦æ±ä»æ§ãã¾ã¨ãã¦ã¿ã
- ç»é¢é·ç§»ãè¨è¨ãã¦ã¿ã
- ãã¼ãã«ãè¨è¨ãã¦ã¿ã
- å¿ è¦ãªå¦çãæ©è½ãã¾ã¨ãã¦ã¿ã
- å ±éå¦çã¨æ©è½ãã¾ã¨ããã©ã¤ãã©ãªã«ãã¦ã¿ã
- ã¡ã¤ã³ã®å¦çorãã¼ã¸ãä½ã£ã¦ã¿ã
2009å¹´3æ10æ¥ã§ã®ææ°ç æºå¸¯é»è©±ã²ã¼ãã¦ã§ã¤ip帯åæ å ±ãæ´æ°ãã¾ããã
ã±ã¼ã¿ã¤ãã£ãªã¢ã®IPã¢ãã¬ã¹å¸¯åãæ´æ°ãã¾ããã
- Keitai_IP_List.class.php を更新 - お前の予定!! 日記
- KDDIã®ã¦ã§ãã¢ã¯ã»ã¹ã®IPã¢ãã¬ã¹ãå¤æ´ãããã¨ããã¢ãã¦ã³ã¹ããã¨ã«Keitai_IP_List.class.phpãã¢ãããã¼ããã¾ããã
æ°æ©è½ï¼äºå®ãããç´ãã¾ã
お前の予定!!ã«æ°æ©è½ã追å ãã¾ããã
äºå®ã®ç»é¢ï¼äºå®è©³ç´°ç»é¢ï¼ã®ã¡ãã¥ã¼ã«ãç·¨éãããã追å ãã¾ããã
- ã¿ã¤ãã«
- æ¬æï¼è©³ç´°ï¼
- æ¥ä»æå»
ãæ¸ãæãããã¨ãåºæ¥ã¾ãã
äºå®ãåå©ç¨ããããå
延ã°ããããã¨ãåºæ¥ã¾ããã¾ããéä¸ããå
±æã¡ã³ãã¼ãå¢ããã¨ãããã¨ãåºæ¥ãããã«ãªãã¾ããã