<?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>Meek Consulting</title>
	<atom:link href="http://meekconsulting.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://meekconsulting.com/wordpress</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 17 Mar 2010 01:52:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title></title>
		<link>http://meekconsulting.com/wordpress/?p=41</link>
		<comments>http://meekconsulting.com/wordpress/?p=41#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:55:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=41</guid>
		<description><![CDATA[Configuring Apache on CENTOS: Just some random notes on what I had to do to get my Perferred tools installed on Apache under centos: yum install php-Smarty php-pear php-pear-MDB2 php-mysql To get pear configured I ran these commands: pear upgrade MDB2 pear install &#8216;MDB2#mysql&#8217; pear channel-discover pear.firephp.org pear install firephp/FirePHPCore After starting up mysqld I [...]]]></description>
			<content:encoded><![CDATA[<p>Configuring Apache on CENTOS:<br />
Just some random notes on what I had to do to get my Perferred tools installed on Apache under centos:</p>
<blockquote><p>yum install php-Smarty php-pear php-pear-MDB2 php-mysql</p></blockquote>
<p>To get pear configured I ran these commands:</p>
<blockquote><p>pear upgrade MDB2<br />
pear install &#8216;MDB2#mysql&#8217;<br />
pear channel-discover pear.firephp.org<br />
pear install firephp/FirePHPCore</p></blockquote>
<p>After starting up mysqld I ran the script to set root password and lock down the mysql db:</p>
<blockquote><p>service mysqld start</p>
<p>/usr/bin/mysql_secure_installation</p></blockquote>
<p>=======</p>
<p>Other useful commands:</p>
<p>chcon -R -h -t httpd_sys_content_t www</p>
<p>service httpd restart</p>
<blockquote><p>mkdir /usr2/apps/Smarty</p>
<p>cd /usr2/apps/Smarty</p>
<p>wget http://www.smarty.net/do_download.php?download_file=Smarty-2.6.26.tar.gz</p>
<p>tar xozvf Smarty-2.6.26.tar.gz</p>
<p>mkdir /usr/local/lib/php</p>
<p>mkdir /usr/local/lib/php/Smarty</p>
<p>cp -r Smarty-2.6.26/libs/* /usr/local/lib/php/Smarty</p></blockquote>
<p>Set include path:</p>
<blockquote><p>vi php.ini</p>
<p>AND MAKE FOLLOWING edit tot he include path line</p>
<p>include_path = &#8220;.:/usr/share/php:/usr/local/lib/php/Smarty:/usr/share/pear&#8221;</p></blockquote>
<p>Restart Webserver</p>
<blockquote><p>service httpd restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=41</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating the Fiscal Year in Excel</title>
		<link>http://meekconsulting.com/wordpress/?p=38</link>
		<comments>http://meekconsulting.com/wordpress/?p=38#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:59:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=38</guid>
		<description><![CDATA[Jason came up with this nifty formula to calculate the fiscal year in excel based on a string in the YYYY-MM-DD format. It could be adapted to support other formats by changing the MID substring values ( MID is the excel Substring function). This example references a date in cell AB7 &#8212; you&#8217;ll have to [...]]]></description>
			<content:encoded><![CDATA[<p>Jason came up with this nifty formula to calculate the fiscal year in excel based on a string in the YYYY-MM-DD format.<br />
It could be adapted to support other formats by changing the MID substring values ( MID is the excel Substring function).</p>
<p>This example references a date in cell AB7 &#8212; you&#8217;ll have to change that to refer to your date field.</p>
<blockquote><p>=IF(MID(AB7,6,2)=&#8221;10&#8243;,MID(AB7,1,4)+1,IF(MID(AB7,6,2)=&#8221;11&#8243;,MID(AB7,1,4)+1,IF(MID(AB7,6,2)=&#8221;12&#8243;,MID(AB7,1,4)+1,0+MID(AB7,1,4))))</p></blockquote>
<p>[ad#Google Adsense]</p>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=38</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CRL lists with PKI certificate of authorities</title>
		<link>http://meekconsulting.com/wordpress/?p=36</link>
		<comments>http://meekconsulting.com/wordpress/?p=36#comments</comments>
		<pubDate>Mon, 08 Mar 2010 20:53:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=36</guid>
		<description><![CDATA[Notes from 3/8/2010  troubleshooting crl issues. Users called and could not access the cobra web site. They were using certificates issued by Verisign – specifically: CN=VeriSign Client External Certification Authority &#8211; G2 I checked our page using the command: openssl s_client -showcerts  -connect usecobra.com:443 -prexit and we were not accepting verisign G2 cert on cobra [...]]]></description>
			<content:encoded><![CDATA[<p>Notes from 3/8/2010  troubleshooting crl issues.</p>
<p>Users called and could not access the cobra web site.</p>
<p>They were using certificates issued by Verisign – specifically:</p>
<p>CN=VeriSign Client External Certification Authority &#8211; G2</p>
<p>I checked our page using the command:</p>
<p><strong>openssl s_client -showcerts  -connect usecobra.com:443 -prexit</strong></p>
<p>and we were not accepting verisign G2 cert on cobra</p>
<p>So I went to the DISA webpage: <a href="https://crl.chamb.disa.mil/">https://crl.chamb.disa.mil/</a></p>
<p>NOTE:  a quicker way to get the new cert is to cut and paste from the view screen after selecting a cert on the left and clicking view on the right side of the page.</p>
<p>This is an ascii representation of the cert known as PEM format.  ( as apposed to the .DER format  which is binary that you get when you use the download link.</p>
<p>For our purposes we want the PEM format ascii file to put in our ca-bundle.txt</p>
<p>I like to put the PEM cert in a file by itself to verify it.  I named this one verisign_ECA_G2.crt</p>
<p>Then I can run this to verify and get the issuer / subject to up in the comments.</p>
<p><strong><em>openssl x509 -inform PEM -in verisign_ECA_G2.crt -issuer -subject –noout</em></strong></p>
<p><strong><em> </em></strong></p>
<p>issuer= /C=US/O=U.S. Government/OU=ECA/CN=ECA Root CA 2</p>
<p>subject= /C=US/O=U.S. Government/OU=ECA/OU=Certification Authorities/CN=VeriSign Client External Certification Authority &#8211; G2</p>
<p>I edited the ca-bundle.crt to add the comments at the top and the cert.</p>
<p>I add the code like this:</p>
<p>#############################################</p>
<blockquote><p>#subject= /C=US/O=U.S. Government/OU=ECA/OU=Certification Authorities/CN=VeriSign Client External Certification Authority &#8211; G2</p>
<p>#issuer= /C=US/O=U.S. Government/OU=ECA/CN=ECA Root CA 2</p>
<p>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;</p>
<p>MIIF7DCCBNSgAwIBAgIBCjANBgkqhkiG9w0BAQUFADBNMQswCQYDVQQGEwJVUzEY</p>
<p>MBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNFQ0ExFjAUBgNVBAMT</p>
<p>&#8230;</p>
<p>DUVDQSBSb290IENBIDIwHhcNMDgwNzAyMTQ0MTE4WhcNMTQwNzAxMTQ0MTE4WjCB</p>
<p>X158kXsnY2wvH2WdMMpHmj7GvikIw/tP/7w9/uwe6mE=</p>
<p>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;</p></blockquote>
<p>ON linux just restart the webserver to make it take affecte</p>
<blockquote><p>service httpd restart</p></blockquote>
<p>On oracle it is a little more complicated:</p>
<p>Log in as oracle</p>
<p>. formsset</p>
<p>cd /ora/wallets</p>
<p>## Save off the wallet.p12  for backup</p>
<p>cp wallet.p12 wallet.p12.100308</p>
<p>Edit ca-bundle.crt as described above.</p>
<p>Run ./import_cert which will “recomple” the wallet.p12 by running this command:</p>
<blockquote><p><strong><em>/ora/10ias/Apache/Apache/bin/ssl2ossl -cert /ora/wallets/usecobra.com.crt -key /ora/wallets/usecobra.com.key -cafile /ora/wallets/ca-bundle.crt -wallet /ora/wallets</em></strong></p></blockquote>
<p>You will need the password for the wallet as well as the key to complete this command.</p>
<p><strong> Note</strong> – if it fails that means the cert you added is invalid – OR you do not have the cert for the all the parents up the chain of the issuer of that cert.</p>
<p>Then to restart the webserver on Oracle Solaris run the following commands</p>
<p><strong><em>$ORACLE_HOME/opmn/bin/opmnctl status</em></strong></p>
<p><strong><em>$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server</em></strong></p>
<p><strong><em>$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server</em></strong></p>
<p><strong><em>$ORACLE_HOME/opmn/bin/opmnctl status</em></strong></p>
<h1>Out of date CRL lists!!!</h1>
<p>We found out today that the reason G2 certs from verisign were not being accepted was because the CRL file for Verisign we had in place was out of date.</p>
<p>All certs from an issuer whose CRL is expired are rejected until we get  a valid CRL list from that issuer – this is the concept that if my guest list is considered obsolete – no one from that source will get in.  Make sense.</p>
<blockquote><p><strong><em>openssl crl -inform DER -in /etc/httpd/crl/VERISIGNCLIENTEXTERNALCERTIFICATIONAUTHORITY_G2.crl -text | less</em></strong></p></blockquote>
<p>The command above will show the revoked certs by date and reason – as well as the “validitiy dates” for the list</p>
<p>Certificate Revocation List (CRL):</p>
<blockquote><p>Version 2 (0&#215;1)</p>
<p>Signature Algorithm: sha1WithRSAEncryption</p>
<p>Issuer: /C=US/O=U.S. Government/OU=ECA/OU=Certification Authorities/CN=VeriSign Client External Certification Authority &#8211; G2</p>
<p>Last Update: May 29 15:23:49 2009 GMT</p>
<p>Next Update: May 30 09:23:49 2009 GMT</p></blockquote>
<p>In the above example has a Next Update date – after that time no one with a verisign G2 signed cert will be able to get in.</p>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=36</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>converting julian date to real date in mysql</title>
		<link>http://meekconsulting.com/wordpress/?p=33</link>
		<comments>http://meekconsulting.com/wordpress/?p=33#comments</comments>
		<pubDate>Thu, 04 Mar 2010 17:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=33</guid>
		<description><![CDATA[We&#8217;ve got data that uses a funky date format &#8212; not a true julian date  but the Year followed by the DAY of the year. i.e. 2010005 = January 5th, 2010 2010031 = January 31st 2010 2010365 = December 31st 2010 This little snippet of code will allow you to select it from the mysql [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve got data that uses a funky date format &#8212; not a true julian date  but the Year followed by the DAY of the year.</p>
<p>i.e.</p>
<p>2010005 = January 5th, 2010</p>
<p>2010031 = January 31st 2010</p>
<p>2010365 = December 31st 2010</p>
<p>This little snippet of code will allow you to select it from the mysql database and convert it to a real date.</p>
<blockquote><p>select date_sub(date_add(concat(substr(jdate,1,4),&#8217;-01-01&#8242;), interval  substr(jdate,5,3) day ), interval 1 day)</p></blockquote>
<p>so in this example below returns May 2 ( the 123rd day of 2004 is May 2 )</p>
<blockquote><p>select date_sub(date_add(concat(substr(&#8217;2004123&#8242;,1,4),&#8217;-01-01&#8242;), interval substr(&#8217;2004123&#8242;,5,3) day ), interval 1 day)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=33</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim colorschemes</title>
		<link>http://meekconsulting.com/wordpress/?p=29</link>
		<comments>http://meekconsulting.com/wordpress/?p=29#comments</comments>
		<pubDate>Tue, 09 Feb 2010 15:21:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=29</guid>
		<description><![CDATA[If you want to customize the colors you get in  VIM Here is a gallery:   http://vimcolorschemetest.googlecode.com/svn/html/index-html.html To try out different schemes you can type :colorscheme XXXXX in vi  where XXX is the scheme name  (without the .vim extension ) Once you find one you like you can put that command in your .vimrc in your [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to customize the colors you get in  VIM</p>
<p>Here is a gallery:   <a title="VIM Colorscheme gallery" href="http://vimcolorschemetest.googlecode.com/svn/html/index-html.html" target="_blank">http://vimcolorschemetest.googlecode.com/svn/html/index-html.html</a></p>
<p>To try out different schemes you can type</p>
<blockquote><p>:colorscheme XXXXX</p></blockquote>
<p>in vi  where XXX is the scheme name  (without the .vim extension )</p>
<p>Once you find one you like you can put that command in your .vimrc in your home directory</p>
<p>I like :colorscheme darkblue</p>
<p>It looks for the files in /usr/share/vim/vim70/colors directory.</p>
<p>The only ones we have now on ccdev are listed below &#8212; if you pick one from that website we can download it and put it in that directory so everyone can choose it.</p>
<blockquote><p>/usr/share/vim/vim70/colors/blue.vim</p>
<p>/usr/share/vim/vim70/colors/darkblue.vim</p>
<p>/usr/share/vim/vim70/colors/default.vim</p>
<p>/usr/share/vim/vim70/colors/delek.vim</p>
<p>/usr/share/vim/vim70/colors/desert.vim</p>
<p>/usr/share/vim/vim70/colors/elflord.vim</p>
<p>/usr/share/vim/vim70/colors/evening.vim</p>
<p>/usr/share/vim/vim70/colors/koehler.vim</p>
<p>/usr/share/vim/vim70/colors/morning.vim</p>
<p>/usr/share/vim/vim70/colors/murphy.vim</p>
<p>/usr/share/vim/vim70/colors/pablo.vim</p>
<p>/usr/share/vim/vim70/colors/peachpuff.vim</p>
<p>/usr/share/vim/vim70/colors/ron.vim</p>
<p>/usr/share/vim/vim70/colors/shine.vim</p>
<p>/usr/share/vim/vim70/colors/slate.vim</p>
<p>/usr/share/vim/vim70/colors/torte.vim</p>
<p>/usr/share/vim/vim70/colors/zellner.vim</p></blockquote>
<p>[ad#Google_leaderboard]</p>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Separating storage of mysql database files</title>
		<link>http://meekconsulting.com/wordpress/?p=27</link>
		<comments>http://meekconsulting.com/wordpress/?p=27#comments</comments>
		<pubDate>Fri, 05 Feb 2010 18:31:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=27</guid>
		<description><![CDATA[We often have very large databases we want to create in mysql. If we don&#8217;t have enough space in the /var/lib/mysql partition it is handy to be able to specify that a specific database be stored on another drive. This can fairly easily be done by using innodb_file_per_table parameter in your my.cnf and using symbolic [...]]]></description>
			<content:encoded><![CDATA[<p>We often have very large databases we want to create in mysql.</p>
<p>If we don&#8217;t have enough space in the /var/lib/mysql partition it is handy to be able to specify that a specific database be stored on another drive.</p>
<p>This can fairly easily be done by using innodb_file_per_table parameter in your my.cnf and using symbolic links.  The only tricky part is getting it to work under SELinux.  ( Don&#8217;t turn off SELINUX like other people say )  just follow these instructions to get it to allow what you want.</p>
<p>Steps to add new database that will use external storage:</p>
<p>Create the database using:</p>
<blockquote><p>mysqladmin -uroot -p  [pw] create newdbname</p>
<p>Shutdown mysql</p>
<p>/etc/init.d/mysqld stop</p></blockquote>
<p>Edit /etc/my.cnf  adding line for innodb_file_per_table under the mysqld section</p>
<blockquote><p>[mysqld]</p>
<p>innodb_file_per_table</p></blockquote>
<p>While db is shut down &#8212; move the directory for the new database to a partition with space.</p>
<blockquote><p>mv /var/lib/mysql/newdbname /bigpartition/mysql/newdbname</p></blockquote>
<p>Create a symbolic link to the new location ( mysql looks only in /var/lib/mysql for databases on startup)</p>
<blockquote><p>cd /var/lib/mysql</p>
<p>ln -s /bigpartition/mysql/newdbname newdbname</p>
<p>ls -l /bigpartition/mysql/newdbname</p></blockquote>
<p>Fix the context on the newly created directories or you the database will not be visible when mysql restarts ( SELinux will prohibit mysql from using files in these directories )</p>
<blockquote><p>chcon -c -t mysqld_db_t /bigpartition/mysql</p>
<p>chcon -c -t mysqld_db_t /bigpartition/mysql/newdbname</p></blockquote>
<p>Re-start the MYSQL database</p>
<blockquote><p>/etc/init.d/mysql start</p></blockquote>
<p>Restore your database dump or create new tables.  The command I use is:</p>
<blockquote><p>nohup time gunzip &lt; backup.dmp.gz | mysql -uroot -p[dbpw] newdbname &gt; restore.err 2&gt;&amp;1 &amp;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading compressed file into mysql without uncompressing</title>
		<link>http://meekconsulting.com/wordpress/?p=25</link>
		<comments>http://meekconsulting.com/wordpress/?p=25#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:43:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=25</guid>
		<description><![CDATA[If you have a compressed file from a mysqldump backup of your mysql database, and you don&#8217;t have space to uncompress it to load it on another machine.  You can load it directly from the compress file using this command: zcat backupdump.sql.gz &#124; mysql -uusername -p databasename This will uncompress the file on the fly [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a compressed file from a mysqldump backup of your mysql database, and you don&#8217;t have space to uncompress it to load it on another machine.  You can load it directly from the compress file using this command:</p>
<blockquote><p>zcat backupdump.sql.gz | mysql -uusername -p databasename</p></blockquote>
<p>This will uncompress the file on the fly without using the space to hold the uncompressed file.</p>
<p><strong>NOTE:</strong> You can create a compressed on the fly backup of a table by doing this command:</p>
<blockquote><p>mysqldump -uuser -ppass dbname tablename | gzip &#8211; &gt; backupdump.sql.gz</p></blockquote>
<p>Leave out the tablename to dump the entire database..</p>
<p>I run this command in backup scripts for all my databases every night from cron.</p>
<p>These backup scripts typically look like this to name the file using todays date:</p>
<blockquote><p>#!/bin/bash</p>
<p>cd /backupdirectory</p>
<p>DAY=`date &#8216;+%m%d%y&#8217;`</p>
<p>OUTFILE=&#8221;dataabasename.dmp.sql.$DAY.gz&#8221;</p>
<p>mysqldump -uuser -ppass dbname | gzip &#8211; &gt; $OUTFILE</p>
<p>scp $OUTFILE remoteserverforsafekeeping.com:/backups</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=25</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing VIM to allow smart match finding using the percent key</title>
		<link>http://meekconsulting.com/wordpress/?p=19</link>
		<comments>http://meekconsulting.com/wordpress/?p=19#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:50:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=19</guid>
		<description><![CDATA[Edited the file /usr/share/vim/vim70/syntax/smarty.vim Added the following code: " HTML:  thanks to Johannes Zellner and Benji Fisher. if exists("loaded_matchit") let b:match_ignorecase = 1 let b:match_skip = 's:Comment' let b:match_words = '&#60;:&#62;,' . \ '&#60;\@&#60;=[ou]l\&#62;[^&#62;]*\%(&#62;\&#124;$\):&#60;\@&#60;=li\&#62;:&#60;\@&#60;=/[ou]l&#62;,' . \ '&#60;\@&#60;=dl\&#62;[^&#62;]*\%(&#62;\&#124;$\):&#60;\@&#60;=d[td]\&#62;:&#60;\@&#60;=/dl&#62;,' . \ '&#60;\@&#60;=\([^/][^ \t&#62;]*\)[^&#62;]*\%(&#62;\&#124;$\):&#60;\@&#60;=/\1&#62;' endif This sets the HTML tag matching words for the matchit plug in when [...]]]></description>
			<content:encoded><![CDATA[<p>Edited the file</p>
<p><strong>/usr/share/vim/vim70/syntax/smarty.vim</strong></p>
<p>Added the following code:</p>
<blockquote>
<pre><strong><em>" HTML:  thanks to Johannes Zellner and Benji Fisher.</em></strong><strong><em>
if exists("loaded_matchit")</em></strong><strong><em>
let b:match_ignorecase = 1</em></strong><strong><em>
let b:match_skip = 's:Comment'</em></strong><strong><em>
let b:match_words = '&lt;:&gt;,' .</em></strong><strong><em>
\ '&lt;\@&lt;=[ou]l\&gt;[^&gt;]*\%(&gt;\|$\):&lt;\@&lt;=li\&gt;:&lt;\@&lt;=/[ou]l&gt;,' .</em></strong><strong><em>
\ '&lt;\@&lt;=dl\&gt;[^&gt;]*\%(&gt;\|$\):&lt;\@&lt;=d[td]\&gt;:&lt;\@&lt;=/dl&gt;,' .</em></strong><strong><em>
\ '&lt;\@&lt;=\([^/][^ \t&gt;]*\)[^&gt;]*\%(&gt;\|$\):&lt;\@&lt;=/\1&gt;'</em></strong><strong><em>
endif</em></strong></pre>
</blockquote>
<p>This sets the HTML tag matching words for the matchit plug in when the filetype of Smarty is identified.</p>
<p>Then I edited the <strong>/etc/vimrc</strong></p>
<p><strong> </strong></p>
<p>Adding these lines to the bottom:</p>
<p><strong> </strong></p>
<blockquote>
<pre><strong><em>" CODE added to universally turn on the matchit plugin.
" added K. Meek 9/09
:source /usr/share/vim/vim70/macros/matchit.vim
:filetype plugin on</em></strong></pre>
</blockquote>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>Now when you are editing a .tpl file the syntax is “SMARTY” for color coding, but the match words will match HTML tags </strong></p>
<p><strong><br />
So you can position your cursor over say a &lt;tr&gt; tag and hit the % key and it will move cursor to the matching &lt;/tr&gt; tag.  Same with &lt;div&gt; will find matching &lt;/div&gt;</strong></p>
<p><strong> </strong></p>
<p><strong> VERY COOL!</strong></p>
<p><strong>You may need the matchit.vim plugin.  You can download it here.</strong></p>
<p><a href="http://www.vim.org/scripts/script.php?script_id=39" target="_blank">http://www.vim.org/scripts/script.php?script_id=39</a></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=19</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Background Gradient Image Creation Tool</title>
		<link>http://meekconsulting.com/wordpress/?p=17</link>
		<comments>http://meekconsulting.com/wordpress/?p=17#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:41:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=17</guid>
		<description><![CDATA[If you need to create a gradient image for a background you might try this tool. It is pretty slick. http://www.ogim.4u2ges.com/gradient-image-maker.asp]]></description>
			<content:encoded><![CDATA[<p>If you need to create a gradient image for a background you might try this tool.</p>
<p>It is pretty slick.</p>
<p><a href="http://www.ogim.4u2ges.com/gradient-image-maker.asp">http://www.ogim.4u2ges.com/gradient-image-maker.asp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faster MYSQL Index creation</title>
		<link>http://meekconsulting.com/wordpress/?p=12</link>
		<comments>http://meekconsulting.com/wordpress/?p=12#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:56:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://meekconsulting.com/wordpress/?p=12</guid>
		<description><![CDATA[Creating indexes in mysql on large tables can take a long time. Because it makes a temporary copy of the entire DB file first then creates the indexes. So be sure you have enough free space for the complete DB ( MYI and MYD for MYISAM databases ) plus space for the new version. If [...]]]></description>
			<content:encoded><![CDATA[<p>Creating indexes in mysql on large tables can take a long time.  Because it makes a temporary copy of the entire DB file first then creates the indexes.</p>
<p>So be sure you have enough free space for the complete DB ( MYI and MYD for MYISAM databases ) plus space for the new version.</p>
<p>If you need to create multiple indexes doing them all in one command saves the time of creating that copy of the DB each time ( many hours in some cases )</p>
<p>Also increasing the Sort buffer sizes will greatly speed things up.</p>
<p>Here is the SQL we used to reduce creation time from 4 days to 11 hours on a 400 Million record table (80Gig Size).</p>
<blockquote><p>set myisam_sort_buffer_size=2000000000;<br />
set sort_buffer_size=2000000000;<br />
alter table schema.tablename<br />
add index index1 using BTREE(field1,field2),<br />
add index index2 using BTREE(field3,field4),<br />
add index index3 using BTREE(field5);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://meekconsulting.com/wordpress/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
