友善之臂的Android系统有他们自己编写的一个串口通信程序,网上没有找到他的源代码,而且界面操作不在一个界面,不是很方便,这里我自己写了一个粗糙点的串口通信程序。
同样这里还是调用友善之臂的friendlyarm-hardware.so库文件。
在Android工程文件下面加入com.friendlyarm.androidSDK包,在其下添加HardwareControler.jav...
分类:
移动开发 时间:
2014-06-10 13:55:03
阅读次数:
258
有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP
cache错误解决办法:wgethttp://nginx.org/download/nginx-0.8.33.tar.gztar-zxvfnginx-0.8.33.tar.gz...
分类:
其他好文 时间:
2014-06-09 21:05:27
阅读次数:
312
1.什么是OpenGL?
一个能和图形硬件交互的程序接口、一个开放标准
2.OpenGL的定位
请看上图
- Apllication层 表示你的程序(调用渲染命令,如opengl API)
-Abstraction层 表示绘图接口(如OpenGL API或者DirectX API)的实现...
分类:
其他好文 时间:
2014-06-08 14:46:01
阅读次数:
203
对OpenGL有一点了解之后,现在开始真正编写代码。
今天的内容:
使用FreeGLUT创建OpenGL的上下文环境
初始化GLEW
创建一个OpenGL的的模板范例
第一步:
一个OpenGL的上下文可以允许我们传递命令到底层硬件,所以需要一个上下文环境。首先需要配置一个功能窗口,创建一个名为chapter1....
分类:
其他好文 时间:
2014-06-08 04:03:48
阅读次数:
255
default character encoding of the request or
response body: If a character encoding is not specified, the Servlet
specification requires that an enco....
分类:
其他好文 时间:
2014-06-08 00:19:22
阅读次数:
270
adt22.6.3的bug当adt更新到22.6.3,其编辑器中最低支持api7,即android
2.1,这里可能是google故意这么做的,也可能是其bug.其target sdk 和compile sdk最低都为14,即anroid
4.0,这里建议都设为最高的api 19,即android ...
分类:
移动开发 时间:
2014-05-29 02:43:25
阅读次数:
607
此文介绍 ubuntu 平台下配置 AMD/ATI Opencl 环境,我是ubuntu
12.04。主要分为六个步骤:1. Take a look at your hardware to make sure it’s compatible
先安装驱动,http://support.amd.com....
分类:
其他好文 时间:
2014-05-26 15:51:53
阅读次数:
384
Balancing CPU and I/O throughput is essential
to achieve good overall performance and to maximize hardware utilization. SQL
Server includes two asynch...
分类:
数据库 时间:
2014-05-26 12:20:40
阅读次数:
386
由于采用技术的不同,系统虚拟化不仅仅包括全虚拟化、半虚拟化和硬件辅助虚拟化。完整来看,可以将系统虚拟化分为五大类:硬件仿真(Emulation)简介:属于Hosted模式,在物理机的操作系统上创建一个模拟硬件的程序(Hardware
VM)来仿真所想要的硬件,并在此程序上跑虚拟机,而且虚拟机内部的客...
分类:
其他好文 时间:
2014-05-26 12:10:03
阅读次数:
287
有部分手机的影像是倒立的,如何解决这个问题呢? 请看下面
public static void setCameraDisplayOrientation(Activity activity,
int cameraId, android.hardware.Camera camera) {
android.hardware.Camera.CameraInfo info...
分类:
移动开发 时间:
2014-05-26 06:15:07
阅读次数:
401