上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 174 下一页

2013年9月6日

Android Project from Existing Code 生成 R 文件错误、失败等问题解决办法 - 持续更新

摘要: Android Project from Existing Code 生成 R 文件错误、失败等问题解决办法 - 持续更新 git 上的项目,pull下来之后用Android Project from Existing Code 导入项目后,生成 R 文件错误、失败 说明:git上的项目是用老版本的Eclipse和Android2.1,现在个人开发环境换成了最新版本的Eclipse Build: v22.0.5-757759,android版本换成2.2解决办法:用Android Project from Existing Code 导入项目后,生成 R 文件错误、失败第一步:删除 gen 目 阅读全文

posted @ 2013-09-06 22:51 新一 阅读(351) 评论(0) 推荐(0)

修改linux共享内存大小

摘要: 这是实际linux系统显示的实际数据:beijibing@bjb-desktop:/proc/sys/kernel$ cat shmmax33554432beijibing@bjb-desktop:/proc/sys/kernel$ cat shmmni4096beijibing@bjb-desktop:/proc/sys/kernel$ cat msgmax8192beijibing@bjb-desktop:/proc/sys/kernel$ cat msgmni622beijibing@bjb-desktop:/proc/sys/kernel$ cat msgmnb16384 Sys... 阅读全文

posted @ 2013-09-06 22:49 新一 阅读(4604) 评论(0) 推荐(1)

mysql、sqlServer、hsql、oracle、db2各数据库支持的字段类型与最大精度

摘要: 阅读全文

posted @ 2013-09-06 22:46 新一 阅读(257) 评论(0) 推荐(0)

Samsung K9F1G08U0D SLC NAND FLASH简介(待整理)

摘要: SamsungK9F1G08U0D,数据存储容量为128M,采用块页式存储管理。8个I/O引脚充当数据、地址、命令的复用端口。详细:http://www.linux-mtd.infradead.org/nand-data/nanddata.html芯片内部存储布局及存储操作特点:一片Nandflash为一个设备(device),其数据存储分层为:1(device)=1024(blocks)1(block)=64(pages)1(page)=(数据块大小)2048+(00B块大小)64=2112(bytes)SamsungK9F1G08U0D,数据存储容量为128M,采用块页式存储管理。8个I/ 阅读全文

posted @ 2013-09-06 22:44 新一 阅读(1175) 评论(0) 推荐(0)

nand烧写分析/内核在启动过程中式如何将这个文件映射成/目录及各子目录的?

摘要: 我用的是ramdisk.image.gz,烧写在flash的0x10140000处 我不太明白内核在启动过程中式如何将这个文件映射成/目录及各子目录的? 如果ramdisk.image.gz在flash中的位置发生了变化,应该如何修改内核啊? 答:你的问题,要分2方面和你解释: 1.将这个文件映射成/目录及各子目录的 不是将这个文件映射根目录成及各子目录的, 而是对应的根文件系统,简称rootfs(root file system), 对应着/根目录及其各个子目录和文件。 发现要解释清楚,要简单说清楚整个系统启动的过程: 【系统启动过程简介】 初始化代码读取uboot到内存里面,然后跳转到.. 阅读全文

posted @ 2013-09-06 22:42 新一 阅读(491) 评论(0) 推荐(0)

Oracle 取上周一到周末日期的查询语句

摘要: -- Oracle 取上周一到周末的sql-- 这样取的是 在一周内第几天,是以周日为开始的select to_char(to_date('20130906','yyyymmdd'),'d') from dual; --结果:6 注释:2013.09.06是周五,为本周的第六天select to_char(sysdate+(2-to_char(sysdate,'d'))-7,'yyyymmdd') from dual;---上周一 select to_char(sysdate+(2-to_char(sysdate, 阅读全文

posted @ 2013-09-06 22:40 新一 阅读(1543) 评论(0) 推荐(0)

提高你的Java代码质量吧:小心switch带来的空值异常

摘要: 一、分析使用枚举定义常量时,会有伴有大量的switch语句判断,目的是为每个枚举解释其行为。我们知道,目前的Java的switch语句只能判断byte、short、char、int类型(JDK7已经允许使用string类型),为什么枚举也能跟在switch后面呢?很简单,因为编译的时候,编译器判断出switch后面的参数是枚举类型,然后就会根据枚举的排序值继续匹配。如下:public static void doSports(Season season){ switch(season.ordinal()){ case Season.Spring.ordinal(): …... 阅读全文

posted @ 2013-09-06 22:37 新一 阅读(2388) 评论(0) 推荐(0)

spring MVC做form提交Neither BindingResult nor plain target object for bean name 'command' available

摘要: 这两天在做spring3.0 MVC+hibernate3.2的练习中,做简单的form提交,一直报java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute查了好多资料都没有办法解决(有可能是报的错误一样却引起的原因不一样吧),最后还是发现自己在jsp的form标签上写少了commandName属性,后来加上就可以了。报错时的代码:修正后的代码:Spring给我们提供了一 阅读全文

posted @ 2013-09-06 22:35 新一 阅读(13016) 评论(0) 推荐(0)

更新-----Scripts:执行双网卡绑定

摘要: #!/bin/bash#-------------------------------------------------------------------------------# Name: netbond# Filename : netbond.sh# Local: # What: 用于双网卡绑定# HowTo : sh ./netbond.sh ethN ethN bondN ipaddr netmask gateway# Version : 1.1 2013.9.6 对输入进行判断,因为已经发生过一次输入错误导致配置失败# ... 阅读全文

posted @ 2013-09-06 22:34 新一 阅读(232) 评论(0) 推荐(0)

解决ntp的错误 no server suitable for synchronization found

摘要: 请参考http://xiahongyuan.blog.51cto.com/906214/939815 解决ntp的错误 no server suitable for synchronization found 当用ntpdate -d 来查询时报错: "no server suitable for synchronization found " 错误的原因有以下2个: 1.Server dropped: Strata too high 在ntp客户端运行ntpdate serverIP,呈现no server suitable for syn... 阅读全文

posted @ 2013-09-06 22:31 新一 阅读(34771) 评论(0) 推荐(0)

上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 174 下一页

导航