导航
用户登录
最新blog文章
搜索
在线用户
tags in 标签
相关链接:
guoshuang 的blog
CNAME 和 bind9
由 guoshuang 于 周五, 03/12/2010 - 09:45 提交。firefox addons for web developer
由 guoshuang 于 周五, 03/05/2010 - 15:28 提交。xuedi website stuffs
由 guoshuang 于 周三, 03/03/2010 - 15:20 提交。douban电台音乐下载
http://douban.fm/
会打开
http://douban.fm/radio
并且调用
http://douban.fm/j/mine/playlist?r=0.3614152716472745&type=n&sid=&uid=1019380&h=&du=0&rest=&aid=
不带 postfield 也可以返回 json(不知道是否和帐号关联)
php curl 不能拿到 内容,可能是会话或者cookie的问题
bookmarklet 代码为(把 json 打成 html 下载链接)
wp add_action
function email_friends($post_ID) {
$friends = 'bob@example.org, susie@example.org';
mail($friends, "sally's blog updated" , 'I just put something on my blog: http://blog.example.com');
return $post_ID;
}
add_action('publish_post', 'email_friends');
function echo_comment_id($comment_ID) {
echo "I just received $comment_ID";
}
add_action('comment_id_not_found','echo_comment_id', 10, 1);
Wordpress 头文件内容解释
link rel='canonical' href='http://pensee.net.cn/psd2html'
canonical 权威
在多个相似页面中,告诉搜索引擎,某某页是权威的,以便在输出搜索结果的时候,优先显示该页。(yahoo microsoft google 都支持这个开放标准)
比如 http://pensee.net.cn/psd2html?abc=123 这样的页面就可能不会被google收录(坊间有这种说法)
参考资料:
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=1393...
http://www.mattcutts.com/blog/canonical-link-tag/
jquery 解析带冒号(名字空间)xml 的问题
不同浏览器对此处理不一样。类似
<guoshuang:age>18</guoshuang:age>
这样的 xml 格式。guoshuang: 是名字空间。有的浏览器可以
$(xml).find('age')
有的则需要
$(xml).find('guoshuang\\:age')
或者
$(xml).find("[nodeName=geo:long]")
firefox 在 3.5 之前是前者和3.5之后是后者。所以导致旁边的天气预报出错。
以前 ie 为了处理简便,直接使用 dom travsing 来做的,诸如 a.prev().prev()
chrome 和 firefox > 3.5 的处理不一样。
有人专门写了个插件
site5 的 403 错误
突然发现一个站点报告 403,没有权限,郁闷。
上传测试的 index.htm,不行!
把 .htaccess 改名,不行!
ftp 中检查 www 目录权限也是 777
终于发现被 suspended,在管理界面自己 suspend,然后再 unsuspend 回来,搞定。
系统错误?难道是管理员关的?
jquery.getScrollbarWidth.js
由 guoshuang 于 周四, 11/20/2008 - 14:04 提交。jquery outerHTML
jQuery.fn.outerHTML = function() {
return $('').append( this.eq(0).clone() ).html();
};
或者
jQuery.fn.outerHTML = function(s) {
return (s)
? this.before(s).remove()
: jQuery("").append(this.eq(0).clone()).html();
}
photoshop 快捷键
10. Cloak of Invisibility
Remove everything from the screen except for your file.
* F, F, F | Cycle through Screen Modes
* Tab | Remove Tools and Palettes
* Ctrl+H | Hide Extras (Grid, Guides, Slices, etc.)
* Ctrl+R | Hide Rulers
9. Quick Brush Jab
Quickly and easily customize a brush. This combo is a staple for digital painting.
* B | Brush Tool
* Right-Click and Select or F5 and Select | Open condensed or full Brush Palette
* or . or , or Shift+. or Shift+, | Cycle through brushes or jump to first or last brush
有趣的 jquery 例子
1. var now = new Date();
2. if(now.getHours() >= 12)
3. {
4. var goodDay = $('p[title="Good Day Message"]');
5. goodDay.text('Good Afternoon!');
6. }
$(’p[title^="H"]‘)
http://www.smashingmagazine.com/2008/09/16/jquery-examples-and-best-prac...
portable application
由 guoshuang 于 周日, 11/16/2008 - 09:06 提交。opera 最消化到系统托盘
9.2x 以前是 ctrl+h
9.6x 是 ctrl+alt+shift+h
:(
最新评论
1 周 4 天 前
4 周 2 天 前
1 年 37 周 前
1 年 37 周 前
1 年 37 周 前
1 年 39 周 前
1 年 43 周 前
1 年 43 周 前
1 年 48 周 前
1 年 48 周 前