Category: Mac


I just got my nice little iOmega StorCenter and been working with it for the past few days.  I got the 1TB Raid 1 edition to see how long it will last me now that baby Alexia is on its way.

Anyways, I wanted to configure iMovie to see the movies in the NAS storage.  After much googling, I found something that worked.  Just fire up a terminal and type away:

defaults write -app iMovie allowNV -bool true

Also, remember that iMovie,iDVD searches the root of the volumes for the following directories:

  • iDVD Projects
  • iMovie Projects
  • iMovie Events

So I recommend either putting those directories on the root or creating symbolic links to them.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

With my friend Josh Highland we decided to upgrade my MacBook Pro Unibody style with 8 GB of sweet sweet RAM.  Of course, geeks that we are, we video taped the whole journey!

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

Installing Railo + Apache in Mac OSX

This step by step guide is to show you how to install Railo and create a connector to Apache in Mac OS X. I am now using Railo as my development environment due to its speed and strict coding that I can assign to it. This makes sure that every ColdBox release is what it is supposed to be. I am still amazed at how fast and stable Railo is and I highly encourage you to give it a shot!

Anyways, now for the fun.

1) Download Railo from http://railo.ch/en/index.cfm?treeID=224

I downloaded the All OS download: railo-3.0.1.000-resin-3.1.2-without-jre.zip (39 MB)

Once downloaded I unpacked it and installed it in


/Applications/railo

2) Remove some windows files, because I am a cleanup freak.


rm -rf httpd.exe setup.exe win32

3) Let’s compile the apache connector by following these commands, but first cd into the Railo directory via your terminal.


$ cd /Applications/railo
$ ./configure --with-apxs=/usr/sbin/apxs --with-java-home=/System/Library/Frameworks/JavaVM.framework/Home

Update:
For java in 64 bit mode (snow leopard or leopard), use the following command:
./configure –with-apxs=/usr/sbin/apxs –enable-64bit

This should spurt out a long list of compilation checks and please look at my java home as my default jvm in my Mac. Once it finishes it should finish with the following:


configure: creating ./config.status
config.status: creating Makefile
config.status: creating modules/c/src/Makefile
config.status: creating modules/c/src/common/Makefile
config.status: creating modules/c/src/apache1/Makefile
config.status: creating modules/c/src/apache2/Makefile
config.status: creating modules/c/src/resin_os/Makefile
config.status: creating contrib/init.resin
config.status: executing depfiles commands

This means we are done. So now let’s make and install the mod_caucho.so connector.


$ make
$ make install

After this, you should be A-OK. The script will copy mod_caucho.so to /usr/libexec/apache2/mod_caucho.so and modify your apache conf with


#
# mod_caucho Resin Configuration
#

LoadModule caucho_module /usr/libexec/apache2/mod_caucho.so

ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes

Now it is up to you if you want to configure specifc virtual hosts to use resin or not. Example:



ServerName railo.jfetmac
DocumentRoot /Users/lmajano/Documents/MyDevelopment/
Options Indexes FollowSymLinks MultiViews Includes
DirectoryIndex index.html index.htm login.cfm index.php index.cfm

ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes

SetHandler caucho-status


Now we open the /Applications/railo/conf/resin.conf and add a few aliases that map our web application to apache:



railo.mac


After that just fire up apache and the resin server by running:


/Applications/railo/bin/httpd.sh

After that, the server runs and your application is up and running!!

Update
Some people have not been able to compile mod_caucho because Apache is running in 64bit mode and the caucho mod is 32 bit mode. Here is some extra help for you:

Here’s how to change your apache to run in 32 bit mode.

From Adobe.com
———————————————
To switch Apache from running in 64-bit to 32-bit on Mac OS X 10.5, do the following:

1. Go to /usr/sbin and make a backup of httpd (for example,
httpd.back).
2. Run the following command from the terminal:

