Archive for ‘OSX’ Category

OSX Escher Screen Saver

datePosted on 16:51, November 25th, 2007 by Many Ayromlou


This is one of those gotta haves. Beautifully done and Free. Grab it here.

Share

Get the full path displayed in finder

datePosted on 23:15, November 14th, 2007 by Many Ayromlou

Here is a quick way to enable full path display in the finder windows under Leopard. You can turn this on by issuing the following two commands in a terminal window:defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Finder

You can also undo this effect by issuing the following two commands in a terminal window:defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO
killall Finder

Share

More aka.iPhone and Quartz Composer Experiments…..

datePosted on 16:55, November 11th, 2007 by Many Ayromlou

So now that I have a basic OSC receiver for aka.iPhone’s XY controller, I’ve been going through Apple’s Demo Compositions – under /Developer/Examples/Quartz Composer/Compositions — and adding my portion of the OSC receiver to them. Here is the latest one, akaRemote-Caterpillar, which is a adaptation of “Caterpillar.qtz” under /Developer/Examples/Quartz Composer/Compositions/Interactive. Again I need to remind you to read the first Article to get started and that these QC compositions are for Leopard/QC3.0 only and require a jailbroken Ipod Touch or iPhone.

Share

aka.iPhone and Quartz Composer Experiments…..

datePosted on 15:05, November 11th, 2007 by Many Ayromlou


I assume you know what aka.iPhone is and what it does. If you don’t please see this article over at Create Digital Motion. I’ve got aka.iPhone 2.1 installed on my ipod touch and while I enjoyed playing around with the accompanying MAX/MSP patch — via the free runtime — I wanted to see if I could get it working with Quartz Composer.

Well here are my two (akaRemote, akaRemote-Particle) attempts at QC compositions that work really well with the XY controller of aka.iPhone. The XY Controller surface is the only thing I’ve been able to get working with QC, since  Masayuki Akamatsu (the author of aka.iPhone) tends to use the same basic “/event” OSC message with a custom number of arguments. The limitations is actually in QC in that you can only have one OSC receiver on a UDP port at a time. Further a OSC receiver can not receive the same message with different arguments (int, float, float array). The author does mention that his protocol might change without notice, so hopefully he’ll read this post and change the messages to cascading/two level OSC messages to signify which button’s are activated and also to get more diversity in the base message string (ie: /event/Pad/buttonB1 message of type boolean which would signify a toggle button on the Pad screen being fired). I don’t pretend to be an OSC god, but I think it makes the protocol more readable/adaptable, which might not be the authors intent.
I decided that for my own use the XY controller was the most useful to reverse engineer (and also the easiest). The OSC command is “/event a b c“, where “a” is the trigger, “b” is the x-coordinate and “c” is the y-coordinate. X and Y coordinates are between (0,0) at the bottom left of the ipod touch screen and (1,1) at the top right.
Now here is how you get it all going:
  1. Get Masayuki Akamatsu’s aka.iPhone loaded into your ipod touch and/or iphone (I’m not going to tell you how to do this…..lets just say that if you have jailbroken your device you can just sftp his application to /Application on your device).
  2. Download akaRemote and akaRemote-Particle files and unzip them somewhere on your mac (I’m assuming you have OSX 10.5 and Quartz Composer 3.0, as they are required).
  3. Start with akaRemote by double clicking on its icon to load it into Quartz Composer, goto Preferences/Viewer and click the + to add a new Preset for the viewer. Call it 1:1 (or something) and give it width and height of 1 and make sure aspect ratio is selected.
  4. Now go to the bottom left side of the viewer and select 1:1 from the pull down. This guarantees that the coordinate system translation I use (0 to 1 from device is translated to -1 to 1 on the screen) works. Now resize the window to whatever size you want (not too small).
  5. The QC OSC listener is configured for aka.Iphone’s default port (5600) so you don’t have to change anything. Load up akaRemote application on your device and change the Host Address to the IP address of the machine running QC.
  6. Now if you switch to the XY tab on the device you should be able to see a dot move around the screen when you touch the surface (the video cube in the middle also rotates).
  7. Optionally if you like to see a nicer example I’ve put together akaRemote-Particle, a Particle system viz using one of Apples demos (“table particle.qtz“) as a base.
  8. The idea here is the same, except that your touch on the XY surface produces particle systems in the viewer (make sure you have the 1:1 thing set at the bottom left of the viewer screen).


Share

