openwrt make prereq缺少ld86、as86决办法
出现以下错误
wwek@ubuntu:~/openwrt/attitude_adjustment$ make prereq Checking 'ld86'... failed. Checking 'as86'... failed. lilo: lilo requires ld86. lilo: lilo requires as86. make[2]: *** [prereq] Error 1 缺少as86 ld86,安装下即可~ sudo apt-get install bin86
修改Dreamweaver代码颜色模板更适合编程
Dreamweaver默认的代码颜色着实太差了,白色的背景不适合长时间看代码~
来个代码颜色模板吧。
最终效果

仅在windows下的安装方法
- 1) Close Dreamweaver
- 2) Browse to: C:\Documents and Settings\%username%\Application Data\Adobe\Dreamweaver 9\Configuration\CodeColoring (on WinXP)
or C:\Users\%username%\Application Data\Adobe\Dreamweaver 9\Configuration\CodeColoring (on Vista)
or C:\Users\%username%\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\CodeColoring (on Windows 7) - 3) Rename the Colors.xml file to something different – say Colors2.xml (This will be the file you go back to if you don’t like the new colour scheme)
- 4) Download and extract the the zip at the end of this article to the location you opened at point 2.
- 5) Open Dreamweaver and go to Edit/Preferences/Code Colouring and change the default background colour to #003
下载dreamweaver_colours.zip (Dreamweaver CS4)
下载dreamweaver_colours(Dreamweaver CS5 Dreamweaver CS6)
原文:
http://www.thatwebguyblog.com/post/a_dark_code_view_theme_for_dreamweaver/
btw:Notepad++的配色方案
wget https 并且带有端口号的资源
如下例子是做镜像以下url。 该url为https 并且有端口号。
wget -r -p -np -k –no-check-certificate https://8.8.8.8:1433/info
Nginx一个server主机上80、433http、https共存
如果一站点既要80 http访问,又要443https访问。
要让https和http并存,不能在配置文件中使用ssl on,配置listen 443 ssl;
实例
server
{
listen 80;
listen 443 ssl;
server_name www.iamle.com;
index index.html index.htm index.php;
root /home/wwwroot/www.iamle.com/;
#ssl on; 这里要注释掉
ssl_certificate /usr/local/nginx/conf/ssl/www_iamle_com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/www_iamle_com.key;
#以下配置省略
}
From:http://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server
It is good practice to configure separate servers for HTTP and HTTPS protocols from the very start. Although their functionalities currently seem equal, this may change significantly in the future and using a consolidated server may become problematic. However, if HTTP and HTTPS servers are equal, and you prefer not to think about the future, you may configure a single server that handles both HTTP and HTTPS requests by deleting the directive “ssl on” and adding the “ssl” parameter for *:443 port:
Nginx平滑升级Tengine保留status
wget -c http://tengine.taobao.org/download/tengine-1.4.2.tar.gz tar zxvf tengine-1.4.2.tar.gz cd tengine-1.4.2 ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 make mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old rm -rf /usr/local/nginx/sbin/nginx cp -r objs/nginx /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx -t kill -USR2 `cat /usr/local/nginx/logs/nginx.pid` kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin` /etc/init.d/nginx restart /usr/local/nginx/sbin/nginx -v
更新于2012年12月14日