现在位置: 首页 > colossus发表的所有文章
  • 03月
  • 25日
综合 ⁄ 共 1315字 评论关闭
http://blog.sina.com.cn/s/blog_8c612cae01012arj.html 最近经常见到这些unsigned char,short,int ,long的定义,有时真的不确定位长是多少,上网查,又话是跟编译器有关,没一个准确答案。于是只好自己找答案,其实用一个最简单地方就可以知道其长度,就是用sizeof函数。于是我写了如下一段:         unsigned char uint8 = 0;         signed char int8 = 0;         unsigned short uint16 = 0;         signed short int16 = 0;         unsigned int uint32 = 0;         signed int int32 = 0;         float fp32 ......
阅读全文
  using UnityEngine; using System.Collections; public class PlayAminitors : MonoBehaviour { public GameObject gaminitor; public RuntimeAnimatorController controller1,controller2; //动画 public AudioSource audioSource1,audioSource2; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (Input.GetKey (KeyCode.Alpha1)) { //找到动画组件的Animator组件,获得cotroler属性,修改为controller1 gaminitor.GetComponent<Animat......
阅读全文
  • 05月
  • 24日
综合 ⁄ 共 2910字 评论关闭
         今天遇到一个问题就是new FileInputStream(“”)不能获取相对路径的输入流,只能写绝对路径才能访问。 本人通过参考一些文件现总结如下: 1、首先是加载property属性文件 private static Properties properties;  private static Logger log = Logger.getLogger(Configuration.class);    private final static String PropfilePath = "load/proptertyFIle/system.properties"; static{   InputStream in = null;   properties = new Properties();   try {    String path = Thread.currentThread().getContextClassLoad......
阅读全文
  • 05月
  • 21日
综合 ⁄ 共 4662字 评论关闭
业内IT专家:程建强     2013年春节期间,不经意阅读了《乔布斯传》,使我了解到一个产品驱动型公司的商业传奇,了解到一个做端到端产品创新的公司领袖,了解到一个天才产品经理的执着、苛刻与激情,以及他在商业模式方面持续创新的精神。苹果公司是产品化公司的经典,如果说他是产品型的软件公司应该不全面,他的产品包括系统平台软件、软硬件系统集成、端到端服务为一体的产品型公司。这对我产生了巨大的影响,我开始不断的在思考并反复“百度”与产品化有关的问题。“什么是项目型IT公司?”、“什么是产品型IT公司?”、“什么是软......
阅读全文
  • 05月
  • 06日
综合 ⁄ 共 2731字 评论关闭
----------- android培训、java培训、java学习型技术博客、期待与您交流! ------------ 一、什么是装饰设计模式?  在java中,当一个类在已经定义好了的情况下,需要对该类进行功能的增强,这时候就需要用到了继承和装饰类。 二、装饰设计模式的好处  对类的功能进行增强,提高了程序的灵活性。 三、装饰设计模式和继承进行比较  继承:面向对象的三大特征之一,但是,使体系臃肿。  装饰模式:让体系更灵活。           装饰设计模式实例: /* * 自己模拟BufferedReader类 * 模拟close()方法,readLine()方法 */ import ja......
阅读全文
  • 05月
  • 05日
综合 ⁄ 共 406字 评论关闭
1、下载最新版本 2、将lib文件夹下的jar包除gnujaxp.jar外全部复制到web-ing 下的lib文件夹下; 多了gnujaxp.jar文件: 启动tomcat会报异常:Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@11ce012] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support. 少了jcommon-1.0.17.jar文件: 启动tomcat会报异常:The type org.jfree.util.PublicCloneable cannot be resolved. It ......
阅读全文
  • 04月
  • 27日
综合 ⁄ 共 18882字 评论关闭
软件测试工程师成长之路:掌握软件测试九大技术主题 王顺 等 编著   ISBN 978-7-121-23996-0 2014年9月出版 定价:85.00元 432页 16开 内容提要 《软件测试工程师成长之路:掌握软件测试九大技术主题》以实际项目为原型、以关键理论与丰富实践为指导,贯彻了先进的项目管理理念与全程质量管理思想。 《软件测试工程师成长之路:掌握软件测试九大技术主题》前9 章为软件测试九大技术主题分享,是众多资深软件工程师在软件测试领域的经验总结、知识升华与提高,展现众多实际工作中典型的测试技巧和测试技术。《软件测试工程师成长......
阅读全文
  • 04月
  • 16日
综合 ⁄ 共 2453字 评论关闭
在内核2.4中堆栈是这么定义的: union task_union {         struct task_struct task;         unsigned longstack[INIT_TASK_SIZE/sizeof(long)];     };而INIT_TASK_SIZE只能是8K。 内核为每个进程分配一个task_struct结构时,实际上分配两个连续的物理页面(8192字节),如图所示。底部用作task_struct结构(大小约为1K字节),结构的上面用作内核堆栈(大小约为7K字节)。访问进程自身的task_struct结构,使用宏操作current, 在2.4中定义如下: #define current get_current() static inline struct task_struct * get_current(vo......
阅读全文
  • 04月
  • 01日
综合 ⁄ 共 4169字 评论关闭
1、新建资源项目,如mediatek,目录结构:(和其他app一样,因为只要资源,不需要src) 目录存放到framework/base/core/mediatek res Android.mk AndroidManifest.xml 2、.Android.mk内容: LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_PACKAGE_NAME := mediatek-resLOCAL_CERTIFICATE := platform# Tell aapt to create “extending (non-application)” resource IDs,# since these resources will be used by many apps.LOCAL_AAPT_FLAGS := -xLOCAL_MODULE_TAGS := optional# Install this alongside the librarie......
阅读全文
  • 03月
  • 18日
综合 ⁄ 共 2432字 评论关闭
1. 引入nullptr的原因 引入nullptr的原因,这个要从NULL说起。对于C和C++程序员来说,一定不会对NULL感到陌生。但是C和C++中的NULL却不等价。NULL表示指针不指向任何对象,但是问题在于,NULL不是关键字,而只是一个宏定义(macro)。 1.1 NULL在C中的定义 在C中,习惯将NULL定义为void*指针值0: [cpp] view plaincopyprint? #define NULL (void*)0   #define NULL (void*)0 但同时,也允许将NULL定义为整常数0 1.2 NULL在C++中的定义 在C++中,NULL却被明确定义为整常数0: [cpp] view plaincopyprint? // lmcons.h中......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 3187字 评论关闭
Problem Description === Op tech briefing, 2002/11/02 06:42 CST === "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, along with Klein and his factory, were destroyed in World War II. Fortunately old Brumbaugh from research knew Klein's secrets and wrote them down before he died. A Klein safe has two distinguishing features: a combination lock that uses letters instead of numbers, and an engraved quotation on ......
阅读全文
  • 12月
  • 17日
综合 ⁄ 共 3054字 评论关闭
Android开发中有时需要在应用中或进程间传递对象,下面详细介绍Intent使用Bundle传递对象的方法。 被传递的对象需要先实现序列化,而序列化对象有两种方式:java.io.Serializable和android.os.Parcelable Java中使用的是Serializable,而谷歌在Android使用了自定义的Parcelable。两种序列化方式的区别:1.在使用内存的时候,Parcelable比Serializable性能高,推荐使用Parcelable类;2.Serializable在序列化的时候会产生大量的临时变量,从而引起频繁的GC;3.Parcelable不能使用在要将数据存储在磁盘上的情况,因为Parcelable不能......
阅读全文