两个内存条不能启动
摘要:新买了一个金士顿DDR2 2G的内存,原来那个也是一样的,两条插上后电脑无法启动,拔下任意一条都能启动, 怎么回事那? 【解决方法】 设置BIOS的延迟时间。我分析可能是两个内存条需要更长的加载时间,用系统默认的时间可能不够,具体设置如下: 改完后两条内存电脑就能正常启动了,启动后在windows下查看发现内存变成4G了,大功告成。 ----------------------...
阅读全文
posted @
2017-07-30 09:37
今夜太冷
阅读(916)
推荐(0) 编辑
jssor/slider图片的问题
摘要:用jssor/slider这个控件,在显示图片的时候,每张图片都被拉伸到最大的图片的宽度和高度,导致变形,怎么处理? 【答案】 Yes. With no u="image" image will keep original size (or the size specified by css manually). function ShowSlideShows(fileIds) ...
阅读全文
posted @
2017-07-30 02:02
今夜太冷
阅读(431)
推荐(0) 编辑
How to center body on a page?
摘要:【提问】 I'm trying to center the body element on my HTML page. Basically, in the CSS I set the body element to bedisplay: inline-block;so that it is only as wide as its contents. That works fine. ...
阅读全文
posted @
2017-07-28 11:27
今夜太冷
阅读(144)
推荐(0) 编辑
Jquery中的高度
摘要:$('.someElement').height(); // returns the calculated pixel height of the element(s) $(window).height(); // returns height of browser viewport $(document).height(); // returns ...
阅读全文
posted @
2017-07-28 11:23
今夜太冷
阅读(105)
推荐(0) 编辑
Node.js中 express-session的奇怪问题
摘要:var session = require('express-session'); app.use(cookieParser()); app.use(session({ secret: '123' })); ß-第71行 登录以后访问的时候有时候会报这样的错误: The last 64k of the output generated by the node.exe p...
阅读全文
posted @
2017-07-27 00:16
今夜太冷
阅读(457)
推荐(0) 编辑
mysql CAPI 接口 读取中文乱码的解决方案(转)
摘要:最近的yymysqlsdk的开源项目里,对中文的支持不到位,因此用了1.5天的时间,对中文处理的各个情况进行了分析。 1.首先确认你的MySQL配置文件,my.ini (只针对windows)里的配置,如没有则添加 [client] default-character-set=gbk (是为了,开发客户端程序时,对中文的支持;如果此处设置为utf8,我没有验证过,稍后验证,...
阅读全文
posted @
2017-07-23 10:45
今夜太冷
阅读(690)
推荐(0) 编辑
转:C++操作mysql方法总结(1)
摘要:原文:http://www.cnblogs.com/joeblackzqq/p/4332945.html C++通过mysql的c api和通过mysql的Connector C++ 1.1.3操作mysql的两种方式 使用vs2013和64位的msql 5.6.16进行操作 项目中使用的数据库名为booktik 表为book ………. (共有30...
阅读全文
posted @
2017-07-22 17:58
今夜太冷
阅读(823)
推荐(0) 编辑
Return array from functions in C++
摘要:C++ does not allow to return an entire array as an argument to a function. However, you can return a pointer to an array by specifying the array's name without an index. If you want to return a single...
阅读全文
posted @
2017-07-22 13:42
今夜太冷
阅读(238)
推荐(0) 编辑
LogCat用法2
摘要:如果adb devices显示设备的状态是offline, 这是可以看手机的通知栏,会有一个"触摸以设置USB"这样一个类似的提示,触摸它以后会要求你选择USB的用途,选择第二个'通过。。。传输文件',电脑上应该会显示出手机上的文件夹,然后再运行adb devices, 可以看到设备就不再offline了,这个时候运行adb logcat就可以获取到log信息了。 如何只查看自己app的...
阅读全文
posted @
2017-07-16 20:06
今夜太冷
阅读(340)
推荐(0) 编辑
Logcat用法初探
摘要:首先定位到adb所在的目录 将手机连接上电脑。 在命令行运行: adb devices 这个命令可以列出所有连上的移动设备。 在命令行运行: adb logcat 可以显示日志。 以下是例子截图: 当然logcat有更高级的过滤等命令,下一篇文章总结。 相关问题: 输入"adb logcat"命令出现"waiting for device" 信息被挂起 adbct...
阅读全文
posted @
2017-07-16 19:44
今夜太冷
阅读(725)
推荐(0) 编辑
clang: error: linker command failed with exit code 1 (use -v to see invocation)
摘要:错误: clang: error: linker command failed with exit code 1 (use -v to see invocation) 的排查总结 1.相同的类被导入多次。 2.图片等资源丢失/引用出错(包括build phases的引用)。 3.Build Setting ->armv7armv7s 由于xcode升级成...
阅读全文
posted @
2017-07-15 19:44
今夜太冷
阅读(4600)
推荐(0) 编辑
gl.h included before glew.h
摘要:So I'm trying to move my OpenGL code from Main() into a specific class that will handle the 3D graphics only when necessary. Previously, the top of my main.cpp file looked like this: #define GLEW_ST...
阅读全文
posted @
2017-07-09 10:26
今夜太冷
阅读(2347)
推荐(0) 编辑
Android OpenGL ES和OpenGL一起学(二)------理解Viewport(视口)和坐标系Android OpenGL ES篇(转帖)
摘要:来自:http://www.cnblogs.com/xiaobo68688/archive/2011/12/01/2269985.html 首先我们在屏幕中心显示一个矩形,效果如图: // 代码没有经过优化,为的是容易理解public class OpenGLTestActivity extends Activity { GLSurfaceView glVi...
阅读全文
posted @
2017-07-07 00:25
今夜太冷
阅读(1064)
推荐(0) 编辑
CSOM中如何取到managed metadata类型字段的类型信息
摘要:Field.fieldTypeKind返回的是Invalid [解决方法] There is no "Metadata" type of field in theSP.FieldType Enumeration, so it would return 0(invalid) when try to retrieve SP.Field.fieldTypeKind Property. If you j...
阅读全文
posted @
2017-07-06 13:59
今夜太冷
阅读(229)
推荐(0) 编辑
"Value does not fall within the expected range" with managed metadata fields
摘要:From: http://geekswithblogs.net/claraoscura/archive/2011/01/21/143569.aspx The problem: I have an item adding event receiver associated with a custom content type that accesses several managed meta...
阅读全文
posted @
2017-07-06 13:56
今夜太冷
阅读(396)
推荐(0) 编辑
GLFW_KEY_KP_ADD和GLFW_KEY_KP_SUBTRACT
摘要:这两个键的代码分别为: GLFW_KEY_KP_ADD(334) GLFW_KEY_KP_SUBTRACT(333) 对应的是键盘右侧数字面板上的+ -键。
阅读全文
posted @
2017-07-04 14:04
今夜太冷
阅读(644)
推荐(0) 编辑
OPENGL: WHY IS YOUR CODE PRODUCING A BLACK WINDOW?
摘要:Introduction One of the most common problems for novice, and sometimes experienced, OpenGL programmers is that they write new rendering code, run it, and it displays… nothing at all. Being more acti...
阅读全文
posted @
2017-07-04 13:35
今夜太冷
阅读(440)
推荐(0) 编辑