Leopard: More cat fleas…..smelly cat

datePosted on 11:52, November 2nd, 2007 by Many Ayromlou

Have a look at the picture above…..This is fresh from my Macbook this morning (when it woke up from sleep mode). Notice anything strange…..let me help you, have a look at the Aiport icon in the menu bar and the actual Airport device setting in Network preferences. Yep, Icon in menu bar says Airport is turned off, the device setting shows it’s on and associated/working. Apple FIX THIS WILL YA…….Oh btw, if you want a temporary fix for this just flick the “show Airport status in menu bar” check box off and on again and the menubar icon will be fixed.

Share

Stripes be gone…..

datePosted on 22:26, November 1st, 2007 by Many Ayromlou

If you like to get rid of the stripes in the list view of the new Leopard Finder, open a Terminal Window and type in the following two commands:defaults write com.apple.finder FXListViewStripes -bool FALSE
killall Finder

If you want the fancy stripes back at some point later, type the following two commands in Terminal:defaults write com.apple.finder FXListViewStripes -bool TRUE
killall Finder
more to come soon…..

Share

Another day….another Leopard headache….

datePosted on 21:40, October 31st, 2007 by Many Ayromlou

Okay as much as I like OSX and apple I have to admit, Leopard is not quite ready for consumption. Not unless you’re willing to do a “Erase Install”. After the weekend fun session of “Archive installing” 5 machines, I have found another bug/feature/headache. Here is how it happens:

  • You’ve got Tiger (10.4) setup with multiple network locations (work, home, wireless, etc.)
  • You do a archive install and get 10.5 installed on this machine
  • All your profile/homedirectory/apps get transfered over, including your network location configurations.
Well, not quite. It might seem like everything is transfered, until you start wondering about WINS Servers and Windows WORKGROUP/Domain settings. You see under Tiger these two were stored under directory utility, but under Leopard they’ve tried to pack everything under Advanced  Network settings (Preferences/Network/Advanced…). The problem is that if you’ve had your Network locations transfered from tiger, the advanced WINS panel will NOT let you enter/add new WINS servers or change the WORKGROUP field. You can try and change them, but as soon as you press OK  followed by Apply on the next screen, the fields reset to blank. 
Try it and you’ll see if you go back the field wil be blank. The only way to fix this is to create “New” Locations and re-set them up, then you can fill in the WINS and WORKGROUP entries and they’ll stick. Apple are you listening, not only are the Network panels a mess — just compare the 3 different widgets used under Network settings……must be some new Leopard crack they’re sniffing……consistency people — but the network configuration screens refuse to take into effect the changes you put in if you’ve done a “Upgrade” or “Archive” install. This only wasted three hours today, I’m sure someone in Cupertino is having a good laugh.

Share

Turn-off Leopards 3D Dock

datePosted on 22:57, October 29th, 2007 by Many Ayromlou

Just noticed that if you place your dock on either side of the screen you get a flat dock, instead of that floating 3d look. As much as I like the 3D look, I liked the flat look even more, so after poking around I found out how to disable the 3D look. Open a Terminal window and type in the following two commands:
defaults write com.apple.dock no-glass -boolean YES
killall Dock

To get the 3D floating dock back you open a Terminal and type the “opposite” two commands:
defaults write com.apple.dock no-glass -boolean NO
killall Dock

Keep coming back…..there will be more soon :-)

Share

OSX Leopard installation story

datePosted on 20:55, October 27th, 2007 by Many Ayromlou

Like many of you, I picked up Leopard Family pack last night. You see I have 4 mac’s and for $199 the family pack allows me to install leopard on up to 5 machines (in the same household). Anyways I did run into some troubles so I figured I’ll let you guys know about the gotchas:

