Posts

Showing posts from 2010

Oracle: Set your PC to read Thai from Oracle

Image
When you connect to Oracle server from your PC and can't read Thai, normally it's because you didn't set NLS Language to be the same as the Oracle server. To use Thai language, suppose that the Oracle server is already set NLS Language to support Thai using this value: NLS_LANG = THAI NLS_TERRITORY = THAILAND NLS_CHARACTERSET = TH8TISASCII From your PC, - Click at 'Start' button, at the search box, type 'regedit' and ENTER to open "Registry Editor". - Inside "Registry Editor", drill down 'Computer' -> 'HKEY_LOCAL_MACHINE' -> 'SOFTWARE' -> 'ORACLE'. - Under 'ORACLE', click at 'HOME0' at the left panel. - In the right panel, double click at 'NLS_LANG', input value 'THAI_THAILAND.TH8TISASCII' and click 'OK'. - No need to restart the computer. Just close the client program and open it again.

Thunderbird: How to add e-Mail account with POP protocal

Image
This is the way to add e-Mail account into Thunderbird. Currently, I'm using Thunderbird 3.1.5 to demonstrate. - From the menu bar, select "Tools" and then "Account Settings...". - At the "Account Settings" window, there is a "Account Actions" dropdown list at the bottom left, click and select "Add Mail Account...". - At "Mail Account Setup" window, enter    1) "Your name" = Your name    2) "Email address" = Full e-Mail account    3) "Password" = Your password    4) Check at "Remember password" to let Thunderbird remember it.    Then, click "Continue" button to continue. - Thunderbird will try to find common e-Mail server name for you. But this case it found IMAP protocal. Click "Edit" to change to POP. - Change the values    1) "User name" = Full e-Mail address    2) "Incoming&q

Photoshop: How to get rid of oily face

Image
To remove oily face, I use Photoshop 7. - Open Photoshop and your picture file. - Select 'Clone Stamp Tool (S). - Select 'Mode' to be 'Darken'. This option is to make it effect only the area that it's brighter. - Decrease 'Opacity' to be around 50% to adjust the colour bit by bit. - Select 'Softround Brush' in the size you are convenient to. - Select the point that close to the bright area by press 'ALT'+ 'Left Click'. - Then click at the brighter area to adjust the photo. - Result to compare before and after. Before: After:

JavaScript: Call an unnamed form

document.getElementsByTagName("form")[ i ]. . = ; i = [0..n] value = text or boolean or etc. Example: document.getElementsByTagName("form")[0].order_num_users.disabled = true;

FireFox: To enable Cookies

Image
To enable Cookies in FireFox is not easy to see. So, please follow these steps. - From the menu, select "Tools" -> "Options...". - In "Options" dialogue box, click at "Privacy" tab. In "History" section, "Firefox will:", select "Use custom settings for history". - Check "Accept cookies from sites" and then click "OK".

PHP: Install PHP with Windows Web App Gallery - Easiest way to install ever!

Image
I'm so lousy every time that I have to install PHP. Then I found magic way for very beginner user to install PHP! - Starting from download " Web Platform Installer " - After finishing download, run the file. - In the tab "Web Platform", click at "Customize" in section "Frameworks and Runtimes".  - Check at "PHP 5.x.x" and click Install. - Click "I Accept" to continue installation. - Wait for the program to download and install. - Click "Finish".

Windows Live Messenger: Hide into the taskbar in Windows 7

Image
It's so bother to have Windows Live Messenger showing all the time instead of hidden when installed in Windows 7. To hide it: - Open Windows Explorer - Go to "C:\Program Files\Windows Live\Messenger\".    For Windows 7 x64, go to "C:\Program Files (x86)\Windows Live\Messenger\". - Right click at file "msnmsgr.exe" and select "Properties" - In "Compatibility" tab, under "Compatibility mode" box, select dropdown list and choose "Windows Vista (Service Pack 2)". And then click "OK". - Close and reopen Windows Live Messenger.

Thunderbird: Backup and restore

To backup Thunderbird, just copy the profile folder into the backup place. Normally, the default profile folder will be in "C:\Users\< User >\AppData\Roaming\Thunderbird\Profiles\ .default" To restore the profile - Exit Thunderbird program. - Modify profile.ini which by default locates in folder "C:\Users\< User >\AppData\Roaming\Thunderbird"     - IsRelative=0     - Path= - Start Thunderbird. That's it! So easy!

Windows: The terminal server has exceeded the maximum number of allowed connections

Using Remote Desktop Connection of Windows to access to another computer, but the server refuse the access by pop up the message "The terminal server has exceeded the maximum number of allowed connections". Go to that computer and use this commands: c:\> query session /server: You will see the list of session and its ID. c:\> reset session  /server: It will kill the session of the remote desktop connection. Then, you can try again

Cooking: นาโชส์

