在微博认证方式里,基本的OAuth认证是必须要调整到跳转到第三方页面上进行授权的,例如下面的例子:
1、从http://open.weibo.com/wiki/index.php/SDK#Android下载SDK包。
2、在AndroidExample/src/weibo4android/Wei.....
分类:
移动开发 时间:
2014-05-08 12:12:04
阅读次数:
503
1.Abort()停止当前请求2.getAllResponseHeaders()作为字符串返回完整的headers3.getResponseheader(“hederLabel”)作为字符串返回单个的header标签4.Open(“method”,“URL”[,asyncFlag[,”userNam...
分类:
其他好文 时间:
2014-05-08 08:51:07
阅读次数:
263
目标ftp服务器是一个非标准端口的ftp1.通过shell登录#ftp
//shell下输入ftp命令,进入到ftp提示符>open IP PORT //IP ,PORT对应为服务器的IP和端口号或者直接使用一条语句#ftp
IP PORT2.多文件下载(对目录无效)如:下载目录下的所有文件(子目录...
分类:
系统相关 时间:
2014-05-08 08:02:49
阅读次数:
474
文件描述符:文件描述符是一个小的非负整数,是内核用来标识特定进程正在访问的文件标准输入/输出/出错:shell为每个程序打开了三个文件描述符,STDIN_FILEON,STDOUT_FILEON,STDERR_FILEON,默认这三个文件描述符都链向终端不带缓冲的IO:函数open
read wri...
分类:
其他好文 时间:
2014-05-07 17:13:03
阅读次数:
284
Failed to open a session for the virtual machine winxp.
The virtual machine 'winxp' has terminated unexpectedly during startup with exit code 1.
Result Code: NS_ERROR_FAILURE (0x80004005)
Compo...
分类:
其他好文 时间:
2014-05-07 12:33:48
阅读次数:
317
Android Camera HAL通过V4L2接口与内核Camera Driver交互。本文从Linux应用开发者的角度审视Android
Camera子系统。
V4L2应用开发一般流程:
1. 打开设备文件。 int fd=open("/dev/videoX″,O_RDWR);
2.取得设备的capability,看看设备具有什么功能,比如是否具有视频输入,或...
分类:
移动开发 时间:
2014-05-07 07:26:03
阅读次数:
488
不小心重命名了libc.so.6动态库,运行命令
#mv /lib/libc.so.6 /lib/libc.so.6.back
#ls
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
各种命令都不好...
分类:
其他好文 时间:
2014-05-07 04:49:53
阅读次数:
319
I make a connection through SSH and then I type:
# x0vncserver --PasswordFile=/home/hello/.vnc/passwd
x0vncserver: unable to open display ""
~ImageCleanup called
the reason is :
...
分类:
其他好文 时间:
2014-05-07 04:23:43
阅读次数:
581
之前在查看v$open_cursor的时候,发现很多相同的record。 让我很疑惑, sid
saddr sql_id 都相同,我就想 这不是一个cursor吗? 那为什么在open_cursor中出现多次?
后来通过别人点拨明白了,这应该是一个相同的SQL语句被 session 打开了并运行了很...
分类:
其他好文 时间:
2014-05-07 01:11:25
阅读次数:
403
将文件的每行读取到字典中文件每行内容格式为:cui:123456789f=open(‘user.txt‘)
d=f.readlines()
f.close()
mydict={}
foriind:
user=i.split(‘:‘)[0]
info=i.split(‘:‘)[1].rstrip()
mydict[user]=info
分类:
编程语言 时间:
2014-05-06 16:40:26
阅读次数:
362