2010年8月3日星期二

大猩猩科技 hr打電話來囉唆

上個月某日 本人換工作後事情很繁忙 一時忘了將人力銀行的profile關掉
於是大猩猩科技的hr小姐來了一封email 提到想跟我聊聊 但卻也沒寫任何職稱/職務內容的細節 只有草草提了一些大猩猩科技集團的簡介

我想那就隨意聯絡 直接詢問職稱/職務內容/薪水範圍或是104連結
沒想到來來回回寫了3/5次email 大猩猩科技的hr卻無法給我任何職稱與細節
後來該大猩猩科技的hr經理與我約了一次電話interview

到該日大猩猩科技的資深hr經理打來 內容大概如此:

大猩猩科技hr: 您為什麼想從X公司離開?
David Lin: 喔 不好意思我上個月才從X公司離開 現在已經在Y公司服務 人力銀行網站尚未更新
大猩猩科技hr: 現在的年輕人都OOXX 喜歡跳槽 等等等(老媽子囉唆樣 我沒注意聽)
David Lin: 社會現實 我有老婆小孩長輩需要扶養
大猩猩科技hr: 年輕人不能為了錢工作
David Lin: (心想:我糙 你做公德干我屁事 你打來教訓我是怎樣) 生活要顧 *敷衍一下
大猩猩科技hr: blah blah blah blah(繼續教訓我)
David Lin: (心想: 奇怪 這種詭異的工作態度 陳腐的思想 還能做hr經理喔 那這家公司也不是我會想要去的地方啦) *冷笑 哈哈哈 好的 沒問題 那有需要在連絡

暈倒 浪費我的生命幹麻

2010年7月7日星期三

用ubuntu開rdp rdesktop到windows機器

How to use 
rdesktop (Windows remote desktop connection)

rdesktop is a client program that allows you to connect from your Ubuntu computer to your Windows computer to remote control the Windows computer. In other words, while you are sitting in front of your Ubuntu computer at home, you can log into and access your Windows computer as if you are sitting in front of the Windows computer. Seeremote desktop software.

rdesktop and VNC and Terminal Server Client (comparison)
There is another similar program called VNC. VNC is slow compared to rdesktop and VNC connection is unencrypted while rdesktop connection is encrypted by default. But there is a way to use VNC with encrypted connection. VNC works on almost all operating systems. See comparison of remote desktop software.
Terminal Server Client (Applications > Internet > Terminal Server Client) is a GUI front-end to VNC and rdesktop. If you open Terminal Server Client, you will see Protocol option (RDP, RDPv5, VNC), RDP and RDPv5 are for rdesktop connection. You should use Terminal Server Client if it works fine and if you are ok with this bug. If you want more control (such as connecting a specific local folder or other device redirection, hiding or keeping window manager decoration, using seamlessRDP), use rdesktop following this guide.


What to do on the Windows side (the server side)

The Windows computer you will connect to must be running Windows XP Pro or a higher version of Windows.

* If you have a weak Windows login password (such as john1, aaaaaaaaaaaaa, abcabc), change it to a stronger password that is longer than 10 characters and that is not a combination of words that can be found on a dictionary. You need to do this because if you enable Remote Desktop Connection, anybody with internet access can try to log into your Windows computer with automated cracking tools.

* Enable Remote Desktop Connection on the Windows computer following this guide. If the Ubuntu computer you will be connecting from has a static ip address, you can set your Windows Firewall to allow remote desktop connection from only your Ubuntu computer and refuse connection from other computers. To do this, open Windows Firewall, click on the Exceptions tab, Select 'Remote Desktop', click 'Edit', click 'Change Scope...', choose 'Custom list' and enter the IP addresses of computers from which you want to remote connect (See the attached screenshot)

What to do on the Ubuntu side (client side)

* On your Ubuntu computer, open a terminal (Application > Accessories > Terminal) and enter the following command:
Code:
 rdesktop
You'll see a long list of options for rdesktop. Think of it as an rdesktop cheatsheet.


If your windows username and Ubuntu username is the same and if the static IP address of your Windows computer is (suppose) 143.210.123.456, you can now connect to your Windows computer by entering the following command:
Code:
 rdesktop 143.210.123.456
If the usernames are different and your Windows username is (suppose) john, enter:
Code:
 rdesktop -u john 143.210.123.456
To disconnect, open Windows Start menu and click 'Disconnect'.

Most cases, you'll use one of the following two commands:
Code:
 rdesktop -u john -fP 143.210.123.456
Code:
 rdesktop -u john -g 100% -PKD 143.210.123.456
Both commands display remote desktop in full screen (corresponding option : -f, -g 100% -D) and bitmap cache is enabled for speed (-P). There is a bug and clipboard functionality (copy paste between remote desktop and local one) doesn't work in full screen mode. To make clipboard work, you need to escape full screen mode by pressing ctrl+alt+enter. ( Press ctrl+alt+enter again to get back to full screen mode. ) This bug only affects the first command and not the second command. So if you need to copy and paste between two desktops a lot, go with the second command. (Install dragking if you want to copy by selecting a text and paste by middle-click on your Windows desktop. dragking.ahk script requires ahkstructlib.ahk). The two commands also differs in how the keybindings are handled,

* First command : if you press alt+tab (keyboard shortcut for switching windows), it doesn't switch windows from Ubuntu desktop, it switches from the remote Windows desktop. And ctrl+alt+right (for switching to another workspace) doesn't work. This is useful when you want to alt+tab in the remote Windows.

