<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vim, Cygwin, MySQL &#38; Zsh Tips by zzapper</title>
	<atom:link href="http://zzapper.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://zzapper.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 23:15:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solution: How to install Service Pack 1 on Windows 7</title>
		<link>http://zzapper.co.uk/solution-how-to-install-service-pack-1-on-windows-7/</link>
		<comments>http://zzapper.co.uk/solution-how-to-install-service-pack-1-on-windows-7/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:15:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows Tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=208</guid>
		<description><![CDATA[Your Service Pack fails to install error given 80246007 or may be 80070003. See here for official Microsoft solution (but see my additional information in red) :- To change or restart the Background Intelligent Transfer Service (BITS) You must be logged on as an administrator to perform these steps. Open Administrative Tools by clicking the [...]]]></description>
			<content:encoded><![CDATA[<p>Your Service Pack fails to install error given 80246007 or may be 80070003.</p>
<p>See here for official Microsoft solution (<span style="color: #ff0000;"><strong>but see my additional information in re</strong>d</span>) :-</p>
<p>To change or restart the Background Intelligent Transfer Service (BITS)</p>
<p>You must be logged on as an <strong>administrator </strong>to perform these steps.</p>
<p>Open Administrative Tools by clicking the Start button , clicking Control Panel, clicking System and Maintenance, and then clicking Administrative Tools.</p>
<p><strong><span style="color: #ff0000;">RIGHT MOUSE CLICK</span></strong>  Services and <span style="color: #ff0000;">SELECT RUN AS ADMINISTRATOR</span>.</p>
<p>If you are prompted for an administrator password or confirmation, type the password or provide confirmation.</p>
<p>Right-click the Background Intelligent Transfer Service (BITS) service, and then click Properties.</p>
<p>On the General tab, next to Startup type, make sure that<strong> Automatic (Delayed Start)</strong> is selected. If it is not, select it and then click Apply.</p>
<p>Next to Service status, check to see if the service is started. If it is not, click Start.</p>
<p>&nbsp;</p>
<p><span style="color: #ff0000;">Service Pack 1 will now install</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/solution-how-to-install-service-pack-1-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress have your menus dropped to the bottom?</title>
		<link>http://zzapper.co.uk/wordpress-have-your-menus-dropped-to-the-bottom/</link>
		<comments>http://zzapper.co.uk/wordpress-have-your-menus-dropped-to-the-bottom/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 17:01:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=198</guid>
		<description><![CDATA[This has happened to me several times and I&#8217;ve always blamed a WordPress update or Theme update so I&#8217;ve de-installed and re-installed etc etc, but in the end it has always been the same simple mistake namely An Unclosed DIV Tag in a Post! This usually or always causes chaos to your page structure. So [...]]]></description>
			<content:encoded><![CDATA[<p>This has happened to me several times and I&#8217;ve always blamed a WordPress update or Theme update so I&#8217;ve de-installed and re-installed etc etc, but in the end it has always been the same simple mistake namely <span style="color: #ff0000;"><strong style="color: #ff0000;">An Unclosed DIV Tag in a Post</strong><span style="color: #ff0000;">! </span><span style="color: #000000;">This usually or always causes chaos to your page structure. So next time this happens to you whether on your WordPress Blog or in the CSS of your Website always think to check for <strong>unmatched DIV Pairs  &lt;DIV>&#8230;&lt;/DIV></strong> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/wordpress-have-your-menus-dropped-to-the-bottom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash: Find specifying certain file extensions</title>
		<link>http://zzapper.co.uk/bash-find-specifying-certain-file-extensions/</link>
		<comments>http://zzapper.co.uk/bash-find-specifying-certain-file-extensions/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 10:41:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=191</guid>
		<description><![CDATA[I had terrible trouble finding a way to do this in bash, doesn&#8217;t seem to be possible using -name or -iname :- find /var/www/html/ -regex &#8220;.*\(php\&#124;js\&#124;inc\)&#8221; -exec grep -i &#8216;tbl_title&#8217; {} + find /var/www/html/ -regex &#8220;.*\(php\&#124;js\&#124;inc\)&#8221; -exec grep -i &#8216;tbl_title&#8217; {} \; NB: the \; and + endings are different the + ending usefully displays [...]]]></description>
			<content:encoded><![CDATA[<div class=box>
I had terrible trouble finding a way to do this in bash, doesn&#8217;t seem to be possible using -name or -iname :-</p>
<p>find /var/www/html/ -regex &#8220;.*\(php\|js\|inc\)&#8221; -exec grep -i &#8216;tbl_title&#8217; {} +</p>
<p>find /var/www/html/ -regex &#8220;.*\(php\|js\|inc\)&#8221; -exec grep -i &#8216;tbl_title&#8217; {} \;</p>
<p>NB: the \; and + endings are different the + ending usefully displays the matching file name</p>
<p>Of course if you have a recent bash you will likely prefer:-</p>
<p>grep -ilR &#8211;include=*.{php,inc,js} &#8216;fn_main&#8217; c:/inetpub/wwwroot</p>
<p>or</p>
<p>grep -iR &#8211;include=*.{php,inc,js} &#8216;fn_main&#8217; c:/inetpub/wwwroot</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/bash-find-specifying-certain-file-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim, Cygwin, docx2txt, catdoc and antiword view Microsoft Word Documents as Text</title>
		<link>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/</link>
		<comments>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 15:25:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[windows Tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=186</guid>
		<description><![CDATA[I wanted to quickly compare two versions of a Word document and realized I didn&#8217;t know how to do it. A quick Google revealed that catdoc was available with Cygwin (and I guess elsewhere) . > catdoc report1a.doc > report1a.txt > catdoc report1b.doc > report1b.txt > diff report1*.txt Alternatively use antiword place the following 4 [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to quickly compare two versions of a Word document and realized I didn&#8217;t know how to do it. A quick Google revealed that catdoc was available with Cygwin (and I guess elsewhere) .</p>
<div class=box>
> catdoc report1a.doc > report1a.txt<br />
> catdoc report1b.doc > report1b.txt<br />
> diff report1*.txt</p>
<p>Alternatively use antiword<br />
place the following 4 lines in your .vimrc file</p>
<p>&#8221; use antiword to allow VIM to view the text of a Word Document<br />
autocmd BufReadPre *.doc set ro<br />
autocmd BufReadPre *.doc set hlsearch!<br />
autocmd BufReadPost *.doc %!antiword &#8220;%&#8221;</p>
<p>> vim -d report1a.doc report1b.doc</p>
<p>Remember neither catdoc or antiword allow you to update your word documents.</p>
<p>catdoc also works with PowerPoint etc.</p>
<p>Just found out that these don&#8217;t work with the XML based docs eg report.docx for these you need Perl based docx2txt</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software Update Hell</title>
		<link>http://zzapper.co.uk/software-update-hell/</link>
		<comments>http://zzapper.co.uk/software-update-hell/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 14:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows Tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=180</guid>
		<description><![CDATA[Software seems to need constant updating these days here&#8217;s what I&#8217;m updating:- Windows 7 service pack 1 : keeps refusing to install for various reasons WordPress 3.2.1 but some of my sites only had Mysql 4.x so I had to first upgrade to MySQL5.x Blackberry Curve 9300 : Although the phone is new, I&#8217;ve been [...]]]></description>
			<content:encoded><![CDATA[<p>Software seems to need constant updating these days here&#8217;s what I&#8217;m updating:-</p>
<ul>
<li> Windows 7 service pack 1 : keeps refusing to install for various reasons </li>
<li> WordPress 3.2.1 but some of my sites only had Mysql 4.x so I had to first upgrade to MySQL5.x</li>
<li> Blackberry Curve 9300 : Although the phone is new, I&#8217;ve been downloading huge updates</li>
<li> Virus Checkers etc etc</li>
</ul>
<p>I was also bedeviled by those warning screens &#8220;Are you sure you want to continue&#8221; which disappeared behind other windows and left me wondering why an update was taking so long!.</p>
<p>I always say yes to updates if only to get rid of them, but gosh I would actually like to use my Netbook, Blackberry etc!!</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/software-update-hell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>In Demand Web Skills</title>
		<link>http://zzapper.co.uk/in-demand-web-skills/</link>
		<comments>http://zzapper.co.uk/in-demand-web-skills/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 17:52:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=178</guid>
		<description><![CDATA[What is currently in demand is PHP5 that means OOP, any framework eg CakePHP/Zend or CodeIgniter and Jquery (Javascript) or good enough or on its own the serious Drupal experience. If you&#8217;ve got these you are gold dust, if not you are &#8230; dust &#8230; any comments?]]></description>
			<content:encoded><![CDATA[<p>What is currently in demand is PHP5 that means OOP, any framework eg CakePHP/Zend or CodeIgniter and Jquery (Javascript) or good enough or on its own the serious Drupal experience.<br />
If you&#8217;ve got these you are gold dust, if not you are &#8230; dust &#8230;</p>
<p>any comments?</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/in-demand-web-skills/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP is a Piece of Cake!</title>
		<link>http://zzapper.co.uk/cakephp-is-a-piece-of-cake/</link>
		<comments>http://zzapper.co.uk/cakephp-is-a-piece-of-cake/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 20:28:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding Tips]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=175</guid>
		<description><![CDATA[I&#8217;ve recently become aware of how behind the times my skills are , in particular if you write PHP you are expected to use a framework . I&#8217;ve chosen CakePHP and have installed it on my local Apache Server with a few permission hiccups. I&#8217;ve then completed the create a blog tutorial and it&#8217;s stunning [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently become aware of how behind the times my skills are , in particular if you write PHP you are expected to use a framework . I&#8217;ve chosen CakePHP and have installed it on my local Apache Server with a few permission hiccups. I&#8217;ve then completed the create a blog tutorial and it&#8217;s stunning how easy it is. It uses the MVC or Model-View-Controller system for development. To quote their documentation it <strong>CakePHP takes the monotony out of web development. We provide you with all the tools you need to get started coding what you really need to get done: the logic specific to your application. Instead of reinventing the wheel every time you sit down to a new project, check out a copy of CakePHP and get started with the real guts of your application</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/cakephp-is-a-piece-of-cake/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Remove Home in the Title of New Coppermine Gallery</title>
		<link>http://zzapper.co.uk/how-to-remove-home-in-the-title-of-new-coppermine-gallery/</link>
		<comments>http://zzapper.co.uk/how-to-remove-home-in-the-title-of-new-coppermine-gallery/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 15:44:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding Tips]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=171</guid>
		<description><![CDATA[Edit include/themes.inc.php Find the function and modify as follows function theme_page_title($section) { global $CONFIG; $return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name']; // original code $return = $CONFIG['gallery_name']; // Section removed return $return; } this change works for cpg1.5.x]]></description>
			<content:encoded><![CDATA[<p>Edit include/themes.inc.php</p>
<p>Find the function and modify as follows</p>
<p><code><br />
function theme_page_title($section)<br />
{<br />
    global $CONFIG;<br />
    $return = strip_tags(bb_decode($section)) . ' - ' . $CONFIG['gallery_name']; // original code<br />
    $return = $CONFIG['gallery_name']; // Section removed<br />
    return $return;<br />
}<br />
</code></p>
<p>this change works for cpg1.5.x </p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/how-to-remove-home-in-the-title-of-new-coppermine-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Perl for Complex Edits</title>
		<link>http://zzapper.co.uk/using-perl-for-complex-edits/</link>
		<comments>http://zzapper.co.uk/using-perl-for-complex-edits/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 08:45:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding Tips]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=165</guid>
		<description><![CDATA[All I use Vim 99% of the time whenever I want to do a really complex multiple edit I tend to use Perl. So what&#8217;s the script doing ? It reads in one text file line by line and then operates on certain lines , and then writes out each line to an output file. [...]]]></description>
			<content:encoded><![CDATA[<p>All I use Vim 99% of the time whenever I want to do a really complex multiple edit I tend to use Perl.</p>
<p>So what&#8217;s the script doing ? It reads in one text file line by line and then operates on certain lines , and then writes out each line to an output file. You are only limited by your imagination as to what you do in the loop.</p>
<p>With a Perl script you can use Perl variables for counts, you can use a hash to store all the text and loop through it as often as required.<br />
<code><br />
#!/usr/local/bin/perl<br />
# pedit.pl<br />
# description : Use for complex edits on a single file, adapt as required<br />
# this trivial example is just incrementing a count<br />
# zzapper<br />
# v1.0<br />
if ($#ARGV >= 0) { $file = $ARGV[0]; }<br />
else<br />
{<br />
print "enter file:"; $file=<STDIN>;<br />
}<br />
chomp $file;<br />
open (R,"$file") or die ("could not open $file ($!)");<br />
$out = "c:/aaa/out.txt";<br />
$out = "$file.txt";<br />
$cnt=100;</p>
<p>open (W,">$out") or die ("could not open $out ($!)",__LINE__);<br />
{<br />
    for $l (<R>)<br />
    {<br />
       $l=~s/david1/david$cnt/gi;   # do what you want here<br />
       print W $l;<br />
       $cnt++;<br />
    }<br />
}<br />
close W; close R;<br />
print "\nOutput in cnt: $cnt :: $out\n";</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/using-perl-for-complex-edits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickBooks Simple Start saving invoices as PDF files</title>
		<link>http://zzapper.co.uk/quickbooks-simple-start-saving-invoices-as-pdf-files/</link>
		<comments>http://zzapper.co.uk/quickbooks-simple-start-saving-invoices-as-pdf-files/#comments</comments>
		<pubDate>Fri, 27 May 2011 12:51:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows Tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=158</guid>
		<description><![CDATA[How can I save my QuickBooks Invoice as a PDF As a freelancer I only need a simple bookkeeping package so QuickBooks Simple Start Free Edition is perfect. Quickbooks is very quick to set up and I soon had my invoices entered and now wanted to email them but oops there is no way to [...]]]></description>
			<content:encoded><![CDATA[<h3>How can I save my QuickBooks Invoice as a PDF</h3>
<p>As a freelancer I only need a simple bookkeeping package so QuickBooks Simple Start Free Edition is perfect.</p>
<p>Quickbooks is very quick to set up and I soon had my invoices entered and now wanted to email them but oops there is no way to save the invoice as a PDF. Never mind I can email them to my client but no QuickBooks Simple Start only recognizes either Outlook or Windows Mail as email client and these are not available on Windows 7. I download, install and configure their replacement Windows Live Mail but QuickBooks stubbornly refuses to acknowledge it. I now trawl through QuickBooks own community forum and see people moaning that Windows Live Mail is ignored; apparently it will be or is available in QuickBooks 2011 . </p>
<p>Finally <strong>breakthrough </strong>I install CutePDF Writer http://www.cutepdf.com/ it is completely free. Now all I have to do is print my Invoice and select CutePDF as the virtual printer, CutePDF asks me where I want to save the Invoice PDF. I can then manually email my invoices (PDFs) to customers using my conventional email client allowing to add a personal message and also with the advantage of leaving me with an audit trail.</p>
<p>CutePDF Instructions: Using CutePDF Writer to create PDF document:</p>
<p>    Select Print to bring up Print dialog box.<br />
    Then select CutePDF Writer as the Printer to print.<br />
    You will get a Save As dialog box prompted for saving created PDF file.<br />
    Select a folder to Save in and enter a File name, then click on Save.<br />
    Go to that folder to find your PDF file. </p>
<p>    CutePDF Writer supports Microsoft Windows 98/ME/2000/XP/Vista/7 (x32/x64). </p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/quickbooks-simple-start-saving-invoices-as-pdf-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

