Friday, January 30, 2009

what you need to know while online shopping

Shop safely

  1. Never pay in advance to the seller that you do not know.
  2. Even if the seller discloses their personal information or bank account number, this does not protect you from being cheated.
  3. Where possible, request original receipt and a written receipt for the purchase.
  4. Never send the goods before payment arrangements have been finalised.

Take extra caution when...

  1. The offer sounds too good to be true.
  2. The other party keeps pushing you to complete the deal.
  3. Someone asks for your bank account or credit card number.
  4. Paying large amounts to people you don't know. Try to meet up at a shop or at a public place.
  5. Buying branded items. It is always advisable to meet up with the buyer at a shop and check the authenticity of the item.

When sending goods

Most fraud cases take place when the buyer and seller do not meet.

When you buy...

  1. Never pay any money in advance, no matter how reliable the seller seems to be.
  2. Fraudsters often offer to provide proof of identity (IC, passport, driving license, etc) as a "guarantee". This does not protect you against fraud or being cheated!
  3. Postage paid by seller or registered mail is not risk free. You have no way to verify the package's contents before you pay for it.

When you sell...

  1. It is always good to deal with COD (Cash on Delivery)
  2. Never send the goods before payment arrangements have been finalised.
  3. Avoid payment by cheque. It is not certain that the cheque can be cashed.

Special warning - Overseas payments

  1. Some international payment solutions offer built-in security features, such as Paypal, but this is not common. Never use payment services such as Western Union, MoneyGram, or BidPay, as it may be very difficult to control/stop payment with these services. Such services are also popular with fraudsters for the same reasons.

Remember...

  1. Never pay in advance.
  2. Goods sent through mail can be risky.
  3. Do not send money to a recipient in a foreign country.
  4. Avoid using most international payment services.

Stolen Items

It is important to make sure that the goods you are buying are not stolen. The owner is entitled to recover stolen property even if you have purchased the goods "in good faith."
  1. We suggest that you always request to see the original receipt when possible.
  2. For vehicles, please check with the Jabatan Pengangkutan Jalan (JPJ) if the seller is registered as the owner and the vehicle has not been reported stolen.
  3. You should check the seller's identity when in doubt.
  4. When in doubt, you can also check with the police to ensure that the goods are not reported stolen
  5. For branded items, please ensure that the serial numbers have not been manipulated
  6. For vehicles you should always verify that the chassis number has not been tampered with.
  7. If you suspect an item to be stolen, please contact us and the relevant police department immediately.

Please help us by using the above advice to prevent criminals from selling stolen goods.

Remember...

  1. When possible, request for original receipt.
  2. Check the serial/chassis numbers.
  3. Request for proof of ownership for big purchases such as property or vehicle (Grant, Sale and Purchase agreement, registration documents, etc).

Vehicles


When you buy ...

  1. Please check that the vehicle is actually owned by the seller. This can be done at Jabatan Pengangkutan Jalan (JPJ).
  2. Always check the background or history of the vehicle if possible before deciding to buy the vehicle for sale. If the vehicle has an outstanding loan, ensure that it's been paid before the change of ownership takes place.
  3. Check the service record to verify the vehicle's history and mileage.
  4. Request to have the vehicle tested by an independent service/repair shop.
  5. Insist on a proper Sales and Purchase Agreement.

When you sell ...

  1. Ask for identification documents from a potential buyer (IC, passport, driving license, etc) before you allow a test drive and check with your insurance company whether you have the necessary coverage. Some insurance policies do not cover your losses in case of theft or damage if you handed over the keys to the car.
  2. Individuals posing as car dealers may contact you with the promise to get your car sold. Sometimes they leave a small deposit, but then disappear with the car.
  3. Be sure that you have received full payment before you hand over the vehicle. If you accept payment by cheque, wait until it has been cleared by the bank.
  4. Be aware of buyers trying to buy your vehicle from a different country and who want to pay with a check or bank transfer. This is a common method used by fraudsters.
  5. Insist on a proper Sales and Purchase Agreement.

Rememeber ...

  1. View proper identification documents before you allow anyone to test drive of your vehicle.
  2. Beware of false documentation and individuals posing as car dealers.
  3. Check the vehicle's service record.

Branded items and software

It may sometimes be difficult to determine whether a product is a forgery or an original. We require all sellers of goods in selected categories to declare that the item they are selling is an original, but some sellers may still attempt to sell such items as pirated software or fake branded products, even if this is prohibited on www.mudah.my.

When you buy ...

  1. Ask for the original receipt to verify that the item is genuine or original.
  2. If a receipt is missing, you can request to meet the seller at an authorized shop to verify the authenticity before you pay.
  3. Please let us know immediately if you suspect that the item advertised is not original or pirated.
  4. Always notify us and lodge a police report if you have been cheated. Mudah.my will then cooperate with the police investigations.

