手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表全部文章

泪奔啊。终于有了自动调频了

一开机的时候,QQ输入法提示我软件有更新了。所以升级了一下。然后看到了属性设置里有一个:自动调频。。
立刻泪奔,多少年了,提了多少次了。终于有自动调频的功能了。
多少次眼睛闭着打字的时候,直接出来那些奇怪的内容。让人哭笑不得。。。
盲打功能在MAC上简直是不可想象的事情。
大小: 30.52 K
尺寸: 500 x 375
浏览: 1616 次
点击打开新窗口浏览全图
而且,原来,我想打HOHO,结果。。。。自动就将“眯眯”给上屏了。。好几次不得不跟别人解释,我这不是说一些淫词荡语,我只是想打HOHO。然后很多人就鄙视的看着我:解释就是掩饰,我一下子就无语了。

震精:V字特攻队在央视放映了

说实话,如果你不知道“V字特攻队”,你可以去百度看一下,不过它不叫V字特攻队,而是叫V字仇杀队。网址是:http://baike.baidu.com/view/41404.htm

在微博上看到有人在大呼震精的时候,我也很震 精,这样的片子居然能够在国内放映。。实在让人意外 .
而且百度百科更新的也真快。立刻就加上了:

XML/HTML代码
  1. 2012年12月14日晚,CCTV-6破天荒播出电影《V字仇杀队》,更在微博上引起热议。   

说起来,这里面的台词恐怕是原来审核不通过的原因吧?难道这代表了新时代?要知道,这部片子从公映到现在可是过了6年了,我们在等什么?我们在纠结什么?
看看我们的郑老师在嚷嚷什么?http://weibo.com/1195031270/za3mSkZz4:

XML/HTML代码
  1. 12月14日,中美两国同一天发生残害儿童的惨案。两天过去了,我们对美国凶手的信息知之甚多,家庭成员、个人成长经历等等一目了然。而对中国凶手的信息知之甚少。我们能知晓远在天边的信息却无法获得近在咫尺的信息。和玛雅人相比,苏轼才是预言家:不识庐山真面目,只缘身在此山中。  


其实,我在看完片子的时候,我就在想,放这部片子的人,是不是也会象电影中的那位电视台的节目主持人那样被人套头呢?他会不会也收藏了一本可兰经?

细想想也就淡然了,21日,大家就再见了。

Tags: v字特攻队

常用设置网页编码的方法

非常方便:

Perl. Output the correct header before any part of the actual page. After the last header, use a double linebreak, e.g.:
print "Content-Type: text/html; charset=utf-8\n\n";

Python. Use the same solution as for Perl (except that you don't need a semicolon at the end).

PHP. Use the header() function before generating any content, e.g.:
header('Content-type: text/html; charset=utf-8');

Java Servlets. Use the setContentType method on the ServletResponse before obtaining any object (Stream or Writer) used for output, e.g.:
resource.setContentType ("text/html;charset=utf-8");
If you use a Writer, the Servlet automatically takes care of the conversion from Java Strings to the encoding selected.

JSP. Use the page directive e.g.:
<%@ page contentType="text/html; charset=UTF-8" %>
Output from out.println() or the expression elements (<%= object%>) is automatically converted to the encoding selected. Also, the page itself is interpreted as being in this encoding.

ASP and ASP.Net. ContentType and charset are set independently, and are methods on the response object. To set the charset, use e.g.:
<%Response.charset="utf-8"%>
In ASP.Net, setting Response.ContentEncoding will take care both of the charset parameter in the HTTP Content-Type as well as of the actual encoding of the document sent out (which of course have to be the same). 

The default can be set in the globalization element in Web.config (or Machine.config, which is originally set to UTF-8).

常用网站的反向代理页[2013-09-28]

做了几个常用网站的反向代理页。为什么要做,你懂的(标题的时间就是最新更新的时间)【建议自主翻墙,不再提供反代页面

1、golang:http://go.neatcn.com , 或者点击 golang
2、Yiiframework,http://yii.neatcn.com 或者点击 yii
3、golang play:http://goplay.neatcn.com 或者点击:goplay

目前仅做了这些个网站的反向代理 ,如果你有其他需求,请提出来,我会尽量解决。超大型的网站就算了。

[2013-09-28]
4、VIM官方网站:http://vim.neatcn.com 或者点击:VIM
5、SlideShare:http://slideshare.neatcn.com , 如果你觉得域名太长,也可以直接访问:http://ss.neatcn.com ,或者点击:slideshare

Tags: golang, yii

怎么获取内网机器的公网IP

说到获取公网IP,那方法是相当的多啊
1、利用第三方服务:ip138,用脚本访问他的首页,然后正则取出自己的IP
2、还是处用第三方的服务,如QQ,那种QQ判断来源IP,然后得到地址URL,连上去也能获取IP,当然也得正则
3、自己在自己的服务器上架个服务。返回公网IP,
4、利用dns的服务,比如 这样:

XML/HTML代码
  1. function getClientIp(){  
  2.     $socket = socket_create(AF_INET, SOCK_STREAM, 6);  
  3.     $ret = socket_connect($socket,'ns1.dnspod.net',6666);  
  4.     $buf = socket_read($socket, 16);  
  5.     socket_close($socket);  
  6.     return $buf;      
  7. }  

5、利用tracert,基本上也能获取 IP。ping也行。只是麻烦了一点
6、如果是本机直接拨号,那就方便了ifconfig , ipconfig /all也可以