摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //初始化影像、地形void initImageAndElevation(osgEarth::Map* map){//影像osgEarth::Drivers::TMSOptions imgOption;imgOption.url()=&qu 阅读全文
posted @ 2013-07-16 10:51 酷熊 阅读(7423) 评论(1) 推荐(0)
摘要: 遇到“bash .....权限不够”的问题时,从控制台进入到那个文件夹chmod 777 * -R 全部子目录及文件权限改为 777 阅读全文
posted @ 2013-07-08 17:28 酷熊 阅读(192) 评论(0) 推荐(0)
摘要: 1、先设定一个root的密码sudo passwd root2、编辑lightdm.confsudo gedit /etc/lightdm/lightdm.conf最后一行添加greeter-show-manual-login=true修改后为:[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-show-manual-login=true重启登陆即可。已经可以输入root了。注意:如果root登陆后没声音,又查了查,如下方法:Ubuntu root登录没有声音这个问题的根本原因是使用root登录后puls 阅读全文
posted @ 2013-07-08 14:10 酷熊 阅读(296) 评论(0) 推荐(0)
摘要: 打开AirPort打开设置偏好-共享,找到WIFI相关 阅读全文
posted @ 2013-07-02 16:09 酷熊 阅读(180) 评论(0) 推荐(0)
摘要: 我使用的是WAMP2.2菜单-PHP-PHP extensions勾选php_sqlite3query('select * from table1');while($row=$r->fetchArray()){var_dump($row);}$conn->close();?> 阅读全文
posted @ 2013-07-02 16:08 酷熊 阅读(725) 评论(0) 推荐(0)
摘要: osgconv -o 90-1,0,0 --use-world-frame src.3ds dst.3ds视线方向沿X轴正方向,将src.3ds顺时针旋转90度,保存为dst.3ds 阅读全文
posted @ 2013-06-28 16:38 酷熊 阅读(753) 评论(0) 推荐(0)
摘要: 使用快捷键:Alt+/要是还是有些场合不能提示,按照下列步骤Window-Preferences-c/c++-Editor-Content Assist-Advanced将未勾选的全部勾选 阅读全文
posted @ 2013-06-27 14:46 酷熊 阅读(4812) 评论(1) 推荐(0)
摘要: url=http://www.123.com/abc.php?name=ku xiongku xiong之间有一个空格,需要替换成%20或者+url=http://www.123.com/abc.php?name=ku&20xiong或者url=http://www.123.com/abc.php?name=ku+xiong 阅读全文
posted @ 2013-06-26 11:17 酷熊 阅读(1040) 评论(0) 推荐(0)
摘要: 虽然在Android.mk文件中,配置了LOCAL_C_INCLUDES路径,但是工程中的红色叉号一直提示找不到头文件这时,你在工程树目录中展开Includes项,捣鼓捣鼓,重新build下,或许就出来了要是还没出来:右击工程-Properties-C/C++ General-Paths and Symbols-Includes-Add... 阅读全文
posted @ 2013-06-21 14:23 酷熊 阅读(1884) 评论(0) 推荐(0)
摘要: std::istream input_stream;//这是一个文件流,想把它写入文件思路是,先将input_stream流读入一个char* buffer;然后用std::ofstream将buffer写入文件。std::istream& input_stream = 。。。。。std::ofstream fout;fout.open(filename.c_str(), std::ios::out | std::ios::binary);input_stream.seekg (0, std::ios::end);int length = input_stream.tellg();in 阅读全文
posted @ 2013-06-20 12:33 酷熊 阅读(396) 评论(0) 推荐(0)