Working with PHP 5 in Mac OS X 10.5 Leopard – Professional PHP

Working with PHP 5 in Mac OS X 10.5 Leopard – Professional PHP
Mac OS X is a great development platform for working with PHP. Leopard comes with Apache, PHP and many other development tools, such as subversion already installed. Leopard brings a much needed upgrade from Tigers tired PHP 4 to a very modern version of PHP 5.2.4. This is a guide for setting up a PHP development environment under 10.5 using the version of PHP that ships with leopard.

Master Tutorial to Make Your Windows Super Fast

This tutorial is meant for increasing the performance of Windows XP, either it can be a fresh installed windows or an old windows. Actually these r some tips/tricks, which I always apply whenever I do a fresh installation of windows. So here I’m sharing many of those tips-n-tricks:

UPDATE: This story was reported as stolen from this source: askvg.com
I just grabbed it from digg. It’s a very helpful article and I would like to give credit where credit is due.

AutoArchive Exchange Account in Entourage – entourage.mvps.org

AutoArchive Exchange Account to “On My Computer”
Move all e-mail older than 60 days from your Exchange account folders to archive folders within the “On My Computer” folder tree.

Download script

TO CREATE AN AUTO-ARCHIVE SCHEDULE

Save AutoArchive AppleScript to your Microsoft User Data folder: Entourage Script Menu Items.

1. Menu path: Tools/Schedules
2. New button
3. Name “AutoArchive”

When “Timed Occurrence” — I set mine to every night at 3 AM

Action “Run AppleScript” — set the saved script as the action script

Thats it

As long as Entourage is running each night, this script will kick-off an archive your messages to a local folder. If you dont leave Entourage running, you could choose to just run the script whenever necessary.

You may modify two variables within the script:

1. ArchiveFolderName : the name of the folder archive trees spaw within.
2. Defaults to Archives.

This image gives you an idea of how an archive folder tree is created.

archive example image

ArchiveAgeCriteria : the age, in days, to determine a message should be archived. Defaults to 60 days.

In order to search using Spotlight, be sure Spotlight is enabled.

Script provided by Andy Ruff

MacBU Program Management

Time For A Grown-Up Server: Rails, Mongrel, Apache, Capistrano and You | codablog | Coda Hale

Time For A Grown-Up Server: Rails, Mongrel, Apache, Capistrano and You | codablog | Coda Hale
More and more Rails developers are finding out that deploying a Rails application isn’t as simple as upload and rename; Rails apps work best when running all the time, and many Rails programmers are moving from traditional, shared hosts, like Dreamhost, to virtual private servers, like Rimuhosting, which allow them full control and responsibility of production servers.

Given this freedom, there are now a huge number of options available for deploying a Rails application, which is rare for such a new technology. So what to use? Apache FastCGI? Lighttpd FastCGI? SCGI? Apache 2? Litespeed? Mongrel? In what configuration? So many questions, so few answers. Here’s what I’ve been deleriously happy with, and how to do it yourself: Mongrel, Apache 2.2, and mod_proxy_balancer, using Capistrano to keep everything at your fingertips.

Javablog » Apple OS X Leopard doesn’t have Java 6

Javablog » Apple OS X Leopard doesn’t have Java 6
And worse yet… if you installed the Java 6 beta release in Apple OS X Tiger, then when you upgrade Java won’t work at all! Read on if this has affected you…

The solution I used was to completely move the following folders to a backup location

/Library/Java
/Applications/Utilities/Java
/System/Library/Frameworks/JavaVM.framework
/System/Library/Java
/System/Library/CoreServices/Jar\ Launcher.app
/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework
/System/Library/Frameworks/JavaEmbedding.framework
/System/Library/CFMSupport/StubLibraries/JavaEmbeddingLib

and all your Java 6 installation receipts from /Library/Receipts/.

Then re-install Java from the Leopard DVD with the commands

open /Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/Java.pkg
open /Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/JavaTools.pkg

It seems that unless the aforementioned directories/files are moved… the Leopard installer will not install any JavaVM binaries. After this, you probably want to install the “Optional” package XCode as I’m sure it has some parts of the JDK that aren’t installed by default.

That said… the Java 5 implementation is a lot snapper than it used to be! The Java 5 documentation can be downloaded from the Apple Developer Connection when you have signed up.

Mac Mojo : How to open .docx on your Mac

Mac Mojo : Get converted
This is a stand-alone Macintosh application that converts .docx documents – that is, documents saved by Word 2007 for Windows in the Office Open XML file format – into rich text format RTF documents so that they can be automatically opened in either Word 2004 or Word v.X for Mac OS X.

With this free converter we passionately want to get you up and reading the new documents you are receiving. We do not, however, want to see you inadvertently mess up any critical documents you are working with. For that reason, only one-way read only conversion is supported in this beta. When sending documents back to colleagues and contacts, we recommend saving to the default .doc format from Mac Word listed as “Word document” in the save dialog. Similarly, we continue to recommend that you advise friends and colleagues who use Office 2007 and collaborate regularly with Mac users to save their documents as a “Word/Excel/PowerPoint 97-2003 Document” .doc, .xls, .ppt to ensure that the files can be robustly shared across platforms while waiting for final availability of Office 2008 for Mac.

Apache, mod_jk not serving tomcat

I was trying to set up Apache mod_jk to serve up my jboss traffic without loadbalancing and I was running into the errors below. My machine is running Red Hat Enterprise Linux ES release 4 with Apache2.

Read more of this post

How to Querying the RPM database – tuxfiles.org

Installing software from RPM packages in Linux
How to Querying the RPM database

As you already know, the RPM database contains a list of all installed RPM packages on your system. You can query this database to get info of the packages on your Linux system. To query a single package, you use the -q option. For example, to query a package whose name is “software”:
# rpm -q software

After issuing this command, rpm either tells you the version of the package, or that the package isnt installed.

If you want a list of all packages installed on your system, youll have to query all with -qa:
# rpm -qa

Most likely this list will be very long, so youll need a way to scroll it. The best way is to pipe the list to less:
# rpm -qa | less

If youre looking for packages whose names contain a specific word, you can use grep for finding those packages. For example, to get a list of all installed RPM packages whose names contain the word “kde”, you could do something like this:
# rpm -qa | grep kde

The above command makes rpm list all packages in its database and pass the list to grep. Then grep checks every line for “kde” and finally shows you all the lines that contain the word “kde”.

One Background Image, Many Applications

One Background Image, Many Applications
Gradients are a popular choice for background images and they help out page weight in another significant way: they are repeatable. Take a look at the gradient below. To the left you can see how the gradient looks. To the right you can see that you can squish it down to only a single pixel in width and it will repeat horizontally just the same.

Microsuck | Microsofts Really Hidden Files

Microsuck | Microsofts Really Hidden Files
There are folders on your computer that Microsoft has tried hard to keep secret. Within these folders you will find two major things: Microsoft Internet Explorer has not been clearing your browsing history after you have instructed it to do so, and Microsofts Outlook Express has not been deleting your e-mail correspondence after youve erased them from your Deleted Items bin. This also includes all incoming and outgoing file attachments. And believe me, thats not even the half of it.

When I say these files are hidden well, I really mean it. If you dont have any knowledge of DOS then dont plan on finding these files on your own. I say this because these files/folders wont be displayed in Windows Explorer at all — only DOS. Even after you have enabled Windows Explorer to “show all files.” And to top it off, the only way to find them in DOS is if you knew the exact location of them. Basically, what Im saying is if you didnt know the files existed then the chances of you running across them is slim to slimmer.

Follow

Get every new post delivered to your Inbox.