2008年11月27日木曜日

ReMac

as i said before, my HD was dead.
when i restore my mac, i always get confused what software i should install.
i wanna minimize my Mac. in the meantime, i write needed applications down here.
then, let's think the figure of the best environment.

1)XCode
http://developer.apple.com/technology/xcode.html
if i don't use this, i can't do anything.

2)Emacs
http://homepage.mac.com/zenitani/emacs-e.html
same as above

3)Evernote
http://evernote.com/
same as above

4)Dropbox
http://www.getdropbox.com/
same as above

5)Quicksilver
http://quicksilver.en.softonic.com/mac
you may say spotlight is enough, but it doesn't complement. i often make a type. i still need it.

6)Growl
http://growl.info/
this is a very good application. it helps me to know states of other applications.

7)Adium
http://www.adiumx.com/
useful



these are minimum applications what i need.

2008年11月25日火曜日

My HD was dead.

i know i should back my HD up once a month.
i know HD is fragile.
but, i don't know when it die!
i must think about CLOUD COMPUTING. i should not have important data on local computing.
of course, my source codes were comitted in SVN. It's okay.
my thesis data was shared with DropBox. It's okay too.
but my music and photo were almost dead. i've known photo sharing service like Picasa or Flickr, but i didn't use them.

sigh, i activated Picasa album and Youtube account.
my cloud computing life style has been started.

2008年10月29日水曜日

XCode Universal Binary

when i maked iPhoto plugin on XCode, i had a problem of universal binary.
to debug it, I needed to make an active executable. It needs architecture setting as "Native Architecture of Build Machine".
But this setting doesn't allow me to make universal binary. firstly, i didn't realize why it doesn't work as it. but the reason was architecture setting needs to be "32/64-bit Universal".

2008年10月26日日曜日

music

cajon

music

Ustad Zakir Hussain-TABLA


Kana told me about MESHELL NDEGEOCELLO. cool.

2008年9月30日火曜日

GNUStep building with python.

i sometimes forget how to build GNUStep code.
following is code.


#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import os
import re

if __name__ == '__main__':
if len(sys.argv) != 3:
print 'invalid arguments'
sys.exit(1)
print 'compiling starts'

opt_array = ['-fconstant-string-class=NSConstantString',
'-IC:\GNUstep\GNUstep\System\Library\Headers',
'-LC:\GNUstep\GNUstep\System\Library\Libraries',
'-lgnustep-base',
'-lobjc'
]

base_dir = os.getcwd()
filter = re.compile('\.m$')
linker = []
input = sys.argv[1]
output = sys.argv[2]

for dirpath, dirnames, filenames in os.walk(base_dir):
for filename in filenames:
if filter.search(filename):
if filename == input:
continue
filename, ext = filename.split('.')
filename = os.path.join(dirpath, filename)
action = 'gcc -O %s -c %s.%s -o %s.o' %\
((' ').join(opt_array), filename, ext, filename)
print action
linker.append("%s.o" % filename)
os.system(action)

break
action = "gcc -O %s %s %s -o %s" %\
((' ').join(linker), input, (' ').join(opt_array),output)
print action
os.system(action)
print 'compiling ends'


2008年9月28日日曜日

xcode compiling option

at this time, i talk about C++ Tool of Command Line Utility.

1)expand Targets. after that expand your project.

2)you can see Compile Sources. expand it and click a right mouse button and select Get Info.

3)Select a tab "Build". You can see "Additional Compiler Flags". input compiler options that text area.

this is how to set compiling options. as for the rest, just push the Build button.

check this too.