<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>AjaxMasters Blog</title> <atom:link href="http://blog.ajaxmasters.com/feed/" rel="self" type="application/rss+xml" /><link>http://blog.ajaxmasters.com</link> <description>Just another WordPress weblog</description> <lastBuildDate>Tue, 09 Mar 2010 17:23:39 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Awesome CSS+JS form styling</title><link>http://blog.ajaxmasters.com/awesome-cssjs-form-styling/</link> <comments>http://blog.ajaxmasters.com/awesome-cssjs-form-styling/#comments</comments> <pubDate>Tue, 09 Mar 2010 17:23:39 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[css]]></category> <category><![CDATA[form]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[js]]></category> <category><![CDATA[sexy]]></category> <category><![CDATA[styling]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=309</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/awesome-cssjs-form-styling/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2010/03/sexy-form-170x170.png" class="alignleft tfe wp-post-image" alt="Sexy CSS+JS Form" title="sexy-form" /></a>I was working on our new open source project that i think you will like and I was working on the registration page. This is what I got in the end and i will walk you trough the process with me. This new tutorial is about styling the forms of your website, I find it very good looking and very simple to implement. We will use simple CSS and some [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_312" class="wp-caption alignleft" style="width: 310px"><a
href="http://blog.ajaxmasters.com/awesome-cssjs-form-styling/sexy-form/" rel="attachment wp-att-312"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2010/03/sexy-form-300x214.png" alt="Sexy CSS Form" title="sexy-form" width="300" height="214" class="size-medium wp-image-312" /></a><p
class="wp-caption-text">Sexy CSS+JS Form</p></div><p>I was working on our new open source project that i think you will like and I was working on the registration page. This is what I got in the end and i will walk you trough the process with me. This new tutorial is about styling the forms of your website, I find it very good looking and very simple to implement. We will use simple CSS and some JavaScript.</p><p>Usually for inserting text into the inputs or our forms we set the value attribute with the text and then use javascript to check for different scenarios for doing some fancy things. This is different we will use labels to fill the text and move them under the inputs and then just do our magic with JS.</p><p>The JavaScript library that we will use to create this effect for our forms is <a
href="http://jquery.com" target="_blank">Jquery</a></p><p><br/><br
/> <strong
class="in_title">1. Creating the markup!</strong><br
/> <br/></p><pre class="brush: xml;">
            &lt;div id=&quot;login&quot;&gt;
                &lt;div class=&quot;sayit&quot;&gt;Log In:&lt;/div&gt;
                &lt;form action=&quot;javascript:void(0)&quot; onsubmit=&quot;login()&quot; autocomplete=&quot;off&quot;&gt;
                    &lt;label for=&quot;username&quot;&gt;Username&lt;/label&gt;
                    &lt;input type=&quot;text&quot; id=&quot;username&quot;/&gt;
                    &lt;label for=&quot;password&quot;&gt;Password&lt;/label&gt;
                    &lt;input type=&quot;password&quot; id=&quot;password&quot;/&gt;
                    &lt;input type=&quot;submit&quot; class=&quot;medium button green&quot; value=&quot;Log me In&quot;/&gt;
                &lt;/form&gt;
            &lt;/div&gt;
</pre><p>The above code is our markup and as you can see is very simple and it can be changed as you like because the code that we will use for checking for different scenarios in javascript will work without necessary classes or ids. We have 2 inputs and 2 labels, one is password one is text and we can work with these ones, you can add as many as you like.</p><p>Now let&#8217;s style these bastards! <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile-big.png' alt=':D' class='wp-smiley' /></p><p><strong
class="in_title">2. Use CSS to style the form elements!</strong><br
/> <br/></p><pre class="brush: css;">
input[type=text],input[type=password]{padding: 5px 10px; background-color: transparent;	position: relative; z-index: 2;}
label{position: absolute; z-index: 1;-webkit-transition: opacity 0.15s linear; color: #bababa; background-color: #FFFFFF; }

#login{width: 290px; margin: 0 auto;}
#login input[type=text],#login input[type=password]{width:270px; margin: 5px 0; font-size: 24px; font-weight: bold; border: 1px solid #ccc; -moz-border-radius:5px; -webkit-border-radius:5px; color: #595959;}
#login label{font-size: 24px; margin: 14px 10px;}

#login .sayit{font-size:24px; color: #595959; font-style: italic; padding-bottom: 5px;}
</pre><p>What we did here is make the label absolute so it will go under the input. This is important you will have to place the label before the input so remember this! The input will have a position relative and a z-index of 2 so we can be sure it will land above the label. Next we define the login div by using his id(<i>#login</i>). We use CSS3 for creating the round borders for the input and style the label by setting a big font-size to fit the input. The rest is pretty obvious, if you have trouble understanding this then let us know in the comments.</p><p><strong
class="in_title">3. Make everything move with JS!</strong><br
/> <br/></p><pre class="brush: jscript;">
$(document).ready(function(){
    $.string(String.prototype);
    $(&quot;input,textarea&quot;).each(function (type) {
        $(this).focus(function () {
            if($(this).val().blank())
                $(this).prev(&quot;label&quot;).fadeTo('fast',0.45);
        });

        $(this).keypress(function () {
            $(this).prev(&quot;label&quot;).fadeTo('fast',0);
        });

        $(this).blur(function () {
            if($(this).val().blank()){
                $(this).prev(&quot;label&quot;).fadeTo('fast',1);
            }
        });
    });
});
</pre><p>We use here jQuery of course that we add using the google api like this:</p><pre class="brush: xml;">
        &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre><p>And one plugin that I use to extend the jQuery string properties and that is <a
href="http://stilldesigning.com/dotstring/">$.string plugin</a>. After we do that we create the above code and we assign to input and textarea elements a focus, keypress and blur actions. We use the focus action to lower the labels opacity to 45% then on keypress we just hide it for good. Then on blur we check to see if anything was written in our sexy element and if not then we fade the label back to 100%. This is kind of everything we do here, pretty simple. <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><p><strong
class="in_title">4. Showing of a demo and download source</strong><br
/> <br/></p><p>I&#8217;ve set up a demo here: <a
href="http://tutorials.ajaxmasters.com/sexy-form/" target="_blank"><b><i>DEMO</i></b></a></p><p>The source code you can either pick it from the demo page or from here: <a
href="http://tutorials.ajaxmasters.com/sexy-form/source.zip"><b><i>SOURCE</i></b></a></p><p><strong
class="in_title">5. Wrapping up!</strong><br
/> <br/></p><p>So here is our nice form styling that you can use on your website and that can be done very easily. Feel free to leave us comments and suggestions. <b>Thanks a lot!</b></p><p>Have fun coding!</p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/awesome-cssjs-form-styling/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Free Music: Grooveshark</title><link>http://blog.ajaxmasters.com/free-music-grooveshark/</link> <comments>http://blog.ajaxmasters.com/free-music-grooveshark/#comments</comments> <pubDate>Mon, 25 Jan 2010 22:50:05 +0000</pubDate> <dc:creator>Mauu</dc:creator> <category><![CDATA[Trends]]></category> <category><![CDATA[adobe air]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[free]]></category> <category><![CDATA[music]]></category> <category><![CDATA[player]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=290</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/free-music-grooveshark/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/grooveshark-170x170.jpg" class="alignleft tfe wp-post-image" alt="" title="grooveshark" /></a> Well I think all of us love free music and when the music is like all of it in one place that becomes even better.
I&#8217;ve been using this website for a week now and I&#8217;m so glad i found it. In fact Grooveshark was launched since 2007 but it was not from the start like this.
Let&#8217;s see what Wikipedia says about this: &#8220;Grooveshark is an internationally-available  online music [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/grooveshark.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/grooveshark-300x300.jpg" alt="" title="grooveshark" width="300" height="300" class="alignleft size-medium wp-image-291" /></a><br
/> Well I think all of us love free music and when the music is like all of it in one place that becomes even better.</p><p>I&#8217;ve been using this website for a week now and I&#8217;m so glad i found it. In fact Grooveshark was launched since 2007 but it was not from the start like this.</p><p>Let&#8217;s see what <a
href="http://en.wikipedia.org/wiki/Grooveshark">Wikipedia</a> says about this: &#8220;<i>Grooveshark is an internationally-available  online music search engine, music streaming service and music recommendation web software application, allowing users to search for, stream, and upload music free of charge that can be played immediately or added to a playlist. Grooveshark streams 50 to 60 million songs per month, to more than 400,000 users. As of April 2009, its audience was growing at a rate of 2 to 3% per day.</i>&#8221;</p><p>So it seems this is just starting to get big. One notable thing about the service/website/player how you wan to call it is that they just signed a licensing deal with <a
href="http://en.wikipedia.org/wiki/EMI">EMI</a> and they say Universal is coming soon.</p><p>Here is screenshot of the player and just go and <a
href="http://listen.grooveshark.com/"><i><b>listen</b></i>.grooveshark.com</a><br
/><div
id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a
href="http://blog.ajaxmasters.com/free-music-grooveshark/layer/" rel="attachment wp-att-295"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/layer-300x159.jpg" alt="GrooveShark Player" title="GrooveShark Player" width="300" height="159" class="size-medium wp-image-295" /></a><p
class="wp-caption-text">GrooveShark Player</p></div></p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/free-music-grooveshark/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Guide to a very fast website</title><link>http://blog.ajaxmasters.com/guide-to-a-very-fast-website/</link> <comments>http://blog.ajaxmasters.com/guide-to-a-very-fast-website/#comments</comments> <pubDate>Sat, 02 Jan 2010 23:53:25 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[code]]></category> <category><![CDATA[fast]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[php]]></category> <category><![CDATA[website]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=259</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/guide-to-a-very-fast-website/"><img
align="left" hspace="5" width="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/1262476500_performance-systeme-OS.png" class="alignleft wp-post-image tfe" alt="Performance" title="Performance" /></a>I was experimenting with new features for the past few weeks and while i was working on optimizing a website we are working on currently i was wondering what would it take to get a very big score on Yslow. But as Jeff says in this old post: &#8220;Yahoo&#8217;s Problems Are Not Your Problems&#8221;. So i was just doing the usual putting the javascript files at the bottom, minify every [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_281" class="wp-caption alignleft" style="width: 138px"><a
href="http://blog.ajaxmasters.com/guide-to-a-very-fast-website/1262476500_performance-systeme-os/" rel="attachment wp-att-281"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/1262476500_performance-systeme-OS.png" alt="Performance" title="Performance" width="128" height="128" class="size-full wp-image-281" /></a><p
class="wp-caption-text">Performance</p></div><br
/> I was experimenting with new features for the past few weeks and while i was working on optimizing a website we are working on currently i was wondering what would it take to get a very big score on <a
href="http://developer.yahoo.com/yslow/">Yslow</a>. But as Jeff says in <a
href="http://www.codinghorror.com/blog/archives/000932.html">this</a> old post: &#8220;Yahoo&#8217;s Problems Are Not Your Problems&#8221;. So i was just doing the usual putting the javascript files at the bottom, minify every single one of them. I usually use this website: <a
href="http://yui.2clics.net/">YUI Compressor Online</a> it always does the job for me.</p><p>What Yslow goes round and round is the cache system of the browser. So what you are actually doing is making everything cacheable and as small as possible so that the browser takes everything loading from one bite. The browsers have a limited number of requests that they address at once so if you can get into that margin then you are good. So very important <strong>combine every file and make is small!</strong> <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><p>What have i done is use the gzip module of the apache server by using php and a .htaccess file. I believe this is one of the most nice ways to take advantage of this feature without making any changes to your website. What it does is adding lines of code at the beginning of txt/html/htm/php files, css files and js files. After we do this we add a closing line at the end and we are good. Gzip is in place up and running.</p><p>How do we do it? Well here is the code:</p><pre class="brush: php;">&lt;FilesMatch &quot;\.(css)&quot;&gt;
    ForceType application/x-httpd-php
	php_value auto_prepend_file &quot;address-to-this-file/gzip/gzip-css.php&quot;
php_value auto_append_file &quot;address-to-this-file/gzip/gzip-end.php&quot;
&lt;/FilesMatch&gt;

&lt;FilesMatch &quot;\.(txt|html|htm|php)&quot;&gt;
    ForceType application/x-httpd-php
	php_value auto_prepend_file &quot;address-to-this-file/gzip/gzip-gen.php&quot;
php_value auto_append_file &quot;address-to-this-file/gzip/gzip-end.php&quot;
&lt;/FilesMatch&gt;

&lt;FilesMatch &quot;\.(js)&quot;&gt;
    ForceType application/x-httpd-php
	php_value auto_prepend_file &quot;address-to-this-file/gzip/gzip-js.php&quot;
php_value auto_append_file &quot;address-to-this-file/gzip/gzip-end.php&quot;
&lt;/FilesMatch&gt;</pre><p>The next step is a selective one since what we are doing is telling the browser to not look for a file until we tell it to. So if we set the expiration to 2 years from now the browser will always use the one it has in it&#8217;s cache until 2 years pass. <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><pre class="brush: php;">&lt;IfModule mod_expires.c&gt;
ExpiresActive On
ExpiresDefault A600
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A604800
ExpiresByType text/javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/plain A86400
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType video/x-flv A2592000
ExpiresByType application/pdf A2592000
ExpiresByType text/html A600
&lt;/IfModule&gt;
</pre><p>We check for the expires module and if it&#8217;s activated then we just set the expiration dates. What does &#8220;ExpiresByType text/css A17200&#8243; means? Css files &#8220;<strong>expire after 4.8 hours&#8221;</strong><br
/> &#8220;A&#8221; before the numbers above stands for Access. This means that the stopwatch starts when a client accesses the file. You can also use &#8220;M&#8221; for modified.</p><p
style="text-align: left;"><em><strong>TIME CHEAT SHEET</strong></em></p><ul><li> <em>300   5 MIN</em></li><li><em> 600  10 MIN</em></li><li><em> 900  15 MIN</em></li><li><em> 1800  30 MIN</em></li><li><em> 2700  45 MIN</em></li></ul><ul><li><em>3600   1 HR</em></li><li><em>7200   2 HR</em></li><li><em>86400  24 HR</em></li></ul><ul><li><em>86400   1 DAY</em></li><li><em>604800   7 DAY</em></li></ul><ul><li><em>604800   1 WEEK</em></li><li><em>2419200   4 WEEK</em></li></ul><ul><li><em>2419200   1 MONTH (FEBRUARY)</em></li><li><em>2505600   1 MONTH (FEBRUARY LEAP YEAR)</em></li><li><em> 2592000   1 MONTH (APRIL, JUNE, SEPTEMBER, NOVEMBER)</em></li><li><em>2678400   1 MONTH (JANUARY, MARCH, MAY, JULY, AUGUST, OCTOBER, DECEMBER)</em></li><li><em>31536000  12 MONTH</em></li></ul><p>Now just download this thing and get a faster website. The rest of the Yslow rules are pretty simple to follow so i just felt i would let you know what i use for these 2 because i found them hard to figure out than the rest.<br
/> <br/></p><hr/> <strong
class="in_title">Update</strong><br
/> <br/><br
/> Today I was trying to get the gzip code to work on our server and since we have a shared hosting here we are forced to comply with the rules. And guess what I get a &#8220;500&#8243; error. So i found a new way of doing the same thing. This as long as you have Rewrite_module activated if this is not activated then i don&#8217;t think you can do much of a thing.</p><p>Here it is the .htaccess code:</p><pre class="brush: php;">
RewriteRule ^.+\.(css|js|png|jpg|swf)$ gzip/compress.php [NC]
</pre><p>This will pass all files that are css, js, png, jpg, swf trough the compress.php file. And here is what the compress.php file does:</p><pre class="brush: php;">
&lt;?php
$basedir = $_SERVER['DOCUMENT_ROOT'];
$file = realpath( $basedir . $_SERVER[&quot;REQUEST_URI&quot;] );

if( !file_exists($file) &amp;&amp; strpos($file, $basedir) === 0 ) {
    header(&quot;HTTP/1.0 404 Not Found&quot;);
    print &quot;File does not exist.&quot;;
    exit();
}

$path_info = pathinfo($file);
$extension=$path_info['extension'];

switch($extension) {
    case 'css':
        $mime = &quot;text/css&quot;;
        break;
    case'js':
        $mine = &quot;text/javascript&quot;;
        break;
    default:
        $mime = &quot;text/plain&quot;;
}

if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
    ob_start(&quot;ob_gzhandler&quot;);
else
    ob_start();
header( &quot;Content-Type: &quot; . $mime . &quot;; charset: UTF-8&quot;);
header (&quot;cache-control: must-revalidate&quot;);
readfile($file);
?&gt;
</pre><p>The file checks for the extension of the file that is receives and ads the corresponding headers to it&#8217;s top.<br
/> Pretty simple. Download the zip file to get both versions.</p><p><div
id="attachment_269" class="wp-caption aligncenter" style="width: 138px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/optimize1.zip"><img
class="size-full wp-image-269" title="Awesome website optimizer" src="http://blog.ajaxmasters.com/wp-content/uploads/2010/01/1262475037_zip.png" alt="Awesome website optimizer" width="128" height="128" /></a><p
class="wp-caption-text">Awesome website optimizer</p></div> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/guide-to-a-very-fast-website/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The new WordPress 2.9</title><link>http://blog.ajaxmasters.com/the-new-wordpress/</link> <comments>http://blog.ajaxmasters.com/the-new-wordpress/#comments</comments> <pubDate>Mon, 21 Dec 2009 00:38:17 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[new]]></category> <category><![CDATA[version]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=250</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/the-new-wordpress/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/12/wordpress-logo-shine-170x170.jpg" class="alignleft tfe wp-post-image" alt="Carmen Wordpress 2.9" title="Carmen Wordpress 2.9" /></a>This video tells it all. Well as you can see we have a lot of stuff on our blog and i just wanted to say we made the upgrade and everything works the same maybe better. Just click the update button!]]></description> <content:encoded><![CDATA[<p>This video tells it all. Well as you can see we have a lot of stuff on our blog and i just wanted to say we made the upgrade and everything works the same maybe better. Just click the update button! <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><p><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="flashvars" value="guid=NBZ853Xn&amp;width=600&amp;height=360" /><param
name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.11" /><param
name="allowfullscreen" value="true" /><embed
type="application/x-shockwave-flash" width="600" height="360" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.11" allowfullscreen="true" flashvars="guid=NBZ853Xn&amp;width=600&amp;height=360"></embed></object></p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/the-new-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Crazy flash gallery: CU3ER</title><link>http://blog.ajaxmasters.com/crazy-flash-gallery-cu3er/</link> <comments>http://blog.ajaxmasters.com/crazy-flash-gallery-cu3er/#comments</comments> <pubDate>Sun, 25 Oct 2009 13:47:55 +0000</pubDate> <dc:creator>Azertys</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[3d]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[gallery]]></category> <category><![CDATA[image]]></category> <category><![CDATA[slider]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=232</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/crazy-flash-gallery-cu3er/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/cuber-170x170.jpg" class="alignleft wp-post-image tfe" alt="flash-gallery-logo" title="cuber" /></a>Hi there. So i was surfing the web and i stumbled on this great website: <a
title="CU3ER website" href="http://www.progressivered.com/cu3er/" target="_blank">CU3ER</a>, and i wanted to show it to you too.CU3ER \kju:bər\, an image slider initially conceived to create 3D transitions between slides, turned out to be a convenient and multifunction solution that can be applied in a range of website building areas, from content slider to feature slider and image &#38; banner rotator. Consider using it when you want to grab the user’s attention, and you’ll be delighted by the results![...]]]></description> <content:encoded><![CDATA[<div
id="attachment_239" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/cuber.jpg"><img
class="size-large wp-image-239" title="cuber" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/cuber-600x216.jpg" alt="flash-gallery-logo" width="600" height="216" /></a><p
class="wp-caption-text">flash-gallery-logo</p></div><p>Hi there. So i was surfing the web and i stumbled on this great website: <a
title="CU3ER website" href="http://www.progressivered.com/cu3er/" target="_blank">CU3ER</a>, and i wanted to show it to you too.</p><p>CU3ER \kju:bər\, an image slider initially conceived to create 3D transitions between slides, turned out to be a convenient and multifunction solution that can be applied in a range of website building areas, from content slider to feature slider and image &amp; banner rotator. Consider using it when you want to grab the user’s attention, and you’ll be delighted by the results!</p><p>CU3ER&#8217;s main features are:</p><ol><li> FREE</li><li>EASY to set up</li><li>CUSTOMIZABLE via XML</li><li>TAILORED to provide a UNIQUE look &amp; feel</li><li>INSPIRING</li><li>FUN-to-USE</li></ol><p>There are no special requirements for setting it up and running other than a limited knowledge of web authoring:</p><ol><li>Flash Player 9+,</li><li>XML Basics,</li><li>SWFObject (embedding .swf files into web pages),</li><li>Applications for image editing (especially for creating &amp; exporting slides).</li></ol><p>To set it up just to go on their site and click the <a
title="CU3ER quick-start" href="http://www.progressivered.com/cu3er/quick-start.htm" target="_blank">quick start button</a>, they have a nice basic tutorial there that will help you set it up. See you next time.</p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/crazy-flash-gallery-cu3er/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>7 Amazing Maps</title><link>http://blog.ajaxmasters.com/7-amazing-maps/</link> <comments>http://blog.ajaxmasters.com/7-amazing-maps/#comments</comments> <pubDate>Sat, 17 Oct 2009 10:42:37 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Trends]]></category> <category><![CDATA[analytics]]></category> <category><![CDATA[images]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[maps]]></category> <category><![CDATA[statistics]]></category> <category><![CDATA[traffic]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=209</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/7-amazing-maps/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/maps-logo-170x170.jpg" class="alignleft wp-post-image tfe" alt="7 amazing maps" title="7 Maps" /></a>As you might see on our blog, I&#8217;m very passionate about finding great images. So i was surfing the web and i kept seeing this statistics maps that really amazed me. So i decided that you should see them too, that in case you haven&#8217;t seen them yet.
Web trend map 4
This one shows information according to popularity and influenza of every website.
World map of social networks
This one shows every country [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_217" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/7-amazing-maps/maps-logo/" rel="attachment wp-att-217"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/maps-logo.jpg" alt="7 amazing maps" title="7 Maps" width="600" height="400" class="size-full wp-image-217" /></a><p
class="wp-caption-text">7 amazing maps</p></div><p>As you might see on our blog, I&#8217;m very passionate about finding great images. So i was surfing the web and i kept seeing this statistics maps that really amazed me. So i decided that you should see them too, that in case you haven&#8217;t seen them yet.</p><div
class="in_title">Web trend map 4</div><p>This one shows information according to popularity and influenza of every website.</p><div
id="attachment_216" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/wtm4-final.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/wtm4-final-600x424.jpg" alt="Web trend map 4" title="Web trend map 4" width="600" height="424" class="size-large wp-image-216" /></a><p
class="wp-caption-text">Web trend map 4</p></div><div
class="in_title">World map of social networks</div><p>This one shows every country in the world and what social network website is the most popular in every one of them. Very interesting.</p><div
id="attachment_215" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/wmsn-06-09.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/wmsn-06-09-600x314.png" alt="World map of social networks" title="World map of social networks" width="600" height="314" class="size-large wp-image-215" /></a><p
class="wp-caption-text">World map of social networks</p></div><div
class="in_title">The internet undersea world</div><p>The internet has cables under the oceans. That&#8217;s nice. There used to be an older map of this kind.</p><div
id="attachment_214" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/SeaCableHi.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/SeaCableHi-600x365.jpg" alt="The internet undersea world" title="The internet undersea world" width="600" height="365" class="size-large wp-image-214" /></a><p
class="wp-caption-text">The internet undersea world</p></div><div
class="in_title">What people are doing</div><p>This is a chart that shows what people are doing on the internet. It&#8217;s analyzed by age and occupation.</p><div
id="attachment_213" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/0724_6insiid_a.gif"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/0724_6insiid_a-600x457.gif" alt="What people are doing" title="What people are doing" width="600" height="457" class="size-large wp-image-213" /></a><p
class="wp-caption-text">What people are doing</p></div><div
class="in_title">The exploding internet</div><p>A map that shows the most dominant forces on the internet. By forces i mean the most influent country by number of people using internet.</p><div
id="attachment_212" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/mg20227062.200-6_1000.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/mg20227062.200-6_1000-600x354.jpg" alt="The exploding internet" title="The exploding internet" width="600" height="354" class="size-large wp-image-212" /></a><p
class="wp-caption-text">The exploding internet</p></div><div
class="in_title">Global Traffic Map</div><p>Where is all the traffic going?</p><div
id="attachment_211" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/traffic_map08_large.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/traffic_map08_large-600x470.jpg" alt="Global Traffic Map" title="Global Traffic Map" width="600" height="470" class="size-large wp-image-211" /></a><p
class="wp-caption-text">Global Traffic Map</p></div><div
class="in_title">Map of online comunities</div><p>The communities are created according to size. The bigger the better.</p><div
id="attachment_210" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/online_communities_small.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/online_communities_small-600x566.png" alt="Map of online communities" title="Map of online communities" width="600" height="566" class="size-large wp-image-210" /></a><p
class="wp-caption-text">Map of online communities</p></div><p>I hope you liked this information and that i was not that boring. <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/7-amazing-maps/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Playing with CSS3</title><link>http://blog.ajaxmasters.com/playing-with-css3/</link> <comments>http://blog.ajaxmasters.com/playing-with-css3/#comments</comments> <pubDate>Thu, 01 Oct 2009 18:55:57 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[css]]></category> <category><![CDATA[css3]]></category> <category><![CDATA[imageroll]]></category> <category><![CDATA[shadows]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=185</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/playing-with-css3/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3-170x170.png" class="alignleft wp-post-image tfe" alt="Play with CSS3" title="play_css3" /></a><p>If you saw our "<b>ImageRoll</b>" page and you used Firefox, Chrome or Safari then you saw the images being rotated in different angles well the way i did that is by using CSS3. I guess you already figured that out from the title. :)</p><p>CSS3 implements a lot of new features that can make your life easier of course you will not be able to use them quite yet. IE is not supporting like more than 90% of them so it's useless if you want to make this for a client. The ones that we used on our blog are: <b>box-shadow</b>, <b>border-radius</b> and <b>text-shadow</b>. [...]</p>]]></description> <content:encoded><![CDATA[<div
id="attachment_186" class="wp-caption alignleft" style="width: 249px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/play_css3.png" alt="Play with CSS3" title="play_css3" width="239" height="239" class="size-full wp-image-186" /></a><p
class="wp-caption-text">Play with CSS3</p></div><p>If you saw our &#8220;<b>ImageRoll</b>&#8221; page and you used Firefox, Chrome or Safari then you saw the images being rotated in different angles well the way i did that is by using CSS3. I guess you already figured that out from the title. <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /></p><p>CSS3 implements a lot of new features that can make your life easier of course you will not be able to use them quite yet. IE is not supporting like more than 90% of them so it&#8217;s useless if you want to make this for a client. The ones that we used on our blog are: <b>box-shadow</b>, <b>border-radius</b> and <b>text-shadow</b>. I think these are the most important of them but you can check all of them out by taking a look at this page: <a
href="http://www.css3.info/preview/" title="http://www.css3.info/preview/">css3.info/preview/</a>.</p><p>I&#8217;m gonna do a simple explanation on the ones we used and show you some code.</p><p>We used on the hrefs of the page this property:</p><pre class="brush: css;">
-moz-box-shadow: 0px 2px 15px #333;
</pre><p>Now let&#8217;s explain. Why &#8220;-moz&#8221; in front of it? This is a simple hack for those who don&#8217;t know it. It tells the browser to render this only in <b>mozilla</b> based browsers. Next we have the property box-shadow  and 0px means the top margin of the shadow, 2px means we move the shadow 2 pixels to the left and 15px<br
/> means we create a shadow with 15 pixels of size of blur if you want, #333 is of course the color of the box shadow. Pretty simple <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/smile.png' alt=':)' class='wp-smiley' /> .</p><p>Now let&#8217;s rotate the images:</p><pre class="brush: css;">
   -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
</pre><p>You know -moz- already but we have a new one &#8220;-webkit-&#8221; this one means it will render in webkit based browsers, the most popular are: Safari and Chrome. Next we have the property &#8220;transform&#8221; and the degree of rotation &#8220;-10deg&#8221;.</p><p>The other one that we used all over the blog is text-shadow</p><pre class="brush: css;">
text-shadow:1px 1px 0px #000;
</pre><p>This property is like this 1px means we move the shadow with 1 pixel from the top, 1 pixel from the left and 0 blur or size, #000 means of course the color of the shadow.</p><p>And here is a preview in 2 browsers IE and Firefox so you can see maybe you are not using a browser that supports CSS3.</p><div
id="attachment_193" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/ie.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/ie-600x705.png" alt="Ie view" title="ie" width="600" height="705" class="size-large wp-image-193" /></a><p
class="wp-caption-text">Ie view</p></div><br
/><div
id="attachment_194" class="wp-caption aligncenter" style="width: 610px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/firefox.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/10/firefox-600x642.png" alt="Firefox view" title="firefox" width="600" height="642" class="size-large wp-image-194" /></a><p
class="wp-caption-text">Firefox view</p></div><p>My imageroll page is inspired from this page: <a
href="http://line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery">line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery</a> . Go and check it out <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/good.png' alt='(Y)' class='wp-smiley' /> .</p><p>Thank you and happy coding! <img
src='http://blog.ajaxmasters.com/wp-content/plugins/smilies-themer/pidgin/wink.png' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/playing-with-css3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Use ajax to create a cacheing system</title><link>http://blog.ajaxmasters.com/use-ajax-to-create-a-cacheing-system/</link> <comments>http://blog.ajaxmasters.com/use-ajax-to-create-a-cacheing-system/#comments</comments> <pubDate>Tue, 29 Sep 2009 10:49:52 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[cache]]></category> <category><![CDATA[html]]></category> <category><![CDATA[imageroll]]></category> <category><![CDATA[images]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[php]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[system]]></category> <category><![CDATA[vi.sualize.us]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=163</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/use-ajax-to-create-a-cacheing-system/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/cache-170x170.png" class="alignleft wp-post-image tfe" alt="Cache Pic" title="cache" /></a><p>As I said in my last post, I wanted from the first time to make a cacheing system for my imageroll page. Because i take the images from vi.sualize.us servers and we don't want to make to much trafic and make stuff worse for them.</p><p>So what i did is simple, i made a class that extracts the rss data from theirs servers and get the images to display them. I do this every time someone visits the page.</p>]]></description> <content:encoded><![CDATA[<p><div
id="attachment_164" class="wp-caption alignleft" style="width: 287px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/cache.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/cache.png" alt="Cache Pic" title="cache" width="277" height="277" class="size-full wp-image-164" /></a><p
class="wp-caption-text">Cache Pic</p></div><p>As I said in my last post, I wanted from the first time to make a cacheing system for my imageroll page. Because i take the images from vi.sualize.us servers and we don&#8217;t want to make to much trafic and make stuff worse for them.</p><p>So what i did is simple, i made a class that extracts the rss data from theirs servers and get the images to display them. I do this every time someone visits the page. If any image is new for the first time we display the image from vi.sualize.us and run a functions in javascript to check for new images. If any new images exist then we cache them in a folder on our server and the next time a user visits the page that image will be shown from our server. Pretty simple.</p><p>For now i&#8217;ll just show you the stuff that makes this thing run and if you want i can share the whole script so that you can make one for your blog or website.</p><p>I&#8217;ll also try to make a WordPress plugin so you can integrate it easily in your blog.</p><p>So here we go. We start with the function that checks for new images:</p><pre class="brush: php;">
functio checkCache($image_url){
            $path=pathinfo($image_url);
            $img_cached = 'cache/'.$path['filename'].'.'.$path['extension'];
            if(!file_exists($img_cached)) {
                createCacheImg($image_url);
            }
}
</pre><p>This function just checks if the image exists in the &#8220;<b>cache</b>&#8221; folder. If it&#8217;s not there then we run the &#8220;<b>createCacheImg</b>&#8221; function.</p><p>We now need a function to get the image so we check if the image is in the cache folder or not so we know what to display.</p><pre class="brush: php;">
    function getImage($or_img) {
        $path=pathinfo($or_img);
        $filename=$path['filename'];
        $img_cached = 'cache/'.$filename.'.'.$path['extension'];
        if(file_exists($img_cached)) {
            $url=$img_cached;
        }else {
            $url=$or_img;
        }

        return $url;
    }
</pre><p>Very simple function that just returns the right url of the image.</p><p>Now we cache the image.</p><pre class="brush: php;">
function createCacheImg($image){
        $srcsize = getimagesize($image);
        $w = $srcsize[0];
        $h = $srcsize[1];

        $path=pathinfo($image);
        $dest='cache/'.$path['filename'].'.'.$path['extension'];
        if($path['extension']=='jpg' || $path['extension']=='jpeg' || $path['extension']=='JPG') {
            $src_img = imagecreatefromjpeg($image);
        }else if($path['extension']=='gif') {
                $src_img = imagecreatefromgif($image);
            }else if($path['extension']=='png') {
                    $src_img = imagecreatefrompng($image);
                }
        $img_cpy=imagecreatetruecolor($w,$h);
        imagecopy($img_cpy, $src_img, 0, 0, 0, 0, $w, $h);
        if($path['extension']=='jpg' || $path['extension']=='jpeg' || $path['extension']=='JPG') {
            imagejpeg($img_cpy,$dest);
        }else if($path['extension']=='gif') {
                imagegif($img_cpy,$dest);
            }else if($path['extension']=='png') {
                    imagepng($img_cpy,$dest);
                }
        imagedestroy($src_img);
}
</pre><p>This function will save the image into the cache folder. Now we need a new file &#8220;<b>checkcache.php</b>&#8221; where we put this code:</p><pre class="brush: php;">
include('functions.php');
$image=$_GET['image'];
checkCache($image);
</pre><p> Right now we should have this kind of structure in our imageroll folder: A folder &#8220;<b>cache</b>&#8221; a file &#8220;<b>functions.php</b>&#8221; where we place all these functions we just did and a file &#8220;<b>index.php</b>&#8221; where we run the javascript function and display the images.</p><p>The &#8220;<b>index.php</b>&#8221; file requires this code:</p><pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;

        &lt;title&gt;
            Image ROLL
        &lt;/title&gt;

        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
        &lt;script src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;  google.load(&quot;jquery&quot;, &quot;1.3.2&quot;); &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
&lt;input type=&quot;hidden&quot; id=&quot;image&quot; value=&quot;http://test.com/image.jpg&quot;&gt;
&lt;img src=&quot;&lt;?=getImage($image)?&gt;&quot; alt=&quot;test image&quot;/&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><p>We have here a simple index.php file that imports the google api and jquery so we can run a simple ajax function. This is the javascript code that you should insert in this file or a separate one if you want:</p><pre class="brush: jscript;">

            $(document).ready(function() {
                checkCache();
            });

            function checkCache(){
                var page=$('#image');
                var url='checkcache.php';
                var pars='page='+page.val();
                $.get(url,pars);
            }
</pre><p>This will run this function after the page loads and it will check for new images. So this is just a simple script that will make you pages load faster expecialy if you load the images from outside of your server.</p><p>If you liked this i&#8217;ll go and make a more complex one and even share the imageroll script i did. That until i find the time and make a Wordpress Plugin.</p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/use-ajax-to-create-a-cacheing-system/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>New WordPress blog for us</title><link>http://blog.ajaxmasters.com/new-wp-blog-for-us/</link> <comments>http://blog.ajaxmasters.com/new-wp-blog-for-us/#comments</comments> <pubDate>Thu, 24 Sep 2009 11:24:15 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[404]]></category> <category><![CDATA[great]]></category> <category><![CDATA[halo]]></category> <category><![CDATA[list]]></category> <category><![CDATA[plugins]]></category> <category><![CDATA[super]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=119</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/new-wp-blog-for-us/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/halo_wordpress-170x170.jpg" class="alignleft wp-post-image tfe" alt="Super WordPress" title="halo_wordpress" /></a>Hello guys since we were working on a lot of WordPress based websites we decided is time to convert our blog into one since is such a great CMS.
So why am i writing this post to let you know? Because I think it would be a nice thing to share with you the problems we run into and the plugins we are using right now for our blog.Our list of [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_120" class="wp-caption aligncenter" style="width: 440px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/halo_wordpress.jpg"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/halo_wordpress.jpg" alt="Super WordPress" title="halo_wordpress" width="430" height="334" class="size-full wp-image-120" /></a><p
class="wp-caption-text">Super WordPress</p></div><p>Hello guys since we were working on a lot of WordPress based websites we decided is time to convert our blog into one since is such a great CMS.</p><p>So why am i writing this post to let you know? Because I think it would be a nice thing to share with you the problems we run into and the plugins we are using right now for our blog.</p><p><br/></p><div
class="in_title">Our list of plugins</div><p>We use the following plugins for our blog and I think you might think about using them too.</p><ul><li><a
href="http://wordpress.org/extend/plugins/smart-404/" target="_blank" class="in_title">Smart 404</a><p>I modified this plugin so that it can fit our needs. The idea of it is that will search for the term you enter in the url and find the post or page that you might be looking for. But we had a very crazy url at our old blog so i had to do something about it. So here is the code i added to the plugin:</p><pre class="brush: php;">
        if($search=='post.htm'){
            $search = preg_match('/year\/(.*)\/month\/(.*)\/title\/(.*)\/post.htm/', $_SERVER[&quot;REQUEST_URI&quot;], $matches);
            $search = $matches[3];
        }
</pre><p>This will just check and see if the string that the plugin came up with is &#8216;post.hm&#8217; because that was the case in our url format. So what i just use is a regex and get the title and correct the great plugin by giving him a hand in that particular case. So you can try that out by clicking this <a
href="http://blog.ajaxmasters.com/twitter%20followers%20tutorial" target="_blank">link</a> and see. Pretty cool right?</p></li><li><a
href="http://wordpress.org/extend/plugins/google-analyticator/" target="_blank" class="in_title">Google Analyticator</a><p>This one is a fancy thing. I like it because it shows stats of google analytics in your blog dashboard and it will place your analytics code in the footer without you modifying any file.</p></li><li><a
href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank" class="in_title">All in One SEO Pack</a><p>One of the most famous plugins of wordpress. It helps you blog by making it more SEO friendly and get up in the search engines.</p></li><li><a
href="http://wordpress.org/extend/plugins/antivirus/" target="_blank" class="in_title">AntiVirus</a><p>Antivirus is a plugin that checks posts and comments for spam injections or attacks from hackers. A very nice plugin that i think you should try. As you know if you are reading this blog for some time we had some problems with our blog.</p></li><li><a
href="http://wordpress.org/extend/plugins/db-cache/" target="_blank" class="in_title">DB Cache</a><p>I find this plugin better than super cache or WP cache because instead of making html files or your blog and load those up this one saves your queries and when you load a page it will load them from tose files. It&#8217;s the same idea &#8220;<b>memcache</b>&#8221; used by YouTube.com, Wikipedia.com etc.</p></li><li><a
href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank" class="in_title">Google XML Sitemaps</a><p>This plugin is a must in my opinion since it creates sitemaps for YAHOO, GOOGLE and BING so that your blog is indexed the right way.</p></li><li><a
href="http://wordpress.org/extend/plugins/underconstruction/" target="_blank" class="in_title">underConstruction</a><p>If you visited our blog while we were making the transition to WP then you saw our &#8220;Coming soon&#8221; page. That was created with this plugin. Well the page was made by me but the plugin just gives you the option to make your visitors see that page and you see the blog. So if you are loged in then you see the blog. Very useful in my opinion especially when you make major changes to your blog.</p></li><li><a
href="http://wordpress.org/extend/plugins/wordpress-popular-posts/" target="_blank" class="in_title">Wordpress Popular Posts</a><p>Ion found this plugin when i told him we should place some featured posts at the top for users to see some of the most important posts. This one is better since it will let you chose the criteria of sorting the posts. You have by most viewed post, most commented or average daily views. Very nice plugin i think you should try it. PS: don&#8217;t do like me! I installed the plugin and tried to see if it works, well it didn&#8217;t since i was logged in and it only records data when you are not logged in.</p></li><li></li></ul><p>Ok let&#8217;s wrap it up this is a list of the plugins we used for our blog. I will create a new post with some of the functions we created for our blog. And maybe come up with a plugin too for &#8220;imageROLL&#8221;, by the way we have that on our blog right now but is not a plugin yet. The image roll is based on vi.sualize.us.</p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/new-wp-blog-for-us/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Write better CSS</title><link>http://blog.ajaxmasters.com/css-shortcuts/</link> <comments>http://blog.ajaxmasters.com/css-shortcuts/#comments</comments> <pubDate>Wed, 23 Sep 2009 23:10:09 +0000</pubDate> <dc:creator>Chocksy</dc:creator> <category><![CDATA[Tutorial]]></category> <category><![CDATA[css]]></category><guid
isPermaLink="false">http://blog.ajaxmasters.com/?p=94</guid> <description><![CDATA[<a
href="http://blog.ajaxmasters.com/css-shortcuts/"><img
align="left" hspace="5" width="150" height="150" src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/css-blog-pic-170x170.png" class="alignleft wp-post-image tfe" alt="Write Better CSS" title="css-blog-pic" /></a><p>When writing your CSS, it is possible to write neater, more readable code by making use of CSS shortcuts. A shortcut is a feature of CSS that allows the developer to specify a number of related properties on a single line rather than specify them all separately. Lets look at the following example:</p> .header {
padding-top:5px;
padding-right:10px;
padding-bottom:5px;
[...]]]></description> <content:encoded><![CDATA[<div
id="attachment_108" class="wp-caption aligncenter" style="width: 310px"><a
href="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/css-blog-pic.png"><img
src="http://blog.ajaxmasters.com/wp-content/uploads/2009/09/css-blog-pic.png" alt="Write Better CSS" title="css-blog-pic" width="300" height="300" class="size-full wp-image-108" /></a><p
class="wp-caption-text">Write Better CSS</p></div><p>When writing your CSS, it is possible to write neater, more readable code by making use of CSS shortcuts. A shortcut is a feature of CSS that allows the developer to specify a number of related properties on a single line rather than specify them all separately. Lets look at the following example:</p><pre class="brush: css;">
.header {
padding-top:5px;
padding-right:10px;
padding-bottom:5px;
padding-left:10px;
}
</pre><p>The code above is perfectly valid and will work fine, but we can save time and make the code much neater using the following code:</p><pre class="brush: css;">
.header {
padding:5px 10px 5px 10px;
}
</pre><p>Using the code above we can specify all of the padding for the header div on one line. It works by applying the first attribute (5px) to the top padding of the div. The second (10px) applies to the right side padding, the 3rd (5px) attribute means the padding on the bottom of the div, and the forth (10px) attribute means the left side padding. The padding is always applied in this order.</p><p>It is possible to shorten this code even further using the following code:</p><pre class="brush: css;">
.header {
padding:5px 10px;
}
</pre><p>This works by taking the first (5px) attribute to mean the top and bottom, or vertical padding, and the second (10px) attribute to mean the horizontal padding (left and right).</p><p>The exact same principles can be used to declare the margin of your divs, so what could have looked like this:</p><pre class="brush: css;">
.header {
padding-top:5px;
padding-right:10px;
padding-bottom:5px;
padding-left:10px;
margin-top:5px;
margin-right:10px;
margin-bottom:5px;
margin-left:10px;
}
</pre><p>Can now look much neater, and is obviously much quicker to write using the following:</p><pre class="brush: css;">
.header {
padding:5px 10px;
margin:5px 10px;
}
</pre><div
class="in_title"><strong>Background properties</strong></div><p>One of my favorite CSS shortcuts is the background property shortcut. This is how a typical CSS file could look without shortcuts:</p><pre class="brush: css;">
.header {
background-image:url(images/image.jpg);
background-position:top;
background-repeat:repeat-x;
background-color:#fff;
}
</pre><p>However, with some nifty CSS it could look like this:</p><pre class="brush: css;">
.header {
background: #fff url(images/image.jpg) repeat-x top;
}
</pre><p>The above code is much quicker and more manageable. Take note though, that all of the properties must be provided when using the background shortcut. If I missed off the colour specification at the beginning for example, the code would not work.</p><div
class="in_title"><strong>Font shortcuts</strong></div><p>Another very useful shortcut is the font shortcut. The code below can be shorted considerably:</p><pre class="brush: css;">
body {
font-weight: bold;
font-family: verdana, sans-serif;
font-size: 0.8em;
line-height: 1.2em;
}
</pre><p>Here is the shortcut:</p><pre class="brush: css;">
body {
font: bold 0.8em/1.2em verdana, sans-serif;
}
</pre><p>It is important to write the shortcut in the same order as above so that web browsers don&#8217;t get confused!</p><div
class="in_title"><strong>Borders</strong></div><p>This is my favorite shortcut of all. This saves me a great deal of time when I am developing web sites because whenever I have a problem with a layout or an element, the first thing I do is put a border around it so that I can see its dimensions and work out what&#8217;s going on.</p><p>Here is some typical code:</p><pre class="brush: css;">
.header {
border-width: 1px;
border-color: #000;
border-style: solid;
}
</pre><p>This can be shorted to the following:</p><pre class="brush: css;">
.header {
border:1px solid #000;
}
</pre><p>Then, whenever you are not sure why an element is not behaving properly, just use the border shortcut above to debug your code and see what the dimensions of the element are.</p><div
class="in_title"><strong>Conclusion</strong></div><p>As you can see, you can make your code much shorter and neater using the CSS shortcuts outlined here. Once you get into the habit of using them, I guarantee that you will wonder why you ever did it differently in the past!</p> ]]></content:encoded> <wfw:commentRss>http://blog.ajaxmasters.com/css-shortcuts/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 25/48 queries in 0.010 seconds using disk

Served from: host275.hostmonster.com @ 2010-03-11 18:45:16 -->