When you sell ...

  1. You must ensure that the product you are selling is genuine/original.
  2. If you state that you are selling original items when you are actually selling pirated goods, you can be found guilty of committing fraud, whereby legal action can be taken against you by the police.

Rememeber ...

  1. Request original receipt.
  2. Verify authenticity.
  3. Fake or pirated goods are prohibited on 109.com.my.

Sending money or goods abroad

Beware of so-called "Nigerian letters" and other attempts by individuals in foreign countries to send items out of Malaysia. If a buyer wants to have the goods sent abroad, we recommend that you ignore the request. The purpose of Nigerian letters is simply to commit fraud.

How will I know that I have received a Nigerian letter?

  1. The letters are often written in poor English
  2. The letters use the expression "goods" or "the item" where they mostly do not specify the item advertised. This is because they often use a standard letter.
  3. The letters are usually sent from free e-mail addresses such as yahoo, gmail and hotmail.
  4. Letters often entice you by offering more money for goods than you requested.
  5. The buyer wants to pay by cheque or transfers the money into an account which doesn't exist.
  6. Sometimes the fraudster sends a fake payment confirmation which looks as if the money has been deposited into your account.

What can you do to protect yourself?

Nigeria letters are meant to trick you into sending money or goods to foreign countries. Please DO NOT get involved in such transactions as they are most often fraudulent.

Rememeber ...

  1. Beware of e-mails requesting you to send goods abroad.
  2. Do not accept payment by cheque.
  3. Beware of false payment confirmations.

Transferring money online

