博客重构中~~

目前博客重构中~~ 采用GAE+django1.2实现。

公布一个公共CSDN账号,里面有很多下载积分

转朋友的网站:http://www.iunbug.com/article.html?objNews.id=271005

1.用这个账号上传资源下载积分最高不得超过1个积分.
2.下载完别人的资源请回复,这样会收获一个积分.

用户名:tidelgl               密码:tunbuglee

新增WAP入口

稍微研究了下jquery mobile .做了简单的wap入口.

http://www.fengsage.com/wap/

测试中...

要Google+邀请的速速留下你的Gmail!!

要Google+邀请的速速留下你的Gmail!!

一段自动登录淘宝接口Python代码

新公司这边客服流动频繁,为防止密码泄露,写了个小脚本.可以让用户在不知道密码的情况下自动登录淘宝 主要代码: #!/usr/bin/python2.5   # -*- coding: utf-8 -*- ''' Created on 2011-5-28 @author: fred <me@fengsage.com> ''' ''' 自动登录淘宝脚本 ''' def login_taobao(username, password):     from apps.PAM30 import PAMIE     ie = PAMIE()     ie.navigate("https://login.taobao.com/member/login.jhtml")         tmp_element = ie.findElement('input','name','loginType')     if tmp_element.getAttribute("value")=="4":         checkBox = ie.findElement('input', 'id', 'J_SafeLoginCheck')         ie.clickElement(checkBox)         if ie.textBoxExists('TPL_username') and ie.textBoxExists('TPL_password'):   &

......

Unix时间戳转换和获取

转自http://code.aosoo.com/unixtime 如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)? Java time JavaScript Math.round(new Date().getTime()/1000)getTime()返回数值的单位是毫秒 Microsoft .NET / C# epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000 MySQL SELECT unix_timestamp(now()) Perl time PHP time() PostgreSQL SELECT extract(epoch FROM now()) Python 先 import time 然后 time.time() Ruby 获取Unix时间戳:Time.now 或 Time.new 显示Unix时间戳:Time.now.to_i SQL Server SELECT DATEDIFF(s,'1970-01-01 00:00:00',GETUTCDATE()) Unix/Linux date+%s VBScript/ASP DateDiff("s","01/01/1970 00:00:00",Now()) 其他操作系统 (如果Perl被安装在系统中) 命令行状态:perl -e "print time" 如何在不同编程语言中实现Unix时间戳(......

拒绝转基因

 

人类有时候还真太自以为是了,以为自己是上帝嘛。不成熟的DNA技术,就擅自更改DNA遗传因子。人类迟早灭亡在自己手中。

天道循环因果相连。

 

中国需要更多这样有良知的人

 

一个民族的伟大,需要千千万万这样的人。大家一起努力,而不是总在网上抱怨。

android自定义弹出框(AlertDialog)

网上搜到的一片文章,非常不错. 看一眼就能明白如何操作. 直接贴代码: public class DialogWithInputBox extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final AlertDialog.Builder alert = new AlertDialog.Builder(this); final EditText input = new EditText(this); alert.setView(input); alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { String value = input.getText().toString().trim(); Toast.makeText(getApplicationContext(), value, Toast.LENGTH_SHORT).show(); } }); alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dialog.cancel(); } }); alert.show(); } } 原文链接:http://www.androidpeople.com/android-dialog-input-text/

......

群星支持打拐,呼吁救救“孩子”

各位机友们~拿起手机拍下身边的乞儿, 也许这侵犯了儿童的肖像权,但为了他们的生存权,我们决不放弃