摘要: 一、中文设置树莓派默认是采用英文字库的,而且系统里没有预装中文字库,所以即使你在locale中改成中文,也不会显示中文,只会显示一堆方块。因此需要我们手动来安装中文字体。好在有一个中文字体是免费开源使用的。ssh中输入以下命令1 sudo apt-get install ttf-wqy-zenhei... 阅读全文
posted @ 2015-12-09 22:23 冰雪一舟 阅读(2333) 评论(0) 推荐(0) 编辑
摘要: 1. 通过命令行安装Python3.4,执行命令:sudo apt-get install python3.42. 由于Ubuntu底层采用的是Python2.*,Python3与Python2是互不兼容的,但是不能卸载Python2,只需要将默认的Python指向Python3即可。之前安装的Py... 阅读全文
posted @ 2015-12-04 16:31 冰雪一舟 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 刚入门Node.js,今天忙活了很久,结果因为一个关于js文件引入的一个小小问题在别人博客看见了解决方法http://www.cnblogs.com/picaso/archive/2012/10/01/2709546.html学习Nodejs也是出于对这个新产物的好奇,而且有两个重要项目也需要他的支... 阅读全文
posted @ 2015-11-28 20:32 冰雪一舟 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.安装supervisor这个包会用于自动检测更新并重新打开node,使用方法:supervisor xxx.js安装方法:npm install -g supervisor2.安装node-inspector这个包用于调试,在浏览器中就可以进行调试,比起命令行调试方便的多使用方法:node --... 阅读全文
posted @ 2015-11-22 17:53 冰雪一舟 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 零零碎碎忙了玩一个月,写点备忘录首先刷机,刷机尽量找教程介绍的最新版,我就刚开始就花了很多无用的时间在这上面修改uhttpd设置在/etc/config/uhttpd中新增一条如下的信息config uhttpd web list listen_http 0.0.0.0:88 opti... 阅读全文
posted @ 2015-11-16 16:29 冰雪一舟 阅读(3692) 评论(0) 推荐(0) 编辑
摘要: 首先来看下两个方法的定义:函数原型:array split (string $pattern, string $string [, int $limit])函数原型:array explode ( string $separator, string $string [, int $limit])初看... 阅读全文
posted @ 2015-11-08 18:06 冰雪一舟 阅读(3041) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include int main(int argc, char *argv[]){ struct sockaddr_in sin = { 0 }; struct arpreq myarp = { { 0 } ... 阅读全文
posted @ 2015-11-08 12:13 冰雪一舟 阅读(4562) 评论(0) 推荐(0) 编辑
摘要: api.ajax({ url:getDataUrl() + 'sets',//"relational_tree", method:'GET', headers:{ "Content-Type":"application/json... 阅读全文
posted @ 2015-10-08 21:50 冰雪一舟 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 使用Url,在这里Ajax是可以跨域的!用$.ajax或api.ajax都可以api.ajax({url:"http://www.baidu.com",method:'GET',dataType:'text'}, function(ret,err){ if(ret){ alert(JSON.... 阅读全文
posted @ 2015-10-08 21:33 冰雪一舟 阅读(1207) 评论(1) 推荐(0) 编辑
摘要: 1. 下载glut库glut库地址为:http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zipglut全称为:OpenGL Utility Toolkit,也就是OpenGL应用工具包,它建立在OpenGL基础之上,方便开发O... 阅读全文
posted @ 2015-09-29 15:24 冰雪一舟 阅读(220) 评论(0) 推荐(0) 编辑