Fixing MacBookPro Superdrive
I have purchased my MacBookPro in October 2007, after 6 months my optical drive was so picky in reading or writing DVDs and CDs, and after few months, it was able to read originals only.
I tried everything from updating the firmware or flashing it to restore its original firmware, but no luck, until yesterday when i had to format and install the OS from scratch, but to my surprise it wasn't able to read the Original MacOS DVD.
I Googled once again about the cuase of this, and found some results referring to cleaning the lens,
I followed this tutorial to disassmble the laptop :
and this one to disassmble the optical drive and clean the lens with benzene,
In 1 hour i had my superdrive working as brand new one and saved me from buying a new one
, i know many who face the same problem with the optical drive, this was a nice way to have it back.
Installing Python & PyGTK on Mac OsX
Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it.
The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), i had a problem importing the PyGTK module and the program GUI didn't run. so i tried to install PyGTK from sources with all its dependencies, but after spending a day doing so i ended up with many errors in compiling the dependencies and finding them.
after some search i found out that i can do this using MacPorts.
so here is the steps i followed :
- Install X11 http://guide.macports.org/#installing.x11
- Install Xcode tools http://guide.macports.org/#installing.xcode
- Install MacPorts http://guide.macports.org/#installing.macports
- Make sure the paths are configured in your shell profile http://guide.macports.org/#installing.shell
- Restart your shell, and follow the next commands :
1- Install Python
sudo port -v install python25
2- Install Python select
sudo port -v install python_select
3- Activate our installed python version
sudo python_select python254- Install pygtk
sudo port -v install py25-gtk
5- Install some gnome themes and engines
sudo port -v install gnome-themes sudo port -v install gtk-nodoka-engine sudo port -v install gtk-smooth-engine sudo port -v install gtk2-aurora sudo port -v install gtk2-clearlooks sudo port -v install gtk2-extra sudo port -v install gtk2-industrial sudo port -v install gtk2-murrine
6- Install theme switch
sudo port -v install gtk-theme-switch
7- Select which theme to be used by your applications by running the theme switch
switch2
Now you can have the applications you develop using python and pygtk running smoothly on mac os leopard.
How to publish your iCal to Google Calendar
Well, to mark your events in iCal and have them published to your google calendar, first you need to make an account in www.icalx.com
Then from iCal right click on your calendar, and choose Publish, and enter your iCalx calendar information.
after that you can take the link from iCalx and add it as a calendar in your Google Calendar account.
when you do that, every event you mark in your iCal, will be published to your iCalx account and then Google will pull it to your Google Calendar account,
Little tricky but it does the job
Convert DAA disk images to ISO on Mac osX
DAA Converter for OS X
Access DAA disk images on your Mac
Direct Access Archive (DAA) is a disk image format that's currently unsupported on OS X.
DAA Converter is a free utility which allows you to access the contents of a DAA image file by converting it to ISO disk image format; The converted ISO disk image can be mounted as a readable volume on your Mac by double-clicking it.
DAA Converter is a native OS X GUI application which wraps the command-line tool, daa2iso, by Luigi Auriemma.
It runs on OS X 10.3 Panther or later, and does not currently support password-protected DAA files.
DAA Converter v1.0
DAA Converter is free software, distributed under the GNU General Public License (GPL).
Download DAA Converter's source code.
Installing a Subversion (SVN) server on Mac OS X
I use my Mac OS X laptop (a MacBook Pro) almost exclusively these days, often working in a library or coffee shop, but I still want the power of a version control system with me. I finally decided to install a Subversion (SVN) server on my MacBook, and it was surprisingly easy. (I say "surprisingly" because the few links I've found online led me to believe it would be much harder to install SVN on Mac OS X.)
Rather than write a full-blown SVN installation tutorial or SVN installation manual, I'm just going to put my notes out here. Hopefully they'll be sufficient to help you get Subversion/SVN installed on your Mac as well.
- Open a Terminal, and run
fink install svn. (The SVN package is the SVN server.) Supply the password when prompted. - This installs
svnserve, and nine other supporting packages. There's more fink svn information here - That's all you need to do to get the server installed on your system. You still have to configure it and start it up, but before doing that I downloaded the SVN command line client.
- Type
fink install svn-clientto install the SVN client. - Type
fink install svn-docto install the documentation. - I want to create a repository out of my home directory (to make it easier for backups), so I created it like this:
svnadmin create /Users/al/svnrepo - I edited the
conf/svnserve.conffile to change a few lines. If you want to use SVN without user accounts this isn't 100% needed, but I do want to have my name on all those check-ins, so I made a few changes. See the "svnserve.conf configuration file" section later on this page for details. - I also edited the
conf/passwdfile at this time. This is also discussed below. - Technically I started
svnserveat this time, but quickly ran into a permission problem on my first check-in. Reading the docs it looks like the repo needs to be owned by the "www" user (as that's the owner of thesvnserveprocess), so I ran this command from the directory just above my repo:find svnrepo -exec chown www.www {} \;. That gave me a warning/deprecated message, but still changed all the repo files to be owned by the "www" owner and group. (Break this into two separate commands if you need to.) - I started the SVN server like this:
sudo -u www /sw/bin/svnserve -d -r /Users/al/svnrepo - I haven't looked back since.
svnserve.conf configuration file
With Subversion you have a configuration file named conf/svnserve.conf. Here's what my conf/svnserve.conf configuration file looks like, with my comments still included:
[general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = read auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the conf directory. ### Uncomment the line below to use the default password file. password-db = passwd ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. realm = Laptop Realm
Here's what my conf/passwd file looks like:
[users] al = al
So if you want to bust into the SVN server on my MacBook Pro that should make it pretty easy.
The end
That was all I had to do to install a Subversion server on my Mac. After this I started using normal SVN commands and everything worked as advertised.
As mentioned, from my research it sounded like it was going to be hard to get an SVN server running on my Mac, but I didn't have any real problems, other than I'd never installed an SVN server before, so this was my first time. I'm sure I'll learn more as I go on, but hopefully that will help you get started using SVN on your Mac as well.
Reference
Here's a little more help ... it's the output from one of the commands I ran early on:
Type 'fink describe svn' to get usage help. Type 'svnserve --help', 'man svnserve', 'svnadmin help', or 'man svnadmin' for usage. Some tools (e.g. hook and back-up scripts) and examples are stored in /sw/share/svn/tools and /sw/share/svn/contrib . You can start the Subversion server manually using a command similar to '/usr/bin/sudo -u www /sw/bin/svnserve -d -r /sw/var/svn' or you can run 'daemonic enable svnserve' as root to create a StartupItem for it. . 'svnserve' is run as user 'www' in order that apache and svnserve can access the same repositories at the same time under '/sw/var/svn' . You could install the repositories under the preconfigured directory /sw/var/svn which should have the correct permissions. Make sure that all files in the new repository have the correct permissions for svnserve (and apache) to read and write. E.g. run 'chown -R www /sw/var/svn/yourrepos' and 'chmod -R go-rwx /sw/var/svn/yourrepos'.
I didn't know you could run chown like that; learn something new every day. I didn't run the chmod command, and haven't had any problems, but I'll do that next. It makes the ownership for "group" and "other" on all files to be "rwx", or 777.
MacBookAir – a Real Thinnoavation …
This month apple has launched its 3rd model of the MacBook Generation, the MacBookAir, after MacBookPro and MacBook.
The size and thickness of this new model makes you speechless, it is unbeliveable how can they ship all this technology features, in this envelope thin device, really impressive.
i will leave you now with the Ad and steve job presentation about the product.