<?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>mbe - web developers</title>
	<atom:link href="http://mbe.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://mbe.ro</link>
	<description>&#34;mbe - web developers&#34; is an amazing team of web developers based in Bucharest, Romania. We develop simple and complex websites emphasizing on user experience and quality.</description>
	<lastBuildDate>Mon, 07 Nov 2011 09:26:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Facebook for Business Purposes</title>
		<link>http://mbe.ro/2011/11/07/facebook-for-business-purposes/</link>
		<comments>http://mbe.ro/2011/11/07/facebook-for-business-purposes/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 09:25:34 +0000</pubDate>
		<dc:creator>Vasile Gheorghe</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook business]]></category>
		<category><![CDATA[Facebook marketing]]></category>
		<category><![CDATA[How to add a fan page]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=566</guid>
		<description><![CDATA[Facebook has long ended in being just a social networking website and nobody could have predicted that it will be used as a powerful marketing tool. The fact that boosted the evolution of this socializing platform into such a powerful instrument is that nowadays it is available on any device that has a basic modern [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook has long ended in being just a social networking website and nobody could have predicted that it will be used as a powerful marketing tool. The fact that boosted the evolution of this socializing platform into such a powerful instrument is that nowadays it is available on any device that has a basic modern browser. The website has been improved in looks, behavior and performance even for tablet use and so the business segment of the market has not been forgotten. What Facebook preaches to the world is the concept of free thought, feeling and likes sharing, as well as a constant improving platform of photo, image, music and video sharing even if it uses the Youtube technology.<span id="more-566"></span></p>
<h3>Why marketing?</h3>
<p>Facebook has caught the attention of marketing businesses because the number of visitors at any give moment of the day and night is huge. This way, the companies get round the clock advertising, potential customer live interaction, targeted ads and many other tools that I will provide in this article. The way a company can connect its products with the customers is by using a Facebook Fan Page that allows any &#8220;fan&#8221; to visit everything on the respective profile, add comments, connect to other fans of the respective business and these &#8220;fans&#8221; must click on &#8220;Become a fan&#8221; button in order to receive updates about the respective company profile.</p>
<p>These updates can be new products that hit the market and the company decided to put on Facebook, new marketing strategies, and even competitions as well as announcements regarding whatever the respective company decides to post.</p>
<p>Before any actual Facebook marketing takes place, one must understand exactly what would be the strategy that is to be used. The best thing is to develop a plan at least few months in advance.</p>
<h3>What can Facebook do for me and my business?</h3>
<p>Unfortunately this simple question doesn’t have a simple answer and this means the range of effects that using Facebook has is more than one can grasp.</p>
<p>Facebook can be used for business purposes if you find any of the things below needed:</p>
<ol>
<li><strong>Updated content</strong> means that you always can upload new content all the time and your fans will love it. This also means that you will have lots of fans incoming all the time.</li>
<li><strong>Supervising all the activity</strong> means that you are in full control and can observe everything that happens on the fan page. You can see what the fans are interested in, reply to the comments and answer questions, delete comments that are inappropriate and so on.</li>
<li><strong>Time control</strong> allows you to fully grasp the time you need to create that original and updated content every day; however, this is a tricky business as creating original content daily for a business that is rather static is very hard and time consuming.</li>
<li><strong>Targeting</strong> is intended to make your business profitable by trying to attract only people that are interested or related to your business’ field of work and so avoiding any unnecessary fans that will never become customers and will just make your life harder by posting unnecessary comments and so on. This also allows you to target only people in an age range that you find suitable. This strategy is very important as your content may not be that suitable or attractive let’s say for older adults and young teenagers for example.</li>
<li><strong>Future customers are the actual fans</strong> means that you have the possibility of turning fans into customers but you should also take into notice that many people, even if already interested in your company, will most probably buy nothing and will just remain fans.</li>
<li><strong>Live support</strong> is something that is necessary as you have to answer all sort of questions and presumably in real time; this activity is a full time job and will most likely ‘eat’ lots of time because Facebook is international and people tend to use it all the time, day and night.</li>
</ol>
<h3>Starting the Facebook marketing</h3>
<p>Once you have understood all the implications that derive from the above tags and after you found using Facebook as a marketing tool proper you can start the real Facebook marketing implementation.</p>
<p>Even if the only way you can use Facebook for your business is with a Fan Page this approach has three ways to take, depending on how you want to use the Facebook page.</p>
<ol>
<li><strong>Business only via a Fan Page</strong> – you use a Fan Page to interact with the customers and this option allows you to create a Fan Page even without the need of an existing personal profile. If you just want to keep your business professional and handle all the fan threads on a professional level on the Fan Page this is the best choice. This can be done very easily by simply clicking &#8220;Create a Page for a business&#8221; on the Facebook starting home screen. You can also add an advertising campaign and Facebook offers administration tools for it. Even so, the option of using only a Fan Page limits in some manner the use by fans.</li>
<li><strong>Creating a Fan Page and a personal one</strong> &#8211; what this means is that you connect your personal page to the fan page of your business. A special aspect must be considered as you connect your personal profile page with your business Fan Page and that is privacy; you don’t want your potential customers to see photos of you smoking a large cigar in the most enjoyable way while selling anti-smoke remedies on the business Fan Page. For this matter, Facebook’s Profile Privacy Settings comes to help you with that. You can limit the visibility for your personal profile to any lists you may find fit and so keeping your personal life personal.</li>
<li><strong>Using both Fan Page and Personal Page for the business</strong> &#8211; this is a rather common way to attract customers and fans alike as both pages are intended to provide information about the business in the most professional way ever. Keeping things professional on both pages should be top priority.</li>
</ol>
<h3>Setting up the Fan Page</h3>
<p>There are literally thousand of Fan Pages on Facebook so the thing is the process is rather simple. There are 5 simple steps to make this journey easier for you:</p>
<ol>
<li><strong>Choose the name for the webpage</strong>: try to understand that this name should be the name that you used to advertise your business; if you used a name for offline merchandise and advertising, you should use the same name for the Fan Page as well. Many customers are also on Facebook and these will probably the first people that will like your page and ask about the products or services you provide. This is a very good reputation indicator along with a keyword for search engines so try to use exactly the same name.</li>
<li><strong>Adding a link to Twitter</strong>: is the best thing you can do to grant yourself fast news deployment on a large network of fans and customers as that is the role of Twitter. By adding a link to a Twitter account, you grant all fans access to all updates such as photos, updates, messages and even links. What this thing implies is that you provide original fresh content all the time so that the fans are attracted every time they receive an update. Many people send old posts as updates and that way loose many fans.</li>
<li><strong>Adding photos to your business</strong> is a very good marketing move as the fans love to see what they can have and thus become potential customers. By adding the business logo or motto that you used in advertising the business offline means that your business will get more awareness.</li>
<li><strong>Useful information with the &#8220;About&#8221; section</strong>: must be provided as everyone that lands on the page should know what the business is all about and what you can offer. Here you can also provide other means of letting the potential customers reach the business such as blogs, live chat, main website and other social profiles.</li>
<li><strong>Providing content</strong> is the main way you will attract fans and customers.</li>
</ol>
<p>There are some aspects that you should know if you are new to Facebook and those are:</p>
<ul>
<li><strong>Wall posts</strong> allow everyone that lands on the Fan Page to see al recent updates, posts, messages from you and the fans as well. You can control this by accessing the settings in Wall Settings but forcing fans to wait for confirmation as they post a comment may disconnect their current relation with the business as they want to see their comments posted.</li>
<li><strong>Using and managing Discussion Boards</strong> is a very powerful tool that allows you to control where the discussions between fans and your business head and so here you can be a trend setter.</li>
<li><strong>Posting links</strong> represents an easy way to share links that might be interesting for your fans such as newsletters and so on.</li>
<li><strong>Posting events</strong> allows the fans to know where you will hold a conference, what new promotion or products you have available and many other things that you might find fit.</li>
<li><strong>Uploading photos</strong> allows you to inscribe images in your fans’ minds as this is the best way to make your products and services known. This can be used as an advertising tool, update tool or whatever you might think usable in your marketing strategy. You can also upload videos to obtain any effects you want.</li>
<li><strong>Adding reviews</strong> is a powerful way to let fans know what your business is all about and allowing your fans to post feedback is the best way to have the best indicator of your business popularity.</li>
</ul>
<h3>Additional ways to create content</h3>
<p>There are three main ways to add more content to your business page and those are enumerated below:</p>
<ul>
<li><strong>Create your own content</strong>: this way you post content that you create in the events tab, on the wall and on Twitter. There’s a catch and that’s not to try and sale products and services but rather review them or offer interesting and intriguing facts about what you offer so that the fans won’t feel offended by your sales crusade and leave.</li>
<li><strong>Auto generate content</strong> is a good way to have updated content all the time but this is directly connected to the content you upload manually and so this can only go that far. You can do this by using a RSS feed system to connect to your blog and Twitter. By using that, you auto generate content for all the linked accounts and so attract new fans all the time.  You must be careful with this as having the same information on all pages might bring a general boredom to your fans and so displacing the central role of the Facebook Fan Page.</li>
<li><strong>Allow the fans to create content</strong> is the best way to receive feedback and reconsider the marketing strategy or keep doing whatever you were doing. This is a very good way to encourage fans to become customers and state your interest in the customer community.</li>
</ul>
<h3>Adding more applications</h3>
<p>This option allows you extended control over the way the Fan Page looks and behaves as well as any apps you may want to add. Facebook offers HTML code support so any code you might want to add can be added without too much effort.</p>
<h3>The actual marketing – bringing fans to your Page</h3>
<p>Now that you have created the Fan Page and all the additional information that you needed to make your business comprehensible on the Fan Page you have to start considering what audience you need for your business. This marketing strategy includes both Facebook use but also external.<br />
You can link the main website with the Facebook page and vice versa.<br />
You can link all sent emails to the Facebook page in the signature.<br />
Use the personal profile to send the link of your business to all your friends.<br />
Make good use of Twitter.<br />
Post newsletters on Facebook also.<br />
Link the blogs and all external websites to the Facebook Fan page as many people have multiple accounts.</p>
<p>What Facebook offers is a Social Media Relations environment that is sure to make you reevaluate your marketing strategy all the time and deliver the best results both in advertising and marketing.</p>
<h3>Tips and tricks to help you sell</h3>
<ul>
<li><strong>Behave responsibly</strong> and post content that is well thought and considered as offensive and disrespectful posts may be punished extremely as fan communities are the best friend but also the fiercest enemy.</li>
<li><strong>Let the fans roam free and say what they want to say</strong> as this is the best way to encourage sharing and this is the best feedback.</li>
<li><strong>Do not try to lure fans into becoming customers</strong>; this thing will happen anyway if your marketing strategy is good. By doing that you risk making them feel offended and leave.</li>
<li><strong>Let negative comments posted</strong> as many fans will &#8220;come to the rescue&#8221;. By deleting such comments you create a bad impression and fans will surely loose faith as you can’t stand a critic.</li>
</ul>
<h3>Conclusion</h3>
<p>What you can achieve with Facebook is both extensive and successful if you learn and understand how to harness the full potential of this marketing tool. You have to understand the trends, the daily customer needs and make them think that what you offer is what they need and they can’t get it anywhere else. What you must emphasize on is a good reputation, good interaction and proper fan feedback.</p>
<p>By doing that, not only you get the fans to know you and trust you but also turn them all into potential and actual customers.</p>
<p>That is the real efficient way to use Facebook as a marketing tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/11/07/facebook-for-business-purposes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using WordPress As A CMS &#8211; Creating Tables</title>
		<link>http://mbe.ro/2011/10/11/using-wordpress-as-a-cms-creating-tables/</link>
		<comments>http://mbe.ro/2011/10/11/using-wordpress-as-a-cms-creating-tables/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 11:26:18 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[how to make wordpress plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress cms]]></category>
		<category><![CDATA[wordpress php]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=563</guid>
		<description><![CDATA[As you try to create a WordPress plugin you will most surely need to store all sorts of data in the main WordPress database. Many will regard this as a hard thing to do and a very complicated process but if you flip the cover open there are only two types of data that this [...]]]></description>
			<content:encoded><![CDATA[<p>As you try to create a WordPress plugin you will most surely need to store all sorts of data in the main WordPress database. Many will regard this as a hard thing to do and a very complicated process but if you flip the cover open there are only two types of data that this process might require and those are Setup information and actual Data.<span id="more-563"></span></p>
<ul>
<li><strong>Setup information</strong> represents all the data that the user needs to enter when installing the plugin for the first time. This represents data that you want the users to enter before using the actual plugin. For example, if you use an online picture plugin you might want the user to enter an name for a Flickr account or other information that you might use for the auto-configuration of the plugin. This type of data is usually uploaded in the database by the <strong>options mechanism</strong> that WordPress features.</li>
<li>Actual <strong>data</strong> represents data that is collected as a user makes use of the plugin and this can mean history, preferences, tags, bookmarks, statistics and page views or uploads or whatever the plugin might need in order to work properly. Also, this data can be also stored in a completely separate MySQL custom defined table that needs to be created but the recommended way to store all the data that the plugin uses is by using <strong>Post Meta featured by WordPress</strong>.</li>
</ul>
<p>What this tutorial is made for is to allow you to understand the mechanism of embedding the possibility of automatically creating a MySQL table into your plugin so it has a table to store data in. However, you might want to make the user involve more and after installing the plugin it should also run an install script. This could be an option too but this is far the last one as a third one might include the user running a personal SQL query by using a PHP script to interact with the database but that’s not a real option as the user may scramble a step or run the whole setup process wrong and so make your plugin erratic.</p>
<p>I will start the tutorial by a three step process in which you can make you plugin generate the database tables automatically.</p>
<p><strong>The first step</strong> involves you creating the PHP function that creates the table;</p>
<p><strong>The second step</strong> requires that you ensure the WordPress platform is calling the function when the plugin is installed and acive.<br />
<strong><br />
The last step</strong> involves creating a function that upgrades the plugin table structure if you changed it to another type and you want the plugin already installed to change the structure also.</p>
<h3>Creating the database tables</h3>
<p>This step is the first step you need to take as your plugin must generate automatic database tables and then add them to the WordPress database. Let’s consider the name of the function plugin_install.</p>
<h3>Table prefix</h3>
<p>By editing the <em>wp-config.php</em> file the table prefix can be defined by any site owner and even if by default the table prefix is &#8220;<em>wp_</em>&#8221; you are recommended to see if the real value is the default one and then use it for defining the name for your database table. Where you should search for the value is in the prefix variable located in <em>$wpdb</em> (WordPress database). You must take into notice the fact that the 2.1 version of the WordPress platform does not use the <em>$table_prefix</em> variable and you must use it for defining the name of your database in any less than 2.1 version.</p>
<p>For example, creating a table called <em>{prefix} search_query</em> your code should look like this:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> plugin_install <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$table_name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">prefix</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;search_query&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>While this only defines the name, the next step involves creating and / or updating the table by using a dedicated function for doing that rather than running a direct SQL query. The function that is used is <em>dbDelta</em> and as it’s located in a file that is not loaded by default you’ll have to load it manually; the file is <em>upgrade.php</em> (<em>wp-admin/includes</em>).</p>
<p>What the <em>dbDelta</em> function does is examining the default table structure and after comparing it to a known pattern that it needs it can alter the table as necessary either by adding or modifying it. This way, the table is prepared for updates as <em>upgrade-schema.php</em> explains very well.</p>
<p>Before starting to use <em>dbDelta</em> you should know three main things:</p>
<ol>
<li>Each field must have its own line in the SQL statement</li>
<li>Between the keyword primary key and the actual key that you define you must place two spaces; this is a common error source</li>
<li>Instead of using index you must use key and also make sure that at least a key is included.</li>
</ol>
<p>However, with all that taken into notice, the next lines in the function look like this:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;CREATE TABLE &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$table_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (
    id mediumint(9) NOT NULL AUTO_INCREMENT,
    time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
    name tinytext NOT NULL,
    text text NOT NULL,
    url VARCHAR(55) DEFAULT '' NOT NULL,
    UNIQUE KEY id (id)
  );&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin/includes/upgrade.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
dbDelta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<p>You must replace the <em>$sql</em> variable with your own table structure.</p>
<h3>Adding the first entries</h3>
<p>A simple example of how to add data to the fresh table is provided below:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$welcome_name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Plugin Wordpress&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$welcome_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Congratulations, you just installed the plugin&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$rows_affected</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">insert</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$table_name</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'time'</span> <span style="color: #339933;">=&gt;</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mysql'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$welcome_name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'text'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$welcome_text</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<p>There is an avoidance measure that is recommended and that is to make sure that you use the <em>$wpdb->escape</em> function to run a variable before parsing it into the database. For further explanation, read the help for the class named <em>wpdb</em>.</p>
<p>When declaring the database structure, you can also include a version so that you know at any given point in time what version the database structure is and update it at any time, not forgetting to change the version of course:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
add_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;plugin_db_version&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1.4&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<p>Once the version declared we can put together the whole function so that you understand exactly what the code structure is:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$plugin_db_version</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$jal_db_version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1.4&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> plugin_install<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$plugin_db_version</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$table_name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">prefix</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;search_query&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;CREATE TABLE &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$table_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (
      id mediumint(9) NOT NULL AUTO_INCREMENT,
      time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
      name tinytext NOT NULL,
      text text NOT NULL,
      url VARCHAR(64) DEFAULT '' NOT NULL,
      UNIQUE KEY id (id)
    );&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin/includes/upgrade.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  dbDelta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  add_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;plugin_db_version&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$plugin_db_version</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> plugin_install_data<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$welcome_name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Plugin Wordpress&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$welcome_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; Congratulations, you just installed the plugin!&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$rows_affected</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">insert</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$table_name</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'time'</span> <span style="color: #339933;">=&gt;</span> current_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mysql'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$welcome_name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'text'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$welcome_text</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>After customizing the function to suit your needs, you may want to learn how to create an upgrade function for the database structure as this is a very common action.</p>
<p>Let’s use the previous code to create a database, version 1.4 as I chose the variable. This version comes with a URL field of 128 characters compared to the previous version which only had 64. After all the defining of the function you must add the lines below to check the current function version and update if that is required:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$installed_ver</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;plugin_db_version&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$installed_ver</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$plugin_db_version</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;CREATE TABLE &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$table_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (
      id mediumint(9) NOT NULL AUTO_INCREMENT,
      time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
      name tinytext NOT NULL,
      text text NOT NULL,
      url VARCHAR(128) DEFAULT '' NOT NULL,
      UNIQUE KEY id (id)
    );&quot;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin/includes/upgrade.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  dbDelta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  update_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;plugin_db_version&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$plugin_db_version</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<h3>Conclusion</h3>
<p>You now know how to define functions that will enable your WordPress plugin to create automatic SQL databases and the mechanisms under the whole update concept of such a plugin database structure.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/10/11/using-wordpress-as-a-cms-creating-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Schema.org &#8211; What It Is And How Can It Help Your SEO</title>
		<link>http://mbe.ro/2011/10/03/schema-org-what-it-is-and-how-can-it-help-your-seo/</link>
		<comments>http://mbe.ro/2011/10/03/schema-org-what-it-is-and-how-can-it-help-your-seo/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:13:45 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[microdata]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[schema.org]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[structured html]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=560</guid>
		<description><![CDATA[Web page design is full of surprises all the time as search engines provide brand new engine optimization features all the time. In such a dynamic field of work, web designers face more and more challenges with each addition brought by search engines. From many SEO choices available, structured data has the highest rank because [...]]]></description>
			<content:encoded><![CDATA[<p>Web page design is full of surprises all the time as search engines provide brand new engine optimization features all the time. In such a dynamic field of work, web designers face more and more challenges with each addition brought by search engines. From many SEO choices available, structured data has the highest rank because the search engines use structured data in creating the already accustomed ‘rich snippets’ when a search is initiated.<span id="more-560"></span></p>
<h3>Definition of structured data</h3>
<p>In the last couple of years many search engines implemented in a fashion or another these rich snippets. These rich snippets represent additional information that a search places immediately below each search result. Structured data allows the creation of these rich snippets in an orderly manner, meaning that the web designer is empowered to choose what information the rich snippet for the respective site should be.</p>
<h3>How can structured data be represented?</h3>
<p>Even the world’s most used search engine, Google, is having trouble in using rich snippets as each web designer uses a different way to represent the markup based on the targeted search engine. There are numerous ways to represent markups, from Microformats, Microdata which is used by the HTML 5 fans, RDFa, Goodrelations ( based on RDF / XML ) but all of these are obsolete as all search engines have agreed to use the same markup language and this already standardized alliance has a name schema.org.</p>
<h3>What does Schema.org bring?</h3>
<p>Well, the best thing to describe schema.org is extensive. Extensive lists of types of data, all contained in the list <a href="http://schema.org/docs/full.html" target="_blank">provided here</a>, on the official site. There are literally too many ‘schemas’ for all sorts of types of data and they are all arranged hierarchically based on the most common markups used nowadays and some that are used for even several times throughout history. What schema.org brings is innovation by unity.</p>
<h3>How does it work?</h3>
<p>It works by using the markup language from Microdata. For those that this term is unfamiliar, each type of data can be marked by a simple hierarchical vocabulary specified in the list previously provided. The way vocabularies are defined for example for an entity, let’s say a restaurant and you have a menu listing on your website, you have to use ‘Food Establishment: menu’ vocabulary in the schema.org listing.</p>
<p>There are many examples that you can find to get a hang of this new markup standard and one is provided on the main page of schema.org.</p>
<p>Some basic elements that have been suggested below:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div itemscope itemtype<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://schema.org/Place&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>span itemprop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;place&quot;</span><span style="color: #339933;">&gt;</span>The Big Place<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_PICTURE_URL_&quot;</span> itemprop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;image&quot;</span> <span style="color: #339933;">/&gt;</span>
  <span style="color: #339933;">&lt;</span>span itemprop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;photos&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>span itemprop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adress&quot;</span><span style="color: #339933;">&gt;</span>actual adress<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>This would tell the search engine that that &#8220;object&#8221; is a place and that _PICTURE_URL_ is a picture from it and the other photos are other photos from it and that that is the actual address of that place.</p>
<p>This markup standard is quite simple and easy to use as <em>itemscope</em> is used to declare the object and <em>itemtype</em> is used to declare the type of the object. Whatever you need after defining the markup as above you’ll be able to find at schema.org so the dictionary provides a powerful extended option palette.</p>
<h3>Am I forced to give up old markup standards I know?</h3>
<p>Search engines will still use the old markup standards such as RDFa and Microformats in compatibility mode for a while but after some time we will all be using the schema.org as the entire search engine community is slowly evolving towards a centralization that will take place in time. What this means is that your web developer abilities should concentrate on merging your old knowledge with this new standard that is soon to become universal. You can start converting the structured data on the websites that you manage to this markup language.</p>
<h3>What does it all mean after all?</h3>
<p>By standardizing the markup language for all the structured search engines means that you will have fewer worries when creating structured data for a website. It also means that your rich snippets visibility is universal for all search engines that accept the schema.org standard.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/10/03/schema-org-what-it-is-and-how-can-it-help-your-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mbeMobileSlider &#8211; A Photo and HTML Slider for Your Mobile Needs</title>
		<link>http://mbe.ro/2011/09/30/mbemobileslider-a-photo-and-html-slider-for-your-mobile-needs/</link>
		<comments>http://mbe.ro/2011/09/30/mbemobileslider-a-photo-and-html-slider-for-your-mobile-needs/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 08:40:16 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[html slider]]></category>
		<category><![CDATA[javascript mobile slider]]></category>
		<category><![CDATA[javascript slider]]></category>
		<category><![CDATA[jquery mobile slider]]></category>
		<category><![CDATA[jquery slider]]></category>
		<category><![CDATA[mbe mobile slider]]></category>
		<category><![CDATA[mobile slider]]></category>
		<category><![CDATA[touch slider]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=557</guid>
		<description><![CDATA[Because we needed a slider that would work on both mobile and normal browsers we made the mbeMobileSlider. It works really well on Webkit Browsers (Safari, Chrome, iOs Safari etc) but not just on them. Check it out at http://mbe.ro/wp-content/uploads/mbe_slider_v1.0.0/ and the Google Code Page (to download the plugin). Preview how to slider works:]]></description>
			<content:encoded><![CDATA[<p>Because we needed a slider that would work on both mobile and normal browsers we made the mbeMobileSlider. It works really well on Webkit Browsers (Safari, Chrome, iOs Safari etc) but not just on them.</p>
<p>Check it out at <a href="http://mbe.ro/wp-content/uploads/mbe_slider_v1.0.0/" target="_blank">http://mbe.ro/wp-content/uploads/mbe_slider_v1.0.0/</a> and the <a href="http://code.google.com/p/mbe-mobile-slider/" target="_blank">Google Code Page</a> (to download the plugin).<span id="more-557"></span></p>
<p>Preview how to slider works:<br />
<iframe width="420" height="315" src="http://www.youtube.com/embed/BfJ-1NHVRTU" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/30/mbemobileslider-a-photo-and-html-slider-for-your-mobile-needs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Few Tips On How To Optimize Your CakePHP Website</title>
		<link>http://mbe.ro/2011/09/27/a-few-tips-on-how-to-optimize-your-cakephp-website/</link>
		<comments>http://mbe.ro/2011/09/27/a-few-tips-on-how-to-optimize-your-cakephp-website/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 07:55:50 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[cakephp tips]]></category>
		<category><![CDATA[fast queries]]></category>
		<category><![CDATA[faster cakephp]]></category>
		<category><![CDATA[optimize cakephp]]></category>
		<category><![CDATA[php optimization tips]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=548</guid>
		<description><![CDATA[What CakePHP offers is functionality. This is the main reason why developers use it, but the simple capability of creating web sites quicker than the regular solutions mean that optimization and loading times of the web site will suffer unless while expanding the developer skills you don’t keep up the trend and learn many techniques [...]]]></description>
			<content:encoded><![CDATA[<p>What CakePHP offers is functionality. This is the main reason why developers use it, but the simple capability of creating web sites quicker than the regular solutions mean that optimization and loading times of the web site will suffer unless while expanding the developer skills you don’t keep up the trend and learn many techniques to optimize the web site whether you want more quality or more performance out of it.</p>
<p>The main objectives of this article are to <strong>learn about techniques to speed up load time, optimize the queries</strong> but also <strong>speed up cache query results</strong>.<span id="more-548"></span></p>
<p>Depending on each web site and elements, these objectives may pose big problems or quick solutions because there are simply too many parameters that count in this struggle for developing quality performance web sites.</p>
<p>One thing is certain: after reading this <strong>you will be able to understand how optimization techniques work and use them on your website</strong>.</p>
<h3>Disable Debug Mode</h3>
<p>The first thing to do in this quest for power is to turn off debugging. The default setting for Debug Mode is 2 and that is great for on going development but when the site is ready for launch it will only make you life harder so turning it to 0 is a good idea.</p>
<p>This is done by going to <em>app\config\core.php</em> and modifying the debug value to <em>0 </em></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  Configure<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span>`debug`<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>After doing that, CakePHP will cache elements of your design and thus decreasing loading time; once the elements are cached, it will not check each structure defined in the model. This is a very simple and efficient way to speed your CakePHP site.</p>
<h3>Using recursive queries settings</h3>
<p>By <strong>changing the way CakePHP joins or not the tables queried when using the bakery</strong> you can also speed up behavior this time.</p>
<p>If you want to query models and create numerous join statements the &#8220;0&#8243; setting in the <em>$this->Model->recursive = 0;</em> is perfect. Example: It will return all the user data presuming that there are numerous photo albums and they are all tied to the users but it will also slow down all behavior and that is not always wanted.</p>
<p>However, if you want to reduce the number of ties between these albums, if we are to follow the example, and thus speed up the process, you can set -1 as a parameter and so do exactly what you desire:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">recursive</span> <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<h3>Limiting requestAction();</h3>
<p>A problem that is probably making lots of web developers curse daily is the <strong>requestAction</strong> issue that everyone wants to avoid but little know how. Basically what this does is that enables you to call other functions inside another view. This thing reduces considerably the amount of code that you have to rewrite just with several parameters changed but whenever you use it CakePHP adds a lot of data in the overhead as each request needs its own.</p>
<p>What many do is place in an element the views HTML code that needs using the <em>requestAction()</em> call. But this means that you have to load other elements from the two views and that means less time running but more time writing.</p>
<h3>Query results caching</h3>
<p>What many don’t know is that CakePHP requires processing queries and parsing the results in building a good sum of data arrays. But that is a lot of processing to do every time you search something and this can be avoided by caching the results in the caching system that CakePHP features.</p>
<p>What I will show you will, in most cases, speed up that process but I must warn you that if you cache incorrectly, the outcome will most surely be less pleasant and from that point on you might better start over again rather than finding the errors and correcting them.</p>
<p>Below I will provide the necessary steps in order to cache with the built-in caching system that CakePHP offers.</p>
<p>First you must create an application model (<em>AppModel</em> &#8211; if you don&#8217;t already have one) which should be located in the root folder of your app.</p>
<p>The below code example contains a <em>find()</em> function:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000000; font-weight: bold;">class</span> AppModel <span style="color: #000000; font-weight: bold;">extends</span> Model <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">function</span> find<span style="color: #009900;">&#40;</span><span style="color: #000088;">$conditions</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$order</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recursive</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$doQuery</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">//check if we want the cache</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cache'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$cacheConfig</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//check if we have specified a custom config, e.g. different expiry time</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cacheConfig'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$cacheConfig</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cacheConfig'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000088;">$cacheName</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'-'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cache'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//if so, check if the cache exists</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> Cache<span style="color: #339933;">::</span><span style="color: #004000;">read</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cacheName</span><span style="color: #339933;">,</span> <span style="color: #000088;">$cacheConfig</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> parent<span style="color: #339933;">::</span><span style="color: #004000;">find</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conditions</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fields</span><span style="color: #339933;">,</span> <span style="color: #000088;">$order</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recursive</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          Cache<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cacheName</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #000088;">$cacheConfig</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000088;">$doQuery</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$doQuery</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> parent<span style="color: #339933;">::</span><span style="color: #004000;">find</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conditions</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fields</span><span style="color: #339933;">,</span> <span style="color: #000088;">$order</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recursive</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>This example enables the override the default <em>find()</em> function and searches for a string &#8220;cache&#8221; which is the new key that you implement. Once this found, the &#8220;generation&#8221; of the cache name is required, in this case <em>Name-cacheName</em>. The model name must be annotated as well in order to eliminate the eventual twice use of the name which would end up in an error.</p>
<p>Then it searches for another key that if it exist, it can let you set a timeout for the cached data. The name here is <em>cacheConfig</em>, which in the default CakePHP is about a week or so. However this is not that important as you will most probably set your own period of time.</p>
<p>Reading the cache with that name is done and if the cache is not present, you run an automatic query and save the results cached so that it will be present next time.</p>
<p>Now everything is set up for use but you need to do one more thing before actually using it. Let’s say that the table that you&#8217;re querying contains a list of countries. Now, this table is not going to be updated too often so you can cache the results successfully for easy find.</p>
<p>Let’s presume that the &#8220;Country&#8221; model and &#8220;Countries&#8221; controller have already been created.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #666666; font-style: italic;">//get country list using default config</span>
  <span style="color: #000088;">$countries</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">find</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'list'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'cache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'countryList'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">//get country list using a custom config</span>
  <span style="color: #000088;">$countries</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">find</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'list'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'cache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'countryList'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'cacheConfig'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'long'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>The code above allows a find statement that once ran for the first time, CakePHP parses the results and stores the data retrieved in the cache but next time the query will be accessed the cached data  will be opened and so no other search will be attended.</p>
<p>In order for the code above yo work you also need to add to your <em>core.php</em> file some lines of code:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  Cache<span style="color: #339933;">::</span><span style="color: #004000;">config</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'long'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'engine'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'File'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'duration'</span><span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'+1 months'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'probability'</span><span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'path'</span> <span style="color: #339933;">=&gt;</span> CACHE <span style="color: #339933;">.</span> <span style="color: #0000ff;">'long'</span> <span style="color: #339933;">.</span> DS<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>Another thing to do is create a folder named <em>&#8220;long&#8221;</em> in the <em>&#8220;tmp/cache&#8221;</em> folder.</p>
<p>For example you have a <em>country_controller.php</em> file that enables the administrator to do anything he may need to do to it including adding or deleting and you may want to update the cached queries; the following code allows you to understand and do just that, if it is added to any function such as add, edit or delete.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #666666; font-style: italic;">//we need to remove the status cache now</span>
  Cache<span style="color: #339933;">::</span><span style="color: #004000;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Country-countryList'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>This is all that can be done in this matter but if working with names and users you should place the name of the desired used in the cached key or you will get awkward results when opening the cached results.</p>
<h3>Conclusion</h3>
<p>If you can do these you can optimize your CakePHP website but you have to make sure that any other lame issues such as too many database queries, too many CSS files and others like these ones are solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/27/a-few-tips-on-how-to-optimize-your-cakephp-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Trick: How To Change The Selection Color</title>
		<link>http://mbe.ro/2011/09/21/css-trick-how-to-change-the-selection-color/</link>
		<comments>http://mbe.ro/2011/09/21/css-trick-how-to-change-the-selection-color/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:54:26 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[change selection color]]></category>
		<category><![CDATA[css pseudo element]]></category>
		<category><![CDATA[css selection]]></category>
		<category><![CDATA[css trick]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[selection color css]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=535</guid>
		<description><![CDATA[What many web developers that use CSS know is basically to literally develop websites but what many don’t know is that there are many tricks and tweaks to make a website behave exactly as you want. Such a trick is the one that allows you to change the selection color when you select text or [...]]]></description>
			<content:encoded><![CDATA[<p>What many web developers that use CSS know is basically to literally develop websites but what many don’t know is that there are many tricks and tweaks to make a website behave exactly as you want.</p>
<p>Such a trick is the one that allows you to <strong>change the selection color</strong> when you select text or desired content.</p>
<p>Usually, what the browser color default is that you will use but maybe you don’t want that. But what if you want to make your selection yellow or pink or any other color you might think of?<span id="more-535"></span></p>
<p>The easiest way to do it is by using a CSS pseudo element, the <em>selection</em> that enables the easy way for choosing what color the selected background and content should have. The color options remain at the web developer&#8217;s choice.</p>
<p>After reading this tutorial you will be able to use the selection pseudo element so that you will be able to configure your selecting tool as you wish, regardless the &#8220;will of the browser&#8221;.</p>
<p>There are only some simple steps that any CSS web developer needs to follow in order to use this nice pseudo element.</p>
<p>The first thing to do is to create a HTML page and use the text below to create a page (or <a href="http://mbe.ro/wp-content/uploads/selection_color/" target="_blank">click here to view the example live</a>):</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>Selection changed<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;changed&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Aenean eu leo quam<span style="color: #339933;">.</span> Pellentesque ornare sem lacinia quam venenatis vestibulum<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>Selection normal<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;regular&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Praesent commodo cursus magna<span style="color: #339933;">,</span> vel scelerisque nisl consectetur et<span style="color: #339933;">.</span> Morbi leo risus<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>Once you <a href="http://mbe.ro/wp-content/uploads/selection_color/" target="_blank">preview the page</a> with the code provided attached you will step up and change the selection color with the second step of this tutorial which will do exactly that. You now have to use the pseudo element that I was talking about previously, selection.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.changed</span> p<span style="color: #00AA00;">:</span><span style="color: #3333ff;">:selection </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FF0057</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.changed</span> p<span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-webkit-selection </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FF0057</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.changed</span> p<span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-moz-selection </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FF0057</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>If you now <a href="http://mbe.ro/wp-content/uploads/selection_color/" target="_blank">preview the page</a> after inserting the code above you will see the foreground color as white and the background pink (<em>#FF0057</em>). It’s that simple.</p>
<p>For those that really want to understand what are the inner workings I suggest don’t skip the next lines as the explanation of the process is written below.</p>
<p>In the first half of the selector (<em>.changed p</em>) you specify the rule application with the &#8220;p&#8221; which means that the &#8220;p&#8221; tags inside the div with the class <em>.changed</em> obey the rule.</p>
<p>The pseudo element that you want to use comes after the <em>.changed p</em> and the line will look like this: <em>.changed p::selection {</em> and this will enable the element to work in the <em>.changed p</em> tags and so relating the rule to the selection of content.</p>
<p>The next two lines in the code define the background color during selection of content (<em>background: #whatever HEX color you may want</em>) and the foreground color during selection and once selected (<em>color:#hopefuly another color than that of the background in HEX</em>).</p>
<p>Even if the pseudo element selection was a part in the W3C specifications it was removed but the support for most browsers (FF, Safari, Chrome, Opera, IE 9+) is still active so you will be able to use it wherever you want.</p>
<p><a href="http://mbe.ro/wp-content/uploads/selection_color/" target="_blank">View the example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/21/css-trick-how-to-change-the-selection-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some HTML Tags That Look Totally Different In HTML5</title>
		<link>http://mbe.ro/2011/09/19/some-html-tags-that-look-totally-different-in-html5/</link>
		<comments>http://mbe.ro/2011/09/19/some-html-tags-that-look-totally-different-in-html5/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 13:35:33 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[html5 changes]]></category>
		<category><![CDATA[html5 doctype]]></category>
		<category><![CDATA[html5 script]]></category>
		<category><![CDATA[html5 style]]></category>
		<category><![CDATA[html5 tags]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=528</guid>
		<description><![CDATA[What web developers have adopted without too much trouble was the redefining of tags with the HTML5 standard. What HTML5 brought consisted in many changes and many tags that were not even considered in earlier HTML, CSS or even Javascript. Even if many professionals and tutorials tend to put accent on the novelties that the [...]]]></description>
			<content:encoded><![CDATA[<p>What web developers have adopted without too much trouble was the redefining of tags with the HTML5 standard. What HTML5 brought consisted in many changes and many tags that were not even considered in earlier HTML, CSS or even Javascript. Even if many professionals and tutorials tend to put accent on the novelties that the HTML5 brought, what nobody will tell you is the fact that many often used tags were redesigned and so, in order to be able to access the power behind HTML5, you must first see what these changes are.<span id="more-528"></span></p>
<p>There has been some very interesting refining made to <em>Doctype Declaration</em> as in any web page the main way to let browsers know hot to read your web page is done by this declaration.</p>
<p>In almost any older HTML the Doctype Declaration was done as follows (I used the original W3C spec page that offers these explanations):</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #0000ff;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>With HTML5, your work has been reduced to a simple</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>which I find awesome because they gave up the gibberish that many had problems defining before the <em>html</em> word.</p>
<p>Another change that HTML 5 brings is another simplification, this time of the Charset Meta Tag, as for the previous HTML web pages it looked like this:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>meta content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html; charset=utf-8&quot;</span> http<span style="color: #339933;">-</span>equiv<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span><span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>
<p>but in HTML 5 it was again reduced to</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>meta charset<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span><span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>
<p>For those that want more elaborate settings the old declaration is still available.</p>
<p>The Style Tag is another tag that has seen simplification with the elimination if the type attributes. This is not such a major simplification but it’s worth the time.</p>
<p>Older HTML:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">.</span>fontModifier <span style="color: #009900;">&#123;</span>
    font<span style="color: #339933;">-</span>family<span style="color: #339933;">:</span> Arial<span style="color: #339933;">;</span>
    font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span> 12px<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>Versus HTML5:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>style<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">.</span>fontModifier <span style="color: #009900;">&#123;</span>
    font<span style="color: #339933;">-</span>family<span style="color: #339933;">:</span> Arial<span style="color: #339933;">;</span>
    font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span> 12px<span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p>The Script Tags also suffered simplification which is not bad at all as the previous HTML looked like this:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
  doStuff<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></pre></td></tr></table></div>
<p>In HTML5 the tag is a simple tag, without any other parameters:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
  doStuff<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></pre></td></tr></table></div>
<p>If you want an external script file you just have to do the simple reference like below:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_script.js&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></pre></td></tr></table></div>
<p>HTML5 is going to change a lot of things and mainly it will make our life (the developers) much easier and better organized.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/19/some-html-tags-that-look-totally-different-in-html5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Benefits Of Online Marketing</title>
		<link>http://mbe.ro/2011/09/16/the-benefits-of-online-marketing/</link>
		<comments>http://mbe.ro/2011/09/16/the-benefits-of-online-marketing/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 07:41:05 +0000</pubDate>
		<dc:creator>Vasile Gheorghe</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[online marketing]]></category>
		<category><![CDATA[revenue]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=502</guid>
		<description><![CDATA[What does any entrepreneur want from his marketing strategy? The answer is simple: to sell the product in real time, with the least effort possible and the largest amount of profit. How can any entrepreneur do that? That question has yet another simple answer which underneath the simple shell hides a very complex and powerful [...]]]></description>
			<content:encoded><![CDATA[<p>What does any entrepreneur want from his marketing strategy? The answer is simple: to sell the product in real time, with the least effort possible and the largest amount of profit.</p>
<p>How can any entrepreneur do that? That question has yet another simple answer which underneath the simple shell hides a very complex and powerful strategy: <strong>online marketing</strong>.</p>
<p>Online marketing offers a great deal of options in terms of distributing the promotional advertising that an entrepreneur may want and need and also has many downright benefits compared to offline marketing strategies such as ads in newsletters, promotional videos on television broadcasting or flyers that make most people angry due to the fact that common sense obliges anyone to accept a gift from a smiling person only to throw it away in the next second just by looking at a wrong chosen title or introduction.<span id="more-502"></span></p>
<h3>Why does online marketing have so much success?</h3>
<p>Online marketing has so much success because people are offered the false feeling that they have many options, that each and every one of them has full control over what he sees or buys. In fact, that is the basic human need upon which online marketing is based: the basic human need of being in control.</p>
<h3>The benefits of online marketing</h3>
<p>In the next paragraphs you will be the witness of the real benefits that online marketing offers compared to the old fashioned offline marketing.</p>
<h3>Real time content changing</h3>
<p>Compared to the offline marketing solution, online marketing offers the possibility of changing the marketing content and variables in almost real time. If you would choose an offline marketing let’s say a newspaper advertising solution and the print that is already on the market is wrong in the sense of a wrong price for your services you can no longer change that and you have to spent a whole lot of money to correct that and people may not even take a second look at your second ad as the first created the most undesired impact. Online marketing makes monitoring marketing efforts easy by making available the change of chosen words and way of presentation at any given time just few clicks away.</p>
<h3>Real time impact tracking</h3>
<p>What makes online marketing the best selection is the fact that you can see right away how your advertising and efforts impact the selected market and so you can tweak the advertising content so that you get the wanted results in the least amount on time and budget. This is a real marker for the success or failure of your business. This means that you can rethink the first benefit listed previously and reconsider the strategy so that your business grows.</p>
<h3>Demographic targeting</h3>
<p>What demographic targeting offers as a general concept is the advertisement of certain products and services to certain people of a particular global location, age, gender, education and even income. Offline marketing offers a very limited set of demographic targeting options and usually the market you target is not reached in a satisfactory degree as you may want. Online marketing however, by using the two previous benefits listed above, allows you to successfully target the social groups that you want and really boost your business income by efficient marketing.</p>
<h3>Multiple methods of marketing</h3>
<p>This benefit is something that online marketing holds the record for. Offline marketing has been surpassed by the power and number of online marketing options since the new concept emerged. Regarding offline marketing methods, the most common ones include the keeping of many contracts with real physical media content distributors and television companies which is costly and painstaking. What online marketing offers represents multiple real time fully customizable demographic targeted content that is sure to make your business really emerge and successful.</p>
<h3>Variety to the masses and full access to all products in few clicks</h3>
<p>What offline marketing cannot offer is access to the full range of products and services of the company that decided to use that type of marketing solution. Online marketing allows with the use of several clicks full access to the entire range of products and services that your company offers so that the client may not be really interested in the service promoted on the ad but on another service or product that you have available. This benefit of online marketing is the best one of all the benefits listed here. It offers the power to convert a potential customer or site visitor into a sale and that means profit.</p>
<h3>Conclusion</h3>
<p>I hope I convinced you with this list of online marketing benefits and the main thing that you should understand from this is that online marketing not only can make your business and services known to the customer market but also can translate an investment into profit in the shortest time ever. Forget the costly offline marketing solution as the guy sitting on his sofa will most probably change the channel when your ad is broadcasted and go for online marketing so that when the guy on the sofa reads his mail he remembers thanks to your catchy advertisement that he needs a new pen, phone, furniture, back account, credit, car, house or estate. It’s up to you to offer services but it’s up to online marketing to sell it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/16/the-benefits-of-online-marketing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LESS CSS Preprocessor Can Help You Organize Your CSS Better</title>
		<link>http://mbe.ro/2011/09/14/less-css-preprocessor-can-help-you-organize-your-css-better/</link>
		<comments>http://mbe.ro/2011/09/14/less-css-preprocessor-can-help-you-organize-your-css-better/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 08:50:11 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css preprocessor]]></category>
		<category><![CDATA[css tips and tricks]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[less css]]></category>
		<category><![CDATA[organize]]></category>
		<category><![CDATA[organize css]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=443</guid>
		<description><![CDATA[A big problem we always have when we create a complex website is organizing the CSS properly. We add comments, we split it into files but the stylesheets still get pretty big if the project is very complex. Not only that but there are also a lot of browser specific CSS properties (such as -moz-border-radius) [...]]]></description>
			<content:encoded><![CDATA[<p>A big problem we always have when we create a complex website is organizing the CSS properly. We add comments, we split it into files but the stylesheets still get pretty big if the project is very complex. Not only that but there are also a lot of browser specific CSS properties (such as <em>-moz-border-radius</em>) which make changing something (like the <em>border-radius</em>) very difficult.</p>
<p>Well, there is something out there that can help us organize better and it is called <strong>LESS</strong>.<span id="more-443"></span></p>
<p>The LESS CSS preprocessor has been out for some time and is well known by only a few developers. It basically enlarges the limits imposed by CSS’s simplicity and allows the code to be compiled into &#8220;real CSS&#8221;. The coding style of LESS was thought to be a simplified but extensive variant of CSS so regular CSS code writers wouldn’t need too much time migrating to this tool.</p>
<h3>Why the need?</h3>
<p>As a regular CSS developer you might think why should anyone consider using this tool? Will it make my coding struggle easier? Will it really change CSS as I know it?</p>
<p>Actually yes; and … no. The LESS preprocessor makes you life easier by using simpler blocks but exactly the same syntax so that you will only give up writing unnecessary lines or curly braces for example.</p>
<p>In the following paragraphs, I guarantee that you will find it very useful. The article will explain the install process for LESS, using Nesting for simpler coding, how variables can be used for easier maintenance, how to reuse entire object classes so that you don’t repeat yourself but also operations and namespaces that will ease up your coder life.</p>
<h3>Installing the LESS</h3>
<p>While many of you are already acquainted with many installs, the LESS install is no different. I should begin by pointing out the structure of a CSS preprocessor; it has two components that are essential: the compiler and the language. Both are equally important and if one of them is broken your work is useless.</p>
<p>LESS language is almost identical in syntax to CSS with the addition of several features. What generates the browser ready code is called the compiler which literally compiles the code you write in a language that the browser understands and is able to process.</p>
<p>LESS is not tied to a single compiler compared to other CSS preprocessors but has a wide range of compilers that work with it: there is a PHP compiler, .NET, Javascript, Ruby Gem and even an OS X app. What I and many other web developers that use LESS recommend is the Javascript version as it’s the easiest version to comprehend.</p>
<p>Making the LESS Javascript Compiler available for use is simple and it’s done in two simple steps that anyone can do, even non-CSS programmers.</p>
<ol>
<li>Step one requires the insertion of the LESS script in your HTML coding. This means that LESS will be processed in real time during page loading.</li>
<li>Step two involves including the LESS file in the code that you write.</li>
</ol>
<p>The following example shows how to do that and even shows you how to include the script without even downloading it. You just use it from the official server. All you have to do is make sure that the style sheet link is placed before the script in order to guarantee the load and readiness for preprocessor use and the address to the .less file is correct in the href field.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span><span style="color: #990000;">link</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;stylesheet/less&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/path-to-stylesheet/main.less&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://lesscss.googlecode.com/files/less-1.1.3.min.js&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></pre></td></tr></table></div>
<p>That’s all you have to do in order to use the CSS LESS preprocessor. In the following paragraphs I will show you how this tool makes your life easier.</p>
<h3>The use of Nesting for a more transparent code</h3>
<p>Even though the CSS has been around for some years, by now the rules must be written separately which mean you have to repeat using the same long selector again and again. The example below shows exactly what we all don&#8217;t like:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.header</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #6666ff;">.navigation</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #6666ff;">.navigation</span> ul <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #6666ff;">.navigation</span> ul li <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #6666ff;">.navigation</span> ul li a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>How can LESS ease your burden? It allows nesting and that means you can create hierarchies and write less with more comprehension:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.header</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #6666ff;">.navigation</span> <span style="color: #00AA00;">&#123;</span>
    ul <span style="color: #00AA00;">&#123;</span>
      li <span style="color: #00AA00;">&#123;</span>
        a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
      <span style="color: #00AA00;">&#125;</span>
    <span style="color: #00AA00;">&#125;</span>
   <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>I haven&#8217;t written any CSS properties so that you would understand better how the nesting works. With this option you eliminate CSS&#8217;s need for repeating the same selector on many lines. By nesting the rule inside the { } of a selector you also show the hierarchy and C++ programmers will understand what I am saying. Needless to say, nesting is a very efficient and useful option that LESS offers.<br />
Another thing that the LESS offers in terms of nesting is the pseudo-classes nesting which allows you to embed things like <em>:hover</em>, <em>:active</em> or <em>:visited</em> just by using the &#8220;<em>&#038;</em>&#8220;.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">a <span style="color: #00AA00;">&#123;</span>
  &amp;<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
  &amp;<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
  &amp;<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>You decide if this makes your work easier or not.</p>
<h3>Easier maintenance by using Variables</h3>
<p>On a normal basis, an entire website uses a palette of colors that the Web designer chooses. If you want to use a certain color for a header or footer or any other object you have to write the instruction to assign the respective color throughout the entire code for each and every object.</p>
<p>What happens when you want to change the color of a specific object? You can do that very easily by searching and replacing the color as you wish.</p>
<p>But what happens when you want to change the color of more objects fast and easy? Do you use the same tool as earlier to search through tens of thousands of code lines and replace 50-100 object colors?</p>
<p>If you don’t use LESS you probably do but as you will see in the following code, LESS allows the use of variables wherever you want and you can only use their name in the { } of the respective object so all colors can be changed automatically when the value of the variable is changed.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@main-color: #195787;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@main-color; }</span>
<span style="color: #6666ff;">.footer</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@main-color; }</span>
h3 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@main-color; }</span></pre></td></tr></table></div>
<p>The LESS compiler checks the local define of the variables when it needs to replace the name of a variable with the value and if it cannot find it, it goes up the hierarchy until the respective variable is found and replaced.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@great-color: #195787;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #a1a100;">@great-color: #aacc22;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@great-color;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<h3>Entire Class recycling</h3>
<p>When it comes to variables, LESS makes using them easy but what do you do when entire classes need to be reused so that you don’t end up writing them many times?</p>
<p>You can create new classes for already defined properties and reuse them in other rule sets that you may find useful. The example below will show you how to create a new class for an already specified property and reuse it in another set of rules:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div.<span style="color: #993333;">block</span> <span style="color: #00AA00;">&#123;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
  border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.rounded-corners</span> <span style="color: #00AA00;">&#123;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
  borders-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div.<span style="color: #993333;">block</span> <span style="color: #00AA00;">&#123;</span>
  .rounded-corners<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>If you want even more control over a property, you can always use parameters to create a customized result. At first, you just have to initialize the parameter with the desired value.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.rounded-corners<span style="color: #00AA00;">&#40;</span><span style="color: #a1a100;">@radius: 5px) {</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@radius;</span>
  -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@radius;</span>
  border-radius<span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@radius;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>Here is the final result:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div.<span style="color: #993333;">block</span> <span style="color: #00AA00;">&#123;</span>
  .rounded-corners<span style="color: #00AA00;">&#40;</span><span style="color: #933;">3px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>Pretty cool.</p>
<h3>Does LESS allow any kind of operations?</h3>
<p>Yes, in fact LESS makes life way easier with their operations. Instead of defining numerous variables for all sorts of color grades that are similar and could be obtained from a single one by reducing brightness, you can perform operations on colors that are already defined in variables thus eliminating the need of using additional variables.</p>
<p>In conclusion, you can darken or light colors just by adding an operand followed by a value instead of tremendous variable defining.<br />
The following example shows exactly that:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@margin: 10px;</span>
<span style="color: #6666ff;">.header</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #a1a100;">@margin + 10px; }</span></pre></td></tr></table></div>
<p>The best thing about it is that you can alter an entire web site color palette by using a single variable defined color and operations throughout the code.</p>
<h3>Can I group variables and classes furthermore?</h3>
<p>LESS allows that too. You can do that by using nesting under an id recognized by LESS. In the example below, classes are grouped underneath a #defaults.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#defaults</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #a1a100;">@heading-color: #ff3300;</span>
  <span style="color: #6666ff;">.bordered</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>After grouping such variables and classes you can use</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">h1 <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#defaults</span><span style="color: #00AA00;">&#91;</span><span style="color: #a1a100;">@heading-color];</span>
  <span style="color: #cc00cc;">#defaults</span> <span style="color: #00AA00;">&gt;</span> .bordered<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>to identify and use them wherever you need.</p>
<p>A thing that LESS imports from C++ code is that you can create single line comments with “//” and also import other LESS customized files by using @import in exactly the same way as if you would do that in CSS.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@import 'fonts';</span>
<span style="color: #a1a100;">@import 'layout';</span></pre></td></tr></table></div>
<h3>Conclusion</h3>
<p>You can use SASS too as an alternative for LESS but SASS brings very different coding language as well as syntax compared to CSS. I think you will find what you want in time with the sole condition that you experiment all the time and let nothing escape the scrutiny.</p>
<p>Now, after reading this humble introduction to CSS preprocessing, I hope that you understood why LESS exists and why you can ease up your coding life just by using simple coding language no different from what you already know; just simpler and more logical.</p>
<p>You can use whatever compiler you may want as the list is long and the preferences vary from coder to coder. The tutorials for installing different compilers are available on the official sites of each one and I invite you to use whatever you want as long as you keep on coding and improving your skills in Web development.</p>
<p>But a question remains; why didn’t the CSS designers thought of it in the first place and additions such as LESS or SASS were needed after all these years?</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/14/less-css-preprocessor-can-help-you-organize-your-css-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmers&#8217; Day</title>
		<link>http://mbe.ro/2011/09/13/programmers-day/</link>
		<comments>http://mbe.ro/2011/09/13/programmers-day/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 09:48:08 +0000</pubDate>
		<dc:creator>Ciprian Mocanu</dc:creator>
				<category><![CDATA[The Team]]></category>
		<category><![CDATA[256th day]]></category>
		<category><![CDATA[developers day]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[programmers day]]></category>
		<guid isPermaLink="false">http://mbe.ro/?p=485</guid>
		<description><![CDATA[According to an article on Wikipedia today is Programmers Day. Programmers&#8217; Day is an international unofficial professional holiday that is also officially recognized in Russia, celebrated on the 256th (0x100th) day of each year Happy Programmers Day to us and to every programmer out there!]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://en.wikipedia.org/wiki/Programmers_Day" target="_blank">an article on Wikipedia</a> today is Programmers Day.</p>
<blockquote><p>Programmers&#8217; Day is an international unofficial professional holiday that is also officially recognized in Russia, celebrated on the 256th (0x100th) day of each year </p></blockquote>
<p><strong>Happy Programmers Day</strong> to us and to every programmer out there!</p>
]]></content:encoded>
			<wfw:commentRss>http://mbe.ro/2011/09/13/programmers-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