When you make payments and money transfers online, you should be aware of 'Phishing'. Phishing is when someone tries to trick you to obtain sensitive information such as passwords, bank account and credit card numbers, etc. It is often triggered by fake e-mails from Internet sites you know or trust, asking you to click a link and fill in your personal data / information. There are examples where links in e-mails claiming to be from a bank lead to a page who seems to belong to the bank (e.g. looking like a bank's website), but which is controlled by someone else. Such sites are used to cheat the public and obtain personal information.


To protect yourself

As a rule, never click on links in e-mails claiming to come from banks or other financial institutions. You should always surf directly to the bank's or financial institution's website instead of accessing your bank account from another website. Be suspicious of e-mails (or the page they link to) asking you to enter your password or other relevant information to your bank account. There have also been reported cases where computer viruses are used to intercept and collect sensitive information. Therefore, make sure that your computer has the latest updated virus protection software. Your operating system and internet browser should also be updated with the latest security updates.

Took from http://www.mudah.my/

Monday, January 26, 2009

Linux ~ Mount Image File

sudo mount -t iso9660 filename.iso /home/mountpoint/

關於在suse linux執行一些windows程式

linux 目前可以使用 wine 程式來執行 windows 一些程式檔案, 不過通常你得有 windows 分割區檔案系統, 然後設定好 wine 組態檔案就可以使用 wine xxxx.exe 方式來執行該程式檔案.

opensuse linux 有收錄 wine, 所以您可以測試玩看看.

wine 不保證完全能夠模擬執行, 而且模擬執行速度也比較慢.

至於 image 格式. 一般的 iso 檔案倒是可以直接 mount -o loop 方式來掛入使用, 其他太特殊的格式就沒有辦法掛入使用.

若是特殊格式, 那你都能夠使用其他程式轉成 iso 檔案格式再說.

1. bin2iso 可以把 bin/cue 格式轉成 iso

http://users.andara.com/~doiron/bin2iso/

2. ccd2iso 可以把 clonecd 建立的格式轉成

http://sourceforge.net/projects/ccd2iso/

3. mdf2iso 可以把 mdf 格式檔案轉成 iso

http://mdf2iso.berlios.de/

4. nrg2iso 可以把 nero 的 nrg image 檔案轉成

http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html

Linux 簡繁互換

linux下的正簡(繁簡)中文轉換linux下的正簡(繁簡)中文轉換

因為兩岸中文系統的不一樣,以致於現在電腦系統的中文系統出現了正體中文和簡體中文的差異。有些檔案或是網頁是用簡體中文寫的,有些使用正體中文的朋友看 起來相當吃力。反之亦然。在linux下這只要下個指令就可以做好轉換,只是在做轉換前必須先弄清楚目前的資料是使用什麼編碼方式。

在這裡將採用iconv這個指令來達成這個動作。iconv是linux底下用來轉換編碼方式的指令,在這裡介紹使用iconv達成正體中文和簡體中文互換的方法。現在大部份的系統預設採用的是Unicode(UTF8)編碼方式,如果現在有個檔案text.txt內容是採用UTF8編碼的正體中文,透過以下的幾個指令可以將檔案內容改成UTF8編碼的簡體中文。
第一步,先將UTF8編碼轉換成Big5編碼並存成temp_big5.txt
# iconv text.txt -f utf8 -t big5 -o temp_big5.txt

第二步,再將temp_big5.txt由Big5編碼轉換到gb2312編碼並存成temp_gb2312.txt
# iconv text_big5.txt -f big5 -t gb2312 -o temp_gb2312.txt

第三步,再將temp_gb2312.txt由gb2312編碼轉換回UTF8編碼並存成target.txt
# iconv temp_gb2312.txt -f gb2312 -t utf8 -o target.txt

這樣就完成了將text.txt中的繁體中文轉換到簡體中文了。

但是每次執行都這麼麻煩的執行那麼多次嗎?當然不用囉!以上那麼多的指令可以濃縮成一步,但是有點長就是了!
# iconv text.txt -f utf8 -t big5 | iconv -f big5 -t gb2312 | iconv -f gb2312 -t utf8 -o target.txt
這樣就可以直接將text.txt檔案中的繁體中文轉換到target.txt的簡體中文了

當然還有更省事的方法,就是將指令存shell檔案,要用時就可以省下很多打字的時間了。將以下的內容存成tc2sc_file.sh
#Translate txt file from Traditional Chinese to Simply Chinese
iconv $1 -f utf8 -t big5 | iconv -f big5 -t gb2312 | iconv -f gb2312 -t utf8 -o $2

再用chmod指令讓tc2sc.sh具有執行的權限
# chmod 755 tc2sc_file.sh

完成後就可以直接使用tc2sc_file.sh來做轉檔的工作,EX: tc2sc_file.sh 來源檔案 目的檔案

如果是要把簡體中文轉成正體中文的話,只要將編碼的順序整個反過來就可以了,如下。
# iconv text.txt -f utf8 -t gb2312 | iconv -f gb2312 -t big5 | iconv -f big5 -t utf8 -o target.txt

sc2tc_file.sh
#Translate txt file from Simply Chinese to Traditional Chinese
iconv $1 -f utf8 -t gb2312 | iconv -f gb2312 -t big5 | iconv -f big5 -t utf8 -o $2

Linux 指令備忘

用來紀錄一些指令的應用,有需要就更新。
====================
指令:date 一般應用:檔名的變數
date '+%Y%m%d-%H%M%S'
結果 ==> 20060203-123740 年月日-時分秒(用大寫的H是為了取得兩位數,方便用在檔名上)

====================
指令:find
find . -name '字串'(找出字串相同的檔名)
find . -type d(找出目錄) -type f(找出檔案)
find . -name 'tmp*' -exec cat {} ;(找出目錄下以tmp開頭的檔案並且 "一個一個" cat 出內容。*請注意是一個一個,所以-exec這種傳遞方式,並不適合用tar這個命令來做備份)
find /etc/mail/ -name 'sendmail.*' | xargs tar zcf sendmail.tgz(備份/etc/mail/目錄下以sendmail.開頭的所有檔案)
====================
指令:ls
ls -Al "/etc/" | grep ^d | awk 'BEGIN {FS=" "} {print $9}' > /tmp/list.txt
(將 /etc/ 這個目錄底下的所有目錄名稱,放到/tmp/list.txt這個檔案下。)(看似這個命令沒有多大的意義,實際上可以配合Script做備份用的檔名,變成 /etc/目錄下,每一個目錄都備份成一個檔案。)
Script ==> backup.sh
#!/bin/bash
for i in `cat /tmp/list.txt`; do
tar zcf /backup/etc_$i.tgz /etc/$i
done
====================
2006/02/06新增
====================
指令:col
取消多餘的空格(檢查開頭是否有空白,最後是否有多餘的空白使用)
Ex : cat mrtg.cfg | col > mrtg.cfg.new
col -x 可以將 [tab] 取代對等的空白鍵。
col -b 不輸出任何退格符號,可以用在列印 manpage
Ex : man | col -b | lpr
====================
指令:unix2dos
# unix2dos filename.txt
因為Windows跟Linux的換行指令不相同,我們可以用這個命令來作處理。
====================
2006/02/07新增
====================
Big5 跟 UTF-8 之間的轉換
檔名的轉換:Big5 ==> UTF-8
convmv -f big5-eten -t utf8 -r /home/mason/public_html
convmv -f big5-eten -t utf8 -r --notest /home/mason/public_html
第一行是把轉換的資料列出來觀看,如果確定要轉換的話,就要用第二行命令。
檔案內容的轉換:Big5 ==> UTF-8
iconv -f big5 -t utf8 test.txt > newTest.txt
UTF-8 ==> Big5
iconv -f utf8 -t big5 test.txt > newTest.txt
====================