大猫の意淫网志
Page1 of 321 2 3 ... 32
  • 02
  • Sep

Priority InboxBeta

Welcome to Priority Inbox! By automatically separating out your most important messages, Priority Inbox makes it easy for you to read and respond to the messages that matter.

收件箱都分级呀

欢迎来到18禁收件箱! 它会自动分隔开最重要的邮件,18禁收件箱让你更方便的联系妹子

Get through your email faster

在伊妹儿里穿插自如,游刃有余

sections Try reading and replying to the messages in the "Important and Unread" section first. Mark anything that requires follow-up with a star, then go through the "Everything Else" section. If you leave Priority Inbox, you can return to it by clicking the link next to Inbox on the side navigation of Gmail.

先尝试在"重要和未读"那块儿阅读和回复.给需要follow的打个五角星,接着往"其他"那块儿看,如果你还未成年,当然可以在左侧导航处驾驭Gmail

How it works

他怎么干的

Gmail's servers look at several types of information to identify the email that's important to you, including who you email and chat with most, how often you email with these people, and which keywords appear frequently in the emails you read.

Gmail服务器会根据多方面因素来判断(有房有车老的快死了等)是否是重要,例如谁和你聊的最多,你阅读的邮件里啥关键词出现最多等

Train Priority Inbox

来搞一搞18禁收件箱

If Priority Inbox makes a mistake, you can use the Mark important Mark not important buttons to correctly mark a conversation as important or not important, and Priority Inbox will quickly learn what you care about most.

如果犯了男人不该犯的错误,那么用Mark important Mark not important按钮来纠正,他下次会学会做坏事不让你发现的

sections

And more...

还有摸儿…

  • Customize Priority Inbox: You can change what type of email you see in each section (like switching the "Important and Unread" section to just "Important"). Just click on the section headers or visit the Priority Inbox tab under Settings and choose to "customize inbox groups."
  • 定制18禁收件箱:你可以选择什么类型的邮件在什么区块等等等……
  • Use filters to guarantee importance: If you want to be absolutely sure that some messages are always marked as important (like email from your boss), you can set up a filter and choose "Always mark it as important."
  • 用过滤器:过滤器里新增了个规则叫“永远都是18岁”
  • Search by importance: If you want to see all the messages that have been marked as important, both read and unread, do a Gmail search for "is:important."
  • 搜索的时候也能和列出未读is:unread一样列出或搜索is:important
  • Switching back to your old inbox: If Priority Inbox isn't for you, you can easily switch back to your normal inbox by clicking "Inbox" on the left or hide Priority Inbox altogether from Gmail Settings.
  • 切回原始状态

To learn more about managing your email with Priority Inbox, check out the Gmail Help Center.

- The Gmail Team

俺滴囧 mail 用户量也快到700了,目前已经能用鸟~很赞



Sha Fa
  • 01
  • Sep

高举爱老婆旗帜勇往直前(就和小学生手册一样,先宣誓再干坏事)

为了让自己在学习新技术新知识的道路上越走越远,最近偶正在整一个 Chrome 的扩展

他就叫挣钱花 beatWife 打老婆!

有 Chrome 的同学可以玩一把图个乐子,木有的同学可以下嘛

插件地址 https://chrome.google.com/extensions/detail/cgoebjgkiiapifcpclljbdbmmodmmdff

乐此不疲哇,保持一天至少发一个版本

v1 hello wife
v1.1 bug: 暂时移除计数
v2 增加弹出以及大按钮(和咪咪一样越大手感越好)&& 修复计数bug
v2.1 增加彩蛋 [konami]
v3 增加选项页面 (重置/隐藏计数)我恨星期一
v3.1 右键点击小图标可以进入选项设置,现在你可以换妻了?呸呸呸,我的意思是换个人来揍
v3.6 增加了隐藏头像 && 启用通知系统(我知道你讨厌QQ弹窗)
v3.7 样式了一下选项页

