Mac
Getting newlines
Submitted by pete on Wed, 2009-04-22 09:41defaults domains | sed 's/, /\'$'\n/g'
Will change all ", " to a real new line. Notice the use of a single quote.
Microsoft Office 2008 options
Submitted by pete on Mon, 2009-04-20 12:06While open office is the way to go, or neooffice for the Mac. Microsoft 2008 Office users should look at: http://www.maclife.com/article/tip_day/office_2008_filecompatibility_tro...
That might save your form data.
Checking disk space
Submitted by pete on Mon, 2009-03-30 07:26Here is a quick and dirty diskspace script:
#!/bin/bash
ALERT=70
#ssh 10.61.37.176 df -H > /tmp/df.out
df -Hl > /tmp/df.out
cat /tmp/df.out | grep -vE 'Filesystem|tmpfs|cdrom' \
| awk '{ print $5 " " $1 " " $6 }' | \
while read output ;
do
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $3 }' )
if [ $usep -ge $ALERT ]
then
printf "Running out of space on partition %s \t %g \t %s %s\n" \
$partition $usep $(hostname) $(date)
fi
done
Notice the hard coded ALERT level as well as the commented out ssh command.
It needs work, but should show you how little space one has on all mounted drives.
Xcode build setting reference
Submitted by phecht on Wed, 2009-03-18 08:41http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeB... is where I finally found a list of possible options for xcodebuild.
Tomcat integration with Active Directory
Submitted by luke on Wed, 2009-02-25 11:55For those in a world where IT is based on Microsoft's Active Directory (AD), you might be able to integrate Tomcat with the AD by looking at these links:
http://wiki.openi.org/index.php/Configuring_Tomcat_With_Active_Directory
http://stackoverflow.com/questions/267869/configuring-tomcat-to-authenti...
Xcode prec-compiled headers cache and branching
Submitted by albert on Sat, 2008-10-11 12:59http://www.stevestreeting.com/2007/09/19/branches-and-precompiled-header... shows why we should configure each project to have a different path than the defaults.
Google Application Engine Install
Submitted by luke on Tue, 2008-07-22 12:00Over my lunch I have installed macpython 2.5 and the GoogleApplicationLauncher. We will see what this thing does one day.
Screen capture for the Mac.
Submitted by luke on Tue, 2008-07-08 21:27http://www.jingproject.com/ is not a product but a project. It seems much like the windows only "snag it". Jing Project is free until it becomes a real product.
This is another one: http://www.ambrosiasw.com/utilities/snapzprox/ for $69
http://www.shinywhitebox.com/home/home.html for $20
An XSLT file for iTunes?
Submitted by luke on Fri, 2008-06-27 10:39<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"
version="1.0"
encoding="iso-8859-1"
indent="yes" />
<xsl:template match="/">
<xsl:element name="library">
<xsl:attribute name="value">
<xsl:value-of select="'My iTunes Library'" />
</xsl:attribute>
<xsl:apply-templates select="plist/dict/dict/dict"/>
</xsl:element>
</xsl:template>
<xsl:template match="plist/dict/dict/dict">
<xsl:element name="track">
<xsl:attribute name="value">
<xsl:value-of select="key[.='Name']/following-sibling::node()[1]"/>
</xsl:attribute>
<xsl:call-template name="artist" />
<xsl:call-template name="album" />
</xsl:element>
</xsl:template>
<xsl:template name="artist">
Nice ISP in Box page
Submitted by albert on Sat, 2008-06-14 11:43Updated! http://diymacserver.com/ is the updated site.
While we all want to have straight forward instructions on getting an Apache, MySQL and PHP set up on your mac, even a mini. It has been very valuable to me. Many recipes out there, this one hasn't left me re-configuring over and over again.