* Second command : keyboard shortcuts such as ctrl+alt+right and alt+tab works on your Ubuntu desktop. This is useful because you can put the remote desktop on the seperate workspace then you can switch between your local ubuntu workspace and your remote Windows desktop just by pressing ctrl+alt+right and ctrl+alt+left.


Create a launcher

Opening terminal every time you want to remote connect to Windows is of a hassle. To create a lancher, right click on the top panel, click 'Add to Panel...', select 'Custom Application launcher', click 'Add' button, type your command in the command field. (See the attached screenshot). if the command contains %, replace % with %%.


useful rdesktop options

-r disk:doc=/home/john/Documents,pic=/home/john/Pictures
With this option, rdesktop connects folders /home/john/Documents and /home/john/Pictures to Windows remote desktop. Open Windows Start menu and click 'My Computer' and you will see the connected folders named doc and pic.

-r sound:local
This option is to hear sound from Windows remote desktop.

See /usr/share/doc/rdesktop/redirection.txt for more on device redirection.

-k ko
This sets the keyboard layout to Korean. This makes Hangul key work on the remote desktop. See /usr/share/doc/rdesktop/keymap-names.txt




How to use rdesktop over ssh

rdesktop is vulnerable to man-in-the-middle attacks. So you might want to use it over ssh.

Follow this lifehacker article to set up an ssh server on the Windows computer. (You can edit sshd_config with a Windows editor supporting UNIX texts such as notepad2) You might want to set Windows Firewall to disallow ssh access from IP addresses other than your Ubuntu computer's. Take note of the RSA key fingerprint by open a cygwin shell (Start > All Programs > Cygwin > Cygwin Bash Shell) and entering :
Code:
 ssh-keygen -lf /etc/ssh_host_rsa_key.pub
On your Ubuntu computer, check if the local port 3389 (default listening port number for Windows Remote Desktop service) is available:
Code:
 telnet localhost 3389
The output should be similar to :
Code:
 $ telnet localhost 3389 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
, which means the port is available. If the port is already in use the output should be similar to :
Code:
 $ telnet localhost 3389 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
If the port is available, connect to windows ssh service with port forward:
Code:
 ssh -L 3389:localhost:3389 john@143.210.123.456
The port 3389 of your Ubuntu is forwarded to the port 3389 of your Windows. The output should be like :
Code:
 $ ssh -L 3389:localhost:3389 john@143.210.123.456 The authenticity of host '143.210.123.456 (143.210.123.456)' can't be established. RSA key fingerprint is f3:90:3b:70:20:a2:52:fe:fx:a2:90:70:3b:f3:6a:22. Are you sure you want to continue connecting (yes/no)?
Check if the presented RSA key fingerprint is the same as the one you took note of. If they are different, you should answer no, the host you are connecting to is not your real Windows computer, it may be a man in the middle. If they are same, answer yes and proceed. You can get out of the ssh session by entering 'exit' but don't do it now.

Open another terminal and make rdesktop connect to localhost:
Code:
 rdesktop -u john localhost
The remote desktop will be a bit slow. cygwin is slow.

What if the port 3389 was already in use? Find a different available port (suppose, 3099) and connect to Windows ssh like this :
Code:
 ssh -L 3099:localhost:3389 john@143.210.123.456
The port 3099 of your Ubuntu is forwarded to the port 3389 of your Windows.

Open a new terminal and make rdesktop connect to localhost at the port 3099 :
Code:
 rdesktop -u john localhost:3099

2010年6月30日星期三

GoogleCL Google Command Line

這個太屌 超多應用

Install GoogleCL in ubuntu

sudo apt-get install python-gdata

create album in picasa:
google picasa create –album "Test Photos" ~/photos/admin/*.jpg

2010年6月25日星期五

ubuntu convert mp3 id3 tags to utf8

sudo apt-get install python-mutagen
find . -execdir mid3iconv -e BIG5 "{}" \;

就這麼簡單


2010年6月24日星期四

微軟正黑體 for ubuntu

sudo apt-get install msttcorefonts
就只有這樣了

2010年6月22日星期二

雲端第一人axa cheng曾經預言過RFID應用會成為主流

Nokia未來出的手機都會支援NFC

Nokia副總裁Anssi Vanjoki在前些日子表示未來旗下的智慧型手機機種都會支援NFC(Near-field Communication ),打算在明年,也就是2011年全面導入NFC,不過僅限於智慧型手機部份。那麼,什麼是 "NFC" 呢?NFC中文叫做「近場無線通訊」,是建構在RFID之上,最常見的應用就是HTC Tatoo可以當悠遊卡來用,就是因為RFID嵌入到手機裡,透過NFC的機制來感應。
NFC的有效距離通常為20公分,有主動與被動模式,被動模式不會發射訊號,所以不需要電池,目前以飛利浦Mifare與Sony的Ferlica等兩種規範為大宗。看來支援NFC對Nokia手機是個不錯的加值功能,但是會對節節敗退的智慧型手機佔有率有幫助嗎?讓我們繼續看下去。

2010年6月21日星期一

Google Chrome 官方沒有video downloader

但是很多video太長 download下來比較容易看 所以 請用:
http://www.chromeextensions.org/music-videos-photos/easy-youtube-video-downloader/