หลายเรื่องราวกับคำว่า Don*t

25 May

Don’t wait for a smile, to be nice.

อย่ารอคอยให้ได้รับรอยยิ้ม แล้วจึงทำดีDon’t wait to be loved, to love.
อย่ารอคอยให้มีคนรัก แล้วจึงมอบความรักให้ผู้อื่น

Don’t wait to be lonely, to recognize the value of a friend.
อย่ารอคอยจนกลายเป็นคนโดดเดี่ยว แล้วจึงเห็นคุณค่าของเพื่อน

Don’t wait for the best job, to begin to work.
อย่ารอคอยให้ได้งานที่ดีที่สุด แล้วจึงเริ่มทำงาน

Don’t wait to have a lot, to share a bit.
อย่ารอคอยให้มีมากๆ แล้วจึงเริ่มแบ่งปันเพียงน้อยนิด

Don’t wait for the fall, to remember the advice.
อย่ารอคอยจนพบความล้มเหลว แล้วจึงจดจำคำแนะนำของผู้อื่น

Don’t wait for pair, to believe in prayer.
อย่ารอคอยจนพบเนื้อคู่ แล้วจึงเชื่อในคำอธิษฐาน

Don’t wait to have time, to be able to serve.
อย่ารอคอยให้มีเวลา แล้วจึงทำประโยชน์

Don’t wait for anybody else pain, to ask for apologies…. neither seperation to make it up.
อย่ารอคอยให้คนอื่นเจ็บปวดเสียก่อนแล้วจึงขอโทษหรือต้องเลิกคบกันก่อน แล้วจึงหวนมาคืนดี

Don’t wait…….Because you don’t know how long it will takes.
อย่ารอคอย…. เพราะคุณไม่รู้ว่ามันจะต้องใช้เวลานานเท่าใด

จาก…….Good Stories For Friends

Tip การค้นหาใน Google

25 May

บ่อยครั้งที่หลายคนเกิดข้อสงสัยหรือปัญหาขึ้นมาในหัว บ่อยครั้งที่คนเหล่านั้นเลือกที่จะตั้งกระทู้ถามในเว็บบอร์ด เช่น
บอร์ดพันธิบ บอร์ดประมูล ฯลฯ จะสังเกตได้ว่ากระทู้ที่มีคำถามเดิม ๆ โผลขึ้นมาแทบทุกวัน ทั้ง ๆ ที่มีผู้มาตอบไปแล้วหลายครั้ง นั่นเป็นเพราะว่าหลาย ๆ คน ไม่รู้จัก Search Engine (รึเปล่า)
Search Engine ก็คือ เครื่องมือที่ใช้ในการค้นหาข้อมูลบนโลก Internet ใบใหญ่นั่นเอง ซึ่งตอนนี้โลก Internet แทบจะกลายเป็นกระเป๋าโดเรม่อนไปแล้ว รวมถึงการตลาดในปัจจุบันซึ่งเป็นทางเลือกใหม่ที่ดีทีเดียวอย่างที่เราคุ้นหูคุ้นตากันดีก็คือ SEM (Search Engine Marketing)
Search Engine นั้นมีมากมายแต่จะกล่าวใน อันดับต้น ๆของโลกก็มี 3 ยักษ์ใหญ่ที่เราคงคุ้นหูกันดี อันดับหนึ่ง Google อันดับสอง Yahoo และ อันดับสาม MSN ซึ่งแต่ละตัวก็มีจุดเด่นต่างกัน เช่น

Google มีจุดเด่นในเรื่องความแม่ยำ ในการวิเคราะห์สิ่งที่เราต้องการหา
Yahoo มีจุดเด่นในเรื่อง web directories
MSN เป็นลูกผสมของทั้งสองตัวแต่ไม่เด่นสักอย่าง

เข้าเรื่องกันเลยดีกว่าวันนี้เรามีเรียนรู้วิธีการค้นหาใน Google แบบที่ใช้กันบ่อย ๆ ให้แม่นเหมือนจับวางกันเลยดีกว่า

สมมุติว่าเราต้องการหา ประวัติของสตีฟจ๊อบ (รู้จักกันรึเปล่าครับ จีเนียสคอมพิวเตอร์คนนี้) ถ้าเราพิมพ์ว่า
ประวัติ สตีฟ จ๊อบ
เราจะได้ข้อมูลที่มีเนื้อหาเกี่ยวกับ ประวัติ และ สตีฟ และ จ๊อบ
Tip : การเว้นวรรคเท่ากับเครื่องหมาย+ ( เครื่องหมาย+ ความหมายคือ และ)
——————————————–

