Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Saturday, January 9, 2010

C++ and C setting for VIM

OmniCppComplete & C/C++ IDE


1.get src.


  • ctags

  • c.vim : C/C++ IDE

  • OmniCppComplete : C/C++ omni-completion with ctags database

  • 2.setup ctags


    # tar xzvf ctags-XXXX.tar.gz
    # cd ctags-xxxx
    # ./configure
    # make
    # make install
    when install,should be root or user has permission.

    3.setup vim plugin


    # mkdir ~/.vim
    # cd ~/.vim
    # unzip
    # unzip

    4.add .vimrc


    # vim ~/.vimrc
    ---add this below 2 lines---
    filetype plugin on
    set nocompatible

    5.activate OmniComplete


    # vim foo.cx
    :helptags ~/.vim/doc

    Then now able to do this functions.
    OmniComplete
    Adding file header
    Adding function/frame comment
    Including default code snippet
    Performing syntax check
    Reading documentation about a function
    Converting a code block to comment, and vice versa

    Classic Mac Os9 のスクリーン画像の変換

    Os9の過去のデザインデータをぱぱっと、キャプチャ撮って、集めておこうとしたところ、Classic Macのスクリーンキャプチャの画像ファイルってOS Xでも、もちろんwinでも、linuxでも、開けず、参ってしまった。

    PixelCat、これを発見。便利です。

    Yoshiki Kojimaさん、ありがとうございます。



    で、さらに、変換したのは、いいけど、大きさがバラバラなんで、一括変換する便利なものを発見。

    リサイズ超簡単!Pro、便利です。使い易いです。

    Kazuo Chibaさん、ありがとうございます。


    Monday, August 3, 2009

    趣味のエディタ評価

    Emacs

    => light~heavy,comfortable when know many short-cuts.But no need do it all in Emacs.

    Vim

    => light,comfortable,better to know vim when working.

    Editra

    => sometime feel heavy,good editor.

    Geany

    => light,good editor.

    notepad++

    => light,good editor for windows

    Eclipse

    => Heavy,nice editor on super machine.

    Xcode

    => light,nice editor,But only mac

    My sets:
    *Geany for main job
    *Vim for git
    *Meld for git
    *Mutt for email
    *twidge for twit
    *FireFox for google apps
    need some calendar client? need some RSS reader?,Browser is enough for that.

    Sunday, August 2, 2009

    MacのファイルがLinuxでPermission denied

    Macのデータを外付けHDにバックアップして、Linuxでファイルを見ようとしたら、Permission denied.

    だいたい、画像(iphotoの画像)、音楽(itunesのファイル)などのフォルダが見られない。

    Linuxにてrootになって、chown +R ユーザ /そのフォルダ/ 

    すると、ファイルを参照することができる。
    もともとマックでどのユーザが作ったフォルダかどうかによります。