By admin , 27 三月, 2015 怎样使用Git 初始化账号: git config --global user.name "Your Name" git config --global user.email "your_email@whatever.com" git config --global push.default current 复制远程的代码仓库到本地: git clone https://<username>@git.oschina.net/skjy/learngit.git cd learngit 从远程仓库获取最新的更新: git pull 创建一个测试文件test.txt 添加这个文件到git: git add test.txt 提交修改到本地仓库: 标签 Git
By admin , 27 三月, 2015 怎样把Linux软件错误日志上传到服务器 在软件收集log的脚本添加类似下面一行。注意:@不是文件名一部分,是文件名前必须添加的一个符号。 curl -F"operation=upload" -F"file=@myfile" http://localhost:9000/index.php 在服务器端添加类似下面的脚本 <?php 标签 Linux 日志
By admin , 25 三月, 2015 怎样解码base64图片 http://www.motobit.com/util/base64/decoder “data:image/png;base64,<string>”,不要头尾,把<string>粘贴上去,Decode to a binary file, filename,后缀png或jpg 标签 Base64
By admin , 13 三月, 2015 MySQL怎样授权用户远程访问数据库 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才能生效: 标签 MySQL
By admin , 12 三月, 2015 LOGO语言怎样画椭圆 clearscreen make "a 100 make "b 50 repeat 360[ setxy (thing "a) * sin repcount ((thing "b) * cos repcount) - (thing "b) ] 标签 LOGO
By admin , 11 三月, 2015 怎样教小孩学编程 麻省理工出品的图形化编程软件,基于Web,在线使用,有图像、声音、动画等。 https://scratch.mit.edu/ 1968年,MIT还出品了一款叫做LOGO的语音,也是笔者小学学的计算机语音。这里有在线版: http://www.calormen.com/jslogo/ 标签 Programming Language LOGO Scratch
最新评论