sudo lipo httpd -thin i386 -output httpd

3. To confirm the resulting http architecture, from /usr/sbin, run
the following command:

file httpd

4. The file command should give httpd:Mach-O executable i386.
5. Restart Apache by running the following command:

sudo ./apachectl restart

6. The conf file (httpd.conf) location remains the same
(/etc/apache2).

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

I just had a crash on my iPhone, how rare, and it would not start up again. I would reset it by holding the home plus the power/sleep button for like 5 seconds and the Apple logo would show but nothing more. It stays there and does NOTHING!!!

I restart the phone and then it does not start no matter what.

I freaked out and went to the Apple store, just so they would not attend me because they are so full.

Finally, I did the following.

1) Turn it off by using the home plus power/sleep button.
2) Hit the home button and hold
3) Connect it to your PC/MAC
4) iTunes starts up and tells you after 10 seconds of holding that it detected an iPhone ready for restore.
5) Hit restore
6) Wait until it restores
7) Shout with SANITY!!

Follows these steps and you can revive your iPhone, without going to the Apple store and waiting for a MAC GENIUS (yea right!!) to do this.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

Security company Sophos has published a very nice article on how to secure your mac laptop data from theft. I highly suggest your read it. You can download the whitepaper here.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

Have you heard of MacHeist. I just did and man!! This is incredible. You can buy over 10 apps for a super low price of about $40 bucks!! I was super impressed by it, plus you give some stuff to charity. Just head over there and check it out.

The ten great applications that are on the list are: 1password $29.95 CoverSutra $22.00 Cha-Ching $40.00 iStopMotion $49.00 Awaken $12.95 TaskPaper $18.95 AppZapper $12.95 CSSEdit $29.95 Snapz Pro X $69.00 Pixelmator $59.00

25% of your purchase will be donated to the charity of your choice.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

I have experienced certain error on coldfusion 8, when trying to instantiate a webservice:


ws = createObject("webservice","http://localhost/test.cfc?wsdl");

The error that I receive is the following:

coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run the internal Java compiler: java.lang.NoClassDefFoundError: javax/tools/StandardJavaFileManager.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

My friend Russ Johnson has posted a great tutorial to get MySQL working on Leopard. So you can visit his site or follow the instructions below (so I don’t forget)

It seems that the preference pane will not work to start or stop MySQL yet so you will have to start it manually from the command line and create a link to the socket file.

First, start MySQL in a terminal window with the following command:


sudo /usr/local/mysql/bin/safe_mysqld

Then either close the terminal and open a new one, or just hit Command-N to open a new terminal window. Then type the following:


sudo mkdir /var/mysql/

And lastly, create a symbolic link to point the default socket file:

sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

I will update this post with info on how to get it going with Lingon

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

Enabling root user in Leopard

As you might have found out, the netinfo manager is now no more in leopard. So how do we enable the root user instead of always typing sudo. Well just do the following:

1. From the Finder’s Go menu, choose Utilities.

2. Open Directory Utility.

3. Click the lock in the Directory Utility window.

4. Enter an administrator account name and password, then click OK.

5. Choose Enable Root User from the Edit menu

6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.

And there you go, we now have root access.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter

I just spent like 2 hours trying to burn a simple DVD from the new iDVD ’08 and it would always error out. I was trying from an external USB 2.0 hard drive that I have connected to my macbook pro. For the life of me I could not figure it out. It just error out saying that it could not encode the menu, which is the very first part. I was about to give up when I decided to move the project to my internal hard drive just to give it a crack. And loo and behold, the darn thing worked!! So there you go, thanks Apple for turning what was simple into buggy. I am not that quite happy with the new iDVD and iMOVIE. They are really buggy and the external hard drive support is much to be desired.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • DZone
  • LinkedIn
  • Posterous
  • Slashdot
  • Tumblr
  • Twitter
Powered by WordPress. Theme: Motion by 85ideas.