ยังไม่ได้ทำ แต่เตรียมไว้เฉยๆ ส่วนประกอบ - Corn chip หรือ Tortilla chip 1/2 ถุง หรือ 12 ออนซ์ - มะเขือเทศ 1/2 หัว (ใหญ่) - ต้นหอม 6 ต้น - ผักชี - เนื้อบด 500 กรัม - Cheddar cheese 1 ชิ้น หรือ 8 ออนซ์ - กระเทียม 1/2 หัว (ไม่ใช่กลีบ) - เม็กซิกันซอสแดง เขียว - Frijole หรือซอสถั่วแดงเม็กซิกัน - ครีมเปรี้ยว - พริกดองเม็กซิกัน - อโวกาโด 1 ผล เครื่องปรุง - น้ำมัน Canola - เกลือ - พริกไทย วิธีเตรียม - หั่นมะเขือเทศ แบบลูกเต๋า - ซอยต้นหอมและผักชี - ตัด Cheddar cheese ออกมาเป็นแผ่นบางๆ - สับหอมหัวใหญ่ แบบละเอียด - บดกระเทียม วิธีทำ - ตั้งกระทะ ใส่น้ำมัน Canola, กระเทียมบด - ใส่เนื้อบดลงไป ตามด้วยเกลือกับพริกไทย ชิมรส - เมื่อเนื้อสุก ตักแยกไว้ - วาง Tortilla chips ลงในจานใหญ่ - ใส่เนื้อผัด ตามด้วย Frijoles มะเขือเทศหั่น Cheddar cheese พริกดอง อโวกาโด - ใส่จานในเตาอบจนชีสละลาย - ราดด้วยครีมเปรี้ยว ต้นหอม ผักชี

Cooking: พริกดองเม็กซิกัน

ส่วนประกอบ - น้ำส้มสายชู - แครอท - กระเทียม 3 กลีบ - หอมหัวใหญ่ 1 หัว - พริกขี้หนู 1 กำมือ - ข้าวโพดอ่อน วิธีทำ - ปอกเปลือกแครอท แล้วหั่นตามขวางขนาดไม่หนา ไม่บาง - ปอกเปลือกหัวหอม ผ่าครึ่ง - แกะเปลือกกระเทียม - หั่นข้าวโพดอ่อน ขนาดประมาณ 1 นิ้ว - นำส่วนผสมทั้งหมดใส่ขวดโหล ใส่น้ำส้มสายชูจนพอดีส่วนผสม ปิดฝาแล้วทิ้งไว้ในที่มีแสง ประมาณ 2 อาทิตย์

Cooking: ไก่ผัดเม็ดมะม่วงหิมพานต์

ส่วนประกอบ - เนื้อสันในไก่ 300 กรัม - เม็ดมะม่วงหิมพานต์ดิบ หรือทอดกรอบ 1/2 ถ้วย - พริกแห้งเม็ดใหญ่ 5 เม็ด - เห็ดฟาง 50 กรัม - ต้นหอม 2 ต้น - กระเทียมสับ 1/2 ช้อนโต๊ะ - แห้ว 1/2 ถ้วย - หัวหอมใหญ่ 1/4 หัว เครื่องปรุง - แป้งสาลีนิดหน่อย - น้ำมันสำหรับทอด - น้ำมันหอย 2 ช้อนโต๊ะ - น้ำมันงา 1/2 ช้อนชา - ซีอิ๊วขาว - น้ำปลา - น้ำผึ้ง 1 ช้อนชา - น้ำเปล่า วิธีทำ - คั่วเม็ดมะม่วงหิมพานต์ด้วยไฟอ่อนพอเหลือง แล้วตักออก - ล้างไก่ให้สะอาด หั่นไก่เป็นชิ้นพอคำ นำแป้งสาลีมาคลุกไก่ แล้วนำไก่ไปทอด (ระวังน้ำมันกระเด็น) ทอดพอเหลือง ตักขึ้นพักไว้ - ทอดพริกแห้งให้กรอบ ตัดเป็นท่อน - หั่นเห็ดฟาง ต้นหอม แห้ว หอมหัวใหญ่ - ตั้งกระทะ ใช้ไฟร้อน ใส่น้ำมันงา ใส่กระเทียมสับ คั่วพอเหลือง - ใสไก่ลงไป ตามด้วยน้ำมันหอย และน้ำเล็กน้อย - ใส่หัวหอมและเห็ด - ปรุงรสด้วยน้ำปลา ซีอิ๊วขาว และน้ำผึ้ง - ใส่ส่วนประกอบที่เหลือ - คนให้เข้ากันพอสุก จะได้ไก่ผัดเม็ดมะม่วงจานใหญ่

YouTube: Amazing MV

Cooking: ไก่นึ่งไวน์แดง