แต่ถ้าเราพิมพ์ว่า
ประวัติ “สตีฟ จ๊อบ”
เราจะได้เนื้อหาเกี่ยวกับ ประวัติ และ “สตีฟ จ๊อบ” นั่นคือเราได้บีบข้อมูลที่ได้มานั้นตรงใจเข้าไปอีก
——————————————–
สมมุติว่าเรารู้ว่าเว็บนี้แหละมีข้อมูลนี้แน่ ๆ แต่เว็บมันใหญ่เหลือเกินหายังไงก็ไม่เจอ ให้พิมพ์
ประวัติ “สตีฟ จ๊อบ” site:www.pantip.com
เราก็จะได้เนื้อหาเกี่ยวกับ ประวัติ และ “สตีฟ จ๊อบ” ที่อยู่ในเว็บ pantip.com เท่านั้น คำสั่งนี้จำไว้ให้ดีนะใช้ประโยชน์ได้เยอะ
——————————————–

แต่เมื่อดูผลการค้นหามักจะมีชื่อของ บิลเกต ซึ่งเป็นคู่แข่งของ สตีฟ จ๊อบ ขึ้นมาทุกที ให้พิมพ์
ประวัติ “สตีฟ จ๊อบ”-บิลเกต
เราก็จะได้เนื้อหาเกี่ยวกับ ประวัติ และ “สตีฟ จ๊อบ” ที่ไม่มีเนื้อหาเกี่ยวกับ บิลเกต มาเกะกะ
Tip : เครื่องหมาย – หมายความว่า ไม่ (NOT)
——————————————–
ในกรณีที่เราเป็นนักเรียนนักศึกษาที่ขี้เกียจเหลือเกิน อยากจะหาเป็น .doc หรือไม่ก็ .pdf มาซะเลย ก็…
ประวัติ “สตีฟ จ๊อบ” filetype:doc
เท่านี้ก็จะได้เนื้อหาเกี่ยวกับ ประวัติ และ “สตีฟ จ๊อบ” ที่ไฟล์เป็น .doc เท่านั้น (word นั่นเอง)

คราวนี้อยากดูเนื้อเรื่องของ Starwar II ก็ต้องพิมพ์
เนื้อเรื่อง Starwar +II
สังเกตดี ๆ นะ ถ้าเราไม่พิมพ์ “วรรค+II” เราก็จะได้เนื้อหาเกี่ยวกับสตาร์วอ แต่ทุกภาค นี่ก็เป็นอีก Tip หนึ่งที่ช่วยค้นหาให้โดนใจมากที่สุด
———————————————
Tip : วันไหนเรียน Lab คอมอยู่เปิดเครื่องคิดเลขไม่ทันแล้ว ลองพิมพ์ใน google เช่น299+69-78
หรือในเรื่องการแปลงหน่วยลองพิมพ์ เช่น 21 miles in kilometer แล้วคุณจะแปลกใจ
———————————————
อีกกรณีเลย ยอดฮิต โดนไวรัสจะ search หาวิธีแก้อย่างไร ให้คุณสังเกตอาการที่ผิดปกติไปของคอมพิวเตอร์ เช่น
titlebar ของ IE เปลี่ยนไปเป็น Hack by Gozilla
ก็ให้พิมพ์ว่า 
gozilla removal
หมายถึง ตัวแก้ไวรัส gozilla นั่นเอง
———————————————
ต่อไป วินโดวไม่รู้เป็นอะไร แต่เข้า Folder option ไม่ได้เนี่ยทำไงดี
ก็ให้พิมพ์ว่า folder option ไม่ได้ หรือ 
folder option หาย
หุหุ รับรองว่าต้องมีคนเคยบ่นถึงเรื่องนี้แน่ ๆ
———————————————
เข้าไปดูใน Process ปรากฏส่ามันมีโปนเซสที่เราไม่คุ้นเลย ลองหาดูซิ
ก็ให้โปรเซสที่น่าสงสัยนั้นลงไป เช่น EmongElah.exe เป็นต้น
แต่ทั้งนี้ทั้งนั้นควรหาโปรแกรม Antivirus มาใช้สักตัวน่าจะอุ่นใจกว่านะ
———————————————
สั่งค้นเว็บนี้แบบทุกซอกทุกมุมใช้คำสั่ง 
site:tip-pc.th.gs
Google จะแสดงทุกหน้าที่มีอยู่ในเว็บนี้แบบไม่หมกเม็ดเลยล่ะ

