目前博客重构中~~ 采用GAE+django1.2实现。
Tags:
More
- 2011/08/15 15:16
- 7 次阅读
-
转载
转朋友的网站:http://www.iunbug.com/article.html?objNews.id=271005
1.用这个账号上传资源下载积分最高不得超过1个积分.
2.下载完别人的资源请回复,这样会收获一个积分.
用户名:tidelgl 密码:tunbuglee
Tags:
More
稍微研究了下jquery mobile .做了简单的wap入口.
http://www.fengsage.com/wap/
测试中...
Tags:
More
新公司这边客服流动频繁,为防止密码泄露,写了个小脚本.可以让用户在不知道密码的情况下自动登录淘宝
主要代码:
#!/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'):
&
......
Tags:
taobao
python
More
- 2011/05/26 02:33
- 2 次阅读
-
算法介绍
转自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时间戳(
......
Tags:
linux
unix
timestamp
More
- 2011/05/16 14:23
- 3 次阅读
-
心情宣泄
Tags:
More
- 2011/05/09 13:43
- 3 次阅读
-
心情宣泄
Tags:
china
More
- 2011/03/28 05:39
- 3 次阅读
-
Java
网上搜到的一片文章,非常不错. 看一眼就能明白如何操作. 直接贴代码:
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/
......
Tags:
android
dialog
More
- 2011/03/27 11:28
- 2 次阅读
-
心情宣泄
Tags:
More
Recent Comments