在软件收集log的脚本添加类似下面一行。注意:@不是文件名一部分,是文件名前必须添加的一个符号。
curl -F"operation=upload" -F"file=@myfile" http://localhost:9000/index.php
在服务器端添加类似下面的脚本
<?php
在软件收集log的脚本添加类似下面一行。注意:@不是文件名一部分,是文件名前必须添加的一个符号。
curl -F"operation=upload" -F"file=@myfile" http://localhost:9000/index.php
在服务器端添加类似下面的脚本
<?php
http://www.motobit.com/util/base64/decoder
“data:image/png;base64,<string>”,不要头尾,把<string>粘贴上去,Decode to a binary file, filename,后缀png或jpg
Event-driven, non-blocking I/O with PHP.
1. 运行SQL语句授权用户
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'
2. 编辑/etc/mysql/my.cnf,把bind-address = 127.0.0.1
注释掉
3. 重启MySQL服务
service mysql restart
如果用户还需要拥有授权其他用户的权限,则需要用下面的命令(把%换成IP),用户要退出重新登录mysql才能生效:
clearscreen
make "a 100
make "b 50
repeat 360[
setxy (thing "a) * sin repcount
((thing "b) * cos repcount) - (thing "b)
]
麻省理工出品的图形化编程软件,基于Web,在线使用,有图像、声音、动画等。
1968年,MIT还出品了一款叫做LOGO的语音,也是笔者小学学的计算机语音。这里有在线版:
生成秘钥对(如果已经有就不用再生成了):
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
今天下载Google的一张图,截了里面约1/100的面积,另存为PNG,结果尺寸为40K,比原来的整张图还大3倍,惊讶不已。用pngcrush后可压缩到1/10大小。好东西!
http://pmt.sourceforge.net/pngcrush/
最新评论