Wednesday, December 26, 2012

how to disable annoying Super Key in Ubuntu Linux with Unity Window Manager

First I should say that Super brings up the big overlay grid, that is called the Dash. Tappipng Alt brings up the HUD, a smaller text field in the top left. It's a 'type-a-little' interface to all the commands in system and application menus. We can get a link for more info, if needed.
So you can shut off the Super key, with the low-level tool Compiz Config Settings Manager. The package name is compizconfig-settings-manager, if it's not installed yet.
Open the Dash, and type 'ccsm'. You should see an icon you can run. When the app opens, you may get a warning that it's a tool that can mess up your system. This is true; it doesn't have any constraints on choosing settings that may break your desktop in different ways. But this change alone will be ok.
In CCSM, find and choose 'Ubuntu Unity Plugin'. The first tab, Behavior, should have an item 'Key to show the launcher'. Click on the button that shows Super, and you can disable it, or choose a different key if you want to try that.
Notes:
- this is how it looks for me under 12.10. It's about the same, as I recall, under 12.04.
- It should probably say 'Key to show the dash'. Maybe I'll find or file a bug about that.
- unchecking 'Enable Ubuntu Unity Plugin', under Unity, is the kind of thing that would send your window controls, and lots of the UI, into never-never land.


Reference


Wednesday, December 19, 2012

harddisk ของ Western Digital มีปัญหากับ RAID-1

หากท่านนำ harddisk ของ Western Digital มาใส่เป็น member ของ RAID-1 ท่านจะพบปัญหาการ rebuild ไม่จบ โดย status ของ raid เมื่อดูด้วย mdadm จะเป็น clean, degraded และ spare rebuilding

สาเหตุเกิดจาก module NCQ ใน harddisk ท่านต้อง disable ที่ sysctl.conf เพิ่มบรรทัด (สมมติ harddisk ลูกนั้นคือ /dev/sdb):

block/sdb/device/queue_depth=1


References

swap file

You can use file as swap space.

dd if=/dev/zero of=/var/swap bs=1M count=10240
mkswap swap
swapon /var/swap
chmod 0600 swap


Add this into /etc/fstab

/var/swap       swap    swap    defaults        0 0

Wednesday, November 21, 2012

How to change network interface descriptor (eth0, eth1, ...) in Linux

Easy easy. Just edit the file:


/etc/udev/rules.d/xxx-persistent-net.rules

ความย่อยยับของแนวทางการตั้งรหัสผ่านแบบยากๆ

บ้าไปแล้ว ช่วงนี้พบการเปลี่ยนแปลงของเว็บไซต์ใหญ่ๆเช่น GoDaddy และ PayPal ในช่องกรอกรหัสผ่าน (password) ขณะนี้ไม่สามารถ copy จากไฟล์รหัสผ่านที่ผมจดไว้แล้วมา paste ไปในช่องนี้ได้ ซึ่งมีทางเลือกให้ผม 2 ทาง ได้แก่
  1. นั่งพิมพ์รหัสผ่านทีละตัว เพื่อ log in
  2. เคาะ space หนึ่งทีก่อนเพื่อหลอก JavaScript ว่าเราพิมพ์เองแล้ว จากนั้น paste รหัสผ่านลงไป แล้วกลับมาที่ character แรกเพื่อลบ space อันเดียวนั้นออก เพื่อ log in
คือ... มันบ้าไปแล้วหรอครับ บังคับให้มานั่งพิมพ์รหัสผ่านเองด้วยมือหรอ แฝงความนัยว่า อยากสนับสนุนให้ user ตั้งรหัสผ่านง่ายๆ ที่สามารถจำได้ด้วยมันสมองอันน้อยนิดของมนุษย์หรอครับ
บอกกัน สนับสนุนกันตลอดให้ตั้งรหัสผ่านยากๆไม่ใช่หรอ? แล้ว feature ใหม่นี้คืออะไร???

จะตั้งรหัสผ่านยากๆ ผมก็ทำอยู่ รหัสผ่านส่วนใหญ่ผมก็ประมาณนี้:

jkskk##%%Xax134_SkxmknKSKq233jkhMnjklszP

แล้วผมก็จดใส่ไฟล์ที่อยู่ใน partition ที่เข้ารหัสของผมด้วย dm-crypt หรือ ecryptfs ซึ่งมีความปลอดภัยสูงในระบบปฎิบัติการ Linux เวลาใช้งานผมก็ copy and paste สิครับ

