120523 柏林六味壮骨速溶茶

柏林六味壮骨速溶茶http://t.cn/zO1SGjX
淘宝网店35元买3瓶包邮。村里人很多人在买,说效果很不错,当地卖40元。淘宝卖家说一箱有80瓶,但即使买20瓶也不会更优惠,顶多一两元钱。到底这药为何顶用不甚清楚,说是主要补钙,但我对中药早已抱不信任态度,或许它有什么激素之类,难说。
另一家倒是便宜,货价27,运费10多元。
F已经帮旺儿家有卖了20多瓶。

noon.吃韭菜馅菜菜火烧。eve.又吃包子。

Yd.eve猫像病了。发现奇怪地卧炕上,就看,问到味道怪异,后才发现竟然屁股上糊着屎,才觉出是臭味。可能也是拉肚子,或许吃坏了,好可怜。
但今天看又没什么问题了,屁股大概自己舔干净了。

Td.am. FM still hoe.

对编程随想很是佩服:
文中细心地加了许多链接,让人看到相关知识。
而且博主匿名也就不图名,站上也不挂广告,
看起来就是纯粹无私奉献而且坚持不懈
http://program-think.blogspot.com

2012年5月23日23:04:08

时间:2012-05-23 下午11:04:00 
标签: log

2014-01-12 20:24:31 Migrated From Blogger

Google Chrome/IE/FireFox查看HTTP请求头request header响应头response header|审查元素Network空的不显示

chrome查看网页header,鼠标右键打开审查元素,或快捷键Shift+Ctrl+I或者shift+ctrl+c
当我打开Network后,发现里面是空的什么也没有。
查了下,才知,需要刷新页面才能显示出来。

想了想也是应该,只有重新载入网页,chrome才能捕获header信息。

据说这个功能很好很强大,可以用来找到隐藏的视频文件源地址。很多非专业人士用审查元素好像也就是来干这个。

IE和FireFox查看页面header信息需要插件
IE:HttpWatch,Fiddler2
FireFox:Firebug
————————
chrome如何查看网页header信息
1,Shift+Ctrl+I 调出 我们牛逼的,性感代码式的调试工作台~~
2,然后载入网页.
3,再然后,去看Network信息…
4,亮点来了,点击Network信息的第一个玉米.
小人物  2011-10-22 20:07:27
光年论坛 http://www.gnbase.com/thread-8569-1.html

使用chrome浏览器自带的开发者工具查看http头的方法
1.在网页任意地方右击选择审查元素或者按下 shift+ctrl+c打开chrome自带的调试工具;
2.选择network标签,刷新网页(在打开调试工具的情况下刷新);
3.刷新后在左边找到该网页url,点击 后右边选择headers,就可以看到当前网页的http头了;
libi 于2012年05月11日 http://libisky.com/web/php/410.html

请求Header(HTTP request header )
Host  请求的域名
User-Agent 浏览器端浏览器型号和版本
Accept  可接受的内容类型
Accept-Language 语言
Accept-Encoding 可接受的压缩类型  gzip,deflate
Accept-Charset 可接受的内容编码  UTF-8,*

服务器端的响应Header(response header)
Date  服务器端时间
Server  服务器端的服务器软件  Apache/2.2.6
Etag  文件标识符
Content-Encoding传送启用了GZIP压缩  gzip
Content-Length 内容长度
Content-Type 内容类型
响应Headers,我们应该时刻留意它们。这些信息无法直接获取,需要依靠第三方工具。
阅微堂张志强  http://zhiqiang.org/blog/it/speedup-blog-http-headers.html

Chrome快捷键
Ctrl + Shift +B :打开书签管理器
Ctrl + Shift + T :恢复已关闭的标签页(最多恢复10项)
CTRL + D:当前页添加为书签
Ctrl + U:查看源文件

时间:2012-05-23 上午10:19:00 
标签: chrome

2014-01-12 20:06:43 Migrated From Blogger

120522 wordpress插件多说 Gzip

因为社交媒体连接插件总出错,换成使用多说插件,效果还行。

不小心看到有Gzip压缩的方式,可以节省SAE云豆。
所以就尝试,但费了很多时间,终究也没能成功开启,很是不甘。

