有几个概念以及相关公式先理解下:1、dp:device independent pixels(设备独立像素),是像素和密度的比dp = px / density2、dpi(dot per inch每英寸的点数)和ppi相等,是屏幕对角线的像素数和屏幕尺寸的比例dpi = ppi = (√(scree...
分类:
移动开发 时间:
2014-08-22 16:06:58
阅读次数:
250
net_device->feature| NETIF_F_NO_CSUM: No need to use L4 checksum, it used for loopback device.| NETIF_F_IP_CSUM: the device can compute L4 checksum in...
分类:
系统相关 时间:
2014-08-22 14:26:59
阅读次数:
260
问题1:ifconfig 只看到了lo未看到eth0ifconfig命令查看网络设置,只看到了lo,并未看到eth0说明网卡设置出现了问题。尝试使用ifconfig eth0,提示找不到device设备。通过lspci查看网卡设备,发现了Ethernet controller网卡设备。该问题为:网卡...
分类:
其他好文 时间:
2014-08-22 14:14:48
阅读次数:
319
BOOL BitBlt(
HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left
// corner
int nYDest, // y-coordinate of des...
分类:
其他好文 时间:
2014-08-21 22:52:35
阅读次数:
316
转自:http://blog.csdn.net/linuxmake/article/details/8208464最近做摄像头驱动,发现没有 /dev/video0节点,经过查看发现是内核编译时没有注册设备应该用 video_register_device 注册一个 video_device 设备就...
分类:
其他好文 时间:
2014-08-21 22:44:04
阅读次数:
524
在项目开发中,我们常常需要将工程文件打包成.ipa文件,提供给越狱的iphone安装。下面是一种方法:1、首先应该给工程安装好配置文件(这里不再敖述),在ios device的状态下,运行成功。2、选择Product->archive,如下图3、点击Distribute按钮,弹出新窗口,选择Expo...
分类:
其他好文 时间:
2014-08-21 22:37:44
阅读次数:
338
不需要再安装任何性能监测工具,直接如下访问,帮助完成性能数据的获取和查看。Android apk 需要关注的点:apk大小、apk启动时间、流量、电量、CPU运行时长、内存、actvity切换时间等。android性能数据采集:流量数据: /proc/self/net/dev 中的:eth0 和.....
分类:
移动开发 时间:
2014-08-21 18:52:54
阅读次数:
258
继上一篇博文,会发现最后图片上 adb连接时候提示device offline以下三种方法可以试一下~我是试到最后一种才成功1.重启手机2.adb kill-server adb start-server3.打开刷机大师 考虑到手机刷机过,可能不是原生态rom,于是打开刷机大师,强迫连接建立...
分类:
数据库 时间:
2014-08-21 14:54:34
阅读次数:
476
从VirtualBox的"管理"菜单下,选择"导出虚拟电脑",存一个备份。用时,再从"管理"菜单下,选择"导入虚拟电脑",但无法上网。解决办法:
一、修改配置文件
vi /etc/udev/rules.d/70-persistent-net.rules
注释掉eth0的相关设置
更改eth1为eth...
分类:
其他好文 时间:
2014-08-21 14:42:04
阅读次数:
254
重新加载网卡时出现的错误如下: 1 [root@vdb1 dev]# service network restart 2 Shutting down interface eth0: Device state: 3 (disconnected) 3 ...
分类:
Web程序 时间:
2014-08-21 12:54:54
阅读次数:
294