แล้วอยากรู้อีกว่ามีที่ไหนบ้างที่ Link มายังเว็บนี้พิมพ์ link:tip-pc.th.gs
———————————————
Tip : การค้นหาแบบ “เว็บ” จะเป็นการค้นหาทั่วโลก ส่วนแบบ “หน้าของประเทศไทย” จะค้นหาเฉพาะในประเทศไทย (Local) ขอแนะนำว่าควรจะหาจากหน้าของประเทศไทยก่อนนะครับ เพราะจะ Download เร็วกว่ากันเยอะ

แน่นอนว่าเรื่องบางเรื่องที่เราสงสัยนั้น มักจะมีคนสงสัยก่อนเรามาแล้ว เพราะฉะนั้นไม่จำเป็นเลยที่เราต้องไปตั้งกระทู้ถามใหม่ เพียงแต่ลอง Search หาข้อมูลเก่า ๆ ที่มีคนเคยตอบไปแล้ว จะได้ไม่เสียเวลาตั้งกระทู้ใหม่และไม่ต้องเพิ่มกระทู้ที่ซ้ำ ๆ กันให้รกบอร์ด เปลืองพื้นที่และเปลืองทรัพยากรด้วย

Regular Expression on EditPlus

9 Aug

Howto Use Regular Express On Editplus For Work!!!!

Remove all empty lines:

Find: “^\n” (Ignore double-quotes in all find/replace)
Replace: “”
Where,
^ <–>Beginning of the line
\n <–>New Line

Remove Multiple Spaces convert into single space:

Find: ” +”
Replace: ” “
Where,
+ <–>find one or more occurance of space character.

Comment multiple line of code:

Find: “^”
Replace: “#” or “//”
You may optionally use: Edit Menu > Format > Line Comment.
Generate Comma Separated List from new line delimited list:
Find: “\n”
Replace: “, “
This helps in even joining some of lines of code instead of replacing by comma you may replace it with “”.

Manipulate columns display order / punctuation:

Find: “([0-9]+)\t([a-zA-Z]+)”
Replace: “\2\t\1″
Where,
[0-9]+ – Finds one or more digits
[a-zA-Z]+ – Finds one or more characters
() – mark the block or capture the group
\2 – 2nd mark expression
Eg:
123 abc
345 cde
567 efg
Becomes:
abc 123
cde 345
efg 567
The Other Way:
– Press Alt+C
– Drag you mouse to select respective column and click
– Copy / Cut as required

Append / Add semicolon (any character) at the end of the line:

Find: “\n”
Replace: “;\n”

Enclose lines by quotes:

Find: “\n”
Replace: “‘\n’”

Delete all lines containing a given STRING:

Find: “^.*STRING.*$”
Replace: “”

Remove lines not containing a given STRING:

I don’t know how to do this!! :)

Convert tab separated file into insert statements:

TSV: abcd de4 iirn 34399
SQL: INSERT INTO TABLENAME VALUES (“abcd”, “de4″, “iirn”,”34399″);
Find: “(.*)\t(.*)\t(.*)\t(.*)”
Replace: “INSERT INTO TABLENAME VALUES (“\1″, “\2″, “\3″,”\4″);”

Format the telephone number:

Find: “([0-9][0-9][0-9])([0-9][0-9][0-9])([0-9].*)”
Replace: “\1-\2-\3″
Eg.:
Original: 1231231231
Formatted-1: 123-123-1231

Remove Brackets:

Find: “\(|\)”
Replace: “”
Where,
\( – Match (. \ is required to escape marking the expression.
| – or

Replace 1st occurrence of character:

Find: ” (.*)”
Replace: “-\1″
Where,
(.*) – matches everything and marks the block
** Make sure you ignore double-quotes(“) while writing in find / replace boxes.

EditPlus supports following regular expressions in Find, Replace and Find in Files command.

Expression – Description
  • \t – Tab character.
  • \n – New line.
  • . – Matches any character.
  • | – Either expression on its left and right side matches the target string.
  • [] – Any of the enclosed characters may match the target character.
  • [^] – None of the enclosed characters may match the target character.
  • * – Character to the left of asterisk in the expression should match 0 or more times.
  • + – Character to the left of plus sign in the expression should match 1 or more times.
  • ? – Character to the left of question mark in the expression should match 0 or 1 time.
  • ^ – Expression to the right of ^ matches only when it is at the beginning of line.
  • $ – Expression to the left of $ matches only when it is at the end of line.
  • () – Affects evaluation order of expression and also used for tagged expression.
  • \ – Escape character. If you want to use character “\” itself, you should use “\\”.

Reference : http://kedar.nitty-witty.com/blog/working-with-editplus-text-editor-regular-expression-how-to