am.FM hoeing.

今天发现西红柿与豆角扎了架。

中午吃油糕。

时间:2012-05-22 下午11:14:00 
标签: log

2014-01-11 21:07:10 Migrated From Blogger

始终无法开启wordpress for sae的Gzip

查了很多多的资料,尝试很多的方法,但最终都失败。
无论是SAE的AppConfig选择页面压缩,还是在index.php中添加代码,还是使用插件,都没有成功。
最接近成功的是添加
if(ereg(‘gzip’,$_SERVER[‘HTTP_ACCEPT_ENCODING’])){
if(substr($_SERVER[‘REQUEST_URI’],0,10)!=’/blog/wp-content/uploads/’)
ob_start(‘ob_gzhandler’);
可以成功压缩,但打开网页出现错误提示:SAE_Deprecated: Function ereg() is deprecated in index.php on line 15
好像是因PHP函数ereg()有问题,我简单把它换成preg_match(),也是可以压缩但显示错误提示。

我心中很是奇怪,明明按着别人说的方法,同样是wordpress for sae,人家可以,我为何就不可以。
—————-
Gzip测试地址
http://tool.chinaz.com/Gzips

在index.php中加入ob_start(‘ob_gzhandler’);
没有压缩

在index.php中加入ob_start(‘ob_gzhandler’);
是否压缩 是
压缩类型 gzip
原始文件大小 105 字节
压缩后文件大小 117 字节
压缩率(估计值) -11.43%
有压缩,还是负的,而且显示出错
SAE_Parse_error: syntax error, unexpected ‘/’ in index.php on line 17

if(ereg(‘gzip’,$_SERVER[‘HTTP_ACCEPT_ENCODING’])){
if(substr($_SERVER[‘REQUEST_URI’],0,10)!=’/blog/wp-content/uploads/’)
ob_start(‘ob_gzhandler’);
}
加入后可以压缩,但显示出错。
网址 snowson.sinaapp.com 检测结果如下:
是否压缩 是
压缩类型 gzip
原始文件大小 47427 字节
压缩后文件大小 17305 字节
压缩率(估计值) 63.51%
SAE_Deprecated: Function ereg() is deprecated in index.php on line 15
以上报错是因为PHP版本是5.3,5.3的版本废弃了‍ereg() 、‍ereg_replace() ,所以会出现这个问题,DEDE的程序都是用的这个如果用5.3版本的php就会出现这个,具体解决办法:http://hi.baidu.com/ooleo/blog/item/70fc5b820d6d5081f703a60e.html

if(ereg(’gzip’,$_SERVER[‘HTTP_ACCEPT_ENCODING’])){ //判断浏览器是否支持Gizp
if(substr($_SERVER[‘REQUEST_URI’],0,10)!=’/wp-content/uploads/’) //排除不需要Gzip压缩的目录
ob_start(’ob_gzhandler’); //打开Gzip压缩
}

if(substr($_SERVER[‘REQUEST_URI’],0,10)!=’/wp-content/uploads/’)
ob_start(’ob_gzhandler’);
SAE_Warning: Division by zero in index.php on line 15

PHP Version 5.3.8
System SAE LINUX ENVIRONMENT
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate,sdch

preg_match()

使用插件GZippy,不能启用Gzip,亦无报错。

if(strpos($_SERVER[‘HTTP_ACCEPT_ENCODING’], ‘gzip’) !== FALSE)  ob_start(‘ob_gzhandler’);
不能启用Gzip,亦无报错

WordPress Gzip Compression

SAE_Warning: ob_start() [ref.outcontrol]: output handler ‘ob_gzhandler’ cannot be used twice in wp-content/themes/elegant-box/header.php on line 1

SAE_Parse_error: syntax error, unexpected ‘/’ in index.php on line 17
SAE_Parse_error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in index.php on line 17

SAE官网链接图标
Powered by Sina App Engine

时间:2012-05-22 下午11:07:00 
标签: SAE, wordpress

2014-01-11 21:01:58 Migrated From Blogger

WordPress for SAE/wp4sae社交评论插件选择多说Social Medias Connect友言|WordPress for SAE错误信息汇总

WordPress 3.2.1 for SAE中自带着qiqiboy的Social Medias Connect(社交媒体连接)。用了一段时间,发现总是出错。
在添加评论时SAE_Warning: preg_replace_callback
文章中有图片发布时SAE_Warning: file_get_contents

本来想查查出错原因,后来发现很多人都在说多说插件不错,前些天正好也有看到,而“科学松鼠会正在使用多说”,这也让人觉得它还是比较靠谱的。
于是索性尝试用多说0.7.1,感觉效果不错,反应很快,初步使用未见出错。

qiqiboy’s Social Medias Connect所以出错,可能是因为SAE移植版的WP,官方WP应该没有这些问题。但毕竟它只是个人制作维持,而多说则是团队动作。
另外好像友言用的人也很多。
———————–
WordPress 3.2.1 for SAE错误汇总

http://snowson.sinaapp.com/?p=322&oauth_token=““&oauth_verifier=242172
您的主机配置不正确,请检查您主机的php.ini中的session.save_path设置,或者将session.use_trans_sid一项设置为session.use_trans_sid=1。

添加评论2012-5-22 7:51:04http://1.snowson.sinaapp.com/wp-comments-post.php
SAE_Warning: preg_replace_callback() [function.preg-replace-callback]: Empty regular expression in wp-content/plugins/social-medias-connect/sinaweibo/smcOAuth.php on line 338
SAE_Warning: Cannot modify header information – headers already sent by (output started at /data1/www/htdocs/848/snowson/1/wp-content/plugins/social-medias-connect/sinaweibo/smcOAuth.php:338) in wp-content/plugins/social-medias-connect/function.php on line 894
SAE_Warning: Cannot modify header information – headers already sent by (output started at /data1/www/htdocs/848/snowson/1/wp-content/plugins/social-medias-connect/sinaweibo/smcOAuth.php:338) in wp-includes/pluggable.php on line 934

点击发布按钮后提示:2012-05-19
SAE_Warning: file_get_contents(http://ww3.sinaimg.cn/bmiddle/44cb9f39jw1dt3ymrtnr7j.jpg) [function.file-get-contents]: failed to open stream: HTTP request failed! in wp-content/plugins/social-medias-connect/OAuth.php on line 800
SAE_Warning: Cannot modify header information – headers already sent by (output started at /data1/www/htdocs/848/snowson/1/wp-content/plugins/social-medias-connect/OAuth.php:800) in wp-includes/pluggable.php on line 934

SAE_Warning: Cannot modify header information – headers already sent by (output started at /data1/www/htdocs/848/snowson/1/wp-config.php:1) in wp-includes/pluggable.php on line 934
原因:
编辑wordpress的PHP文件后,保存时使它添加了一个Unicode签名(BOM),而wordpress使用的PHP文件不支持BOM。
http://55380855.blogspot.com/2012/05/wordpressphpbomsaewarning-cannot-modify.html

SAE_Fatal_error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 523800 bytes) in wp-content/plugins/social-medias-connect/function.php on line 1263
SAE_Fatal_error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 523800 bytes) in document/DoYouHaoBaby/LibPHP/App/Lib/Config/ConfigKey.class.php on line 35
内存不足溢出解决方法 2012年5月2日
http://1.snowson.sinaapp.com/?p=155

百度地图Baidu Sitemap Generator
SAE_Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/data1/www/htdocs/848/snowson) is not within the allowed path(s): (/usr/local/sae/php/lib/php/sae_std_lib/:/usr/local/sae/php/lib/php/apibus_lib/:./:/usr/share/fonts/chinese/TrueType:/data1/www/htdocs/848/snowson/1/:/saetmp/848/snowson/1337653628_665697665/:) in wp-content/plugins/baidu-sitemap-generator/sitemap-function.php on line 198

google-analytics
SAE_Fatal_error: Call to undefined method WP_Error::get_items() in wp-content/plugins/google-analytics-for-wordpress/yst_plugin_tools.php on line 196

RSS 错误:A feed could not be found at http://blogsearch.google.com/blogsearch_feeds?scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:http://1.snowson.sinaapp.com

主题 Elegant Box

时间:2012-05-22 下午12:26:00 
标签: IT, SAE, wordpress, 多说

2014-01-11 20:57:41 Migrated From Blogger