Home

link here

image

Contents

1. 65 106 Radlech 120 hazer UA ML NERO TR 129 SONWONG 81 DONO CT D PETERE TEUER 35 SubRosaSoft com Lid ttti tnt 05 Tellurium Communications Inc entente 97 49 39 71 Absoft Compilers e Absoft 95 Accelerators Upgrades Daystar Technology 6 Aquazone Allume Systems 73 Bags V LTA 28 BookEndz OlympicControls 77 Cach InterSystems 87 Check It Allume Systems 8 CopyCatX FileSalvage SubRosaSoft com 05 CRYPTO Server CRYPTOCard 58 DeBabelizer Equilibrium ssssscssssssssssssssssssssssssssssssssssssssessssssssesssssssssssssssesss 60 Digital Storage Manager Meta Communications
2. 89 FileWave FileWave USA Inc ennt 57 fmSQL Synch Garrison Computer 1 124 HASP e Aladdin Knowledge Systems 3 Hosted Store Brian 1 104 iListen e MacSpeech 78 Intel Compiler Intel Corporation ennt 19 Internet Cleanup Allume Systems 47 Kerio Server Software Kerio Technologies Inc 26 Laptop and iPod Cases e MARWARE 109 Lasso OmniPilot Software Inc ntes 43 Law Offices Brad 88 Mac HelpMate MOST Training and 90 MacResource Computers MacResource Computers amp Service 96 MacScripter net MacScripter esses 103 MacTech Magazine MacTech Magazine 109 1 4D 75 maxemail com IG Inc MaxEM
3. 2 ur a Pis Pu EET 2 _ gt ot Part LLL With Beart ew T A loser ons TD du d da Peete Spb Be A Sa DH ae FA UE Welcome to MacTech s 2006 Sampler Last year s MacTech Sampler was so successful that we thought we d do it again But this year we ve not only given you a wonderful selection of articles but were showing you the type of advertisers that we have This is important since most MacTech readers find the ads useful On the following pages we took a sample of articles we ve produced in the last year to give you a good look at what the new MacTech has to offer There s something for everyone network admins to IT Pros hobbyist to Enterprise scripters to programmers web development and open source We re thrilled about the reaction readers have been giving us about MacTech In many people s minds this is now the magazine that the insiders open up the second it hits their mailbox and that s something that we re proud of MacTech has continued to refine and expand its produc tion team editorial staff and board all are here to serve you Let us know what you think Drop me a note or anyone on our team for that matter While we may not respond to everything we do read it all Enjoy the MacTech Sampler If you ve found just one or two articles that were really useful to you in this sample imagin
4. eee 65 Seefile Idea Storage Networks LLC 33 SERVICE USB e Bonig und Kallenbach oH6 100 SpiderWorks ebooks Spiderworks 35 Stufflt Allume Systems Inc tentent 127 SyncDek MONIS VIE 71 po RETO 16 lest Track Pro Seapine Software 81 Timbuktu Netopia Inc enne 125 VirusBarrier Intego 63 Visitar Visi tat 49 Windows IT Pro Windows IT 39 The index on this page is provided as a service to our readers The publisher does not assume any liability for errors or omissions 131 Sampler e 2006 WWW MACTECH COM
5. gram E 3 E ir st i t 2n gp mg T M z l wt x o i pP 0 E aa F fhe lt V Oe P de 5 ew PNE omm i nt m Tad m gout a ane 1 LI ba it je s i Ma an J 8 Jua EL F te E ce m d ir 1l 1 LT i z 2 t amb aft je PRETI rp eara dant an t PE B i ii Shar ob detis 2 2 58 2 15s le ny d whe So mE 41h inn ts d deren ie 2A set sw qu uote poe Pn d ee GLEN a 891 TN Z IUE Ie iz i rEmJi imm s su E EA f oo 41 Boeke ee a ig r a TELE FHT Er ISI i 071mm xv auzQl owe Mi 1 FPI A e LH i iak f em Lre T UIDES t WEP a ETA AR Basis ta epl 1 i S 872557120 ht ET rri te ba eO Se ee i 0 C 354099 E Rt 6 EE iren 245 Esau ng Mu p omes IL IM 542 ae
6. Figure 2 Spotlight search results with Entourage items returned Double clicking on a returned item in Spotlight works as expected You see the Entourage item open just as if you had clicked on it in Entourage So what s going on under the covers Let s use some command line tools and take a look Query with Command Line Tools There are a number of command line utilities that we can use to query the Spotlight database We can use these tools to see where Entourage is storing the Spotlight metadata that it s creating and we can also see what the metadata files themselves look like The first tool to look at is mdfind mdfind queries the metadata store and returns the results of our query This tool takes three parameters The live parameter will continuously scan the database for results and you ll see items added as they come into Entourage The onlyin parameter allows us to specify a particular folder for the search Finally the query parameter a string representing the information that we re searching for Apple s developer documentation provides more details on the syntax of Spotlight queries Lets see if we can use this tool to find an Entourage item and see where the metadata is being stored Running the command mdfind welcomee microsoft com on my machine returns a result with the path WWW MACTECH COM Users Brianjo Library Caches Metadata Microsoft Entourage 200 4 Main Identity Messages 0T 0B
7. CRYPTO Server is also the first solution we have tested that supports two factor authentication for Apache Web servers via its CRYPTO Web component If you know of others please let us know Using CRYPTO Web we were able to secure a website and then authenticate to it with a configured token CRYPTO Web should make it a simple process for administrators to secure websites by requiring users to authenticate with their token in order to gain access Companies can also leverage out of the box interoperability with network entities that provide native RADIUS support Unlike CRYPTOCard s original OS X offering which only provided client side authentication the latest version of CRYPTO Server for OS X also provides enterprise ready functionality like High Availability which utilizes real time multi master replication functionality to ensure there is no single point of breakdown by switching to a replica server in the event of system failure This is important as it means that the authentication solution can now meet the security needs of any sized organization Another unique feature of CRYPTO Server is that it offers cross platform capability This is important news for the majority of organizations that employ heterogeneous network environments in which any combination of Windows Linux or OS X servers can support any client end user systems running on any of the three platforms Other useful CRYPTO Server features include RSA
8. WITHOUT EMAIL FTP OR SLOW UPLOADS Whether it s in pro photography print and prepress or at the country s leading creative agencies 2 0 software for OSX is revolutionizing how media files are shared and organized SeeFile uses the Web instead of chent software to make uploading downloading and reviewing jobs a snap OOOOOOOOCC OO seeFile turns a Mac s file system into a continvously updated Website with complete user control Accessible from anywhere via Safari Firefox or Windows IE folders look like folders automatically generated thumbnails can be selected to get a high res preview of each image and our integrated messaging allows online discussion of specific files or whole jobs Private logins allow separate user areas as well as multiple levels of responsibility and access Easy logo branding also means that you can set up custom looking sites for new clients in seconds seeFile is priced at a fraction of traditional workgroup digital asset managers and runs on any G4 G5 or Intel OSX system OSX Server is not required the software takes advantage of the Apache server built into every OSX system Seelile s extensible scripting and hotfolders as well as MySQL and XMP metadata support make it easy to integrate with third party workflows it s already pretty powerful right out of the box We re looking for more good Mac consultants to partner on installations grow their business with us and and help sp
9. lan 11 2005 1 1 AM CN Document _ Mikk uum l n 11 20075 T10 Makek risit Aug 20 HHH 31 545 4 CE installer distribution _ Makes lan 11 2005 1 4A AO KB Doi uhe mii HM 3 78 LZ KB Dni Eagrurabie File Si e l l a a Figure 4 A view of a typical autoconf based source distribution What if the Source Code for The Software I want Isn t Mac Compatible Unless specifically designed to be platform independent the source code has to have been ported to the Mac architecture in order to compile and run on OS X Unfortunately the Mac is not binary compatible with Linux so even Linux packages ported to the PowerPC architecture are not usable Mac OS X differs notably from Linux SVR 4 based systems and other Unix variants in its lack of support of the Executable and Linking Format ELF The binary format specific to OS X is Mach O This is why even PowerPC architecture specific source and binaries are a no go in OS X If the OSS you need is not available for OSX consider using an emulator or configure a dual boot option with Yellow Dog Linux for instance Unless you are a developer and are willing to give up a significant amount of your free time to port the OSS the options I mentioned are your only choice On the plus side however is that with each passing day more and more OSS is being ported to OS X which though no
10. WWW MACTECH COM receiving RSS readers known as aggregators can handle and process your data For example including optional tags like lastBuildDate and ttl can help relieve the server load from your feed being requested unnecessarily since those tags specify when the feed was last updated and how long the data should be cached stored temporarily before refreshing with a new HTTP request of the feed While all of the channel elements are defined here please refer to the code examples in Listing 1 for the proper XML syntax of these tags title REQUIRED The name of your feed which is usually the same name of your blog or web site that s related to your feed link REQUIRED The URL of your blog or web site not the URL of your feed description REQUIRED A very brief phrase or sentence that describes your feed s overall content language Optional The language that the feed is written in For list of possible language codes please refer to http blogs law harvard edu tech stories storyReader 15 copyright Optional The copyright notice for the feed s content Do not use the actual copyright symbol since that special character may not display properly in RSS readers managingEditor Optional The e mail address of the editor of the content This is not necessarily the author of the content since the content may have come from multiple sources but this is the person who is managing the feed webMaste
11. 2107 100917 1 Wave Administratar tora US cable Blevision torpor alion Pe an progct that allows me 2 of ounBize With only two fit appears that fare is an arin ip peaplaworking mthe 15 iment m ia parsers assume UTF 8 as the default if no encoding is specified but if you need to use a different encoding for a special purpose then change the encoding attribute accordingly e The nesting order of XML tags is very important in order for your code to be valid For example the following line is properly nested lt skipDays gt lt day gt Sunday lt day gt lt skipDays gt while the same line of code below will cause errors since it contains invalid nesting lt skipDays gt lt day gt Sunday lt skipDays gt lt day e XML is case sensitive so lt skipdays gt is not the same as lt skipDays gt While some RSS readers and browsers may be smart enough to overlook case typos you certainly want to avoid any potential problems with your feed so if you re modifying your RSS code by hand in a text editor make sure your tags conform to the RSS 2 0 specification e Be very careful when including HTML code within XML If you need to include HTML code within the title or description tags of a news item you need to either enclose all of the text within a CDATA block such as lt description g
12. Buthgpsatisn qumir l enn i 12 em 0 65 TUUM a OOOO 0 config h hug 25 2004 1 5 amp AM dni Meader Source Fle m lin 13 2005 TIF EN Document MITHUNS ln 1l 2005 3 42 4 XE Lo 9 2005 amp 01 Fidei _ ng 26 2004 3 5585 OE CSc Lira Dag Rim lan Li 2005 127 AM Ep Deua renard lan 11 2005 1 448 Ald L Urn iatha File Conger l m 1I 2005 3 45 E KE Dorumarnt pfi Aug 26 2004 1 538 Al L KB _ 1 COPYING 26 2004 3 55 20 KH D EM WRE lan LL 3 14 AMI lt E ieprcamp Aag 26 2004 155 Li EN Dr Esacuzahbla Fila c Hipsi fan 1I 200 3 35 E EE Fig b h 11 2005 3 10 AM x Saure Pie E dni lan 11 2005 3 32 AM KH Sount F W lan 11 200 1 10 amp icu Haader Source Fs _ FORMATS Aug 26 2004 T56 ch e fan 1T 2005 3733 24 C Fig bh s lin 12 2005 5 25 B CH header iunie Pile GTO LE ZB 2004 3 55 B EE Source Fis p gh ln LL 3 16 KH C bourne lin LS img lan 11 2005 T 199 Ah i Foldsei _ STALL Aug Zh 20404 256 E KE Aug 2004 1 56 R B ria asriztahble Pile _ Aug 26 204 3 55 KH gt
13. Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed 22 CREEN LIVING IN A VIRTUAL WORLD ello ladies and gentlemen Step right up Don t be afraid Gather round Come closer that s it Did you know that there are those who are hooked on the CLI That some of us have to work on a monitor with less than 1024x768 of space Or perhaps you know people that use ssh to perform a lot of work remotely Today demonstrate the magic of screen For many many reasons screen is an indispensable utility It s the answer to several questions for anyone doing command line work from the 12 iBook user to the dual G5 30 monitor owner Watch and be amazed The more things change My first job after graduation was at Computer Associates Hello Doug who wouldn t know a Mac if he mistakenly walked into an Apple store While CA has attempted to make a push into the PC world in their heyday they had some of the best selling software for IBM big iron mainframes Of course after thinking that I was going to get a job programming games or graphics not that I had any real experience to speak of this was an awakening into the things that companies really need So I sat down at my desk and took a gander at the dumb terminal green screen that was sitting on my desk staring back at me Good ol 5250 in all its glory After a lit
14. ins eme sims vine Seng Negative Feedback ieee er aa Mah AR Flagged i eoo PortBase o I c C SULA ey eg T gt Cama 3 Update 9 install Figure 3 FinkCommander GUI Add _ Download configuri bud and Hor DarwinPorts These environments are ideal for both novice and checking for cvs usr bin cvs _ for autor cut experienced users who simply want the equivalent of checking for tar no same owner support yes Apple s Software Update for their OSS Frankly I use both Dind ina deo gah tier Naira Po all the time on my work machine to get my OSS fix checking for dports tree checking for ports config Although I have been known to compile the occasional TIN MERETE program I have gotten so used to these wonderful utilities ng for user that I hardily ever have to compile these days Each checking for install group admin checking what permissions to use for installation package manager offers access to a bewildering array of META MEE S MAUREEN ag software with Darwin Ports having 2 292 packages and checking for egrep grep E Fink having 5 013 packages across 23 categories What s checking for ANSI C heoder files yes more via the GUI you can choose to install the binary or checking for dirent h that defi DIR ve these ine risp ERAI MIRS Wi R
15. rct Look Get Boot Camp up and running on your Intel based Get all the info about Boot Camp first Avoid Windows viruses and malware You will learn how to Configure your Windows system Share data with your Mac partition Back up your Windows system Run a virtual copy of Windows within the Mac OS Much much more All for only 6 99 simply visit www peachpit com bootcamp to download your copy today www peachpit com the disk image and run the installer Once you re done with that we re going to be doing the rest of our work in Terminal To make life simpler we re going to set up a profile in our home directory that will make using DarwinPorts easier While you don t have to do this if you have multiple versions of software installed in various places a profile file will make your life a lot simpler My profile is a bit simplistic but it works for my needs In any text editor that will allow you to create files pico vi emacs TextWrangler SubEthaEdit BBEdit they re all good create a file with the following entries and save it in the root of your home directory as profile PATE pins sbin i ust bin usr sbin i ust local share aclocal opt local opt local bin opt local lib o pry export PATH CONFIG PATH opt 1ocal lib pkgconfig export PKG CONFIG PATH MANPATH usr share man usr X11R6 man opt 10ocal share
16. Peace 3 0 EC e See PRE EI o SE oe poets EER EL parl BS Sheree ele ome cca mde ua DLL UO oe i Pe Jee ofS amp Pees lai sat 4 ae Zim ote ce jeg NL Je b mem ayi har TEE 1 9 ce e ia ton B R d l 9 gs ID IE IT Jebteeirg Bx LA idt chm aver rtg AI ion 0o S sc cx eee Dee ee eee an ed i CA CLEITE we guivre T Bis Ado pime a VJ 49 mi hh m 24 valve i e ret pokes 5 Bis eme o y me pace Ad 4 PUR gy ij g sre he pe a ti Tey Ee 1 8 g1 2241 Who 2 a ieiz ads hess Oe Oh eco 2 y o RIS 2m 0 Les jae OF SS oh 7 i gen c mn CBS sa mas s ju tinpi 3 masr 190 0 ieri last i 395 22 w59 STS und tuj 1 D 7 Hae SLE eee dh fee ier fi et abe Az 35 sajat nod i aras P Pise cmd Ia p flor uos as Ta Zg i 2 70 HE fia tage 4 116727965 i 1158 a uH eris fFlhhaBct i ogress lt toons TE THE
17. from your Mac with a wide va and of standard applications programming languages REALbas MaxMSP LabView DirectorM X 4th Dimension and the UNIX Shell amen uy tbi kom control motors lamps relays SERVICE USB 297 80 Log values like temperature re Icy Get Custom made models USB he sta status ol switches light POS accessories and special barriers or reed contacts electronics are also available AI interfaces ships with a Well suited pre and after complete SDK drivers sam sales eMail support is avail ple apps and documentation able as a matter of course www bkohg com products html Other Options In AppleScript Studio a progress indicator may be displayed as a bar as we have seen However a progress indicator may also be displayed as a spinner See figure 10 _ Archive Selected Messages Progress Retrieving a fist of selected email messages Figure 10 Example of a Progress Spinner A progress spinner may be useful in situations where your code does not warrant providing incremental feedback to the user yet you still wish to indicate that processing is occurring In Closing The project discussed in this month s column should give you some basic ways to implement progress feedback in your scripts Now it is up to you to begin making your scripts more user friendly by providing such feedback to your users If you have difficulty getting any of th
18. tel 15 D n i du 18 w eh gazga Elele ews LoS AT STU Bae ai SRT 5 from the Library Spotlight folder restart Entourage When you look at the Entourage preferences you ll see as in Figure 5 that the Spotlight preference is no longer available Figure 5 Spotlight removed from Entourage preferences Finally if you completely disable Spotlight in entourage remember to go to the Users lt username gt Library Caches Metadata Microsof t Entourage 2004 folder and delete any folders there that you no longer want to be available in Spotlight searches In this article we ve described how Spotlight works with Entourage 2004 The Spotlight search functionality added in update 11 2 3 fundamentally changes the way that you can work with e mail contacts calendar items and notes in Entourage allowing you to instantly find data you need using the tools built right into Tiger This update makes Entourage a true first class citizen in the OS and it makes working with Entourage data on the Mac easier than ever Bibliography and References Apple Computer Working with Spotlight http developer apple com macosx spotlight html M Amir Haque Spotlight Support in Entourage 2004 The Entourage Blog http blogs msdn com entourage archive 2006 03 17 553801 aspx MT About The Author Brian Johnson is the Microsoft Entourage Product Manager You can contact Brian by e
19. Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed A CRYPTOCArRD s CRYPTO SERVER 6 3 FOR OS X ELIMINATE INSECURE STATIC PASSWORDS It is no secret that static passwords are the weakest link in the security chain but until recently there really was no Mac specific alternative That all changed when authentication technology vendor CRYPTOCard released its first two factor authentication solution for OS X Panther at MacWorld 2004 winning a MacWorld Best of Show award in the process CRYPTOCard has now launched a new version of its CRYPTO Server authentication solution for OS X Tiger Again the basic premise of this technology is simple replaces inherently weak static passwords with secure two factor authentication To log on to a protected network or resource a user must combine their security PIN something only they know with a one time passcode that is randomly generated by their token for each logon something only they have The new version of CRYPTO Server does a good job of leveraging Tigers robust support for smart card environme
20. KNOCK KNOCK KNOCKING ON LDAP s Door PART 1 f there is such a thing as a tradition in the relatively new IT profession the widely held belief that Apple Server solutions don t have an adequate scalable or enterprise worthy implementation of Directory Services is about as close as it gets Directory Services are generally methods of organizing and aggregating user group computer and resource information into a logical and accessible hierarchy along with a strategy of maintaining and enforcing access control over those resources Such traditions are somewhat related to assumptions and their evil cousins known as hysterias which are similar to beliefs that Netware Sysops often held about the superiority of eDirectory Novell s mature and spectacular Directory Service over Active Directory when it was released in 2000 Those Novell Sysops are probably not quite as snooty now that Active Directory dominates Enterprise IT Inside the Black Box While Novell was polishing its Netware Directory Services into what is now called eDirectory and Microsoft was busy readying Active Directory Apple was still mired in the throes of what I can only fairly call faking it AppleShare IP 6 and OS X Server 1 2 combined with Macintosh Manager for OS 9 and earlier superimposed a user and workgroup authorization model on top of a simple database that ran on a workstation OS AppleShare IP or synchronized up alongside of directory S
21. Tih ni TRGTECT YOUR PRIVACY NT INTER A Division of Smith Micro Software Available from your favorite retailers and catalogs Download a FREE Trial at Allume com One hundred percent 10 4 Tiger compatible Download FREE trial version of Internet Cleanup al httpz www allume com mac deanup today Bn ar OUS Alum fem n 6 X 1 i red fee i Ni the OSS universe has become increasingly accessible to GUI folks With every passing day open source developers are innovating and facilitating methods of OSS distribution Whether via an Aqua wrapper to X11 based applications like Aqua Ethereal or via graphical front ends to package management tools such as Fink s Fink Commander and Open Darwin Port s Port Authority OSS developers are clearly making every effort to reach the Mac audience What Exactly is Open Source Software Anyway Open source is typically used to refer to non proprietary software distributed with source code and a copyleft style license allowing anyone to add new features to or improve the source code as they see fit Open source is however more than a way of distributing software It is a way of life with a deeply evolved philosophy that is all about fun and exploration in an intellectual arena Central to that philosophy is the notion of hacking and an evolved spirit of play that goes beyond concepts of work and survival to paraphrase Er
22. kMDItemContentTypeTree f com microsoft entourage virtual message public message publie public item Inbox Welcome to Microsoft kMDItemCoverage kMDItemDisplayName Entourage 2004 for Macintosh kMDItemFSContentChangeDate 2006 03 21 21555424 0800 kMDItemFSCreationDate 2006 03 21 21 55 24 0800 kMDItemFSCreatorCode kMDItemFSFinderFlags kMDItemFSInvisible kMDItemFSIsExtensionHidden kMDItemFSLabel kMDItemFSName C gt CO C2 C5 l vRgeMessage kMDItemFSNodeCount 0 kMDItemFSOwnerGroupID 501 kMDItemFSOwnerUserID 501 kMDItemFSSize 6584 kMDItemFSTypeCode 0 kMDItemID 4306567 kMDItemKind Microsoft Entourage message pointer kMDItemLastUsedDate 2006 03 21 00 23 21 0800 kMDItemRecipients New Microsoft Entourage User kMDItemTitle Welcome to Microsoft Entourage 2004 for Macintosh Save time save money synchronize mSQL Synch eliminates double data entry forever You can now synchronize your FileMaker and web SQL databases Data is compared on a record by record as well as field by field basis Existing databases can be configured for synchronizing with just a few modifications Some of the features include Eliminates double data entry Two way synchronizing v Field level conflict checking and resolution v Setup Assistant Creates all 20 statements for you automatically
23. 1 1 omm Figure 6 Configuring Request Defaults element Right click on the Thread Group element and then select Add gt Sampler gt HTTP Request twice to create two HTTP Request elements one for each web page The Name and Path fields for each of the HTTP Request elements should be set to appropriate values For the purpose of this example we will the first HTTP Request element home set its path to wu username index html and name the second HTTP Request another and set its path to username another html figure 7 gon So take your business live on the Internet and start earning money 119 Sampler e 2006 Apache JMeter F Thread Group HTTP Request HTTP Farquerrt Cerf another Web Served Botner _ Server Name or IF Ment Por HTTP Reguest PFratocat Methow CET POST Path esteinjanceher ered Redirect Automatically F Follow Redirects d Send Parameters With the Reque Value Figure 7 Configuring the another HTTP Request element Now we need to add a timer to pause each request for a random period of time Right click on the Thread Group and then select Add Timer Gaussian Random Time For the last element we will add listeners by right clicking on the Thread Group element then selecting Add gt Listener gt Aggregate Report This particular listener lists in tabular form
24. 19 InterSystems 87 JCHS Media Pte Ltd Mobile Juice eene 42 Kerio Technologies Inc 26 LA Proje asco asma oeni oa AOE Ei 28 Ma TENET a EI I EEE TAO OEI OE 76 MacResource Computers amp 96 eres EP mbde AE E 103 MacSpeech JUL 78 MacTech Magazine 109 MARWARE 109 16 Meta Communications sscssscsssssssessssssssssssssssssssssesssscsscssscssecsssssseesssesseesssess 89 AEE EE EAA 37 MOST Training and 90 125 Consulting 4 10 OlympicControls Corp 77 OmniPilot Software 43 Opera estate REED Umum UR dE A Other World 27 53 114 115 jon si 12 Peachpit Pross TNR 69 PONE anre OT 5l PremiumSoft CyberTech Lid ett 99 Protective Solutions TR 109 Quantum
25. 4 Mercury Elite AL Pro World s best aluminum enclosed storage solution Single Drive models up to 750GB Dual Drive RAIDs up to 1 5 Terrabtyes 1500GB Available SATA FireWire BOO FireWire 400 USB 2 0 Interface options High Performance amp A V Certified Industry Leading 2 Year Warranty Mercury On The Go FWS00 400 USB 2 0 or SATA The First 160GB 2 5 inch bootable shock resistant fully bus powered storage solution on the market Perfectly designed Erro for the mobile work force Data Digital Photos Music r s o Mercury Elite Pro Classic Award winning High Speed Super Silent bootable backup and external storage in state of the art shell up to 500GB FireWire USB Engineered for Neptune Value Done Right Super quiet fanless FireWire design with data transfer over 40 Meqs per Second Quality reliable FireWire storage up to 500GB at an ultra M TIE Audio Visual General Data Graphics economical price and Backup Other World Computing ome Serving the Computer Universe since 1988 your solution Sx save Visit macsales com 800 275 4576 www macsales com hrewire D B4 Other Competing Wewer l echmalogy apart ol Sew Concept Development Carp PEH Cogstaulds Or Weadriock Il and ovallability are subyert ta change wethos notice Hemi peiurar within 3 days map Dr iubject rea restckis Fev Na retain
26. Apa b5 wAatclcE izf 48 4 m Ro i 54 ge Vet fet 8329 1 T 335 ae Za 1 er LE TE SES ix B amt se 7 ee Al Ti M to al m t Tt em i Sulas aje ger sida ine PH oe 1 dm Mns mii PH y Huuu al piy sg a A i i LITT TLM Bor um 291 9g I2 77 y fon aasia let TAT Dom Ax EI cq weg f t dos E 6 1 43 7 TE s a i ilira mw urge A E wa ny te o IHE je 2e lt j E pies tedir pope T a 214 wap m Pip LTIWI METS aT a og 2 J heis a ni je 2 rept ae tas 2 8 B m m pp m toe sia d 7 pes Wi a E E LFw T 4L cCmAT pee das dia iS diis Nas iil EE SS 2 okei dom cH Ti sg anml Tr jw Aike ic TA EE 140 5 ig E iat mid BPO Pas Bete ie Lte dak mais atre m Lt Part at Dama ua ias mtl Beg R n Ham T T mE j preg eee Pe areg eee 53 aimo i Wurde tm hii smi ee im imm eg v cp j sum i jr i gt 2 Breet 285 toen Saf FR i JUMP IIS aon y P S O00 piveegub J ot
27. Cluster Even in the Linux world where cluster and grid computing are well established there is often confusion about how to distinguish a grid from a cluster Let s look at characteristics of each Grid computing uses the available resources of many individual loosely coupled computers used by many different people across organizations Grid computing makes use of idle computer time and unused disk space on different systems often desktop computers the SETI home project for example Administrative tasks like system scheduling and job management are distributed since the computers are typically located over a wide area of multiple domains There is usually no single system image Windows Linux and Mac systems often contribute to a single grid Grid computing can be used for both high throughput computing Apple Genentech BLAST for example and high performance computing the San Diego Supercomputer Center the National Center for Supercomputing Applications the Argonne National Laboratory and the Max Planck Institute for Gravitational Physics collaborated in the largest grid computing demonstration of simulations involving Einstein s General Relativity equations Cluster computing in contrast involves a group of tightly coupled computers that work in parallel to share processing as if they were one machine with multiple CPUs Administrative job management and a scheduling system are centralized in a cluster Cluster machines
28. E SB DigitalStorageManager i s Intranet Search and Archive Management for Creative Workgroups Digital Storage Manager is the first intranet search and archive management system for creative and prepress workgroups Digital Storage Manager offers Ability to search and instantly find files by production related metadata A simple one step Archiving solution including integration with CA Software ARCserve Rimage EMC Dantz Retrospect Mac OS X File Burner Roxio Toast Microsoft Removable Storage Manager Secure Web Portal provides your customers freelancers or other departments the ability to search and download files via the web Integrates with existing job or production management systems including FileMaker Pro Download a 21 Day Trial or Call to Schedule a Demo Web www meta comm com Tel 1 800 771 6382 Email salest meta comm com COMMUNICATIONS DJAA he eee ee ge ee ee rmm i mss Cages ae ee ee UH BG TIRCESNSEG CENDECZ RS ee caleidoad ee ee eee ee Set mee eic eg Yo COQUE eee Node Xserve Raid OS X Server and Xsan Their growing suite of integrated products provide robust and inexpensive solutions for customers who require solutions to their compute intensive application needs Steve Jobs announcement in his WWDC 2005 keynote that Apple will deliver Macs with Intel microprocessors by Summer of 2006 ignited a considerable amount of disc
29. General Web Site http www mactech com In this electronic age the art of communication has become both easier and more complicated Is it any surprise that we prefer e mail If you have any questions feel free to call us at 805 494 9797 or fax us at 805 494 9798 If you would like a subscription or need customer service feel free to contact MacTech Magazine Customer Service at 877 MACTECH We love to hear from you Please feel free to contact us with any suggestions or questions at any time Write to letters mactech com or editorial mactech com as appropriate The Journal of Macintosh Technology A publication of CORPORATION The Editorial Staff Publisher amp Editor in Chief Neil Ticktin Associate Publisher David Sobsey Executive Editor Edward R Marczak Editor at Large Dave Mark Business Editor Andrea Sniderman Editor at Large Open Source Dean Shavit Managing Editor Dennis Bower Copy Editor Marianne Shilpa Jacobie Staff Writer Dharmendra Rai Xplain Corporation Senior Staff Chief Executive Officer Neil Ticktin President Andrea J Sniderman Accounting Marcie Moriarty Customer Relations Susan Pomrantz Board of Advisors Steven Geller Alan Carsrud Regular Columnists QuickTime ToolKit by Tim Monroe Reviews KoolTools by Michael R Harvey Patch Panel by John C Welch AppleScript Essentials by Ben Waldie The Source Hound by Dean Shavit Mac In The Shell
30. Linux Windows Mac OS X and OpenVMS and it s deployed on more than 100 000 systems ranging from two to over 50 000 users We are InterSystems a global software company with a track record of innovation for more than 25 years InterSystems P CACHE Try an innovative database for free Download a fully functional non expiring copy of Cach or request it on CD at www InterSystems com Cache2HH Read about our money back guarantee at the web page shown above 2006 InterSystems Corporation All rights reserved InterSystems Cach is a registered trademark of InterSystems Corporation 4 06 CacheInno2MaTe Finally here is a screenshot of all the commands we ve used to query the grid and initiate the job along with the results from the job request Terminal File Edit Seroliback Font Window Help Aa Terminal bash 82 20 tipgeri2 rorturyst nid hnorburymis iocal grid ist gridList 8 LPL 76 Fus E locat grid attributes gid Ernie Burimi deeds 11 Soe did ere eee Lamm Hunii Figure 8 Xgrid Admin Agents During Job Run And now click on the Jobs tab Figure 10 Xgrid CLI Client on tiger12 Client Machine Terminal File Edit Scrollback Font Window Help Pale isa h id f Terminal bash 82x20 ake a look at the xgrid man pages for more tigerid morburys grid lt n norburyels iocal grid tet B options and some very good example
31. Next tab over to or click in the Password field and type a password Note that the password characters echo as dots I ll show you why in a second Finally click the Submit button You should see something like the output shown in Figure 2 Notice that the name and password are both echoed and the form is then reloaded so you can try this again METER Figure 2 The name and password are echoed and the form is reloaded Lets take a look at the code see how this works We start with the basic html head title and body tags Nothing new there lt html gt lt head gt lt title gt Sample PHP Form lt title gt lt head gt lt body gt The first thing we do in the HTML body is open a PHP tag and jump into an if statement The if statement calls the PHP function emptyO to see if the variable POST name is empty that is see if it has been set to a value Whenever you see a PHP function and don t know what it is make your way over to http ohp net type the function name in the search for text field select function list from the in the popup menu then click the arrow to do your search The result of my search for the empty function is shown in Figure 3 9 SAMPLER 2006 FHP 1 4 PP Diana ate a quam m empty Description toc mmpliy Ted was Deter mamie d reise a coger be pun amriy Figure 3 Searching for the empty function on php net What the
32. and easy to use tools Surround SCM and TestTrack Pro Complete source cade control with private Advanced branching simplifies man aging multiple workspaces automatic merging role based versions of your products security and more Fast and secure remote access to your source Comprehensive defect management track files and defects work from anywhere bug reporis and change requests define workflow Scalable and reliable cross platterm client server customize field solutions support Mac OS X Windows Linux and Solaris id S t Ee Ju k im f New Full Unicode support maintains international Exchange data using XML and ODBC extend and characters across various languages ensuring automate with SOAP support data is not lost or misinterpreted Licenses priced to fit your budget Seapine Software Product Lifecycle Management Award winning easy to use software development tools asia TestTrack NS PRO Download Surround SCM and TestTrack Pro at www seapine com mac or call 1 888 683 6456 t dev evei coment EI erh mman 1 product normes FTG glee ai Hag e owners nl instead of writing plugins There are already several clients that have emerged from this addition to Xgrid GridStuffer a Cocoa client available at http cmgm stantord edu cparnot xgrid stanford ht
33. by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed MICROSOFT MAC IN THE ENTERPRISE Entourage 2004 Spotlight Support An IT Perspective How Microsoft Entourage 2004 now takes advantage of Spotlight By Brian Johnson and Andy Ruff Introduction In update 11 2 3 Microsoft added support for Spotlight and Sync Services to Microsoft Entourage 2004 running on Mac OS X 10 4 These two features allow users to search Entourage e mail stores and to synchronize Entourage data with any software or hardware that takes advantage of sync services in the OS It s important for system administrators who need to plan deployment of this technology on Macs and may need to consider configurations with many users and with limited disk space to understand how this all works In this article we ll focus on the Spotlight support added to Entourage We ll tell you about how Spotlight support works in this update Specifically we ll also address Spotlight support considerations for multi identity installations of Entourage An Overview of Spotlight in Entourage From the user perspective Spotlight search in Entourage provides a mechanism that allows for the full t
34. differs from the first example in that n is not specified When n is not specified ab sets the number of requests to a default value of 50 000 It is important to realize that when using the t switch it is possible for the benchmark to complete before the specified time period has elapsed thus rendering the time variable irrelevant Therefore when using the t and n switches in tandem it is important to consider whether your time variable exceeds the time it takes to process n requests 0 YTmm uh ib4ts hocwerpe eptein cb t 68 c 10 Pttpr localhopt esteln This is ApocheBench Version 1 34 Revision 1 73 1 3 Copyt ight 1996 adam Tuiti Deus Technology Lid hbtpi w Imugtech nak Copyrigh 1998 27 The tate Fourdet ian Aa apacha Barret org reat be bent 1 98 m2 mean crore all concurrent requegta 114 58 received Connnection Times m min m en s p3 media mon 5 4 iu 1 8 2 19 2 id 19 3 1 2 19 tha served within a cartoin tise mi Figure 2 Output of ab t 60 c 10 http localhost estein JMeter JMeter is a pure Java application developed under the purview of the Apache Jakarta project which offers a wide array of tools for benchmarking all manner of client serverbased applications JMeter s modular architecture allows it to simulate a variety of load
35. f 5 Fr i LE AQUAZONE SEVEN SEAS DELUXE FORTY BEAUTIFUL FISHES TURTLES JELLIES amp SHARKS et INTERACTIVE SCREENSAVER NETT Aeg gt TAP THE GLASS FEED THE FISH E X anoz A Division of Smith Micro Software A virtual aquarium so vibrant you ll swear the fish are real Available from your favorite retailers and catalogs Aquazone Seven Seas Deluxe includes 40 fresh and saltwater fish adult and baby sea turtles and sharks Have entire schools of fish on screen swimming through 20 customizable 3D tanks IM and C Are remi in i arias rah lution Tor pow plese velit us Assuming your configure went okay we re going to run the various Nagios make and install commands make all If make all completes successfully you ll see a status screen like the one below We re going to run the other make commands with the exception of make install init since Mac OS X doesn t handle startup items like that we ll want to test a bit before we make Nagios a startup item ana Terminal sah baih 111852 it Compe ie at pt ee ado CO ceed bd eid ee ed imi ele i pras Ge elie UH maed i aes mra Fur m i sk ab peeks apCime 4 haa Hen sexi med HITL Pie Wis pide ie mri de
36. of zero configuration Rendezvous at the time now Bonjour to discover available resources on the network XGrid is based on a NeXT application called Zilla developed in the late 80 s by Richard Crandall a then NeXT employee and now a Distinguished Scientist at Apple Zilla was the first community supercomputing application screen saver type distributed computation system With the publicity of the Virginia Tech s Terascale Computing Facility and their System X built on 1100 dual processor 2 0 GHz Power Mac G5 computers the potential of low cost supercomputing became an exciting possibility Using commodity based or commercial off the shelf COTS hardware and free software distributed computing became well within the reach of any organization with existing hardware Xgrid and Tiger In April 2005 Apple introduced Mac OS X version 10 4 codenamed Tiger and included Xgrid in both the client and server versions of the operating system Xgrid was streamlined and arrived in Tiger a different animal Xgrid in Tiger no longer limited job submission to the GUI the client side Cocoa API was made available to developers who were encouraged to assimilate Xgrid into their applications WWW MACTECH COM Complete Source Control 4 Seapine Software and Defect Management for Mac OS X TUT i Ge l i ha amo ww ed D Effective source code control and defect tracking require powerful flexible
37. progress information to the user during processing The script we will create will save selected email messages in Mail as text files into a user specified output folder Since the script will have the ability to process multiple selected email messages we will write our code to provide a visual indication to the user of which message is currently being processed Once you learn how to provide this type of feedback then you can begin integrating this same technique into your other scripts making them more user friendly If you followed along with some of my past AppleScript Essentials columns then you are probably familiar with AppleScript Studio a feature set of Xcode and Interface Builder the Mac OS X developer tools that come with OS X AppleScript Studio provides a way for developers to build AppleScript based applications complete with robust interfaces In this month s column we will use AppleScript Studio to add a progress interface to our script complete with text feedback and a progress bar Displaying a Basic Progress Interface with AppleScript Before we get started with AppleScript Studio let s discuss how to provide progress information to the user in a non AppleScript Studio based script SAMPLER 2006 In some cases taking the time to construct an AppleScript Studio application may not be the best solution For example your script may be very simple or it may be an existing script that is too complex to w
38. s performance without interrupting service ApacheBench ApacheBench a default component of the Apache Server distribution is a simple command line tool designed to measure the performance of Apache server Preinstalled on Mac OS X it is able to supply information such as elapsed time requests per second time per request compression rate transfer rate and connection time under different concurrence scenarios Though not an exhaustive list see the ab man page for more details the following represents the most commonly 116 SawPiER 2006 used switches employed when testing typical usage scenarios with ab n Specifies the number of requests to perform for a given test Use this option to measure the time required to process a given number of client requests When used alone without the c option ab does not process requests concurrently t Specifies a timeframe in seconds to spend benchmarking This option is useful in determining the number of requests that your server is able to process in a given amount of time c Specifies number of simultaneous connections Of use in testing how your server performs when multiple clients are hitting a given page at the same time This switch may be used with either n or t to measure the total elapsed time required to process a given number of client requests simultaneously and the number of concurrent requests that may be processed over a set amount of time r
39. sottware com dpgui html To Compile or Not To Compile Often OSS will come in a variety of package and binary formats While many given the choice will instinctively go for the binary or packaged formats there are certain benefits to compiling These include the ability to better monitor the installation to effectuate custom configurations or for reasons of security Regarding the last point it is rare that package maintainers are ever malicious and provided you get your package or binary from a reputable source e g sourceforge org freshmeat net are two popular examples you risk little or nothing Ditto for users of package utilities like Fink and Open Darwin Ports Users of these utilities can also compile from source Regardless of whether your preference is for pre compiled and packaged binaries or source auto compiled using Fink there will come a day mark my words when you will need to compile a piece of OSS It may be because the binaries were not updated for the latest OS update or because there are no OS X packages out there and or your package utility has not indexed the particular piece of OSS you need While I know many people who would prefer to eat a bug than open the terminal and compile software developers often make it very easy to compile their source code Much of the time the following terminal command is all that is needed configure amp amp make amp amp make install There are n
40. the Nagios Plugins and Add Ons Exchange http www nagiosexchange org MI About The Author John Welch lt jwelch bynkii com gt is Unix Open Systems administrator for Kansas City Life Insurance htfp www kclife com Technical Strategist for Provar http www provar com and GeekSpeak segment producer for Your Mac Life http www yourmaclife com He has over fiffeen years of experience at making Macs work with other computer systems John specializes in figuring ovt ways in which to make the Mac do what nobody thinks it can showing that the Mac is a superior administrative platform and teaching others how fo use if in interesting if sometimes frightening ways He also does things that don t involve computertry on occasion or at least that s the rumor el n tor Mac iListen 1 7 Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed DISTRIBUTED COMPUTING Build Your Own Supercomputer From Your Macs Laying Around How to employ Tigers Xorid to build clusters and to contribute to grid cluster projects Grid vs
41. 21 GO available we Figure 2 Archived Email Messages The display dialog command can also be used independently rather than within a repeat loop to indicate various tasks that are being performed by the script Now that we have discussed providing basic progress information to the user let s move on to AppleScript Studio In the remainder of this month s column we will walk through the 93 SAMPLER 2006 Register Get your COM or any other domain name here FREE with every domain FREE Starter Web Page FREE Getting Started Guide FREE Complete Email FREE Change of Registration FREE Parked Page w Domain FREE Domain Name Locking FREE Status Alert FREE Total DNS Control Just visit www mactechdomains com to register for your domain today when a non domain name product is purchased Limitations apply process of creating a script that will perform the exact same function as the previous code only with a more robust interface Building the AppleScript Studio Project You may recall that the first step in building an AppleScript Studio project is to create a new project in Xcode Begin by launching Xcode Please note that the AppleScript Studio project covered in this article was developed using Mac OS X 10 4 2 and Xcode 2 1 Please be aware that new software versions often result in changes in AppleScript terminology Therefore if you are using software versions o
42. 4D product names are registered trademark of 4D SA All other tradenames or registered tradenames are trademarks or registered trademarks of their respective holders know it can see the home page So that s something Next we want to make sure that just anyone cannot see all the information that Nagios can provide If nothing else you don t want the entire world or even your entire company getting detailed information on your servers There are a lot of ways to set up access control to web sites l m covering one here namely using htaccess files To do this we re going to make a couple of changes to httpd conf and set up a htaccess file for locking down access httpd conf changes Note This a fairly simple way to set this up There are Other ways to do the same thing and they will work just as well This one works in my situation Open etc httpd httpd conf in your text editor of choice I use BBEdit and look for the following directive lt Directory Library WebServer CGI Executables gt AllowOverride None Options None Options ExecCGI Order allow deny Allow from all lt Directory gt and change it to read lt Directory Library WebServer CGI Executables fAllowOverride None AllowOverride AuthConfig Options None Options ExecCGI Order allow deny Allow from all lt Directory gt This will allow you to run the CGI s after you have authenticated yourself for the CGIs To do that we need to set
43. 5 new in es informing Easily transfer and back up Schedule regular or one time Easily schedule check and install mew vou of Tr status of your protection available wear dava to veut iio backups Of your data and view updates ler Parsoaal ackup X4 as well az updates and scheduled events them in Appie s iCal updates Tor all mtego software installed or woud Archi enc ripis t ew mena all lere Personal Backup X4 Widge T Pp frre ive kup scriprts r j Scripts cam be linked 1 1o one another Backuga DIDI Exreptina list Automatic mount Test Sor pti b T cosa gie be get a bea o calendar fo p statistics gt TT ult t 1 Pe pe Tra LL ed t miego 500 North Capital of Texas Hway Suite B 150 Austin TX 787485 Tel 512 637 0700 Fax 912 6317 0701 amp aleidfintega com keit mu vu dde sg g hya pei Germ dg gg Fe beg ma Le ike ee pee Ge d d mg due ee ee pump amu mado umm ge sno Den namecummp cb ed mee amb ees quon ge noue aen Mame Har c eee aD cox super ee cn uma s ee dk erm Yt PROGR vii link title is the name of the submit button for your text input box description provides user instructions for th
44. In The Xgrid Admin window Click the Connect button and you ll see the Overview In the Overview window Click the Connect button and you ll see your agents listed under the Agents tab grid Amin Fia Boe Comala Cee Agent pb Window Help en Abre x Aud bade Rr bade Daun omi Figure 6 Xgrid Admin Agents Tab There are no jobs listed under the Jobs tab yet so let s add one Add A Job Through the xgrid CLI Client Let s move over to my 12 Powerbook as Client open the Terminal and talk to the Controller norburym15 First we ll query to see what grids are available tigerl2 norburyms xerid h morbutyml5 local grid list 986 SAMPLER 2006 Our syntax includes the xgrid command h for hostname of the controller norburym15 local since I m using an Airport wireless network here at home and the options grid list to give us the list of available grids on our local network The result is DO j If we had two grids available we d see this result But we only have one grid and from the GUI above we know it s called the default Xgrid Let s take a look at information we can get from the CLI tigerl2 norburymS xgrid h norburyml5 local grid attributes gid 0 We see this for our result gridAttributes gridMegahertz 0 isDefault YES name Xgrid The returned attributes include the current workload gridMegahertz 0 because there a
45. X and OS X Server facilitates Mac upgrade projects for customers and writes for his own website www themachelpdesk com Recently he became the surprised father of application Mac HelpMate available at www machelpmate com If you have questions or comments you can contact him dean macworkshops com to order a One Year Subscription 44 SAMPLER 2006 WWW MACTECH COM Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed FROM THE SOURCE AN OPEN SOURCE PRIMER PRACTICAL GUIDE TO USING OPEN SOURCE SOFTWARE COSS ON Mac OS X FOR THE NON DEVELOPER By EMMANUEL Srern WEEEEEEEN 46 Introduction Readers of Dean Shavit s The Source Hound and Ed Marczak s Mac In The Shell are no doubt familiar with open source software OSS With Darwin as OS X s core many if not most of the Mac OS s most critical components are based on if not entirely built upon open source projects To exploit the capabilities of OS X it is therefore critical to have a good grasp of OSS and the many ways you leverage ope
46. a pause You find yourself working longer working harder A faster Mac means that you can work faster not harder be more productive Let the original Mac Performance Shop help Daystar has been creating Mac speed for over 16 years Whether your bottleneck is storage connectivity or just raw CPU speed we deliver the performance you need where you need it CPU Upgrades for Raw Speed We upgrade any Power Macintosh any iMac Flat Panel any PowerBook G3 and some PowerBook 45 Fast and Large Storage for Real Time Video Our TURBOSATA solutions can make your drives perform like RAM Projects open in a flash and edit in real time Extreme Wireless Wireless is great unless you re getting slow transfers Even Airport Extreme s are slow when the signal is weak Daystar can boost your signals and energize your wireless network But if You Really need a G5 Daystar is the only Mac Performance Manufacturer that is also an Apple Authorized Reseller Not only can you trade in your system for the latest and greatest but the Daystar Pro s can upgrade it for maximum performance Call 877 439 8646 and beat the clock Authorized Reseller Daystar Technology Your Macintosh Performance Shop 5018 Bristol Industrial Way 202 Buford GA 30518 USA Toll Free 877 439 8646 or 770 614 5400 Daystar Tech com Daystar Forum com Daystar 5tore com lastBuildDate Optional The date that the feed was last updated This is often one of the first ta
47. affiliate center at the University of Colorado Health Sciences Center in Denver Colorado She has too many years to count experience in cross platform systems implementation and administration in the education sector You can reach her at norburym mac com M a g a z i n e store mactech com riskfree WWW Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed 92 PROVIDING PROGRESS FEEDBACK DURING SCRIPT EXECUTION any AppleScripts do not provide progress updates to the user during processing Most of the time when a script is run it simply performs the appropriate tasks behind the scenes so to speak If run as an application a script may appear in the Dock when launched However this hardly provides detailed information to the user about what is actually occurring Sometimes a script may not need to provide progress updates to the user However there are situations when providing such feedback is a good idea In this month s column we will walk through the process of creating a script that will provide visual
48. also share a single system image In other words the collection of systems in a cluster appear as a single entity to the user the DBA etc Cluster computing can be used for high performance computing see description in grid computing above load balancing and high availability computing Load balancing describes the situation when processing activity is efficiently distributed among cluster members so no individual computer gets overwhelmed High availability computing is implemented in situations that require maximum uptime and where availability of services is critical Think of grid computing as involving computers from myriad networks around the globe while cluster computing is a set of machines usually in one location involved in parallel 80 SAMPLER 2006 By Mary Norbury Glaser computing with the goal to get them to look like a single virtual machine Xgrid Introduced At MacWorld 2004 in San Francisco Apple s Advanced Computation Group quietly announced the Technology Preview Release of Xgrid version 1 0 as a free beta download Xgrid created quite a lot of excitement in ripples throughout the conference attendees who were involved in or interested in compute intensive applications The software download included the Xgrid app and a basic local alignment search tool Apple Genentech BLAST an open source DNA and protein sequence matching application that enabled distributed searches on an Xgrid cluster It touted the use
49. by Ed Marczak Board of Advisors Chairman Dave Mark Jordan Dea Mattson Steven Geller Bruce Friedman and Richard Kimes Contributing Editors Michael Brian Bentley Gordon Garb Vicki Brown Chris Kilbourn Marshall Clow Rich Morin Will Porter Tom Djajadiningrat Avi Rappoport Andrew S Downs Cal Simone Steve Sisak MacTech Magazine ISSN 1067 8360 USPS 010 227 is published monthly by Xplain Corporation 850 P Hampshire Road Westlake Village CA 91361 2800 Voice 805 494 9797 FAX 805 494 9798 Domestic subscription rates are 47 00 per year Canadian subscriptions are 59 00 per year All other international subscriptions are 97 00 per year Domestic source code disk subscriptions are 77 per year All international disk subscriptions are 97 00 a year Please remit in U S funds only Periodical postage is paid at Thousand Oaks CA and at additional mailing office POSTMASTER Send address changes to MacTech Magazine P O Box 5200 Westlake Village CA 91359 5200 All contents are Copyright 1984 2006 by Xplain Corporation All rights reserved MacTech and Developer Depot are registered trademarks of Xplain Corporation RadGad Useful Gifts and Gadgets Xplain DevDepot Depot The Depot Depot Store Video Depot Movie Depot Palm Depot Game Depot Flashlight Depot Explain It MacDev 1 THINK Reference NetProfessional NetProLive JavaTech WebTech BeTech LinuxTech MacTech Central and the MacTutorMan are trademarks or servi
50. collection of tips For example try holding down the option key then pressing the volume up or down key on your keyboard Cool The Volume System Pref opens There are tips for the Finder the Dock Dashboard System Prefs iTunes and a lot more To me the book is worth the price of admission just for that part along But wait there s more The second part of the book is called Mods and explores more developer oriented things Things like Automator Xcode Property Lists and Application Bundles Lots of great info here especially if you are relatively new to Mac development The third part of the book might be my favorite It s called Hacks and is full of well um hacks You ll customize dock icon behavior hack some Dashboard WWW MACTECH COM widgets even redirect your web cam output to create a live video desktop All this stuff is presented in Scott Knaster s witty irreverent style I totally love this book Hacking Mac OS X Tiger is part of Wiley s ExtremeTech series You can find it at http www wiley com WileyCDA WileyTitle productC d 076458345X html And now back to our regularly scheduled programming Implementing a Form with PHP The key to implementing an HTML form is the form tag Typically the form tag will include both action and method attributes The action attribute specifies the name of the file to which to send the form s results The method attribute specifies how for
51. drag an NSTextField into your interface window Enter some default text such as Waiting to process into the text field s contents Continue to arrange and design the interface making sure to adhere to Apple s standards for human user interface WWW MACTECH COM Really fast compilers arrived Make your core duet really sing New compilers debuggers libraries and powerful tools from Intele and Absoft are now available for Apples computers using Intele processors Contact sales absoft com or call 248 853 0050 to order today http www absoft com absett Development tools for Apple customers since 1984 guidelines which can be found in the ADC Reference Library both online and in Xcode s documentation See figure 6 for an example of my completed interface design Figure 6 Example Progress Interface Design Preparing the Interface for AppleScript Interaction Once you have finished designing your progress interface the elements that make up the interface must be prepared to interact with the AppleScript code within your project To do this you must assign AppleScript names to various interface elements as well as configure certain elements of the interface to respond to event handlers First we will assign an AppleScript name to the main window itself To do this click on the window to select it Next choose AppleScript from the popup button at the top of the Inspector palette and enter
52. else document getHlementById status innerHTML 110 Sampler e 2006 error http statusText j function sendRequest var query document getElementById queryInput value var queryURL service php q query http open get queryURL http onreadystatechange handleResponse http send null return true AjaxDemo html lt html gt lt head gt lt script type text javascript src AjaxFramework js gt lt script gt lt head gt lt body gt inoscripto Your browser does not support Javascript Please upgrade your browser or enable Javascript to use this site lt noscript lt input type text size 30 id queryInput value lt a href onClick sendRequest gt Send lt a gt diy cde stetus snbsp X7divs br 5 lt textarea rows 20 cols 70 id responseArea value gt lt textarea gt lt body gt lt html gt service php lt php echo _GET q p MI About The Author Andrew Turner is a Systems Development Engineer with Realtime Technologies Inc www simcreator com and has built robotic airships automated his house designed spacecraff and in general looks for any excuse to hack together cool technology You can read more about his projects at www highearthorbit com Get MacTech delivered to your door at a price the newstand price And it s store mactech com riskfree WWW MACTECH COM
53. give the account a password You ll also need to create a nagios group The Nagios group needs two members nagios and www Adding www to the nagios group makes setting 72 SAMPLER 2006 up the integration between Apache and Nagios much easier Once you ve created the user and group for Nagios then we re ready to download the Nagios source code files Go to the Nagios download site http www nagios org download and download the 1 2 version of the Nagios tarball and the most recent version of the Nagios plugin tarball 1 4 2 as of this writing Save them both to whereever you want I ususally save them to my desktop Unzip and untar the Nagios source code files In the Terminal cd to the nagios 1 2 directory The first thing we have to do is run the configure utility so that we can compile and build the code correctly As we re using some non standard for Nagios library locations we ll need to tell it where to find things We also need tell Nagios where its own base directory is going to be where the CGI directory it will use is going to be and where the base web root directory it s going to use is For this article I m using wrrheesd lidib opt loeal Lib wirthsgde inc opt local include prefix usr local nagios Witte com wi th himiurl Make sure you don t have any spaces between the and the leading of the paths in the configure command and let it rip When
54. heck is name What a weird name for a variable The variable POST is an associative array An associative array is an array that is indexed by name instead of by numerical index For example you might have an array of nicknames for all your friends where nicknamesl Fred is set to the string Stubby while nicknames Phil is set to Scooter Note that the quotes are optional for single word strings So you might see nicknamesl Fred Though that will work leaving out the quotes will make your code a bit more cryptic so use them unless you find yourself in a funky situation where they just get in the way quoted string inside another quoted string for example And even then be sure to comment your code so everyone can follow along POST is an associative array that contains an element for each of your form s input fields So _POSTI name contains the contents of the input element with the name name _POST pwd contains the contents of the input element with the name pwd You get the idea The goal of the if statement is to see if the name field is empty If not we ll use echo to display the contents of the name field Want to learn about echo Go to php net and type echo in the search field search the function list About of the way down the page youll see a nice comment about using braces This is worth reading In a nutshell you can use braces as separa
55. importer eeseesee reads the file and then passes the metadata back to Spotlight You can see the info for this plug in in Figure 3 Notice that this plug in is a universal binary and that it runs natively on an Intel based Mac ql Multiple Identities _ Stationery Pad Locked More info E Mame amp Extension i Open with Preview There are a few things b Ownership amp Permissions that system Figure 3 The Microsoft administrators should Entourage mdimporter plug in understand if they are 126 Sampler e 2006 going to use Spotlight search in multi user scenarios Given that Entourage can work as a multi identity application one thing you ll probably wonder about is how does Spotlight know about the currently active identity in Entourage The answer is that it doesn t While we only automatically enable Spotlight indexing for the first identity launched after the update is applied a user may turn on indexing of additional identities by enabling the Spotlight preference in Entourage If the user then double clicks on an item that item is only opened if its associated identity is currently active Entourage actually uses the folder path to determine the identity of a result If the identity is not currently active then the user will get the message shown in Figure 4 Entourage cannot open this item 2 To view the item switch to the Karen Walker identity Figure 4 Trying to open an item associa
56. is a feature I barely use anymore locally I have Terminal app s unlimited scrollback buffer and a mouse But remember you can run screen and then disconnect All of the output will accumulate in screen s scrollback not on your terminal while in this state a gets you into copy scrollback mode Use the arrow keys to move around Additionally u and d will page up and down respectively The escape key will bail you out There are plenty of other options and expansions on what is contained in this month s column The man page happens to be excellent so once you re comfortable with the basics go dig in One thing that is not possible as is with the Apple supplied screen is the ability to do anything fancy with multi user ACLs only work if the screen binary is set uid Because meetings are more productive when people are on the same page of their calendars j L E Get the message rye Kerio MailServer A groupware alternative to Exchange that syncs calendars contacts and email with Entourage and Outlook Integrated anti spam and McAfee virus filtering provide secure junk free email for users on any platform Mac OS X Linux Windows Frrrun KERIO Up to 1 5 Nove Starting at just 99 95 Other World Computing Providing Solutions for Today s Technology Users EL al ATA j zu Fi i 3C 0 www MacSales com l FireWire usa
57. it is and create the appropriate object This function is universal for any Ajax use Host dStore MS s apu m om ILE pau ms HostedStore provides a TURNKEY SOLUTION FOR CREATING A WEB STORE yet is extensible so developers can use the application as a base for creating customized solutions for their clients The extensibility of HostedStore provides a structure which allows developers to create modules that add new functionality or alter the built in features We are seeking software resellers hosting providers developers and designers that currently offer or plan to offer ecommerce solutions to their clients Resellers receive a discount off of the published list price of our software and are free to bundle our software with their own products and or Services TIRE www hostedstore com a a one LE E ww ie E wma AjaxFramework js request object constructor function createRequestObject var ro var browser navigator appName if browser Microsoft Internet Explorer ro new ActiveXObject Microsoft XMLHTTP Jelse ro new XMLHttpRequest FeLurh You should now create a global request object that will be used by the client for all future communication AjaxFramework js global request object var http createRequestObject Assign a response handler and handle the response Our second step is to assi
58. knows where its various web files really are To do this we want to open up side html in usr local nagios share and make sure that all the references to CGIs look like this href cgi bin statuswrl cgi If they do then you re all set there If you ve got everything pointed right then we can test the basic operation aka can we see the Nagios Home Page Just point your browser at the Nagios URL and if it s all set up correctly you ll see amo ncm I OW manm iiini az lis mmm a Tr ee eee Figure 5 The Nagios Home Page Note that nothing works yet and in fact the Nagios process isn t even running But at least we WWW MACTECH COM WHEN THE SOLUTION MATTERS The four D s of 4D P c um mm 7 1 Titre yy D 0 Design truly beautiful native applications With a powerful and efficient development with rich intuitive user interfaces that users environment you can create powerful apps demand to maximize their productivity that take advantage of all of today s standards With an integrated compiler automatic backup Go ahead Kick your feet up You can have and client updating support delivery and peace of mind knowing that you re getting installation of your apps has never been easier the best in performance and ease of use 4th Dimension 2004 www 4D com 2004 4D Inc All rights reserved 4th Dimension related logos and all
59. mail at brianjo microsoft com or you can read his blog af http bufferoverrun net Andy Ruff is an Entourage Program Manager and is the author of The Entourage Blog http blogs msdn com Entourage Is your computer running slow Maybe it needs a boost Name brand quality Value pricing Lifetime guarantee World class support Toll Free BOO 895 3493 Outside US Canada 805 494 9797 Fax 805 494 9798 www betterram com E 1 1 AZER SOL U Salvation Awaits You Convert Now Change the way you live work and play Convert to Razer Pro Solutions for faster speed more accurate control better response and superb precision In essence increase your productivity It is the Way to perfection Born from a marriage of form and function the ProjClick v1 6 is a godsend Surrender to Salvation Click amp Convert Now Find out why you should convert amp Works with both PC and Mac www razerpro com convert Available at UH 1 Cmm Agnum Flere Cw Planet rigo and Tas Plains Pr Feb Pe Nus Pe er PE Pal fe eer Did you find this article helpful Imagine a year of help MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler
60. man export MANPATH INFOPATH opt 1local share info The path statement ensures that when you enter a command that the opt local tree is used automatically It also leaves the standard paths for bin sbin usr bin usr sbin etc The CONFIG PATH is used to ensure that software you install under your login can find pkg config a tool used to make compiling libraries and applications easier The MANPATH statement makes finding man pages in the opt local tree easier The INFOPATH variable is used by things like gettext which figures into a lot of open source packages If you already have your own profile then just add the opt local information if you wish I rely heavily on DarwinPorts so for me having this profile setup is a real timesaver If you don t use DarwinPorts a lot you may not wish to modify your profile So once you re done setting up not your profile we re ready to go If you did modify your profile from within the Terminal you ll want to read that file so your environment is set up Just run source profile to set up your environment with the new information from profile Now we need to make sure DarwinPorts is up to date To do this run sudo port selfupdate 70 SAMPLER 2006 and wait a few minutes If there is any updating to do you ll see some short status messages on the screen and if all goes well you ll get the selfupdate done message and you re set If
61. nis schema etc openldap schema inetorgperson schema etc openldap schema misc schema etc openldap schema samba schema etc openldap schema fmserver schema etc openldap schema apple schema Integrating OS X into complex networks will never be the same again as the answer to many questions is now Yes OS X Server can do that rather than No it doesn t support that And just when we were getting used to understanding the limitations of those POSIX permissions and working hard to transpose that understanding to the new ACLs for files and folders now we find squirreled away inside the black box a new form of ACLs sometimes referred to as DACs or directory access controls Let s take a look at the default access controls which live at the following distinguished name cn default cn accesscontrols dc nagitest dc macworkshops dc com Herein lives an attribute called apple acl entry and there are four default entries which are please note that the backslashes indicate line breaks numbered much like firewall IPFW rules Like many of the enhancements in Open Directory the accesscontrols are a standard component of OpenLDAP 1000 access to attr userPassword by self write by sockurl ldapi 2Fvar 2Frunk2Fldapi write by group posixGroup memberUid cn admin cn groups dc nagitest dc macworkshops dc com write by read 1100 access to attr apple user authenticationhint by s
62. of the CRYPTO Server technology on its website at www cryptocard com CRYPTOCard Corp 340 March road Suite 600 Kanata Ontario K2K 2E4 Canada Phone North America 800 307 7042 International 1 613 599 2441 Fax 1 613 599 2442 Web www cryptocard com E mail info cryptocard com MI WWW MACTECH COM rd www macsales com 800 275 4576 fli Highly Reliable High Performance Plug amp Play FireWire amp USB2 External Storage Solutions from 99 95 Add up to 1 5 Terabytes 1500GB for you Data Graphics Audio Visual Music and Storage Needs with a top rated Mercury Neptune or NewerTech Storage Solution from OWC Latest Oxford Chipsets Hitachi and Seagate Drives Retrospect Backup Certified _ 2 Year Warranty The FIRST Pocket Sized Solution up ta 160GB Li ARA ae et NEW The 3 FIRST 750GB X Re single drive OW Mercuri th solutions 40GB to 160GB from 510999 ONC Mercury Elite AL tree F I Pro up to 500GB amp OWC LAYE RS Mercury Elite AL 800 Pro RAID ceecee EP BOGB to 1 5TB 1500GB from 119 99 Tk See the full line of OWC FireWire solutions as well cy as solutions by LaCie EZ Quest SmartDisk and Wiebetech online at macsales com FireWire solutions gt MewerTech miniStack V2 FireWire US82 P from 99 95 Solutions with integrated Fir
63. on the job FileSalvage can undelete files from your hard drive digital camera or iPod Even if you ve accidentally formatted it or your drive is corrupted you can still get your important files back See for yourself Visit www SubRosasoft com for more information FILESALVAGE SUBROSASOFT COM Authentication string and the Client Authentication string to use Password 2 Go to the Sharing Pref pane for Xgrid and select the Password option for Authentication method and enter the password you wish to use 3 Reset the agent via the GUI stop start This creates the file etc xgrid agent controller password 4 Copy the file sudo cp etc xgrid agent controller password etc xgrid controller agent password sudo cp etc xgrid agent controller password etc xgrid controller client password 5 Start and stop both the agent via the GUD and the controller via xgridctl as above The Xgrid Admin app allows GUI management and monitoring of the controller and it s part of the Server Admin Tools Server Admin Tools 10 4 can be downloaded and installed on a Tiger client machine http www apple com downloads macosx apple serveradmintools104 html Put this on your designated controller mine is norburym15 Launch Xgrid Admin app and you will see a sheet asking to enter or choose a controller You should see the name of the computer that you started the controller on using xgridctl norburym15 in my case
64. organizational units for different departments your replication process wouldn t reflect that or might even simply fail With Tiger Server that s all changed as least as far as schema replication support is concerned Unfortunately Apple s administration tools Workgroup Manager Server Admin still operate under the assumption that the directory they read and write to is one large flat space Apple s directory service lookupd daemon is also painfully unaware of changes to the directory and only finds the attributes that the mappings of the LDAPv3 Directory Access plugin allows making it somewhat difficult to administer customized directories or even create those customizations PHPLDAPadmin it turns out is a great way to do so Create An OU Before testing schema replication you ll need to have an Open Directory Master set up and another installation of Tiger Server to use as a replica Keep in mind you ll also need to have two distinct licenses as each Server uses the serial number as part of the ssh authentication necessary to start the replication process Establishing a replica s a cinch just enter the ip address of the OD master in the Open Directory settings in Server Admin enter the root password on the OD master the short name of the directory admin and its password then wait until the process completes Lets say we were sysadmins for a school that wanted to create three OUs faculty staff and students We
65. reason why an asynchronous interface provides a better user experience users may be left wondering if their request was just lost Therefore you should when appropriate let the user know that the request is pending in some way Furthermore it would be possible to setup a timeout timer for each request that would call abortO on the request object if the request took too long Lifetime warranty on cables Supporting non Javascript functionality This framework will generally work for any modern Javascript capable browser However not all users are using Javascript capable browsers and other users may have disabled Javascript Therefore it is advised that your site support a non Javascript version of your interface At the very least alert the user that they will not be able to use all of the functionality of your web application or page To provide a non Javascript interface only when necessary your page should use the lt noscript gt tags paired with any script sections Using the Framework The Javascript framework is logical backend functionality of an Ajax enabled website In order to use Ajax the page must be properly constructed and typically web developers also wan the page to look nice For both of these requirements we will use XHMTL and CSS respectively Example query and response Lets illustrate the Ajax framework with an example Our service could return a name and phone number of a contact from
66. rss WSL Feed for REALbasic http Awww ebuttertly com rb webservices asp Documentation RSS 2 0 Specification http blogs law harvard edu tech rss Books Developing Feeds with RSS and Atom by Ben Hammersley O Reilly http www oreilly com catalog deveoprssatom Beginning RSS and Atom Programming by Danny Ayers and Andrew Watt Wrox http Awww wrox com remtitle cgi isbn 0764579169 MI About The Author Dave Wooldridge is the founder of Electric Butterfly www ebutterfly com the developer of the Web Services Library for REALbasic and the award winning Helplogic He is also co founder of the new eBook publisher SpiderWorks www spiderworks com WWW MACTECH COM Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed 68 NAGIOS ON OS X PART 1 INSTALLING AND SETTING UP ONE OF THE BEST NET MONITORING TOOLS AROUND f you read my website http www bynkii com you may know I have talked about installing Nagios in the past For a while now I ve wanted to write an updated in depth piece on this subject and felt now was time to do so and
67. scenarios across multiple servers networks and objects For the purposes of this article however we will only be using a subset of JMeter s capabilities to perform basic load testing For information on using JMeter to perform detailed performance measures on more complex web applications you may refer to the user guide at http jakarta apache org jmeter usermanual index htm Before we begin it is instructive to go over the major architectural components that constitute JMeter WWW MACTECH COM e Test Plan Defines the test sequence that JMeter will carry out during benchmarking e Thread Group Used to delineate specific testing conditions such as number of concurrent users the Thread Group plays host to all other elements that comprise a test sequence e Config Element Responsible for defining configuration information for the Sampler and Logic Controller elements e Sampler A type of controller that designates both the protocol type and nature of requests within a given test plan e Logic Controller A controller element that determines the sequence logic used by JMeter to initiate protocol requests e Timer Used to manage the latency across queued user requests e Listener Responsible for recording and visualizing of test sequence data Getting Started JMeter requires JDK 1 4 or higher to run properly Type java version in the Terminal application to discover which version of JDK is installed on your machi
68. set maximum value of progress indicator Progress Bar of window Progress Window to theMessageCount set indeterminate of progress indicator Progress Bar of window Progress Window to false repeat with a from 1 to theMessageCount set contents of text field Progress Text of window Progress Window to Processing message a amp of theMessageCount tell application Mail set theMessageContent to content of item a of theSelectedMessages end tell set theArchivePath to theOutputFolder amp Archived Message amp a amp txt as string set theArchiveFile to open for access theArchivePath with write permission Next wrap all of the code within the handler inside of a try statement configured as follows Navicat is the industry leading GUI Client for the most popular open source databases The Cross Platform capability and Ease of Use of Navicat give you the flexibility and convenience to manage and develop your database Navicat allows database developers administrators to be more productive by providing an intuitive graphical user interface to MySQL and PostgreSQL With Navicat you can use a single Industry s best selling tool for both develop ment and database object management on Windows Mac OS X and Linux Managing multiple databases on your local remote server is easier than ever Navicat Migration Tool lets you import MS Access Excel and other most popular file formats to the database Other utilitaria
69. the response time request count min max average error rate and approximate number of request processes in seconds e g Throughput as well as throughput in terms of Kilobytes per second You may add additional listeners such as Graph Results View Results in Table and View Results Tree depending on your requirements RADTECH ang that make ce 9 Gelz For iPod 4G 5G Nano amp Mini Semi transparent Silicone case Economical and colorful Good impact and drop protection Sleevz For iPod 3G 4G 5G Nano amp Mini Optex Super B0 sleeve case for iPod The original control through iPod Sleeve Includes transparent display protection 10 off your order with Promo Code MT66Q9 www m To begin the test plan simply select Run gt Start from within the JMeter menu bar You will be prompted to save the test plan if you haven t already done so During a successful run of your test plan you may click on the Aggregate Report listener element figure 8 or any other listener types you may have added to view your dynamically updated test results Figure 9 for example demonstrates some of the graphing functions of JMeter s Graph Results listener element Aggregate Report Aggregate Papert Wiis AB io a File Filename irmata Lag Birem Bly Pee aay Hei Ls Lu Emr amp Timu Fa ut 1900 a l a a Tae i Dre 1e rur Wi
70. visit www MaxEmail com MacTech example just puts the response text use responseXML for an XML response from a server into our documents responseArea Send a query to the server Now that we have setup the request object structure as well as the state handling function the next step is to create a function that our webpage will be calling for each outgoing request This function could either accept information via an input parameter or retrieve user input by querying the document Once the user input is received we create a GET request to a URL It is important to note that due to security concerns the request can only be made to a server that is hosting the webpage The domain name must be exactly the same as the request URL if there is a preceding www to the domain name As usual however there are some fairly straightforward work arounds for getting external data for your Ajax requests Several options will be discussed This example demonstrates using a REST input parameters passed via the URL but other remote query and command options are also possible Furthermore the open command supports passing a username and password to the server for accessing protected services AjaxFramework js function for filling out and sending a request called by the actual webpage function sendRequest var query Wireless Performance Products for Mac Antennas Whips Plug Plays Base Station Transc
71. 0M 0K 1 vRgeMessage The vRgeMessage file is an Entourage mail message s cache file When you perform a Spotlight search the results always return cache files mentioned previously cache files are merely file based mirrors of Entourage database records with the metadata and content necessary for Spotlight indexing The name of the cache file is the record ID for the corresponding database record When a user opens the cache file from a Spotlight result Entourage reads the filename looks up the record ID within the database and shows the item directly from the database The mdls command line utility allows you to see the metadata Spotlight has indexed for any given file By passing the path to the 1 vRgeMessage cache file from our mdfind result to mdls we can see Spotlight knows the following about the e mail message Users Brianjo Library Caches Metadata Microsoft En tourage 2004 Main Identity Messages OT OB 0M OK 1 vRgeMessage 1 20065035271 00523521 com microsoft entourage folderID com microsoft entourage messageSent 0800 com microsoft entourage recordID com microsoft entourage size kMDItemAttributeChangeDate 0800 1 37783 2006703721 212591929 kMDItemAuthors The Microsoft Mac Team lt WelcomeE microsoft com gt kMDItemContentCreationDate 2006 03 21 00 23 21 kMDItemContentModificationDate 2006 03 21 21 55 24 kMDItemContentType com microsoft entourage virtual message
72. 192 168 0 85 Now you re ready to promote your server to an Open Directory master Go ahead and change the role in Server Admin Open Directory The following configuration window will pop up with a few fields to fill out 2 Get MacTech delivered to your door at a price FAR BELOW the newstand price And it s RISK FREE store mactech com riskfree WWW MACTECH COM From our brain to your brain SpiderWorks Books Timely quality content from respected authors at a great price Available in softcover print editions and eBooks 4 aS TS T E HE HS ss T i i s were is M AppieS gaa Macin nt Download FREE Previews at SpiderWorks com Create a new Open Directory master domain Creating a new Open Directory master domain requires you to create new administrator account for that domain This account needs ta haee a unique name short nami and user ID Mame Directory Administrator Short Name idapmin User ID 1000 Password TETTETETT Kerberos Realm MOSTSVR MOST COM Search Base dcemostsvr dc local Search base i optional Figure 4 Create New Open Directory master Look at the bottom of Figure 4 Notice how important a correctly configured FQDN Fully Qualified Domain Name is to both the Kerberos Process as well as the search base for the LDAP directory DNS and LDAP are inseparable you cannot run LDAP right unles
73. 2 Lon 1 A e CET TE Hs Ho a 2 ei jasi CET il tte ITT Figure 8 Aggregate Report listener view Graph Results Pe Witte All Cle Um a Flip Fiber ames Ersatt Leg men Only Configures Crapha Opie Dana ww ere F birian Deis ww ims tampir 3 Thipughpui LEAL 253227597174045 mmua Figure 9 Graph Results listener view Conclusion In this article we employed both ab and JMeter to stress test a locally hosted site via simple load scenarios The amount of time a server takes to respond to clients requests across different load levels is one of the most important metrics for evaluating web performance Through the manipulation of load test variables such as the number of concurrent requests and with reference to tool specific data visualization processes we are better able to ascertain the extent to which these variables impact a servers maximum sustainable load Such information is critical for proper website management planning and eventual performance tuning MI About The Authors Jin Lin and Emmanuel Stein are partners in the consulting firm MacVerse Corp which offers implementation system administration and development services geared towards the enterprise market You may reach them af info macverse com WWW MACTECH COM Did you find this article helpful Imagine a m e MacTech is already read every month
74. A required source versions for maximum flexibility Even if you only checking for sys wait h that is PDSIX 1 compatible yes use Fink or Darwin Ports for one piece of OSS software it dedu isis MERI is worth the download install Both detect checking for sys stat h yes dependencies for your desired package and automatically la i de id on toes vns download and install the support files for you This checking for memory h Bs vet dependency checking feature alone has saved me countless checking for strings h yes T hours hunting down library files and widget kits needed to Danir run a simple OSS application Finally the distribution options for these package managers is phenomenal with Figure 1 Darwin Ports PortBase Graphical dmg all in one installers familiar to any OS X user and the installer and Updater ability to obtain the source directly via cvs Choose one or 50 SAMPLER 2006 WWW MACTECH COM fe Our headsets brought the world closer to the moon Now they can keep you close to your music PLANTRONICS Bluetooth both but Fink and Darwin Ports are must have additions to any Mac user s OSS toolkit e You can obtain Fink and the associated GUI Fink Commander at http Fink sourceforge net download index php phpLang en e Darwin Ports may be found at http darwinports opendarwin org and the corresponding GUI tools including Port Authority at http www wordtech
75. AMPLER 2006 service far too advanced for it NetInfo in OS X Server 1 2 along with policies for access control to local and network resources that worked well in a school environment for several reasons one of which was the cartoonish appearance of the windows and icons Macintosh Manager has now gone the way of other soon to be extinct technologies with the release of Tiger Server its not included unless you re upgrading from a Panther Server installation Starting with Panther Server Apple moved into the LDAP age of open standards and Open Source software with Open Directory version 2 and its successor in Tiger Server Open Directory version 3 LDAP which is an acronym for WWW 142 hours of meetings _ p 108 pizzas 14 cancelled weekend trips al nighters 1 call protects it all The new HASP family of products is the b Strongest anti piracy solution cepas b Best overall solution as rated by next generation in protection ensuring the Our powerful 128 bit AES an independent testing lab highest level of security for your software encryption provides a It provides an easy set of tools to automati strong locking mechanism in KeyLabs tests HASP HL outperformed the competition in security ease of use jS that ensures you get flexibility of tools and functionality cally protect your software and implement paid for every copy of and co
76. Computing http boinc berkeley edu in either the GUI or command line flavor The client software enables computers with different operating systems to talk to the project server Select the Projects tab and dick the Attach to new project button You ll be prompted for the project URL and Account Key that you received when you created your BOINC account Based on your chosen preferences processor disk memory and network usage etc the project will start and you can keep track of the progress through the tabs at the top of the BOINC app window Instructions for the command line version along with command line options are available here http boinc berkeley edu download php Or a Cluster In this tutorial well be looking at Xgrid Stanford a project run by Charles Parnot a postdoctoral fellow in the Molecular and Cellular Physiology Department at Stanford University His research involves 3D modeling of G protein coupled receptors to study heart disease and heart rate control The Stanford project began in March 2004 with 8 computers running at about 4 GHz By September 2005 they had nearly 500 registered agents with an average of 200 machines online at any given time the cluster running over 200 GHz XgridGStanfords home page http cmgm stanford edu cparnot xgrid stantford index html describes the project and details FAQs Goodies and Latest News about the project Note that the Stanford group calls their proje
77. Contact you can schedule meetings for multiple users view multiple simultaneous calendars and reserve rooms and resources You can share contact information about your customers prospects and vendors And using our free server software you can set it up in minutes and share with users in the office or from anywhere with on internet connection SOFTWARE 866 527 0556 www nowsothware com Copyright C 008 by Now Solterra Inc Ali ghi mere Pere ood How Tornai mm neque iade of Iw Solare Inc Moc and the Mar loge ore modemda of Apple Comput In mei is the LE S ned othe count All omar nadamonris acknowledged If the name field was filled we ll already have printed the name and password before we get to this point If the name field was empty nothing will have been generated yet Either way we are now going to put up the form The form tag takes an action attribute and a method We already know about the method The action is the file you want served up with the results of your action We could have created a second page that displayed the results of our form But this self referential approach is pretty common in PHP We used the variable PHP SELF to have the form pass the results on to the same file sort of like a function calling itself Want to learn more about PHP SELF It s not a function so we ll need to search the whole site instead of just the function list When you search all of php net you ll ge
78. I 175 45 76 Viet macu ter Internal Hard Drives Bulk up your computer by giving it higher For Macs amp PowerMacs capacity to perform for your needs p Hard Drive Controllers For NEW 2006 MacBook Pro Fo owerMac G5 and SUERTE petri Jd iMac G5 Models Hard Disk Controller Cards 15 4 amp 17 iMac Intel amp Mac 99 mini Intel models i pou in pen d Acurd 2 Channel PCI SATA 59 99 PCs100 DORZ 667MHz 200 Pin SEM 512MB Modules only 49 99 TESI Matched 589 99 Serial ATA 4 Channel PCI M 79 95 008 Modules onby 112 99 amp SATA Mac PCI Controllers 2 0GB Match Set only 219 99 Tempo Trio 133 in irt one PC 149 00 For all PowerBook G4 Models E iBook 23 6545 odels G 4 And iMac 64 from 119 95 256MB Modules from 526 99 356MB from 24 99 SATA Internal Mounting System 512MB Modules from 39 99 512MB from 45 59 Trey ingaler fam 5 T n Sonnet 5 Me add 3 SATA HUS t 1GB 1024MB Modules from 109 99 illom 4 PowerMac G5 95 00 Lifetime Advance Replacement Warranty Software Apple O5 X Tiger 599 00 L full retail box version OS X 10 2 10 3 from 17 99 iPod Replacement Batteries n Newertechnology iPod Replacement Battery Kits Easy to Install Tools Included Online installation Videos Get up to 78 more capacity amp 20 Hours Runtime NuPower
79. I don t have to Conclusion I want to stop the article here because the next part is going to go into the configuration files which covers a ot of detail and can be pretty dry Unfortunately there s no nice or easy way to jump in to that I bzgbly encourage anyone who wants to go ahead on their own to do so but with caution the config files can get a little odd at times also encourage any readers who are not going to plow ahead to read the Nagios documentation thoroughly Nagios has its own language and the more familiar you are with it the happier you ll be using it As always thanks for reading Mac Universal CT seh New Release New Universal Binary New Faster Training New Improved Voice Commands Power of Speech MacSpeech s exclusive TalkAnywhere technology allows you to use your voice to enter text into virtually any application Faster Training With the improved training and set up process in iListen 1 7 you can now be dictating in as little as 5 minutes Always Learning CorrectAnywhere another MacSpeech exclusive lets you use Correction without leaving the application you are using This allows iListen to learn new words and improve your voice pw while Loads eee program Bibliography and References DarwinPorts http darwinports org CPAN the Comprehensive Perl Archive Network http www cpan org Nagios http www nagios org Nagios Exchange
80. Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed Advertiser Product_Index AG Hoc attention 5 Absoft Corporation sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssseessssssssees 95 Aladdin Knowledge Systems Jl 8 Allume Systems IMC essissossssiciesssivdoossssvacsoseesincesaisunistapsivdapsssiesssrsstivosbssustansditvass 47 Allume Systems Inc ssssccssssssssssssesssssssscssssssssssssssssessssssssssssssseesssssssesssssssssessssees 73 ITO 127 Delfer BAM essent tatit erosion tiat SEP eater ihrer Sarah 128 B nig und Kallenbach oHG ees 100 aod oam 88 Brian LOOMIS m T 104 CRYPTOCard 58 Daystar Technology 6 NR EN 60 FileWave USA RSS eerte oett teer 57 Garrison Computer 124 Idea Storage Networks LLC ssssssssssssessessssssssssssssssssssssesssssssessssssssessssssesssssssseess 33 IGG Inc 2 MODEM OW COV 105 UOI IRE TOTO 63 IHE enses ra tatu
81. Not Flat One of the highly touted features of Open Directory 3 again from OpenLDAP is schema replication An LDAP schema consists of a collection of attributes and organizational structures within a directory Like Novell s eDirectory and Microsoft s Active Directory Open Directory has the capability to scale to encompass the scope of a company educational institution or governmental department that might be spread out over a large geographical area with multiple branch offices However the default schema that shipped with Panther Server and now with Tiger Sever assumes a flat directory with a single organizational unit as if every single employee computer and department existed at corporate headquarters It s always been possible to create organizational units within Open Directory even with Panther Server except for one small problem Even with a flat directory structure large organizations need directory replicas to enable authentication at remote locations or as backups of the directory and slurpd the replication process of WWW MACTECH COM NetTeam SERVER Consultant reseller and partner enquiries welcome Please use partner netteamconsulting com Connect your people contacts relationships projects tasks documents blogs web content your knowledge itself and magic follows Most businesses already have this data but in different systems used by different people in different de
82. Open the Sharing Pref pane highlight Xgrid from the list under the Services tab and click the Configure button Select these options Use first available controller Always none for authentication LIEGE OEIL A H id Clm m php TE ey Ame rey Figure 4 Configure the Agent Click the OK button You ll get a security warning ignore it for now 84 SAMPLER 2006 Click the Start button to turn on Xgrid Sharing Configure the Controller Remember I mentioned previously that the GUI controller has been moved to Tiger server We have two options for restoring this functionality in Tiger client we can download XgridLite http edbaskerville com software xgridlite a 15 shareware add on to Tiger Client s System Preferences or we can use the Terminal to control starting and stopping the controller XgridLite has some nice basic features it can turn the controller on and off and you can set passwords for client and agent authentication Start Eick fit bo Sa grid controler Whee acies the controle can accipi Set Chent Password Set Agent Password mm mali ee m m od eee m eee he se 5 Neser Chee Aser to stop Tha centrober and remove Zatabase Ser chants mi Ba macpeescted Lnd ad Da AL Th career be ione Your trial pened enda in 15 days To keep utimg Xgridiim
83. RFACE IS SIMPLE AND STRAIGHTFORWARD Introduction Modern websites and web applications appear drastically different from sites on the web 5 and 10 years ago Tools like GoogleMail BaseCamp and TiddlyWiki have revolutionized the general concept of what a webpage can do and how users interact with it The days of clicking on a simple hyperlink to be taken to a new page or sitting and waiting for a form submission are rapidly dwindling The technology driving these sites is not really new but their application and use has only recently become widespread and supported by a majority of web browsers Furthermore many web developers feel daunted by the rapid pace of the changing techniques and don t have a clear understanding of how the technologies are implemented and used One of the most revolutionizing of these technologies has been dubbed AJAX or Ajax depending upon whom you ask Ajax is responsible for dynamic page content marking database entries and in line text editing without the need for page reloads or large complex plug ins like Flash or Java The goal of this article is to teach you the basics of Ajax and demonstrate that it is not as difficult a concept as it may first appear In reality Ajax is simple and easy for any web developer to add to their new or already existing site What is Ajax AJAX is an acronym for Asynchronous Javascript and XML The most important concept of AJAX is the asynchronous part Asynch
84. RdWrPerm does not guarantee exclusive file access on Mac OS X On Mac OS X subsequent Open calls to open a file with write permission may succeed without error Similarly the PBLockRange routines may not actually guarantee byte ranges that cannot be modified by other processes Because these routines may return without error you should check out the availability of exclusive file access 15 SAMPLER 2006 By Paul T Ammann see Checking Availability of Exclusive File Access before making any assumptions about the underlying file access If the supports advisory locks feature is not available your application will not know if the file is already in use by another application AppleShare servers and Personal File Sharing on Mac OS X do enforce exclusive file access and range locking for volumes accessed over the network However this functionality is only available when accessing files over a networked file sharing connection and is not available to applications running on the server itself Guidelines for Working with Non exclusivity You should realize that many applications relied on the behavior of the classic Mac OS File Manager to prevent multiple applications from writing to the same file or to control write access through byte range locking Since that behavior is not implemented in all versions of Mac OS X some common workarounds that you may wish to use in your code are described below BSD was designed w
85. Resolution G4 15 17 PowerBook Docking Station iBookEndz Docking Station Eliminates cable confusion and damage to connectors n New release levers for easier docking and undocking Adds only 3 to rear when docked Also available for G3 PowerBooks 12 G4 PowerBook New Higher Resolution Docking Station Aluminum look to match your PowerBook Eliminates cable confusion and damage to connectors All connectors are routed to the rear of the Dock The Dock converts RGB to standard VGA connector Streamlined design complements your PowerBook Use internal or external speakers Easy to use ejection system Check our Web Site for latest product announcements D Book ndz Manufactured by OlympicControls Corp 1250 Crispin Drive Elgin Illinois 60123 Phone 888 622 1199 Fax 847 742 5686 www hookendzdocks com To add other users you run sudo htpasswd usr local nagios etc htpasswd users lt username gt You do this once for each user you want to add You only need the c swtich when you are creating the file and first entry Then edit the use authentication line in ust local nagios etc cgi cfg Cor cgi cfg sample to read use authentication l If you read that file you ll also note this is where you set which nagios user can do what The docs that are a part of Nagios explain this thoroughly and are available from the Documentation link on your Nagios home page so
86. SS feed and the specific functionality of each XML tag in the RSS specification it s important to understand the basic syntax of XML Extensible Markup Language Like HTML code XML consists of tags such as lt title gt My RSS Feed lt title gt Unlike HTML which helps define styles and formatting for text XML tags strictly define the meaning and context of information keeping all of the text neatly organized with tag names You don t have to be a master of XML in order to write or modify your own RSS feeds but there are a few basic rules that you should keep in mind e Every valid RSS feed needs to include lt xml version 1 0 encoding UTF 8 as the very first tag at the top of the document UTF 8 is what most feeds use as the text encoding and most RSS WWW He s busy doing a software update on 1 037 computers Hard to tell though isn t it Thats because he s automating it using FileWave software Totally cross platform totally automated So are you an IT administrator Tired of manually installing US updates security updates and patches Or maybe you just aren t keeping your software up to date Automate it with FileWave and save time tor the important things Hundreds of satisfied customers agree FileWave just works T 1 TLE AVI l l www filewave com CECAT AIE with Me success f pu wouldn t oeiee me if
87. The way around this is provide a locally served wrapper to the remote service We can parse and pass on each of the incoming parameters Also many hosting services don t allow a URL to be opened via the fopenO command so this example uses curl to make a request to a server The subsequent response is read by the local server and then returned to the calling Ajax function remote_service php lt php Sremote_params foreach S GET as oe 2Svalie SSkey Svalue if value remote parame amp S key Svalue Sremote_url http remotehost com remoteservice php function get content Surl Sch curl_init eurl setopt Sch OURLOPT URL Gul WWW curl setopt Sch CURLOPT HEADER 0 ob start eurl exeo Sch curl close Sch Sstring ob get contents ob end 1 return Sstring j Scontent get content Sremote url remote params echo content 2 This example makes no checks on the incoming request The query and parameters are passed directly onto the remote service In a real application it would be responsible to do some basic parameter checking before passing on the request to someone else s hosting service That said it is still a means by which to provide asynchronous services in your own website You should also be aware that making these remote calls may have longer response times While this situation is an excellent
88. ac epe ence em j dc nagitest dcsmacworkshops dcecom i Cy cn accesscontrols 1 Lj ch autoserversetup y cnecerificateauthorities Cy cn computer_lists Cy cn computers Cg on config Cy enefilemakerservers s Vgl enegroups 2 Cy Cy en machines Cg cn mounts Cy cn neighborhoods Cg cn people Cg cn presets_computer_lists Cy cn presets groups Cycn presets users Cy ensprinters ou teston Create new entry here Figure 9 Top Level of an OD Master WWW MACTECH COM WORKING THROUGH SURPRISES REQUIRES THINKING DIFFERENTLY WE CAN HELP DON T LET YOUR GOOSE GET COOKED LOOK TO US FOR THE STRAIGHT STORY ON HOW TO MAKE THE MOST OF YOUR WINDOWS NETWORK EXCHANGE amp OUTLOOK EMAIL ISSUES AND SECURITY CONCERNS WITHOUT ANY MICROSOFT SPIN WINDOWSITPRO COM DUCK DUCK DUCK gt GOOSE WINDOWS IT PRO THE LARGEST INDEPENDENT WINDOWS COMMUNITY IN THE WORLD THE IT COMMUNITY What immediately leaps out is the first addition to Open Directory in Tiger Server the accesscontrols Other additions include certificateauthorities and filemakerservers We should know by know that the ACLs for HFS on OS X Server are a buge leap forward Open Directory s slapd process loads several schema files which live at etc openldap schema core schema etc openldap schema cosine schema etc openldap schema
89. ail com ee 105 Microsoft Office 9 MIGKasalT s sottotitoli 37 Mobile Juice e JCHS Media Pte Ltd Mobile 42 Navicat PremiumSoft CyberTech Ltd 99 NetTeam Server e NetTeam Consulling e 4 Now Up to Date Now Software 10 Open Source Directory 6 Opera Opera Software 24 Other World Computing Other World Computing 27 53 114 115 Peachpit Press Peachpit Press 69 Phlink Ovolab Cr 12 PhonePipe Tellurium Communications Inc e 97 Plantronics 5 PowerBook Accessories 1 106 Radlech RadTech 1 ENT T 120 RAM BetterRAM com 128 Razer Razer USA oos Up dea TUR ED RERUM 4 Screen Protection Protective Solutions 109 SDIT Drive Quantum Corporation
90. and rebuild the contents of the cache On a moderately sized database of 200 MB the creation of the cache file takes only a few minutes and happens in the background The Rebuild button simply deletes all existing cache files crawls the Entourage database and generates a set of new cache files A user would only need to rebuild if problems arise as Entourage will continue to create update and delete cache files with each action performed on the Entourage database Once the cache files are created Entourage s role in the indexing process is complete Spotlight chooses when to index the cache files and how the results are displayed in the Spotlight Search Window Smart Folders and the Finders Find functionality As indexing progresses the index in Spotlight is updated and queries containing the information the user is searching for begins to show up in the Search window If you search for a set of words and Spotlight indexes an Entourage mail message with a matching phrase the message will suddenly appear within the Spotlight Search Results Window Figure 2 shows the results of a typical Spotlight search with Spotlight enabled in Entourage The returned Entourage items can include mail appointment contact task and notes data 123 SawPLER 2006 T Mum eue Pete pmi Rueda eoo here pur rs oos Te Bea 7T Wert me repr Co MANT me mot auper 33 morg
91. arrant conversion to AppleScript Studio at this time You may just want a quick and easy way to provide feedback to the user In these types of situations the easiest method is to make use of the display dialog command which can be found in the User Interaction suite of the Standard Additions scripting addition that is installed with Mac OS X Using the display dialog command you can configure a script to display text messages in a no frills dialog window at various times during script execution The following example code demonstrates how a display dialog command can be used to provide such feedback set theOutputFolder to choose folder with prompt Select an output folder as string tell application Mail set theSelectedMessages to selection set theMessageCount to count theSelectedMessages repeat with a from 1 to theMessageCount display dialog Processing message amp a amp of amp theMessageCount giving up after 1 with icon note set theMessageContent to content of item a of theSelectedMessages set theArchivePath to theOutputFolder amp Archived Message amp a amp txt as string set theArchiveFile to open for access theArchivePath with write permission set eof of theArchiveFile to 0 write theMessageContent to theArchiveFile close access theArchiveFile end repeat end tell WWW In the previous code the first line of the script will prompt the user to select an output f
92. as writable Applications built on these frameworks automatically get this functionality and do not need to be modified When the conditions are met to support exclusive file access PBLockRange will also call down through to the BSD advisory locks Since PBLockRange will be based on BSD advisory locks at this point range locks can be applied to local files as well as those on file servers Since not all versions of Carbon on Mac OS X support exclusive file access nor do all file systems support BSD advisory locks you should check a couple of things before making assumptions about the underlying file access behavior You should only assume these features are available if the gestalt bit gestaltFSSupportsExclusiveLocks as well as the GetVolParms bit bSupportsExclusiveLocks are both set For instance the Carbon Framework File Manager routines support advisory locks by default when SupportsExclusiveFileAccess returns true ifndef gestaltFSSupportsExclusiveLocks Fdefine gestaltFSSupportsExclusiveLocks 15 define bSupportsExclusiveLocks 18 llendif Boolean SupportsExclusiveFileAccess short vRefNum OSErr err GetVolParmsInfoBuffer volParmsBuffer HParamBlockRec long response Boolean exclusiveAccess false err Gestalt gestaltSystemVersion amp response if err noErr amp amp response lt 0x01000 err Gestalt gestaltMacOSCompatibilityBoxAttr amp response if err noErr respo
93. can use PHPLDAPadmin to do so templates for common LDAP objects like OUs are included After logging into PHPLDAPadmin we can then go ahead and create our OUs by clicking on the gold star at the bottom of the directory tree Figure 10 Create New LDAP Entry What an array of spiffy LDAP objects to choose from Some obviously are going to be more useful to us than others but I already am thinking of uses for the Samba 3 User and Samba 3 Group Mapping objects for mixed networks Also intriguing is the custom template where it would be possible to store arbitrary attributes and retrieve them at will almost like metadata But we re after OUs so create three of them faculty staff and students Problems with Fingerprints dust and grime Several Sizes Available me x mmal www mymobilejuice com Protector Lasso Professional Server 8 5 Universal Binary Includes AJAX Tags Built in LDAP Connect to Improved DNS Email for Intel Macs and Functions Integration Any Database iCal Support Native support for Supports Web 2 0 Integrate Lasso Including Oracle Extending Lassa s support the best speed techniques for modern with office data PostgreSQL MySQL for Internet protocols and and compatibility dynamic Web design and login systems FileMaker ODBC and JDBC open standards 4 FREE well commented Lasso solutions to get you started Blog Teaches beginners and advanced user
94. ccounts that had been moved into OUs or better yet a way to create accounts in the proper OUs in the first place without having to use PHPLDAPadmin or some other script to move them around We d also have to carefully consider how to adjust the DACs so that the admins like our facultymin user only could write to the objects in their own OU Other important considerations would be how this would affect workgroup management and cross platform directory service integrations with the Active Directory or LDAPv3 plug in and access to directory information by other service like Apache and FTP With so many open questions I can only say stay tuned for part deux In Next Month s Source Hound Part deux of knock knock knocking on LDAP s door Hopefully we won t have to break it down although we re going to breakdown how many of the above Open Directory questions we can realistically answer and see just practical it would be to administer an Open Directory deployment with Organizational Units OUs and Directory Access Controls DACs About The Author Dean Shavit is an ACSA Apple Certified System Administrator who loves to use a Mac but hates paying for software So each month he s on the hunt for the best Open Source and freeware solutions for OS X Besides surfing for hours following the scent of great source code he s a partner at MOST Training amp Consulting in Chicago where he trains system administrators in OS
95. ce marks of Xplain Corporation Sprocket is a registered trademark of eSprocket Corporation Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders TABLE OF CONTENTS ARTICLES amp DEPARTMENTS Distributed Computing Build Your Own Supercomputer From Your Macs Laying Around How to Employ Tiger s Xgrid to Build Clusters and to Contribute to Grid Cluster Projects Noneony idser m ee ee 80 AppleScript Essentials Providing Progress Feedback During Script Execution lt 5 4 92 Enhancing Applications Websites Adding Ajax to a Website Creating a Dynamic User friendly Website Interface is Simple and Straightforward Dy ACen mais ESL ms lul lee 102 Focus Review CRYPTOCard s CRYPTO Server 6 3 for OS X Eliminate Insecure Static Passwords by the MacTeehsReview Sia ENDE DIS bier a er Web Performance Testing Web Benchmarking 101 A Guide to Stress Testing Your Website with ApacheBench and JMeter by Jin Lin ineuibgini Ind EU a 1 00 116 MICROSOFT MAC IN THE ENTERPRISE Entourage 2004 Spotlight Support An IT Perspective How Microsoft Entourage 2004 Now Takes Advantage of Spotlight baba enu Me o ous Tr roro 122 WWW MACTECH COM 6 PHP MySQL AND FORMS n our last PHP MySQL exploration we used the MySQL m
96. ck If a lock exists that would prevent ours from being created the information on that existing lock overwrites the information pointed to by flockptr If no lock exists that would prevent ours from being created the structure pointed to by flockptr is left unchanged except for the type member which is set to UNLCK e F SETLK Set the lock described by flockptr If we are unable to obtain a lock because of previous locks already granted for the region then fcntl returns 1 and errno is set to either EACCES or EAGAIN e F SETLKW This command is a blocking version of F SETLK the W in the command means wait If the requested read lock or write lock cannot be granted because another process currently has some part of the requested region locked the calling process is put to sleep This sleep is interrupted if a signal is caught Be aware that testing for a lock with F GETLK and then trying to obtain that lock with F SETLK or F SETLKW is not an atomic operation We have no guarantee that between the two fentrl calls some other process won t come in and obtain the same lock To save ourselves the trouble of allocating a flock structure and filling in all the elements each time Stevens defines the function lock reg and a number of macros that call it Notice that the macros shorten the number of parameters by two and save us from having to remember the F constants mentioned above ldefine read lock fd offset whence
97. ct a cluster because they are using Xgrid exclusively and all the participating agents are Mac OS X computers To join Xegrid Stanford we ll start by introducing ourselves to Xgrid note the team has provided separate instructions for Panther and Tiger Set up Xgrid on Tiger Open System Preferences Open the Sharing Pref Pane Make sure your computer has a unique name Highlight Xgrid from the list under the Services tab and click the Configure button Do not check the Xgrid checkbox 5 Under Controller select Use a specific controller and type in HX Oo DO b161 g4 stanford edu 6 Under Agent accepts tasks choose Always 7 Under Authentication method select None in the pop down list You may get a security warning dialog box that you may ignore Press OK on the Xgrid configuration sheet WWW System Preferences DJa View Window elo Sharm Oo lee Usi at dai aD BT f rom TE iua p nperi cnrirzeie bi amp l g rinon mrep tani Dey shes rhy afia T math a Y Lp O Anne dcn factories heros Andie hom Sharing pre amp 1 nml Fra BE Hsc E the pee tarth res Figure 1 Configuring Xgrid Pref Pane 8 You will now be back at the Sharing Pref pane Press the Start button 9 Once the service is started the Start but
98. ct an output folder as string Get the Selected Messages Next add the following code which will retrieve a list of any selected email messages in Mail and will then count the detected messages tell application Mail set theSelectedMessages to selection end tell 98 SAMPLER 2006 set theMessageCount to count theSelectedMessages Show the Progress Window You may recall that we configured our progress window to not be visible on launch The following code will now make this window visible to the user set visible of window Progress Window to true Prepare the Progress Bar We are now ready to begin preparing the progress bar within our window First we will set the maximum value property of the progress bar to the number of detected email messages set maximum value of progress indicator Progress Bar of window Progress Window to theMessageCount Next in order to ensure that our progress bar will display incremental progress we will set the indeterminate property of the progress bar to a value of false A progress bar with an indeterminate property value of true will appear as a blue and white striped bar as can be seen in figure 6 and this is not desirable for providing incremental progress set indeterminate of progress indicator Progress Bar of window Progress Window to false Looping Through the Selected Messages We will now add code to loop through the selected email mes
99. d untarred the source distribution will likely contain several files including c and h files which represent the source code and header files with README INSTALL and sometimes PORT files Although most source code is written in a version of the C programming language hence the c files other distributions may be written in perl python and a host of other languages As such you may encounter distributions without c and h files However Perl and Python do not require compilation as they are interpreter based scripting languages and are thereby much easier to deploy For easy compilation developers often supply a configure script that is generated with the autoconf OSS utility Alternatively you may find that your OSS distribution uses the xmkmf script to invoke the imake program which in turn will construct the make files needed for compilation When confronted with OSS based on imake be sure to read the INSTALL file for details However in most cases the following command can be employed to generate necessary files for compilation S xmkmf a The compilation may then be completed by issuing the following terminal command make amp amp make test amp amp make install There will also be cases in which no configure script is supplied with the source You may nevertheless generate one by executing the autoconf sh script Please note that this applies only to source which is based upon autoconf Most commonl
100. dard install you can use all the OSS bundled with the Mac OS and many outside projects that are specifically packaged for the Mac These include the OSS listed on Apple s OS X downloads page in the UNIX amp Open Source section However if you want to use any OSS that requires god forbid compilation or software which relies on the X11 windowing system you have to go beyond the vanilla install The following is a list of the pre requisites required for many if not most of the OSS mentioned in this primer Installing this recommended software will enable you to get the most out of what is available in the open source community and ensure that you do not run into dependency issues 1 If you havent done so already install Apple s X11 implementation This is a custom option for the standard Mac install and can be found among the packages located on the install DVD for Tiger under the WWW Someone finally did it Website tracking the Mac way Neil Ticktin MacTech Magazine Editor in Chiet and VisiStat com Customer Visistat Where Clicks Count System gt Library gt Packages directory for those of you who have already installed OS X and just need to add that package notes for your desktop Prog ites pee fel interface be Apple s Cacia dorum 2 The Developer Tools CD contains a rich array of Apple Cocoa pager velar ton modified OSS needed for co
101. dates on an event we update our database and the contents of each item s cache file When Spotlight indexes Entourage it is actually indexing the contents of each cache file rather than the Entourage database This approach allows Spotlights indexing process to work it s magic on file change notifications while not requiring a large overhaul of Entourage s data access architecture As an Entourage users database potentially holds years of e mail messages the creation of cache files chances consuming large amounts of disk space for essentially redundant data When we were considering this design we found that through optimizations such as WWW writing only plain text content rather than HTML and ignoring e mail attachments we were able to generate a cache roughly 20 of the original Entourage database s size We also decided that the feature would be optional allowing any user to simply disable the creation of the cache within their Entourage preferences LITT n uum off fu Bret insieme itin ma Tesi die boum C Reime BS S o 9399 wr TT is m i c Bari nbi aci Lr Jag ee Lia mp PPP ers 1 rr Figure 1 Spotlight is enabled by default for the first identity opened after update 11 2 5 is installed The Spotlight preference pane in Entourage allows the user to both toggle the feature
102. design of a webpage and allow the Ajax functionality to work on the data and not the view The reason the technology is referred to as either AJAX or Ajax is because of the blurring between the concept and the implementation Ajax non acronym has become the terminology associated with the ability to dynamically modify a webpage or backend content without requiring a page reload while AJAX acronym is the specific implementation of Ajax employing Javascript and XML The term Ajax was coined by Jesse Garnett of AdaptivePath see resources as a better name than the previously used Asynchronous JavaScript CSS DOM XMLHttpRequest The technologies were all originally combined by Microsoft for developing their Outlook Personal Information Manager PIM web application interface WWW Why use Ajax While the web has inarguably drastically changed the way a computer user works to date they haven t been able to fully replace or even work entirely in tandem with desktop applications To clarify a desktop application is software that must be installed on a user s computer and is run in a self contained window context By contrast a web application operates primarily within a users browser and is not required to be installed on a machine This provides users access to the application and associated data from any computer using a suitable browser However with the advent and widespread use of technologie
103. e regimer now oy Sprite in shareware Tou c n try it tor Irem pot to continue pit fh putang Sage and chek Eres License Key t Unter License Key sensate mith the cesar bey you received 1 0 id Chick the lock ra prevent further changes Figure 5 XgridLite But since this is MacTech after all let s do it from the Terminal using the xgridctl daemon Xgridctl syntax comes in this flavor xgridctl status target on off start stop restart where the target can be either c which indicates the controller or a to indicate the agent On off refers to launching the daemon at startup and start stop restart explicitly controls the daemon Edit the file Library Preferences com apple xgrid controller plist by changing the Agent Authentication string and the ClientAuthentication string from Password to None Dont forget to use sudo sudo usr sbin xgridctl c on modifies the launchd configuration to run the controller daemon at startup and this command will start the controller sudo usr sbin xgridetl e start To use password authentication you ll have to do a few more tweaks 1 Edit the file Library Preferences com apple xgrid controller plist by changing the Agent WWW MACTECH COM Poof Three months of work gone because I hit the wrong key Just because it s gone doesn t mean it s gone for good Get the hardest working data recovery software for Mac OS X
104. e PHPLDAPadmin as well although the long term consequences of using a third party tool to manage an Open Directory master aren t widely known OS X Server admins are familiar with the dialog that appears when creating a new administrator account for a Directory Service domain asking if the admin has right to modify users groups and computers lists along with associated managed preferences Now with DACs there s a tool available to limit access for admins on an attribute by attribute basis though no GUI exists for it in yet in Workgroup Manager Personally feel more comfortable using a tool with a hierarchical view rather than the flat list of attributes presented by Workgroup manager but I m a visual person Many of us who ve worked with Panther Server remember the dialog that appears when creating a new admin account asking if the new admin has rights to edit user accounts and preferences as well as the same for groups and computer lists but DACs allow for even finer tuning For example tinkering with DAC 1000 may affect the ability of admins to access the LDAP process itself It also appears that the DACs are applied in ascending order from the lowest number to the highest number suggesting that it might be a good idea to carefully consider how any DACs you d add to the list might interact with others or if it s even a good idea to modify the default list at all and if it is modified how and where to modify The World is
105. e patient Tequests 436386 bytes CTS bytes 38 78 i wc men J 28 ms meon 0 22 ws bigi dil concurrent nequesti 1390 20 kbytss sec recwived min medio La 4 gt 18 2 1 11 3 E 15 1 1 1 the requests served within a certain tise en Figure 1 Output of ab n 1000 c 10 http localhost estein Be aware that when you run the ab command against a domain or IP address the benchmark defaults to the site s home page in this case index html To specify a particular page simply point to its full path e g http localhost estein MyDynamicContent php This will allow you to test the performance of specific pages hosted by your site in terms of the amount of stress they each place on the server This is particularly important when dealing with sites that have both static and dynamic content When testing dynamic pages keep in mind that ab reports a failed request when it encounters content that changes over time e g dynamic data As such when running ab against dynamic portions of your site you can safely ignore the failed requests messages For our next example we will be measuring the number of requests that can be completed within 60 seconds t 60 with 10 concurrent connections c 10 Enter the following command in the Terminal to execute this benchmark ab t 60 c 10 http localhost username output of this 117 SampLer 2006 command seen in Figure 2
106. e puts up a pair of text fields with appropriate labels One field is a standard text field the second a non echoing text field We ll use the former to 7 SAMPLER 2006 enter your name and the latter to enter a password We ll end the form with a submit button When the submit button is pressed the same page will be reloaded The technique of taking two different actions on the same page of PHP code is a common PHP theme While this is not a particularly useful example it demonstrates this concept nicely Using BBEdit or your favorite plain text editor create a new plain text file and save it as 1 then type the following source code into the file html lt head gt lt title gt Sample PHP Form lt title gt lt head gt lt body gt lt php if lempty POST name echo Your name is POST name lt br D echo Your password ie 1 POST lt br D7 25 lt form lt SELF gt method POST Name lt input type text name name gt lt br gt Password lt input type password name pwd gt lt br gt lt input type submit gt lt form gt lt body gt lt html gt Save the file and copy it into the Sites directory in your home directory For example I placed my copy of this code into Users davemark Sites Once this is done fire up your favorite browser and enter this URL h
107. e specified code to work or if you prefer to review the actual project files you may wish to download the example code I have made the sample project discussed in this article available for download from my web site at the following URL http www automatedworktlows com files demos MacTECH 01 06 Example zi Until next time keep scripting About The Author Ben Waldie is the author of the best selling books AppleScripting the Finder and the Mac OS X Technology Guide to Automator available from http www spiderworks com Ben is also president of Automated Workflows LLC a company specializing in AppleScript and workflow automation consulting For years Ben has developed professional AppleScript based solutions for businesses including Adobe Apple NASA PC World and TV Guide For more information about Ben please visit http www automatedworkflows com or email Ben at applescriptguru mac com WWW MACTECH COM Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed ADDING AJAX TO A WEBSITE CREATING A DYNAMIC USER FRIENDLY WEBSITE INTE
108. e text input box name is the form name of the text input box link is the URL of your server side script such as PHP or Perl that should process these text input submissions See Listing 1 for the XML code syntax of the textInput tag and its nested sub elements The Anatomy of RSS Feed Items After you ve defined your channel elements within the channel tag its now time to add your actual content items These are the items that are displayed by aggregators as news stories blog entries podcast items etc depending on what content you wish to include in your feed Each item is encapsulated in its own item tag that is nested within the channel tag below the channel elements See Listing 1 for the XML code syntax of the item tag and its nested sub elements The sub elements that describe an item s content are defined here While most feed items include a link back to the full online version of the article or blog entry a feed item does not require a link if you wish to include all of the content in its description sub element In fact none of the item sub elements are required as long as you include at least the item s title or description title Optional This is the title of the item Although it s optional most aggregators look for this item sub element so it s highly recommended to include it link Optional This is the URL to the web page version of the item on your web site or blog description Optiona
109. e the file listing that you left there Press a n again and you ll see window1 with its old process listing One more time and you ll get our top display running on topwin you left it running didn t you One more trick in the magic show Press a d This will detach you from this session of screen You ll be back to where you were before starting screen with the exception of a note that says detached Now log out Yep you heard me Apple Shift Q and log out This normally crushes all processes for your user But screen will protect us here Now log back in Open a terminal and type screen r The r flag instructs screen to re attach to a detached screen rather than start a new session When you press return you ll be magically transported right back to where you left off Yeah it s magic WWW MACTECH COM From Macs to mobiles devices to Nintendo DS wherever your site goes Opera can too Follow the standards Break the rules Test in Opera first Choose Opera for better accessibility and standards support Download the free Opera browser www opera com OPERA software No It s What s that in the road ahead Anxious to learn more are you It would be difficult to present every single thing that screen can do in one column Even two columns would be tough So here are my favorite practical tricks of screen and how to perform them 1 Multiplex Terminalapp Ah the wond
110. e this a blank value Sservers Si base The base DN of your LDAP server Leave this blank to have PHPLDAPadmin auto detect it for you Next we have to tell PHPLDAPadmin now we re gong to handle authentication The most expedient way is to use the session method which relies on Apache Sservers Si auth type session Three options for auth_type Like we did with the clearing out the base DN value let s do the same with login_dn and login_pass Go ahead and save your edits Now we re ready to look at our Open Directory Master from the inside out Go to a web browser and type http yourwebsiteURL Idap If your website was configured correctly you should see the home page of PHPLDAPadmin Figure 7 PHPLDAPadmin Welcome Screen Getting in the Back Door OK so now it s time to ask the Tiger Server Open Directory master to open up and say aaaaah and let us inside However you can just go to the door and say knock knock and when the voice inside says who s there answer with admin uid 501 In Tiger Server the local admin that installed the OS has no rights to the Open Directory master So you ll need to use the name Idapmin uid 1000 But even that s not enough You have to announce yourself using your full distinguished name not just your short name and password A DN or Distinguished Name is basically your long LDAP identity with contains the full path to whe
111. e what a whole year will bring you If you aren t cur rently a subscriber subscribe today It s RISK FREE You can cancel at any time http store mactech com sampler will get you a special offer m Neil Ticktin Publisher MacTech Magazine TABLE OF CONTENTS ARTICLES amp DEPARTMENTS Getting Started PHP MySQL And Forms bites ee a Exclusive File Access in Mac OS X by Paul T Adm eec Lo A le a 15 Mac Shell Screen Living In A Virtual World Ae ae eae 22 The Source Hound Knock Knock Knocking on LDAP s Door PART 1 BY Bean hasi C wd OM ES Pss 30 From the Source An Open Source Primer A Practical Guide to Using Open Source Software OSS on Mac OS X for the Non Developer bysemmanuelsbigun a BER AT AT 46 Deconstructing RSS 2 0 Understanding How RSS Feeds Work by Dave Wootiage GE EP E ES o oer 8 56 Patch Panel Nagios on OS X Part 1 Installing and Setting Up One of the Best Net Monitoring Tools Around py Jonn C Welch e 70 e E 68 WWW MACTECH COM Wo oe PU Department E Mails Orders Circulation amp Customer Service cust serviceQmactech com Press Releases press releasesQmactech com Ad Sales adsalesQmactech com Editorial editorial mactech com Authors only no pr Accounting accounting mactech com Marketing marketing mactech com
112. eWire and LSE Mai L Ta Hubs bring high performance storage and EM port convenience with solutions from 80GB Mac Aci to 750GB from 129 00 TM gn al ay miniStack V2 V2 m OWC Mercury Elite Pro Classic 8OGB to 500GB from 125 99 EMC Retrimpert Backug pisei and are peelpematied wh Free bores pm Retrospect hatwide loaded all ieady ra plug and play rupem Power Acct Mai iBook oy EN Backup by elude all cabin EM Mac Improvement Network Adapters Laptop Batteries Sonet Presto 100 1000 Gigabit Ethernet PCI 85 99 n Nnewertechnology Batteries that Run Longer and Last Longer Built in the USA and built PRAM Batteries right for up ta 5696 more runtime vs your original Apple stock ts your Mac forgetting what time if i OWE PRAM batteries starting at 4 99 Axel anja pie Manga QN Wireless Mouse PowerBook G4 AL 12 15 17 from 119 99 IBook G3 G4 from 99 95 Logitech Cordless Click Optical Mouse for USB SPECIAL 15 99 Call or Visit macsales com NewerTech The Latest Enhancements 5 Eprrandisei he Laptop Screen Protectors bert Protect your screen There s OWC Laptop ce eee TE Un eee Screen Protector LSP product for your Mac Village Tronic VTBook PowerBook 34 17 17 09 PowerBook G4 15 17 95 Foi Panties ETE ME NEE VOIE PowerBook G3 15 14 00 Book PowerBook G4 12 13 95 The Pa wine po
113. eivers Base Station Mac Mini Power Mac Handles PowerBook iBook TiBook document getElementByld queryInput value var queryURL http localhost com service php q query http open GET queryURL http onreadystatechange handleResponse http send null return true j We have now completed the necessary parts of our Javascript code to handle creating sending and receiving an asynchronous request through a client s browser Server handling of the request The client makes a request to some service or page that is served on the same domain as the original webpage This service for this example is expecting a value passed via the URL in the GET parameters The response can be well formed XML or simple text that will be parsed by the clients browser as discussed above in the bandleResponse Q function service php lt php Squery S_GET q Sresponse some service handling S query echo Sresponse ie This server page just passes the query onto another php function and then echoes the response Since our Ajax request from the browser has made a GET request this operates like any normal opening a page in a browser However instead of the page showing up in a window it is handled by the client s handleReponseQ function Using a remote service As we mentioned earlier security does not allow the Ajax specifically XMLHttpRequest to call another domain in the GET URL
114. el iMacs LTA PROJECTS www ilugger com 877 897 5158 ext 2 Must come to an end Is screen actually magic I hope it feels like it to you I think all technology seems like a small bit of reality physics electrical engineering etc and magic The people who created and continue to work on screen certainly have my humble thanks plus I sent them some Nastro Azzuro when I first found screen The real magic of screen is certainly in the code itself it allows me to be in more than one place at a time Next month we ll get back to basics bash basics scripting for the admin Fd Marczak owns and operates Radiotope a technology consulting company that implements mail servers and mail automation When not typing furiously he spends time with his wife 2 and two daughters Get your mail on at http www radiotope com have take your desktop with Pro Series Bags G5 Tower Lugger lf you need uncompromising performance To Go Call us or visit our website Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed 30
115. elf write by sockurl ldapi X2FvarW2Frun W2Fldapi write by group posixGroup memberUid cn admin cn groups de nagitest dc macworkshops dc com write by read 1200 access to attr apple user picture by self write by sockurl ldapi 2Fvar 2Frun2Fldapi write by group posixGroup memberUid cn admin cn groups dce nagitest dc macworkshops dc com write by read 1999 access to by sockurl ldapi 2Fvar 2Frun 2Fldapi write by group posixGroup memberUid cn admin cn groups dc nagitest dc macworkshops dc com write by read While not a whole lot of practical lore or documented experience exists with regards to the capabilities of these DACs and Tiger Server there s always the OpenLDAP org mailing lists and forums although it s not hard to imagine how they could be 40 SAMPLER 2006 applied expanded contracted or utilized to open up or close of certain areas of an LDAP directory Apple s Open Directory documentation http www apple com server documentation characterizes the DACs this way Open Directory provides the ability to define directory access controls DACs to all parts of the LDAP directory providing fine grained control of who has permission to modify what Open Directory stores the DACs in an apple acl record that you can edit using the Inspector in Workgroup Manager Although the documentation advises admins to use Workgroup Manager to modify DACs it is also easy to us
116. eni cul giera sel t leather proterTeri Par prevent marks whe hide the trackpad ard keyboard whole poer Laptinp n for the iMac G3 ox for Mac mini and or ap io LCD Display 5 color combinations starting at 599 55 TM C ont mp TE www macsales com www macsales com SuperDrive Your Mac From Only 47 99 Make Music Movies amp More Add a Fast SuperDrive to your Mac to Burn CDs DVDs even 18 5GB Dual js DVDs Hot sure what upgrade is best for your computer Visit macsales com MyOWC custom shopping exparriencs bo make pour Mac a beiter Mac Speed it up as high as G4 2 0GHz or Dual 1 8GHz Jenner ic one OWC Stocks the full line of G3 amp G4 Processar di upgrades by these leading manufacturers n Nese terc trino G4 Single Upgrades from 159 00 G4 1 6GHz only 229 00 G4 Dual 1 6GHz from 399 99 Dual 1 8GHz from 5595 00 G4 Upgrades for PowerMac G3s PowerMac G4s Cube G4 PowerBook Gis Even A ean y PowerMac 7200 9600 Models we Gece nn ae Sd ae Your amp Save omm a Hard Drives N 1000 Maximize your Mac www MacSales com LM 1200 1400 n n 2 E 1800 w check eut Give Lis cal i p ponpa y Chir guide wel sow just what L options are right t make yout borse PowerBook iMac et Faster Mac adl B
117. equence for starting MySQL building the database and building the table 11 SAMPLER 2006 Daves Computer davemark mysql u root p Enter password Welcome to the MySQL monitor Commands end with or g Your MySQL connection id is 16 to server version 4 1 12 standard Type help or h for help Type c to clear the buffer mysql gt create database myaccounts Query OK 1 row affected 0 40 sec mysql gt use myaccounts Database changed mysql gt create table passwords gt name varchar 60 A pwd varchar 60 gt userid int 10 auto increment primary key Query OK 0 rows affected 0 08 sec mysql gt select from passwords Empty set 0 09 sec In the above I first created a database called myaccounts set myaccounts as the current database then created a table within myaccounts called passwords Passwords contains a 60 character name a 60 character password and an auto incrementing userid We then verified that the passwords table was empty Let s switch back over to PHP and modify our code so we are writing our passwords into the table Back in your plain text editor replace your existing code with this version lt html gt lt head gt lt title gt Sample PHP Form lt title gt lt head gt lt body gt lt p gt Connecting to the database p lt php Shost localhost 5 root 3 Sdb myaccounts Slink mysql_connect S
118. er Laumann This program is free software you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2 or at your option any later version This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details You should have received a copy of the GNU General Public License along with this program see the file COPYING if not write to the Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Send bugreports fixes enhancements t shirts money beer amp pizza to screen uni erlangen de Press Space or Return to end Once you press space or return you ll get back a prompt That s it youre running under screen If you expected something fancier sorry to disappoint but you ll see that it s worth it a ctrl a becomes the important key when using screen You use it to give screen commands Now that 23 SAMPLER 2006 you re in screen here s a quick demonstration Type a followed by that s a let go type the colon You will see the command mode prompt ready for input much like vi Type caption always and press return You ll see a status line along the bottom of your terminal It should read in re
119. er that verifies the OS is running on Apple hardware An interesting aspect of this is the potential development of cluster and grid virtualization Traditional virtualization systems like VMWare emulate a PC down to the hardware devices In other words VMWare simultaneously creates multiple x86 virtual computers guest virtual machines and each virtual machine VM has it s own virtual CPU disk memory etc and all the virtual hardware is mapped to your computer s real hardware the host machine One limitation is significant emulation overhead and little to no opportunity for optimization The VM virtual machine runs multiple kernels and full installations Running virtualization on a cluster creates an environment with automatic load balancing via process migration the master node provides system services while the compute nodes run the application This scales up performance Remember the difference between clusters and grids with a cluster there is a single point of administration while in a grid system there are often different operating systems in different domains While the cluster model provides a simpler more well defined scenario virtualization on grids will see advances in the future and Intel based Macs could very well fill the growing need for low cost commodity based distributed computing solutions MI About The Author Mary Norbury Glaser is IT Director at the Barbara Davis Center for Childhood Diabetes an
120. er with more features but in need of testing 48 SAMPLER 2006 e Users of the software whether developers or not contribute to the development documentation and distribution of the software This participation is a key element in the growth and sustainability of the OSS movement and is a way of giving back User participation varies from submitting bug reports to taking an active role in the development of a project e The source is made available with the intent of enabling users to hack the source for educational and practical purposes e Whenever possible it is best to avoid forking development e g The split with Emacs and xemacs is a good example of this and duplicating effort The ultimate goal is to work together to extend existing projects and only introducing novel projects to fill a niche not already saturated e Design the program when possible to be easily ported to as many other platforms as possible and embrace modularization of code for facilitated distribution of development work Prerequisites The vanilla install of OS X is packed with so much OSS the list is too long to reproduce here However so as not to rattle users who may be unfamiliar with these tools Apple being Apple cleverly hid them from view much as they did the Terminal application Even every day applications like safari are based on open source projects In fact without OSS there would be no Mac OS X The point is with a stan
121. ers of modern technology Look at this miniature marvel the 12 PowerBook Light and portable it s everything you need in a traveling laptop That is of course besides the screen real estate One Terminal window looks great but how many are you going to open Just one of course Then run screen and a c to your heart s content Even on a larger monitor how many individual Terminal app windows do you want 2 Go home Nothing like having a personal transporter to get you from place to place Well aside from the fact that they don t exist yet But there is a way to end your workday on time and continue later on I had a large copy job to run at the end of the day over a Terabyte But I was at the client s site and not at home Everyone else had gone for the day Here s the trick use a machine at the client s site that is accessible via ssh Pop open Terminal app and immediately run screen You can then start your copy job and disconnect using a d and go home Once you re home or wherever you re going ssh in and run screen r to reconnect and check on or finish the job Why sit and stare at file copy status when you could be using that time to travel home 3 Protect against an unexpected disconnect In a world of broadband and high speed access there are still some secrets The secret of the unreliable ISP is the most insidious It s true You may ssh into a remote machine over the Internet only to find that you unceremon
122. espectively g Exports a TSV Tab Separated Values file which can be imported into applications like Excel GNUplot and Mathematica for further analysis and or graphic visualization A Used to supply username and password information for sites that require authentication This enables you to conduct testing on password protected sites Having covered some of the basic parameters of ab we will now explore its use in the context of simple web benchmarking scenarios For our first example we will be measuring the time it takes to process 1000 requests ie n 1000 from 10 simultaneous user connections i e c 10 against OS X s default user website Make sure Apache is running by launching System Preferences and enabling personal web sharing from the sharing preference pane Once Apache is running launch the Terminal application and enter the following command ab n 1000 c 10 http localhost username to begin WWW the benchmark When the command is executed the terminal will display the progress of the benchmark run as well as a series of metrics Figure 1 eon Terminal ssh 86 54 B cverser db n oc T httgt Muogihost etein This if ApachaBench Version 1 58 ddifevision 1 72 f apactw 1 3 Copyright c 1995 dom Telm Zeus Technology Ltd emt Copyright c 1998 2090 The Apache Software Foundation httpr ww apache orgs Decak ing iecalhost b
123. est plan HTTP Request Defaults right click on the Thread Group element and select Add gt Config Element gt HTTP Request Defaults Figure 5 WWW MACTECH COM ann fie dn Hum piinas j eip np Add M Lager Hes Fale Fuaubs Aa i n Open i Bays Aa a7 Semele Contig Damn imag Bale cedens d reseller network MacTech Helps Profit put you in the red hot domain name registration and Internet business Fi site HYTF Autfebsizatidn Managed BMF Cookie Manager Mim HTTP header Manage n java Request C Annelies 4 unfiguraiien KMBC OL Gurry Detian Proll Default T anfiguratinn LIFAP Reged Defaults LIB AP Eide Rapira Daf alia Saenger Config Figure 5 Add HTTP Request Defaults Select the HTTP Request Defaults icon under Thread Let the Group and enter a server name e g localhost or FQDN in the configuration window Figure 6 Apache JMeter pera pa Options Heip HTTP Request Defaults Name HTTP Request Defaults _ Protocol 5 5 Server Mame ofl socalhost Path Port Number Send Parameters With the Request e Encode lindude Eg We ve done the heavy lifting product development customer support and infrastructure All you need to do is sign up o n
124. ext search of items in the Entourage database Spotlight uses file based metadata and a constantly updating index to return results to queries passed through the Spotlight search interface in the operating system Results return quickly because the index is updated based on messages coming from the file system Once the initial indexing is complete on a set of data additional data is indexed automatically as files update on the system 122 SawPiER e 2006 One of the difficulties in making Spotlight work with Entourage had to do with how Entourage stores its data All Entourage data is stored within a single database file per user identity Entourage was designed to be multi user at the application level This was to allow multiple family members to have their own identities in the application in the home environment Entourage stores its data in a single database for each user identity created in Entourage When a user first sets up Entourage the Identity they get is named Main Identity In order to support Spotlight searching we had to develop a mechanism for providing Entourage s database content to Spotlight s file oriented indexing process We settled upon a solution that mirrors the essential item content and metadata to a series of cache files As a new message arrives we store the message within our database and spawn a cache file representing the message When a user modifies a contacts phone number or changes the
125. fax capabilities Ovolab Phlink makes Macworld ll wem U DAE m Oty o ee CHR Acum Prades ara Par rsen acm Poe jener y oi ere cr n m crei your telephone part of the digital hub And you can fully customize Ovolab Phlink to do exactly what you need using AppleScript even set it up to call you back on your cell phone when important clients leave a message Check it out now at www ovolab com sottware Tor he ceive ming 2 we Ss i e Ba m the database and mysql_select_dbQ to make the database the current one for subsequent commands just like use myaccounts in the MySQL monitor lt html gt lt head gt lt title gt Sample PHP Form lt title gt lt head gt lt body gt lt p gt Connecting to the database lt p gt lt php Shost localhost Suser root pa fs Sdb myaceounts Slink mysql_connect Shost Suser Spw or die Could not connect mysql_error J echo Connected successfully mysql select db db gt lt p gt If we got here we ve connected lt p gt The next chunk of code looks like what we did earlier in the column Instead of using echo to print out the form fields we build a query instead and use mysql_query Q to fire it off This will insert the row into the MySQL table It is important to note that the query line is a single line of code It wraps in this column but you should enter it as a single
126. g SyncDeK encrypts all data tranmissions and allows you to place your actual databases inside of firewalls to prevent intrusion Whets New in SyuncDek E Continuous Background Sync on servers and laptops Mo user interruption Direct integration with FileMaker No scripting or import export setup SyncDeK Server 6 Centralized Secure Scalable Data Replication FileMaker Server Advanced Replication Mo client required Automatic Container field replication Version Update Manager for remote FileMaker Servers WorldSync com SD6 DarwinPorts and the install switch sudo poft install zlib sudo port install libpng sudo port install jpeg sudo port install gd2 Once all of those are done congrats you ve installed the support libraries for Nagios Note that there are tons of ports in DarwinPorts so this is only the barest smidgen of what you can get with DarwinPorts Well need to install at least one particular Perl package for Nagios namely Net SNMP To do this run sudo cpan i Net SNMP If you ve never run cpan before you ll have to run through some configuration steps first They re pretty easy to follow and if you re unsure of what to do in a given step take the defaults There s even an option to let cpan try to autoconfigure itself I do it manually but if autoconfigure works for you so much the better Using cpan is much like using DarwinPorts only just for Perl If youre trying to install a Perl module t
127. gardless of their computing platform or location For Mac Desktops Enforced CRYPTOCard authentication Tor desktop access Startup Screen Lock Sleep e Authenticated Fast User Switching Internet Connect MSCHAP v2 Tiger e Cisco VPN Client for Mac Integration xm MacWorld Best of Show Winner t eat Reed it n El a T amp ce Rees Duae a B s q che Infrastucture Integration Open LDAP integration e Open Directory integration s Databases MySQL Oracle Network Integration e RADIUS enabled systems VPN Firewall NAS s Web Servers amp On Demand Computing Apache IIS Citrix CRYPTOCard introduces 5 User Kit for OS X the All In One Box Authentication Solution that lets your security grow with you MACTECH SPECIAL OFFER 5 User Kit for only 249 includes 5 tokens CHYPTO Server software 30 day support Email mac cryptocard com and quote PMac249 01 Promotion can end wilheut notice Secure Password TECHNUDILUU Y www cryptocard com rights reserved lt copyright lt managingEditor gt news spiderworks com lt managingEditor lt webMaster gt support spiderworks com lt webMaster gt lt rating gt lt rating gt lt pubDate gt Mon 24 Oct 2005 05 53 07 GMT lt pubDate gt SlastBuildDate 2Mon 17 Oet 2005 08 13 02 GMT lt lastBuildDate gt lt category domain http www spiderworks c
128. ges Progress into the Window Title field in the Inspector palette See figure 4 If the Inspector palette is not visible select Show Inspector from the Tools menu in Interface Builder Eo Archive Leierted Massagen Progress C Thiais ETT gE HTE inek _ LA GE Venue ee Figure 4 Preparing the Progress Window Once you have specified the title for the window de select the Visible at launch time checkbox in the Inspector palette This will cause the window to be hidden when the project is first launched You may want to make some other adjustments to the window configuration at this time as well For example you may want to disable the ability for the user to close or zoom the window Refer to figure 4 for the settings that I have specified for my progress window Next click on the Cocoa Controls and Indicators tab in the toolbar of the Palettes window If the Palettes window is not visible select Palettes gt Show Palettes from the Tools menu Next locate an NSProgressIndicator progress bar interface element in the Palettes window and drag it into your project s window See figure 5 O Arhi beleried Messages Progress n io C or PE Button 1 _ Switch Fo m d E Radio ss AE tS earned Figure 5 Adding an NSProgressIndicator Next click on the Cocoa Text Controls button in the toolbar of the Palette window and
129. gn a response handler A handler is the function that will be called when the request comes back from the server to the client s computer This function is responsible for verifying the state of the answer and parsing the response as appropriate This function is implemented on a project specific basis It needs to know what the expected response from the server looks like and how to place that response back into the user s browser document AjaxFramework js callback function that handles any state changes of our request to the server function handleResponse if http readyState 1 request loading document getElementByld status innerHTML requesting else if http teadystate A request complete iP hee p starus 200 4 OK returned var response http responseText Add more advanced parsing here if desired document getElementByld responseArea innerHTML response else document getElementByld status innerHTML error http statusText The first thing the handleResponse function does is check the current state of the request object If the object is loading 1 then the user is alerted to this or if the request is complete 4 then we handle the response This WWW LOOK FAMILIAR Get Rid of Your Fax Machine Service available in over 150 area codes To 6065 pecial offers for MacTeEh readers
130. gs that aggregators check to see if any new content was been added or updated since the last time the feed was requested Like pubDate this tag s date should be formatted to conform to RFC 822 category Optional If your blog or web site organizes blog entries and articles into specific categories then this tag may help aggregators to categorize items accordingly Unfortunately there is no standard cataloging system so often this tag only proves useful for your own site needs The domain attribute typically refers to a URL for that category online but if your site does not include unique web pages for each category then you may want to just link to your home page docs Optional This tag should link to the official RSS specification online As an RSS 2 0 feed this tag should point to http blogs law harvard edu tech rss generator Optional If you used feed generator software to create your feed then the application would give itself credit in this tag For example if you used FeedForAll to generate your feed then this tag may read lt generator gt FeedForAll lt generator gt skipDays Optional This tag informs aggregators that the feed should not be read on certain days Within the skipDays tag is a nested day sub element so that you can include more than one day within skipDays Acceptable day values are Monday Tuesday Wednesday Thursday Friday Saturday or Sunday For example to list both Sunday and Mo
131. gure below 36 SAMPLER 2006 php4 module hfs apple module mod hfs apple c Figure 5 Activate php4 module 4 Next it s time to edit the config php file for the PHPLDAPadmin But first i s important to make a mental note it s OK to use an unencrypted web connection when the web based form is running on the server it s going to be connecting to but if you want install PHPLDAPadmin on a server then connect to an LDAP directory on a different server then SSL needs to be configured to make sure that the administrator credentials aren t sent in clear text form over the wire For simplicity we re going to use the configuration where PHPLDAPadmin is installed on the Open Directory Master itself 5 First navigate to the directory where you ve unzipped or unpacked the PHPLDAPadmin script and locate the file called config php example and make a copy renaming it to config php This is the file youll use to configure the connection and authentication to your Open Directory Server add atr form php add anur php 5 add oclass form php add oclass php add value foarm php add value php blowfish php check lang files php collapse php common php compare_form php compare php config php copy form phe 95 copy php ar i j Vale 86 selected 45 26 available Figure 6 Copying Config File Open up your config php file in your favorite text editor These day
132. h well go into later Next is to configure and install the plugins As with Nagios unzip and untar the source files for the Nagios plugins Change directory into the nagios plugins directory and run configure If there are no errors run make then sudo make install 74 SAMPLER 2006 Initial Post Install Setup So Nagios is installed the plugins are installed we just start and go right Well not so fast First we have to make sure that the web server side of things is set since Nagios uses a web interface to show you what its monitoring If you installed Nagios on Mac OS X Server then you just use Server Admin to point the web server root at usr local nagios share You ll want to make sure you have CGI Execution enabled for the site and that you have the necessary Apache modules enabled to allow you to run Perl and other language CGIs on the site If you are using Mac OS X instead of Mac OS X Server you ll have to edit the necessary Apache config files by hand to do this Oh yes make sure that evil Performance Cache is turned off Next we the Nagios CGIs into Library WebServer CGI Executables The CGIs can be found in usr local nagios sbin You want to make sure that at least the group for the CGIs is set to www and that the permissions are set so that the owner and group can execute PU leave world executable rights up to your particular needs and security posture The next step is to ensure that Nagios
133. hat has dependencies that you don t have installed cpan will prompt you to install those as well If you ve only ever hear horror stories about downloading and installing open source software I m here to tell you that thanks to a lot of hard work by not a lot of people that process has gotten much easier and thanks to tools like cpan and DarwinPorts should no longer be thought of as scary to the uninitiated Installing Nagios Now that we have the support libraries installed it s time to set up for Nagios We ll need to create the directory that Nagios lives in usr local Nagios Next we have to create the users and groups that Nagios will use Security note All of this assumes that you have a proper firewall and other protective measures in place I would highly recommend that you don t install Nagios on a system directly exposed to the public Internet A lot of the protocols that Nagios uses like SNMP v2c are not encrypted or terribly secure and having a Nagios box exposed to the public Internet will potentially create real problems for you You ll need to create at least a Nagios user and a Nagios group Note that the nagios user does not need a login shell just that the account works Regardless of how you create the nagios user account System Preferences NetInfo Manager Workgroup Manager command line you want to make it a local machine account only and you want to set the login shell to usr bin false Dont
134. he directive with a string n will substitute the window number nethack on is in my screenrc file because well a geek With this option on the standard screen messages are replaced with nethack like ones If you ve just started using screen this has the potential to confuse you Otherwise it s fun if you re me I suppose startup message off simply suppresses the intro screen caption always which we saw a simple example of earlier can also accept a string that will define the status line display The final screen t lines simply fire up new windows for me titled with the title I supply using the t switch There s much more about all of these features in the screen man page 5 Screen sharing There are many times that people call me for help and solving the problem involves the command line Well I really want them to watch what I m doing so they can learn For this exercise I may be in place A they re in place B and the server is in place C Once again I sprinkle a little magic dust over my keyboard and I can type in the same session as my remote friend Of course I m just using screen s x flag Much like the r switch x also re connects to a session although one that is not detached It s called multi display mode Here s the easy way to use it Have person A ssh into the server and start screen Have person B ssh into the same server as the same user and run screen x Person A and per
135. he Macintosh Mac OS X Edition at http www spiderworks com WWW MACTECH COM Did you find this article helpful Imagine a year of help MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed Opening a file from classic Mac OS pre Mac OS X with fsWrPerm fsRdWrPerm or the default fsCurPerm meant that any other application trying to open that same file with write access would not be able to do so Usually an fsRdWrPerm error would be returned when other attempts were made to open the file for write access though attempts to open such a file for read only access would succeed This default behavior allows for one write and multiple readers of the file Mac OS X s BSD subsystem does not enforce file read write privileges in the same way as classic Mac OS Opening a file for writing does not ensure other processes can not write to the same file The default behavior of BSD allows for multiple writers to a single file As a result opening a file via PBHOpenDF PBHOpenRF PBHOpen PBOpenFork FSOpenFork HOpen etc on a local volume and passing in a permissions value of fsCurPerm fsWrPerm or fs
136. hich unlike its close cousin nslookup pulls the actual raw DNS records from your server Of utmost importance is the NOERROR message which indicates the DNS goodness Otherwise you might see a NXDOMAIN message or a SEVERFAIL message 34 SAMPLER 2006 in which case you should go back check your entries then start and stop the DNS service Next we want to make sure that the reverse lookup s working well so we do lt 0 DIG 9 222 SOA 192 1668 0 85 global options printcmd Got answer gt HEADER lt lt opcode QUERY status NOERROR id 41041 flags qr aa rd ra QUERY 1 ANSWER 1 AUTHORITY 1 ADDITIONAL 1 QUESTION SECTION 85 0 168 192 in addr arpa IN PTR ANSWER SECTION 65 0 168 192 1n addr arpa 86400 IN PTR mostsvr macworkshops com AUTHORITY SECTION 0 168 192 in addr arpa 86400 IN NS mostsvr macworkshops com ADDITIONAL SECTION mostsvr macworkshops com 86400 IN A 192 189 0 85 Query time 2 msec SERVER 192 168 0 85 53 192 168 0 85 WHEN Thu Aug 18 08 19 53 2005 MSG SIZE fevdi 111 to make sure that the reverse lookup record s kosher as well If you re testing this on a machine other than the server and don t necessarily want to ssh into the server you can simply add ipaddress hostname to the dig statement to query a DNS server that you re not currently configured to use like so dig mostsvr macworkshops com
137. host Suser Spw or die Could not connect mysql_error echo Connected successfully mysql select db Sdb 2 lt p gt If we got here we ve connected lt p gt lt php if lempty POST name Stempname POST name Stemppass POST pwd Squery insert into passwords values Stempname Stemppass 0 Sresults mysql query Squery or printf Query error s mysql_error mysql_close lt form action lt php PHP SELF gt method POST gt Name lt input type text name name gt bit J Password lt input type password name pwd gt lt br gt lt input type submit gt lt form gt lt body gt lt html gt The first chunk of this code should be familiar from earlier columns We use mysql_connectQ to connect to WWW MACTECH COM Incoming call calling from home 650 555 7890 Has rung 4 times Let Phlink take the call Personalized greetings voicemail notifications and much more Ovolab Phlink is the ultimate message center for your Mac It answers phone calls and identifies callers using Caller ID and Apples Address Book It greets your friends with personalized messages It records and stores messages on your computer and even forwards voicemail to email as AAC audio attachments Featuring multiple voice mailboxes high quality audio Spotlight searching and
138. iPod Batteries for nearly every Apple iPod Starting From 14 99 i emm uj BEPHUPE rdc OT B Apple iLife 06 t Make the most out of your digital life Share Not comfortable opening your iPod For 39 the cost of the battery OWC installs it for you iPod shipping Box and FedEx Overnight covered to and from macsales com iPodinstall OWTC s full line of iPod Batteries Accessories and more online at macsales com iPod Phu Grau Fus m ay 406GB to ORG B from 47 99 For PowerBooks iBooks amp Mac iinis bi RPM NoD on 4 SATA 5549 00 Not sure what your Mac takes Borg mills Ley fiche macsales com harddrives E ice call a Pay less Get more Surf faster hran iced 6 per month High Speed Nationwide Dial up and DSL Services Toll Free Tech Support amp More from Mac Experts visit FasterMacnet or call toll free Mac Only Int ernet Priori af subprit io iharqe witha anior Tees Hirea mien JE dag map be Fa prt ching lee will er ee ped ei Aaa Barkeeiratigs rimi ber thers World Computing o VL S sar Dialis Weel pact D Gd Web Performance Testing Web Benchmarking 101 A guide to stress testing your website with ApacheBench and JMeter Jin Lin and Emmanuel Stein Introduction Web performance testing ca
139. ic S Raymond a prominent OSS advocate and one of the few to have successfully hacked the three major open source UNIX projects LINUX BSD and GNU There are also practical characteristics specific to OSS that go beyond the qualification of providing the source code in a software distribution Specifically to officially qualify as open source software must meet a set of well defined guidelines set forth in the several extant open source licensing schemes These include the BSD artistic License the X11 license GPL and other compatible license formats see http www gnu org licenses license list html Though these licensing schemes differ slightly they are united by a similar philosophy that is delineated by the Open Software Initiatives OSD Open Source Definition OSD v1 9 whose axioms are available at Chttp www opensource org docs definition php Conceptually open source also represents a new paradigm in software development To use the terminology coined by Raymond in his seminal treatise The Cathedral and the Bazaar OSS employs the Bazaar model of development while traditional closed source software represents the Cathedral Model Without going into the details of each development model and its respective benefits and weakness I have outlined the characteristics of open source software below e Releases are made as frequently as possible There is usually a stable and an unstable release the lat
140. iginal author For example if the content is from MacTech s RSS feed you would list MacTech as the source value and the URL for MacTech s RSS feed as the value of the ur1 attribute author Optional The e mail address of the author of the item s content For example if the source is credited to MacTech s RSS feed and David Sobsey is the author of the piece then list David Sobsey s e mail address as the value of this sub element pubDate Optional This is the publication date of the item Like the channels pubDate and lastBuildDate tags this sub element s date should be formatted to conform to RFC 822 comments Optional This is the URL for the item s related web page of user comments This sub element is usually only relevant for blogs that allow web based user comments guid Optional This is an interesting sub element that is used as a unique identifier for the item There is no set convention for how this sub element should be used but most aggregators expect it to be a unique URL string that no other item can have making it a valid item ID For news stories and blog entries this works great since they would have their own unique URLs but if the item s URL is referred to more than once in your feed then it cannot be used as the unique identifier here For a unique URL that will always be available for viewing online you should include the isPermaLink true attribute Moving Forward Now that you ve ste
141. ill be visible on the Inspector palette beneath the Name field Enable the launched event handler by selecting its checkbox in the list of event handlers Next link the event handler to the AppleScript code in your project by selecting the checkbox next to Archive Selected Messages applescript in the Script area at the bottom of the Inspector palette beneath the event handler list See figure 8 WWW em Mac Systems G4 867Mhz 5699 6G64 933Mhz 899 64 1 25Mhz SOLD OU 65 1 6Ghz 5899 G5 1 8Ghz 51099 G5 1 8Ghz DP 1249 G5 2 0Ghz DP 1399 eMac BO 00Mhz 5449 eMac 1GHz 5549 iMac G4 700 15 5449 G4 1 25Ghz 17 749 XSERVES AND RAIDS BEST PRICESII G4 XSERVES STARTINGG 599911 GS ASERVES STARTING 2514991111 1 TB XSERVE RAIDS FROM 534991 2 8 TB XSERVE RAIDS FROM 544991 5 6 TB XSERVE RAIDS FROM 56999111 RAID CARDS FIBRE CARDS DRIVE MODULES SERVICE KITS CONTROLLER MODULES ETC Displays REFURBISHED DISPLAYS Apple 17 Studio LCD 5349 Apple 23 Cinema 5899 Apple 22 Cinema 5799 n S799 99 LS Apple 17 Studio or VGA 569 99 Apple 15 inch Studio LCD 179 Preducti mar br calusiiahad of dena dali las main inl ermatinn VOIP Service Residential Plans All Plans Include Caller ID Voicemail and Three Way Calling Business Plans All Business Lines Include PRX Features Call Transfer Music on Hold Cus
142. ine for purposing of testing This is not however an optimal scenario for real world application Participate in a Grid Grid computing allows for an environment where idle CPU cycles and storage space of thousands of networked systems can work together on a particular processing intensive problem Current projects range from mathematics prime number searches science climate prediction models life sciences cancer research to cryptography cracking data encryption schemes By joining a grid project your home or work computer can contribute to solving a global challenge The simplest use of Xgrid is to add your Mac to an existing distributed computing grid project Deciding to participate in a grid is as simple as looking online for available Xgrid projects http distributedcomputing info projects html lists active and upcoming projects under different categories with details on supported operating systems 82 SAMPLER 2006 For example Rosetta home http boinc bakerlab org rosetta is a project that is attempting to predict and design protein structures in an effort to help cure human diseases To join this grid go to their home page create an account you ll receive a return Account Key via email which you ll need to confirm at the web site and later insert into the application make sure your computer meets the system requirements and download the BOINC client software Berkeley Open Infrastructure for Network
143. iously get dropped Connection reset by peer connection closed Dial up still exists my friends If you re managing via dialup or find that you get dropped connections run screen immediately after ssh ing into a remote host This way if you get dropped while you re in the middle of editing an rc file with vi you simply ssh back in and type screen r You ll be right where you left off 4 Have screen setup my environment for me Amaze at the automatic setup Swoon over the customized messages screen looks for a screenrc file in your home directory You can customize the way screen starts up Here s my startup file defscrollback 20000 activity Activity in local window n defmonitor on nethack on startup message off caption always g 50 t ylhc s Y m wd r g W screen ec Tre screen is rootwin screen remotewinl screen E remotewin2 screen xi shamewin Screen localwin Screen t sshtun 25 SAMPLER 2006 Here s the explanations defscrollback defines the scrollback buffer for each window activity defines the activity message This goes hand in hand with the following line defmonitor on With this set when a window you re not watching has activity in it like when you re waiting for a compile to complete or your irc session to show some activity screen will display a status message to let you know You can customize the message by following t
144. it out with the wipe flag Screen wipe 3848 screen will let you split your terminal Create a few screens create some output on each and then press Aa S Boom Split screen a Tab hops between segments Each a n or p or is independent of the other window So you could have top running in one split with a long running app in the other Of course on my local Mac probably just open another terminal window but this is pretty handy on a remote system a X removes the region that currently has the focus This is why I never use Terminal app s split bar Thank you screen Connect Communicate Collaborate Securely You can screen into an app immediately by passing the program name into screen screen vi somefile txt will start vi under screen This avoids spawning another copy of your shell too Naturally all of the meta keys are then active and you can create another window if you do need some other functionality screen can perform logging for you with the a H keystroke combo Again this is of more use on a remote system that you may detach from but want the output of some long running command One pressed a H starts logging tells you the name of the file it s logging into and you re done Pressed again turns off the log Thought you d like to know screen also sports a history buffer with copy and paste Nethack mode gives some particularly good messages here TII be honest this
145. ithout exclusive locks in order to prevent denial of service attacks in which one process opens a file with an exclusive lock which may be required by another process effectively blocking the other process WWW MACTECH COM 2006 Maxell Cornorabon of Arnerica pLTtape 54 MAXIMU PERFORMANCE Once again Maxell leads the field becoming the world s first qualified manufacturer and supplier of DLTtape 54 Developed in partnership with Quantum Maxell DLTtape 54 offers an BOOGB native capacity 1 6TB compressed and incorporates Quantum DLTSage WORM and Tape Security features for legal regulatory compliance and data security Additionally Maxell NeoSMART technologies ensure ultimate recording reliability and data recovery furthering Maxell s advance toward 1OTE capacities and beyond Maxell computer tape the maximum performance data storage solution O SMART maxell www rnaxell corm Checking Availability of Exclusive File Access Mac OS X will enforce exclusive file access i e one writer and many readers of a file through its application frameworks Carbon Cocoa and Java by enforcing BSD advisory locks as though they are exclusive The supports advisory locks feature is defined if both the OS and file system for the volume in question support advisory locks In this case the default behavior of the application frameworks is to open files with exclusive access when opened
146. kage management systems In such situations many people may give up and possibly look for a safe commercial alternative I hope to change that with this primer by going over the convenient package management tools available and going over the simple steps for compilation Further I will show you how to identify and where to find OSS that has been ported to the Mac Though it is beyond the scope of a primer to go into porting OSS to the Mac I will nevertheless touch on the conceptual issues involved If nothing else it will enable readers to better understand why certain code does not compile on the Mac and for more adventurous readers shows where to find the porting instructions in a source distribution If you are a developer or UNIX geek you will likely be familiar with the subjects covered However for the rest of us get ready to enter the wonderful world of OSS Far from being a developer only community the rich and vibrant world of OSS is chock full of cutting edge and highly useful non developer tools like GIMP Graphic Image Manipulation Program and Blender an advanced 3D modeling tool Moreover with the advent of OS X and object oriented desktop environments like Gnome and KDE WWW MACTECH COM KNOW WHO S WATCHING YOU me PROTECT YOUR PRIVACY Far y MONITOR COMMUNICATIONS NM SECURELY ERASE FILES din BLOCK ANNOYING WEB ADS SUPPORT FOR APPLE MAIL
147. l This is the description of the item For news stories and blog entries it s your choice to include the entire text or only a summary If you only include a summary then be sure to also include the link sub element in your item so that users can click through to your site to read the entire story For podcasts the description sub element usually holds text information about the song track and artist Although it s optional most aggregators look for this item sub element so it s highly recommended to include it enclosure Optional This sub element defines a multimedia file If your feed is a podcast then the enclosure sub element of each item would identify the related audio file It requires three attributes ur1 length and type The url attribute should be the direct URL to the actual media file itself The value of length should be the file size of the media object in bytes The value of type should refer to the media file s 64 SAMPLER 2006 MIME type See Listing 1 for the XML code syntax of the enclosure sub element and its attributes category Optional This sub element works exactly like the channel s category tag except that it defines a unique category for the individual item Like the channel s category tag there is no standard cataloging system so often this tag only proves useful for your own site needs source Optional This should name the source of the item s content if you are not the or
148. lat Liae m l a D omg pet eet ian ot as Hz Pu uc 20 Ao d T 4 1 Abl umm Pees p gt PI n TN TI 2 Kimecos 3 NE eid P 20 mz Bite t5 a ete ORAT a i ee UA Ila mi Ts a muy bd ee dWlsob L erm a t f i 0 2 8 BA Le 99 5 ia Mi amos ae a AB Og Rus ez fn i eae 1 Bc cte LER a REM pri Sond A of d Nu eru in t i ior ex wi ke y walt ag c wu paa qa Sn AUG i a iris T HE EU mE part 1 0 amp Pe ie Se ee EIE des m T a m mpi ee emt late eyed 97 asese am Pe mj Ja Boag i sa g otc C E or PL g sanja telnr Badal tu Sig iat mig ue 1 14 1 ee ee CRUNN ipes j ri Mom yan PETITS Abe IL ap raib 3 ono ooa eom sin _ Ham Hole f ue aS pes amp s as DISCIT dee ge BRORITSU wel Ba Ium Oe pep Bee Fa oe Lite fol os En Aw be lad bu fma ELE iE v p E al bm co m udis r aM men Ea id ams TF cha fa P En ier LE T T ee rere CT Te eS j D he 1s 296 HE TT h UN 1 og E
149. len lock reg fd SETLK RDLCK offset whence len define readw lock fd offset whence len lock_reg fd SETLKW RDLCK offset whence len define write lock fd offset whence len lock reg fd SETLK WRLCK offset whence len define writew lock fd offset whence len lock reg fd SETLKW WRLCK offset whence len define un lock fd offset whence len X lock reg fd SETLK UNLCK offset whence len pid t lock test int dmt off t int Off j is readlock fd offset whence len lock test fd F RDLCK offset whence len is writelock fd offset whence len V lock test fd WRLOK offset whence len ldefine define 20 SAMPLER 2006 int lock reg int fd int cmd int type off t offset int whence off t len struct flock lock lock l type type F RDLCK F WRLCK F UNLCK lock start offset byte offset relative to l whence lock l whence whence SEEK SET SEEK CUR SEEK END m lock l len len bytes 0 means to EOF af return fentl fd cmd amp loek Jj pig lock test int fd int type off t offset int whence off t len struct flock lock lock l type type F RDLCK or F WRLCK lock l start offset byte offset relative to 1 whence lock l whence whence SEEK SET SEEK CUR SEEK END lock l len len bytes 0 means to EOF if fentl fd F GETLK a
150. lick the Submit button Note that each time the page reloads the database is reconnected 02 os uai fire thorwivin pt MEAT 3 Connecting in the database Connected saccesafully M we got here we ve connected Figure 4 Entering the data that will be written to the MySQL table Once you ve entered enough data go back to Terminal and take a look at your table mysql gt select from passwords pwd userid Franklin Roosevelt Delano 1 Dave Mark fudgiethewhale 2 Dark Helmet spaceballs 3 4 3 rows in set 0 00 gec Cool All the data is there Until Next Month There is just a ton you can do with MySQL and PHP If you don t have a PHP library already I found the books MySQL in a Nutshell and Programming PHP from O Reilly and PHP 5 and MySQL from Apress a big help in getting started Not sure what I m going to do for next month s column I ve been reading the galleys to Mark Dalrymple and Scott Knasters upcoming Learn Objective C from Spiderworks Hmmm might be fun to explore a bit of that Well we ll see For now it s back to Lake Anna for a bit more summer laziness See you next month MI About The Author Dave Mark is a long time Mac developer and author and has written a number of books on Macintosh development Dave has been writing for MacTech since its birth Be sure to check out the new Learn C on t
151. lowing code This code will set the content of the progress bar to the current repeat loop increment thus increasing the progress bar s display to accurately reflect the current number of messages processed set content of progress indicator Progress Bar of window Progress Window to a update window Progress Window Please note that the last line in the preceding code will update the window ensuring that the progress bar s interface is refreshed each time its content value is changed Completing the Code To complete the handler add a quit command at the end of the handler just outside of the repeat statement This will ensure that the application quits once processing is complete quit try on error theErrorMessage number theErrorNumber if theErrorNumber 128 then quit error theErrorMessage number theErrorNumber end try This try statement will trap for a user cancelled error error number 128 which would occur if the user clicks the Cancel button when prompted to select an output folder Now that your script is complete the following example code shows how the completed launched handler should appear within your main project script on launched theObject try set theOutputFolder to choose folder with prompt Select an output folder as string tell application Mail set theSelectedMessages to selection end tell set theMessageCount to count theSelectedMessages set visible of window Progress Window to true
152. ltymin You ll notice that like all users accounts facultymin winds up in cn users Now we can use PHPLDAPadmin to move facultymin into the faculty OU If we also want to store groups computers and other things we might want to consider creating copies of other LDAP folders within our OU Figure 12 Organizational Units Now we ll move the facultymin user into the faculty OU The part that gets hairy here is that after the move Workgroup Manager cannot see the user account anymore However since faultymin is a directory administrator we can still log into PHPLDAPadmin using the full DN of the user uid facultymin ou faculty dc nagitest dc macworkshops dc com and we even have read write access But as far as lookupd and Workgroup Manager are concerned the facultymin user s gone Now it s time to see the schema replication in action and because an LDAP replica is read only simply use the anonymous bind setting with PHPLDAPadmin to log into your replica you ll need to install it there too and check to see if the schema replication s working If everything s copasetic your OUs and facultymin user should now appear almost instantly in the replica LDAP directory ou faculty Quid facultymin uid Idapmin Create new entry here Figure 13 After the Move OU ch For a real world deployment we d want to figure out a way that Workgroup Manager could still edit user group and computer a
153. m data is passed along to the action recipient and is either GET or POST The primary difference between GET and POST is that GET causes the form data to be embedded in the action s URL while POST passes the data to the action as an input stream via stdin for example GET forms can be bookmarked since the data is embedded in the URL POST forms cannot be bookmarked In general I use POST as my default unless I specificaly need a URL to be bookmarkable You ve undoubtedly clicked on your browser s reload button and been asked Do you really want to reload this form or something similar The page in question is a POST request Good to know the difference between GET and POST use whichever works best in any situation Note that GET is the default Note also that if your form contains passwords and the like the GET URL will include the password data Not a great idea if you will be passing the URL around Embedded between the form and lt form gt tags is the form content The form content is made up of HTML formatted text along with a variety of input tags Each input tag represents an HTML form element such as a popup menu text field non echoing text field for entering passwords checkbox radio button submit button a pushbutton whose purpose is to submit the form or a reset button a pushbutton used to clear the form An example will make this a bit clearer A PHP Form Example This exampl
154. migration functionality that enables RSA SecurID DES tokens to be imported into the CRYPTO Server and CRYPTO Kit a software developer s kit that provides developers with the tools required to integrate CRYPTOCard s technology with existing security applications systems We found CRYPTO Server for OS X to be very well thought out Documentation is simple to follow and the product does a good job of supporting authentication requirements including a full compliment of token form 113 SAMPLER 2006 factors which should make it simple for any sized organization to customize an authentication solution to meet security requirements The technology makes system configuration simple for administrators while the familiar ATM style logon process is easy for users to grasp CRYPTOCard was the first authentication vendor to provide real two factor authentication for the Mac and we found that the latest version of its technology gives the company a good basis to claim leadership in the OS X authentication marketplace CRYPTO Server for OS X is available in a Five User Kit which includes full server software five tokens of the user s choice and 30 days support for 499 This compares favorably with other similar products from other large well established vendors The innovative all you need in one box format also makes it simple for an organization to build their security solution as required CRYPTOCard offers a free trial download
155. ml goodies GridStuffer info html and PyXG a Python interface to Xgrid http hammonds scu edu classes pyxg html A frustrating change for many users of the Panther technology release of is the loss of the Xgrid controller on the Tiger client Tiger client still includes the Xgrid agent but the GUI controller has been moved to Tiger server see the next section for definitions of Xgrid terms However when we build our own cluster we ll have some options Patience dear reader Definitions and Simple Explanations Client the Client submits jobs to the Controller This can be any OS X 10 4 computer or OS X Server Controller the Controller receives the jobs from the Client s splits the jobs into tasks and submits the tasks to the Agent s The Controller then receives the results back from the Agent s and delivers the information back to the Client s Apple has moved the Controller to OS X Server but has left the command line equivalent for managing the Controller and job submission on Client Agent the Agent receives tasks from the Controller runs the computations and sends the results back to the Controller The Agent can be either a 10 3 or 10 4 computer One task per CPU can be run Node any single OS X 10 3 or 10 4 desktop computer or OS X 10 4 Server on the network There is only one Controller but there can be many Clients and many Agents The Controller Client and Agent can be run on the same mach
156. mp lock lt O perror fentl exit 1 if lock l type F UNLCK return 0 false region is not locked by another process return lock l pid true return pid of lock owner There are three important rules regarding automatic inheritance and release of record locks e Locks are associated with a process and a file When a process terminates all its locks are released Whenever a descriptor is closed any locks on the file referenced by that descriptor for that process are released e Locks are never inherited by the child across a fork otherwise we could end up with two processes sharing a write lock e Locks may be inherited by a new program across an exec This is not required by BSD and is therefore machine dependent References Stevens Richard W 1999 Advanced Programming in the UNIX Environment Massachusetts Addison Wesley Longman Inc ISBN 0201563177 About The Author Paul Ammann has been working in IT for almost 20 years He is happily married to his wife Eve for 6 years He finds writing the author s bio the toughest part the article WWW MACTECH COM Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler
157. mpatibility across platforms new and innovative licensing options your software and environments copy of the full KeyLabs report is avadable from our Web site at www Aladdin com MacTech b Robust envelope uer Weight MASP HL Utara Security 35 851 609 Automatically protects Windows Protection layer basati E UA D Net id Licerrung Fath 75 Aac applications securing t hes itl Flewb tycltooh 10 913 712 weakest link and ensuring your valuable IP remains unreachable Multiple protection layers provide unequaled security Compatibility acess 10 93 Y n platioems and eiircnents Aladdin SECURING THE GLOBAL VILLAGE Request a Software Developer Kit today at www Aladdin com MacTech North America 1 800 562 2543 247 818 3800 UK Germany Israel Benelux France Spain Asia Pacific Japan DAVA remige Stem LR A rights revered Rack afud WASI qom recte of perm Windies Mas OS naw are oi adeun uf thew epee hasten Lightweight Directory Access Protocol has at the very least become an agreed upon standard that eDirectory and Active Directory aspire to or emulate or at least talk to Apple s Open Directory however doesn t have to aspire because it is LDAP OpenLDAP www openldap org to be precise Tiger Server s LDAP implementation is based on OpenLDAP 2 2 19 and Berkeley DB ve
158. mpiling software as well as many of the dependencies upon which OSS projects rely Although the standard install of Developer tools will be adequate for most needs I recommend also installing the X11 SDK and the optional compiler packages blacks 0703 T toeeubids 21 iaci 2 Note you have installed the developer tools be n mene sure to repair permissions as they will be changed in the 41 mee process of installation and if not remedied may adversely 520 6 Jane ffect t f your system Figure 2 Darwin Ports PortView Open Source the Easy Way With 1411 Daglayud 273 mtalled ra Fink and Darwin Ports ss mule Both Fink and Darwin Ports are amazing package aa spe d nM 2 management systems designed specifically to enable 4 MN Mac users to benefit from the diverse range of OSS n MR without having to manually compile or port source i o qu all dew code In addition to having easy to use command line me Leda Mi in med gt interfaces both Fink and Darwin Ports have mature EE E Ae ah inia mni d CRS a Oen ME me ab Aan Le ini GUIs that match virtually every available terminal Mos cM Tui a M D option Figures 1 4 95
159. n site document search database row updating or editing web content in place For more advanced applications you may want to look at several available and supported Ajax toolsets that provide a ready framework and lots of other functionality Prototype see resources is used in Ruby on Rails for its Javascript Ajax functionality and Sajax is an Ajax toolset for PHP code Resources Ajax technology Adaptive Path http www adaptivepath com publications essays archives 000385 php WWW MACTECH COM P rot e C t O Pac k Now Available for MacBook Pro e Keyboard cover Hand rest You didn t compromise on your notebook don t compromise on its protection WWW IVLARVVAHE com Be the one with What s the difference all tne answers N d Brand new It s perfect Its beautiful Brand new It s perfect It s beautiful and it s vulnerable and it s protected Invisible durable amp aclech is It s naked exposed to MacTech is already read every month by tens dar of thousands of readers MacTech readers represent the very heart soul of the the Mac community Join the crowd and sign up for MacTech today store mactech com riskfree and it will get scratched Mozilla Ajax documentation http developer mozilla org en docs AJAX XMLHttpRequest documentation http documentation developer ap
160. n be a daunting subject for the uninitiated With the sheer number of tools available and their various feature sets it can be hard to know where to begin In this article we will explore the use of two popular open source tools ApacheBench aka ab and JMeter to perform simple benchmarking tests Rather than going through the extensive feature set offered by these applications particularly JMeter we will focus on measuring the response time and the effective throughput of your web application across different user load scenarios Whether serving a few static pages or a fully dynamic site the tools discussed will offer invaluable insight into the overall performance of your web applications and serve as a basis for isolating system bottlenecks and conducting capacity planning for your web applications Benchmarking Considerations Although the tests and tools that we will use in this article represent integral components used in the testing process it is equally important to consider the environment in which such tests are performed If you are running a popular website with significant traffic you may consider performing benchmarks during non peak hours to obtain more accurate results and avoid rendering your server unusable to users If possible you should test your web server in a staged environment and before actual deployment This will enable you to adjust server parameters install cache mechanisms and otherwise assess your site
161. n source solutions on the Mac For Mac aficionados without a UNIX background the world of open source can rather daunting at first Given all the distribution formats out there and the occasional need to compile software it is not surprising that many Users have not exploited OSS beyond what comes with OS X Even non developers who know how to compile their software often run into issues with source code that requires special compiler options to successfully compile or for which they may need to edit the Makefile and the like Dependencies are also a source of problems and are often at the root of problems getting OSS to run properly Finally there is the issue of source code not ported to the Mac OS or Darwin for which one requires a cross compiler Source code not ported SAMPLER 2006 to the Mac OS regularly stumps many users who do not realize that source code is frequently machine dependant in nature and therefore may not work on all platforms There is hope however Package management systems like Fink and Open Darwin Ports think Apple Software Update for 055 offer automatic downloading compilation and linking as well as updating Although these tools are wonderful and make acquiring and deploying OSS a breeze even for GUI diehards they do not always include every piece of OSS you may want or need Also newer projects may not even have packages available much less be indexed by the extant pac
162. n tools such as Data Transfer Data Synchronization Backup and Report will empower you to work more efficiently With Navicat Batch Job Scheduling feature you can sit back and let Navicat do the rest for you Find out more and join our 1 100 000 users at www navicat com set eof of theArchiveFile to 0 write theMessageContent to theArchiveFile close access theArchiveFile set content of progress indicator window Progress Window to a update window Progress Window end repeat quit on error theErrorMessage number theErrorNumber if theErrorNumber 128 then quit error theErrorMessage number theErrorNumber end try end launched Progress Bar of Testing the Project Now that our project is complete it is ready for testing To test the project first launch Mail and select multiple email messages For best results you may want to select a large number of messages in order to ensure that the progress bar will increment properly Next select Build and Run from the Build menu in Xcode If everything works as expected your solution should launch and you should be prompted to select an output folder After choosing a folder the project s interface should be displayed and the selected messages should be processed and saved into the specified output folder _ Archive Selected Messages Progress Processing message 12 of 21 Figure 9 The Completed Progress Interface Control real world devices
163. nal window or two Whoa TIl show you why screen is more than just a way to have multiple terminals Apple sees the light on this one too screen has shipped with OS X since 10 2 Thanks to this we can even skip any discussion about acquiring the source or a package and getting it running on your system We can get right to the good stuff What s that in the road A Head What exactly is a virtual terminal Instead of having physical screens attached to a system for each session screen allows us to create a session that lives virtually That is not attached to any physical console To even drive that point home screen allows us to detach the session and pick it up from anyplace else Even better you can have multiple people attached to a single session from anywhere like a poor man s VNC Unix already supports job control However once you background a job and logout you can t bring it back to the foreground More than that if you don t take special measures a background job will die with the parent shell when you log out No longer will you have to say I m Mike Jones and I use nohup Especially if your name isn t Mike Jones For the impatient pop open Terminal app or the excellent iTerm GLTerm or other favorite and type screen You should get a simple welcome screen as shown here Screen version 4 00 02 FAU 5 Dec 03 Copyright c 1993 2002 Juergen Weigert Michael Schroeder Copyright c 1987 Oliv
164. nday as days to skip you would use the following XML syntax lt skipDays gt lt day gt Sunday lt day gt lt day gt Monday lt day gt lt skipDays gt skipHours Optional This tag informs aggregators that the feed should not be read during certain hours The skipHours tag syntax works exactly like the skipDays tag except that the sub element is hour instead of day An acceptable hour value is any whole number between 0 and 23 Like skipDays and its day sub element skipHours can include multiple hour sub elements ttl Optional This tag represents the time to live with the value being in minutes It tells aggregators how long the feed content should be cached on their end before 62 SAMPLER 2006 refreshing with a new HTTP request of the feed For example if you use 60 as the value then aggregators will know that they need to wait 60 minutes before requesting a fresh copy of the feed This can help alleviate some of your server load since it will decrease the number of redundant feed requests cloud Optional This is probably the most rarely used and most confusing tag in the RSS 2 0 specification Many developers who encounter this tag either don t understand how it works or have not figured out how to best utilize it This tag represents a lightweight publish and subscribe feature that includes five essential attributes domain port path registerProcedure and protocol It is a way for RSS to le
165. ne Currently Apple supplies Java 1 3 1 1 4 2 Release 2 and J2SE 5 0 release 3 through regular software updates as well as at the following links http www apple com downloads macosx apple java13 1and 142release2 html http www apple com downloads macosx apple java2se50release3 htm In our tests both JDK versions were able to run JMeter without a hitch However you will likely notice some performance improvement when using the J2SE 5 0 release 3 To specify this version as your system default or to change the precedence settings for your installed Java Virtual Machines JVMs use the Java Preferences utility located in Applications Utilities Java Java2SE 5 0 The latest version of JMeter is available as a free download at http jakarta apache org site downloads downloads jmetercgi Depending on your preferences you can download the application as source code or binary as either zip or tgz archives The easiest option for most OS X users will be to download the binary in zip format which can be easily uncompressed in the GUI by double clicking the jakarta jmeter 2 1 x zip archive The resulting jakarta jmeter 2 1 1 folder can be placed in your Applications folder or other location within the filesystem You can launch JMeter by either double clicking the ApacheJMeter jar file located in the bin directory of the Jakarta jmeter 2 1 1 folder or by executing the jmeter shell script located in the same directory Please note that if yo
166. nk rel alternate type application rsstxml title RSsS hr er http yoursite com So what are you waiting for Now that you ve gained some insight on how RSS 2 0 works start taking advantage of one of the hottest new Internet technologies that can greatly 66 SAMPLER 2006 increase exposure for your products and services and drive additional traffic to your web site or blog Resources The following list is by no means comprehensive but should serve as a good starting point for learning more about RSS 2 0 online RSS Readers Browsers for Mac OS X NetNewsWire http ranchero com netnewswire Radio Userland http radio userland com NewsFire http www newstirerss com Apple Safari http www apple com macosx features safari Firefox http www getfirefox com RSS Feed Generators FeedForAIl http www feedforall com ListGarden http sottwaregarden com products listgarden pReSS http www mizog com productinto press OrangeBox http Awww globalsyndication com orangebox for macintosh Feeder http www reinventedsoftware com feeder Online RSS Validators Userland Validator http rss scripting com Feed Validator http teedvalidator org RSS Parsers MagpieRSS for PHP http magpierss sourceforge net CaRP for PHP http www geckotribe com rss carp Universal Feed Parser for Python http teedparser org RSS Class for Cocoa http ranchero com cocoa
167. nse amp 1 lt lt gestaltMacOSCompatibilityBoxPresent 0 return true Running on Mac OS 9 not in Classic j err Gestalt gestaltFSAttr amp response if err noErr amp amp response amp 1L lt lt gestaltFSSupportsExclusiveLocks hPB ioParam ioVRefNum vRefNum hPB ioParam ioNamePtr NULL hPB ioParam ioBuffer Ptr amp volParmsBuftfer hPB ioParam ioReqCount gizeof volParmsBuffer is err PBHGetVolParmsSync amp hPB if err noErr exclusiveAccess volParmsBuffer vMExtendedAttributes amp 1L lt lt bSupportsExclusiveLocks 17 SAMPLER 2006 j return exclusiveAccess To check if a volume supports byte range locking via PBLockRange you should check the bHasOpenDeny bit returned from GetVolParms See Technical Note 37 http developer apple com technotes f fl_37 html for more information about PBLockRange details Common Workarounds The following two techniques are frequently used to work around this issue on platforms that do not enforce exclusive file access Lockfiles A common approach used by many developers is to create a lockfile in the same directory as the file being opened Whenever opening a file foo for instance with write access you first try to create a lockfile foo lock in the same location If the file creation fails because the file already exists you assume foo is already open by ano
168. nts but users can also opt for PIN pad tokens key chain tokens or software tokens Each form factor offers unique advantages and characteristics enabling organizations to tailor their authentication solution according to their own needs Hardware tokens feature field replaceable batteries that can be swapped in service to extend device lifespan indefinitely We are pleased to report that our experience testing the new Tiger product was a good one The CRYPTO Server package contained everything required to set up the solution and the instruction manual was clear accurate and easy to follow The product emphasizes ease of use and tight integration with Apple s Open Directory LDAP services and as a result installation was straightforward and relatively painless There are also features that will simplify implementation in a real world environment such as a self enrolment component called CRYPTO Deploy which 112 SawPiER e 2006 kiy Mangement and Authentication for Mac OS X v10 3 and 10 4 enables users to remotely assign and activate their hardware tokens via a Web page Once the CRYPTO Server install is completed a user will need to install the CRYPTO Console module an intuitive Graphical User Interface GUD which provides the management interface to CRYPTO Server CRYPTO Console enables administrators to manage tokens users in non LDAP deployments and groups while also providing server licensing system configurati
169. ode to safeguard your users from problems Defensive programming is definitely the name of the game here It s also recommended to support caching in your RSS applications If third parties are kind enough to offer you free content for syndication be considerate of their server bandwidth by caching the feed content temporarily on your end and only retrieving a fresh feed at timed intervals For those of you who want more out of RSS the 2 0 specification allows you to extend RSS with namespace defined modules If you re not familiar with namespaces they are part of the XML specification that RSS 2 0 supports as an easy way to extend the feed format for custom purposes For more information on using namespaces to extend RSS 2 0 visit http www reallysimplesyndication com howToExtendRss And last but not least once you have your own RSS feed available on your site it s easy enough to add a link to it on your home page using one of the popular chicklet buttons shown in Figure 1 but how do you get Safari and Firefox to automatically recognize your feed see Figure 3 with that dynamic feed icon in the location bar and status bar respectively Figure 3 Dynamic feed icons in Safari and Firefox The answer is actually quite simple requiring only a single line of HTML code Nested within the head tag of your web pages add the following meta tag with the href attribute set as the direct URL to your RSS feed lt li
170. of course only in MacTech I ve managed to simplify the install quite a bit thanks to the hard work of the folks at DarwinPorts http darwinports org Welcome This article is going to have a few sections First we ll get DarwinPorts installed and configured Then we ll use it to install the backend components Nagios needs Third we ll do the actual Nagios installation and the plugin installation Then we ll go over some of the basics of configuring Nagios Note that this applies to the current version which is 1 2 Version 2 0 is in final beta but I prefer to wait until that s done before installing it on production systems We should also talk a bit about what Nagios is Nagios is a network monitoring tool It allows you to monitor services running on various hosts on your network For example you can monitor your switches to ensure they re working or you can monitor various critical server processes on an Xserve like the KDC process AFP processes etc You can with various plugins from the Nagios Exchange site at http Awww nagiosexchange org monitor internal counters on Windows servers too If you re skilled with Perl or any one of dozens of programming languages you can write your own plugins Darwinports DarwinPorts like Fink or any other of a dozen ports management systems is a way to SAMPLER 2006 make installing and configuring software easier If you compile and install open source software manuall
171. of processes can have a shared read lock on a given byte but only one process can have an exclusive write lock on a given byte To obtain a read lock the descriptor must be open for reading and the region cannot have an exclusive write lock To obtain a write lock the descriptor must be open for writing and the region cannot have an exclusive write lock nor any read locks WWW Leap ahead Get r mu zd I 1 AM WEE M Intels commitment to Apple isn t just about hardware It s also about offering development tools that use the power of the processor to take your applications to the next level With support for Apple development environments and languages such as Xcode and Apple Frameworks our products work with the tools you re already using today 50 whether you build applications for physics or financial analysis Intel Software Development Products give you the tools you need to transform power into performance Software Download a trial version today www intel com software products nolimits Pug i T d E n ip M ATHE LH A r d EE EET rit E D Hf i Lae i a b Ci TR i ie iri vu ITH Al ii Now we will describe the second parameter cmd for fentl The possible commands and what they mean described in the following e F_GETLK Determine if the lock described by flockptr is blocked by some other lo
172. older Next the script will retrieve a list of selected email messages in Mail The script will then proceed to loop through each of these messages During each repeat loop cycle the script will retrieve the content of the current message and save it into a file in the output folder chosen by the user As you can see in order to provide visual feedback to the user during processing I have made use of a display dialog command within the script s repeat loop This will cause the script to display a message to the user each time the script begins processing one of the selected email messages I have configured the display dialog command to indicate the current message count as well as the total count of selected messages See figure 1 Processing message 1 of 3 Figure 1 A Basic Script Progress Dialog I have also configured the display dialog command to automatically dismiss the dialog after it has been displayed for 1 second This will ensure that the script can proceed automatically with further execution without the user being required to actually click a button in order to proceed Upon the successful execution of the previous code the output folder specified by the user should contain text files containing the contents of the selected email messages See figure 2 Archived Messages E s o 4 a x Archived Message 1 txl L Archived Message 2 001 Archived Message Jiri 5 3 items 20
173. ols are presented on login Blogs are used extensively to support publishing information and knowledge management Wikis will be available in a late summer update HetTeam Server Es available for Mac OS X Server Linux and Windows platforms and supports all leading web browsers A Web Services AP allows tight integration with other systems and single sign on We also offer a Java mobile client which can be tailored to support mobile workforce applications It has been proven in deployment serving over 10 000 users and version 2 launches at the Collaborative Technology Conference in Boston June 19 22 www ctc 2006 com NetTeam 2300 M St NW Suite 600 Washington DC 20037 USA SC ry 1 202 250 3434 info netteamconsulting com www netteamserver com OpenLDAP didn t support replicating customizations to the schema in Panther Server Replicas are attached to masters as read only copies The master slapd OpenLDAP process writes incoming changes to the directory to a file which is monitored on a continual basis by slurpd which reads the file then updates the replicas with the Idap network protocol The file slapd writes is an LDIF file LDAP information file which is also the LDAP import export format It then writes an LDIF version of the change to what is called a replication log So even if you could neatly divvy up your directory so that certain users groups and computers lived in a different OU
174. om gt Books lt category gt lt docs gt http blogs law harvard edu tech rss lt docs gt lt generator gt SpiderWorks Staff lt generator gt lt skipDays gt lt day gt Sunday lt day gt lt skipDays gt lt skipHours gt lt hour gt 14 lt hour gt lt skipHours gt CELIASDS tel lt cloud domain http www spiderworks com porr 80 path rpc ee eee protocol XML RPC gt lt image gt lt title gt SpiderWorks lt title gt lt url gt http www spiderworks com swbadge gif lt url gt lt link gt http www spiderworks com lt link gt lt width gt 120 lt width gt Cheight235 X hedght lt description gt Quality eBooks and Printed Books from Respected Authors at a Great Price lt description gt lt image gt lt textInput gt lt title gt Search SpiderWorks lt title gt lt description gt Search the SpiderWorks Web Site lt description gt lt name gt q lt name gt lt link gt http www spiderworks com search pl lt link gt textinput lt item gt lt title gt SpiderWorks Releases Danny Goodman s New Dashboard Book lt title gt lt link gt http www spiderworks com books dashboard php Kf lTk lt description gt World renowned JavaScript and Dynamic HTML expert Danny Goodman shows you how to build rock solid professional Dashboard widgets for Mac OS X Tiger in his new book Mac OS X Technology Guide to Dashboard Includes exclusive widget debugging tool The Evaluato
175. on and reporting functions The CRYPTO Console interface is well thought out and easy to navigate providing administrators with screens for viewing editing users tokens containers objects and attributes Search functions accept regular expressions for ease of use and the GUI architecture is logical and intuitive Becr Detailed management options are available by highlighting an object and E a then Ctrl clicking it to display drop a ee dtm rem down menu items The solution appears to be extremely flexible and can easily be enhanced and expanded with a variety of agents and plug ins that extend strong two factor authentication to existing Web mail and other security appliance infrastructure nodes For example the CRYPTO Logon for Mac OS X component makes it easy for Mac users attempting to gain secure LAN Web or remote access to authenticate themselves by simply inserting their smart card and entering their PIN All CRYPTO Server tokens generate a unique password for every logon attempt which makes stolen credentials useless to hackers while simultaneously ensuring Tiger and Panther users do not have to memorize complicated credentials CRYPTOCard points out that this can significantly reduce the help desk costs associated with password management while simultaneously eliminating the obvious security risks of shoulder surfing and users writing down their passwords WWW
176. onetheless instances in which this command will not suffice We will discuss this further in the next few sections and offer reasons as well as tips for doing more advanced compiling We will also cover what porting source to the Mac involves Where To Find Mac Friendly Source Code Although sites specifically geared towards OSS on the Mac exist they are often limited to pre made packages and can be lacking in terms of breadth and quantity of OSS software In contrast platform independent sites like sourceforge org and freshmeat net not only offer Mac specific source and binaries but also offer a rich and centralized repository for the latest and greatest in OSS I have seen many advertisements for CD distributions of 52 SAMPLER 2006 Mac compatible OSS binaries and source but have always felt that these missed the whole point of OSS To distribute up to date builds with frequent patching that frankly only a medium like the Internet will allow What s in the Source With all this talk of source code you might be wondering what it is and how it is distributed Even though compilation is usually accomplished with a simple three step command e g configure amp amp make amp amp make install knowing what to look for in a source distribution can go a long way to ensuring a successful build of your OSS Your typical source distribution comes packaged as a compressed tarball e g mysourcecode tar gz When expanded an
177. onitor to build a database create a new table then populate the table with data We did use our PHP chops to query the table and spit out some HTML with the results but that s a pretty bare bones hard coded approach A more common technique is to use an HTML form to populate the table For example suppose you were building an order entry system for your sports memorabilia shop You could use the MySQL monitor to enter all the data that represents your inventory If you are really comfortable with the monitor that s not a terrible approach But what if you want your assistant who is a whiz at the web but has no MySQL experience to manage the data Creating a series of HTML driven forms is definitely the way to go Before we dig into this month s sample code like to take a momentary detour to talk about a terrific new book I just got Hacking Mac OS X liger Back in the early days of Macintosh there were just a very few Mac programming titles One of the best of these books was called Macintosh Programming Secrets Writen by Scott Knaster and Keith Rollin the book quickly became a cult classic Well Scott is back and his latest book is every bit as cool as Macintosh Programming Secrets The long title is SAMPLER 2006 Hacking Mac OS X Tiger Serious Hacks Mods and Customizations This is no idle boast The book is chock full of wonderful insider info and is just plain fun The book starts off with a
178. our webserver The query parameter q could be some search term and the response would be the contact s name and phone number Testing such a service is easy Cable Supplies Looking for a great selection of cables MacTech has selected a quality vendor with quality products for your cable needs Benefits include _ Same day shipping if you order by 4 PM ET Express shipping orders can be ordered up to 6 30 PM ET for same day shipping Huge selection 3500 items and growing Check out the full selection at the MacTech Cable Store http www mactech com cables http localhost com service php q Jones We will then expect a response like Edward Jones 800 555 1212 Our bandleResponse functionality need to be expanded to split the response with the comma or multiple commas for more data AjaxFramework js handleResponse var data response split more advanced parsing document getElementByld contact_name innerHTML 015 document getElementByld contact_number innerHTML date 13 This example response illustrates how easy Ajax is to begin to use There is no need for complex XML parsing and handling Any simple response can be used to dynamically update web content We must be careful however as we have forced the response to return the information in a specific order and format A more robust application should use XML to provide multiple contact data The res
179. partments What a nuisance NetTeam Server brings it all together in a web app that e use anywhere What a difference NetTeam Server NetTeam Server is a business process content management collaboration and social networking web app for businesses and organizations of any size It offers people project task and document management services and has a powerful to support customization The triangle represents NetTeam Server s unique combination of functionality for three critical areas Process Content and Community We re a good choice even if you only need one of these but if your business operations embrace two or three you ll love what we can do for you Project Workspace Team Tasks Documents Content Web Content Site Management Document Library Project and Shared Blogs News Editor Users roles and relationships Simple CRM Social Networkin Profile amp Person al Blogs Het Team Server s fundamental constructs are People Projects Tasks and Documents These four are central to all business activities so we bring them together in a coherent workspace that makes HetTeam Server a true Business Operating System The portal interface can be tailored to match client branding and linked systems and includes five Editors see screenshot and a modern AJAX enhanced configurable user interface User roles determine access privileges and which if any to
180. ple com internet webcontent xmlhttpreq htm Ajax applications Tiddly Wiki http www tiddlywiki com Gregarius RSS Reader http gregarius net Basecamp http www basecamphq com Geocode lookup with source http highearthorbit com projects geocode Ajax toolsets Prototype a Javascript framework for web apps http prototype conio net Sajax Ajax for PHP http www modernmethod com sajax Ajax Framework The following files are the summation of the framework code developed in the article above It can serve as a skeleton for building your own Ajax applications Place these files in your Library WebServer Documents directory on your Mac and turn on Personal Web Sharing in the Sharing Preference Pane AjaxFramework js function createRequestObject vet Sos var browser navigator appName if browser Microsoft Internet Explorer ro new ActiveXObject Microsoft XMLHTTP Jelse ro new XMLHttpRequest j return ro j var http createRequestObject function handleResponse if http ready tate 1 4 request loading document getElementByld status innerHTML requesting 3 j else if http readyState 4 request complete if herp Status 200 1 OK returned var response http responseText document getElementByld status innerHTML loaded document getElementByld responseArea innerHTML response
181. plications We only deviated by adding additional attributes nearly all properties available in our AppleScript dictionary are available as metadata The design is intended so that scripters can use Spotlight as a quick way to query information and round trip interactions with results through AppleScript It also makes it possible to create useful queries such as all unread messages today com microsoft entourage unread 1 amp amp kMDItemContentCreationDate gt otime todsy J Importing Metadata Spotlight is designed such that it does not need to know about the file format of each file in order to index the file s contents Instead a developer provides a plug in for Spotlight that handles both reading a file and returning metadata to the Spotlight indexing engine These plugins are known as Metadata Importers and may be found Library Spotlight or are sometimes located within an application s bundle Microsoft Entourage mdimp The metadata importer plug in that s Microsoft Entourage 80 KB VU uua 396 FT used with Entourage is ng M called Microsoft TNNT Kind Metadete imponer When Spotlight comes Size BO on disk 69 719 bytes across an Entourage Went JUbran saos generated cache file Created Tuesday February 7 2006 IM Ny Spotlight passes the t my Mere ae 2000 path of the file to the ion 11 2 3 2004 Microsoft Entourage metadata E TE importer the
182. ponse handler could then iterate through the elements of the contact entry without having to predetermine the order of the response In our example if we switched the contact name and contact number order the application would behave incorrectly In this case we would instead get the responseXML and parse the XML document tree similar to the DOM of the browser document AjaxFramework js var response http responseXML var contact_name response getElementsByTagName name item 0 var contact_number response getElementsByTagName number item 0 However XML is not necessary and may be daunting when first starting to use Ajax or integrate it into already existing web services Therefore we will continue our example using the simple text response Since the XML handling is encapsulated in the bandleResponse function it is possible to later change to using XML without modifying the rest of our framework Example page To use the Ajax searching we will need to provide an XHTML user interface for the query input and the service response The first thing we need to do is include our Javascript framework code in our page 108 Sampler e 2006 lt html gt lt head gt lt script type text javascript src AjaxFramework js charset utf 8 gt lt sceript gt lt head gt Next we create the query input and Send button Note the use of the ambiguous anchor link in the bref tag We u
183. pped through the entire RSS 2 0 specification you re ready to put RSS to good use If you re only interested in building your own RSS feeds then check out the Resources section of this article for links to Mac compatible feed generator applications that can help streamline the creation process If you re comfortable working with XML you can also use a standard text editor WWW The PX500 Series works weekends and holidays so you don t have to 866 827 1500 www quantum com IT S WHAT WE 007 like BBEdit http www barebones com or an XML editor like oXygen http www oxygenxml com to roll your own RSS code To ensure that your feed adheres to the RSS specification and does not include any errors always test your feed with one of the many online validators see the Resources section for some helpful URLs If you re interested in parsing RSS in your own software projects or syndicating third party feeds on your web site the Resources section also includes links to a few of the most popular RSS parsers for various programming languages When developing your own RSS savvy application or web site it s important to assume that all RSS feeds are invalid until proven otherwise Because many of the feeds out there are hand coded they often contain the wrong text encoding attribute in the xm1 tag and or just bad XML so it s a good idea to include a lot of error handling in your own parsing c
184. r Optional The e mail address of the webmaster who oversees all technical issues related to the feed rating Optional The PICS rating of the feed which helps adults control what online content is accessible by children This tag is rarely used but for more information on PICS please visit http Avww w3 org PICS pubDate Optional The publication date of the feed which states the earliest date that the content can be publicly displayed Most aggregators ignore this tag and instead focus on the lastBuildDate tag The date should be formatted to conform to RFC 822 which can be found at http asg web cmu edu rfc rfc822 html utomate Edit optimize and convert all your images and video for optimal display on Web Office apps 3G phones iPod and portable media players with a simple drag and drop Save Time and 50 on Equilibrium DeBabelizer Pro for OS X Windows XP when you order now For a limited time only get a 50 mail in rebate when you order from your favorite software outlet Go to www equilibrium com for details and call us at B66 EQUILIB 1 415 332 4343 with any questions shi c equilibrium M m Dua Tier Serving the Meda Generation d How to Stop Racing the Clock Work Longer LJ Work Harder Energize Your Mac We know your day keeps getting longer and longer With every release of software your Mac is bogged down even more With every click there s
185. r Available as an eBook and printed edition at SpiderWorks com lt description gt lt category domain http www spiderworks com topics tiger php Mac OS X Technology Guides lt category gt lt source url http feeds feedburner com spiderworks gt Spider Works lt source gt lt author gt Dave Wooldridge lt author gt lt pubDate gt Tue 05 Jul 2005 2 37 01 GMT lt pubDate gt lt comments gt http spiderworks blogspot com 2005 07 da shboard_comments html lt comments gt lt guid isPermaLink true gt http spiderworks blogspot com 2 005 07 dashboard html lt guid gt lt item gt lt item gt lt title gt Spiderworks Interview with Ben Waldie lt title gt lt link gt http www spiderworks com books automator php lt link gt lt description gt SpiderWorks recently sat down with author Ben Waldie to discuss his new book Mac OS X Technology Guide to Automator Listen to the full interview online lt description gt lt enclosure 59 SAMPLER 2006 url http www spiderworks com audio waldie mp3 length 243108 type audio mpeg lt category domain http www spiderworks com topics tiger php Mac OS X Technology Guides lt category gt lt source url http feeds feedburner com spiderworks gt Spider Works lt source gt lt author gt Dave Wooldridge lt author gt lt pubDate gt Mon 02 May 2005 0 00 01 GMT lt pubDate gt Xcomments http spiderworks blogspot com 2005 05 au tomato
186. r lookup is Running Netinfo Server netinfod is Local only LDAP Server slapd is Running Kerberos is Running Figure 1 Open Directory Overview in Server Admin If the overview indicates that your server s Connected to a Directory System then you should change the role to Standalone Server reboot for the sake of superstition then 32 SAMPLER 2006 change the role to Open Directory Master If your server is a Standalone Server then you re good to change the role to Open Directory Master as well Just like an ordinary Tiger workstation Tiger Server when configured as a Standalone Server simply stores its Directory data in its local NetInfo nidb database It isn t until Tiger Server is promoted to borrow a Microsoft Server term that the OpenLDAP Server daemon slapd starts There is however one big gotcha to be aware of in order for the LDAP configuration to finish properly the DNS service needs to be set up to a T so that the server can resolve its own host name and reverse its IP address without errors otherwise LDAP may not behave as expected nor will the Kerberos KDC Key Distribution Center process start up automatically as it should Luckily setting up the DNS service properly has never been simpler than with Tiger Server you may have heard that some sysadmins think that the new DNS GUI in Tiger Server is a step backward from the one in Panther and while I agree Apple ce
187. r_comments html lt comments gt lt guid isPermaLinuk rtrue http 7 spiderworks blogspot oom 2 005 05 automator html4 guid lt item gt lt channel gt lt rss At first glance Listing 1 looks like a typical XML document but what sets it apart as RSS is the way the XML data is structured The root element is of course the rss tag Nested within that tag is the channel tag It s within the channel tag that the meat of the document is stored Figure 2 breaks down the main ingredients of this RSS example into groups providing you with an easy way to visualize the XML code in Listing 1 Figure 2 The RSS example broken down into basic groups of elements The groups within the channel tag consist of two groups of data 1 channel elements that describe details about the RSS feed itself and 2 items that hold your news stories podcast audio tracks etc While Listing 1 and Figure 2 only include two items for example purposes you can add as many items as you want to your own RSS feed Defining Your RSS Feed As shown in Figure 2 before your actual news items are listed your XML needs to include some basic information about the RSS feed itself These tags are called channel elements and include important information like the title of your feed the content s copyright the date the feed was last updated etc Only a few of these elements are required but the more information you provide the more efficiently the
188. re no jobs running whether the grid is the default one for the controller isDefault YES and the name of the grid name Xgrid Let s run a job tigerl2 norburym xgrid h norburyml5 local Job run bin sh c cal 2005 This command initiates a job that calls the default month s calendar When we hit enter and take then run over to take a quick look at the Xgrid Admin GUI app on our controller norburym15 we can see some information while the job is running Here s the Overview tab with a job running Figure 7 Xgrid Overview During Job Run Click the Agents tab WWW MACTECH COM Innovations by InterSystems Easy database administration Massive scalability on minimal hardware The Object Database Created With Several Objects In Mind Cach is the first multidimensional database for transaction processing and real time analytics Its post relational technology combines robust objects and robust SQL thus eliminating object relational mapping It delivers massive scalability on minimal hardware requires little administration and incorporates a rapid application development environment These innovations mean faster time to market lower cost of operations and higher application performance We back these claims with this money back guarantee Buy Cach for new application development and for up to one year you can return the license for a full refund if you are unhappy for any reason Cach is available for Unix
189. re that identity lives in the LDAP Directory along with of course the password necessary to authenticate so that you may do the business admins do 38 SAMPLER 2006 Your DN would be something like uid ldapmin cn users dc nagitest dc macworkshops dc com And your password would be of course your password If everything was configured copasetically then you ll see the promised land which consists of this y Request ature 4f Report a bug Q Donate Help 5 Nagitest gchama eevee etree info mess goed ego Logged n aa uid Dn Weer c nagitest smacworkshops depim W dcsnagitest de macworkshops dc com Figure 8 Successful Login to the LDAP Server It doesn t take a whole lot of figuring out at this point that its the plus signs that expand or collapse the LDAP view hierarchically just as in Windows Explorer or Novell Console One Now some of the new features of Open Directory 3 become starkly apparent we don t even need to read the Server Documentation although you really really should for a deeper understanding of Open Directory and exactly what its specifications are After all its open as in Open Source and open as in the sense that all of the directory data is presented in that documentation Here s what the first level of an OD master looks like at first glance gitur cen ess rper 1 aspe Commu d tagged sm a oe cre n po Boreae t
190. read the word We re easy to work with and provide old style phone contact as well as in person and VNC tech support Contact us today and see what s possible www seefile com 617 262 2464 info secfile com seefile LIVE FRE ARs E Editing rone Zone Name Fui Qualifird Mare mesh Server IP Address 192 1680 85 Server m Figure 3 Zone Setting Screen At this point everything should work if you save your changes and then click the big green Start Service button but I ve developed a ritual that dates back to the OS X 10 1 days It s called digging DNS and consists of two simple tests to verify that the DNS is humming along First test the forward lookup record like so mostsvr mostadmin dig mostsvr macworkshops com X DIG 9 2 2 lt lt gt gt mostsvr macworkshops com global options Got answer gt gt HEADER lt lt opcode QUERY status NOERROR id 39577 flags qr aa rd ra QUERY 1 ANSWER 1 AUTHORITY 1 ADDITIONAL O0 QUESTION SECTION mostsvr macworkshops com IN A ANSWER SECTION mostsvr macworkshops com 86400 IN A 192 168 0 85 AUTHORITY SECTION macworkshops com 86400 IN NS mostsvr macworkshops com Query time msec SERVER 192 168 0 85 53 192 168 0 85 WHEN Thu Aug 18 08 13 52 2005 MSG SIZE revd 72 DIG is shorthand for Domain Internet Groper w
191. rform operations Server Send the response to the client Client Handle the server response Figure 1 Asynchronous communications allow a user to continually interact with the browser and provides dynamic updating of the web site gt 4 E A d Ls Ln g NE wae glos z The client requests to the server can happen continually updating the web page or application on each response received Each request happens separately from the interface allowing the user to continue to view and interact with the web page However it is a good idea to only support a single asynchronous command at a time as the response may affect the interface data If multiple asynchronous requests are supported you must be careful to handle potential conflicts due to user interaction with outdated data Create a request object The first thing to do is to create a constructor that will build a client side request object A request object is responsible for wrapping up the actual request response handler and state of the request Remember that this Javascript code is being run on the user s desktop browser Therefore creating the request object is the one place where browser specific code is required In this case Microsoft s Internet Explorer uses an ActiveX object as the request object whereas the other browsers all support an XMLHttpRequest constructor call We can interrogate the browser to find out what type
192. ronous communication means that commands do not need to wait for a response By contrast synchronous communication requires the command to wait for a response before continuing An example of synchronous communication is a typical hyperlink the user clicks a link and then waits while the resulting page is requested returned and displayed An 102 Sampler e 2006 BY ANDREW TURNER asynchronous example may be having a contact name and phone number lookup with dynamic autocomplete with names already in the database For application developers it may be useful to think of synchronous communication as modal while asynchronous is non modal Javascript is the client side scripting language that has been used to implement the input output and server response handling Because the code is client side it is fast and scales up with increasing usage The last part of the AJAX acronym is XML extensible Markup Language which is used in the response to encapsulate information By using a structure like XML the client can parse the tree for specific data without having a predetermined order of the data As we will discuss XML or Javascript are not required to implement Ajax in a site Ajax uses several other technologies and functionality to work XHTML and the Document Object Model DOM allow Javascript to dynamically modify a webpage CSS Cascading Style Sheets are not necessary but are typically employed to provide for easy layout and
193. rsion 4 2 52 which is used to actually store the directory data Despite the fact that many of the initial like components of LDAP are familiar buzz words in the ears of IT professionals DN for distinguished name CN for common name O for organization name and OU for organizational unit name and DC for domain component LDAP is still often considered a black box something that s addressed mapped to queried searched or occasionally edited or backed up Aside from Novell s Console One eDirectory administration application which has a general hierarchical view of the Directory contents very few Directory Service tools including Apple s own Workgroup Manager do much to shine a light on the contents of the black box or how it s organized Luckily there s an Open Source tool that allows the curious admin a view of Apple s Open Directory with a visual arrangement that follows the conceptual structure Set up the LDAP Server Before you can use tools like PHPLDAPadmin to start examining the structure of an LDAP Open Directory Master you need to make sure that your installation of Tiger server is functioning in the Open Directory Master role You can easily examine the Open Directory data in a local NetInfo domain using the NetInfo Manager utility in Applications Utilities Open up Server Admin and click on the Open Directory service section on the left You should see the following Lookup Serve
194. rtainly knows the needs of its users better than little ol me but somehow I keep wishing for an expert look at the wording here Needs something added for it to make sense DNS editing mode that would let me easily do thing like edit reverse lookup records without having to go back into the terminal to configure DNS as I did in the days of Jaguar Server First open Server Admin and click on the DNS service on the left In the window on the right click the Settings tab at the bottom Then under the general tab on the top go ahead and uncheck the Zone Transfers box which is used only when there s a slave DNS server working with the server s DNS for extra security so that your DNS server can t be a victim of spoofing whereby a malicious process attempts to exploit the DNS replication mechanism Secondary Zones Logging Figure 2 Disabling Zone Transfers for the DNS Service Second click on the Zones tab and enter the name of your domain Notice that my default the DNS service GUI will repurpose the computer Bonjour name of your server as the hostname If at this point you want the hostname to differ its your opportunity to change it And that s really about all there is to it Apple has made it easy Now just make sure that the IP address of your server s set as the first DNS server in the list in System Preferences gt Network gt Your Ethernet Interface WWW
195. s If you would like to use advisory locks this can be done by WWW MACTECH COM following the instructions later in this article By accessing files through the application frameworks Carbon Cocoa Java in versions of the OS supporting the advisory locks feature in frameworks this will be provided automatically if you use the framework s file access methods Applications that call BSD file I O functions directly will not gain this behavior for free and therefore should be revised to set and respect advisory locks by specifying the appropriate flags when opening a file You should evaluate changing calls from fd open foo O_RDWR to fd open foo O_RDWR EXLOCK O NONBLOCK J Where EXLOCK means Atomically obtain an exclusive lock and O NONBLOCK means Do not block on open or for data to become available or Do not wait for the device or file to be ready or available Implementing Advisory Locking Anywhere you are calling the System framework version of open 2 with write access you should modify the parameters to include the EXLOCK flags and handle errors being returned where they may have succeeded in the past The open 2 call will then fail if the file has already been opened for exclusive access by another process Advisory locks are associated with a process and a file This has two implications e When a process terminates all its locks are released e Whene
196. s alike how to create an online diary or web log SPECIAL OFFER Try Lasso Professional Server 8 5 FREE for 30 days QuickPoll Add poll to your Web site with a www TryLasso com question and answers cast a vote or see results lassosales omnipilot com Collaborate Enables knowledge sharing amon did eiue GET T Then get 60 days of FREE a group of developers and administrators to support with your purchase streamline Web site development from remote locations or geographically dispersed teams Message Board Source code for the Message Board solution is completely open and expandable to suit your needs BITE NN Lasso Lreate Object Select a template for the creation process Server Teplals Bb oue Account iposizAzcaunt 7 B soma Book Eniry natOrgPwrsan semen Bock Entry ieorsaOrgPensoni roin use Eniry a Onaeizatonat Uni 5o oneamonai Row z oms 2 BR Machine 7 B Sanna 3 NT Machine 5 B oe EN 2 Senha 3 Group Mapping J Sa ONS Entry J RB Simpie secun one ii Couner Atoan eal Couner Ades 7 E LDAP La See Alun 8 Virtual Domain ai Virtual Usar La Custom s gt gt Figure 11 Create LDAP Object Next log into Workgroup Manger on the OD master and create a new admin account with full rights called facu
197. s it s the free Texwrangler 2 1 that s floating my boat along with its commercial counterpart BBedit First we have to give our configuration a name so change the following default setting Sservers Si name My LDAP Server A convenient name that will appear in the tree viewer and throughout PHPLDAPadmin to identify this LDAP server to users Go ahead and enter a name between the single quotes it s not a DNS name just a label Next we need to change the host setting so that the script can connect to the server WWW I Mirrpsatt All areni Microsalt Tour pose the Wiebe Sppes ancd or othe countea Agie ta Get in touch with your inner suit Remain a free thinker while the other you gains a reputation as serious go getter Microsoft Office 2004 for Mac has intelligent new features that help you or rather the other you keep tabs on every project every e mail and every note A smarter way to work A smarter new Office Go to officeformac cam for a free tria P Erra Your potential Our passion a Microsorr je 2004 Sservers i host mostsvr macworkshops com Examples ldap example com Now configure the base DN Distinguished Name sometimes referred to as the Search Base Because were going to be working with full DNs we ll mak
198. s rare for man idList p i AF xgrid A norburymi amp locat grid attributes gid 8 pages but then Apple wrote this one griditktributes gridisguhertr 8 ixbelault YES nose i tigerii narburyaf A morburpmi5 iocol job run hir sh c cal 28405 NOW Apple s Server Solutions site has a large section devoted to their proprietary tools for cluster computing http www apple com xserve cluster They provide ample information on their cluster technology solutions G5 Xgrid Xcode Shark performance optimization tool and the Accelerate framework as well as their cluster products Apple Workgroup Cluster Xserve G5 Cluster RE p Figure 9 Xgrid Jobs Tab During Jobs Run THE LAW OFFICE OF BRADLEY SNIDERMAN P and i Registration e Trade Secret Protection e Licensing and Non Disclosure Agreements e Assist with Software Audits I am an attorney practicing in Intellectual Property Business Entity Formations Corporate Commercial and E commerce Law Please give me a call or an e mail Reasonable fees 23679 Calabasas Kd 558 Calabasas CA 91302 PHONE 818 706 0631 FAX 818 706 0651 EMAIL brad sniderman com Subject HELP ing to that is going ou to find solu ye need you at our Graphics and Prepress peop Let ou our archiving process and INTEGRATE with our Filem py tomorrow New Version E AB
199. s all of your DNS stars are properly aligned Also new is the enforcement of a former best practice creating a separate admin account for the new Directory The local admin account uid 501 you might have used to administer an Open Directory master under Panther Server has absolutely no rights to the OD mater in Tiger Server However it s easy to authenticate once saving the new admin s password in the keychain of the local account you might use to log into the Server achieving virtually the same effect though in reality it s an important conceptual difference as we ll see later on Installing PHPLDAPadmin Like the SquirrelMail squirrelmail sourceforge net PHP based web mail solution and the PHPMyAdmin phpmyadmin sourceforge net PHP based MySQL Management tool PHPLDAPadmin stands out as an analogue to these other two excellent applications Being web based especially using PHP virtually guarantees that any OS with a somewhat current browser would be able to use it without compatibility headaches as all of the data preprocessing happens on the web server The first part of installing PHPLDAPadmin is a snap 1 Download the script from phpmyadmin sourceforge net 2 If you have multiple sites set up on your server already create a new virtual domain along the lines of Idap mydomain com and install the files there 3 Enable the php4 module in the Web service gt settings gt modules section of Server Admin as in the fi
200. s such as Ajax users can now complement or even replace their desktop applications with a web application Many users are now switching to reading their email in GoogleMail storing their documents and notes in TiddlyWiki reading their RSS news via Gregarious or working with colleagues in BaseCamp Adding Ajax to your own web site or web application provides a much smoother and rich user experience Furthermore Ajax websites more closely imitate their desktop counterparts allowing users to interact and understand the user interfaces in a similar way Ajax is also a relatively straightforward and simple technology to provide in a website Developers may quickly become confused by all of the terms techniques and options However at its core Ajax is quick to setup and begin using and completely flexible for whatever the developer and site requirements need Ajax can be used for features such as inline form validation database queries content editing drag and drop page updating and many others setting up the framework Parts of Asynchronous Communications In order to understand the essential parts of an Ajax framework we will discuss the necessary parts of asynchronous communications The parts are split up by Client the users browser and Server the website hosting server Client Create a request object Client Assign a response handler Client Send a query to the server Server Receive the query and pe
201. sages Enter the following code into the script repeat with a from 1 to theMessageCount end repeat Updating the Progress Text The following code should be added immediately within the repeat statement It will update the text field in our interface to indicate the current message being processed As in our non AppleScript Studio example this text will tell the user the current message count as well as the total message count set contents of text field Progress Text of window Progress Window to Processing message amp of amp theMessageCount Getting the Current Message s Contents Next add the code below which will retrieve the content of the current email message tell application Mail set theMessageContent to content of item a of theSelectedMessages end tell Saving the Contents to a File Again using the exact code from our non AppleScript Studio example add the following to your script This code will write the content of the current message to a text file in the specified output folder WWW MACTECH COM set theArchivePath to theOutputFolder amp Archived Message amp a amp txt as string set theArchiveFile to open for access theArchivePath with write permission set eof of theArchiveFile to 0 write theMessageContent to theArchiveFile close access theArchiveFile Updating the Progress Bar Finally for the last section of code within the repeat loop add the fol
202. se an bref link to allow standard style formatting of the Send button to match the rest of the sites hyperlinks By using the local anchor but with no actual anchor the hyperlink won t cause a page refresh since the browser thinks it is just scrolling down the current page Another option would have been to use a generic div and provide a unique formatting for Ajax link as compared to actual hyperlinks lt body gt lt input type text size 30 id queryInput value lt a href onClick sendRequest gt Send lt a gt lt div 2d etarue lt div id contact_name gt amp nbsp lt div gt lt div id contact number bnbspiX div lt body gt lt html gt When the Send link is pressed the queryInput text input is sent as a query to our name lookup service The user is free to continue to use the web browser When the response is sent from the server the retrieved name and number are placed in the contact_name and contact_number divs A more advanced version of this application could add in line searching of the contact name as the user types similar to autocomplete Summary Ajax is quickly transforming websites from repositories of data into dynamic and useful web applications This article demonstrated how easy it is to get started with Ajax and add it to your own site Some examples you can use it for include form checking while the user is entering informatio
203. son B will now be sharing the same session Either user can type and both will see all screen output What s nice about this is that if there are any sensitive passwords to type and only one party knows them you can let the prompt come up and let the appropriate person type it All good things Those 5 uses are the most common ways I use screen Of course there s plenty more in its top hat of tricks Since you can detach from a running session of screen what happens if you start a new session of screen after detaching Well you ll have two separate sessions of screen running If you detach WWW MACTECH COM from the second session and try to reconnect you ll realize that you have to tell screen which one to reconnect to screen r There are several suitable screens on 3848 ttypl Jack Kerouak Detached 574 ttyp2 Jack Kerouak Detached Type screen d r pid tty host to resume one of them If I want to reconnect to the second session I can tell screen that with the command screen r 574 You can also find out this list anytime by using the list flag screen list There are screens on 3848 ttypl Jack Kerouak Detached 574 ttyp2 Jack Kerouak Detached 2 Sockets in tmp uscreens S marczak Note that the sessions here are exclusive to a single user id You won t pick up the detached sessions of other users If something goes awry and instead of Detached one session says Dead you can clear out
204. swgsnr d inp d mus ro 1 ee Mus ida and a ee ee on auras Far abii he ssharms Goel 8 me ii LE ee Film zm po ugue Ca Email bi Dasjcrm pes wes et eee m PR ing A epee th ee dH pantig Piles Une zmtarmirss et bium pet meet ioe hae Hopes F pra umep gumrtluew nk qan uris Cie mum mui ms a cope mig FER dian TM Tr a de Fije ambire uk big ms iura per pui ndo murttiun Eo sew cz Tn ee ey ALim mea Dare 5p remp Dade Pei pore ree Dag rui bwip stays sme Lew iu uh ei ef gia pe ring eevee wi Le ples gun oe ee res rce por oi Fe he grprap ed Fe ihe ing fi in Pur thee ot veu ee infapmatad cert s Ng Ge Pk ee Nri ue de Enim adi Sab ee aa DID e gs Pe i Figure 4 Completed make all screen sudo make install If the make install goes well you ll get another status screen telling you so sudo make install commandmode This command sets up the external command directory for you important if you want to extend Nagios beyond the basics sudo make install config This sets up the sample configuration files whic
205. syntax of the image tag and its nested sub elements textinput Optional This rarely used tag is ignored by most aggregators It provides a way for aggregators to submit a search Gf your site has a search engine or submit user comments if your blog accepts user input If you decide to include this tag in your feed it requires four sub elements title description name and WWW Intego Personal Backup X4 Back up and protect your digital life Toolbar Choose the operation you want to perform backup restore clone synchronise move and archive your data Script creation Create and edit backup scripts andl use multiple options and excermiors Source Select what you want to back up by simply dragging and dropping it onto the Personal Backup x4 interface Destination Back up your date to hard disks CDs DVDs iPods USB drives is ks etc Status information Display the progress of your backup as well as information about the files being transfernecd Quick launch Start and stop your backup task with a single click Scrolling display View the selected backup script option in the strolling display ___ For Macs hae i with PowerPC Statistics and graphs or Intel processors See the speed al your data transfer bn real time Intego Widgets Compatible with iPod Integration with iCal Your updates with NetUpdate 4 Discover the
206. t lt lt b gt Big lt b gt News gt lt description gt or convert all HTML brackets and special characters into XML safe entities such as lt description gt My amp lt b amp gt Big amp lt b amp et News lt description gt Reviewing an Example To get a feel for what we are talking about here let s take a look at an example RSS feed RSS is short for Really Simple Syndication and as you ll see from the XML code in Listing 1 the format really is quite simple overall RSS 2 0 feeds can be saved with a file extension of either rss or xml Listing 1 shows an RSS feed that includes two items The first one is a typical news item while the second one contains a media enclosure similar to what you would find in a podcast Listing 1 An RSS 2 0 Feed Example lt xml version 1 0 encoding UTF 8 5 lt rss version 2 0 gt lt channel gt lt title gt SpiderWorks News lt title gt lt link gt http www spiderworks com lt link gt lt description gt Quality eBooks and Printed Books from Respected Authors at a Great Price lt description gt lt language gt en lt language gt lt copyright gt Copyright 2005 SpiderWorks LLC A11 Big Security for the small business CRYPTO Server 6 3 is the Mac centric authentication solution for IT infrastructures organized around Mac OS X Once implemented your Mac becomes the centralized authentication and token management system for all users re
207. t a Google list of pages to look at Here s a good place to start http us3 php net reserved variables You ll need to search the page for PHP SELF Note that the is not part of the variable name lt form lt SELF gt method POST Name The two lt input gt tags specify a text field and a password field Both do the same thing but the password field echoes input as dots instead of the actual characters Note that the name attributes of each lt input gt tag are what link the results to the _POST associate array index lt input type text name name gt lt br gt Password lt input type password name pwd gt lt br gt Finally the last bit of lt input gt for the form is the submit button lt input type submit gt lt form gt lt body gt lt html gt Type your name and password again and again Each time you click submit the page reloads draws your name and password and then redraws the blank form Cool Adding MySQL to the Picture Our next step is to add MySQL to the picture We ll build a database using the MySQL monitor create a new table then use the form we created to populate the database If you are new to the MySQL monitor go back June s Getting Started column for a review Fire up Terminal and start the MySQL monitor As a reminder I set up an alias for mysql alias mysql usr local mysql bin mysql Here s my s
208. t totally Open Source itself has become one of the leading OSS platforms A Call To Arms Although OSS is free characterizing it as simply free software misses the essence of the OSS philosophy and the hacker ethic from which it originated The open source movement along with the 54 SAMPLER 2006 Internet has enabled developers to adopt a radically different development model This new model termed the Bazaar by Raymond has and continues to prove itself as a preferred model for software development and distribution and will continue to make inroads into virtually all areas of the technoverse Built on a foundation of cooperation group effort and imbued with a spirit of play and intellectual curiosity OSS represents a novel paradigm for the exchange of ideas and has the potential to fundamentally alter how we think of and use technology Moreover the detailed philosophies coming out of the open source movement offer a dramatic and compelling alternative to the traditional Protestant ethic which values work for work s sake The vision presented by the OSS movement is of a more evolved and egalitarian society in which the joy of hacking transcends the Protestant work ethic As part of the Mac community it is our collective responsibility to not only take from the rich array of OSS but to give back as well For developers the meaning here is very clear However non developers are far from excluded and pla
209. ted with an inactive identity As you can imagine in scenarios where many people use the same account on a Mac and then differentiate identities in Entourage Spotlight could become pretty useless when trying to find specific e mail items as search results intermix results across multiple identities For that reason Microsoft recommends that in situations where multiple users will want to use Spotlight search with Entourage users should have their own user accounts set up on the Macs Removing Spotlight from Entourage There are a number of reasons a system administrator might want to completely disable Spotlight searching in Entourage First multiple user accounts on a machine are not always practical In some cases schoolrooms use a single account per classroom and kids are able to check their e mail by simply switching identities in Entourage On a machine with many dozens of identities using Spotlight to find anything could be pretty difficult Second the cache used for Entourage content does take disk space In a scenario where a user has a large entourage database or there are multiple accounts on the machine with large databases disk space can potentially become an issue Finally there are privacy considerations around using Spotlight searches on Entourage content especially if multiple identities are used on the same user account Even if the searcher can t see the e mail that s returned they might be able to get more informa
210. the name Progress Parts for Every Mac Syst Ws pr WIZ the mac resource a BRW G4 PCI AGP Graphics Gigabit 5199 Digital Audio 5239 Quicksilver 5449 Mirrored Drive Doors 54 iMac Logics From 569 4 iMac Logics From 5199 Towers and Xserves 5149 129 179 iMac 15 17 20 iMac 17 20 5149 5179 Tower 5169 5199 Quicksilver 5179 Digital Audio 189 Gigabit Ethernet 5199 AGP Series 237w 219 AGP Series 208w 5179 Mirrored Drive Doors Wireless Products Airport Cards Extreme 69 99 Standard 5139 99 Routers 59 99 1 Thousands of par in stock for al Mac systems Apple Mice 19 569 Apple Kbds 519 549 Kensington 4 btn 19 1 888 Mac Resource u 579 5997 5119 gt Window into the Name field See figure 7 The process of assigning AppleScript names to the other interface elements will be the same Name Progress Window Figure 7 Assigning an AppleScript Name to the Progress Window Select the progress indicator bar and text field in the window and assign AppleScript names of Progress Bar and Progress Text respectively As the last step in configuring the progress interface we must configure the solution to run our AppleScript code when launched This will be done by enabling an event handler To do this first select Files Owner in the MainMenu nib window A list of available event handlers w
211. ther application Upon closing foo the application is also responsible for deleting foo lock A strength of this technique is it only makes one assumption about the underlying file system the file creation operation is atomic The obvious weakness is that since there is no OS support for this method each application is responsible for implementing its own lock file mechanism and there are no agreed upon standards or conventions for the naming of lock files Edit a Copy Another workaround relies on operating on a unique copy of the file When a file is opened for editing a duplicate of the file is created in tmp directory with a unique name and opened When the user tries to save the document the modification date of the original is matched against the date cached during the open of the file If it has changed you know the file was modified MAC OS X Solutions BSD Advisory Locking Although Mac OS X s BSD subsystem does not implement provisions for exclusive write access i e mandatory locks it does provide advisory locks An advisory lock is a voluntary locking mechanism in which the underlying file system maintains a linked list of record locks As long as your application and other applications respect the locks only one application at a time will have write access to a particular file Since these locks are voluntary it is the choice responsibility of the application developer to respect or ignore advisory lock
212. ther than those that I have specified your required terminology may differ slightly from that which I am using in this article Create a new project by selecting New Project from the File menu in Xcode When prompted select a project type of AppleScript Application from the list of available project templates enter a project name of Archive Selected Messages and specify an output folder for the project Xcode will duplicate the AppleScript Application project template into the specified output folder and open it for you See figure 3 amp 9 OF ET Ward lit ui La inm Panem 0 0 0 0505050 ll 5 D mes jf iia an 1 doe pe ae E dood ner A Ate eee Bee apu Doo eee brim erga eee E enamin h Wm 3 ees 18 jp owreg ari sires loas s Pu a Vaca Figure 3 Archive Selected Messages Project Window Building the Interface Next we will create an interface for providing progress information during processing Double click on the MainMenu nib file within your Xcode project window This will open the project s default view in the Interface Builder application 94 SAMPLER 2006 Designing the Window By default the project s interface should already contain an empty window view This window will be the basis for our interface Click on the window and give the window a name by entering Archive Selected Messa
213. ti purpose features RSS 2 0 is quickly becoming one of the most popular flavors for content syndication providing site owners with a powerful vehicle for delivering a lot more than just news Have you ever subscribed to a podcast Yup you guessed it podcasts are RSS 2 0 feeds How RSS Works Before we dive in lets dispel the most common misconception about web feeds While many people use 56 SAMPLER 2006 By Dave Woolridge Hl the word broadcast to describe online content syndication web feeds are not transmitted like radio or television signals They are not beamed or sent to subscribers A web feed is nothing more than an XML document that resides on a web server This means that your news reader software or web browser is fetching the RSS feed from a specified URL just like it would do to access an HTML web page The reader browser software then parses translates that XML document providing it to you in a display format that s easy to read When using a news reader application such as NetNewsWire or NewsFire or an RSS savvy browser such as Safari or Firefox subscribing to an RSS feed is like adding a bookmark to your favorites list The only difference is that an RSS feed will get automatically checked for new updates on a regular basis which requires the reader browser to go fetch the XML document from the feed s URL at each timed interval XML Syntax Since we ll be taking a look at the structure of an R
214. tion than the user wants them to have about items returned in a search To completely disable Spotlight in Entourage simply remove the Microsoft Entourage mdimporter plug in WWW THINGS MADE IN CHINA COMPRESSED BY STUFFIT DELUXE am hear como e 16 fee eee OF z ime Htm 2 ETAT ou e Bom ies ae gh I ww joo i taj 3D r TE l iwi y ie nup HON 8 anale ge iow e TU 171922215 elie sh ee Ag Ta e Sia Mameta Lit i a lt 5 0 seit Pout 2 i g Fer Po ee red ee Le 1 0 lane Mume ceci ete RELI CETT Me c LE pi Sastre Mei n t bore m jmd 6 m az Le Be ya ag sg gt 4 F ae 9 nis EM 7 pe aS BM D ors co Ilt i agd TAP ee pee ad L Rel os se a F Te d fe LS ion pm Sr tal t A geo ae Lasgo rins M uM m8 T Bes TITM eRe Primes Spree ie Gr 2 8 8 mt ite 3 9 ar MUS TII Bies T TETEE a TA m AELE TILI O fe p nh Deo pa ES ELI d j Eaua EL D LY E m tams ig omi TE Lre ml i e if e
215. tl h gt Returns 4l Of error int fentl int filedes int cmd struct flock floekptk 7 Js We ll start with the third argument flockptr which points to a flock structure struct flock short 1l type F RDLCK shared read lock or F WRLCK shared write lock or F_UNLCK unlocking a region d Off t l start offset in bytes relative to 1 whence short 1 whence SEEK SET file s offset is set to 1 start bytes from beginning of file SEEK CUR file s offset is set to its current value plus the l start which be or SEEK END file s offset is set to the size of the file plus the l start which can be off t 1 len length of region in bytes special case if 1 len 0 it means that the lock extends to the largest possible offset of the file This allows us to lock a region starting anywhere in the file up through and including any data that is appended to the file pid t 1l pid returned when cmd F GETLK This structure describes e The type of lock desired i e read lock write lock unlock e The starting byte offset of the region being locked or unlocked 1l start and 1 whence e The size of the region 1 len To lock an entire file set start and whence to point to the beginning of the file i e startz 0 whence SEEK SET and specify a length 1 len of 0 Any number
216. tle introduction to the world of REXX JCL and HLLAPI I thought it would be great if I had another terminal here so I could compare code on one screen without having to quit out and get back into what SAMPLER 2006 I m working on Well Mr Doug who was a mainframe guy showed me a great trick shortly after Hey Ed I want to show you something really cool Look at my terminal Here I m logged into System B but if I press Fn F2 there s e mail and Fn F3 brings up my text editor And when I press Fn F1 there s System B again We use a system here called virtual terminals Did anyone ever show you that Well no they hadn t Now I had a way to be logged into several systems at once and not lose my place when I needed to switch to another All with a single physical terminal sitting on my desk The more they stay the same What does this tale of mainframe tutelage have to do with modern day OS X Well virtual terminals of course Thanks to the hard work of the GNU volunteers that have contributed to screen we have fantastic virtual terminal facilities on our Macs and Linux and IRIX etc So what right I can open up multiple terminal windows This is 2005 buddy and I m not working on some crummy old green screen got a dual WWW mega hyper super secret quad X on Intel benchmark smoking egg frying electricity sucking machine I think 16GB of RAM can handle a termi
217. tomizable Call Hold 4 or 5 Digit Dialing Optional Features Auto Attendant Call Center Reception Console WWW Com 1 877 300 3035 Ext8200 BAA Figure 8 Enabling the Launched Event Handler Adding the AppleScript code Now that you have configured your interface it is time to begin adding the AppleScript code into your project Return to Xcode and double click on Archive Selected Messages applescript file in your project to begin editing the AppleScript code Preparing the Launched Event Handler Since we configured our interface to respond to the launched event handler we will need to add this handler to our project s code If you saved your project s interface in Interface Builder then this code may have been automatically inserted for you within your main project script in Xcode If it does not exist enter it as follows on launched theObject end launched Any code that is entered into this launched handler will be executed when our project application is launched As we proceed enter all code below within the 1aunched handler Get the Output Folder It is now time to begin adding the processing code to our project Begin by entering the following code which will prompt the user to select an output folder Take note that this code is identical to that used in our non AppleScript Studio example set theOutputFolder to choose folder with prompt Sele
218. ton becomes a Stop button If you need to change settings later you will need to stop the agent modify the settings and start it again 10 Open the Energy Saver Pref pane and set Put the computer to sleep when it is inactive for to Never Send an email to charlesparnot gmail com with your computer name where you are from and where you heard about the project reference MacTech please The project team will let you know about system updates Download Dashboard Widget Download the Xgrid Stanford Tachometer Widget from the Dashboard Widget section of Apple s website http www apple com downloads dashboard status xgridstantor dwidget html or from developer s site http www mekentosj com widgets xgrid Figure 2 Xgrid Stanford Widget The widget shows the total number of active or inactive agents or processors the percentage of working agents and the current cluster speed Restore Screen Saver Functionality In the developers preview of Xgrid there was a nice tachometer screen saver feature that disappeared in Tiger To get it back and view the Xgrid Stanford widget as a screen saver download either of these screen saver modules that allow Dashboard widgets to move about your screen during idle time Amnesty http www mesadynamics com amnesty saverhtm or Dashsaver http highearthorbit com sottware DashSaver In this example I ve chosen to download Amnesty 1 Drop the Amnesty Screen Saver sa
219. tors when a space character just won t do For example in the code below we used the braces to set off the name _POSTI name without putting a space between the end of the variable and the period This lets us put a period immediately after your name Note that we included the br HTML tag in our output Remember the PHP code spits out HTML as its output and then the HTML is passed back to the browser The br tag is used to put a return after the name and again after the password lt php if lempty S_POST name echo Your name is POST name lt br gt echo Your password is POST pwd lt br gt 25 WWW MACTECH COM p to Date Is this project on schedule When are you available to meet about the systems upgrade Where are all the field techs today When was the last time anyone talked to our biggest customer Virtually all groups live or die by their abilities to meet deadlines and keep track of their customers prospects and vendors Few small companies or even departments of big componies have the tools they need Now Up to Date A Contact might just be the calendar and contact software tor you It s time tested and used by more Mac based companies than any other solution And it s cross platform available for your PC users too It s easy to install and manage and simple for your employees to understand and use Using Now Up to Date amp
220. ttp 127 0 0 1 davemark php_torm01 php Be sure to replace davemark with your own user name Also be sure to keep the tilda Once you enter the URL you should see results similar to those shown in Figure 1 If you don t be sure your PHP server is running To do this create a new plain text file named test php fill it with these 3 lines of code lt php phpinfo 2 Drag the test file into your Sites directory and type this URL into your browser http 127 0 0 1 davemark test php Remember to replace davemark with your user name If the large PHP table appears in your browser PHP is running and you ve got an error in your version of php_formO1 php If the large PHP table does not appear go back to the installation instructions for PHP and make sure your server is up and running WWW MACTECH COM DON T LET YOUR MAC e WIND DOWN CLEAN UP YOUR MAC UNINSTALL APPLICATIONS BOOST PERFORMANCE REGAIN LOST DISK SPACE INCLUDES FULL VERSIONS OF TECHTOOL PLATINUM SPRING CLEANING DANTZ RETROSPECT EXPRESS i1l 9u5iH5 MAllume M Systems A Division of Smith Micro Software Available from i inl retailers and auo t Learn more about Checkit at Allume com formance Suite i the most powerful ta l to diigi ean optimize back up and repair your Macintosh a Thi and ET el ihi mui Figure 1 The Sample PHP Form in action Click in the Name field and type your name
221. u wish to run jmeter from the command line you will need to make the script executable using the chmod command For command line interactive use please refer to the Getting Started 118 SawPiER e 2006 section of the JMeter user manual http jakarta apache org imeter usermanual get started html eot Apache JMeter file Edit Run Options Help Test Plan Mame Test Pian Comment User Defined Variables Add _1 Fun each Thread Group separately Le run one group 5 Figure 3 JMeter s main window JMeter in Action In this example we will create a test plan that simulates 10 users initiating simultaneous requests to 2 different URLs and which repeats the test 100 times Begin with the addition of a new Thread Group by right clicking or control clicking the Test Plan element in the left pane and selecting Add gt Thread Group Next select the Thread Group element to display its configuration window and set the Number of Threads to 10 representing users the Ramp Up Period to 0 to initiate all users at once and the Loop Count to 100 Apache JMeter Rum Options Help Thread Group Name Thread Group Action to be taken afer Sampler error WorkSench Continue Stop Thread Stop Test Thread Properties Number of Threads 10 Ramp Up Period secandse o Loop Caunt Forever 100 _ Scheduler Figure 4 Configuring Thread Group element To add the next element of our t
222. unbroken quoted string in your source code After the if statement we close the database Each time this page is loaded the data base is reconnected worked with then closed again Some people put the mysql closeO at the very bottom of the file just to make sure they don t accidentally place code beneath it lt php if lempty POST name Stempname POST name Stemppass POST pwd Squery insert into passwords values Stempname Stemppass 0 Sresults mysql query Squery or printf Query error s mysql_error j mysql close 2 The rest of the code is pretty much the same as what you had above the implementation of the form and the close body and html tags lt form action php PHP SELF gt method POST Name lt input type text name name gt lt br Password lt input type password name pwd gt lt br gt lt input type submit gt lt form gt lt body gt lt html gt Running the MySQL Form Let s take this puppy for a spin First be sure you saved your source code and copy the file to your Sites folder In your browser type this link http 127 0 0 1 davemark php_torm02 php 13 SAMPLER 2006 Note that I saved this new version of the source code as php_form0O2 php Be sure to change davemark to your user name Once the table loads enter a name and a password see Figure 4 and c
223. up a htaccess file in the cgi bin directory and then set up the passwords Create a file named htaccess in Library WebServer CGI Executables and set it up thusly AuthName Nagios Access AuthType Basic AuthUserFile usr local nagios etc htpasswd users require valid user Once you ve done that save it and close it Now before we create the password file for this you want to know all the users that will be authenticating At the very least you want some sort of catchall Nagios admin user For our example we used nagiosadmin jwelch and admin Run the following sudo htpasswd c usr local nagios etc htpasswd users nagiosadmin This will create the user file that our htaccess file is looking for and set the first user to nagiosadmin You ll be asked for the password for this user set it to what you feel is correct 76 SAMPLER 2006 macforge net MacForge indexes and tracks open source projects that run on the Mac or are likely to without modification Thanks to MacForge there s no need to sift through huge listings of open source that you can t use With categories filters and more MacForge makes it easy to find what you need MacForge Your Gateway to Mac Open Source www macforge net Sponsored by MACTECH 1 L d r I i RALA bd D a d E MacBook MON ACKING CTATIANC DOCKING STATIONS available jn July New Higher
224. ussion and speculation The move from the PowerPC chip is controversial no less for the apparent alliance with a company that has traditionally been aligned with The Dark Side This has of course sparked quite a bit of online discourse about running Windows on Intel based Macs Apple is expected to use the Pentium M chip inside their next generation of desktop and portables because of its low power consumption and high performance The Pentium M is geared to deliver more performance per clock cycle in order to consume less energy which will ultimately make it run cooler than Pentium 4 chips Of note virtualization technology is built into Intel chips which will allow the machines to be partitioned to run different types of software like Windows or Linux at once on top of Mac OS X And hardware virtualization enables a system to run at near full speed Apple has issued several statements saying they will not prevent Windows from running on Intel based Macs but they will not allow the Mac OS to run on Gas Is Getting Expensive Time is Gas The Internet is NOT a cloud It s your Help Desk might as well be global Mac HelpMate Professional Zero Configuration Branded Remote Support Service a real good thing www MacHelpMate com non Apple machines In fact the Macs shipping as part of the Developers Transition Kit sport a security chip called the Trusted Platform Module that contains an encrypted serial numb
225. v sen din rates with existing FileMaker gai more information at www tmSQL Synch com Mac OS Timbuktu Pro version 8 6 Skype Internet telephony integration Universal binary support for Macintosh For IT professionals telecommuters and those on the go Timbuktu Pro is the award winning standard in remote control technology for access to remote Windows and Macintosh desktops on LANs WANs the Internet or through Skype telephony connections For nearly 20 years Timbuktu Pro has made it simple to find connect and control remote client machines from anywhere Download a free evaluation at www timbuktupro com netopla BROADBAND WITHOUT BOUNDARIES Pro amp f wots with softwaru This product uses thao but e not endorsed ur curtifiad by Skype Skype ri tradeeark od Skype Technologies A in Luxembourg end uther countrion D 2006 Noon inc Al nghas reserved Natapia ra Natnpia dusign and ma regisrasad crasdamarke Bxdonging n Nocona Ine regimared inthe 5 Pram and Trademark Office Al otha mrademaris asm tp property of eir euapectiep cnra Whenever possible metadata provided by Entourage is designed so that attribute names and values match those used by an analogous Apple application e g message title We hope that this will allow anyone who builds a solution on top of Spotlight may easily support Entourage alongside Apple s ap
226. ver a descriptor is closed any locks on the file referenced by that descriptor are released Implementing Byte Range Locking BSD also provides advisory byte range locking support through the fcntl function By using advisory locking your applications will be able to work in a cooperative with Carbon Classic and other applications in the future In these circumstances files should be opened with the O EXLOCK set and then ranges locked through the fentl call Stevens Advanced Programming in the UNIX Environment page 367 describes some techniques for using the UNIX service fnctl to lock portion of a file for reading and writing Stevens 1999 p 367 Warning A file lock request which is blocked can be interrupted by a signal In this case the lock operation returns EINTR Thus you may think you got a lock when you really did not A solution is to block signals when locking Another solution is to test the value returned by the lock operation and relock if the value is EINTR Another solution which we adopt here is to do nothing about it Recording Locking is the term normally used to describe the ability of a process to prevent other processes from modifying a region of a file while the process is reading or modifying that 18 SAMPLER 2006 portion of the file BSD provides access to its record locking mechanism through the fentl function include lt sys types h gt fHinclude lt unistd h gt jlinclude lt fcn
227. ver file into your Screen Savers directory Library Screen Savers 2 Open the Desktop and Screen Saver Pref pane 3 Select Amnesty Screen Saver from the list and click the Options button 4 Select Xgrid Stanford from the Widgets pop down list 5 Set the time for when you want your screen saver to start Roll Your Own Cluster You only need two computers to build a cluster with Xgrid one agent controller and one other agent In this tutorial we ll use three computers one 12 Powerbook named tiger12 one Mac mini named mimimini and one 15 Powerbook our controller named norburym15 8 issues of MacTech Magazine for only 29 95 over 60 off Just visit store mactech com sampler Network the Macs Together If your Macs are not already networked together you can easily do so using a 10 100Base T Ethernet hub and a cat 5 Ethernet patch cable for each Mac Connect each Mac to a hub port Your Macs are also networked if you are sharing an Airport connection but you ll obviously suffer speed degradation in this scenario Verify that Bonjour is enabled Gn Applications Utilities Directory Access app on all Macs Directory Access Server Edit Window Help enn Directory Acca Seres MES Auth aie t 4 Eraba Mame Directory AppleTalk Borgour Fur Fia mew MS id Chr rhe ic pramsperm furimar chain Figure 3 Bonjour in Directory Access Configure the Agents all Macs
228. verage the power of web services like SOAP or XML RPC to conserve server bandwidth allowing aggregators to register to be automatically notified of any updates made to the feed If you re not using SOAP or XML RPC web services on your server then you won t have a need for this tag For more information on using SOAP with the optional cloud tag visit http blogs law harvard edu tech soapMeetsRss image Optional You may have noticed that some ageregators display a logo or badge from the feed they are displaying They get this data from the image element which includes six sub elements title url link description width and height For example if you publish a sports news RSS feed called Primo Sports Plus which has its own unique logo you can supply aggregators with that logo to help brand your syndicated content There s no guarantee that aggregators will use the logo but the extra marketing potential makes it worth including title represents the ALT tag if the image is rendered in HTML and link represents the URL of your site if someone clicks on the image The url attribute should be the direct URL to the actual image file itself The image s description value is usually the same as your feed s description tag It s important to note that the maximum image width value is 144 defaults to 88 if unspecified and the maximum image height value is 400 defaults to 31 if unspecified See Listing 1 for the XML code
229. verse video 0 bash 0 is the window number and bash is the default window name give it something more descriptive Type a A and you ll be prompted with Ser window s title to bash Backspace over bash and fill in your own title for this window I m going to call mine window0 and press return While you re there get a file listing with 1s 1 just to fill the window Now for the magic type a c This will create a new window Your file listing will seem to disappear and the status line will change to read 1 bash This is simply a new terminal all in the same terminal window You can vaguely compare this to fast user switching without the cube effect or switching users window0 is still there of course Let s give this window a title right now a A and I title mine windowl On this window get a process listing with ps ax Great Now how about another window a c and you ve got 2 bash I m going to title this one topwin Of course then I m going to run top top It s great that we ve created a few windows but it s even more useful if we can move between them There s a few ways to do that Here s a quick list followed by an explanation a n next window a p previous window Aa Jump to window number a a Jump to last window like a back button You can step through each window in order with a n Try it youll wrap to window0 and se
230. w RSS Feeds Work If you re one of the millions of people who maintain your own weblog then odds are you re probably already familiar with RSS or Atom feeds since most blog tools include support for offering your blog as a syndicated feed If you don t write a blog then you ve undoubtedly seen the RSS icon displayed online see Figure 1 or have been invited by web sites to subscribe to their free RSS feeds In fact it s such a hot technology these days that you would have had to have been living off the Grid for the last few years to have not heard about RSS With aggressive spam filters making e mail communication difficult for even legitimate marketers and businesses web feeds have become a safe and dependable method for you to successfully deliver news to your audience as well as allow third party sites to syndicate your feed content for expanded reach to new viewers It s a win win situation for everyone involved Users can subscribe to only the feeds they wish to receive and third party sites are provided with free content for their sites that ultimately drives additional traffic to your site via your feed s links Figure 1 Typical RSS buttons seen on web sites and blogs commonly referred to as chicklets While the RSS and Atom formats are both used throughout the Internet for content syndication this article will focus on the RSS 2 0 specification With support for multimedia enclosures and other mul
231. will be accepted without Peten lutheriration mambar i Naturally any set uid binary brings security implications so I like the default of off for this If multiuser support with fine grain ACLs is what you need get out of screen get root and add the suid bit to screen chmod 4755 usr bin screen Run screen again and get a screen command line with a and type multiuser on Then grant another user full rights with acladd username Then username from the same system can access your session with screen x yourusername Otherwise you can always set up a dummy account that both users can access let on run screen first and the second can connect with screen x Hit the man page for more information regarding ACLs Is there more wonderment Isn t there always While Apple does place the source to screen on the Darwin source site there really isn t too much they had to change The original source compiles cleanly and runs nicely And just when I was about to say that there was a dearth of documentation regarding screen I find these while Googling about http computing ee ethz ch sepp screen 3 9 9 to and http rucus ru ac za docs screen The former is a deeper look at most commands while the latter is a really nice way to ease yourself into screen There are times wh E Ke ILUGGER Bags for ALL G5 and Int
232. y you have to figure out all the various dependencies and configuration issues yourself This is not hard per se but it is tedious Ports managers like DarwinPorts manage this for you If the DarwinPorts repository has the software you want you install it and it handles all the dependencies for you While like everything else there is any number of religious wars about ports systems I like DarwinPorts because it does the job well for me If you like Fink better great They re both really good systems To avoid modifying Apple supplied directories DarwinPorts lives in opt local If you install on Mac OS X Server then you ll already have opt it s where Apache2 is installed The advantage to this is that it makes uninstalling DarwinPorts dead simple Remove opt local and all its contents and DarwinPorts is gone since DarwinPorts doesn t have a Nagios port we can t just use it for the full install but we can use it and some other tools for the support libraries and applications Nagios needs However the first thing we have to do is install DarwinPorts itself The easiest way to do this is to get the disk image with the installer from DarwinPorts currently at http darwinports org downloads DarwinPorts 1 1 dmg Download WWW MACTECH COM Windows XP on a Mac Maybe pigs can fly m Apple Boot Camp Public Beta Apple First Look eBook can help P your Mac Fly too Boot Cam Public Beta
233. y you will run into this scenario when obtaining the source directly from a CVS Control Versioning System repository on the Net As previously mentioned you should then be able to run the configure command followed by the make and make install commands Though this is the typical manner in which compilation is effectuated be sure to read the INSTALL file as it should contain more precise install instructions The PORT file mentioned earlier offers suggestions for developers wishing to port the OSS to another UNIX platform like OS X WWW bue F b p k V2 lt miniStac EN n Newer macsales com storage The NewerTech miniStack V2 now with both mre rear and side FireWire and USB Hub ports Now uui upto 750GB Home Entertainment Audio unns pisa Video Backup Bootable Data Storage m l Dartel S Music Graphics Performance RAID amp More un 2290 y Ports g HH Other World omputing Check out our full line of 7 Pe external storage solutions Nx P Visit macsales com storage 800 275 4576 plus much more at pel Eq perre ea al ce h Wu ah WL oe macsates com 2 MO i os Wish Cina Wig A meee vs El ETA Prices ugecihcatiam and auailabillity are vabpeit to change without amtini Fromm withie Map map be To fee Baister will be etkact Briuin Mer
234. y a crucial role as software testers technical writers and distributors of OSS I urge you all to take the plunge into the world of OSS Together we can take ownership of the technologies upon which we depend and really make a Jobsian dent in the universe MI About The Author Emmanuel Stein has been an avid Mac user since 1984 and has honed his cross platform skills while working at France Telecom Time Magazine and Reed Elsevier He has recently started his own Mac centric consulting company MacVerse which offers implementation system administration and development services geared towards the enterprise market As a diehard GNU Linux geek he enjoys hacking open source software and experimenting with new open source projects on OS X You may reach him at macverse mac com M a g a z i n e Get MacTech delivered to your door at a price FAR BELOW the newstand price And it s RISK FREE store mactech com riskfree WWW Did you find this article helpful Imagine a m e MacTech is already read every month by tens of thousands of readers Readers that represent the very heart and soul of the Mac community Join the crowd and sign up risk free today Get a special deal on MacTech store mactech com sampler Missing an issue Coming soon the MacTech CD Vol 1 22 containing every issue of MacTech ever printed Deconstructing RSS 2 0 Understanding Ho
235. you get done you should not have seen any warning s or errors during the configure and you should see a status screen like the one below af Terminal 115 b nh 109837 Grii mmpis rued g Pie im dg PPP De immi meer fer region 1 7 0 02 mmi piima i Wagicw pei id deep Peru Lom filing Imt mrsctzrs1 eur ani Lie rai Erro e japa 1 Aah tr ginis ud Geos EML UE Laced keg E mipi Lem be gi Irucwwraf iE ke Wai iHi eiia Ermm uta Geel inira Breii Doe Pie i Pus ED nat film z Befauii oed i Bwimult tat i iwi nie coms piei Serie bes bees Pap iy dins Vupe eee ail bp coe te in pre aud I m ch L e g h a ee ll Figure 3 Completed configure screen You ll want to save this screen somewhere in case you aren t sure where things are With this setting Nagios is going to use the defaults for things so we ll have to change a few things First it assumes that you re going to have all your web files originating from nagios in the URLs We ll fix that later The cgi bin directory is the system default one or Library WebServer CGI Executables That we ll leave alone WWW MACTECH COM TIMATESD AQUARIUM
236. you want to see all the status messages for a selfupdate then run sudo port d selfupdate which enables debug mode for that command you ll get all the status messages Below I have the two screenshots for the same command on an updated system to give you z Figure 1 Normal selfupdate Figure 2 Debug selfupdate I tend to only use the d option if Pm having problems so I can better see where the problem is occurring I like to run the selfupdate option at the beginning of any install session so I know I m starting with the most current version of DarwinPorts Once thats done we install the various background libraries that Nagios needs using WWW RELOS Ucing amp SuncepDsict amp The Premier Data Replication Engine for FileMaker Just Got A Whole Lot Better IDEAL FOR Protect mission critical data with continuous differential data backup to one or more offsite locations Setup Warm Standby and fail over servers Backup and Recovery to ensure access to users at any time Continuous Server Warm Standby Server Clustering Deliver fresh data to users anytime anywhere in the World Whether your users work on the go log in from home or work in multiple locations SyncDeK gives each location its own local copy of the database to access Mobile Users whether users are on or offline Web Server Sync Multiple Offices amp Remote 5ites Distributed Versionin

Download Pdf Manuals

image

Related Search

Related Contents

MANUALE TECNICO refrigeratori d`acqua con compressore a vite    Paulmann 98886 ceiling lighting  CDS_Unmet Load Hours  ProBP 2400 Digital Blood Pressure Device  KOHLER K-7114-A-CP Installation Guide  JZX861 Mini Power Wireless Module User`s Manual  Manuel d`installation - Jean  NetCS-HD - 株式会社日立情報通信エンジニアリング  オーダーシステム カタログ No.1 - パナソニックオーダーシステム専門店  

Copyright © All rights reserved.
Failed to retrieve file