- I “Upgraded” a 10.4.10 MBP 17″ and everything more or less worked, about the only thing I couldn’t get working was istat menu gadget. That Blue screen thing after the first reboot scared me to death, since your machine literally churns away for a good 5 minutes before the desktop loads. This only happens on the first boot after install. Some people have reported this screen followed by a what sounds like a lockup, but that did not happen to me. Strangely little snitch version 1.x worked fine after the upgrade (It’s not supposed to).
- I the proceeded to “Upgrade” a hoped-up Mac G4 Cube (Dual 1.5 Ghz w/ 1.5 GB of Ram and Nvidia Geforce 2 gfx) that was running 10.4.10 Server edition and low behold…..the installation worked fine but when I rebooted the boot device (startup disk) was not there anymore. I ended up having to do a “Erase/Fresh install” which is working but I lost some apps (no biggie, I have most of them on the MBP).
- Third came the G4 12″ PowerBook. I “Upgraded” it from 10.4.10 and everything went fine through the install, but when I rebooted all I got was the white screen with the apple logo and the spinner thing. The spinner kept spinning for at least 60-70 minutes and nothing (you could hear faint HD access one in a while). I rebooted a couple more times, tried single user mode, safe mode and verbose boot but nothing worked just the spinner. I did a re-”Upgrade” and the same results again. Then thought, why not try the “Archive System Install” option and low and behold everything worked. The system actually grabbed all my 10.4.10 Apps and installed them in the right place. My account was also transfered and everything came back just like before. The only problem on this machine (which I have to admit does not have much installed on it) was Little Snitch. I ended up having to upgrade to the 2.x beta family pack, downloaded the new installer and everything is happy again.
- At this point I got kinda bold and did a “Archive System Install” on my MacBook 2.0Ghz straight from 10.4.10 to 10.5 and I have to say wow….the archive option is a lot less hassle and moves (almost) all your apps and accounts/settings over. Adobe CS3 works fine and even Final Cut Studio is fully functional after the Archive install. Some things didn’t work here and required reinstalls, but no major breakdowns. The main ones were:
  • Logitech Control Centre for the MX Laser
  • Parallels 3.x
  • Some screen saver which had to be moved from the archived directory
  • Little Snitch which needs a upgrade to 2.x
  • Printers which disappear after the upgrade

- At last I got really adventurous and went back to my “Upgraded” 10.5 MBP and did a “Archive System Install” on it. Everything went okay, Apps and settings got transfered properly, but in addition to the 5 breakdowns above I had to reinstall the following:

  • Logitech Control Centre for MX510
  • Silicon Image 3132 ExpressCard Driver
  • SynergyKM 
  • iStat Menu (since it stopped working on the first “Upgrade” and the “Archive install” simply left it aside.
  • EyeTV software for EyeTV Hybrid (just an update)
Now everything is happy (I think). I’m doing my second time machine backup. The machine feels faster than before. I have left Spotlight running for now, to see if it’s tendency to go nuts once in a while has been fixed. Not everything has gone as planned, but for the most part I have to say that “Archive” install option is your friend. I would avoid the “Upgrade” option on PPC machines since I’ve had two bad (back-to-back) experiences. 
Share

Okay so this all started with our users not being able to share files on our webserver. We use SSH only for upload/download and interactive access (ie: no ftp). Through trial and error we found out that the default umask (under OSX Server) for sftp uploaded files are 0033 (ie: rwxr–r–) and directories are 0022 (ie: rwxr-xr-x). This creates a problem when one user uploads a file and another user downloads/modifies and tries to re-upload it — they simply can’t because the group permissions are wrong.

If we were using ftp (which we are not) there are some solutions on the net that allow you to modify the startup parameters for the ftp server so that the default umask for all files is 0013 — which would allow a group of people to share/overwrite each others files — but we are using ssh only.

So we came up with two other solutions — a shared upload account and/or a cron job that would modify the group permissions on the website directory to allow group sharing. We went with the second solution and that’s where I ran into so many problems that I decided to create this post. You see normally Unix users know that spaces (and strange characters) in filenames are a no-no. Well that’s not true for Windows and Mac users, they use spaces and other odd characters in their filenames/folders all the time.

I started writing — what I thought was — a simple “for loop” script to go through the website folder and change the group permissions. Of course on the first try things didn’t work nicely because of spaces, so I started compensating for that and came up with:
for i in `find /Path/to/www -type d -print0 |xargs -0 -n 1`
This kinda worked, but the for loop would still split the lines when it hit spaces in filenames. I tried to mess around with it and gave up. After RTFMing a bit more I tried:
for i in `find /Path/to/www -type d -exec echo \"{}\" \;`
The thinking behind this was that the exec would echo the filenames quoted and it should work….well it didn’t, the for loop still split the input lines at spaces.

Finally after a latenight RTFM session (and lots of cursing), I think I’ve found the ultimate file handling loop statement:
find /Path/to/www -type d ! -perm -g=wx -print0 | while IFS= read -rd $'\0' filename
Okay so this version uses “while” rather than “for” but it works like a charm and chews through spaces and all other kinds of weird chars and creates a output stream that’s ready to be used by your choice of commands (chmod in my case).

After trimming and optimizing the script a bit, here is the final product:
# The following find will search for
# all files under /Path/to/www, that
# are NOT symlinks, and do NOT have
# group write permission. The list is
# "\0" seperated and the while portion
# will loop around this character and
# ignore everything else in the path.
find /Path/to/www ! -type l ! -perm -g=w -print0 | while IFS= read -rd $'\0' filename
do
# We've found a directory with no group
# write permission, so fix it.
if [ -d "$filename" ]
then
chmod g+rwx "$filename"
# echo Directory changed
stat -l "$filename"
fi
# We've found a file with no group
# write permission, so fix it.
if [ -f "$filename" ]
then
chmod g+rw "$filename"
# echo File changed
stat -l "$filename"
fi
done

Hopefully you’ll find this code (or portions of it) useful for your own day-to-day hack-and-slash solutions to annoying problems. Let me know if you come up with an even better solution :-)