พระเจ้าช่วย... ไม่เข้าใจเลยจริงๆ ทำอะไรของมันกันเนี่ย

หลัง upgrade openssl แล้วไม่สามารถ ssh เข้า server ได้

ใน Debian บาง version หากท่านทำการ upgrade openssl แล้ว ไม่สามารถ ssh เข้าเครื่องได้ ไม่ต้องตกใจ ให้ลอง upgrade openssh-server ดูด้วยครับ

สอง package นี้น่าแปลกที่ไม่มี dependency ต่อกันเวลาใช้ apt-get แต่กลับมีการ reference ถึงกันในบาง configuration file

Monday, November 19, 2012

how to view who create which files in samba

Just add these lines below in your smb.conf file:

vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rename unlink rmdir pwrite
full_audit:failure = none
full_audit:facility = LOCAL7
full_audit:priority = NOTICE

Sunday, November 18, 2012

Thai Font in Firefox - Ubuntu 12.04.1


เปิดเว็บที่มีเนื้อหาเป็นภาษาไทยด้วย Firefox บน Ubuntu 12.04.1 มาก็ดูได้ดี แต่ในบางจุด เช่น หาก เนื้อหาภาษาไทยนั้นไซร้ไปอยู่ใน textarea เพราะอะไรสักอย่าง Firefox ไปเลือกใช้ monospace font กับมัน ทำให้ตัว ไม้หันอากาศ หรือ ตัว อุ อู จะเลื่อนๆเหลื่อมๆออกไป วิธีแก้ให้ตั้งค่า Font เป็น Norasi สำหรับ Thai ดังภาพครับผม

Thursday, November 15, 2012

ลาก่อน GoDaddy Cloud T_T

เศร้าจุงเบย เมื่อได้ทราบข่าวจาก GoDaddy ว่า GoDaddy Instant Data Center (a.k.a. GoDaddy Cloud) จะปิดให้บริการในเดือนเมษายน ปีหน้า (พ.ศ. 2556) ชาวไทยคงเตรียมย้าย website กันแทบไม่ทัน

GoDaddy ให้เหตุผลว่า:


 ”We are focused on SMBs and SMBs don’t use this product the way we are offering it now. So, in the weeks ahead, it won’t be a stand-alone product in and of itself. However, we plan to continue developing cloud technology into our other hosted products.
“We will continue to support existing Cloud Server customers in a variety of ways.”

แปลได้ว่า

เรามุ่งให้บริการลูกค้าประเภทธุรกิจขนาดเล็กถึงขนาดกลาง ซึ่งพวกเขาไม่นิยมใช้ cloud เราจึงขอเลิกให้บริการ cloud แก่ลุกค้าของเรา แต่อย่างไรก็ดี เราก็จะยังคงพัฒนา cloud technology ของเราต่อไป สำหรับใช้ในการให้บริการแก่ท่านในรูปแบบของ shared hosting

เศร้าจังบุย หนีไป amazon ec2 กะ rackspace ดีกั่ว หุหุหุ

ป.ล. อยากช่วยบริจาคให้ผู้ป่วยเป็นโรคมะเร็งกับ GoDaddy รีบไปจดทะเบียนโดเมนเนม .com กันถ้วนหน้าราคาถูก แถมเงินส่วนหนึ่งจะถูกนำไปบริจาคด้วย

Tell Your story. Share Your Strength. $5.99 .COM from GoDaddy.com

GoDaddy!

เชื่อแน่ว่าคงไม่มีใครไม่รู้จัก GoDaddy! ผู้ให้บริการ Web Hosting และ Domain Name Registrar อันดับ 1 ของโลก แม้จะมีผู้คนด่าทอ ต่อว่ามากมาย แต่จากประสบการณ์ของผมที่ใช้บริการ Web Hosting และ Domain Name Registrar มามากมายหลากหลายเจ้า กลับพบว่า สุดท้ายแล้ว ระบบของ GoDaddy ก็มีความเป็นมืออาชีพมากที่สุด

GoDaddy - World's #1 Domain Registrar

หากคุณต้องจัดการ website จำนวนมาก และต้องดูแล domain names จำนวนมาก แล้วต้องมาทนใช้ control panel ห่วยๆจากผู้ให้บริการ ไม่ว่าจะเป็น hostgator, dotster หรือ ผู้ให้บริการไทยๆเจ้าอื่นๆ แล้วคุณจะพบกับอาการจิตตก งงไปหมด นั่นก็ไม่ได้ นี่ก็ไม่ได้ เลิกใช้แล้วก็ยังค้างอยู่ จะ transfer domain ก็ต้องส่งเมล์ไปบอก domain name manager ก็ไม่มี นั่นก็ขาด นี่ก็หาย

