<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xinem的专栏]]></title><description><![CDATA[在别人的生活里跑龙套,不如精彩地做自己!]]></description><link>https://blog.youkuaiyun.com/xinem</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; xinem]]></copyright><item><title><![CDATA[Android中的TabHost]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/7083523</link><guid>https://blog.youkuaiyun.com/xinem/article/details/7083523</guid><author>xinem</author><pubDate>Mon, 19 Dec 2011 11:31:24 +0800</pubDate><description><![CDATA[介绍 
有时，我们想在一个window中显示多个视图，这时就需要用到Tab容器。在Android里它叫TabHost。
使用TabHost有两种方式：


在相同的activity中使用TabHost导航多个视图使用TabHost导航多个Activity(通过intents)
Tab应用的结构
TabHost的Activity的结构如下:




先看个示例：
layou]]></description><category></category></item><item><title><![CDATA[Android中的Toast]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/7083201</link><guid>https://blog.youkuaiyun.com/xinem/article/details/7083201</guid><author>xinem</author><pubDate>Mon, 19 Dec 2011 10:22:08 +0800</pubDate><description><![CDATA[Android中的Toast


简介
Toast是一个弹出Message，允许你便捷地通知用户一些时间，比如：将数据保存到SD卡。值得注意的是用户不能取消Toast。大多数情况下，Toast仅仅是一个简短的message，但你也可以定制Toast的界面。


创建标准Toast
标准Toast可以通过Toast的静态方法makeText来创建：


	Toast.makeT]]></description><category></category></item><item><title><![CDATA[Bean中PropertyChangeSupport的使用]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6412757</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6412757</guid><author>xinem</author><pubDate>Wed, 11 May 2011 18:55:00 +0800</pubDate><description><![CDATA[<br />JavaBean的属性与一般Java程序中所指的属性，或者说与所有面向对象的程序设计语言中对象的属性是一个概念，在程序中的具体体现就是类中的变量。在JavaBean的设计中，按照属性的不同作用又细分为四类：单值属性；索引属性；关联属性；限制属性。<br />本文主要介绍如何使用PropertyChangeSupport类来支持关联属性事件的触发。<br />1．关联属性<br />关联属性，也称之为绑定属性。绑定属性会在属性值发生变化时，通知所有相关的监听器。为了实现一个绑定属性，必须实现两个机]]></description><category></category></item><item><title><![CDATA[Stream Errors]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6050577</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6050577</guid><author>xinem</author><pubDate>Thu, 02 Dec 2010 17:01:00 +0800</pubDate><description><![CDATA[To indicate an error, many stdiolibrary functions return out-of-range values, such as null pointers or the constant EOF. In these cases, the error is indicated in the external variable errno:     #include      extern int errno;      Note that many function]]></description><category></category></item><item><title><![CDATA[Linux 系统库函数 -- dup 和 dup2]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6037334</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6037334</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 14:17:00 +0800</pubDate><description><![CDATA[    The dupsystem calls provide a way of duplicating a file descriptor, giving us two or more different descriptors that access the same file. These might be used for reading and writing to different locations in the file. The dupsystem call duplicates a f]]></description><category></category></item><item><title><![CDATA[Linux系统库函数 -- lseek函数用法]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6037312</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6037312</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 14:10:00 +0800</pubDate><description><![CDATA[所有打开的文件都有一个当前文件偏移量（current file offset），以下简称为 cfo。cfo 通常是一个非负整数，用于表明文件开始处到文件当前位置的字节数。读写操作通常开始于 cfo，并且使 cfo 增大，增量为读写的字节数。文件被打开时，cfo 会被初始化为 0，除非使用了 O_APPEND 。       使用 lseek 函数可以改变文件的 cfo 。           #include            off_t lseek(int filedes, off_t offset,]]></description><category></category></item><item><title><![CDATA[减少系统调用次数以提高系统效率]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6037055</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6037055</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 12:21:00 +0800</pubDate><description><![CDATA[以文件拷贝为例：     We’ll do this in a number of ways during this chapter to compare the efficiency of each method. For brevity, we’ll assume that the input file exists and the output file does not, and that all reads and writes succeed. Of course, in real-life p]]></description><category></category></item><item><title><![CDATA[Linux 文件、文件夹默认权限]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6036945</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6036945</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 11:28:00 +0800</pubDate><description><![CDATA[•若用户建立为”文件”则默认“没有可执行（x）项目”，即只有rw这两个项目，也就是最大为666分，默认属性如下：   -rw-rw-rw-     • 若用户建立为”目录”，则由于x与是否可以进入此目录有关，因此默认为所有权限均开放，即为777分，默认属性如下：    drwxrwxrwx]]></description><category></category></item><item><title><![CDATA[Linux 文件操作库函数 -- ioctl]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6036929</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6036929</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 11:24:00 +0800</pubDate><description><![CDATA[    ioctl is a bit of a ragbag of things. It provides an interface for controlling the behavior of devices and their descriptors and configuring underlying services. Terminals, file descriptors, sockets, and even tape drives may have ioctlcalls defined for]]></description><category></category></item><item><title><![CDATA[Linux 文件操作库函数 – close]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6036893</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6036893</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 11:13:00 +0800</pubDate><description><![CDATA[We use closeto terminate the association between a file descriptor, fildes, and its file. The file descriptor becomes available for reuse. It returns 0 if successful and -1 on error.      #include      int close(int fildes);      Note that it can be import]]></description><category></category></item><item><title><![CDATA[umask]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/6036867</link><guid>https://blog.youkuaiyun.com/xinem/article/details/6036867</guid><author>xinem</author><pubDate>Fri, 26 Nov 2010 11:06:00 +0800</pubDate><description><![CDATA[The umask is a system variable that encodes a mask for file permissions to be used when a file is cre-   ated. You can change the variable by executing the umask command to supply a new value. The value    is a three-digit octal value. Each digit is the re]]></description><category></category></item><item><title><![CDATA[奇迹]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5320599</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5320599</guid><author>xinem</author><pubDate>Tue, 23 Feb 2010 19:32:00 +0800</pubDate><description><![CDATA[有人试图拨开尘封的记忆寻找世间命运的轨迹有人整日面以泪洗只因未来是如此地迷离有人总是疑惑地问奇迹，你在哪里？有人总是悲愤地说奇迹，不过是笑话而已！只是他们看不见上天的恩谛只是他们参不懂那真爱无敌所以请穿越苍茫而凄冷的人海将那双温暖的手放进怀里说我的奇迹就是你！]]></description><category></category></item><item><title><![CDATA[JQuery事件----冒泡机制的思考]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5317850</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5317850</guid><author>xinem</author><pubDate>Mon, 22 Feb 2010 20:33:00 +0800</pubDate><description><![CDATA[当页面上发生一个事件时，每个层次上的DOM元素都有机会处理这个事件。             小小子欢迎您                这里至少还有我，小小子，存在~      举例来说，如果单击了页面中的超链接（锚元素），那么、和全都应该得到响应这次单击的机会。因为这三个元素毕竟都是在用户的鼠标指针之下啊。那么，最终响应的效果是什么样的呢]]></description><category></category></item><item><title><![CDATA[jQuery1.2后已删除XPath选择器支持]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5316093</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5316093</guid><author>xinem</author><pubDate>Mon, 22 Feb 2010 10:27:00 +0800</pubDate><description><![CDATA[在学习JQuery时发现XPath选择器不能用，在网上查了一下资料，发现自从jQuery1.2版本以后就不支持XPath了，如果想使用需要使用一个jQuery插件，插件大家可以在一下链接找到。  1.jQuery1.2更新日志http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin"Since XPath ]]></description><category></category></item><item><title><![CDATA[JQuery常用方法]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5312399</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5312399</guid><author>xinem</author><pubDate>Sat, 20 Feb 2010 10:20:00 +0800</pubDate><description><![CDATA[Attribute： $(”p”).addClass(css中定义的样式类型); 给某个元素添加样式 $(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值，参数是map $(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值 $(”img”).attr(”titl]]></description><category></category></item><item><title><![CDATA[struts2 fielderror 标签格式无法改变解决办法]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5298750</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5298750</guid><author>xinem</author><pubDate>Mon, 08 Feb 2010 14:55:00 +0800</pubDate><description><![CDATA[Struts2中的fielderror的theme设置为simple，但是输出还是有ul和li。要想去掉有一个好办法，如下：建立目录src/template/simple/fielderror.ftl这个文件，直接复制jar包中的然后修改，删掉其中的ul和li标签即可。 ]]></description><category></category></item><item><title><![CDATA[Flex事件机制]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5289299</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5289299</guid><author>xinem</author><pubDate>Thu, 04 Feb 2010 18:38:00 +0800</pubDate><description><![CDATA[Flex事件机制是观察者模式，即首先要注册事件，事件分发后通过事件响应函数进行处理。   例如在AS3中：    button.addEventListener(“click”,onClick);//向button注册一个click事件    internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//事]]></description><category></category></item><item><title><![CDATA[SQLite管理工具]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5288193</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5288193</guid><author>xinem</author><pubDate>Thu, 04 Feb 2010 14:03:00 +0800</pubDate><description><![CDATA[SQLite是一种轻量级的嵌入式数据库，速度也非常快。但是管理不是很方便，所今天找了几个，选了一个功能比较齐全而且使用方便的，它叫Sqliteman.上个图先：  ]]></description><category></category></item><item><title><![CDATA[Live Writer 2009]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5276003</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5276003</guid><author>xinem</author><pubDate>Mon, 01 Feb 2010 09:35:00 +0800</pubDate><description><![CDATA[给大家推荐一个做笔记的工具，功能齐全，方便安全。可能有的小盆友已经听过它了，它是Windows Live Writer，这是Windows Live 套件中的一个，是用来写日志的，支持很多日志，之所以推荐主要是在网页上写日志不是很方便，大家可以试用一下。  可以在这里下载：http://im.live.cn/  下面有一些截图：   ]]></description><category></category></item><item><title><![CDATA[MyEclipse 下载地址]]></title><link>https://blog.youkuaiyun.com/xinem/article/details/5275374</link><guid>https://blog.youkuaiyun.com/xinem/article/details/5275374</guid><author>xinem</author><pubDate>Sun, 31 Jan 2010 14:13:00 +0800</pubDate><description><![CDATA[由于MyEclipse屏蔽了大陆ip，所以下载MyEclipse还是比较麻烦的，下面是MyEclipse 7.5GA 的各种版本的直接地址：  1- MyEclipse Enterprise Workbench 7.5 for Windows 98/2000/NT/XP/Vista (06/17/2009)  MyEclipse Enterprise Workbench 7.5 GA for Ec]]></description><category></category></item></channel></rss>