Mar302012
make.profile错误
“/etc/make.profile is not a symlink and will probably prevent most merges.”错误 (我的版本是X86)
方式一:
http://www.linuxquestions.org/questions/linux-software-2/problems-emerging-etcmake.profile-symlink-portage-tree-complete-414292/
# ls -FGg /etc/make.profile (查看目前的文件软链接信息)
# rm /etc/make.profile
# ln -s /usr/portage/profiles/default/linux...阅读全文
抢沙发
Mar282012
5个有趣的浏览器地址栏JavaScript代码
原文转载如下:
1、编辑网页
在地址栏输入下面的代码按enter,网页上所有元素都能变成可编辑状态,你可以移动、调整元素大小。
代码如下:
javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0
这是经我重新编辑的google.cn:
2、无敌风火轮
在地址栏运行下面的代码可使页面上所有图片元素一个接一个地转圈。
这种效果最好的实现...阅读全文
Mar272012
Flexpaper Api Parameters
测试地址:http://flexpaper.googlecode.com/svn/trunk/Example/flash/debug/FlexPaperViewer.html
Functions
.gotoPage(Number pageNumber)
navigates the viewer to the specified page 指定页导航
.fitWidth()
sets the viewer to fit width mode 适应宽度
.fitHeight()
sets the viewer to fit height mode 适应高度
.loadSwf(...阅读全文
Mar262012
Mar222012
实用php代码
1. 发送短信
调用 TextMagic API。
代码下载 3231
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Include the TextMagic PHP lib
require('textmagic-sms-api-php/TextMagicAPI.php');
// Set the username and password information
$username = 'myusername';
$password = 'mypassword';
// Create a new instance of TM
$router = new TextMagicAPI(array(...阅读全文
Mar222012
Mar222012
PHP查询域名whois
转载:http://www.oschina.net/code/snippet_202258_8574
代码下载 31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
function whois_query($domain) ...阅读全文
Mar222012
Mar222012
Ajax优化及相关工具
原文转载如下:
Ajax的便利性及用户体验上的众多优点,带来web2.0大量的ajax的使用,提高了ui交互的效率,但是过度的滥用会带来不少的问题。
ajax使用注意事项:
1 尽量避免使用同步ajax调用。在一些登录的场合常常使用同步调用服务器的登录接口。同步调用,需要将页面上的所有元素给锁定住,代价高昂。
2 ajax调用时多使用超时设置,目前许多ajax框架如jquery都会提供超时参数的设置。利用...阅读全文
Mar212012