ระบบ control panel สำหรับทั้ง Web Hosting และ Domain  Name Manager ของ GoDaddy เยี่ยมยอดสุดแล้วครับ

Monday, November 12, 2012

mysql performance tuning แบบลูกทุ่งๆ

ที่ผ่านมาเคยใช้เพียง Oracle กับระบบที่มีปริมาณ data ค่อนข้างมากเท่านั้น ซึ่งปัญหา performance ที่เคยพบนั้นจะมีสาเหตุมาจาก bug ของ database driver ใน Perl หรือ จากการเขียน sql query ที่มีประสิทธิภาพแย่มากจริงๆไม่ไหวเลยเท่านั้น แต่ยังไม่เคยพบปัญหาอันเกิดจากปริมาณ data ที่ค่อนข้างมากแล้วส่งผลให้ performance แย่ลงโดยตรง

แต่เมื่อเร็วๆนี้ต้องเข้ามาแก้ปัญหา performance ใน MySQL ที่มี data ปริมาณค่อนข้างมาก อาการคือ mysqld จะกินทรัพยากรเครื่องสูงเกินไปในบางช่วงเวลา ซึ่งก็ไม่สามารถระบุได้ว่าสาเหตุเกิดจากอะไร รู้เพียงว่าหากรอสักพักใหญ่ๆ มันจะกลับมาเป็นปกติ ในช่วงเวลาที่ mysqld กินทรัพยากรสูง (high load average) นั้นเอง ทำให้ระบบไม่สามารถทำงานได้

หลังจากพยายามหาวิธีในการ debug หาสาเหตุต้นตอของปัญหานี้ก็ได้พานพบกับวิธีหนึ่งที่รู้สึกว่าน่าจะดี และ น่าจะช่วยแก้ปัญหาได้ตรงจุด

MySQL สามารถ log sql query ที่ทำงานช้าเกินกว่าค่าที่เรากำหนด หรือ sql query ที่ไม่ได้ใช้ index ได้ โดยสามารถ config ได้ใน /etc/mysql/my.cnf

log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 5
log-queries-not-using-indexes

จาก log ที่ได้เราจะรู้ว่า sql query ใดที่ทำงานช้า เราจะได้ optimize มันเสีย ไม่ว่าจะด้วยการทำ index หรือการปรับ query ; )


Friday, November 9, 2012

how to run .cmd (or .bat) script without the black command window

You just need to wrap your .cmd script with a .vbs script. The content in .vbs is:

CreateObject("Wscript.Shell").Run "your_cmd_file.cmd", 0, True

Then you call your .vbs file instead ; )

Thursday, November 8, 2012

Bug การเรียงลำดับข้อความใน Line

จากภาพจะเห็นว่า ลำดับที่ 15 หายไป แต่หากท่านเลื่อนขึ้นๆลงๆมันจะกลับมา เป็นแบบนี้เยอะมากครับ ดูจะมีปัญหาตลอดหากท่านพิมพ์ข้อความใน Line แบบหลายๆบรรทัดติดต่อกันรัวๆ ยิ่งหากท่านคุยกับเพื่อนต่างคนต่างพิมพ์คนละหลายบรรทัดย่อยๆสลับไปมารัวๆ ท่านจะเริ่มคุยไม่รู้เรื่องเพราะลำดับข้อความจะเรียงผิดปกติครับ

ดังนั้นเวลาแชทผ่าน Line ไม่ควรกด enter บ่อยครับ ควรรวมข้อความยาวๆแล้วส่งทีเดียว เวลาอีกฝ่ายตอบมาก็รออ่านหน่อย อย่าเพิ่งพูดคำสวนคำถี่ๆ เพราะจะงง

Tuesday, November 6, 2012

ปัญหา เวลาใน Guest OS ถูก sync จากเวลาใน Host OS ของ VirtualBox

หากท่านพบว่าเวลาใน Guest OS ถูก sync จากเวลาใน Host OS ตลอดเลย แม้ท่านจะปิด ntpd ไปแล้ว ไม่ต้องตกใจ นั่นเป็นเพราะมี default configuration ในบาง version ของ VirtualBox ที่ตั้งค่าให้มัน sync นั่นเอง ท่านสามารถ disable การ sync time นี้ได้ดังนี้

% VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"


Sunday, November 4, 2012

LayoutTypos - พิมพ์ผิดเพราะลืมเปลี่ยน keyboard layout ไม่ต้องห่วงอีกต่อไป

 เชื่อว่าชาวไทยทุกคนคงเคยพิมพ์ผิดอันเนื่องจากการลืมสลับ keyboard layout จาก ไทย เป็น อังกฤษ หรือ จาก อังกฤษ เป็น ไทย กันมาบ้าง เช่น

  • สบายดีไหม => l[kpfuws,
  • 86Ic,j-vihv' => คุณแม่ขอร้อง

ปกติท่านก็ต้องพิมพ์ใหม่อีกรอบ แต่ด้วย LayoutTypos App for Android ท่านสามารถ convert มันได้ง่ายแค่ click

ดาวน์โหลดได้ที่นี่

พอดียังไม่มีเวลาเอาเข้า Google Play ดังนั้นเวลา install อย่าลืมอนุญาติให้ Allow installation of non-Market apps ด้วยครับ


3G ที่ดีที่สุดตอนนี้

หกเดือนที่แล้ว TrueMove H 3G ที่ใช้งานรับส่งข้อมูลได้เร็วมาก แต่ในช่วงสามถึงสี่เดือนที่ผ่านมาการกลับตาลปัตรกันไปหมด Internet ของ TrueMove H 3G ห่วยมากๆ ช้าบรมช้า ฤาจะถึงกาลดับสูญ

จากการค้นหาข้อมูลพบว่าขณะนี้ บริการ 3G ที่น่าใช้ที่สุดจะเป็นของ TOT 3G ซึ่งจากการทดสอบความเร็วบริเวณแถวสุขุมวิท ได้ตั้งแต่ 3Mbps ถึง 7Mbps เข้าไปแล้ว (อาจติด limit ที่อุปกรณ์รับส่งของผมเอง) นอกจากนี้ยังมี package แบบ unlimited ที่ไม่มี FAIR USAGE POLICY อันชั่วร้ายเหมือนของ TrueMove H

FAIR USAGE POLICY ของ TrueMove H แถลงไว้ว่า package แบบ unlimited ใช้ 3G ได้แค่ 2GB จากนั้นความเร็วจะตกลงต่ำมาก (แต่ยังใช้งานได้อยู่)

แต่กับ TOT 3G นั้น package แบบ unlimited มัน unlimit จริงๆครับ ใช้เท่าไหร่ก็ได้ไม่จำกัด (แต่รู้สึกจะ block BitTorrent)

วันนี้จะไปหาซื้อ TOT 3G แบบ microsim มาใช้แทนละครับ ลาก่อน TrueMove H

Tuesday, October 30, 2012

Tuesday, October 23, 2012

PayPal password issue

Today I was signing up a new PayPal account for my girlfriend. On the sign up page, there was a password field. There was a stupid limitations on this password field:
  • Please retype your password. Don't copy and paste it.
  • Enter 8-20 characters.
How can we set a strong password with these 2 stupid limitations?

Normally, I use very long and random password for each website differently. No wonder, I don't remember most of them. Here are some possibilities of my passwords:
  • _*32s32DSzxzks#x13242
  • 82k)k2_k2nxmJJ23##!@$5a
  • jskfj-1k3kyu78nkyk&&ihdskjhntsk@$
Due to its complexity, I usually don't retype them. I copy and paste it on the password field. And they are usually longer than 20 characters. I store my passwords on my encrypted partitions (with back up).

With PayPal's password policy, I can't use my typical strong password. I need to choose an easy-to-guess password in order to sign up a new PayPal account. Isn't it weird?

Friday, October 19, 2012

unix command "find" search string under svn working copy

% find . \( ! -regex '.*\.svn.*' \) -exec grep -n "รายการ PaySure" {} \; -print| less

Sunday, October 7, 2012

.screenrc example from grml linux

.screenrc แบบนี้ดี แสดง status รายการ screen ย่อยที่เราเปิดใช้งานอยู่ สะดวกสบาย เริ่ด สะ แมน แตน

caption always "%{+b bk}$USER@%{wk}%H | %{yk}(load: %l |%{rk} cpu: %1` | %{Gk}net: %2`)  %-21=%{wk}%D %d.%m.%Y %0c"
hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"

Friday, October 5, 2012

Mobile web browser ที่ตัดคำได้ อันเดียวของโลก - Opera

