Archive Info

You are currently browsing the PolyMicro Systems weblog archives for October, 2007.

MartenWeb

I pointed MartenWeb over to Google so see if we can get some traffic going. It has been almost a year and no one is doing anything as far as creating some useful content. As I understand it, the Google site will permit group mail and documentation. i also added some pointers to YouTube thinking that might be a nice way to upload some graphic content about Marten.

I also have a Marten channel open on Freenode if you care to join in. I am on IRC most of the time and also on iChat as davec@mac.com.

I recently started converting over my mimic code to Marten and will upload the source when I am finished with it.

Installer workaround

I was trying to use XCode 3 to compile an old project and kept getting an error when precompiling. Looked like something did not install correctly so I tried to reinstall only to get failure ‘nothing to install’ when trying the Developer.mpkg file.

I then tried installing each package individually when I ran across DeveloperTools.pkg which reported a preinstall script error. Tried copying the file over to my desktop, same error. Tried installing from root login, same problem.

Then, I selected a different destination folder /Temp and in finally installed. I copied over /Temp to /Developer and now can compile the old project.

Moral of the story, try everything! Must have been a permissions problem or something. Anyway, so far so good. Back to programming :)

File Syncronization

After getting my laptop home folder in sync with my server home folder I now had both home folders loaded with files and folders out of place and folders I really didn’t need. I was going to start moving things around to get the home folder organized when I realized when I would sync the applications I used (typically rsync, unison, and ChroSync) would all detect folders missing and delete them then discover the folder I had moved in a different folder and proceed to copy it over to the server. This seems to me a huge waste of time given the fact I was just moving things around.

I searched around the web trying to find a program that would just mimic my actions from the system I was on to the other remote computer. I could not find any such program! I sure someone else has surely come up with the same thought and implemented a solution but I could not find any solution.

So I am creating a set of CLI tools based on a script I call mimic which will take the basic file commands mv, rm, cp, chmod, chown, and chgrp (possibly others) and replicate the commands on the remote computer. In fact, there is no reason the commands can not be replicated on multiple computers.

The basic plan is to use mimic as the working script and create symlinks from it to mmv, mrm, mcp, mchmod, mchown, and mchgrp.

Actually, I could use the new FSEvent stuff to watch changes on my home folder (or any other folder) and mimic the changes automatically regardless of application. Will work on that later :)