ดัดแปลงจากต้นตำรับตามใจฉัน ส่วนประกอบ - อกไก่ 2 ชิ้น เครื่องปรุง - ไวน์แดง 2 ช้อนโต๊ะ - ซอสถั่วเหลือง 1 ช้อนชา - เกลือ 1/4 ช้อนชา - น้ำผึ้ง 1/2 ช้อนชา วิธีทำ - นำอกไก่มาลอกหนังออก ล้างแล้วตัดเป็นสี่เหลี่ยมขนาดพอดีคำ ใส่จาน - นำเครื่องปรุงทั้งหมดใส่ไก่ แล้วคลุกเคล้าให้เข้ากัน - ปิดจานด้วยฟิล์ม เก็บไว้ในตู้เย็น 1 คืน หรือ 2 ชั่วโมง - นำไก่มานึ่งประมาณ 8 นาที ปิดไฟหม้อนึ่ง แล้วนึ่งต่อไปอีก 5 นาที - เสร็จแล้วตักเสริฟ ป.ล. ซอสต้นหอมยังไม่ได้ทำ เพราะหาซื้อขิงยังไม่ได้ :P

Cooking: กระเพราหมูสับ

ส่วนประกอบ - กระเพรา 2 กำมือ - หมูสับ 300 กรัม - กระเทียมสับละเอียด 6 - 7 กลีบ - พริกขี้หนูสด 10 - 15 เม็ด - หอมหัวใหญ่ 1/4 หัว เครื่องปรุง - น้ำมัน 1.5 ช้อนโต๊ะ - น้ำมันหอย 1 ช้อนชา - น้ำปลา 1 ช้อนชา - ซีอิ๊วขาว 1 ช้อนชา - ซีอิ๊วดำหวาน 1 ช้อนชา - รสดี 1/4 ช้อนชา เครื่องเคียง - น้ำพริกน้ำปลา - แตงกวาหั่น วิธีทำ - นำกระทะมาตั้งไฟแรง - ใส่น้ำมัน - พอน้ำมันร้อน ให้เบาไป แล้วใส่กระเทียมที่สับละเอียดแล้ว - คนพอกระเทียมออกเหลืองเล็กน้อย - ใส่หมูสับลงไป คนพอหมูเกือบสุกทั้งหมด - ใส่กระเพรา พริกขี้หนู หอมหัวใหญ่ ลงไป แล้วตามด้วยเครื่องปรุงทั้งหมด - ผัดพอเข้าที่ แล้วยกออก

Windows Vista: Add schedule task

Image
To add daily task, we can set schedule in Windows. From "Start Menu", select "Control Panel". In "Control Panel", click "System and Maintenance". In "System and Maintenance", click "Administrative Tools". In "Administrative Tools", double click "Computer Management". Windows will ask Administrative permission. Click "Continue" to allow. In "Computer Management", section "Actions", click at "Create Task...". In "Create Task" window, tab "General", put "Name" that you want to call it. Click at "Triggers" tab and click "New..." button. In "New Trigger" window, at "Settings" section: - Select "Daily" option - Set time that you want to trigger - Input "Recur eve

Blogger: Remember Me Option

Image
I found problem that every time I wanted to come to Blogger, I need to log in again over and over even I checked "Remember Me" option. To let Blogger remember your loin and password, have to allow cookies for the site. Using Internet Explorer, select "Tools -> Internet Options" In "Internet Options", select "Privacy" tab and click "Advanced". In "Advanced Privacy Settings" - check "Override automatic cookie handling". - Set "First-party Cookies" = "Accept"          "Third-party Coodies" = "Accept" - Check "Always alllow session cookies". - Click "OK". Note that some options you may not have to set like I suggest because I'm lazy to check which one is enough for Blogger. :P

Convert .msg to .eml

Image
I moved my e-Mail from Microsoft Outlook to use in Thunderbird. All the old e-Mails that I saved from Microsoft Outlook are in .msg format. To read .msg using Thunderbird is not possible, at least for now. So, we need to convert from .msg to .eml By the way, there are many tools available to use but most of them have price. =============== E-Mail-Converter I found one that is shareware name "E-Mail-Converter". It's just fine. Has some bugs though. Usable. The important restriction is that you cannot have space or too long file name in the .msg file when you want to convert. Try it from http://www.sharewareconnection.com/e-mail-converter.htm Unfortunately, when I remove Microsoft Office from my computer and try to open E-Mail-Converter program again. It shows pop-up that it need Microsoft Outlook which I don't want to use the Outlook program any more. :( ======================== outlookEMLandMSGconverter One I ran the program, unhandled exc

OpenOffice Calc: Function to convert string to number

Use function "VALUE()" to convert from string into number value.

YouTube: Salsa Dog

So cute!

OpenOffice Writer: Mix page layout both of portrait and landscape

Image
To mix page layout both of portrait and landscape, OpenOffice Writer provides quite easy way to do. From menu bar, select "Insert -> Manual Break...". In "Insert Break" window, select - "Type" = "Page break" - "Style" = "Landscape" - Click "OK". Output will show as below. When you want to add another layout using portrait, from "Insert Break" window, select - "Type" = "Page break" - "Style" = "Default" - Click "OK" All the results come out as below.