ผมใช้ Opera มาตั้งแต่สมัยที่ใช้ Nokia E71 และ E72 ซึ่งขณะนั้นก็ไม่ได้มีตัวเลือกอื่นมากนัก
แต่ขณะนี้ที่ใช้อยู่คือ Samsung Galaxy S3 ซึ่งมีตัวเลือกหลากหลาย อาทิเช่น Chrome, Firefox, Default Android Web Browser, Opera, เป็นต้นว่า
ปรากฏว่ามีแต่ Opera เท่านั้นที่สามารถตัดคำขึ้นบรรทัดใหม่ให้กับเนื้อหาในหน้า webpage ต่างๆได้ ส่งผลให้เราไม่ต้องคอยเลื่อนซ้ายขวาๆๆๆๆๆเวลาอ่าน content ใน webpage ต่างๆ ได้ทั้ง ภาษาไทย และ ภาษาอังกฤษ!!!

Thursday, October 4, 2012

Lenovo G480 กับ Atheros AR81Family - อีกครั้งที่โลก OpenSource ถูกทำร้ายโดย Qualcomm

วันนี้ได้ computer laptop เครื่องใหม่มาเป็น Lenovo G480 เนื่องจากเครื่องที่ใช้งานอยู่ปัจจุบันเริ่ม resource ไม่พอเพียง (Lenovo G460, core i3, ram 3GB) จึงได้จัด Lenovo G480, core i5, ram 8GB มา ปรากฎว่าไม่สามารถใช้งาน ethernet port ได้ แม้ลอง run Windows 7 ดู ก็ยังต้องลง driver พิเศษจากแผ่านที่ทาง Lenovo มอบมาให้ด้วยกับเครื่อง

สืบค้นต่อไปพบว่า hardware คือ

atheros ar81family pci-e gigabit/fast ethernet controller atheros communications device 1090

ซึ่งแหล่งข่าวแถลงว่าตั้งแต่ Qualcomm ซื้อบริษัท Atheros ไป link สำหรับ download driver ตัวนี้ก็มลายหายไป ดุ๊บดุ๊บดุ๋ย

link สำหรับ download driver ของ Qualcomm Atheros:

http://www.atheros.com/corporate/content.php?nav1=146

จะหา driver AR81FAMILY ไม่พบ!!!

แล้วพวกเราชาว Linux จะทำเยี่ยงไรกันดี ....

ราวสวรรค์โปรด มีผู้ค้นพบวิธีติดตั้ง driver นี้แล้ว:
http://ubuntuforums.org/showthread.php?t=2050126

ติดตั้งง่ายครับ ดังนี้:
wget http://www.orbit-lab.org/kernel/compat-wireless-3.0-stable/v3.6/compat-wireless-3.6.6-1-snpc.tar.bz2
tar xfj compat-wireless-3.6.6-1-snpc.tar.bz2
cd compat-wireless-3.6.6-1-snpc
./scripts/driver-select alx
make
make install
modprobe alx
โดยนำ alx ไปเพิ่มใน /etc/modules จะได้ auto load ตอน boot ครับ

Tuesday, August 21, 2012

Friday, July 20, 2012

the best vnc viewer

This is the best vnc viewer I have ever seen.  It's Enhanced VNC Thumbnail Viewer : http://sourceforge.net/projects/evnctv/

undefined symbol: ap_cache_cacheable_hdrs_out

After enabling mod_mem_cache, I encountered these errors when restarting apache:
* Restarting web server apache2
 * We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
 ... waiting apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/mem_cache.load: Cannot load /usr/lib/apache2/modules/mod_mem_cache.so into server: /usr/lib/apache2/modules/mod_mem_cache.so: undefined symbol: ap_cache_cacheable_hdrs_out
   ...fail!

Just put:

LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so

before:

# Include module configuration:

in:

/etc/apache2/apache2.conf

And it's fixed!

เวลาต้องห้ามในการตั้งให้ cronjob ทำงาน

ห้ามตั้งเวลา cronjob ระหว่าง ตีสองถึงตีสาม เพราะจะมีวันนึงที่ไม่ทำงานและจะมีวันนึงที่ทำงานสองรอบ หากมี daylight saving

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

Google products often choose Thai interface for me and this is the real problem

Can I call it a "bug"?  This is far too annoying.  Yes, I am THAI and my English is not that good BUT the Thai interface SUCKS.  I should have right to choose which Language I prefer.  There is no obvious place where I can set it.  Some products have, some don't.

