<?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>Point 47</title>
	<atom:link href="http://point47.com/journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://point47.com/journal</link>
	<description>All the effort in the world won&#039;t matter if you&#039;re not inspired</description>
	<lastBuildDate>Sat, 20 Feb 2010 17:23:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Virtual URL &#8211; link shorten service</title>
		<link>http://point47.com/journal/2010/02/virtual-url-link-shorten-service/</link>
		<comments>http://point47.com/journal/2010/02/virtual-url-link-shorten-service/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 17:22:52 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Bulk]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=91</guid>
		<description><![CDATA[VUS.me is a new and very simple link shorten service made with simplicity and quick access in mind.
Looks very promising so give it a try.. or more  . 
http://vus.me
]]></description>
			<content:encoded><![CDATA[<p><a href="http://vus.me" target="_blank">VUS.me</a> is a new and very simple link shorten service made with simplicity and quick access in mind.<br />
Looks very promising so give it a try.. or more <img src='http://point47.com/journal/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . </p>
<p><a href=" http://vus.me" target="_blank">http://vus.me</a></p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=91&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2010/02/virtual-url-link-shorten-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Setup Wordpress MU with Domain Mapping</title>
		<link>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/</link>
		<comments>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 14:41:07 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=61</guid>
		<description><![CDATA[Here is explained how I made my Wordpress MU install to work with domain mapping. There are some tutorials out there but they are plain crap and very poorly explained. And the explanations for the domain mapping plugins are even worse. But I managed to make it work in around two days with a lot [...]]]></description>
			<content:encoded><![CDATA[<p>Here is explained how I made my Wordpress MU install to work with domain mapping. There are some tutorials out there but they are plain crap and very poorly explained. And the explanations for the domain mapping plugins are even worse. But I managed to make it work in around two days with a lot of testing and trial and error.<br />
These are the steps that I followed. Well.. not really.. but in the end these would have been the steps that I should have followed.</p>
<p><em><strong>NOTE! This tutorial is based on the fact that you know how to install and configure a simple Wordpress version because I will not offer detailed info about database creation and ftp uploading.</strong></em></p>
<h4>What we want to do here?</h4>
<p>- We want to have Wordpress MU so we can create multiple Wordpress blogs but with one main Administration area.<br />
- Create as many sub-domains as we want.<br />
- Map those sub-domains to other domains. (<em>subdomain.master-example.com</em> should be accessible from <em>addon-example.com</em> )</p>
<h4>I. Configure domains</h4>
<ul>
<li> First you need some domains, for this tutorial at least 2. One to be the master domain which we will call here <em>master-example.com</em> and the other domain that we will map to the blog created as a subdomain on master-example.com whitch we will call <em>addon-example.com</em>.</li>
<li>Next you need hosting witch offers <strong>WHM with CPanel</strong>. WHM not really needed I think. I added the domains and parked them from WHM but that can be done in CPanel also.</li>
<li>After you have the main domain configured on a hosting and you have acces to the CPanel you need to go to &#8220;<strong>Subdomains</strong>&#8221; and set the subdomains on a wildcard(<strong>*</strong>). So where it says &#8220;<strong>Create a Subdomain</strong>&#8221; enter <strong>*</strong> , check if your master domain is selected in the next drop down and in Document root is &#8220;<em>public_html/</em>&#8221; and click Create. </li>
<li>In the list of sub-domains now should be:<strong> &#8220;*  	.master-example.com  	Home/public_html  not redirected&#8221;</strong> . What this does it lets Wordpress MU create any kind of sub-domain without first adding it manually in the CPanel.</li>
<li> Now we need to add the <em>addon-example.com</em> domain. Go to: &#8220;<strong>Parked Domains</strong>&#8221; and enter <em>addon-example.com</em> in the box and press &#8220;<strong>Add Domain</strong>&#8220;. This should park <em>addon-example.com</em> on top of<em>master-example.com</em>. Until I used the Park domain option my domain mapping in Wordpress didn&#8217;t work.</li>
<li>Now go to <strong>&#8220;Simple DNS Zone Editor&#8221;</strong> and here you have to set an A record for <em>addon-example.com</em>. So select the addon domain <em>addon-example.com</em> and where it says <strong>Add an A Record </strong> in the <strong>&#8220;Name:&#8221;</strong> field write <strong>*.addon-example.com</strong>  and on the <strong>&#8220;Address&#8221; </strong>field put the <strong>master domain IP</strong> (you should find it in the left sidebar in CPanel.. for example: <strong>&#8220;Shared Ip Address: 127.0.0.20&#8243; </strong>.). Click <strong>&#8220;Add A Record&#8221;. </strong></li>
<li>Great. Now you are ready to install Wordpress MU!</li>
</ul>
<p><strong>Note!</strong><em> I made all of this in the WHM administration but I saw those modifications in CPanel also and I checked if they correspond and it seems that it can be done from CPanel too. For WHM just use &#8220;Park a Domain&#8221; and &#8220;Edit DNS Zone&#8221; buttons and make the above modifications.</em></p>
<h4>II. Install Wordpress MU.</h4>
<ul>
<li>Create a database and a user in CPanel .. or whatever.</li>
<li>Download the Wordpress MU sources from <a href="http://mu.wordpress.org/download/">here</a> </li>
<li>Copy the files to your main domain. I uploaded them to my domain root but they say it can be installed to a folder or a sub-domain too.</li>
<li>Now navigate to your domain (master-example.com) and you should see the installation page. There are some errors for sure and the usual error is that you need to make some folder writable by Wordpress. That means to give those folders 777 permission and you&#8217;ll have to reset those to 755 after successful install. </li>
<li>Just follow the steps and be careful to specify where it says Blog addresses <strong>to use sub-domains</strong> and at <strong>Server Address your domain without www or http://</strong></li>
<li>And, this is very important, after install go to Admin menu (upper right corner) in the Wordpress admin interface and <strong>change your password</strong> to something you can remember. And don&#8217;t forget to change the folder permissions back to 755</li>
<li>Now is the time to see if it works. Go to Site <strong>Admin -> Blogs</strong> and add a new blog. Let&#8217;s say <em>subdomain.master-example.com</em>. If the email address is different from the one you used at install a new user will be created when you add a new blog. And this happens every time you use a different email address.</li>
<li>OK. Now navigate to: <strong>subdomain.master-example.com</strong> (or whatever you created) and you should see your blog. Congrats! Now you have a working installation of Wordpress MU. If it doesn&#8217;t work repeat the above steps with more attention or if you just registered your domains wait a few hours for DNS registrations.</li>
</ul>
<h4>III. Install the Domain Mapping plugin and map a domain</h4>
<ul>
<li>First download the plugin <a href="http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/">WordPress MU Domain Mapping</a> (http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/). I used version 0.5. <strong>Many many thanks to those guys for creating this awesome plugin.</strong></li>
<li>Copy <strong>sunrise.php</strong> into wp-content/</li>
<li>Copy <strong>domain_mapping.php</strong> into wp-content/mu-plugins/</li>
<li>Edit <strong>wp-config.php</strong> and uncomment the SUNRISE definition line: <strong>define( &#8216;SUNRISE&#8217;, &#8216;on&#8217; );</strong></li>
<li>Now go to Plugins and activate the mapping plugin for the main domain.</li>
<li>After you done those login as the MU admin and go to <strong>Site Admin->Domain Mapping</strong> and set the server IP address. (you should know this from when you added the A record)
<li>Now this is the tricky part on what I wasted a lot of hours. Go to <strong>Site Admin -> Options</strong> and scroll down at the bottom. And after where it says <strong>&#8220;Site Wide Settings&#8221;</strong> click on the check box for the Plugins and click Update Options. This activates the plugins for the sub-domains. If you don&#8217;t do this you can&#8217;t map domains to the specific sub-domain because you will not see the plugin on your sub-domains admin area. (First I actually edited this directly in the database until I realized this.) </li>
<li>Now go to <strong>Site admin -> Blogs</strong> and when you hover over the added sub-domain some link will appear. Click on <strong>&#8220;Backend&#8221;</strong>. This will redirect you to that sub-domain Wordpress administration panel.</li>
<li>While in this panel go to <strong>Plugins</strong> and you should see the mapping plugin. Activate it.</li>
<li>And now go to <strong>Tools -> Domain mapping</strong>. And here is the part that we worked so hard to get to. Under <strong>&#8220;Add new domain&#8221;</strong> write the domain that you want to map to this sub-domain.</li>
<li>After you clicked <strong>&#8220;Add&#8221;</strong> go to the domain that you wanted to map (<em>addon-example.com</em>) and you will see the contents of <em>subdomain.master-example.com</em></li>
</ul>
<p>Kind of a long tutorial but hopefully I didn&#8217;t forgot anything in the process.<br />
Let me know in the comments if it helped you or if you still got problems with the install flow.</p>
<p>Cheers!</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=61&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/12/how-to-setup-wordpress-mu-with-domain-mapping/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CKEditor 3.0 Send and Receive data with AJAX</title>
		<link>http://point47.com/journal/2009/09/ckeditor-3-0-send-and-receive-data-with-ajax/</link>
		<comments>http://point47.com/journal/2009/09/ckeditor-3-0-send-and-receive-data-with-ajax/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 09:50:11 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=49</guid>
		<description><![CDATA[Attention: This is a quick tutorial and no in depth information will be provided. Use Google or whatever you want to learn more about PHP, Javascript and AJAX calls. Also on the CKEditor site you can find more info about the editor itself. 
The old FCKEditor is now called CKEditor 3.0 and it&#8217;s:
CKEditor is a [...]]]></description>
			<content:encoded><![CDATA[<p><em>Attention: This is a quick tutorial and no in depth information will be provided. Use Google or whatever you want to learn more about PHP, Javascript and AJAX calls. Also on the CKEditor site you can find more info about the editor itself. </em></p>
<p>The old FCKEditor is now called CKEditor 3.0 and it&#8217;s:</p>
<blockquote><p>CKEditor is a text editor to be used inside web pages. It&#8217;s a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word and OpenOffice.</p></blockquote>
<p>You can download it from here: <a href="http://ckeditor.com">http://ckeditor.com</a>.</p>
<p>OK.. so I wanted to edit some HTML template files from an Admin area module and the new CKEditor looks pretty nice so I gave it a try.<br />
First I install the CKEditor and this is pretty easy to do, just download the editor and copy the files to the server.</p>
<p>Create a link to the editor:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;script type=&quot;text/javascript&quot; src=&quot;/ckeditor/ckeditor.js&quot;&gt;&lt;/script&gt;</div></td></tr></tbody></table></div>
<p>and then creat a text field area:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;textarea name=&quot;template_body&quot; id=&quot;template_body&quot; &gt;page content here&lt;/textarea&gt;</div></td></tr></tbody></table></div>
<p>and add the javascript code to load the editor:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CKEDITOR.replace( 'template_body' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</div></td></tr></tbody></table></div>
<p>I added also a div to hold the received messages from the AJAX calls:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div id=&quot;saveButton&quot; style=&quot;font-weight:bold&quot;&gt;&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>Then I generated a tree/file view of all the template files(for sake of simplicity I will not show you how to do that).<br />
The links are generated like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;a href=&quot;&quot; onclick=&quot;getFile('test.html'); return false;&quot; id=&quot;file&quot; &gt;test.html&lt;/a&gt;</div></td></tr></tbody></table></div>
<p>The return false is so than I won&#8217;t need to use the stupid # on the href=&#8221;" so that the page won&#8217;t refresh.</p>
<p>And the two Javascript functions that make the Ajax calls are:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;script type=&quot;text/javascript&quot;&gt;<br />
function getFile(file)<br />
{ &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; var httpRequest = (!window.XMLHttpRequest)? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();<br />
&nbsp; &nbsp; httpRequest.onreadystatechange = function()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(httpRequest.readyState == 4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // send info to editor<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CKEDITOR.instances.template_body.setData(httpRequest.responseText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('saveButton').innerHTML = '&lt;a href=&quot;&quot; onclick=&quot;saveFile(\'' + file + '\'); return false;&quot; &gt;SAVE TEMPLATE&lt;/a&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; httpRequest.open(&quot;GET&quot;,&quot;/ajax/get_file.php?file=&quot;+file,true);<br />
&nbsp; &nbsp; httpRequest.send(null); &nbsp; &nbsp; &nbsp;<br />
}<br />
<br />
function saveFile(filename)<br />
{ &nbsp; &nbsp;<br />
&nbsp; &nbsp; // get info from editor<br />
&nbsp; &nbsp; var editordata = CKEDITOR.instances.template_body.getData();<br />
<br />
&nbsp; &nbsp; var httpRequest = (!window.XMLHttpRequest)? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();<br />
&nbsp; &nbsp; httpRequest.onreadystatechange = function()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(httpRequest.readyState == 4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(httpRequest.responseText == &quot;success&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('saveButton').innerHTML = '&lt;span style=&quot;color:red&quot;&gt;Template saved&lt;/span&gt;';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('saveButton').innerHTML = httpRequest.responseText;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; var passingData = &quot;file=&quot;+filename+&quot;&amp;template_body=&quot;+ escape(editordata)<br />
&nbsp; &nbsp; httpRequest.open(&quot;POST&quot;, &quot;/ajax/save_file.php?&quot;+passingData, true);<br />
&nbsp; &nbsp; httpRequest.setRequestHeader(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded&quot;); &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; httpRequest.send(passingData);<br />
}<br />
&lt;/script&gt;</div></td></tr></tbody></table></div>
<p>The first function <strong>getFile()</strong>, gets the name of the file to load and send the response text from the PHP script to the editor.<br />
The PHP script gets the name of the file and with file_get_contents function I retrieve that template&#8217;s contents.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo file_get_contents('/templates/'.$_GET['file']);</div></td></tr></tbody></table></div>
<p>The editor shows the received data with the command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CKEDITOR.instances.template_body.setData(httpRequest.responseText);</div></td></tr></tbody></table></div>
<p>&#8220;template_body&#8221; is the name of the text field that is replaced by the CKEditor.<br />
In this function I also add a new link to the page with innerHTML that makes the reference to the second function: <strong>saveFile()</strong>.</p>
<p>The second function <strong>saveFile()</strong> get the current name of the loaded template (test.html for example) and saves the data from the editor to<br />
a variable &#8220;editordata&#8221; with the call:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CKEDITOR.instances.template_body.getData();</div></td></tr></tbody></table></div>
<p>The editor data is sent to the PHP script, escaped and urlencoded with POST.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">// write content to file <br />
$filename = '/templates/'.$_POST['file'];<br />
$template_body = $_POST['template_body'];<br />
<br />
if (is_writable($filename)) // check file first<br />
{<br />
&nbsp; &nbsp; if (!$handle = fopen($filename, 'w')) &nbsp;// open file<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo 'fail open';<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if (fwrite($handle, $template_body) === FALSE) // write file<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo 'fail write';<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; fclose($handle); // and close the file<br />
&nbsp; &nbsp; echo 'success';<br />
} <br />
else <br />
{<br />
&nbsp; &nbsp; echo 'fail not writable';<br />
}</div></td></tr></tbody></table></div>
<p>The PHP code is straight forward: open file, write contents to file, close file.<br />
If success is returned then with innerHTML we write that the template was saved if not the specific fail message will be shown.<br />
(usually those errors appear if the file is missing or the file path is wrong or the file permissions are wrong.)</p>
<p>So here you have it an browser based template editor.<br />
Oh and if your template has</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;html&gt;, &lt;body&gt;</div></td></tr></tbody></table></div>
<p>tags they will be deleted by the editor. Don&#8217;t know how to override that shit functionality.</p>
<p>Over and out.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=49&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/09/ckeditor-3-0-send-and-receive-data-with-ajax/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to block spamm comments in Wordpress</title>
		<link>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/</link>
		<comments>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 10:06:42 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=43</guid>
		<description><![CDATA[1. Activate Akismet
2. Add this in the .htaccess file.
123456RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
Replace yourblog.com with your blog address.
It block all comments from direct access to wp-comments-post.php.
3. Add this to the .htaccess file also.
Block all spammer IP&#8217;s one by one:
1234567&#60;Limit GET POST&#62;
order allow,deny
deny from 78.133.218.68
deny from 219.159.67.187
deny [...]]]></description>
			<content:encoded><![CDATA[<p>1. Activate Akismet<br />
2. Add this in the .htaccess file.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RewriteEngine On<br />
RewriteCond %{REQUEST_METHOD} POST<br />
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*<br />
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^$<br />
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]</div></td></tr></tbody></table></div>
<p>Replace <strong>yourblog.com</strong> with your blog address.<br />
It block all comments from direct access to wp-comments-post.php.</p>
<p>3. Add this to the .htaccess file also.<br />
Block all spammer IP&#8217;s one by one:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Limit GET POST&gt;<br />
order allow,deny<br />
deny from 78.133.218.68<br />
deny from 219.159.67.187<br />
deny from 77.41.123.182<br />
allow from all<br />
&lt;/Limit&gt;</div></td></tr></tbody></table></div>
<p>Just add more IP to this list.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=43&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/04/how-to-block-spamm-comments-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti link/email spam script</title>
		<link>http://point47.com/journal/2009/03/anti-linkemail-spam-script/</link>
		<comments>http://point47.com/journal/2009/03/anti-linkemail-spam-script/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 10:24:44 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=38</guid>
		<description><![CDATA[123456&#60;script type='text/javascript'&#62;
&#160; &#160;function nerf_email(){
&#160; &#160; &#160; return 'offi'.replace(/i/, 'ice') + '@' + 'point'.replace(/t/, 't47.com');
&#160; &#160;}
&#160; &#160;document.write(nerf_email());
&#60;/script&#62;
The above script will show: office @ point47.com
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;script type='text/javascript'&gt;<br />
&nbsp; &nbsp;function nerf_email(){<br />
&nbsp; &nbsp; &nbsp; return 'offi'.replace(/i/, 'ice') + '@' + 'point'.replace(/t/, 't47.com');<br />
&nbsp; &nbsp;}<br />
&nbsp; &nbsp;document.write(nerf_email());<br />
&lt;/script&gt;</div></td></tr></tbody></table></div>
<p>The above script will show: office @ point47.com</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=38&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/03/anti-linkemail-spam-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cute Bubbles &#8211; Wordpress Theme &#8211; Updated</title>
		<link>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/</link>
		<comments>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 09:37:19 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=29</guid>
		<description><![CDATA[Version 1.0 is live and it has full IE6 support, improved header graphic and some more tweaks here and there.
You can see it live here.

This theme is inspired by the tutorial from Abduzeedo weblog.
Thanks for a great tutorial! awesome digital bokeh effect photoshop
You can download the theme from here Cute Bubbles Wordpress Theme.
]]></description>
			<content:encoded><![CDATA[<p>Version 1.0 is live and it has full IE6 support, improved header graphic and some more tweaks here and there.<br />
You can see it <a href="http://forapathy.net" target="_blank">live here.</a></p>
<p><img src="http://point47.com/journal/wp-content/uploads/2009/01/screenshot_400.png" border="0" alt="cute bubbes wordpress theme" /></p>
<p>This theme is inspired by the tutorial from Abduzeedo weblog.<br />
Thanks for a great tutorial! <a href="http://abduzeedo.com/awesome-digital-bokeh-effect-photoshop">awesome digital bokeh effect photoshop</a></p>
<p>You can download the theme from here <a href="http://wordpress.org/extend/themes/cute-bubbles">Cute Bubbles Wordpress Theme</a>.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=29&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2009/01/cute-bubbles-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Drepturi de upload mai mare cu .htaccess</title>
		<link>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/</link>
		<comments>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 13:01:29 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=20</guid>
		<description><![CDATA[In mod normal PHP-ul e setat sa poti uploada fisiere de maxim 8MB(sau chiar doar 2MB).
Poti schimba asta insa din php.ini:
12post_max_size = 40M
upload_max_filesize = 40M
.. dar asta inseamna sa dai drepturi la tot serverul sa poata incarca fisiere de pana in 40MB
Dar daca vrei sa dai drepturi doar fisierelor dintr-un anumit folder poti sa faci [...]]]></description>
			<content:encoded><![CDATA[<p>In mod normal PHP-ul e setat sa poti uploada fisiere de maxim 8MB(sau chiar doar 2MB).<br />
Poti schimba asta insa din php.ini:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">post_max_size = 40M<br />
upload_max_filesize = 40M</div></td></tr></tbody></table></div>
<p>.. dar asta inseamna sa dai drepturi la tot serverul sa poata incarca fisiere de pana in 40MB</p>
<p>Dar daca vrei sa dai drepturi doar fisierelor dintr-un anumit folder poti sa faci un fisier &#8220;.htaccess&#8221; si sa scrii urmatorul cod.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;\.(php)$&quot;&gt; <br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>Astfel toate fisierele din acel folder au dreptul de uploada fisiere de pana in 40mb.</p>
<p>Dar cred ca si codul asta e functional, daca vrei sa dai drepturi doar unui anumit fisier:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Files &quot;upload.php&quot;&gt; <br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>sau doar pentru 2 fisiere:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;^(upload|multi_upload)\.php$&quot;&gt;<br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>! Daca aveti hosting cumparat pe undeva tebuie sa verificati mai intai daca sunt drepturi ca .htaccess-ul sa suprascrie setarile default.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=20&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse la o animatie Flash cu ActionScript 3.0</title>
		<link>http://point47.com/journal/2008/11/reverse-la-o-animatie-flash-cu-actionscript-30/</link>
		<comments>http://point47.com/journal/2008/11/reverse-la-o-animatie-flash-cu-actionscript-30/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 15:10:07 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=17</guid>
		<description><![CDATA[Exemplu:

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '400',
			'height', '300',
			'src', 'img_in_out',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'img_in_out',
			'bgcolor', '#ffffff',
			'name', 'img_in_out',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/journal/wp-content/uploads/2008/11/img_in_out',
			'salign', ''
			); //end AC code
	}


	
	

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647/*
@ ActionScript 3
* Reverse la o animatie
------------------------------------
Scena contine un movie clip cu nume de instanta: &#160;img
Movie clipul e o animatie de 60 frame-uri in [...]]]></description>
			<content:encoded><![CDATA[<p>Exemplu:</p>
<p><script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '400',
			'height', '300',
			'src', 'img_in_out',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'img_in_out',
			'bgcolor', '#ffffff',
			'name', 'img_in_out',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/journal/wp-content/uploads/2008/11/img_in_out',
			'salign', ''
			); //end AC code
	}
</script><br />
<noscript><br />
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="300" id="img_in_out" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="/journal/wp-content/uploads/2008/11/img_in_out.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/journal/wp-content/uploads/2008/11/img_in_out.swf" quality="high" bgcolor="#ffffff" width="400" height="300" name="img_in_out" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br />
	</object><br />
</noscript></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/*<br />
@ ActionScript 3<br />
* Reverse la o animatie<br />
------------------------------------<br />
Scena contine un movie clip cu nume de instanta: &nbsp;img<br />
Movie clipul e o animatie de 60 frame-uri in care se mareste poza.<br />
-----------------------------------------------------<br />
*/<br />
<br />
// activeaza movie clip-ul ca buton<br />
img.buttonMode = true;<br />
// dezactiveaza eventualele <br />
img.mouseChildren = false;<br />
<br />
// adauga 2 eventListener pe imagine<br />
// pentru mouse over<br />
img.addEventListener(MouseEvent.ROLL_OVER,overThat,false,0,true);<br />
// pentru mouse out<br />
img.addEventListener(MouseEvent.ROLL_OUT,outThat,false,0,true);<br />
<br />
// cand cursorul este peste mc adauga un nou eventListener<br />
// si activeaza functia &quot;inainte&quot;<br />
function overThat(event:MouseEvent):void {<br />
&nbsp; &nbsp; event.target.removeEventListener(Event.ENTER_FRAME,inapoi);<br />
&nbsp; &nbsp; event.target.addEventListener(Event.ENTER_FRAME,inainte,false,0,true);<br />
}<br />
<br />
// cand cursorul iese de pe zona mc-ului scoate eventListener-ul existent<br />
// si activeaza functia &quot;inapoi&quot;<br />
function outThat(event:MouseEvent):void {<br />
&nbsp; &nbsp; event.target.removeEventListener(Event.ENTER_FRAME,inainte);<br />
&nbsp; &nbsp; if (!event.target.hasEventListener(Event.ENTER_FRAME)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; event.target.addEventListener(Event.ENTER_FRAME,inapoi,false,0,true);<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
// atat timp cat mouse-ul este peste mc-ul &quot;img&quot; este activata aceasta functie<br />
// si merge pana da peste &quot;stop&quot; in timeline-ul din movie clip<br />
function inainte(event:Event):void {<br />
&nbsp; &nbsp; event.target.nextFrame();<br />
&nbsp; &nbsp; <br />
}<br />
<br />
// e reversul functiei &quot;inainte&quot;<br />
function inapoi(event:Event):void {<br />
&nbsp; &nbsp; event.target.prevFrame();<br />
}</div></td></tr></tbody></table></div>
<p>Sursele complete aici: <a href="http://point47.com/journal/wp-content/uploads/2008/11/img_in_out.fla">img_in_out.fla</a> (Flash CS3). Enjoy!</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=17&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/reverse-la-o-animatie-flash-cu-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reseteaza stilurile CSS</title>
		<link>http://point47.com/journal/2008/11/reseteaza-stilurile-css/</link>
		<comments>http://point47.com/journal/2008/11/reseteaza-stilurile-css/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 12:52:36 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=14</guid>
		<description><![CDATA[Urmatorul cod CSS reseteaza sau seteaza toate tag-urile intr-o pagina HTML.
Browserele au valori diferite de padding sau margin si asta poate cauza probleme la afisarea elementelor in pagina.
12345678910111213141516html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, 
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, 
dfn, em, font, img, [...]]]></description>
			<content:encoded><![CDATA[<p>Urmatorul cod CSS reseteaza sau seteaza toate tag-urile intr-o pagina HTML.<br />
Browserele au valori diferite de padding sau margin si asta poate cauza probleme la afisarea elementelor in pagina.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, <br />
p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, <br />
dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, <br />
sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, <br />
table, caption, tbody, tfoot, thead, tr, th, td {<br />
&nbsp; &nbsp; margin: 0;<br />
&nbsp; &nbsp; padding: 0;<br />
&nbsp; &nbsp; border: 0;<br />
&nbsp; &nbsp; outline: 0;<br />
&nbsp; &nbsp; font-weight: inherit;<br />
&nbsp; &nbsp; font-style: inherit;<br />
&nbsp; &nbsp; font-size: 100%;<br />
&nbsp; &nbsp; font-family: inherit;<br />
&nbsp; &nbsp; vertical-align: baseline;<br />
&nbsp; &nbsp; background: transparent;<br />
}</div></td></tr></tbody></table></div>
<p>Trebuie pus exact la inceputul fisierului ce contine CSS-ul tau.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=14&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/reseteaza-stilurile-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Download PDF vs. Open PDF</title>
		<link>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/</link>
		<comments>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:00:49 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=11</guid>
		<description><![CDATA[Browserele se cam incapatineaza sa deschida pdf-urile in loc sa te lase sa le descarci pe calculator.
Cea mai usoara rezolvare e sa pui urmatorul cod in fisierul .htacces in directorul de baza. (pe langa index.html/php)
1234&#60;FilesMatch &#34;\.(?i:pdf)$&#34;&#62;
&#160; ForceType application/octet-stream
&#160; Header set Content-Disposition attachment
&#60;/FilesMatch&#62;
Acum cand cineva da click pe link-ul unui PDF de pe site-ul tau o [...]]]></description>
			<content:encoded><![CDATA[<p>Browserele se cam incapatineaza sa deschida pdf-urile in loc sa te lase sa le descarci pe calculator.<br />
Cea mai usoara rezolvare e sa pui urmatorul cod in fisierul .htacces in directorul de baza. (pe langa index.html/php)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;\.(?i:pdf)$&quot;&gt;<br />
&nbsp; ForceType application/octet-stream<br />
&nbsp; Header set Content-Disposition attachment<br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>Acum cand cineva da click pe link-ul unui PDF de pe site-ul tau o sa ii apara optiunea de Download si nu o sa il mai deschida direct in fereastra browserului.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=11&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
