`
鹤惊昆仑
  • 浏览: 223332 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
绑定邮件后,发邮件即可收发新浪微博。请先访问 http://session.im 授权,使用gmail体验。 目前仅支持通过gmail邮箱发微博及图片(附件)。其他邮箱待测试。 v@session.im 授权认证 t@session.im 发微博 l@session.im 阅读微博(或者friends_timeline@session.im) 源码放在http://code.google.com/p/mail2miniblog/
最小的飞信的ruby客户端,功能很简单,目前只能给自己和飞信好友发短信。使用TCP连接,没有走HTTP通道。 源码:http://code.google.com/p/fetion-ruby/ 2012-06-13 更新,又可以工作了 登录时rsa加密部分参考了pyftion(http://code.google.com/p/pytool/source/browse/#svn%2Ftrunk%2FPyFetion 可以正常登录)和rfetion(https://github.com/flyerhzm/rfetion/blob/master/lib/rfetion/fetion.rb#L530 ...
曾经的那个“最小的ruby飞信客户端” http://www.iteye.com/topic/443302 2012-06-13日更新,又可以工作了 源码:http://code.google.com/p/fetion-ruby/ 登录时rsa加密部分参考了pyfetion(http://code.google.com/p/pytool/source/browse/#svn%2Ftrunk%2FPyFetion 可以正常登录)和rfetion(https://github.com/flyerhzm/rfetion/blob/master/lib/rfetion/fetion.rb#L530 ...
fetion-robot是基于web飞信接口的飞信机器人(一小段ruby脚本)。最初目标是做一个可以发新浪微博的飞信机器人。 目前实现了 登录(验证码) 收信息 发信息等功能 做应答机器人最合适 源码仅仅145行--意味着任何人都可以很容易地修改以便于自用 本脚本目标定位于应答机器人,所以我会尽量不增加不必要的功能,保证代码量不膨胀。 最新源码http://code.google.com/p/fetion-robot/ #! /usr/bin/ruby #author newdongyuwei@gmail.com $KCODE = 'UTF-8'#解决中文乱码问题 %w(rub ...
#! /usr/bin/python # -*- coding: utf-8 -*- #author newdongyuwei@gmail.com import httplib2 from xml.dom.minidom import parseString #https://user:password@mail.google.com/mail/feed/atom gmail_feed_url = "https://mail.google.com/mail/feed/atom" user="newdongyuwei" passw ...
#! /usr/bin/ruby #author newdongyuwei@gmail.com require 'uri' require 'net/http' require 'net/https' require 'rexml/document' #https://user:password@mail.google.com/mail/feed/atom gmail_feed_url = "https://mail.google.com/mail/feed/atom" user="newdongyuwei" password ...
在DOM遍历中,IE会忽略空白文本节点,但是firefox、chrome等现代浏览器会把空白文本节点识别为TextNode,在访问诸如childNodes、firstChild、lastChild、nextSibling、previousSibling等节点时,可能会遇到TextNode。   解决方法大致有2种: 以nodeType过滤(一般过滤掉nodeType等于3的文本节点即可); 以tagName过滤(文本节点的tagName不存在); 例如获取nextSibling: //nodeType function getNextSibling(node){ var ...
see http://code.google.com/p/pidgin-vpn/ 依赖python dbus绑定。 前置准备: 安装所有依赖包(如dbus,gobject) 修改trusted_buddy_list = ["your_account@gmail.com"]。只执行自己信任的朋友发来的python 代码(消息) 发送的IM消息形如<%import os; os.system('ls -l');%>。<% %>中任意合法python 代码都会被执行(当然,有异常也会反馈错误结果给发送方) 执行: 执行sudo -s 执行pidgi ...
import smtplib from email.MIMEText import MIMEText fromaddr = 'xxx1@gmail.com' toaddrs = ['xx@sina.com','aaaa@gmail.com'] msg = MIMEText("test content", "plain") msg['Subject']= "test subject" # 邮件主题要这么加,真麻烦 username = 'gmail_user_name' password = 'gmai ...
perl -MCPAN -e shell CPAN> install Module::Build CPAN> install Crypt::OICQ CPAN> install Net::OICQ http://perl-oicq.sourceforge.net/
使用firefox开发太占资源,使用chrome开发速度很快,可是没有类似firefox的network.dnsCacheExpiration的配置选项可以控制dns不缓存(因为实际开发中经常需要修改hosts文件,在几个host间切换),也没有什么插件可以辅助。 经过探索,发现一招可用: 把chrome dns prefetch功能关闭 执行sudo /etc/init.d/nscd restart(如果没有安装nscd,则先安装 sudo aptitude install nscd)清除缓存。 这样修改hosts文件后,chrome就不需要重启了,新的host映射立即生效。
IE6、IE8均如此。所以为了跨浏览器,还是统一用绝对完全路径吧,如下: cursor:url(http://xxx.com/images/common/big.cur)
javascript:void();在IE下会报告语法错误(见test2),而firefox不会报错。并且当该错误发生时,microsoft script editor或者IE8自带的debugger都帮不了你(根本不会自动定位错误)。 <script> function test(){ alert(1); } </script> <a href="javascript:void();" onclick="test();return false;">test1</a> <a h ...
vertical-align对齐checkbox,比如javaeye的登录框如果加入vertical-align:-3px;就可以和文字对齐啦!今天同事教的。以前自己摸索的什么解决方法忘记了,可惜!
Opera Unite allows you to share your data using direct connections to your computer, if available. This can make loading speeds for your services faster, as they will bypass the proxy server.官方Opera Unite developer's primer这篇文章证实Opera Unite可以不经代理,真正P2P直连.
Global site tag (gtag.js) - Google Analytics