Archive for the 'General' Category
Monday, September 4th, 2006
One thing nice about Mac OS X are the avenues for development. There is Perl, PHP, Python, Ruby, C, Objective C, java, javascript, applescript and shell, just to name some of the possibliities. One of the things I have always wanted to be able to do, was to write .asp and test it on Mac [...]
Posted in General, Mac OS X general, Unix | No Comments »
Tuesday, June 20th, 2006
Google has released two applications that are very interesting. I’ve played around with both. Google spreadsheets is the most recent release. You can import XLS or csv files into Google Spreadsheets and then you can use formulas and sorts on the spreadsheets just like in a desktop spreadsheet program. The cool thing about online spreadsheets [...]
Posted in General | No Comments »
Thursday, April 13th, 2006
Javascript has come a long ways. The Mozilla project has released a couple of tools for javascript writers. I recently added the capability to my Mac of being able to write javascript then run and debug it from the command line, just like I would a perl script. Rhino is a java tool that will [...]
Posted in General, Mac OS X general, Shell Script, Unix | No Comments »
Wednesday, March 29th, 2006
I run into the situation of having to rename so often that I am constantly tweaking my solution. Here I had to remove some extraneous characters on file names that a client had added. All we wanted where the first characters that started with DSFC and then the 4 digits. I had to drop off [...]
Posted in General, Mac OS X general, Perl, Unix | No Comments »
Friday, March 24th, 2006
I posted a new theme today. I don’t know how long it will stick around. I was playing around with the words sophistication, philosophy and Macintosh. So I named my new theme sophia - greek for wisdom. This site reflects the wisdom of Mac.
Posted in General | No Comments »
Saturday, March 11th, 2006
I have several handy applications that I use on my mac daily. Obviously a mail app and browser. Safari is very nice. I’m using Apple Mail, but Thunderbird is really a nice mail app, too. But for me, much of the business of computing is storing information, and being able to get to that information [...]
Posted in General, Mac OS X general, Perl, Shell Script, Unix, wordress | No Comments »
Sunday, February 26th, 2006
Recently I wrote about getting Tomcat running in Mac OS X. You can easily start it up manually anytime you want by running the startup script in /Library/Tomcat/bin after you have it installed. But if you want it or any other daemon to run at startup you can use launchd if you are running Tiger. [...]
Posted in Apache, General, Shell Script, Unix | No Comments »
Saturday, February 18th, 2006
I’ve recently made the foray into AJAX. I purchased the Apress book “Foundations of AJAX.” When I went to download the source code that went with the book it required me to have tomcat running to view it using a java servlett. I decided to install Tomcat. It was simple, but it wasn’t simple [...]
Posted in Apache, General, Unix | 1 Comment »
Thursday, January 26th, 2006
I have occasion to look for various text inside of files in a directory. Grep is great for that. To look for some text in a whole directory of files you can type on the command line grep matchtext *.txt. That will pull up the files with the matched text and print it out on [...]
Posted in General, Shell Script, Unix | No Comments »
Tuesday, January 24th, 2006
Do you ever need to move a bunch of files to a specific location? Or do you want to backup certain files and need a nice method for moving them to a second drive or location? This following script can be helpful. You can re-write it for your particular purpose. I originally wrote it to [...]
Posted in Applescript, General, Mac OS X general, Shell Script, Unix | No Comments »
Monday, January 23rd, 2006
I’ve been asked this a couple of times, so I’m revisiting this topic (see post 50). I didn’t think it would have been too common for people to want to restart classic from a script, but apparently there are some. If this doesn’t interest you, at least you might want to take a peek at [...]
Posted in General, Mac OS X general, Shell Script, Unix | No Comments »
Wednesday, January 18th, 2006
I upgraded this evening to Wordpress 2. It was a very smooth upgrade. You can’t tell by looking at my site that I did anything. I think most of the improvements to Wordpress are behind the scenes. Previewing your post in presentation format is nice. If you’ve ever wondered why the feed on this site [...]
Posted in General, wordress | 6 Comments »
Friday, December 16th, 2005
If you ever need to compare two directories to find files missing from one that are in the other, perl can be a good utility to use. You can read into two arrays two directories, then create a hash using the second directory array as keys (this should be the smaller directory). Then use the [...]
Posted in General, Perl, Unix | 2 Comments »
Tuesday, November 15th, 2005
I’ve revised a previous tip here with regard to setting up your mac to server virtual hosts to use your mac for development of sites. I find this to be a little easier than using 127.0.0.1 as your virtual host. Instead find the virtual host portion (usually at the bottom) of your httpd.conf file which [...]
Posted in Apache, General, Unix | No Comments »
Thursday, August 18th, 2005
Sorry for the delay on approval of comments. I’ve been busy and I didn’t realize people were contributing. Thanks for all the recent contributions. I really put most of these scripts here as a repository for myself. If I’m working on a project and I can’t remember how I did something I go back to [...]
Posted in Applescript, General | No Comments »
Thursday, July 14th, 2005
Previously I showed a php script to send email. You can use php as a shell language as well as a web development language. PHP has ready made functions for this, so it is kind of an easy thing to do. Here is an example of a straight email shell script using bash.
#!/bin/bash
sendmail=”/usr/sbin/postfix”
recipient=”user@domain.com, user2@domain2.com”
( cat [...]
Posted in General, Shell Script, Unix | 3 Comments »
Sunday, July 10th, 2005
It has been quite some time since I have had a chance to write. I finally made the switch to Tiger. It was a long process for me. I installed a DVD drive into my blue and white G3 to make Tiger installation easier. While I was upgrading my machine I decided to soup it [...]
Posted in General, Mac OS X general, Unix | No Comments »
Wednesday, March 16th, 2005
If you have BBEdit and you have installed the command line tool you have a real nice resource for printing lists of file directories. Even without the command line you can drag a directory into a BBEdit window and create a file list of that directory. With the command line tool you can pipe standard [...]
Posted in General, Shell Script, Unix | 1 Comment »
Wednesday, March 9th, 2005
Here is a little script I wrote that you can use to move a list of files. Supply it a list of file names. In this case the file names I was supplied didn’t have .pdf on them, so I had to concatentate that onto the file names. I’ve covered this earlier with respect to [...]
Posted in General, Perl, Unix | 3 Comments »
Friday, February 25th, 2005
Since I upgraded to WordPress 1.5, being a web designer, I had to give themes a try. Kubrick is a beautiful interface, but I desired to build my own interface. I have called this one soothe, since it is aqua inspired.
It took me a little while to figure out what files controlled what behaviour. It [...]
Posted in Apache, General, Mac OS X general, Unix | 6 Comments »