404's blog

忍者神龟主题歌的歌词

来源: http://www.ninjaturtles.com/cartoon/theme.htm

Teenage Mutant Ninja Turtles
Teenage Mutant Ninja Turtles
Teenage Mutant Ninja Turtles
Heroes in a half-shell
Turtle power!

heroes in a half-shell 这句挺绝。背着壳的英雄?? :)

drupal运行在nginx下时候301 loop问题的解决方法

用nginx反响代理给apache来跑drupal。每个站点的首页都显示正常,其它任何页面,静态文件没有问题,但页面不行,出 301 redirect permanant 过多一直到浏览器报错和白屏。

我用的nginx配置文件时omega8cc的,不可能有错误。而且同样的配置,如果proxy给后台的fastcgi就不出这个问题。

所以我开始猜测是apache那边trailing slash设置问题,也不断地修改nginx的conf。但都不行。再排除boost。

今天突然想到了global redirect,发现如果停了global redirect就一起正常。但我不想停那个模块。看它的代码,开始想关掉deslasing这个功能,不行,最后找到问题在 Non-clean to Clean: 这个开关,关了就好了

>Non-clean to Clean:
>关闭
>进行中

修改 ulimint 中的最大打开文件数方法:适用debian/ubuntu 系列的 gnu/linux

参考: 

$sudo gedit /etc/security/limits.conf    #open the file in gedit
user  soft  nofile 9000
user  hard  nofile 65000

$ sudo gedit /etc/pam.d/common-session #open the file in gedit

Then add the line:
session required pam_limits.so

Now after rebooting you can see in the terminal with ulimit -a the change.

http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-...

有 shock and awe,也有 shock and yawn

Shock and awe, technically known as rapid dominance, is a military doctrine based on the use of overwhelming power, dominant battlefield awareness, dominant maneuvers, and spectacular displays of force to paralyze an adversary's perception of the battlefield and destroy its will to fight. ...
en.wikipedia.org/wiki/Shock_and_awe

shock and yawn呢,自然是你惊吓我一下,切,打个哈欠,根本不在乎。

紧急提醒:北京公交一卡通查询余额和查询换卡充值点电话;另:一般充值点边上的闲散人员提供的换卡服务都是蒙人的!!

官方信息:

北京市公交一卡通查询余额和查询换卡充值网点电话:88087733
换卡(比如你的卡“消磁了--实际上是芯片不工作了”)
动物园地下公交枢纽15路总站
西单民族宫剧院东侧
公交一卡通网站: http://www.bjsuperpass.com/

闲散人员提供换卡服务如何蒙人

他会拿到你的卡,说说手5元手续费,剩下的你的卡余额和卡工本费都给你。然后他打上面的电话,查询到你的余额。然后谎报一个余额。比如我的余额明明是33元,加工本费应该是53元。他说只有20元。然后给你加工本费20元,再收手续费5元。这样一共给你35元。实际应该给你53-5=48元。

你问他要电话说自己查余额,他说那个特殊电话不能给。

靠,以为我不会上网啊!

LP竟然是long playing phoonograhp record的意思

也就是说之所以一般人称LP为密纹唱片,我想因为纹理比较密,所以存储的音乐多。:)所以播放时间长。

我今天才知道这个。

一直以为和黑胶有关心,但黑胶是只材料吧,黑色橡胶。

a long-playing phonograph record; designed to be played at 33.3 rpm
http://wordnetweb.princeton.edu/perl/webwn

在gnu/linux服务器上安装firefox的flash插件

服务器上没有桌面程序,无法点击下载的flash插件的.deb包,因此求助于命令行了

  sudo apt-get install mozilla-plugin-gnash
  sudo apt-get install flashplugin-nonfree

我装flash只有一个目的:google reader中mp3附件没有flash,不光无法收听(我从不在那里听),而且downloadthemall这个插件无法获取所有mp3的url,因此不能批量下载。

运行完了那些命令就好了。

Syndicate content