<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6274788577588878135</id><updated>2010-04-07T01:53:30.860-07:00</updated><title type='text'>Web Dev Diary</title><subtitle type='html'>Programming the web and random technical notes.</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default'/><link rel='alternate' type='text/html' href='http://lifejack.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lifejack.net/atom.xml'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-5467276296695559587</id><published>2010-02-21T21:13:00.000-08:00</published><updated>2010-02-21T21:39:50.287-08:00</updated><title type='text'>Apple Mail Won't Authenticate GMail</title><content type='html'>&lt;h2&gt;The Apple Mail Gmail Problem&lt;/h2&gt;You have problems with Apple Mail authenticating and downloading new mail from your Gmail account. A window pops up asking for your user name and password. You enter the correct password, but it doesn't work. It's obviously broke, what's wrong?&lt;br /&gt;&lt;h2&gt;The Solution&lt;/h2&gt;&lt;p&gt;Go to &lt;a href="https://mail.google.com/"&gt;https://mail.google.com/&lt;/a&gt; in your browser (Firefox, Safari, etc) and log in with your user name and password. If I'm correct, you will have to fill out a "CAPTCHA" which is the picture with one or two words that you need to enter. Once you have completed the captcha and logged in, you can log out if you wish and go back to Apple Mail. You may have to authenticate one more time, but this time it will work!&lt;/p&gt;&lt;h2&gt;The Explanation&lt;/h2&gt;Somehow an authentication failed, meaning you or someone else tried to log in and used the wrong number. Possibly a network error occured while Apple Mail was trying to authenticate. The result is that Google will then require you to prove that you are not a robot trying to crack intoCHAthat email. They do this with a CAPTCHA. Since Apple Mail doesn't know about the CAPTCHA, it will continue to fail until you log into your account through your browser (firefox, safari, etc.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-5467276296695559587?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/5467276296695559587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=5467276296695559587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/5467276296695559587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/5467276296695559587'/><link rel='alternate' type='text/html' href='http://lifejack.net/2010/02/apple-mail-wont-authenticate-gmail.html' title='Apple Mail Won&apos;t Authenticate GMail'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-2064791508989091165</id><published>2009-04-27T16:14:00.000-07:00</published><updated>2009-06-19T00:26:38.424-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='webdev'/><title type='text'>mysql backup scripts with cron</title><content type='html'>Here's how I automatically backup my mysql databases on my DreamHost account. I use three shell scripts and a cron job to run them at regular intervals. The databases get backed up hourly. The backups are saved hourly, daily, and weekly. The weekly archive gets a unique name and is therefore not overwritten.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;mysql_hourly.sh&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;# This script backs up mysql databases; appends hour 00 to 23&lt;br /&gt;# Overwritten daily&lt;br /&gt;# Run from crontab ever hour on 30-minute mark (30 * * * *)&lt;br /&gt;# Requires mysql_daily script&lt;br /&gt;&lt;br /&gt;suffix=$(date +%H)&lt;br /&gt;&lt;br /&gt;# Repeat for each database&lt;br /&gt;mysqldump --opt -u USER -pPASSWORD -h HOST DATABASE &amp;gt; ~/backups/hourly/my_mysql_db.$suffix&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Note that I use the short option form (-p), so you cannot have a space between the option and the password. &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html"&gt;Complete documentation for mysqldump&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;mysql_daily.sh&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;# This script copies the last backup of the day to a daily archive 00 to 06&lt;br /&gt;# overwritten weekly&lt;br /&gt;# Run at hour 23 hours 40 minutes every day (40 23 * * *)&lt;br /&gt;# Requires mysql_hourly script&lt;br /&gt;&lt;br /&gt;suffix=$(date +%d)&lt;br /&gt;&lt;br /&gt;cp ~/backups/hourly/my_mysql_db.23 ~/backups/daily/my_mysql_db.$suffix&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;mysql_weekly.sh&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;# This script copies the last backup on friday to a weekly archive&lt;br /&gt;# Never overwritten&lt;br /&gt;# Run at hour 23 hours 45 minutes every friday. (45 23 * * 5)&lt;br /&gt;# Requires mysql_hourly script&lt;br /&gt;&lt;br /&gt;suffix=$(date +%Y%m%d)&lt;br /&gt;&lt;br /&gt;cp ~/backups/hourly/my_mysql_db.23 ~/backups/weekly/my_mysql_db.$suffix&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The crontab runs the scripts on a regular schedule. Here is how I run the scripts above. By the way, don't forget to make the scripts ececutable (chmod +x from the command line or use your ftp program).&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;my dreamhost crontab&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;# see http://wiki.dreamhost.com/index.php/Crontab&lt;br /&gt;&lt;br /&gt;# minute (0-59),&lt;br /&gt;# &amp;#124;      hour (0-23),&lt;br /&gt;# &amp;#124;      &amp;#124;       day of the month (1-31),&lt;br /&gt;# &amp;#124;      &amp;#124;       &amp;#124;       month of the year (1-12),&lt;br /&gt;# &amp;#124;      &amp;#124;       &amp;#124;       &amp;#124;       day of the week (0-6 with 0=Sunday).&lt;br /&gt;# &amp;#124;      &amp;#124;       &amp;#124;       &amp;#124;       &amp;#124;       commands&lt;br /&gt;&lt;br /&gt;MAILTO=your@email.com&lt;br /&gt;&lt;br /&gt;# Runs the mysqlbackup script hourly (on the half hour), and the daily at 11:45pm every day&lt;br /&gt;30 * * * * ~/lib/scripts/mysql_hourly.sh&lt;br /&gt;45 23 * * * ~/lib/scripts/mysql_daily.sh&lt;br /&gt;45 23 * * 5 ~/lib/scripts/mysql_weekly.sh&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Of course put your email address on the MAILTO line.&lt;br /&gt;&lt;br /&gt;DreamHost has a very nice cron job front end in its "Goodies" section of the control panel. However, it runs the hourlys on the hour, and the dailys at midnight. I like to set the time to the minute, so I use ssh from the terminal to log in and st up the cron job. Here is the drill (commands shown in double quotes - don't type the double quotes} :&lt;br /&gt;&lt;br /&gt;First login to your server via SSH in terminal(enable ssh from the "Users" web panel): "ssh username@mydomain.com"&lt;br /&gt;&lt;br /&gt;Once logged into your server, list your current crontab file: "crontab -l"&lt;br /&gt;&lt;br /&gt;Set your editor to vim (you can also put this in your bashrc or bash_profile): "export EDITOR='vim'"&lt;br /&gt;&lt;br /&gt;now edit the crontab: "crontab -e"&lt;br /&gt;&lt;br /&gt;type "i" to enter insert mode, type or cut and paste your code in (if you cut and paste, use notepad or textedit or other real text editor, not MS Word, etc.) I think you need to have a line return (blank line) at the end of your code.&lt;br /&gt;&lt;br /&gt;Hit the "esc" button to exit insert mode, then type ":wq!" or ":x" to save and exit. Type "crontab -l" to check your work, then "exit" to log out from ssh.&lt;br /&gt;&lt;br /&gt;Restoring from your backup: "mysql -u user_name -p -h hostname database_name &lt; dumped_file"&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;More Docs from the DreamHost Wiki:&lt;/h2&gt;&lt;br /&gt;&lt;a href="http://wiki.dreamhost.com/Backup_MySQL"&gt;Backup your database&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://wiki.dreamhost.com/Restore_SQL_backup"&gt;Restore your database&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-2064791508989091165?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/2064791508989091165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=2064791508989091165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2064791508989091165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2064791508989091165'/><link rel='alternate' type='text/html' href='http://lifejack.net/2009/04/mysql-backup-scripts-with-cron.html' title='mysql backup scripts with cron'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-3860668540390049243</id><published>2009-04-27T12:41:00.001-07:00</published><updated>2009-04-28T05:45:15.365-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webdev'/><category scheme='http://www.blogger.com/atom/ns#' term='movable type'/><title type='text'>Movable Type Asset Tags</title><content type='html'>&lt;h2&gt;Asset Tag Input : Convert text field to Radio Buttons or checkboxes&lt;/h2&gt;&lt;br /&gt;Movable Type assets (images, docs, pdfs, xls, virtually any document) can be uploaded and managed through MT's dashboard. A label, description, and tag(s) can be assigned. I use the asset tags to selectively list assets on my blog's index pages. The problem is that it is hard to remember what is the exact wording of the tag (capitalized, plural, etc.), because tags are entered in a text form. And I certainly don't want my clients to have to remember which tags to use.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Here's the Original "Edit Asset" Panel&lt;/h2&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lifejack.net/uploaded_images/Picture-4-778867.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 307px;" src="http://lifejack.net/uploaded_images/Picture-4-778865.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Same Panel with Radio Buttons&lt;/h2&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lifejack.net/uploaded_images/Picture-3-709106.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 261px; height: 320px;" src="http://lifejack.net/uploaded_images/Picture-3-709104.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This limits the choice of asset tags, but then that is the point. I had to edit two MT system files to accomplish this. Fortunately, it's the same change in both files.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Edit These Files (backup first)&lt;/h2&gt;&lt;br /&gt;mt/tmpl/cms/dialog/asset_options.tmpl&lt;br /&gt;mt/tmpl/cms/dialog/edit_asset.tmpl&lt;br /&gt;&lt;h2&gt;Replace the Following Code (same in both files)&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;mtapp:setting id=&amp;quot;tags&amp;quot; label=&amp;quot;&amp;lt;__trans phrase=&amp;quot; tags=&amp;quot;&amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;    label_class=&amp;quot;text-top&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;textarea-wrapper&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;input name=&amp;quot;tags&amp;quot; id=&amp;quot;tags&amp;quot; class=&amp;quot;full-width&amp;quot; value=&amp;quot;&amp;lt;$mt:var name=&amp;quot; tags=&amp;quot;&amp;quot; escape=&amp;quot;html&amp;quot;&amp;gt;&amp;quot; autocomplete=&amp;quot;off&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/mtapp:setting&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;With the new code&lt;/h2&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;mtapp:setting&lt;br /&gt;    id=&amp;quot;tags&amp;quot;&lt;br /&gt;    label=&amp;quot;&amp;lt;__trans phrase=&amp;quot;Select one tag from the list below.&amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;    label_class=&amp;quot;text-top&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;ul class=&amp;quot;edit-tag-radio&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;&amp;lt;label&amp;gt;&amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;tags&amp;quot; id=&amp;quot;tags&amp;quot; value=&amp;quot;minutes&amp;quot;&amp;lt;mt:if name=&amp;quot;tags&amp;quot; eq=&amp;quot;minutes&amp;quot;&amp;gt; checked=&amp;quot;checked&amp;quot;&amp;lt;/mt:if&amp;gt; /&amp;gt; &amp;lt;__trans phrase=&amp;quot;Meeting Minutes&amp;quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;&amp;lt;label&amp;gt;&amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;tags&amp;quot; id=&amp;quot;tags&amp;quot; value=&amp;quot;financial&amp;quot;&amp;lt;mt:if name=&amp;quot;tags&amp;quot; eq=&amp;quot;financial&amp;quot;&amp;gt; checked=&amp;quot;checked&amp;quot;&amp;lt;/mt:if&amp;gt; /&amp;gt; &amp;lt;__trans phrase=&amp;quot;Financials&amp;quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;&amp;lt;label&amp;gt;&amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;tags&amp;quot; id=&amp;quot;tags&amp;quot; value=&amp;quot;welcome-document&amp;quot;&amp;lt;mt:if name=&amp;quot;tags&amp;quot; eq=&amp;quot;welcome-document&amp;quot;&amp;gt; checked=&amp;quot;checked&amp;quot;&amp;lt;/mt:if&amp;gt; /&amp;gt; &amp;lt;__trans phrase=&amp;quot;Welcome Documents&amp;quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;&amp;lt;label&amp;gt;&amp;lt;input type=&amp;quot;radio&amp;quot; name=&amp;quot;tags&amp;quot; id=&amp;quot;tags&amp;quot; value=&amp;quot;image&amp;quot;&amp;lt;mt:if name=&amp;quot;tags&amp;quot; eq=&amp;quot;image&amp;quot;&amp;gt; checked=&amp;quot;checked&amp;quot;&amp;lt;/mt:if&amp;gt; /&amp;gt; &amp;lt;__trans phrase=&amp;quot;Image&amp;quot;&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;/mtapp:setting&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Note that the "value"  and "__trans phrase" values are particular to your project. Also more options can be added.&lt;br /&gt;&lt;h2&gt;Prefer a Checkbox?&lt;/h2&gt;&lt;br /&gt;If you prefer a checkbox list instead of radio (allowing multiple selections), just use type="checkbox".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-3860668540390049243?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/3860668540390049243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=3860668540390049243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/3860668540390049243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/3860668540390049243'/><link rel='alternate' type='text/html' href='http://lifejack.net/2009/04/movable-type-asset-tags.html' title='Movable Type Asset Tags'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-8756099194567710944</id><published>2008-12-07T17:27:00.000-08:00</published><updated>2008-12-07T17:38:55.226-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Check apache configuration.</title><content type='html'>How to check your apache configuration from the command line:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;'apachectl configtest' or 'apachectl -t' tests the configuration files, including httpd.conf .&lt;br /&gt;&lt;br /&gt;'apachectl -S' checks virtual hosts.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Of course apachectl does other useful things.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-8756099194567710944?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/8756099194567710944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=8756099194567710944' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/8756099194567710944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/8756099194567710944'/><link rel='alternate' type='text/html' href='http://lifejack.net/2008/12/check-apache-configuration.html' title='Check apache configuration.'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-2931245980831265771</id><published>2008-07-30T16:29:00.000-07:00</published><updated>2008-07-31T22:29:13.542-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><category scheme='http://www.blogger.com/atom/ns#' term='regex'/><title type='text'>Cyberduck FTP Client and regular expression filters</title><content type='html'>The &lt;a href="http://cyberduck.ch/"&gt;Cyberduck FTP client&lt;/a&gt; is an amazing open-source application for Mac OS X. One reason I like it is the built-in regular expression filter for (one each for upload and download). Configure the filter from Preferences =&gt; Transfers =&gt; Advanced panel. For example, the attached regular expression filters out some common images and video files. Note that the expression is case sensitive.&lt;br /&gt;&lt;a href="http://lifejack.net/regex_filter.txt"&gt;regex_filter.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-2931245980831265771?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/2931245980831265771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=2931245980831265771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2931245980831265771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2931245980831265771'/><link rel='alternate' type='text/html' href='http://lifejack.net/2008/07/cyberduck-ftp-client-and-regular.html' title='Cyberduck FTP Client and regular expression filters'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-1518466492593077846</id><published>2008-07-05T21:42:00.000-07:00</published><updated>2008-07-05T23:07:47.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GTD'/><category scheme='http://www.blogger.com/atom/ns#' term='project management'/><title type='text'>Free Project Planner</title><content type='html'>&lt;a href="http://www.pureviolet.net/ganttpv/index.html"&gt;GanttPV&lt;/a&gt; is free cross-platform (Mac, Linux, and Windows) project manager software. Installion on a mac was simple. Documentation is not so good. I was a bit stumped as to how to apply "prerequisites" across projects. I found the answer in the GanttPV forum &lt;a href="http://www.simpleprojectmanagement.com/forum/index.php?action=vthread&amp;forum=3&amp;topic=662&amp;page=0#2"&gt;here.&lt;/a&gt; Here's the instructions:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;GanttPV supports multiple projects and cross-project task dependencies. If I were defining a sub-project, here is what I would probably do:&lt;br /&gt;&lt;br /&gt;- Make sure that task parenting is installed (run "Install Task Parenting"). The script makes it possible to define a parent task for a task.&lt;br /&gt;- Define the sub-project as a separate project. (Use the Project ID column to move tasks to the new sub-project if necessary.)&lt;br /&gt;- Create a task in the parent project to represent the sub-project. Define its prerequisites and successors. (Faster to do this before children are defined. GanttPV v0.8 ignores parent tasks when chaining; after you specify the children, prerequisites involving parents have to be set for one task at a time.) (Alex - should we change this?)&lt;br /&gt;- Add the Task ID columns to the parent project task report. Note the ID of the sub-project task.&lt;br /&gt;- Add the Task ID and Parent Task ID columns to the sub-project task report.&lt;br /&gt;- Enter the parent's sub-project's Task ID into the Parent Task ID column of each of the highest level tasks in the sub-project. &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I created the main "parent" project and named it "WebDev". I then created a "Task Report". Within that parent task report I added a new "task row" for each of my clients, plus one for myself. Each of these task rows need only contain the name of a client. Add an "ID" column so that you can see what the ID for each row containing the client. We'll need to know that in the next step. Also add a "Prerequisite" column.&lt;br /&gt;&lt;br /&gt;Now go back to the main window, and create new projects for each of the clients named as a task in the previous step. Create a task report for each client. Open that task report. The first task in the client report is the name of the website I'm working on. Add 2 columns, "ID" and "Parent Task ID". In that first row corresponding to the website task, add the client ID from the main parent project into the "Parent Task ID" column. Also make that first row corresponding to the website task the Parent for subsequent rows (tasks) concerning that website. Repeat for each client project. Now I can edit the "subprojects" individually, and see the overall Gantt chart in the parent "WebDev" task report. By setting the prerequisites in this main window, I get a nice Gantt chart laying out the time requirements across all the client subprojects.&lt;br /&gt;&lt;br /&gt;Anyway that's how I set it up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-1518466492593077846?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/1518466492593077846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=1518466492593077846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/1518466492593077846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/1518466492593077846'/><link rel='alternate' type='text/html' href='http://lifejack.net/2008/07/free-project-planner.html' title='Free Project Planner'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-5304059374162558421</id><published>2008-06-30T21:15:00.000-07:00</published><updated>2008-07-01T00:46:10.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webdev'/><title type='text'>Creating a remote website mirror for development.</title><content type='html'>Problem: Client needs access to up-to-date website files to make updates, but I don't want him to edit the live site.&lt;br /&gt;&lt;br /&gt;Solution: Create dev.mysite.com and an ftpuser for that domain. Use that ftpuser to place a mirror of the website within that subdomain. Since my links are relative, browsing works fine. Absolute links, of course, will remove you from the dev subdomain. Either way, replacing "www" with "dev" in the url gets you to the counterpart in the dev website.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-5304059374162558421?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/5304059374162558421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=5304059374162558421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/5304059374162558421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/5304059374162558421'/><link rel='alternate' type='text/html' href='http://lifejack.net/2008/06/creating-remote-website-mirror-for.html' title='Creating a remote website mirror for development.'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6274788577588878135.post-2861945796594106990</id><published>2008-06-27T02:53:00.000-07:00</published><updated>2008-07-01T00:48:02.850-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redirects'/><category scheme='http://www.blogger.com/atom/ns#' term='GoDaddy'/><category scheme='http://www.blogger.com/atom/ns#' term='htaccess'/><category scheme='http://www.blogger.com/atom/ns#' term='webdev'/><title type='text'>GoDaddy Hosting Issue - "Downgrading" from Windows server to Linux</title><content type='html'>A client has a GoDaddy shared hosting account, hosting several domains on a MS Windows server. I needed some functionality which is only available on a linux server, so I went to the GoDaddy control panel and "downgraded" to linux. Technical support assured me that the conversion would be seamless, and although the transfer to linux would take 24 hours, the website wouldn't be interuppted (and I had no asp scripts to worry about).&lt;br /&gt;&lt;br /&gt;Needless to say, the _entire_ site, including several domains, broke completely upon transfer.&lt;br /&gt;&lt;br /&gt;The way the GoDaddy sets up multiple domains under one account is to have the main domain as the "root", and subsequent domains are mapped to subdirectories (from the control panel). For example, here is a typical directory structure:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/index.html serves http://domain_1.com/index.html&lt;br /&gt;&lt;/li&gt;&lt;li&gt;/domain_2/index.html  serves http://domain_2.com/index.html&lt;br /&gt;&lt;/li&gt;&lt;li&gt;/domain_3/ serves http://domain_3.com/index.html&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;In other words, additional domains within a Godaddy account are mapped to subdirectories of the main account.&lt;br /&gt;&lt;br /&gt;What broke during the switch from windows to linux server was this mapping. So while I could access http://domain_1.com/domain_2/index.html, I couldn't access this same file via http://domain_2.com/index.html (like it did before the transfer).&lt;br /&gt;&lt;br /&gt;Technical support said I would have to wait for up to 3 days for everything to straighten out. As these were high-traffic commerce sites, 3 days was unacceptable. So rather than changing _all_ the links as suggested by GoDaddy tech support (still leaving the secondary domains broke),  I added the following lines to my .htaccess file:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Redirect 302 http://www.domain_2.com/(.*) http://domain_1.com/domain_2/$1&lt;br /&gt;Redirect 302 http://www.domain_3.com/(.*) http://domain_1.com/domain_3/$1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Voila! All the sites (and containing links) were fixed. Note that  302  is for temporary redirects, while 301 is used for permanent redirects. I hope that I will be able to remove the redirects in a couple days, when GoDaddy fixes its internal mapping.&lt;br /&gt;&lt;br /&gt;update: Once GoDaddy fixed their mapping, I removed the 302 redirects.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6274788577588878135-2861945796594106990?l=lifejack.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/2861945796594106990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6274788577588878135&amp;postID=2861945796594106990' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2861945796594106990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6274788577588878135/posts/default/2861945796594106990'/><link rel='alternate' type='text/html' href='http://lifejack.net/2008/06/godaddy-hosting-issue-downgrading-from.html' title='GoDaddy Hosting Issue - &quot;Downgrading&quot; from Windows server to Linux'/><author><name>Rick</name><uri>http://www.blogger.com/profile/18248984850733376452</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14914890554141805212'/></author><thr:total>2</thr:total></entry></feed>