Symbolic Links on Mac OS X
Posted by pebuchmann_super on 29 Nov 2009 | Tagged as: Uncategorized
To create a symbolic link:
ln -s /Volumes/Classic/ Classic
results in:
Classic -> /Volumes/Classic/
To get rid of the symbolic link:
unlink Classic
Posted by pebuchmann_super on 29 Nov 2009 | Tagged as: Uncategorized
To create a symbolic link:
ln -s /Volumes/Classic/ Classic
results in:
Classic -> /Volumes/Classic/
To get rid of the symbolic link:
unlink Classic
Posted by pebuchmann_super on 14 Sep 2009 | Tagged as: Uncategorized
This annoying error message when working with subversions is most likely due to locked files. To unlock files in a folder recursively use:
chflags -R nouchg [files]
More background information on the problem can be found at unlocking files on Mac OS X.
Posted by pebuchmann_super on 12 Sep 2009 | Tagged as: Uncategorized
Found this great blog entry that explains the minutes of setting up an infrastructure on Mac OS X for working with the Apache build system.
Posted by pebuchmann_super on 04 Sep 2009 | Tagged as: Mac OS X, Network
Found this tutorial about how to map a domain name to a IP address on the mac.
> sudo dscl localhost -create /Local/Default/Hosts/some.stupid.com IPAddress 127.0.0.1 > ping -q -c 1 some.stupid.com
Posted by pebuchmann_super on 17 Aug 2009 | Tagged as: Mac OS X
By sheer chance I realized that I can write a blog entry from within TextMate and post it to my site when I have access again. It works like a charm!
Posted by pebuchmann_super on 21 Jul 2009 | Tagged as: Mac OS X
Found this trick to make hidden files and directories visible in the finder. Open a terminal and type
defaults write com.apple.Finder AppleShowAllFiles YES
Of course when you want to hide the files, substitute YES with NO.
After that, restart the finder; on Leopard that means Apple > Force Quit > Finder (relaunch).
Posted by pebuchmann_super on 05 Jul 2009 | Tagged as: Software Development
I have been wondering all along how it is possible to call a method that is not defined anywhere in that class and get something reasonable done, e.g. the method on the Cairngorm delegate that conducts the call to the server.
After playing around with Grails I became aware of the fact that this mechanism is used extensively not only in Grails but in other frameworks that are based on dynamic languages such as Ruby on Rails.
This great blog entry on flexonrails.net lifts the veil and explains the magic.
Posted by pebuchmann_super on 26 Jun 2009 | Tagged as: Software Development
I found this blog that explains how to install Grails on Max OS X.
Copy the downloaded folder to /usr/share/
$cd /usr/share $sudo chown -R root:wheel grails-1.1.1/ $sudo chmod 0755 grails-1.0.1/bin/*
$ln -s grails-1.1.1 grails
Add the path variable to /ect/profile like on Linux.
Posted by pebuchmann_super on 11 Jun 2009 | Tagged as: Software Development
When deploying a new version of my application (actually I started an entire project from scratch) I continuously bounced my head against this “You don’t have the permission…” exception.
I finally added the following lines to my Configuration/config.groovy file:
google.appengine.application=”myproject”
google.appengine.email=”myname@gmail.com”
google.appengine.password=”XXX”
where myproject is the part that appears in the url, like myproject.appspot.com.
Posted by pebuchmann_super on 08 Jun 2009 | Tagged as: Software Development
Here are the directions for a patch in a great Screencast by Tomás Lin that makes authentication work in a Grails Application on Google’s App-Engine:
google.appengine.sessionEnabled = true // default true google.appengine.enableSsl = true // default true google.appengine.security.useHttps = ["/secure", "/shoppingcart/*", "/admin"] google.appengine.security.requireAdmin = ["/admin", "/notsecuredadmin"] google.appengine.security.requireLogin = ["/admin", "/", "/yabbadabbadoo"]
Don’t forget to apply the securePatch.diff patch to the plugin directory of your project – that is in <home>.grails/1.1.1/projects/myproject/plugins/app-engine-0.8.1 in order for these properties effectively written to the web.xml file.