Month: พฤษภาคม 2009
มาลอง พัฒนา Application ร่วมกับ Git กันเถอะ (1)
Git คืออะไร ? ว่าง่ายๆ Git ก็คือ opensource ที่ใช้เป็น version control system นั่นแหละครับ หรือ นิยามเต็มๆ ก็คือ Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent [...]
[Pre] GitHub Command (Blog From Terminal)
nazts-macbook:~ NAzT$history | grep git 68 grails create-app gitdemo 69 cd gitdemo/ 79 cd gitdemo/ 80 git init 81 git add . 82 git commit -m “initial checkin”
[Twitter] อ่าน User Timeline มาใส่ Blog โดยไม่พึ่ง Plugin
ขั้นแรกเตรียมช่องไว้ใส่ข้อความจาก User Timeline ก่อน <div id=”twitter”> <h2>Twitter</h2> <ul id=”twitter_update_list”></ul> <br/> </div> ต่อไปก็ เอา Code Java Script ไปใส่ไว้ข้าง
[Note]-Google Wave
วันนี้เปิด twitter มา ก็เห็น tag #googlewave ก็ลองไปเปิดๆ search ๆ ดู แล้วก็ไปดู clip vdo ที่ http://wave.google.com/ พอดูแล้ว … เฮ้ย เจ๋งดี เหมือนกับว่า google สร้าง googlewave ขึ้นมาโดยใช้ product เดิม อย่างเช่น gmail, gdocs, gtalk ….. ทั้งหลายทั้งปวง ทำให้ เราสามารถทำงาน ร่วมกัน … คุยกัน ใช้ชีวิตประจำวันด้วยกัน …. realtime โคตรๆ ชอบๆ Google Wave is a new tool for communication and collaboration on the web, [...]
[Shell Script] ค้นหาไฟล์ ลบไฟล์ ที่เลยมาแล้ว 10 นาที
ตัวอย่างนี้จะส่ง ls -l เมื่อเจอไฟล์ที่มีอายุ 15 นาทีขึ้นไป $ find ~/CRON_LOCKS_FILE/ -mmin +15 -type f -exec ls -l {} \; อันนี้จะลบไฟล์ที่มีอายุ 3 วันขึ้นไป $ find /u1/database/prod/arch -type f -mtime +3 -exec rm {} \; Related Blogs What type of movie is harder to sit through without losing your mind? Let's Look At Locks. | High Tech Safety [...]
[Twitter] Follow กลับ คนที่มา Follow เรา
Script Follow กลับ ด้าวยภาษา ruby ก่อนอื่นต้องลง twitter gem ด้วยคำสั่ง sudo gem install twitter (อย่าลืมอัพเดต ก่อนด้วยนะ) ไฟล์ config มีหน้าตาเป็นแบบนี้นะ FILE (.twitter) email: my_twitter_email password: my_twitter_password #!/usr/bin/env ruby require ‘rubygems’ require ‘twitter’ config = YAML::load(open(".twitter")) httpauth = Twitter::HTTPAuth.new(config[’email’], config[’password’]) base = Twitter::Base.new(httpauth) base.followers.each do |follower| if !follower.following begin base.friendship_create(follower.id, true) rescue puts "An error occurred: [...]
วิธีลบ Quicksilver
วิธีลบ Quicksilver หรือ reset configuration 503 sudo rm -rfv ~/Library/Application\ Support/Quicksilver/ 504 sudo rm ~/Library/Preferences/com.blacktree.Quicksilver.plist Related Blogs Django Staging Server: Apache Configuration Manitoba Hydro and NRCan Support Extreme Cold Weather Biodiesel … Opera Finds Flash Unappetizing For Web Video [Blockquote] | Gadget … a centre-left nation needs what kind of government? | afoe | A [...]
update Twitter ด้วย twitter.lib.php ทำงานบน Shell
พอดีต้องทำงานเกี่ยวกับการเอาข้อมูลไปลง twitter เลยต้องหา library มาลอง ลองไปลองมาหลายภาษา ได้ถูกใจก็ twitter.lib.php เนี่ยแหละ ซึ่ง สนใจไปดูได้ที่ http://apiwiki.twitter.com/Libraries แต่พอดีอยาก tweet แล้วขี้เกียจพิมพ์ tag เอง … เลย ทำ script เพื่อให้มันใส่ tag ให้เลย (ข้างล่าง) $twitter=InputAndLoginToTwitter(); echo "Enter Tag : "; $tag = fgets (STDIN, 1024); while(1) { print "Update : "; $stdin = fgets (STDIN, 1024); $update=$twitter->updateStatus(trim((string)$stdin) . " " . trim($tag)); if($twitter->http_status!=200) { [...]
ความหมายของคำว่า Chillax
จาก The Online Slang Dictionary Chillax Chillax: a combination of “chill” and “relax.” “Chill” means to kick back; relax. “Relax”; that’s self-explanatory. To relax. Orgin: Combination of “chill” and “relax.” Example : I was just chillaxing all day yesterday. I’m chillaxing right now… Related Blogs Updated: Business Intelligence Online Resources « ResourceShelf Why Chill Out [...]
[code] อัพโหลดภาพเข้า twitpic โดยใช้ api
[code] อัพโหลดภาพเข้า twitpic โดยใช้ api จะใช้ CURL ซึ่ง จาก function จะ input username ,password , filepath function postTwitpic($username='',$password='',$filepath='') { $postfields = array(); $postfields['username'] = $username; $postfields['password'] = $password; $postfields['media'] = "@$filepath"; $twitter_url = 'http://twitpic.com/api/upload'; $curl = curl_init(); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, $twitter_url); curl_setopt($curl, CURLOPT_POST, 3); [...]
NPDigger Groups (google)
NPDigger เปิด NPDigger groups แล้วครับ (เป็น google groups) สามารถเข้าไปพูดคุย ตอบปัญหา หรือ Download File โปรขุด ได้เลยครับ เข้าไปที่ http://groups.google.com/group/npdigger Related Blogs Privacy — A Setback for Google? « ResourceShelf Rel Canonical Link Tag Element Update » Search Engine Marketing Blog Airsoft BBs .20 gram 4000 round bag SRC Brand | Airsoft Gun Store Sheer class (1): how [...]




