<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[handnotes的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/handnotes</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; handnotes]]></copyright><item><title><![CDATA[在iPhone程序上读取PDF文件 (rev0.1 ^-^;)]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/7020253</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/7020253</guid><author>handnotes</author><pubDate>Mon, 28 Nov 2011 17:04:21 +0800</pubDate><description><![CDATA[33AB95711CC2022ECCABAA63A7224B7CB9E66D32C8E47ECECF8833DE15DE73A76
归正传，怎么在iPhone程序中读取PDF的内容呢？答案是，苹果为我们准备了一个很神奇的framework Q2D（Quartz 2D）。Q2D提供了全套的PDF读取API，接下来我们来看看如果简单的使用Q2D来读取PDF文件：
我建立了一个工程叫iPhonePD]]></description><category></category></item><item><title><![CDATA[自定义UIAlertView]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6710626</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6710626</guid><author>handnotes</author><pubDate>Tue, 23 Aug 2011 09:46:43 +0800</pubDate><description><![CDATA[iPhone SDK提供 UIAlertView用以显示消息框， 默认的消息框很简单，只需要提供title和message
 以及button按钮即可， 而且默认情况下素有的text是居中对齐的。 那如果需要将文本向左对齐或者添加其他控件比如输入框时该怎么办呢？ 不用担心， i]]></description><category></category></item><item><title><![CDATA[透明图片的异形处理（windows或ppc）]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6640884</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6640884</guid><author>handnotes</author><pubDate>Thu, 28 Jul 2011 14:10:35 +0800</pubDate><description><![CDATA[HBITMAP LoadPngImage(const wchar_t* pfileName, COLORREF crTransparent){    IImagingFactory *pImgFactory = NULL;    IImage *pImage = NULL;]]></description><category></category></item><item><title><![CDATA[黑色透明png使用其他颜色填充（PPC或windows）]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6640734</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6640734</guid><author>handnotes</author><pubDate>Thu, 28 Jul 2011 13:24:59 +0800</pubDate><description><![CDATA[黑色透明png使用其他颜色填充：int SGDrawImageWithColor( HDC hdc, const RECT* pdstRect, SGImageInfo* pImageinfo, COLORREF crFillColor ) {    IImage* pImage]]></description><category></category></item><item><title><![CDATA[ppc或pc实现9段拉伸。]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6640568</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6640568</guid><author>handnotes</author><pubDate>Thu, 28 Jul 2011 12:05:11 +0800</pubDate><description><![CDATA[采用com实现，效率很低，需要很好优化。      IImage* pImage = pImageinfo->pImage;        RECT dstRect = *pdstRect;        //for icon        ImageInfo tempimage]]></description><category></category></item><item><title><![CDATA[制作iPhone PXL安装包的方法]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6638826</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6638826</guid><author>handnotes</author><pubDate>Wed, 27 Jul 2011 18:21:00 +0800</pubDate><description><![CDATA[Iphone安装包制作流程：（1）双击开发者密匙，输入开发者密码，点击OK按钮（2）进入KeyChain Access界面，双击distribution_identity.cer和developer_jdentity.cer把开发者证书和发布者证书加入。（3）打开XCODE,进入]]></description><category></category></item><item><title><![CDATA[iphone断点下载，断点续传]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6638580</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6638580</guid><author>handnotes</author><pubDate>Wed, 27 Jul 2011 17:30:53 +0800</pubDate><description><![CDATA[(void)loadView { NSURLConnection *hc=nil; @try{ NSURL *url=[NSURL URLWithString:@http://218.206.70.212/SingleDemo/file/480/soumoneyhaidaotua]]></description><category></category></item><item><title><![CDATA[objective－c调用静态库]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6638021</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6638021</guid><author>handnotes</author><pubDate>Wed, 27 Jul 2011 15:40:25 +0800</pubDate><description><![CDATA[一．基本知识在实际的编程过程中，通常会把一些公用函数制成函数库，供其它程序使用，一则提搞了代码的复用；二则提搞了核心技术的保密程度。所以在实际的项目开发中，经常会使用到函数库，函数库分为静态库和动态库两种。和多数人所熟悉的动态语言和静态语言一样，这里的所谓静态和动态是相对编译期和]]></description><category></category></item><item><title><![CDATA[ubuntu error：unknown filesystem grub rescue]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6540570</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6540570</guid><author>handnotes</author><pubDate>Mon, 13 Jun 2011 10:07:00 +0800</pubDate><description><![CDATA[第一次使用Ubuntu10.04就发生这么杯具的事，着实让我出了一把汗，经过多不探索，终于完美解决！首先，说一下出现这种状况的原因：我在windows下用分区工具重新进行了分区（虽然没有动Linux所在分区）注：双斜杠//之后的内容为命令解释，无需输入 解决方法：第一步：找出你的Linux盘在那个分区以及grub目录在什么位置。     如果你还记得最好，忘了也无所谓，使用下面命令逐个试探即可。 ]]></description><category></category></item><item><title><![CDATA[如何用perform selector调用超过两个以上参数的方法]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6447877</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6447877</guid><author>handnotes</author><pubDate>Thu, 26 May 2011 16:24:00 +0800</pubDate><description><![CDATA[<br />摘录：<br />Cocoa内置只支持两个参数，要超过两个参数以上怎么办呢，下面代码展示了如何实现一个自己的方法来调用超过7个参数（来自three20）<br /><br />
- (id)performSelector:(SEL)selector withObject:(id)p1 withObject:(id)p2 withObject:(id)p3<br />
    withObject:(id)p4 withObject:(id)p5 withObject:(id)p6 withO]]></description><category></category></item><item><title><![CDATA[Objective-C学习笔记---类别(实现多重继承的方法)]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6435793</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6435793</guid><author>handnotes</author><pubDate>Fri, 20 May 2011 23:43:00 +0800</pubDate><description><![CDATA[<br />✓ 类别是一个类，它是添加了新功能的现有类。<br />
✓ 使用类别就是为了能够为现有类添加新的方法，不用继承该现有类，就可使用现有类的对象调用添加的方法了。<br />
✓ 类别可以使类的实现分散在多个文件中.<br />
✓ 类别中不能有变量，类别中没有放变量的位置.<br />
✓ 如果类中的方法和类别中的方法名称相同，这将造成冲突，类别的方法将完全取代类的方法。<br />
✓ 同一个类的不同类别声明了相同的方法，这将导致不稳定，哪个方法会被调用是不确定的.<br />类别声]]></description><category></category></item><item><title><![CDATA[Ubuntu下Objective-C开发环境搭建 ]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6432486</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6432486</guid><author>handnotes</author><pubDate>Thu, 19 May 2011 16:36:00 +0800</pubDate><description><![CDATA[<br />抄录：http://www.oschina.net/bbs/thread/10659<br /> <br />最近看了很多文章，互联网发达今天，想找一篇对的文章还真TM难， 再次ＢＳ一下，那些不知所云就转贴的竖子，本来以为很简单的 
objective c 在 gcc上的编译问题，因为gcc很本就可以支持objective c 的，花了两天的时间搞定， 
不得不再次感叹互联网的强大<br /> <br />gcc是可以，但是不用GNUstep 而写obj c 是没有什么意义，如果用GNUst]]></description><category></category></item><item><title><![CDATA[编译android源码]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6430293</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6430293</guid><author>handnotes</author><pubDate>Wed, 18 May 2011 18:05:00 +0800</pubDate><description><![CDATA[<br />首先搭建android编译环境。<br />      （一）安装配置java5<br />      1 先安装java6(编译android需要java5，此处为推荐)<br />         打开终端，执行以下命令，或使用Adept/新立得软件管理器，在其中分别搜索"sun-java6-jre"和"sun-java6-jdk"并标记安装。  <br />         sudo apt-get install sun-java6-jre<br />
         如果空间富裕，]]></description><category></category></item><item><title><![CDATA[ubuntu10.04 android环境搭建 ]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6413835</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6413835</guid><author>handnotes</author><pubDate>Thu, 12 May 2011 10:20:00 +0800</pubDate><description><![CDATA[Ubuntu10.04配置android开发环境1.准备输入命令：sudo
apt-get update
2.安装 Java JDK &
Eclipse
 环境输入命令：sudo
apt-get install sun-java6-jdk eclipse出现ubuntu10.04
lucid 去掉了sun-java6-jre,sun-java6-jdk的源。解决方法：系统->系统管理->软件源“其它软件”下勾选第一个http://archive.canonical.com/ lucid
par]]></description><category></category></item><item><title><![CDATA[浅谈C++和Java的设计差异]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6317477</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6317477</guid><author>handnotes</author><pubDate>Tue, 12 Apr 2011 10:59:00 +0800</pubDate><description><![CDATA[<br />你觉得C++和java的设计思想差异很大吗？我不这样认为。抛开C++对C兼容的部分，C++和JAVA的差异主要是语言的使用环境，C++是编译型语言，编译期进行决策受到的限制会比较多，所以偏向于静态决策，java是解释型语言，运行时决策相对信息要准确很多了，所以偏向于动态决策；这是java OO思想表现的比C++更直接的原因。至于内存管理，java不过是把内存管理技术融合进语言内部了，C++把内存技术和语言分离的比较清晰罢了。总结一句话，java是站在C++的肩膀上的，但java语言从本质上并没有]]></description><category></category></item><item><title><![CDATA[WP7 破解资料临时保存]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6072605</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6072605</guid><author>handnotes</author><pubDate>Mon, 13 Dec 2010 10:27:00 +0800</pubDate><description><![CDATA[<br />　一个叫Chris Walshie的澳大利亚黑客发现了一种在一个零售的Windows Phone 
7手机上运行本地的非托管代码，这为以后应用程序在该手机上的使用找到了方式。据 istartedsomething 的Long 
Zheng报道，澳大利亚黑客Chris 
Walshie发现了一个叫"Microsoft.Phone.InteropServices"的动态链接库，如果被开发能够为用户的手机提供根存取权
限。]]></description><category></category></item><item><title><![CDATA[自定义输入法热键(转载)]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/6011763</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/6011763</guid><author>handnotes</author><pubDate>Tue, 16 Nov 2010 10:44:00 +0800</pubDate><description><![CDATA[自定义输入法热键(Win 9x/Me/2000/xp)
        出处：www.bianceng.cn 编辑：Mali
		    Windows系统已经定义了输入法的热键，但用户可以通过修改注册表来对这些热键进行自定义，方法如下：    （1）打开注册表编辑器。    （2）打开HKEY_CURRENT_USER/Control Panel/Input Method/Hot Keys子键。    （3）在Hot Keys子键下有00000010、00000011和00000012等子键，它们与输]]></description><category></category></item><item><title><![CDATA[stl allocator主要分配及应用联想]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/5894115</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/5894115</guid><author>handnotes</author><pubDate>Sun, 19 Sep 2010 11:38:00 +0800</pubDate><description><![CDATA[stl allocator一直比较神秘，最近几天帮助同事在symbian调试类stl的类库有所触动。stl allocator有几个地方需要注意就可以了：1.allocate主要功能是分配内存，而且一般来说是无类型的内存；2.deallocate的主要功能是释放内存，与allocate配对使用。3._Construct是针对于具体的元素或数据项的操作，主要是类的构造，具体涉及到的技术是new placement;
4._Destroy或_DESTRUCTOR与Construct相对的操作，主要用于析构;注]]></description><category></category></item><item><title><![CDATA[Windows mobile 判断应用程序是否安装,获取已经安装的应用程序列表]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/5750172</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/5750172</guid><author>handnotes</author><pubDate>Tue, 20 Jul 2010 16:45:00 +0800</pubDate><description><![CDATA[<br />//判断具体的应用程序是否已经安装，有些内置的程序不能判断。<br />//内置的程序一般可以通过查看程序菜单的快捷方式来判断是否安装。<br />BOOL IsAppInstalled( )<br />
{<br />
    BOOL bRet = FALSE;<br />
    //查询可被卸载的软件信息<br />
    LPCTSTR szInput = <br />
        L"<wap-provisioningdoc>"<br />
        L"<c]]></description><category></category></item><item><title><![CDATA[Windows mobile和windows下写IE cookie ]]></title><link>https://blog.youkuaiyun.com/handnotes/article/details/5750032</link><guid>https://blog.youkuaiyun.com/handnotes/article/details/5750032</guid><author>handnotes</author><pubDate>Tue, 20 Jul 2010 16:10:00 +0800</pubDate><description><![CDATA[ cookie，网络通信
]]></description><category></category></item></channel></rss>