目标是做一个涉及所有能涉及技术的 helloWife
然后分享之~

计划内的功能
1.上传硬盘图片(其实用canvas或php转为base64存到HTML5离线存储里)
2.丰富抽打反馈(CSS3 -webkit-等,还有诱人的canvas)
3.抽打排行榜 (例如被抽最多的图,抽最多的数量,等SNS元素)
4.华丽上流的视觉(高速发展期,功能优先)

一定要坚持啊,某个删WOW删了几十次木有丝毫毅力的人

15 Comments
  • 30
  • Jul

什么是 Gravatar

Gravatar 是 Globally Recognized Avatars (地球人公认的阿凡达)
可以去 http://gravatar.com/ 关联你的 Email 和头像
这样子在任何启用 Gravatar 的博客留言,即可显示对应的头像
例如 i(a)ooxx.me 对应的是 bigCat

Gravatar 是如何构建滴

一个 Gravatar 是服务器动态返回的图片,下面是一坨 src 图片地址

http://www.gravatar.com/avatar/ddb61c44b09ee3e8cb2700249ec9eac7&r=X&s=80

我们来肢解一下

Gravatar 总是以如下URL开头

http://www.gravatar.com/avatar/

接下去是 E-mail 对应的 Hash 结果, 这 E-mail 地址在 hash 之前必须要小写,并且要木有空格

ddb61c44b09ee3e8cb2700249ec9eac7

然后是 rating 分级, 有[ G | PG | R | X ] 4档
(在网站设置头像的时候会让你分级,建议选G)
约X的头像越不和谐,用专业的英语就叫 hardcore sexual
网址里这个分级设置的是容许最极端的那档
例如网址设置容许G,那么只有G的头像会显示
容许PG 会显示 G 和 PG
容许X 会显示 G 和 PG 和 R 和 X

&r=X

最后是 size 图像尺寸 , 有效范围是1到512

&s=80

还有一坨可选的默认头像地址,就是说如果email找不到对应的头像了或者不在分级范围内,就用这张默认图
可选参数为
* '404' (返回 a 404)
* 'mm' (mysteryman)
* 'identicon' (unique, generated image)
* 'monsterid' (unique, generated image)
* 'wavatar' (unique, generated image)
都是些奇形怪状的丑图,建议自定义一张拉轰的(http://ooxx.me/me.jpg)

&d=http%3A%2F%2Fooxx.me%2Fme.jpg

那么在主题里调用 Gravatar 就很简单的用

 <?php
   echo get_avatar(i@ooxx.me,50);
   ?>

这里的邮件地址可以用 get_the_author_meta('user_email') 获取本文作者的email
如果用在评论循环里,可以用 get_comment_author_email() 获取当前循环里的email
记得小写哦 strtolower(get_comment_author_email()) 会自动转为小写
记得MD5哦 md5(strtolower(get_comment_author_email())) 会进行 hash

加起来就是

 <?php
   echo get_avatar(md5(strtolower(get_comment_author_email())),50);
   ?>

会吐出来

<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />

不幸的是get_avatar()默认吐img标签
幸运的是如果只要src值,可以这么写

<?php
echo "http://www.gravatar.com/avatar/".md5(strtolower(get_comment_author_email()))."&r=X&s=80";
?>

挨吻老湿就是这么写再结合jQuery 配合 CSS3 搞图片圆角来输出头像滴
点这里看

43 Comments
  • 18
  • Jul

开始本文之前请先阅读 WordPress 技巧:不用插件实现 Pagenavi 功能

接着是一坨广告:如果有企业要建站,推荐凶器 WP Jam

然后开始正文:

根据先阅读的那篇文章,教偶们如何用 wordpress 自带函数实现 pagenavi 功能
整完后输出的就是12344567的数字了

但还木有实现 pagenavi 的表现,也木有 左边那坨当前页面/总页面指示数
这就是为啥要写这篇文章的原因了

pagenav的缺点:多一个外挂样式表 一个http 请求是非常占速度的,可参考yslow说明书
以插件形式载入,虽然灵活,但以性能为代价

因为水煮鱼已经介绍过了,我直接就说修改的地方了,输出结果可以参考截图

第一步:在 functions.php 的 <?php 和 ?> 之间插入


function ooxx_nav(){
global $wp_query, $wp_rewrite;
$wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;

$pagination = array(
'base' => @add_query_arg('paged','%#%'),
'format' => '',
'total' => $wp_query->max_num_pages,
'current' => $current,
'prev_text' => '&laquo; ',
'next_text' => ' &raquo;'
);

if( $wp_rewrite->using_permalinks() )
$pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg('s',get_pagenum_link(1) ) ) . 'page/%#%/', 'paged');

