Tuesday, April 8, 2008

บุคลากรด้านซอฟต์แวร์และไอทีที่เป็นที่ต้องการ

จากการที่ได้เข้าร่วมฟังเสวนาเรื่อง "ความต้องการของตลาดแรงงานและอนาคตด้านวิชาชีพของบุคลากรด้านซอฟต์แวร์" โดยผู้พูดเป็นตัวแทนจากบริษัท รอยเตอร์ ซอฟต์แวร์ ประเทศไทย จำกัด บริษัท ไอบีเอ็ม โซลูชั่นส์ ดิลิเวอรี่ จำกดั และบริษัท ไมโครซอฟต์ ประเทศไทย จำกัด ในวันอังคารที่ 11 มีนาคม 2551 เวลา 11:00 น. ณ ห้องหน้าเมือง โรงแรมเจริญธานีปริ๊นเซส จังหวัดขอนแก่น จะขอสรุป คุณสมบัติของบุคลากรด้านซอฟต์แวร์และไอทีที่เป็นที่ต้องการดังนี้

  • มีความสามารถสูงในการวิเคราะห์และการแก้ปัญหา (High Analytical/Problem Solving Skills)
  • มีความสามารถดีในการสื่อสาร (Solid communication Skills)
  • มีความสามารถในการจัดการการโปรเจกต์ (Project Management Skills)
  • มีจรรยาบรรณในการประกอบชีพ (Work Ethics and Value)
  • มีความรับผิดชอบและทุ่มเทในงานที่ทำ (Accountability and Passion)
  • มีทักษะคอมพิวเตอร์และความสามารถเชิงเทคนิค (Technical Dept & Computer Skills)
  • มีความกระตือรือร้นและแสวงหาโอกาสใหม่ๆ ด้วยตนเอง (Being pro-active and self-motivation)
  • มีความสามารถในการทำงานเป็นทีม (Team Working Skills)
  • มีความคิดสร้างสรรค์ (Being creative: Thinking out of box)
  • มีทักษะในการสื่อสารภาษาอังกฤษ (English Communication Skills)
โดยที่มีท่านหนึ่งได้พูดถึงข้อดีของบุคลากรไอทีว่า
  • มีความเห็นอกเห็นใจผู้ร่วมงาน
  • เรียนรู้ไวแต่ต้องบอกให้เรียนรู้
แต่ข้อที่ควรปรับปรุงคือ
  • ควรจะติดตามข่าวคราวทางไอทีสม่ำเสมอ
  • ไม่ควรยึดติดกับเครื่องมือ ไม่ว่าจะเป็น Java หรือ .NET หรือ PHP
  • ควรจะนำเสนอความคิดและผลงานของตนเองอย่างมั่นใจ
  • ควรจะฝึกอ่าน พูด เขียน และฟังภาษาอังกฤษ
  • ควรจะกล้าที่จะถาม
  • ควรจะเรียนรู้และขวนขวายด้วยตนเอง

Sunday, April 15, 2007

Sample PHP Codes Call Amazon Web Services

// callAmazonRESTWS.php
header("Content-type: text/xml");
$base = 'http://webservices.amazon.com/onca/xml';
$query_string = '';
$params = array(
'Service' =>'AWSECommerceService',
'SubscriptionId' => '16XT8ETKKB7NWHAGCQ02' ,
'Operation' => 'ItemSearch',
'SearchIndex' => 'Books',
'Keywords' => 'Web Services');

foreach ($params as $key => $value) {
if ($key != 'Keywords')
$query_string .= "$key=" . urlencode($value) . "&";
else
$query_string .="$key=".urlencode($value);
}
$url = "$base?$query_string";

// Define a context for HTTP.
$aContext = array(
'http' => array(
'proxy' => 'tcp://202.12.97.116:8080', // This is the sample server and the port of the proxys server.
'request_fulluri' => True,
),
);
$cxContext = stream_context_create($aContext);
// Now all file stream functions can use this context.
$xml = file_get_contents($url, False, $cxContext);
echo $xml;
>



You will get the result as shown on this picture.
















References


* Roger L. Costello, “Building Web Services the REST Way”, http://www.xfront.com/REST-Web-Services.html
* Stefan Marr, “RESTful Web Services”, HPI, Seminar Advanced Database Technology
* Pete Freitag, “REST vs SOAP Web Services”, http://www.petefreitag.com/item/431.cfm
* Google, “Google SOAP Search API”, http://code.google.com/apis/soapsearch/
* Sameer Tyagi, “RESTful Web Services”,
http://java.sun.com/developer/technicalArticles/WebServices/restful

Automatically Backup MySQL Databases on Linux Server

We can automatically backup MySQL database on linux server by writing script and run cron. The cron command can run the script every x day at time y. The script use mysqldump in back up the database


The sample procedure is as follows

1. create script mysqldump.bsh which has it content as

#!/bin/bash mysqldump –user=”Database Username” –password=”Database Password” –all “Database Name” | gzip > “Full Path Where You Want Backup Saved”-`date +%Y%m%d`.gz

2. create file cron.txt

Assume that we want to backup the database at 6 am everyday

0 6 * * * /path/to/your/mysql_dump.bsh

There must be an empty line before the end of the file

3. run command "crontab cron.txt" to start the jobs specified in cron.txt

4. run command "crontab -l" to see the list of jobs currently scheduled and run on the system


References

http://www.bloggingpro.com/archives/2004/05/28/backing-it-up-or-lose-it/


http://en.wikipedia.org/wiki/Crontab

http://www.adminschoice.com/docs/crontab.htm