gcc -dM -E - < /dev/null
Friday, December 20, 2013
Monday, December 16, 2013
Saturday, December 14, 2013
Thursday, December 12, 2013
Set the DD-WRT based D-Link DIR-300 ver. B as a Repeater Bridge
Original link here: http://jgiam.com/2012/07/06/setting-up-a-repeater-bridge-with-dd-wrt-and-d-link-dir-600/wp-admin/install.php
Here are the steps I did (adapted from the DD-WRT Wiki). My primary router is configured with WPA2 AES. The secondary router is running DD-WRT build 14311. The latest build in the DD-WRT router database, build 14896, is buggy.
Here are the steps I did (adapted from the DD-WRT Wiki). My primary router is configured with WPA2 AES. The secondary router is running DD-WRT build 14311. The latest build in the DD-WRT router database, build 14896, is buggy.
- Restore Factory Defaults on Secondary (DD-WRT) Router
- Connect your computer to the secondary router via wired LAN port.
- Open the address http://192.168.1.1 in your web browser. Newer versions of DD-WRT will require you to set a password before you can continue.
- Open the Wireless -> Basic Settings tab
- Physical Interface Section
- Wireless Mode : Repeater Bridge
- Wireless Network Mode : Must Match Primary Router
- Wireless Network Name(SSID) : Must Match Primary Router exactly including exact case- Make sure you spell this correctly
- Wireless Channel : Must Match Primary Router (This will disappear once you put it in RB mode, and isn’t needed)
- Wireless SSID Broadcast : Enable
- Network Configuration : Bridged
- Save
- Physical Interface Section
- Open the Wireless -> Wireless Security tab
- Physical Interface Section
- Security Mode : Must Match Primary Router and DD-wrt only works reliably with WEP or WPA2-AES
- WPA Algorithms : Must Match Primary Router
- WPA Shared Key : Must Match Primary Router
- Key Renewal Interval (in seconds) : Leave default
- Save
- Physical Interface Section
- Open the Setup -> Basic Setup tab
- Connection Type will be: Disabled
- Set STP for Disabled (Enabled sometimes can cause connection problems) redhawk
- IP Address : 192.168.1.2 (Assuming Primary Router IP is 192.168.1.1)
- Mask : 255.255.255.0
- Gateway: 192.168.1.1 (again assuming Primary Router IP is 192.168.1.1)
- DHCP Server: Disable
- Local DNS: 192.168.1.1 (if IP of Primary Router is 192.168.1.1)
- Assign WAN Port to Switch : Optionally enable this to use the WAN port as another LAN port.
- Save
- Open Setup -> Advanced Routing tab
- Set Operating mode to “Router”
- Save
- Open Services
- Disable Dnsmasq
- Save
- Open the Security -> Firewall tab
- Uncheck all boxes…except Filter Multicast
- Disable SPI firewall
- APPLY Settings
- Reboot the router.
Wednesday, December 11, 2013
Tuesday, December 03, 2013
Saturday, October 19, 2013
Thursday, October 10, 2013
Monday, September 30, 2013
Sunday, September 29, 2013
轉貼:与美国接轨 托福考试中常见的美国城市别名
美国有很多的大城市,基本上每个城市都有自己的别名。这些别名大都与该城市的历史、地舆、社会习俗等因素有关。这些美国的城市名及别号假如泛起在托福听力中,大家就可以联想到相关的文化背景,节省托福听力时间。
阿伦敦(Allentown): 水泥城(Cement City)
阿格伦(Arkron):世界橡胶之都(Rubber Capital of the World);轮胎城(Tyre City)
伯明翰(Birmingham): 南方钢都(Pittsburgh of the South)
波士顿(Boston):豆城(Beantown);宇宙中央(Hub of the Universe)
布法罗(Buffalo):野牛城(Bison City)
查尔斯顿(Charleston):矮棕榈城(Palmetto City)
芝加哥(Chicago): 多风城(WindyCity)
达拉斯(Dallas): 大D城(Big D)
丹佛(Denver):一里高城(Mile High City)
底特律(Detroit):汽车城(Motor City; Motown)
哈特福德(Hartford):保险城(Insurance City)
赫什(Hershey):世界巧克力之都(Chocolate Capital of the World)
希洛(Hilo): 兰都(OrchidCapital)
好莱坞(Hollywood):世界影都(Film Capital of the World)
印第安纳波利斯(Indianapolis):铁路城(Railway City)
卡拉马祖(Kalamazoo):芹菜城(Celery City)
克奇肯(Ketchikan):图腾世界(World of Totems)
莱克星顿(Lexington):美国自由的诞生地(Birthplace of American Liberty)
明尼阿波利斯圣保罗(Minneapolis_St.Paul): 孪生城(Twin Cities)
莫比尔(Mobile):海湾城(Gulf City)
纳什维尔(Nashville):音乐城(Music City)
新奥尔良(NewOrleans): 新月城(Crescent City)
纽约(NewYork): 大苹果(Big Apple)
奥德城(OldTown): 独木舟城(Canoe City)
帕特森(Paterson):丝绸城(Silk City)
费城(Philadelphia):博爱城(City of Brotherly Love)
匹兹堡(Pittsburgh):钢都(Steel City)
雷丁(Reading):椒盐饼干城(Pretzel City)
圣弗朗西斯科(SanFrancisco): 金门城(City by the Golden Gate)
圣路易斯(St. Louis): 西方之门户(Gatewayto the West)
萨福克(Suffolk):花生城(Peanut City)
托莱多(Toledo):世界草都(Grass Capital of the World)
杨斯顿(Youngston):钢谷(Steel Valley)
以上就是一些美国知名大城市的一些别称,同学们可以在平时有空经常看看,希望对同学们的托福听力有所帮助。
阿伦敦(Allentown): 水泥城(Cement City)
阿格伦(Arkron):世界橡胶之都(Rubber Capital of the World);轮胎城(Tyre City)
伯明翰(Birmingham): 南方钢都(Pittsburgh of the South)
波士顿(Boston):豆城(Beantown);宇宙中央(Hub of the Universe)
布法罗(Buffalo):野牛城(Bison City)
查尔斯顿(Charleston):矮棕榈城(Palmetto City)
芝加哥(Chicago): 多风城(WindyCity)
达拉斯(Dallas): 大D城(Big D)
丹佛(Denver):一里高城(Mile High City)
底特律(Detroit):汽车城(Motor City; Motown)
哈特福德(Hartford):保险城(Insurance City)
赫什(Hershey):世界巧克力之都(Chocolate Capital of the World)
希洛(Hilo): 兰都(OrchidCapital)
好莱坞(Hollywood):世界影都(Film Capital of the World)
印第安纳波利斯(Indianapolis):铁路城(Railway City)
卡拉马祖(Kalamazoo):芹菜城(Celery City)
克奇肯(Ketchikan):图腾世界(World of Totems)
莱克星顿(Lexington):美国自由的诞生地(Birthplace of American Liberty)
明尼阿波利斯圣保罗(Minneapolis_St.Paul): 孪生城(Twin Cities)
莫比尔(Mobile):海湾城(Gulf City)
纳什维尔(Nashville):音乐城(Music City)
新奥尔良(NewOrleans): 新月城(Crescent City)
纽约(NewYork): 大苹果(Big Apple)
奥德城(OldTown): 独木舟城(Canoe City)
帕特森(Paterson):丝绸城(Silk City)
费城(Philadelphia):博爱城(City of Brotherly Love)
匹兹堡(Pittsburgh):钢都(Steel City)
雷丁(Reading):椒盐饼干城(Pretzel City)
圣弗朗西斯科(SanFrancisco): 金门城(City by the Golden Gate)
圣路易斯(St. Louis): 西方之门户(Gatewayto the West)
萨福克(Suffolk):花生城(Peanut City)
托莱多(Toledo):世界草都(Grass Capital of the World)
杨斯顿(Youngston):钢谷(Steel Valley)
以上就是一些美国知名大城市的一些别称,同学们可以在平时有空经常看看,希望对同学们的托福听力有所帮助。
Build emacs 24.3 from source for Ubuntu 12.04
sudo apt-get install build-essential libxpm-dev libgif-dev libtiff4-dev libjpeg-dev libgtk-3-dev xaw3dg-dev libdbus-glib-1-dev libgpmg1-dev libgnome2-dev libotf-dev libncurses5-dev libm17n-dev
tar axf emacs-24.3.tar.xz
mkdir bld
cd bld
../emacs-24.3/configure --prefix=/home/sun409/tools --without-x --without-sound --without-pop
make
make install
tar axf emacs-24.3.tar.xz
mkdir bld
cd bld
../emacs-24.3/configure --prefix=/home/sun409/tools --without-x --without-sound --without-pop
make
make install
Thursday, September 19, 2013
20130919 騎車晨跑
今天晨跑的體會是:
①過彎是要一邊拉後剎,一邊含油門以維持轉速。沒辦法,這是 CVT 該有的浪漫。
②600 仿賽跟公升仿賽真的有差,而且差很多,難怪大家都說要直上公升級的。
①過彎是要一邊拉後剎,一邊含油門以維持轉速。沒辦法,這是 CVT 該有的浪漫。
②600 仿賽跟公升仿賽真的有差,而且差很多,難怪大家都說要直上公升級的。
Sunday, September 08, 2013
Friday, August 23, 2013
Wednesday, August 14, 2013
Saturday, August 10, 2013
Tuesday, July 30, 2013
Subscribe to:
Posts (Atom)