<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Enrique Moreno Tent</title>
	
	<link>http://enriquemorenotent.com</link>
	<description />
	<lastBuildDate>Thu, 02 May 2013 09:39:05 +0000</lastBuildDate>
	<language>en-EN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/EnriqueMorenoTent" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="enriquemorenotent" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Basic Google Maps API v3 Tutorial</title>
		<link>http://enriquemorenotent.com/basic-google-maps-api-v3-tutorial/</link>
		<comments>http://enriquemorenotent.com/basic-google-maps-api-v3-tutorial/#comments</comments>
		<pubDate>Thu, 02 May 2013 09:39:05 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=559</guid>
		<description><![CDATA[To embed a Google Map in your website, usually just pasting the HTML provided in http://maps.google.com is usually enough. But if you want to do something more advanced, like for example use custom markers, you need to use the Google Maps API. Here we are going to show a very brief tutorial on how to [...]]]></description>
				<content:encoded><![CDATA[<p>To embed a Google Map in your website, usually just pasting the HTML provided in http://maps.google.com is usually enough. But if you want to do something more advanced, like for example use custom markers, you need to use the Google Maps API. Here we are going to show a very brief tutorial on how to add a map to a website:</p>
<p>First we will prepare the HTML where we will have the map:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;map-canvas&quot; style=&quot;width: 500px; height: 500px;&quot;&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>That&#8217;s all. Just an empty container, with the dimensions . Here I am using inline CSS only for the sake of briefness, but you could use a CSS stylesheet.</p>
<p>Then we will include the Google Maps API V3. Remember that with V3 you don&#8217;t need an API key.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;https://maps.googleapis.com/maps/api/js?v=3.exp&amp;amp;sensor=false&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>About the sensor paramenter in the URL, I will quote the Google documentation:</p>
<blockquote><p>Use of the Google Static Maps API requires that you indicate whether your application is using a &#8220;sensor&#8221; (such as a GPS locator) to determine the user&#8217;s location. This is especially important for mobile devices. Applications must pass a required sensor parameter indicating whether or not your application is using a sensor device.</p>
<p>Applications that determine the user&#8217;s location via a sensor must pass <code>sensor=true</code> within your Static Maps API request URL. If your application does not use a sensor, pass <code>sensor=false</code>.</p></blockquote>
<p>Now for the meat:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// if HTML DOM Element that contains the map is found...</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'map-canvas'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Coordinates to center the map</span>
    <span style="color: #000066; font-weight: bold;">var</span> myLatlng <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">52.525595</span><span style="color: #339933;">,</span><span style="color: #CC0000;">13.393085</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Other options for the map, pretty much selfexplanatory</span>
    <span style="color: #000066; font-weight: bold;">var</span> mapOptions <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
        zoom<span style="color: #339933;">:</span> <span style="color: #CC0000;">14</span><span style="color: #339933;">,</span>
        center<span style="color: #339933;">:</span> myLatlng<span style="color: #339933;">,</span>
        mapTypeId<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeId</span>.<span style="color: #660066;">ROADMAP</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Attach a map to the DOM Element, with the defined settings</span>
    <span style="color: #000066; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map-canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> mapOptions<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>And we are done. Here is a <a href="http://codepen.io/dbugger/pen/LouvE" target="_blank">demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/basic-google-maps-api-v3-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using supervisor to run your node programs better</title>
		<link>http://enriquemorenotent.com/using-supervisor-to-run-your-node-programs-better/</link>
		<comments>http://enriquemorenotent.com/using-supervisor-to-run-your-node-programs-better/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 21:29:00 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=546</guid>
		<description><![CDATA[Recently I run into a cool script for node.js called supervisor. This is the definition taken from its website: A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module [...]]]></description>
				<content:encoded><![CDATA[<p>Recently I run into a cool script for node.js called <a href="https://github.com/isaacs/node-supervisor" target="_blank">supervisor</a>. This is the definition taken from its website:</p>
<blockquote><p>A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.</p></blockquote>
<p>So basically instead of running your apps with &#8220;node main.js&#8221;, you run them with &#8220;supervisor main.js&#8221;, and if they crash, they will automatically restart again. Quite useful.</p>
<p>But where it really shines is in watching changes in the code to restart the program automatically. It had definitely speed up my workflow.</p>
<p>I definitely recommend it.</p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/using-supervisor-to-run-your-node-programs-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pimp Sublime Text 2</title>
		<link>http://enriquemorenotent.com/pimp-sublime-text-2/</link>
		<comments>http://enriquemorenotent.com/pimp-sublime-text-2/#comments</comments>
		<pubDate>Thu, 10 Jan 2013 10:19:35 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=458</guid>
		<description><![CDATA[Here are a few things that I like to do after a fresh installation of Sublime Text 2: Adjust preferences Press Ctrl + Shift + P and chose &#8220;Preferences: Settings -User&#8220;. This are my favourite tweaks 1. Get the current line highlighted &#34;highlight_line&#34;: true 2. Show the fold buttons always The folding buttons are faded [...]]]></description>
				<content:encoded><![CDATA[<p>Here are a few things that I like to do after a fresh installation of Sublime Text 2:</p>
<h2>Adjust preferences</h2>
<p>Press <em>Ctrl + Shift + P</em> and chose &#8220;<em>Preferences: Settings -User</em>&#8220;. This are my favourite tweaks</p>
<h3>1. Get the current line highlighted</h3>

<div class="wp_syntax"><table><tr><td class="code"><pre class="json" style="font-family:monospace;">&quot;highlight_line&quot;: true</pre></td></tr></table></div>

<h3>2. Show the fold buttons always</h3>
<p>The folding buttons are faded out by default and they are only visible when you hover over the gutter. With this setting they will always be visible</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="json" style="font-family:monospace;">&quot;fade_fold_buttons&quot;: false</pre></td></tr></table></div>

<h3>3. Bold folder labels</h3>
<p>With this setting we can differentiate easier in the sidebar between folders and files</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="json" style="font-family:monospace;">&quot;bold_folder_labels&quot;: true</pre></td></tr></table></div>

<h3>4. Increase line height</h3>
<p>Giving more space between lines makes it code easier to read</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="json" style="font-family:monospace;">&quot;line_padding_bottom&quot;: 1,
&quot;line_padding_top&quot;: 1</pre></td></tr></table></div>

<h3>5. Change the caret style</h3>
<p>The blinking caret is fine, but a fading caret can feel nicer <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="json" style="font-family:monospace;">&quot;caret_style&quot;: &quot;phase&quot;</pre></td></tr></table></div>

<p lang="json">Other options are “smooth”, “phase”, “blink”, “wide” and “solid”.</p>
<h2 lang="json">Install packages</h2>
<p lang="json">First of all read my instructions about how to <a title="Sublime Text 2 Tips – Adding new packages" href="http://enriquemorenotent.com/sublime-text-2-tips-adding-new-packages/" target="_blank">install the packet manager</a>.</p>
<h2 lang="json">Credit</h2>
<p lang="json"><a href="http://wesbos.com/sublime-text-5-visual-tweaks/">http://wesbos.com/sublime-text-5-visual-tweaks/<br />
</a><a href="http://wbond.net/sublime_packages/package_control/installation">http://wbond.net/sublime_packages/package_control/installation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/pimp-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using categories with TYPO3 and Direct Mail</title>
		<link>http://enriquemorenotent.com/using-categories-with-typo3-and-direct-mail/</link>
		<comments>http://enriquemorenotent.com/using-categories-with-typo3-and-direct-mail/#comments</comments>
		<pubDate>Tue, 08 Jan 2013 20:12:06 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=445</guid>
		<description><![CDATA[Working recently on a newsletter with TYPO3 and the extension Direct Mail, I learned about categories. With them you can separate the different kind of contents that you will show to the subscribers of your newsletter, by assigning categories to the different content elements inside the internal pages of the CMS. A basic example Let&#8217;s [...]]]></description>
				<content:encoded><![CDATA[<p>Working recently on a newsletter with TYPO3 and the extension Direct Mail, I learned about categories. With them you can separate the different kind of contents that you will show to the subscribers of your newsletter, by assigning categories to the different content elements inside the internal pages of the CMS.</p>
<h2>A basic example</h2>
<p>Let&#8217;s say you have a website about traveling, and you send monthly a newsletter with recommendations for beach and mountain. You want that when people subscribing can chose between one of these 2 categories (or both).  This is how it&#8217;s done:</p>
<p>So first we install <a href="http://typo3.org/extensions/repository/view/direct_mail" target="_blank">direct_mail</a> and <a href="http://typo3.org/extensions/repository/view/direct_mail_subscription" target="_blank">direct_mail_subscription</a> to your TYPO3 system and add the basic static templates. In this case we are going to add an extra one called &#8220;Direct Mail Content Boundaries&#8221;.</p>
<p>Make sure this setting is properly set up (Should be fine by default)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">config</span><span style="color: #339933; font-weight: bold;">.</span>insertDmailerBoundaries <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span></pre></td></tr></table></div>

<p>We will ad the following code to the TSConfig to ensure that we can assign categories to the content elements (even though it can be assign to other tables like tt_address, fe_users, sys_dmain&#8230; and not just to tt_content)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="typoscript" style="font-family:monospace;">TCEFORM<span style="color: #339933; font-weight: bold;">.</span>tt_content<span style="color: #339933; font-weight: bold;">.</span>module_sys_dmail_category<span style="color: #339933; font-weight: bold;">.</span>PAGE_TSCONFIG_IDLIST <span style="color: #339933; font-weight: bold;">=</span> pid_list</pre></td></tr></table></div>

<p>We will have to change &#8220;pid_list&#8221; by a list of ids where the categories have been stored.</p>
<p>Finally, if you want to be able to change the category of each content element in the backend, you also need to add this code to the TSConfig</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="typoscript" style="font-family:monospace;">TCEFORM<span style="color: #339933; font-weight: bold;">.</span>tt_content<span style="color: #339933; font-weight: bold;">.</span>module_sys_dmail_category<span style="color: #339933; font-weight: bold;">.</span>disabled <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">0</span></pre></td></tr></table></div>

<p>Now the system is all set up. All we need now is to let the users set up the categories they are interested in when they register. For that, we will add the marker ###CE_CATLIST### to the subscription template.</p>
<p>Presto! You are ready to go! Please comment if it didnt work out for you <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Footnote: This info was taken <a href="http://typo3.org/extension-manuals/direct_mail/2.2.0/view/4/7/" target="_blank">from here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/using-categories-with-typo3-and-direct-mail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The simplest introduction to node.js that could ever exist</title>
		<link>http://enriquemorenotent.com/the-simplest-introduction-to-node-js-that-could-ever-exist/</link>
		<comments>http://enriquemorenotent.com/the-simplest-introduction-to-node-js-that-could-ever-exist/#comments</comments>
		<pubDate>Thu, 25 Oct 2012 15:49:09 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=404</guid>
		<description><![CDATA[I&#8217;ve been having lot of trouble to begin with node.js. Maybe the documentation is not very helpful with beginners, or maybe I&#8217;m plain stupid. Anyway, I thought I&#8217;d write an article about it, trying to make it clear for everyone. Requisites: You must know JavaScript, duh! &#160; What is node.js? If you are anything like [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been having lot of trouble to begin with <em>node.js</em>. Maybe the documentation is not very helpful with beginners, or maybe I&#8217;m plain stupid. Anyway, I thought I&#8217;d write an article about it, trying to make it clear for everyone.</p>
<p>Requisites: You must know JavaScript, duh!</p>
<p>&nbsp;</p>
<p><strong>What is <em>node.js</em>?</strong></p>
<p>If you are anything like I was, you thought that you could only run JavaScript code in a webpage, or in the console terminal from the developer tools.</p>
<p>Thanks to <em>node.js</em> you can now run JavaScript code as a standalone program.</p>
<p>&nbsp;</p>
<p><strong>Install it</strong></p>
<p>We have different options here.</p>
<p><span style="text-decoration: underline;">Ubuntu</span></p>
<p>If you are like me running an Ubuntu system, simply type</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> nodejs</pre></td></tr></table></div>

<p>and you are done! Easy-peasy, Japanese!</p>
<p><span style="text-decoration: underline;">Manual installation</span></p>
<p>Another way is to download it manually. You just have to go to <em>node.js</em> official website and takin their <a href="http://nodejs.org/download/" target="_blank">downloads section</a> you can grab the package more fitting for your system</p>
<p>&nbsp;</p>
<p><strong>First program</strong></p>
<p>No better learn to swim than jumping in the pool. Let&#8217;s make our first <em>node.js</em> program. Of course, &#8220;Hello world!&#8221;.</p>
<p>Make a folder wherever you want. And create a new JavaScript file. Let&#8217;s name it main.js (but you can name it however you prefer)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Hello world!&quot;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>That was! Not so painful, right? <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now let&#8217;s run it. Go to the terminal, and type this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">node main.js</pre></td></tr></table></div>

<p>And the result is &#8220;Hello world&#8221;.</p>
<p>The code executes! We have JavaScript running out of the browser! Magic!</p>
<p>&nbsp;</p>
<p><strong>What is this good for?</strong></p>
<div class="wp-caption alignleft" style="width: 593px"><a href="https://www.youtube.com/watch?v=F2RPVB7dRg4" target="_blank"><img class=" " title="War! What is it good for? Absolutely nothing!" src="http://daneeliz.files.wordpress.com/2011/08/war-hoo-yeah.png" alt="War! What is it good for? Absolutely nothing!" width="583" height="401" /></a><p class="wp-caption-text">War! What is it good for? Absolutely nothing!</p></div>
<p>That will be explained in some future post. <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok, this was a really simple and dumb explanation. I just pretend to give you the very basics of what <em>node.js</em> is and how it works. I hope now that you have seen how it works, you feel more comfortable around the whole community.</p>
<p>Next post I will talk to you about how to install modules, which extend the functionality of node to the infinite and beyond!</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/the-simplest-introduction-to-node-js-that-could-ever-exist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to replace “live” with “on” in jQuery 1.7+</title>
		<link>http://enriquemorenotent.com/how-to-replace-live-with-on-in-jquery-1-7/</link>
		<comments>http://enriquemorenotent.com/how-to-replace-live-with-on-in-jquery-1-7/#comments</comments>
		<pubDate>Sat, 14 Jul 2012 14:16:49 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=346</guid>
		<description><![CDATA[The functions &#8220;bind&#8221; and &#8220;live&#8221; are being deprecated in jQuery 1.7+ in favor of &#8220;on&#8221;, but it&#8217;s not very clear how their differences reflect on it. As you might know, &#8220;bind&#8221; attaches event handlers on DOM elements existing at the time of running the instructions, while &#8220;live&#8221; also attaches these handlers to DOM elements added [...]]]></description>
				<content:encoded><![CDATA[<p>The functions &#8220;bind&#8221; and &#8220;live&#8221; are being deprecated in jQuery 1.7+ in favor of &#8220;on&#8221;, but it&#8217;s not very clear how their differences reflect on it. As you might know, &#8220;bind&#8221; attaches event handlers on DOM elements existing at the time of running the instructions, while &#8220;live&#8221; also attaches these handlers to DOM elements added in the future. So how does it work with &#8220;on&#8221;?</p>
<p>If you run this code&#8230;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.myClass&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&#8230;it will attach the handler only to DOM elements with the class &#8220;myClass&#8221;  that already exist in the DOM tree.</p>
<p>On the other hand, this code&#8230;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.myClass1&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;.myClass2&quot;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>&#8230;will attach the handler to all DOM elements with class &#8220;myClass2&#8243; that are descendants of DOM elements with class &#8220;myClass1&#8243; even if they are added in the future.</p>
<p>Now you know how it works <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Credit goes to the peeps in <a href="http://stackoverflow.com/questions/11483932/not-sure-how-to-use-jquery-live-from-version-1-7">StackOverflow </a>for teaching me <img src='http://enriquemorenotent.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/how-to-replace-live-with-on-in-jquery-1-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indespensable Typo3 extensions</title>
		<link>http://enriquemorenotent.com/indespensable-typo3-extensions/</link>
		<comments>http://enriquemorenotent.com/indespensable-typo3-extensions/#comments</comments>
		<pubDate>Mon, 25 Jun 2012 08:28:03 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=327</guid>
		<description><![CDATA[Here's a list of my favorite Typo3 extensions, which I use to build most of my websites]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a list of my favorite Typo3 extensions, which I use to build most of my websites:</p>
<ul>
<li><a href="http://typo3.org/extensions/repository/view/tt_news" target="_blank">tt_new</a>s: OK, this is a must-have. The uses it has are endless. From preparing blogs to have record collections of anything. Works like tt_contents really, but comes with predefined listing plugins that can take a lot of work off your hands</li>
<li><a href="http://typo3.org/extensions/repository/view/ics_newssorting" target="_blank">ics_newssorting</a>: This extension is a nice complement for tt_news. It allows you to order news records in a custom way, not just with the date</li>
<li><a href="http://typo3.org/extensions/repository/view/kickstarter" target="_blank">kickstarter</a>: If you develop your own extensions, this is what you are looking for</li>
<li><a href="http://typo3.org/extensions/repository/view/sassify" target="_blank">sassify</a>: CSS pre-processing is great and takes a load of work off you. Give it a try.</li>
<li><a href="http://typo3.org/extensions/repository/view/rlmp_tmplselector">rlmp_tmplselector</a>: This extension it will allow you to change easily between templates for each page in the back-end</li>
<li><a href="http://typo3.org/extensions/repository/view/multicolumn" target="_blank">multicolumn</a>: Adding child columns inside a main column is easy with this extension.</li>
<li><a href="http://typo3.org/extension-manuals/linkhandler/current/" target="_blank">linkhandler</a>: It allows you to link not only to pages, but also to specific news. Pretty cool.</li>
<li><a href="http://typo3.org/extensions/repository/view/phpmyadmin" target="_blank">phpmyadmin</a>: Basic for database manipulation.</li>
<li><a href="http://typo3.org/extensions/repository/view/powermail" target="_blank">powermail</a>: Great for building forms</li>
<li>indexed_search: Great tool for a search inside your webpage</li>
<li><a href="http://typo3.org/extension-manuals/accessible_is_browse_results/">accessible_is_browse_results</a>: This is a much better pager for the results from indexed_search</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/indespensable-typo3-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3: Give format to “bodytext” taken from the database</title>
		<link>http://enriquemorenotent.com/typo3-give-format-to-bodytext-taken-from-the-database/</link>
		<comments>http://enriquemorenotent.com/typo3-give-format-to-bodytext-taken-from-the-database/#comments</comments>
		<pubDate>Sun, 13 May 2012 11:59:54 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=314</guid>
		<description><![CDATA[Displayed text directly from the database with Typoscript can be shown sometimes without format. Here I explain how to solve this problem.]]></description>
				<content:encoded><![CDATA[<p>If you do this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">TEXT</span>
<span style="color: #cc0000;">10</span><span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> bodytext</pre></td></tr></table></div>

<p>You will get raw text with none of the format given in the Rich Text Editor. All markup and format will be gone.</p>
<p>If you want to get the formatted version of the bodytext, you need to do this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">TEXT</span>
<span style="color: #cc0000;">10</span><span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> bodytext
<span style="color: #cc0000;">10</span><span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">parseFunc</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>parseFunc_RTE</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/typo3-give-format-to-bodytext-taken-from-the-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filter access to a webpage by IP through .htaccess</title>
		<link>http://enriquemorenotent.com/filter-access-to-a-webpage-by-ip-through-htaccess/</link>
		<comments>http://enriquemorenotent.com/filter-access-to-a-webpage-by-ip-through-htaccess/#comments</comments>
		<pubDate>Thu, 10 May 2012 14:37:29 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=302</guid>
		<description><![CDATA[Let&#8217;s say you want to put your website down for maintenance. You want to redirect your visitors to a &#8220;We are Down at this moment&#8221; page while you are still capable of seeing the changes you make on the page. This can be achieved through some tweaking in the .htaccess file. Lets say that your [...]]]></description>
				<content:encoded><![CDATA[<p>Let&#8217;s say you want to put your website down for maintenance. You want to redirect your visitors to a &#8220;We are Down at this moment&#8221; page while you are still capable of seeing the changes you make on the page. This can be achieved through some tweaking in the .htaccess file.</p>
<p>Lets say that your IP address is <strong>11.22.33.44</strong>. In this case you just have to add this lines to end of the .htaccess:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">#Maintenance page</span>
<span style="color: #00007f;">Options</span> +<span style="color: #0000ff;">FollowSymlinks</span>
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} !/maintenance.html$
<span style="color: #00007f;">RewriteCond</span> %{REMOTE_HOST} !^<span style="color: #ff0000;">11</span>\.22\.33\.44
<span style="color: #00007f;">RewriteRule</span> $ /maintenance.html [R=<span style="color: #ff0000;">302</span>,L]</pre></td></tr></table></div>

<p>This will redirect everyone accessing the page from any other IP address to the page &#8220;maintenance.html&#8221;, which I usually write as a static HTML page where I excuse for the downtime, and explain that the site will be back up soon enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/filter-access-to-a-webpage-by-ip-through-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discovering deferred objects in jQuery</title>
		<link>http://enriquemorenotent.com/discovering-deferred-objects-in-jquery/</link>
		<comments>http://enriquemorenotent.com/discovering-deferred-objects-in-jquery/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 22:06:58 +0000</pubDate>
		<dc:creator>Enrique Moreno Tent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enriquemorenotent.com/?p=290</guid>
		<description><![CDATA[Using callbacks in animations is very easy, but what happens if you wish to use one callbacks after animating several elements? ]]></description>
				<content:encoded><![CDATA[<p>Using callbacks in animations is very easy, but what happens if you wish to use one callbacks after animating several elements? Something like this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.myclass&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//This callback may be executed several times!!!</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If you apply a callback directly here, you will execute it as many times as elements are being animated. The solution is something called deferred objects and its used like this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">when</span><span style="color: #009900;">&#40;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'myClass'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#41;</span>
.<span style="color: #660066;">done</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//This will be executed only ONCE, after all the animations are over</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://enriquemorenotent.com/discovering-deferred-objects-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
