Google URL shortener

Oct 8th, 2010No Comments

goo.gl/a1ZC represent here ~

by Google URL Shortner

adblock plus & discuss/uwants

Mar 6th, 2010No Comments

quick solutions:- add filter:
*_rev09.js$domain=discuss.com.hk|uwants.com

problem:

閣下正在使用的瀏覽器並不支援本網站,
建議使用 Internet Explorer, Firefox, Chrome 等瀏覽器來瀏覽本站。

如您已經正在使用上述瀏覽器,則可能是您在瀏覽器內安裝了一些附加元件或擴充功能,
而這些功能並不兼容於本網站,導致問題發生。
建議您移除一些可能會導致問題的附加元件,再重新載入本站。

多謝支持Uwants。

solutions:(source @hkgolden)

Preference > add filter > *_rev09.js$domain=discuss.com.hk|uwants.com

common_rev09.js will detect adblock plus plugin.

搬家

Sep 16th, 20081 Comment

很久沒有blog, 今日中秋節補假進行一次”搬家”
其實都不是搬家, 只係將幾年前blogspot 的entry import 到 wordpress,
再將LifeType 既entry?SQL copy 到?wordpress

雖然呢個default template 有點簡單 (都唔只有點…), 過幾日有時間再搵d template

Reference:

從 Blogger 轉移到 WordPress 的技巧
http://www.vixual.net/blog/archives/242
到 WordPress 的 [後台管理] -> [管理] -> [匯入] -> [部落客]。

終於把lifetype 轉成 WordPress
http://blog.mypage.idv.tw/?p=36
透過sql語法將 資料 新增到 WordPress 資料庫中

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# comment
INSERT INTO wp_comments (comment_ID, comment_post_ID, comment_content,
comment_date, comment_date_gmt, comment_author_email, comment_author_url,
comment_author, comment_author_IP)
SELECT XXX+id, YYY+article_id, normalized_text, DATE, DATE + INTERVAL - 16 HOUR,
user_email, user_url, user_name, client_ip FROM plog_articles_comments
 
# post
INTO wp_posts (ID, post_author, post_date, post_date_gmt, post_modified,
post_modified_gmt, comment_count)
SELECT YYY+id, 2, DATE, DATE + INTERVAL - 16 HOUR, DATE,
DATE + INTERVAL - 16 HOUR, num_comments FROM plog_articles
 
UPDATE wp_posts, plog_articles_text
SET wp_posts.post_title = plog_articles_text.topic
WHERE wp_posts.ID = plog_articles_text.id + YYY
 
UPDATE wp_posts, plog_articles_text
SET wp_posts.post_content = plog_articles_text.TEXT
WHERE wp_posts.ID = plog_articles_text.id + YYY
 
# fill out guid
UPDATE wp_posts
SET wp_posts.guid = CONCAT("<a href="http://www.YourDomain.com/blog/archives/">http://www.YourDomain.com/blog/archives/</a>", wp_posts.ID)
WHERE wp_posts.guid = ""
 
# clean out [@more@]
UPDATE wp_posts SET post_content=REPLACE(post_content,'[@more@]',"");

IPCop + OpenVPN

Sep 19th, 2007No Comments

http://www.ipcop.org/
http://www.howtoforge.com/perfect_linux_firewall_ipcop
http://www.howtoforge.com/perfect_linux_firewall_ipcop_p2?s=6cc84678b74d0fbf939f3a371c59e028&
http://thinkhole.org/wp/2006/03/28/ipcop-openvpn-howto
http://www.zerina.de/zerina/?q=documentation/howtorw-step1
http://www.smokinggun.de/?p=78
run vmware-config.pl to identify which vmnet 0/2 is bridge to eth0/1
for me, vmnet0 bridge to eth1, vmnet2 bridge to eth0

coz ethernet card inside vm are same name …. AMD PCnet xxxxx
1st ethernet in vm setting should be green

How to use Nslookup to verify MX record configuration

Jan 8th, 2007No Comments

How to use Nslookup to verify MX record configuration

  1. At a command prompt, type nslookup, and then press ENTER.
  2. Type server <IP address>, where IP address is the IP address of your external DNS server.
  3. Type set q=MX, and then press ENTER.
  4. Type <domain name>, where domain name is the name of your domain, and then press ENTER. The MX record for the domain you entered should be displayed. If the MX record is not displayed, DNS is not configured properly.
Example

The example below shows how MX records appear for the fictitious domain, example.com.

C:> nslookup

Default Server: pdc.corp.example.com

Address: 192.168.6.13

> server 172.31.01.01

Default Server: dns1.example.com

Address: 172.31.01.01

> set q=mx

> example.com.

Server: dns1.example.com

Address: 10.107.1.7

example.com MX preference = 10, mail exchanger = mail1.example.com

example.com MX preference = 10, mail exchanger = mail2.example.com

example.com MX preference = 10, mail exchanger = mail3.example.com

example.com MX preference = 10, mail exchanger = mail4.example.com

example.com MX preference = 10, mail exchanger = mail5.example.com

mail1.example.com internet address = 172.31.31.01

mail2.example.com internet address = 172.31.31.02

mail3.example.com internet address = 172.31.31.03

mail4.example.com internet address = 172.31.31.04

mail5.example.com internet address = 172.31.31.05

In this example, the preconfigured DNS server is behind a proxy server. Therefore, an external or Internet DNS server with a known IP address of 172.31.01.01 was used to perform the query. Next, the query type was set to MX to locate the mail exchangers for example.com. In this example, five SMTP servers are equally balanced, each with its own IP address. However, your domain might only have a single entry, as seen in the following example:

contoso.com MX preference = 10, mail exchanger = mailbox.contoso.com

mailbox.contoso.com internet address = 10.57.22.3

Telnet – SMTP Commands

Jan 2nd, 2007No Comments

In order to access your mailbox you will need 3 things:

  • An active internet connection (an embarrasing stage to miss sometimes!)
  • The address of a mail server capable of relaying for you – usually provided by your dialup provider (e.g. mail.domain.ext)
  • A valid email address (e.g. mail@domain.ext)

The first thing to do is to open a connection from your computer to your mail server.
telnet mail.domain.ext 25
You should receive a reply like:
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?
?

You will then need to delcare where you are sending the email from:
HELO local.domain.name – dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123.
This should give you:
You will then need to delcare where you are sending the email from:
HELO local.domain.name – dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123.
This should give you:

?

250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you?

Now give your email address:
Now give your email address:

?

MAIL FROM: mail@domain.ext
Should yeild:
250 2.1.0 mail@domain.ext... Sender ok
If it doesn’t please see? possible problems.Now give the recipients address:
RCPT TO: mail@otherdomain.ext
Should yeild:
250 2.1.0 mail@otherdomain.ext... Recipient ok
If it doesn’t please see
possible problems.To start composing the message issue the command

DATA?

If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)

You may now proceed to type the body of your message (e.g. hello mail@otherdomain.ext from mail@domain.ext)

To tell the mail server that you have completed the message enter a single “.” on a line on it’s own.
The mail server should reply with:

250 2.0.0 ???????? Message accepted for delivery?

You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.

You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:

221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.

?

221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.

221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.