Share

Slim OSX battery meter for your hemoraging menubar

datePosted on 17:15, September 16th, 2007 by Many Ayromlou

So if your menubar is as packed as mine, you usually have to kill menubar utils just to get to your application menus (specially bad when I run Photoshop). SlimBatteryMonitor comes to rescue. SlimBatteryMonitor is a replacement power gauge for Apple’s Mac OS X that tracks both laptop batteries and many UPS batteries. Multiple-battery systems (e.g. older powerbooks) are supported as well. A graphical icon shows the power remaining, and can be accompanied by a text description (battery charge in percent, or time remaining). Colours can indicate whether the system is fully charged, charging or on battery.

Best of all, you can choose different display options for each battery state (fully charged, charging or on battery). You may wish to see the time remaining while on battery, for example, but show only the icon during charging, and hide SlimBatteryMonitor entirely when batteries are fully charged. SlimBatteryMonitor is a better choice because it presents the same information in a much more space efficient manner, allowing you to fit other menu bar items on the screen as well.

Share

Great little OSX utility….

datePosted on 14:39, September 16th, 2007 by Many Ayromlou

SharePoints 3.5.4 is a little known gem that allows you to REALLY “manage” your samba and afs shares under OSX. It’s free (donationware) and now Universal. No more limits as to who shares what with who, no more editing smb.conf by hand. It’s your machine you paid for it, it came with OSX and samba so why run in castrated mode :-)

SharePoints is an application or a preference pane that makes it easy to add and delete share points like in the old Finder. In Mac OS X, by default, you are limited to sharing only what is in your public folder in your home directory. This program makes it easy to share any folder.
In addition SharePoints also brings back users and groups management to Mac OS X as well as easy configuration of AppleFileServer (AFS) and Samba (SMB) Server properties.

Share

is TV freed?

datePosted on 10:04, August 31st, 2007 by Many Ayromlou

Well, I’ll leave this one to you. You can decide on it’s Kosherness. The application is called TED and it can find all sorts of TV episodes you might have missed. From the homepage:

ted can find episodes of any TV show you like to watch. Just add your favorite shows to ted and he will search for the newest episodes and downloads them for you. ted uses bittorrent and RSS technology to get you the newest episodes as fast as possible! ted comes with a huge list of shows, all waiting for you to be watched. ted even displays a summary of each show, to help you choose shows you like.

ted requires Java 5 and a bittorrent client and is available for all platforms (Linux, Windows, Mac). Download here.

Share

Free your Office….

datePosted on 09:52, August 31st, 2007 by Many Ayromlou


While we’re on the subject of saving you some money. NeoOffice, the OSX native version of Open Office, has just released their latest. This release includes support for the Mac OS X Spellchecker and Address Book and experimental support for Office 2007 Excel and PowerPoint files. From the overview page:

NeoOffice is a full-featured set of office applications (including word processing, spreadsheet, presentation, and drawing programs) for Mac OS X. Based on the OpenOffice.org office suite, NeoOffice has integrated dozens of native Mac features and can import, edit, and exchange files with other popular office programs such as Microsoft Office.

Released as free, open source software under the GNU General Public License (GPL), NeoOffice is fully functional and stable enough for everyday use. The software is actively developed, so improvements and small updates are made available on a regular basis.

It is available for free from the NeoOffice download page.

Share

Manage your Projects FREE….

datePosted on 09:44, August 31st, 2007 by Many Ayromlou

