<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>My Tech Diary</title>
	<atom:link href="http://myapplehome.com/feed" rel="self" type="application/rss+xml" />
	<link>http://myapplehome.com</link>
	<description>my  ~ dot com</description>
	<pubDate>Tue, 29 Jul 2008 20:22:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Find Corrupted Fonts 10.5</title>
		<link>http://myapplehome.com/archives/11</link>
		<comments>http://myapplehome.com/archives/11#comments</comments>
		<pubDate>Tue, 29 Jul 2008 20:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[macosx]]></category>

		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=11</guid>
		<description><![CDATA[set fontsd to do shell script &#8220;mdfind &#8216;com_apple_ats_font_invalid == 1&#8242;&#8221;
display dialog ¬
 &#8220;Corrupted Fonts&#8221; with icon 1 ¬
 buttons {&#8221;About&#8221;, &#8220;Export to .txt file&#8221;, &#8220;Show Corrupted Fonts in a window&#8221;} ¬
 default button &#8220;Show Corrupted Fonts in a window&#8221;
set button_pressed to button returned of result
if button_pressed is &#8220;Show Corrupted Fonts in a window&#8221; then
 display [...]]]></description>
			<content:encoded><![CDATA[<p><span><strong>set</strong></span><span> </span><span>fontsd</span><span> </span><span><strong>to</strong></span><span> </span><span>do shell script</span><span> </span>&#8220;mdfind &#8216;com_apple_ats_font_invalid == 1&#8242;&#8221;</p>
<p>display dialog<span> </span><span>¬</span></p>
<p><span><span> </span></span>&#8220;Corrupted Fonts&#8221;<span> </span><span>with icon</span><span> </span>1<span> </span>¬</p>
<p><span><span> </span></span><span>buttons</span><span> </span>{&#8221;About&#8221;,<span> </span>&#8220;Export to .txt file&#8221;,<span> </span>&#8220;Show Corrupted Fonts in a window&#8221;}<span> </span>¬</p>
<p><span><span> </span></span><span>default button</span><span> </span>&#8220;Show Corrupted Fonts in a window&#8221;</p>
<p><span><strong>set</strong></span><span> </span><span>button_pressed</span><span> </span><span><strong>to</strong></span><span> </span>button returned<span> </span><span><strong>of</strong></span><span> </span>result</p>
<p><span><strong>if</strong></span><span> </span><span>button_pressed</span><span> </span><span><strong>is</strong></span><span> </span>&#8220;Show Corrupted Fonts in a window&#8221;<span> </span><span><strong>then</strong></span></p>
<p><span><span> </span></span>display alert<span> </span><span>¬</span></p>
<p><span><span> </span></span>&#8220;Corrupted Fonts&#8221;<span> </span><span>message</span><span> </span>¬</p>
<p><span><span> </span></span>fontsd</p>
<p><span><strong>else</strong></span><span> </span><span><strong>if</strong></span><span> </span><span>button_pressed</span><span> </span><span><strong>is</strong></span><span> </span>&#8220;Export to .txt file&#8221;<span> </span><span><strong>then</strong></span></p>
<p><span><span> </span></span><span>do shell script</span><span> </span>&#8220;mdfind &#8216;com_apple_ats_font_invalid == 1&#8242; &lt; ~/Desktop/Corrupted_Fonts.txt&#8221;</p>
<p><strong>else</strong></p>
<p><span><span> </span></span>display alert<span> </span><span>¬</span></p>
<p><span><span> </span></span>&#8220;About Script&#8221;<span> </span><span>message</span><span> </span>¬</p>
<p><span><span> </span></span>&#8220;This Script was generated by chris for macephemera.gr&#8221;<span> </span><span>as</span><span> </span><span>warning</span></p>
<p><strong>end</strong><span> </span><strong>if</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/11/feed</wfw:commentRss>
		</item>
		<item>
		<title>Give me my list.</title>
		<link>http://myapplehome.com/archives/9</link>
		<comments>http://myapplehome.com/archives/9#comments</comments>
		<pubDate>Tue, 06 May 2008 20:32:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[file management]]></category>

		<category><![CDATA[macosx]]></category>

		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=9</guid>
		<description><![CDATA[Suppose you have to get a list of your music. This is actually a huge problem the .pdf that itunes creates is huge especially if you have a large library like me.So fire up Terminal.app cd to your Music directory and paste this  find . -type d -mindepth 2 &#124; sed -e 's#\./iTunes[\/A-Za-z0-9\ ]*##g&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you have to get a list of your music. This is actually a huge problem the .pdf that itunes creates is huge especially if you have a large library like me.So fire up Terminal.app cd to your Music directory and paste this <br /><strong><code> find . -type d -mindepth 2 | sed -e 's#\./iTunes[\/A-Za-z0-9\ ]*##g&#8217; -e &#8217;s#\./##g&#8217; -e &#8217;s#/# - #g&#8217; | grep &#8216;.&#8217; > ~/Desktop/mymusic.txt </code></strong></p>
<p>In a couple of minutes you will have a list of your Artist/Album in a list.</p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/9/feed</wfw:commentRss>
		</item>
		<item>
		<title>ACL&#8217;s What are they?</title>
		<link>http://myapplehome.com/archives/8</link>
		<comments>http://myapplehome.com/archives/8#comments</comments>
		<pubDate>Sat, 26 Apr 2008 17:49:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[file management]]></category>

		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=8</guid>
		<description><![CDATA[I think many of you have tried to repair disk permissions using Disk Utility. But you have some errors like ACL expected but not found. What are these ACL is the first question?
From the Apple Security Configuration Manual


An ACL is an ordered list of rules that control file
permissions. Each rule or access control entry (ACE) [...]]]></description>
			<content:encoded><![CDATA[<p>I think many of you have tried to repair disk permissions using Disk Utility. But you have some errors like ACL expected but not found. What are these ACL is the first question?</p>
<p>From the Apple Security Configuration Manual<br />
<em><br />
<blockquote>
An ACL is an ordered list of rules that control file<br />
permissions. Each rule or access control entry (ACE) contains the following<br />
components:<br />
 User—owner, group, and other<br />
 Action—read, write, or execute<br />
 Permission—allow or deny the action </p>
<p>The rules specify the permissions to be granted or denied to a group or user, and how<br />
these permissions are propagated throughout a folder hierarchy. </p></blockquote>
<p></em></p>
<p>Hey I am not used to that stuff show me the money.</p>
<p>Fire up you Terminal.app<br />
<code><br />
Last login: Sat Apr 26 20:32:40 on ttys000<br />
beast:~ chris$ mkdir Desktop/acls<br />
beast:~ chris$ cd Desktop/acls/<br />
beast:acls chris$ ls -le testacl.txt<br />
-rw-r--r--  1 chris  staff  0 26 Apr 20:45 testacl.txt<br />
beast:acls chris$ chmod +a "chris allow read" testacl.txt<br />
beast:acls chris$ chmod +a "chris deny write" testacl.txt<br />
beast:acls chris$ chmod +a "chris allow delete" testacl.txt<br />
beast:acls chris$ ls -le testacl.txt<br />
-rw-r--r--+ 1 chris  staff  0 26 Apr 20:45 testacl.txt<br />
 0: user:chris deny write<br />
 1: user:chris allow read,delete<br />
</code></p>
<p>As far as you can this Terminal explains you a bit of how ACLS work.Be carefull of what you type always use a temp file to try things.</p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/8/feed</wfw:commentRss>
		</item>
		<item>
		<title>MySQL Install on Leopard</title>
		<link>http://myapplehome.com/archives/7</link>
		<comments>http://myapplehome.com/archives/7#comments</comments>
		<pubDate>Fri, 25 Apr 2008 19:17:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=7</guid>
		<description><![CDATA[MySQL install package on Leopard is quite a pain in the **s.It completes but never works. After hours googling for the solution I did write a script for your own convienience.

#Script by myapplehome.com
#Used to automate the starting progress of mysql
#!/usr/bin/env bash

exists1=$(ls ~/Library/PreferencePanes/MySQL.prefpane 2> /dev/null)
exists2=$(ls /Library/PreferencePanes/MySQL.prefpane 2> /dev/null)
cd ~ ;
echo -n "Welcome to MySQL Fixer.Make sure [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL install package on Leopard is quite a pain in the **s.It completes but never works. After hours googling for the solution I did write a script for your own convienience.</p>
<pre code="prettyprint">
#Script by myapplehome.com
#Used to automate the starting progress of mysql
#!/usr/bin/env bash

exists1=$(ls ~/Library/PreferencePanes/MySQL.prefpane 2> /dev/null)
exists2=$(ls /Library/PreferencePanes/MySQL.prefpane 2> /dev/null)
cd ~ ;
echo -n "Welcome to MySQL Fixer.Make sure you are running this script with sudo" ;
echo -n "First we will start MySQL " ;
sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &#038; ;
echo -n "Ok That was fast lets move to the next step.MySQL Starts at boot" ;
sudo mv /usr/local/MySQLCOM/ /Library/StartupItems/ ;
echo -n "Problem fixed they all work" ;
echo -n "Let's download the right mysqlprefpane" ;
curl ftp://ftp.mysql.com/pub/mysql/download/gui-tools/MySQL.prefPane-leopardfix.zip -o ~/MySQL.prefpane-leofix.zip ;
echo -n "Downloaded.Unzipping........" ;
unzip ~/MySQL.prefpane-leofix.zip ;
echo -n "Don't know if this is right but \n let's you move to the right position" ;
if [ $exists1 ]; then
	rm -rf /Library/PreferencePanes
	mv ~/MySQL.prefPane ~/Library/PreferencePanes
else
    rm -rf /Library/PreferencePanes
    mv ~/MySQL.prefpane /Library/PreferencePanes
fi
echo -n "Done moving the correct Prefpane" ;
echo -n "OK.Done fixing all that.Now you need the tool \n to set mysql password" ;
curl http://mirrors.dedipower.com/www.mysql.com/Downloads/MySQLGUITools/mysql-gui-tools-5.0-r12-osx10.4-universal.dmg -o ~/mysql-gui-tools.dmg ;
echo -n "it seems that the package was downloaded successfully" ;
hdiutil attach ~/mysql-gui-tools.dmg ;
ditto -rsrc /Volumes/MySQL\ GUI\ Tools\ for\ 5.0/ /Applications/ ;
echo -n "We have succesfully mounted the disk image \n copied to Applications folder" ;
echo -n "And now we will launch it" ;
echo -n "Use 127.0.0.1 username root and password blank" ;
echo -n "Thank you for using mysql-fixer-0.1b" ;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/7/feed</wfw:commentRss>
		</item>
		<item>
		<title>Finder menubar disappears after a mail drag.</title>
		<link>http://myapplehome.com/archives/6</link>
		<comments>http://myapplehome.com/archives/6#comments</comments>
		<pubDate>Fri, 25 Apr 2008 18:57:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[file management]]></category>

		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=6</guid>
		<description><![CDATA[This is a common problem seen on Tiger.While on Mail.app you have received an attachment you drag it from the Mail.app this is problem if you don&#8217;t &#8220;catch&#8221; that file correctly.Well instead of moving/copying you accidentally moved a character between the arrow and the attachment. The most secure for the client is to boot with [...]]]></description>
			<content:encoded><![CDATA[<p>This is a common problem seen on Tiger.While on Mail.app you have received an attachment you drag it from the Mail.app this is problem if you don&#8217;t &#8220;catch&#8221; that file correctly.Well instead of moving/copying you accidentally moved a character between the arrow and the attachment. The most secure for the client is to boot with safe boot log in as root if you have enabled that and remove that file from the Desktop. If you are not managing your users you could ask them to boot from an external hard disk and delete this file. If you can&#8217;t do it you could ask them to netboot if they can. But what if they don&#8217;t have all that to do it?</p>
<p>Here is the solution. Boot in Single User Mode. An do the following</p>
<pre class="prettyprint">
mount -uw / 

mv /Users/THE_USER/Desktop/*.*Clipping /Users/THE_USER/.Trashes/
</pre>
<p>This is a problem if your customers don&#8217;t understand what do you say them.If you manage a lot of computers take this script for just in case.</p>
<p>Again boot in Single User Mode and run this.</p>
<pre class="prettyprint">
mount -uw / ;</p>
<p># If the the folder exists create it else leave it , also append the date</p>
<p>exists=$(ls /Users/YOUR_CLIENTS_USERNAME/Desktop/mailfixed 2> /dev/null)<br />
if [ $exists ]; then<br />
    mkdir /Users/YOUR_CLIENTS_USERNAME/Desktop/mailfixed<br />
else<br />
    mkdir /Users/YOUR_CLIENTS_USERNAME/Desktop/mailfixed_`date +%d_%m_%y`<br />
fi</p>
<p>#Create a small receipt</p>
<p>touch /Users/YOUR_CLIENTS_USERNAME/Desktop/receipt.textClipping;</p>
<p># Quick and dirty solution</p>
<p>mv /Users/macuser/Desktop/*.*Clipping /Users/macuser/Desktop/mailfixed* ;<br />
echo "Done,press reboot to boot normally"</p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/6/feed</wfw:commentRss>
		</item>
		<item>
		<title>Synchronize that with that</title>
		<link>http://myapplehome.com/archives/5</link>
		<comments>http://myapplehome.com/archives/5#comments</comments>
		<pubDate>Fri, 25 Apr 2008 18:37:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[file management]]></category>

		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=5</guid>
		<description><![CDATA[As I run one of the biggest Greek Mac Communities and hosting,administering that I have to keep backups.This is a huge problem as big communities mean a lot of data. So I dug into rsync and figured that I can do it easily from my mac.
Let&#8217;s do it
Open Terminal.app
 mkdir -p rbackup

cd rbackup

rsync -Ravz "username@host.com:." [...]]]></description>
			<content:encoded><![CDATA[<p>As I run one of the biggest Greek Mac Communities and hosting,administering that I have to keep backups.This is a huge problem as big communities mean a lot of data. So I dug into rsync and figured that I can do it easily from my mac.</p>
<p>Let&#8217;s do it</p>
<p>Open Terminal.app</p>
<pre class="prettyprint"> mkdir -p rbackup

cd rbackup

rsync -Ravz "username@host.com:." . --exclude '/mail' </pre>
<p>Wait a little bit depending on your data. And synchronize between your server and local machine will be done.</p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/5/feed</wfw:commentRss>
		</item>
		<item>
		<title>compress each file inside a directory</title>
		<link>http://myapplehome.com/archives/4</link>
		<comments>http://myapplehome.com/archives/4#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:08:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<category><![CDATA[compression]]></category>

		<category><![CDATA[file management]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=4</guid>
		<description><![CDATA[I used this command to upload some fonts on a webserver. It worked without problems
 for i in `ls`; do tar czvf $i.tar.gz $i; done 
For each item inside the subdirectory compress the files.
Pretty usefull when you want to compress a lot of files inside a directory.
 
]]></description>
			<content:encoded><![CDATA[<p>I used this command to upload some fonts on a webserver. It worked without problems</p>
<pre class="prettyprint"> for i in `ls`; do tar czvf $i.tar.gz $i; done </pre>
<div>For each item inside the subdirectory compress the files.</div>
<div>Pretty usefull when you want to compress a lot of files inside a directory.</div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/4/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://myapplehome.com/archives/3</link>
		<comments>http://myapplehome.com/archives/3#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:00:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://myapplehome.com/?p=3</guid>
		<description><![CDATA[Hello world,this is my first post.
It&#8217;s a blog among the others.It&#8217;s my personal tech diary just to remember the problems that are difficult to solve. Hope to like it.
]]></description>
			<content:encoded><![CDATA[<p>Hello world,this is my first post.</p>
<p>It&#8217;s a blog among the others.It&#8217;s my personal tech diary just to remember the problems that are difficult to solve. Hope to like it.</p>
]]></content:encoded>
			<wfw:commentRss>http://myapplehome.com/archives/3/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