if( !empty($wp_query->query_vars['s']) )
$pagination['add_args'] = array('s'=>get_query_var('s'));

echo '<div class="ooxx_nav"><span class="page-numbers pages">Page'.$pagination[current].' of '.$pagination[total].'</span>'.paginate_links($pagination).'</div>';
}

第二步: 在 style.css 里插入


.ooxx_nav{clear:both;margin:5px -2px;overflow:hidden;zoom:1;text-align:center;}
.ooxx_nav .page-numbers:hover{background:#FF3D86;color:#FFF;-moz-box-shadow:1px 1px 1px #DDD;-webkit-box-shadow:1px 1px 1px #DDD;box-shadow:1px 1px 1px #DDD;}
.ooxx_nav .page-numbers,
.ooxx_nav .dots:hover,
.ooxx_nav .pages:hover{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;background:#FFF;display:inline-block;float:left;height:18px;margin:2px;min-width:28px;_width:28px;padding:1px;}
.ooxx_nav .page-numbers:visited{opacity:0.5;}
.ooxx_nav .current,
.ooxx_nav .current:hover{background:#7BAFA7;color:#FFF;font-weight:bold;-moz-box-shadow:1px 1px 1px #DDD;-webkit-box-shadow:1px 1px 1px #DDD;box-shadow:1px 1px 1px #DDD;}
.ooxx_nav .pages,
.ooxx_nav .pages:hover{color:#CCC;width:120px;}

第三步: 在需要导航的适当位置,例如index.php search.php 里插入


<?php if(function_exists('ooxx_nav')) {ooxx_nav(); } ?>

要直接用的拷贝上头代码直接用即可,听解释的继续看

第一步里 function ooxx_nav() 作用就是新建一个输出页码的函数,名字随便来,当然调用的时候要对上
这里改动不大

1. 基于语义考虑<p />标签改为<div />,当然最好改成<nav />如果你已经createElement的话,哈
2. 调用变量 $pagination 数组里的当前页和总页数组重新合成左侧那坨功能
3. 左箭头和右箭头用字符实体标示一下更规范

第二步里 你可以根据自己的主题修改颜色
box-shadow 为页码数投影
border-radius 为圆角程度
-moz- firefox 私有
-webkit- chrome safari qq浏览器 maxthon 等webkit内核私有
不细说,有需求留言即可

第三步加入 function_exists() 判断 ooxx_nav() 是否存在,要是不存在也没关系
如果不加判断,天会塌下来

--update--

感谢 yun77op 找茬

'base' => @add_query_arg('page','%#%'),
应改为
'base' => @add_query_arg('paged','%#%')

少了个d,非permalinks固定连接的同学会链接失效

51 Comments
  • 10
  • Jul

媳妇在用的皮肤超 cute ,马上拆了QQ拼音装搜狗

好玩的是拆了QQ拼音后提示文件损坏,然后它自个儿在哪里修复,修复完了又给装上了... 继续拆

超可爱鼹鼠家之族课堂传说下载
点了还会脸红~

下载地址 http://pinyin.sogou.com/skins/sv_329089.html

35 Comments
Page1 of 321 2 3 ... 32