Fortunately, people find a way to change the interface language by appending these 2 HTTP GET variables depending on the URL you are seeing:

&hl=en
?hl=en

Note that it will only work with your current session.  If you come back later, you may need to do it again.  You should have a real fix for this, Google.

Monday, July 16, 2012

mosh - mobile shell with roaming and intelligent local echo

mosh  (mobile  shell)  is  a remote terminal application that supports intermittent
       connectivity, allows roaming, and provides speculative local echo and line  editing
       of user keystrokes.

       Compared  with ssh, mosh is more robust — its connections stay up across sleeps and
       changes in the client's IP address — and more responsive, because the  protocol  is
       tolerant  of packet loss and the client can echo most keystrokes immediately, with‐
       out waiting for a network round-trip.

how to use grep to filter directories with large data

$ du -sh | grep -e "^[0-9.]*\(G\|M\)"

garbage characters on thai song name on android

Thai song name on mp3 on Android's music player will display as garbage characters by default. See below for how to fix it:

http://www.supaket.com/2011/03/17/%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2-mp3-tags-%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B9%84%E0%B8%94%E0%B9%89-%E0%B9%83%E0%B8%99-android/

--
chaitat

zyxel wap 3205 - number of wireless clients limitation

Zyxel WAP 3205 can work in "wireless access point" mode.

When its firmware was version: V1.00(BFR.2), it could accept only 15 wireless clients.  But after I have upgraded its firmware to be version: 1.00(BFR.6)C0, I can now see 27 wireless clients.  It could be more.  I just don't have more computers to test.

Thursday, July 5, 2012

Wednesday, June 20, 2012

how to use VirtualBox's "internal network" mode

Platform
  • VirtualBox 4.1.16 r78094
  • OS: Debian Linux
There is a situation when your Guest OSs need to access the Internet via NAT, for example, when you are using a dorm's Internet which they allow only 1 machine per account. And you also need your guest OSs to communicate with each other.
Let's say there are 2 Guest OSs which have to connect to the Internet via NAT. And you also need both of them to communicate with each other. This is impossible if you use just NAT one each virtual machine as they can't reach each other. You have to use VirtualBox's internal network.
This is the TRICKY part.

You must have 2 network interfaces on each virtual machine.

One is set to use NAT, another one is set to use "internal network" (choose "intnet1"). Then run this command:

VBoxManage dhcpserver add --netname intnet1
VBoxManage dhcpserver modify --netname intnet1 --ip 192.168.5.1 --netmask 255.255.255.0 --lowerip 192.168.5.2 --upperip 192.168.5.254 --enable

bandwidthd

bandwidthd is a network monitoring tool: http://bandwidthd.sourceforge.net/

Its unit is Byte on the table and Bit Per Second on the graph.

Tuesday, June 19, 2012

cannot send email from hotmail to google app email

Email contains error messages got from hotmail:

From: postmaster@mail.hotmail.com
To: kkk@hotmail.com
Date: Fri, 15 Jun 2012 20:39:46 -0700
Subject: Delivery Status Notification (Failure)

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

       xxx@yyy.zzz


Reporting-MTA: dns;col0-omc1-s10.col0.hotmail.com
Received-From-MTA: dns;COL107-W41
Arrival-Date: Fri, 15 Jun 2012 20:39:36 -0700

Final-Recipient: rfc822;xxx@yyy.zzz
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp;554 5.7.1 <xxx@yyy.zzz>: Relay access denied

It is because hotmail server tries to send email through yyy.zzz server which is not the email server (google's). Actually, hotmail should find address of email server by asking for MX record from the domain yyy.zzz instead.

http://productforums.google.com/forum/#!category-topic/apps/mail-settings/Yd0JG0jRn7M


Wednesday, May 30, 2012

Battery consumption : normal or abnormal


It is abnormal if the Android OS has the same percentage, close to or higher than of the Screen.
Last week, with my super battery, the battery drained so fast. From 100% to 10% in 4 hours. I noticed the strange in the battery consumption which was too much on the Android OS, so I wiped up the phone (factory reset). And then the battery consumption got back to normal.

Wednesday, May 23, 2012

Copy and Paste stops working with rdesktop (Linux Remote Desktop Client to Windows machine)

Create a .bat file with these 2 lines in it:

Taskkill.exe /im rdpclip.exe
Rdpclip.exe


Basically, we just have to reset the "rdpclip.exe" process.

Reference: