<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Julian Castaneda</title>
	
	<link>http://www.smooka.com/blog</link>
	<description>From programming to music!</description>
	<lastBuildDate>Mon, 29 Aug 2011 15:50:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/smookablog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="smookablog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">smookablog</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>UTF-8 Encoding problems with file_get_contents() and DOMDocument</title>
		<link>http://www.smooka.com/blog/2011/08/29/utf-8-encoding-file_get_contents-and-domt/</link>
		<comments>http://www.smooka.com/blog/2011/08/29/utf-8-encoding-file_get_contents-and-domt/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 15:50:40 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=447</guid>
		<description><![CDATA[I recently bumped into an encoding issue on a project I was working on. I was trying to scrape some content off a website that had ISO-8859-1 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bumped into an encoding issue on a project I was working on.<br />
I was trying to scrape some content off a website that had ISO-8859-1 charset encoding, and I needed to capture some text and store it in a database as UTF-8.</p>
<p>After some trial and error I discovered a way to properly change the encoding before saving it in the DB.</p>
<p>A simplified version of what I did:</p>
<pre class="brush: php; title: ; notranslate">
 $url = 'http://www.smooka.com/blog/';
 $html = file_get_contents($url);

 //Change encoding to UTF-8 from ISO-8859-1
 $html = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $html);
</pre>
<p><span id="more-447"></span><br />
This partially solved my problem. But for some reason single quotes where displayed with a question mark symbol. After reading documentation, forums, etc.. I discovered that I needed to translate ASCII characters. </p>
<pre class="brush: php; title: ; notranslate">
 $dom = new Zend_Dom_Query($html);
 $results = $dom-&gt;query('div p');

 foreach ($results as $result)
 {
    $line = $result-&gt;nodeValue;
    $line = iconv('UTF-8', 'ASCII//TRANSLIT', $line);
 }
</pre>
<p>Hope this saves you some time, as I was not able to find a complete solution on the web so I had to piece everything together.</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/dFf5K172SC0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2011/08/29/utf-8-encoding-file_get_contents-and-domt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Change UTC time to local time</title>
		<link>http://www.smooka.com/blog/2011/06/03/utc-time-to-local-time/</link>
		<comments>http://www.smooka.com/blog/2011/06/03/utc-time-to-local-time/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 21:10:30 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[utc]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=439</guid>
		<description><![CDATA[Did you know that you can quickly change UTC time stamps to Local time by doing the following: It&#8217;s so obvious, but I only wished, I knew [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that you can quickly change UTC time stamps to Local time by doing the following:</p>
<pre class="brush: php; title: ; notranslate">
//make sure your time is set
date_default_timezone_set('America/New_York');

$datetime = '2004-02-12T15:19:21+00:00';

//convert the given datetime string to time
$newDatetime = strtotime($datetime);

//re-contruct to format
$newDatetime = date('Y-m-d H:i:s', newDatetime);
</pre>
<p>It&#8217;s so obvious, but I only wished, I knew this before trying all sort of crazy stuff. </p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/g8stndPB9ek" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2011/06/03/utc-time-to-local-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unit Testing your AJAX requests with Zend Framework and PHPunit</title>
		<link>http://www.smooka.com/blog/2011/01/15/unit-testing-ajax-requests-zend-framework-phpunit/</link>
		<comments>http://www.smooka.com/blog/2011/01/15/unit-testing-ajax-requests-zend-framework-phpunit/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 20:28:26 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Frameworks and API's]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHPunit]]></category>
		<category><![CDATA[unit test]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=421</guid>
		<description><![CDATA[I ran into a problem yesterday, when trying to create a couple of unit tests using PHPunit along side the Zend Framework. If you want to unit [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.smooka.com/blog/wp-content/uploads/phpunit.gif" alt="" title="phpunit" width="94" height="80" class="alignleft size-full wp-image-432" />I ran into a problem yesterday, when trying to create a couple of unit tests using <a href="https://github.com/sebastianbergmann/phpunit/" target="_blank">PHPunit</a> along side the <a href="http://zendframework.com/" target="_blank">Zend Framework</a>. </p>
<p>If you want to unit test an action in a controller that checks the request to see if is an XML HTTP Request using the <a href="http://www.smooka.com/blog/2009/04/17/5-things-working-with-zend-framework-and-ajax/">isXmlHttpRequest()</a> method provided by the Zend Framework, then you will definitely run into a problem.</p>
<p>isXmlHttpRequest() pretty much checks to see if the $_SERVER['HTTP_X_REQUESTED_WITH'] is set with &#8216;XMLHttpRequest&#8217;, if not, then returns FALSE. I thought that by setting the server variable with XMLHttpRequest directly will allow me to bypass the check.<br />
<span id="more-421"></span></p>
<pre class="brush: php; title: ; notranslate">
function myAjaxTestAction()
{
      $_SERVER['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest';

      //then do your ajax tests here
}
</pre>
<p>This solution seemed like it was going to work, but it turns out that isXmlHttpRequest() makes a call to getHeader() like this:</p>
<pre class="brush: php; title: ; notranslate">
public function isXmlHttpRequest()
{
        return ($this-&gt;getHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');
}
</pre>
<p>What I didn&#8217;t know is that when you are doing unit tests the framework extends the HTTP class and changes the getHeader() to only use headers set using the setHeader or setHeaders methods.<br />
After a couple of minutes tracing over the calls being made. I discovered that the fix was pretty simple, set our headers doing the following in your test case:</p>
<pre class="brush: php; title: ; notranslate">
function myAjaxTestAction()
{
      $this-&gt;request-&gt;setHeader('X_REQUESTED_WITH');

      //then do your ajax tests here
}
</pre>
<p>This will fake an AJAX request and return the expected result.</p>
<p>I hope this article helps many of you since I spent many hours trying to decipher why setting &#8216;XMLHttpRequest&#8217; to the $_SERVER did not work as I expected.</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/o6dR3t1GhKo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2011/01/15/unit-testing-ajax-requests-zend-framework-phpunit/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fix GIT Lock after GIT Crash</title>
		<link>http://www.smooka.com/blog/2010/12/09/fix-git-lock-after-git-crash/</link>
		<comments>http://www.smooka.com/blog/2010/12/09/fix-git-lock-after-git-crash/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 16:04:12 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=412</guid>
		<description><![CDATA[If you ever see the following message when trying to commit your code to a GIT repository. If no other git process is currently running, this probably [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever see the following message when trying to commit your code to a GIT repository.</p>
<blockquote><p>If no other git process is currently running, this probably means a<br />
git process crashed in this repository earlier. Make sure no other git<br />
process is running and remove the file manually to continue.</p></blockquote>
<p><span id="more-412"></span><br />
The solution is very easy, just delete the .git/index.lock file<br />
<code>~ rm /yourhomedir/.git/index.lock</code></p>
<p>Then you need to do a git reset<br />
<code>~ git reset</code></p>
<p>That should do the trick. Let me know if this worked for you.</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/8yzQ9OQ5Rdk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/12/09/fix-git-lock-after-git-crash/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Zend Framework: Internalization and Translation</title>
		<link>http://www.smooka.com/blog/2010/08/06/zend-framework-translation-internalization/</link>
		<comments>http://www.smooka.com/blog/2010/08/06/zend-framework-translation-internalization/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 20:08:12 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Frameworks and API's]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Zend_Translate]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=362</guid>
		<description><![CDATA[This week I set myself to lay the ground work of translation on the application we are doing at work. In our application we are using Zend [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.smooka.com/blog/wp-content/uploads/translate1.png" alt="" title="translate" width="200" height="259" class="alignright size-full wp-image-377" />This week I set myself to lay the ground work of translation on the application we are doing at work. In our application we are using Zend Framework, so I decided to take a look into the Zend_Translate component to see if it was easy and something that could work in our current environment.</p>
<p>After reading the reference guide on <a href="http://framework.zend.com/manual/en/zend.translate.html" target="_blank">Zend_Translate</a> I decided that we were going to use &#8220;<a href="http://www.gnu.org/software/gettext/manual/gettext.html" target="_blank">gettext</a>&#8221; as our translation adapter.  PHP has support for gettext right our of the box, and with the Zend_Translate it&#8217;s easy to change adapters, if you decide that you want to use a different adapter.</p>
<p>Assuming that you already have the latest version of Zend Framework (1.10.*) installed in your server, I&#8217;m going to explain and guide you guys on how I got it all working.<br />
<span id="more-362"></span></p>
<p>First you need to get a tool that we will use to parse your project files to create the translation dictionaries. I&#8217;m using <a href="http://www.poedit.net/" target="_blank">PoEdit</a> which is free and supports multiple platforms.</p>
<p>Now let&#8217;s put some code down in your index.phtml file of you application. This one should be located in /yourapp/application/views/scripts/index/<br />
If it&#8217;s not there, then just create one, but make sure you have to corresponding controller and action.<br />
Inside of this file we are going to put the following:</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php
$t = new Zend_Translate(
	'gettext',  //the adapter
	APPLICATION_PATH.'/translation', //where the lang files will be stored
	'auto',  //set to auto include .mo files
	array('scan' =&gt; Zend_Translate::LOCALE_FILENAME) //set to scan lang files
);

echo $t-&gt;_(&quot;This is my first translation&quot;).&quot;&lt;br/&gt;&quot;;
?&gt;
</pre>
<p>Before this piece of code works, we need to generate our translation files, else it will throw an error stating that the application can&#8217;t find the corresponding language files.</p>
<p>We need to create a new folder in your application folder. I&#8217;m calling it <strong>lang</strong>, but you can call it anything you want. This folder will be used to store your language files. So you should have something like &#8220;/yourapp/application/lang&#8221;.</p>
<p>After this, you need to open up PoEdit:</p>
<ol class="olblue">
<li>
<p>Go to File-&gt;Catalog Manager</p>
</li>
<li>
<p>Click on the &#8220;Create new translations project&#8221; icon</p>
</li>
<li>
<p>Give your project a name</p>
</li>
<li>
<p>Select the directory to store your translation files (&#8220;/yourapp/application/lang&#8221;) and hit OK</p>
</li>
</ol>
<p>With a newly crated project, we can now generate our language file.<br />
To do this,  close the Catalog Manager window</p>
<ol class="olblue">
<li>
<p>Go to File-&gt;New Catalog</p>
</li>
<li>
<p>Give it a project Name and/or version and be sure to feel in the appropriate information. Be sure to select Charset  &#8221;utf-8&#8243;</p>
</li>
<li>
<p>Now, click on the paths tab. Here you will have to add all the dir paths that point to the files that you want to parse for translation. (/yourapp/application/views/scripts/index/index.phtml)</p>
</li>
<li>
<p>Finally, click on the Keywords tab, and make sure you include the keyword the parser will use to identify the text that needs translation. In our example we will put an underscore &#8220;_&#8221;  since in our code we have echo $t-&gt;_(&#8220;This is my first translation&#8221;);</p>
</li>
<li>
<p>Hit OK and make sure that you save the file with a name such as mylang_en.po. The <strong>_en</strong> is crucial, since Zend_Translate will scan the appropriate language file and use this naming convention to load the appropriate file</p>
</li>
</ol>
<p>Since by default the PoEdit PHP parser handles files with .php extension. We need to modify the preferences so that it allows other types, such as .phtml files.<br />
To do this, go to Edit-&gt;Preferences-&gt;Parsers  When you get to parsers select PHP and then click on the EDIT button. In the parser setup window we need to add *.phtml extension to the &#8220;List of extensions&#8221; field in the Language section, separated by semicolons. The field should be something like this: <code>*.php;*.phtml</code><br />
Then, in the Invocation section, you need to add  -L php to the parser command. This should look like this  <code>xgettext --force-po -o %o %C %K %F -L php</code></p>
<p>Once you have completed this, a pop up screen will show the progress of the catalog update and then list you all the parsed strings. Hit OK and then you will be in the translation view. Just select the string you would like to translate save and you are good to go.</p>
<p>Once you&#8217;ve completed the following steps just copy the .po file and create additional one&#8217;s for the languages you want to do translation. Remember the naming convention discussed on the steps above.</p>
<p>In your code to switch languages, you need to put the following line <code>$t->setLocale('es');</code> This for example will switch the locale to Spanish and will try to load a file with &#8220;_es&#8221;</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$t = new Zend_Translate('gettext', APPLICATION_PATH.'/translation', 'auto', array('scan' =&gt; Zend_Translate::LOCALE_FILENAME));

echo $t-&gt;_(&quot;This is my first translation&quot;).&quot;&lt;br/&gt;&quot;;

//change locale to spanish
$t-&gt;setLocale('es');

echo $t-&gt;_(&quot;This is my Second translation&quot;).&quot;&lt;br/&gt;&quot;;
?&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/H1BwQkkZJ8A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/08/06/zend-framework-translation-internalization/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GetSimple Image Gallery – GSGallery v.2.0 Released</title>
		<link>http://www.smooka.com/blog/2010/05/19/getsimple-image-gallery-gsgallery-v-2-0-released/</link>
		<comments>http://www.smooka.com/blog/2010/05/19/getsimple-image-gallery-gsgallery-v-2-0-released/#comments</comments>
		<pubDate>Wed, 19 May 2010 20:50:50 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Get Simple]]></category>
		<category><![CDATA[getsimple]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[squareit]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=344</guid>
		<description><![CDATA[It is my pleasure to let you guys know that I just released version 2.0 of the GetSimple Image Gallery Plugin. This is a stable release that [...]]]></description>
			<content:encoded><![CDATA[<p>It is my pleasure to let you guys know that I just released version 2.0 of the GetSimple Image Gallery Plugin. This is a stable release that includes many fixes and improvements over the <a href="http://www.smooka.com/blog/2010/03/10/getsimple-simple-image-gallery-plugin/">last release</a> (v1.1.0).</p>
<h3>New Major Features:</h3>
<ul>
<li>Create multiple galleries</li>
<li>Ability to put a caption to each image</li>
<li>Added Multi-Language support</li>
</ul>
<p><span id="more-344"></span></p>
<div style="background-color:#FFFC9C; padding:5px; margin:0 auto; width:90%; border:1px solid #F5D133">Download GSGallery v2.0 and my other plugins in the <a href="http://www.smooka.com/blog/getsimple-plugins/">GetSimple Plugins</a> page.</div>
<p><img src="http://www.smooka.com/blog/wp-content/uploads/Screenshot-Square-It-Get-Simple-»-Simple-Image-Gallery-Chromium.png"  alt="Screenshot-Square It Get Simple » Simple Image Gallery" width="596" height="292" class="aligncenter size-full wp-image-348" style="padding:8px; border:1px solid grey" /></p>
<p>Also you will find this version to be better integrated into GetSimple, by using another plugin I created called &#8220;Admin Tab Loader&#8221; that is really more intended for GetSimple Plugin developers.</p>
<p>If you want to see what a image gallery created with the plugin click to view the <a href="http://www.squareitsol.com/gs/index.php?id=square-it-gallery-plugin-sample" target="_blank">demo</a>.</p>
<div style="background-color:#FFFC9C; padding:5px; margin:0 auto; width:90%; border:1px solid #F5D133">Download GSGallery v2.0 and my other plugins in the <a href="http://www.smooka.com/blog/getsimple-plugins/">GetSimple Plugins</a> page.</div>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/09oYFsfQVqc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/05/19/getsimple-image-gallery-gsgallery-v-2-0-released/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Useful CSS3 Resources</title>
		<link>http://www.smooka.com/blog/2010/05/19/useful-css3-resources/</link>
		<comments>http://www.smooka.com/blog/2010/05/19/useful-css3-resources/#comments</comments>
		<pubDate>Wed, 19 May 2010 13:40:28 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=326</guid>
		<description><![CDATA[<img class="alignleft size-medium wp-image-322" title="CSS Border Radius " src="http://www.smooka.com/blog/wp-content/uploads/Screenshot-CSS-Border-Radius-Chromium-300x213.png" alt="" width="300" height="213" />
I've been trying a couple of CSS3 features at work and on a couple of personal projects. Upon doing my usual search routine to find resources and information on google, I've stumble upon a couple of good pages that can help you try and learn features like: box-shadow, border-radius, and gradients.

<h3><a title="CSS border radius generator for lazy people." href="http://border-radius.com/" target="_blank">CSS border radius generator for lazy people</a></h3>
<span style="font-weight: normal; font-size: 13px;">This simple site gives you a quick an easy way to generate the CSS code for the awesome border-radius property.
</span>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-322" title="CSS Border Radius " src="http://www.smooka.com/blog/wp-content/uploads/Screenshot-CSS-Border-Radius-Chromium-300x213.png" alt="" width="300" height="213" />I&#8217;ve been trying a couple of CSS3 features at work and on a couple of personal projects. Upon doing my usual search routine to find resources and information on google, I&#8217;ve stumble upon a couple of good pages that can help you try and learn features like: box-shadow, border-radius, and gradients.</p>
<h3><a title="CSS border radius generator for lazy people." href="http://border-radius.com/" target="_blank">CSS border radius generator for lazy people</a></h3>
<p><span style="font-weight: normal; font-size: 13px;">This simple site gives you a quick an easy way to generate the CSS code for the awesome border-radius property.<br />
</span><br />
<span id="more-326"></span></p>
<h3><a href="http://www.westciv.com/tools/index.html" target="_blank">CSS3 Sandbox</a></h3>
<p>Here you would find a bunch of cool tools to try out. They have <a href="http://westciv.com/xray" target="_blank">XRAY</a> and MRI that are aimed more to the developer that wants to debug and  get quick information related to the page elements. But, If what you are looking is for CSS3 code generators, then explore the CSS3 Sandbox. It features code generators for <a title="CSS Gradients" href="http://westciv.com/tools/gradients" target="_blank">Gradients</a>, <a title="CSS Box Shadows" href="http://westciv.com/tools/shadows" target="_blank">Shadows</a>, <a href="http://westciv.com/tools/transforms/index.html" target="_blank">CSS transform</a>, <a href="http://westciv.com/tools/textStroke/index.html" target="_blank">CSS text stroke</a>.</p>
<p>Last but not least, you should check out <a href="http://www.css3.info/" target="_blank">CSS3.Info</a>. They have a lot of good resources and information on everything related to CSS3.</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/xpHYuEkngDo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/05/19/useful-css3-resources/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GetSimple Plugins: Simple Image Gallery</title>
		<link>http://www.smooka.com/blog/2010/03/10/getsimple-simple-image-gallery-plugin/</link>
		<comments>http://www.smooka.com/blog/2010/03/10/getsimple-simple-image-gallery-plugin/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 20:25:35 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Get Simple]]></category>
		<category><![CDATA[getsimple]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[squareit]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=297</guid>
		<description><![CDATA[I think I&#8217;ve become addicted to GetSimple CMS. In 5 days I have fully developed 2 plugins (check out -> TweetMeme reTweet Button plugin) and started development [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.smooka.com/blog/wp-content/uploads/gsplug.gif" alt="" title="Get Simple Plugins" width="245" height="81" class="alignleft size-full wp-image-313" />I think I&#8217;ve become addicted to <a href="http://www.get-simple.info" title="Get Simple CMS">GetSimple CMS</a>. In 5 days I have fully developed 2 plugins (check out -> <a href="http://www.smooka.com/blog/2010/03/05/getsimple-tweetmeme-retweet-button-plugin/" title="TweetMeme reTweet Button plugin">TweetMeme reTweet Button plugin</a>) and started development in another. If you are a free-lance developer doing small websites for your clients, or you are just a regular guy trying to set up your small site. I recommend you check GetSimple. It&#8217;s easy to install, since it does NOT need a database. It pretty much works right out the box.<span id="more-297"></span></p>
<p>Enough rambling!</p>
<p><strong>Simple Image Gallery</strong>, is a new plug-in created to include a much needed functionality to Get Simple CMS. It uses the build in file manager to manipulate and upload new images to the server, then, just go to the plugins tab and click on the <em>Simple Image Gallery</em> link. The only thing you need to do here, is select the images you want to display in your image gallery. Once you have selected all the images you want to display in your page. Go to the <em>pages manager</em> and select the page you want to include the gallery. Once in the page editor, open the <em>page options</em> and select &#8220;Enable Image Gallery&#8221; and save the page and you are done!</p>
<p><img src="http://www.smooka.com/blog/wp-content/uploads/imagegal.gif" alt="" title="Square IT&#039;s Simple Image Gallery" width="600" height="175" class="aligncenter size-full wp-image-304" /></p>
<p>Installation is pretty simple. Just download the plugin, unzip it, upload the unzipped content to the plugins directory. </p>
<div style="background-color:#FFFC9C; padding:5px; margin:0 auto; width:90%; border:1px solid #F5D133">New version!! Download GSGallery v2.0 and my other plugins in the <a href="http://www.smooka.com/blog/getsimple-plugins/">GetSimple Plugins</a> page.</div>
<p><strong>Download:</strong> <a href="http://www.smooka.com/blog/wp-content/plugins/download-monitor/download.php?id=3" title="Downloaded 1235 times">Simple Image Gallery Plugin</a> - v1.1.0</p>
<p>As always, if you have suggestions, concerns, you find bugs or just want to comment on how great the plugin is. Feel free to do so.</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/ZetcBVC19e0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/03/10/getsimple-simple-image-gallery-plugin/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>GetSimple Plugins: TweetMeme reTweet Button</title>
		<link>http://www.smooka.com/blog/2010/03/05/getsimple-tweetmeme-retweet-button-plugin/</link>
		<comments>http://www.smooka.com/blog/2010/03/05/getsimple-tweetmeme-retweet-button-plugin/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 03:59:01 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Get Simple]]></category>
		<category><![CDATA[getsimple]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[tweetmeme]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=276</guid>
		<description><![CDATA[This is my first attempt at creating plugins for Get Simple CMS, an awesome CMS system I&#8217;ve been playing around lately. So, I recommend you guys check [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.smooka.com/blog/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/blog/wp-content/thumbnails/276.gif&amp;w=70&amp;h=70&amp;zc=1&amp;ft=jpg' alt='post thumbnail' /></p>
<p><img alt="Get Simple CMS" src="http://get-simple.info/theme/GS20_theme/images/logo.png" class="alignleft" width="225" height="32" />This is my first attempt at creating plugins for <a href="http://www.get-simple.info">Get Simple CMS</a>, an awesome CMS system I&#8217;ve been playing around lately. So, I recommend you guys check it out, if you are looking for a &#8220;Simple&#8221; content management system for your next project.</p>
<p>This plugin allows you to easily add TweetMeme&#8217;s reTweet Button to the content pages in GetSimple. It also includes a settings panel in the settings section of the administration area when you can customize the plugin. <span id="more-276"></span></p>
<p>Some of the available settings are:</p>
<blockquote><ul>
<li>Change the URL shortener</li>
<li>Change the size of the button (compact/expanded)</li>
<li>Change the @username who will be reTweeting the post</li>
<li>Disable the button for specific pages</li>
</ul>
</blockquote>
<p><strong>Download:</strong> <a href="http://www.smooka.com/blog/wp-content/plugins/download-monitor/download.php?id=2" title="Downloaded 457 times">TweetMeme reTweet GetSimple Plugin</a> - v1.0</p>
<p>Feel free to give feedback and let me know if you encounter any problems.</p>
<p><img src="http://www.smooka.com/blog/wp-content/uploads/retweetbtn.gif" alt="" title="GetSimple TweetMeme Retweet Button Plugin" width="542" height="200" class="aligncenter size-full wp-image-283" /></p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/vzRpqdjbPbE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2010/03/05/getsimple-tweetmeme-retweet-button-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Working with Google Charts and Visualization API</title>
		<link>http://www.smooka.com/blog/2009/11/09/working-with-google-charts-and-visualization-api/</link>
		<comments>http://www.smooka.com/blog/2009/11/09/working-with-google-charts-and-visualization-api/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 11:00:58 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Frameworks and API's]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.smooka.com/blog/?p=232</guid>
		<description><![CDATA[This week I had the chance to play around with Google&#8217;s charts API, and let me tell you that I&#8217;m loving it. In the past couple of [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.smooka.com/blog/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/blog/wp-content/thumbnails/232.jpg&amp;w=70&amp;h=70&amp;zc=1&amp;ft=jpg' alt='post thumbnail' /></p>
<p><img alt="Red line chart with pale gray background" src="http://chart.apis.google.com/chart?cht=lc&amp;chd=s:pqokeYONOMEBAKPOQVTXZdecaZcglprqxuux393ztpoonkeggjp&amp;chco=FF0000&amp;chls=4.0,3.0,0.0&amp;chs=200x125&amp;chxt=x,y&amp;chxl=0:|Jun|July|Aug|1:||20|30|40|50&amp;chf=bg,s,EFEFEF" align="left"/>This week I had the chance to play around with Google&#8217;s charts API, and let me tell you that I&#8217;m loving it. In the past couple of years I&#8217;ve had to integrate charts into the different projects. I have used everything from Fusion Charts, to PHP/SWF Charts, and DOJO&#8217;s charting engine. But, since I learned that Google provided developers with an API to create charts on the fly, I wanted to give it a try. <span id="more-232"></span></p>
<p><b>To create static bart chart is as simple as:</b></p>
<pre class="brush: xml; light: true; title: ; notranslate">
&lt;img src=&quot;http://chart.apis.google.com/chart?
cht=bvs
&amp;chs=200x125
&amp;chd=t:10,50,60,80,40|50,60,100,40,20
&amp;chco=4d89f9,c6d9fd
&amp;chbh=20&amp;chds=0,160&quot;/&gt;
</pre>
<p><b>Let me break out the parameters for you into:</b><img src="http://chart.apis.google.com/chart?cht=bvs&#038;chs=200x125&#038;chd=t:10,50,60,80,40|50,60,100,40,20&#038;chco=4d89f9,c6d9fd&#038;chbh=20&#038;chds=0,160" align="right"/><br />
// this is the chart type<br />
<code>cht=bvs </code><br />
//this is the bar colors<br />
<code>chco=4D89F9,C6D9FD</code><br />
//this is the chart values<br />
<code>chd=t:10,50,60,80,40|50,60,100,40,20</code><br />
//chart dimensions<br />
<code>chds=0,160</code></p>
<p>In  the <a href="http://code.google.com/apis/chart/types.html" rel="nofollow" target="_blank">Google Charts API</a> website you can find more info regarding this simple but useful chart api. But, that&#8217;s not all. They also have the <a href="http://code.google.com/apis/visualization/" rel="nofollow" target="_blank">Google Visualization API</a> where they actually give you more advanced and dynamic set of visualization tools. They pretty much opened their entire library of data visualization helpers to allow developers like yourself create user interfaces that contain elements that some of your users will be used to seeing, since graphs, charts and other elements you will find in this API is already being implemented in google products.</p>
<p>I encourage you to check both, the more simple and straight forward <a href="http://code.google.com/apis/chart/types.html" rel="nofollow" target="_blank">Charts API</a>, or the more advanced and dynamic <a href="http://code.google.com/apis/visualization/" rel="nofollow" target="_blank">Visualtization API</a>. </p>
<p>Feel free to let me and the readers know on the exiting ways you are utilizing those API&#8217;s</p>
<img src="http://feeds.feedburner.com/~r/smookablog/~4/7ABq0SACDCk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.smooka.com/blog/2009/11/09/working-with-google-charts-and-visualization-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