You all know my dislike for Microsoft and their products. Whenever possible I’ve tried to get away from having to use their software. Here is another opensource product that allows us to do our thing without them. From their overview page:

OpenProj is a free, open source desktop alternative to Microsoft Project. The OpenProj solution is ideal for desktop project Click to enlarge in a new windowmanagement and is available on Linux, Unix, Mac or Windows. OpenProj is a complete desktop replacement of Microsoft Project and even opens existing native Project files. OpenProj shares the most advanced scheduling engine in the industry with Project-ON-Demand. The OpenProj solution has Gantt Charts, Network Diagrams (PERT Charts), WBS and RBS charts, Earned Value costing and more.

You can get more detailed information on OpenProj or download now!

Share

Flickrize your Desktop

datePosted on 09:30, August 31st, 2007 by Many Ayromlou

Desklickr is my latest obsession. Great little utility that grabs images from Flickr and constantly refreshes your desktop background. There is even a Desklickr group for people who don’t want to think too much. Just set it and forget it.

Share

Freeware OSX Weather Util

datePosted on 05:20, August 23rd, 2007 by Many Ayromlou

Here is a quick link to WeatherDock for all you weather nuts. This is one of the best weather utilities I’ve seen in a longtime. Best of all…..It’s Free. Sorry Mac Only.

Share

Portable Studio in a box

datePosted on 18:14, August 4th, 2007 by Many Ayromlou


Hot on the heels of AJA video’s NAB announcement of their IO HD box, MOTU has just announced their version of Portable Studio in a box, the MOTU V3HD. According to MOTU’s website “With one simple plug-and-play FireWire connection, the V3HD turns your Mac or PC desktop or laptop computer into a powerful HD/SD video production workstation equipped with all the video and audio I/O you need.” Both boxes seem — at first glance — to be very similar. AJA’s box works with Apple’s ProPres 422 (hardware), while V3HD seems to be hardwired for DVCPro HD (hardware). V3HD works with FinalCut Pro on Mac platform and supports Adobe Premiere Pro on Windows. All you need is a Workstation/Laptop with Firewire 400/800 connections. So go ahead and build that portable HD/SD studio you always wanted…..it’s easy.

Share

How to turn Spotlight OFF (and ON Again)….

datePosted on 16:06, August 1st, 2007 by Many Ayromlou
UPDATE: Please see this article if you use Leopard (OSX 10.5+). The procedure below, although not damaging, works for 10.4 and below (Tiger). Thanks to Anonymous for pointing this out.

Got a new Macbook thru work today and after Firewire targeting my profile over from my personal MBP, I started looking around the blog for the entry that shows you how to turn off Spotlight. You see Spotlight is a good idea, but I think it needs a bit more work. I’ve noticed that on my MBP and older Dual G5 machines, the mds service sometimes just goes nuts (usually corrupt files or something like that), and brings the machine to a halt. So I like to turn Spotlight off ASAP. Here is how:

  • Edit /etc/hostconfig (don’t forget to sudo) and change the line that reads
    SPOTLIGHT=-YES-
    to
    SPOTLIGHT=-NO-
  • Run the following two commands from the command line to get rid of existing index files
    sudo mdutil -i off /
    sudo mdutil -E /
  • Reboot

Note that the crazy spotlight icon will still be there, but the backend (the bad stuff) will be disabled after the reboot. You can optionally kill the icon (not recommended) by issuing the command:
sudo chmod 0000 /System/Library/CoreServices/Search.bundle
Later on if you want to turn spotlight back on (why?) you can do it by doing the following:

  • Edit /etc/hostconfig (don’t forget to sudo) and change the line that reads
    SPOTLIGHT=-NO-
    to
    SPOTLIGHT=-YES-
  • Reboot
  • Run the following command from the command line to turn on indexing
    sudo mdutil -i on /

Enjoy….

Share

Immediate delete for USB drives under OSX

datePosted on 23:18, July 28th, 2007 by Many Ayromlou

Okay so how many times have you “deleted” a file on a USB drive under OSX only to find out later that the storage is still tied up in .Trashes directory. Well there is a easy way to fix this. Open terminal, cd to your USB drives root directory (mounted under /Volumes) and issue the following:
rm -rf .Trashes
touch .Trashes

This creates a file called .Trashes on your USB drive (don’t worry the file size is zero). The side effect of this is that if you delete files off the USB stick, OSX will delete them immediately (since it can not create a .Trashes directory).

Share
123456789PreviousNext