经常可以看到点击一个文件,然后就可以下载。这个功能在php中实现可以通过下面的代码:if(is_file($file)){ header("Content-Type: application/force-download"); header("Content-Disposition: a...
分类:
Web程序 时间:
2014-09-28 02:02:20
阅读次数:
202
1、在SDK Manager下Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。 2、修改host文件,添加下面两行 #google_a....
分类:
移动开发 时间:
2014-09-27 09:49:49
阅读次数:
174
什么时候会产生log文件?1. 程序异常退出 Uncaused Exception。2. 程序强制关闭 Force Closed(FC)。3. 程序无响应 Application No Response(ANR)。何时会产生ANR?1. 界面操作(比如按钮点击事件)等待相应时间超过5秒。2. Han...
分类:
移动开发 时间:
2014-09-24 22:08:27
阅读次数:
222
1.Android SDK Manager -> Tools -> Options
勾选 Force http://...sources to be fetched using http://...
2.C:\Windows\System32\drives\etc 用记事本打开hosts
给hosts末尾添加:
#Android包更新
203.2...
分类:
移动开发 时间:
2014-09-24 15:03:07
阅读次数:
129
将明文转换为密文1 #将明文转换为密文2 $storage = "d:\pass.txt"3 $mysecret = 'mypassword.'4 5 $mysecret | 6 ConvertTo-SecureString -AsPlainText -Force |7 ConvertFro...
分类:
其他好文 时间:
2014-09-24 10:34:26
阅读次数:
233
更新C:\WINDOWS\system32\drivers\etc\host文件百试不爽第一步打开SDK Manager下Tools->Options,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。第二步进入C...
分类:
其他好文 时间:
2014-09-23 20:58:05
阅读次数:
250
Ubuntu的默认 ~/.bashrc 文件里,有一个控制是否打开彩色提示符文件的变量 $force_color_promt,只需要打开这个变量的开关,就可以使用彩色的命令行提示符了。这对于输查看命令之间的间隔是非常有用的,相关代码逻辑如下:关闭force_color_prompt的的效果如下图:而...
分类:
其他好文 时间:
2014-09-22 14:10:22
阅读次数:
250
SSH 协议(Secure Shell 协议)最初在 1995 年由芬兰的 Tatu Ylönen设计开发,由 IETF(Internet Engineering Task Force)的网络工作小组(Network Working Group)制定标准。 Tatu Ylönen 在 1995...
分类:
系统相关 时间:
2014-09-21 18:56:11
阅读次数:
304
1 pngquant [options] [ncolors] [pngfile [pngfile ...]]2 3 options:4 --force overwrite existing output files (synonym: -f)5 --nofs ...
分类:
其他好文 时间:
2014-09-19 15:21:55
阅读次数:
176
通过SSH将MySQL数据库复制到新服务器 mysqldump –add-drop-table –extended-insert –force –log-error=error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost “mysql -....
分类:
其他好文 时间:
2014-09-17 15:01:02
阅读次数:
192