• iOS5之回不去了 – 如何使用Reference Counting機制

     

    http://blog.riaproject.com/objective-c/1845.html
  • http://bbs.weiphone.com/read-htm-tid-3412071.html
  • http://www.codza.com/how-to-debug-exc_bad_access-on-iphone

    To set this variable, go to the info panel of the executable in xcode, and create a new environment variable in the arguments tab by clicking the plus sign in the lowe...
  • 2011-10-24

    Mapkit 集群功能

    http://blog.csdn.net/bl1988530/article/details/6671573

    在做mapkit的应用时候,有时候会在上面放置很多annotation,这样在地图缩放的时候有时候会出现annotation重合的情况,效果不是太好,如果能把重合的annotation做一个集群计数标识出来,这样会清晰一点,用...
  • http://blog.csdn.net/bl1988530/article/details/6729369

    iPhone 对于应用程序在后台运行有诸多限制(除非你越狱)。因此,当用户切换到其他程序后,原先的程序无法保持运行状态。对于那些需要保持持续连接状态的应用程序(比如社区网络应用),将不能收到实时的信...
  • http://www.iteye.com/topic/474358

     

     
  • CLLocationManager *locmanager = [[CLLocationManager alloc]init];//先定义一个cllocationmanager的实例 
        [locmanager setDelegate:self]; //设置代理为本身 
        [locmanager setDesiredAccuracy:kCLLocationAccurac...

  • http://www.sqlite.com.cn/MySqlite/6/519.Html
  • 2011-10-19

    Run Loops翻译

    http://www.cnblogs.com/scorpiozj/archive/2011/05/26/2058167.html

  • IPhone开发中的NSRunLoop,什么时候需要explicity的运行一个run loop呢?在如下四种情况下:

    Use ports or custom input sources to communicate with other threads.
    Use timers on the thread.
    Use any of the performSelector… methods in a Cocoa applic...

  • http://www.jaysonjc.com/programming/pie-chart-drawing-in-iphone-using-core-plot-library.html
  • http://mobileorchard.com/find-iphone-memory-leaks-a-leaks-tool-tutorial/


  • http://wangjun.easymorse.com/?p=1052



  • from : http://www.iblue.cc/2011/05/

     

    //获得某个window的某个subView

    UIView *view = [[[[[UIApplication sharedApplication] windows] objectAtIndex:0] subviews] lastObject];

     

    NSInteger index = 0;//用来给保存的png命名

    for (UIView *su...

  • http://www.wuleilei.com/blog/302

     

    MyClass.h
    @interface MyClass : NSObject {
      MyObject * _myObject;
    }
    @property (nonatomic, retain) MyObject *myObject;
    @end

    MyClass.m
    @synthesize myObject = _myObject;

    get方法是:
    -(MyObject*)my...

  • http://softbbs.pconline.com.cn/8901346.html

  • 50个Iphone的开源软件

    http://ntt.cc/2010/09/05/50-open-source-iphone-apps-for-iphone-developers.html

  • Ad-Hoc(点对点)模式:ad-hoc模式就和以前的直连双绞线概念一样,是P2P的连接,所以也就无法与其它网络沟通了。一般无线终端设备像PMP、PSP、DMA等用的就是ad-hoc模式。

    在家庭无线局域网的组建,我想大家都知道最简单的莫过于两台安装有无线网卡的计算机实施无线互联,其中一台计算机连接Internet就可以共享带宽。如下图所示,一个基于Ad-Hoc结构的无线局域网便完成了组建。

    Ad-Hoc结构是一种省去了无线AP而搭建起的对等网络结构,只要安装了无线网卡的计算机彼此之间即可实现无线互联;其原理是网络中的一台电脑主机建立点对点连接相当于虚拟AP,而其它电脑就可以直接通过这个点对点连接进行网络互联与共享。

    由于省去了无线AP,Ad-Hoc无线局域网的网络架设过程十分简单,不过一般的无线网卡在室内环境下传输距离通常为40m左右,当超过此有效传输距离,就不能实现彼此之间的通讯;因此该种模式非常适合一些简单甚至是临时性的无线互联需求。

    微软的一篇技术文档:

    http://www.microsoft.com/china/windowsxp/expertzone/columns/bowman/02april08.mspx

  • 当VC编译出现warning LNK4204的告警时,MSND上的解释如下:

    “The .pdb file has an erroneous signature. The linker will continue to link the object without debug information. You may want to recompile the object file using the /Zi option.”

    但实际上最关键的不是/Zi或者使用/ZI,而是需要留心整个项目工程中是否有多个库文件或者某些编译输出的中间文件vc70.pdb或者vc90.pdb产生了覆盖的操作,当pdb文件丢失或者覆盖后,就会出现LNK4204错误。

  • 软件:VC6,XP-SP2,fltk-2.0.x-r6879

    fltk2的软件作者显然不是很仔细,:(

    1) 首先最开始编译就出现#warning和#error等fatal错误
    经过核查,该项目工程的VC工程中,在visualc目录下有个config.h文件,而如果编译linux版本时,会由./configure生成项目根目录下的config.h文件,我是先编译的linux版本,因此这两个config.h文件都同时存在,而这两个config.h显然在有些变量的定义上是完全不同的,所以比较简单的方法就是在编译VC版本的时候,删除这个linux版本的config.h,项目在编译的时候,会根据目录顺序,先找项目根目录下的,再找visualc目录下的,找到第一个就退出。

     

    2) # warning "This method will not work on this system. (you can ignore this warning)"
    这是由于在项目中没有定义__WIN32__这个宏,加入到project->setting的预定义宏即可。

    3) BITMAPV5HEADER 结构无定义
    在config.h的最前面加入
    #undef WINVER
    #define WINVER 0x0500即可


    4)编译出现LNK2001 : unresolved external symbol错误

    Linking...
    fltk2.lib(Widget.obj) : error LNK2001: unresolved external symbol "void __cdecl
    delete_associations_for(class fltk::Widget *)"
    (?delete_associations_for <at> <at> [EMAIL PROTECTED] <at> <at> <at> Z)
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: void __thiscall fltk::Widget::add(class fltk::AssociationType const
    &,void *)" ([EMAIL PROTECTED] <at> fltk <at> <at> [EMAIL PROTECTED] <at> [EMAIL PROTECTED])
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: bool __thiscall fltk::Widget::find(class fltk::AssociationType const
    &,void *)const " ([EMAIL PROTECTED] <at> fltk <at> <at> [EMAIL PROTECTED] <at> [EMAIL PROTECTED])
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: bool __thiscall fltk::Widget::remove(class fltk::AssociationType const
    &,void *)" ([EMAIL PROTECTED] <at> fltk <at> <at> [EMAIL PROTECTED] <at> [EMAIL PROTECTED])
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: void __thiscall fltk::Widget::set(class fltk::AssociationType const
    &,void *)" ([EMAIL PROTECTED] <at> fltk <at> <at> [EMAIL PROTECTED] <at> [EMAIL PROTECTED])
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: void * __thiscall fltk::Widget::get(class fltk::AssociationType const
    &)const " ([EMAIL PROTECTED] <at> fltk <at> <at> [EMAIL PROTECTED] <at> <at> Z)
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "public: void * __thiscall fltk::Widget::foreach(class fltk::AssociationType
    const &,class fltk::AssociationFunctor &)const " ([EMAIL
    PROTECTED] <at> fltk <at> <at> QBEPAXABVAssociationTy
    [EMAIL PROTECTED] <at> [EMAIL PROTECTED] <at> <at> Z)
    fltk2.lib(ShortcutAssignment.obj) : error LNK2001: unresolved external symbol
    "void * __cdecl fltk::foreach(class fltk::AssociationType const *,class
    fltk::Widget const *,class fltk::AssociationFunctor &)" ([EMAIL
    PROTECTED] <at> <at> [EMAIL PROTECTED] <at> P
    [EMAIL PROTECTED] <at> [EMAIL PROTECTED] <at> <at> Z)

    这是因为项目VC6的fltk工程中的source中缺少了WidgetAssociation.cxx文件,因此加入即可。真是晕啊。。。。


    5) 编译出现 error C2664
    WidgetAssociation.cxx
    D:\C--Project\fltk-2.0.x-r6879\src\WidgetAssociation.cxx(315) : error C2664: 'foreach' : cannot convert parameter 1 from 'struct PrimaryAssociation *' to 'const class fltk::AssociationType *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    D:\C--Project\fltk-2.0.x-r6879\src\WidgetAssociation.cxx(325) : error C2664: 'foreach' : cannot convert parameter 1 from 'struct PrimaryAssociation *' to 'const class fltk::AssociationType *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Generating Code...
    Error executing cl.exe.

    将下面的修改如下即可:

    void* fltk::foreach(const AssociationType* at, const Widget* wg,
    AssociationFunctor& fkt) {
    [...]
    //    return foreach(node, at, fkt);  // causes compilation errors with VS6
        return ::foreach(node, at, fkt);
    [...]
    //        void * res = foreach(node, at, fkt);  // causes compilation errors with VS6
            void * res = ::foreach(node, at, fkt);

     到现在,终于可以说是编译成功了!将test目录下的demo和编译出来的fltk2.lib进行编译生成执行程序,运行ok!

  • 解决局域网内的windows机器相互访问的问题,图文并茂,留着备份

    http://blog.sina.com.cn/s/blog_55368f530100cm5z.html

  • 在opensuse11.1操作系统下,Evolution2.24.1.1版本,配置和使用PoP3/smtp在本地接收发送hotmail的邮箱的配置如图中所示:

     

     

    发送smtp的配置身份验证,选择“PLAIN”和“LOGIN”都可以,但是一定要选择“TLS加密”

     

  • 晚上在sina上看到这个快讯,立即到Wind River公司的网站上查看了一下:

    看来消息是千真万确的,心中小震动了一下,Intel现在对操作系统突然花大力气了,英特尔先是出品Moblin Linux打算和Windows 7在上网本领域一决高下,现在收购了嵌入式操作系统中的业界老大vxworks系统的提供商Wind River, 如果你对vxworks操作系统不熟悉,那么vxworks在嵌入式操作系统领域的地位基本上和XP在个人PC操作系统的领域和地位差不多,美国的火星车“机遇”和“勇气”都是基于该操作系统的,国内的通信设备提供商目前大部分的通信设备都采用的是该操作系统。

    "Our combination of strengths will be of great benefit to Wind River’s existing and future customers," said Ken Klein, Wind River Chairman, president and CEO. "As a wholly owned subsidiary, Wind River will more tightly align its software expertise to Intel’s platforms to speed the pace of progress and software innovation. We remain committed to continuing to provide leading solutions across multiple hardware architectures and delivering the same world-class support to which our customers have grown accustomed."

    这段太厉害了,两者的结合将使Wind River更加紧密的针对Intel's处理器的平台加快软件创新。这意味着今后Wind River将更多的基于Intel的嵌入式处理器优化Wind River VxWorks和Wind River Linux; 专门针对嵌入式Intel处理器架构,优化风河hypervisor技术,特别是充分发挥Intel Virtualization(VT)技术的全部潜能; 专门针对嵌入式Intel处理器架构,提升多核设备分析和性能调优开发工具的互操作性; 将Intel编译器和performance primitives集成进入Wind River面向Intel处理器的多核软件平台。

    不仅为ARM,MIPS多核,以及其他嵌入式芯片的未来暗自担心,原来Intel主要将CPU的目标放置在个人PC领域,和AMD斗得你死我活,现在把战火烧到嵌入式操作系统领域,在Linux和Vxworks两个方向大力出击,这样在Vxworks操作系统,Intel芯片,尤其是在多核领域的优势得以加强。如果Intel作的太绝的话,估计以后ARM和MIPS将更多的采用Linux操作系统而放弃Vxworks。

     

     

     

  • IBM去年就放出了lotus notes client v8.5的全部试用版,其系统要求说明见文档:
    http://www-01.ibm.com/support/docview.wss?rs=475&uid=swg27013074

    [下载安装]

    下载试用版需要注册IBM的一个ID,随便注册就好了,然后进入下载界面,由于我准备安装的系统是Opensuse11.1,因此下载类别中属于 SUSE Linux Enterprise Desktop (SLED) 10 XGL (32-bit), Service Pack 2。

    实际选择下载rpm的安装包

    IBM Lotus Notes 8.5 for Linux (RPM Install) English Trial C1SC0EN.tar  (417 MB)

    下载完毕后,该tar文件包内包括:

    • ibm_lotus_cae-8.5.i586.rpm
    • ibm_lotus_activities-8.5.i586.rpm
    • ibm_lotus_sametime-8.5.i586.rpm
    • ibm_lotus_symphony-8.5.i586.rpm
    • ibm_lotus_notes-8.5.i586.rpm

    在opensuse11.1系统上,直接rpm安装上面的全部即可。待安装结束,在我的系统上就直接运行起来了。

    [时间限制]

    由于是试用版本,因此有90天的限制,不过好在对功能没有限制,简单尝试了一下,通过修改系统的本地时间就可以回避这个问题。

     

  • [sled10.2sp2版本中:]
    帮助里说
    iocharset=<arg> Linux charset (iso8859-1, utf8)
    codepage=<arg> server codepage (cp850)

    mount -t smbfs -o username=xxx,iocharset=utf8,codepage=cp936 //192.168.1.1/share /mnt/share

    -----------------------------------
    特别注意的是,在opensuse11.1中已经如下:

    Fedora core 5的smbclient 的RPM中已經沒有了smbmount這支程式了。事實上,smbmout就等於mount -t smbfs。所以沒有了也無所謂,只是在FC5 kernel 中也沒有將smbfs的support加入。所以,當打入

    mount -t smbfs -o username=xxx.password=xxx //hostname/dir /mnt/dir
    mount: unknown filesystem type 'smbfs

    就會出現上面的這行訊息,是因為FC5現在改用 Common Internet File Systemcifs(cifs)取代了原有的smbfs,所以指令就必須改成

    mount -t cifs -o username=xxx,iocharset=utf8,codepage=cp936 //10.44.33.189/share /mnt/share
    mount -t cifs -o username=xxx //192.168.1.101/"本地磁盘 (D)" /mnt/share
    mount -t cifs -o username=xxx.password=xxx //hostname/dir /mnt/dir

    如果你還是習慣用smbmount,在/root/.bashrc 中加一行
    alias smbmount='mount -t cifs'

    ---------------------------------
    有些时候,可能某些设备(通常是 CD-ROM)正忙或无法响应。此时,大多数用户的解决办法是重新启动计算机。我们大可不必这么做。例如,如果 umount /dev/hdc 失败的话,您可以试试“lazy” umount。语法十分简单:

    umount -l <挂载点|设备>


  • 前几天使用opensuse11.1,笔记本为IBM X61s,使用过程中出现了无论在bash或者openoffice中敲击键盘都无法获得输入,一开始还以为电脑的硬件出了问题,重启,在登录界面能够输入username/password,说明硬件的工作在这个时候是没问题的。启动进入KDE后,现象依旧。

    上google以“opensuse 键盘无法输入”搜出一堆的文章,不过基本都排除了,正郁闷时,无意中长按了一个键,结果在shell上艰难的打出了这个字符,后来发现只要长按一个键,都能以很慢的在shell上进行键盘输入,系统好像得了痴呆症,在输入时慢了一大拍。

    故障稳定了,就好办了,依旧求助了google,获得答案:

    ~/.kde4/share/config/kaccessrc文件中的将slowkey=false设置即可。

    所以以后按shift键超过8秒的时候要当心,不要选择了“是”,否则就容易出现了这种“键盘无法输入”的“假故障”了。

  • iwconfig    无线网卡配置工具
    lspci         是一个用来显示系统中所有PCI总线设备或连接到该总线上的所有设备的工具。
    lsmod       program to show the status of modules in the Linux Kernel
    chkconfig  检查,设置系统的各种服务
    sysctl -A | grep forward 显示内核的运行信息
    route -n   显示路由表
    arp          显示arp表
    /etc/init.d/network restart 重新启动系统的网络
    netstat -tunlp 显示本地的t=tcp,u=udp,n=don't resolve,l=listning,p=program name的协议监听;

  • 2009-05-03

    创建

    本来想注册crazy,无赖已被使用了,也想不出别的,就用这个吧!