Posts

Uncaught exception: this class is not key value coding-compliant for the key window

Image
I'm thinking of this error might be a helpful hint for anybody on iPhone dev. I was encountering this error stuff I have, which you can see on the image down below, My fix for this was under my .xib file. I just open my .xib file and check that my app delegate object has the right class, right window property, and right view controller property. Take a look at below to see how it looks like, Hope this helps.

Creating PVR file using texturetool for iPhone dev

To create a 2 bits per pixel of PVR file as a mipmap, then issue this command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o Brick_2.pvr test.png To create a 4 bit, just use  --bits-per-pixel-4 instead of --bits-per-pixel-2. Brick_2.pvr is the output of the file, then test.png is your file that is height and width of your image file are equivalent in numbers of pixels.  If not a mipmap file, then just remove the -m like, /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o Brick_2.pvr test.png  Hope this helps.

Incompatibility of iconv for PHP 5.2.13 under Mac OS X

Image
I'm confused with this when I compiled 5.2.13 of PHP under Mac OS X Snow Leopard . I did update by downloading and compiling a new version of iconv at http://www.gnu.org/software/libiconv/ and compile it by running ./configure --prefix=/usr/local When I compile PHP with the following "configure" params as CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure  --prefix=/opt/local --mandir=/usr/share/man --infodir=/usr/share/info --with-config-file-path=/etc/ --enable-bcmath --enable-ctype --enable-dom --enable-fileinfo --enable-filter --enable-hash --enable-json --enable-libxml --enable-pdo --enable-phar --enable-session --enable-simplexml --enable-tokenizer --enable-xml --enable-xmlreader --enable-xmlwriter --with-bz2=/opt/local --with-mhash=/opt/local --with-pcre-regex=/opt/local --with-readline=/opt/local --with...

pdftotext not found in CentOS

pdftotext is a tool in Linux that would extract any text readable, which was formatted prior from PDF. When you arrive on not able to find this helpful tools from Linux of your favorite distro, you can find it in the net for  poppler utils  which comprises the pdftotext binary file. It's codebase is base on XPdf 3.0. For CentOS, do yum install poppler* which would install the developer package, poppler package, and the util package of poppler. Hope this helps ;-).

Postfix + Cyrus IMAP Relay access denied (state 14)

Solving this problem was freaking easy. I just did add the user, must have the proper domain name link to your IMAP, like us, I have toytoy.is-a-geek.org. So what I did, I just add first the user's e-mail address like for example: echo "mypassword" | /usr/sbin/saslpasswd2 -p -u toytoy.homeunix.org toytoy@toytoy.homeunix.org  Since I have the script to create an IMAP account for Cyrus, I just run /path/to/imapcreate.pl -u cyrus -m "toytoy@toytoy.is-a-geek.org" -p cyruspassword -s localhost then cd to the assigned virtual_alias file, if your postfix configuration doesn't modify or customized the default config, so execute (mostly /etc/postfix/virtual_alias) cd /etc/postfix/virtual_alias echo "toytoy@toytoy.is-a-geek.org toytoy@toytoy.is-a-geek.org" >> virtual_alias which postmap virtual_alias Then try sending e-mails, you can check the spool at /var/spool/imap/domain/t/toytoy. is-a-geek .org/t/user/toytoy/2. where " 2. " is t...

My guide on how did I able to use autoconf

In my experience, it seems that autoconf  needs Makefile.am and configure.ac. How did I do it, I run autoreconf -i -v -f Makefile.am then I did run automake to create Makefile.in then afterwards, I was able to run ./configure successfully.

Scons Add Prefix Before Install

For my knowledge and guide, sudo scons prefix=/home/hachico/local -j 4 sdl=1 install then this will put the libraries, docs, and bin accordingly into that drectory.