现在Google中文版本少了一个’Google in English’的链接。实际上那个链接是http://www.google.com/ncr,点完这个后,在大陆访问Google缺省显示界面变为英文。
或者你用Firefox而且有extension Cookie Editor,修改浏览器的cookie也可以达到这个目的。.google.com domain下的PREF,将CR=?改为CR=2
现在Google中文版本少了一个’Google in English’的链接。实际上那个链接是http://www.google.com/ncr,点完这个后,在大陆访问Google缺省显示界面变为英文。
或者你用Firefox而且有extension Cookie Editor,修改浏览器的cookie也可以达到这个目的。.google.com domain下的PREF,将CR=?改为CR=2
mod_rewrite is one of the most useful module for Apache.
But what to do if I’m on a Windows IIS server? I only googled a few commercial ISAPI modules (ISAPI ReWrite, IIS Rewrite). This is the most painful on Windows platform.
OK. Since I only need a few feature of the rewrite currently. I decided to do it myself. An early version is available from CVS repository – anoncvs without password.
Yeah. The RewriteCond feature haven’t been implemented. Sorry It’s only one afternoon work and I’m still a newbie on ASP.NET platform.
Here’s the sample configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
–update: URL Rewrite Filter for IIS is open source. I haven’t tested it.
My CDMA phone connects to the laptop via a USB cable. So I have to configurate the kernel with USB Modem support.
Device Drivers -->
USB support -->
[M] Support for Host-side USB
[M] USB Modem (CDC ACM) support
Check if the device is well reconized after install and modprobe the module(cdc_acm).
# dmesg | grep acm
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
Great, the device has been recognized. Then create the ttyACM0 node in /dev is it does exist.
# mknod /dev/ttyACM0 c 166 0
Edit the configuration file /etc/conf.d/net.ppp0 (or .ppp1, .ppp2). Here’s mine
/etc/init.d/net.ppp0:
PEER="cdma" # Define peer (aka ISP)
DEBUG="yes" # Turn on debugging
PERSIST="no" # Redial after being dropped
ONDEMAND="no" # Only bring the interface up on demand?
MODEMPORT="/dev/ttyACM0" # TTY device modem is connected to
LINESPEED="230400" # Speed pppd should try to connect at
INITSTRING="" # Extra init string for the modem
DEFROUTE="yes" # Must pppd set the default route?
HARDFLOWCTL="yes" # Use hardware flow control?
ESCAPECHARS="yes" # Use escape caracters ?
PPPOPTIONS="" # Extra options for pppd
USERNAME="card" # The PAP/CHAP username
PASSWORD="card" # Your password/secret. Ugly I know, but i
# will work on something more secure later
# on. 700 permission on /etc/init.d/net.ppp0
# should be enouth for now.
NUMBER="#777" # The telephone number of your ISP
# leave blank for leased-line operation.
REMIP="" # The ip of the remote box if it should be set
NETMASK="" # Netmask
IPADDR="" # Our IP if we have a static one
MRU="768" # Sets the MRU
MTU="768" # Sets the MTU
RETRYTIMEOUT="60" # Retry timeout for when ONDEMAND="yes" or
# PERSIST="yes"
IDLETIMEOUT="600" # Idle timeout for when ONDEMAND="yes"
PEERDNS="yes" # Should pppd set the peer dns?
AUTOCFGFILES="no" # By default this scripts will generate
# /etc/ppp/chat-isp, /etc/ppp/chap-secrets,
# /etc/ppp/pap-secrets and /etc/ppp/peers/isp
# automatically. Set to "no" if you experience
# problems, or need specialized scripts. You
# will have to create these files by hand then.
AUTOCHATSCRIPT="no" # By default this script iwll generate
# /etc/ppp/chat-${PEER} automatically. Set to "no"
# if you experience problems, or need specialized
# scripts. You will have to create these files by
# hand then.
# Directory where the templates is stored
TEMPLATEDIR=/etc/ppp
Then have to manual edit two additional files /etc/ppp/chat-cdma and /etc/ppp/peers/cdma.
/etc/ppp/chat-cdma:
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO ANSWER'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDT#777'
'CONNECT' ''
'TIMEOUT' '5'
'~--' ''
/etc/ppp/peers/cdma:
connect "/usr/sbin/chat -v -f /etc/ppp/chat-cdma"
defaultroute
usepeerdns
/dev/ttyACM0
230400
local
novj
Now everything is OK. To dialup the Internet simply type
/etc/init.d/net.ppp0 start
The CDMA ISP is China Unicom.
If the above configurations does not fit for your situation try to search more information here.
我曾猜想会出个FlickrFS,今天果然看到FlickrFS的Announcement。
三个月前http://www.google.com/search?q=flickrfs还只能看到一个搜索结果,就是我的那个猜想,今天已经上万条了。
看说明,linux下upload图片更简单了,直接cp到flickrfs的目录下,加tags就是建目录。下载图片也一样,就没有FlickrBackup什么事情了,rsync一下就好了嘛。
update: 中文支持出问题。试安装cjkpython也不行,修改了一下代码,可以了。可是图片下载却是zero byte,还是等个stable版本再玩。
Generated: Tue Nov 08 2005 20:16:10 GMT+0800 (CST)
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050929 Firefox/1.0.7
Build ID: 2005092922
Enabled Extensions: (16)
Installed Themes: (1)
Installed Plugins: (5)
酒店免费上网,不过今天来的blogger很多,导致网络拥堵。。。
dragon ~ # traceroute -n blog.cnblog.org
traceroute to blog.cnblog.org (211.152.33.116), 30 hops max, 40 byte packets
1 192.168.50.254 0.238 ms 0.137 ms 0.140 ms
2 218.1.60.202 1112.622 ms 987.631 ms 1048.243 ms
3 218.1.62.57 873.728 ms 782.866 ms 1187.260 ms
4 218.1.4.41 948.176 ms 1076.316 ms 1000.450 ms
5 218.1.0.214 1208.034 ms 944.970 ms 976.052 ms
6 61.152.81.66 1090.601 ms 1033.477 ms 959.953 ms
7 61.152.87.162 1522.018 ms 1575.237 ms 1390.375 ms
8 211.152.63.57 937.147 ms 1070.089 ms 1265.299 ms
9 211.152.63.30 1518.643 ms 1285.596 ms 1388.218 ms
10 211.152.33.116 1515.401 ms 1259.340 ms 962.128 ms
dragon ~ #
明天会场的wifi会不会更挤?
可以在此报名
出于兴趣,上午下载安装了一下tiger-x86。如果也有兴趣可以看看这里的文章。