码迷,mamicode.com
首页 >  
搜索关键字:err    ( 12054个结果
logcat 技巧
1.过滤Android程序出现的异常和adblogcat|grep--color=auto-E"System.err|AndroidRuntime"2.按照包名过滤细分日志我们先写一个这样的脚本,命名为logcatPkg,然后加上可执行的#!/bin/bashpackageName=$1pid=`a...
分类:其他好文   时间:2014-10-15 14:29:51    阅读次数:208
Chrome 错误代码:ERR_UNSAFE_PORT
最近在用Nginx发布多个站点测试,使用了87、88端口,88端口访问正常,87端口就怎么也访问不了,点击更多,提示错误代码:ERR_UNSAFE_PORT不安全的端口?尼玛就只靠端口就能解决不安装问题了?不想修改浏览器设置的就改用其它端口吧,搜索了一下,Firefox也有类似的端口限制;如果非要使...
分类:其他好文   时间:2014-10-15 11:53:10    阅读次数:236
用着色器编写第一个程序
我们用着色编写画一个三角形    #include //#include #include #include #include #include #include #include #include #include using glm::vec3; using glm::vec4; void render() { GLenum err = glewInit(); if (GLEW_OK...
分类:其他好文   时间:2014-10-14 15:04:08    阅读次数:162
GLEW_ERROR_NO_GL_VERSION的解决方法
关于[cpp] view plaincopyprint?GLenumerr=glewInit();if(GLEW_OK!=err)fprintf(stderr,"errorinitializaingGLew%s\n",glewGetErrorString(err));返回: GLEW_ERROR_....
分类:其他好文   时间:2014-10-13 22:44:47    阅读次数:341
GLEW_ERROR_NO_GL_VERSION的解决方法
关于 GLenum err = glewInit(); if (GLEW_OK != err) fprintf(stderr, "error initializaing GLew %s\n", glewGetErrorString(err));返回:       GLEW_ERROR_NO_GL_VERSION的解决方案 就是要先初始化窗口。就是要把 glutCreateWi...
分类:其他好文   时间:2014-10-13 14:13:49    阅读次数:197
从一段代码看fork()函数及其引发的竞争
首先来看一段从《UNIX环境高级编程》中摘录的一段非常有意思的代码。借此我们再来谈谈fork()函数的一些问题。 #include "apue.h" static void charatatime(char*); int main(void) { pid_t pid; if((pid=fork())<0){ err_sys("fork error"); }else ...
分类:其他好文   时间:2014-10-12 23:16:58    阅读次数:278
封装readn
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #define ERR_EXIT(m) \ 11 ...
分类:其他好文   时间:2014-10-11 19:25:56    阅读次数:201
redhat 安装virtualbox
1、在官网下载virtual for linux 包,链接地址:https://www.virtualbox.org/wiki/Linux_Downloads。根据需要下载对应镜像。2、由于下载的包是rpm格式,使用命令: rpm -ivh *.rpm *为下载包名称3、在安装过程中会出现:err....
分类:其他好文   时间:2014-10-11 17:58:05    阅读次数:143
Ubuntu安装 forever
#安装node apt-get install nodejs # 安装npm apt-get updateapt-get install npm # 安装forever 此时安装forever失败 npm ERR! Error: failed to fetch from registry: 执行:....
分类:系统相关   时间:2014-10-11 17:46:35    阅读次数:680
cocos2d js 如何动态加载外部图片
官网没有具体例子,只有看api,研究成果如下 var that = this; var url = "http://xxxxxx"; cc.loader.loadImg(url, null, function(err,img){ var logo = new cc.Sprite(img); that....
分类:Web程序   时间:2014-10-09 17:53:17    阅读次数:430
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!