<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.3" -->
<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/"
	>

<channel>
	<title>fromvega.com</title>
	<link>http://fromvega.com/wordpress</link>
	<description>Throwing code to the wind</description>
	<pubDate>Tue, 16 Sep 2008 14:41:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>
	<language>en</language>
			<item>
		<title>Slow activity</title>
		<link>http://fromvega.com/wordpress/2008/09/16/slow-activity/</link>
		<comments>http://fromvega.com/wordpress/2008/09/16/slow-activity/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 14:41:57 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2008/09/16/slow-activity/</guid>
		<description><![CDATA[Hello friends, I&#8217;m here just to apologize for the current slow activity of my blog and unfinished projects. I have been kept busy by the company. Altough, I&#8217;m going to answer all your comments as soon as I&#8217;m free to provide decent answers.

It&#8217;s not the first time that I kept from posting here (and old [...]]]></description>
			<content:encoded><![CDATA[Hello friends, I&#8217;m here just to apologize for the current slow activity of my blog and unfinished projects. I have been kept busy by the company. Altough, I&#8217;m going to answer all your comments as soon as I&#8217;m free to provide decent answers.

It&#8217;s not the first time that I kept from posting here (and old blogs). I&#8217;m realizing that maybe a blog is not the ideal thing for me, it&#8217;s a buzz when I start it, then I let it cool down, always. I like to maintain a website so I&#8217;m thinking in something else then a blog to keep me excited.

See you!]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2008/09/16/slow-activity/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EasyDrag Update</title>
		<link>http://fromvega.com/wordpress/2007/10/31/easydrag-update/</link>
		<comments>http://fromvega.com/wordpress/2007/10/31/easydrag-update/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 14:30:24 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/10/31/easydrag-update/</guid>
		<description><![CDATA[Hello folks, it&#8217;s just a remark that the EasyDrag plugin for jQuery was finally updated. You can check and download the last version by going to the specific post: http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/
Thank you for all suggestions and contributions! If I forgot something please let me know!]]></description>
			<content:encoded><![CDATA[<p>Hello folks, <br /><br />it&#8217;s just a remark that the EasyDrag plugin for jQuery was finally updated. You can check and download the last version by going to the specific post: <a href="http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/">http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/</a></p>
<p>Thank you for all suggestions and contributions! If I forgot something please let me know!</p>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/10/31/easydrag-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EasyDrag jQuery Plugin</title>
		<link>http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/</link>
		<comments>http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 20:37:33 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/</guid>
		<description><![CDATA[
16/07/08 UPDATE: A new beta version is now available with some bug corrections. Thanks to Randy for the useful feedback! 

29/06/08 UPDATE: Handler feature added! Finally I decided to add a little piece of extra functionality to the EasyDrag plugin. It has been constantly requested, so now you can download and test it. I will [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<p><strong>16/07/08 UPDATE:</strong> A new beta version is now available with some bug corrections. Thanks to Randy for the useful feedback! </p>

<p><strong>29/06/08 UPDATE:</strong> Handler feature added! Finally I decided to add a little piece of extra functionality to the EasyDrag plugin. It has been constantly requested, so now you can download and test it. I will be releasing it as a final version after some feedback, so please let me know if it works for you. </p>

<h3>How does it work?</h3>
<p>
It&#8217;s very simple, first you call the easydrag() method as in the old version and then you call the setHandler() method passing to it the id of the element that will act as the handle. The handle MUST be a child element of the content that will be dragged.</p>


<div class="wp_syntax"><div class="code"><pre class="javascript">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#box2&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">easydrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#box2&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">setHandler</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'handler3'</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>




<h3>Files</h3>
<p>
<strong><a href="http://fromvega.com/code/easydrag/jquery.easydrag.handler.beta2.js">jquery.easydrag.handler.beta2.js</a></strong>
</p>

</blockquote>

<p>It has been a while since my last post, mainly because I&#8217;m currently a little busy with some projects. In one of these projects I had to add a drag-and-drop behavior to some DOM elements, and for that I have created the EasyDrag jQuery plug-in that I&#8217;ll share with you now.</p>

<p>Its main purpose is to add the ability to drag and drop almost any DOM element without much effort. So it&#8217;s simple to use and you can also attach handlers both to the drag and to the drop events, which permits you to extend the basic functionality to whatever you need.<p>

 <a href="http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/#more-17" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Easy XML with Java - XML Binding</title>
		<link>http://fromvega.com/wordpress/2007/05/17/easy-xml-with-java-xml-binding/</link>
		<comments>http://fromvega.com/wordpress/2007/05/17/easy-xml-with-java-xml-binding/#comments</comments>
		<pubDate>Thu, 17 May 2007 21:22:54 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[XML]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/17/easy-xml-with-java-xml-binding/</guid>
		<description><![CDATA[Recently in a Java project that I&#8217;m currently working on it was necessary to read remote XML data. Since my Java skills aren&#8217;t too strong and that I&#8217;ve never used Java and XML together I hit the road to search for help. I quickly found some articles and tutorials about dealing with XML within Java. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently in a Java project that I&#8217;m currently working on it was necessary to read remote XML data. Since my Java skills aren&#8217;t too strong and that I&#8217;ve never used Java and XML together I hit the road to search for help. I quickly found some articles and tutorials about dealing with XML within Java. I was trying to understand some concepts from one of the articles when I glimpsed the article year and to my surprise: 1996. Wow! I wasn&#8217;t looking for an history class so I moved on.</p>

<p>I have found other older articles in the way and even have tried on some code until I was pointed to the right direction by some buddies. That&#8217;s a big point of confusion to beginners and inexperienced Java developers in my opinion. There is a ton of information about Java out there and we must take care not to get caught by some old and deprecated functionality. But since I got it right let&#8217;s stop complaining and go strait to the point!</p>

 <a href="http://fromvega.com/wordpress/2007/05/17/easy-xml-with-java-xml-binding/#more-16" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/17/easy-xml-with-java-xml-binding/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML Generator DIR</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/</link>
		<comments>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comments</comments>
		<pubDate>Sun, 13 May 2007 20:45:07 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/</guid>
		<description><![CDATA[XML Generator DIR is an XML generator that will make a lot easier for you to create XML configuration files. It is focused in the creation of configuration files for image galleries, music players and for any other stuff where you need to list all files in a directory in a simple way.

This script uses [...]]]></description>
			<content:encoded><![CDATA[<p>XML Generator DIR is an XML generator that will make a lot easier for you to create XML configuration files. It is focused in the creation of configuration files for image galleries, music players and for any other stuff where you need to list all files in a directory in a simple way.</p>

<p>This script uses a model file to give you freedom defining your XML file. You can create practically any structure you want and let the script populate it for you.</p>

<blockquote>If you need to read records from a database instead of directories in a filesystem you should check the <a href="http://fromvega.com/wordpress/2007/05/13/xml-generator-db/">XML Generator DB</a> instead.</blockquote>

 <a href="http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#more-14" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML Generator DB</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-db/</link>
		<comments>http://fromvega.com/wordpress/2007/05/13/xml-generator-db/#comments</comments>
		<pubDate>Sun, 13 May 2007 20:44:19 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/13/xml-generator-db/</guid>
		<description><![CDATA[Here is a new flavor of the XML Generator, called XML Generator DB. This version builds XML files based on records from a database table instead of files in a directory.

I was thinking about embedding this functionality into the original script (now called XML Generator DIR to follow the name pattern) but it would add [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a new flavor of the XML Generator, called XML Generator DB. This version builds XML files based on records from a database table instead of files in a directory.</p>

<p>I was thinking about embedding this functionality into the original script (now called XML Generator DIR to follow the name pattern) but it would add a lot more complexity in its configuration. The usage is pretty similar to the original, the model is the same but with different placeholders.</p>

<blockquote>If you need to list files from directories in a filesystem instead of a database you should check the <a href="http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/">XML Generator DIR</a> instead.</blockquote>

 <a href="http://fromvega.com/wordpress/2007/05/13/xml-generator-db/#more-13" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/13/xml-generator-db/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML Generator 2.0 - PHP &#038; DOM</title>
		<link>http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/</link>
		<comments>http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/#comments</comments>
		<pubDate>Fri, 11 May 2007 15:50:46 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/</guid>
		<description><![CDATA[Update: I have updated and fixed some minor functionalities of this script and also changed its name to XML Generator DIR to differentiate from the new flavor XML Generator DB. Although the usage still the same you should check the new post instead.

So here it is! The 2nd version of the XML generator that will [...]]]></description>
			<content:encoded><![CDATA[<blockquote>Update: I have updated and fixed some minor functionalities of this script and also changed its name to XML Generator DIR to differentiate from the new flavor XML Generator DB. Although the usage still the same you should check <a href="http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/">the new post</a> instead.</blockquote>

<p>So here it is! The 2nd version of the XML generator that will make a lot easier to create XML configuration files. As the previous version this one is focused in the creation of configuration files for image galleries, music players and related stuff where you need to list all files in a directory. The difference is that in this version you can create almost any XML structure in a simpler way.</p>

<p>While writing the 1st-version post I had this idea to use a model file instead of tweaking PHP variables and arrays. Different from before now you have freedom to define your XML file. You can have how many nested tags you want and also you can have attributes.</p>

<p>Writing this script was fun. I used PHP and the DOM library for the job. I won&#8217;t be explaining the code in details here because it already has a lot of comments but I may write a post explaining the DOM in more details based on readers feedback.</p>
 <a href="http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/#more-11" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML Config File Generator with PHP</title>
		<link>http://fromvega.com/wordpress/2007/05/09/xml-config-file-generator-with-php/</link>
		<comments>http://fromvega.com/wordpress/2007/05/09/xml-config-file-generator-with-php/#comments</comments>
		<pubDate>Thu, 10 May 2007 00:38:45 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/09/xml-config-file-generator-with-php/</guid>
		<description><![CDATA[Although this version may be an interesting study, you should check the new version instead. XML Generator 2.0 is easier and more powerful than the version presented in this post. Check it by clicking here.

This morning a friend of mine came to me asking for a script to automatically generate an XML config file. He [...]]]></description>
			<content:encoded><![CDATA[<blockquote>Although this version may be an interesting study, you should check the new version instead. XML Generator 2.0 is easier and more powerful than the version presented in this post. <a href="http://fromvega.com/wordpress/2007/05/11/xml-generator-20-php-dom/">Check it by clicking here</a>.</blockquote>

<p>This morning a friend of mine came to me asking for a script to automatically generate an XML config file. He needed a script to read directories of images and build an XML file for each one to use along his Flash gallery. It would save him a lot of time so I decided to write one specially for him. Then I realized that creating this type of XML file is a common task that many of us need to do at least once in a lifetime. Who never needed to create an XML for an image gallery or for a music player?</p>

<p>With this assumption in mind I decided to write a little more generic script. However, it&#8217;s still limited to the purpose of reading directories of one level only and for tags without attributes. In this post I&#8217;ll explain how you can use the XML generator script. I&#8217;ll not explain the code in details because I believe the source code is pretty well documented but if you have any doubt about it, please feel free to leave a message. I&#8217;ll be glad to help.</p>

 <a href="http://fromvega.com/wordpress/2007/05/09/xml-config-file-generator-with-php/#more-10" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/09/xml-config-file-generator-with-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SimpleXML debug with var_dump() and print_r()</title>
		<link>http://fromvega.com/wordpress/2007/05/08/simplexml-debug-with-var_dump-and-print_r/</link>
		<comments>http://fromvega.com/wordpress/2007/05/08/simplexml-debug-with-var_dump-and-print_r/#comments</comments>
		<pubDate>Tue, 08 May 2007 18:39:05 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/08/simplexml-debug-with-var_dump-and-print_r/</guid>
		<description><![CDATA[Recently I was using the SimpleXML extension from PHP5 to build a menu based on information contained in an XML file. I was using XPath queries to retrieve specific nodes from the XML tree and the var_dump() and print_r() functions to debug the results.

I thought my XPath queries were all wrong because the output data [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was using the SimpleXML extension from PHP5 to build a menu based on information contained in an XML file. I was using XPath queries to retrieve specific nodes from the XML tree and the var_dump() and print_r() functions to debug the results.</p>

<p>I thought my XPath queries were all wrong because the output data wasn&#8217;t the expected, all tree was returned instead. I tried many variations without success until I realized that something was wrong with the output. I let the debug functions aside and finished the code. And guess what? The code worked fine!</p>

<p>To confirm it I went to the manual to seek for any related information. No official note but I found an user comment about var_export not working as well!</p>

<p>So that&#8217;s it. Don&#8217;t use var_dump() nor print_r() to debug the content of SimpleXMLElement objects. Instead use print() or echo() on individual elements.</p>

<blockquote>Update: I have also noticed a similar behavior with the DOM library.</blockquote>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/08/simplexml-debug-with-var_dump-and-print_r/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Auto-Complete Field with jQuery - Code Explained</title>
		<link>http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/</link>
		<comments>http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/#comments</comments>
		<pubDate>Tue, 08 May 2007 03:57:15 +0000</pubDate>
		<dc:creator>fromvega</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/</guid>
		<description><![CDATA[Hello! As I promised, I&#8217;ll be explaining all the JavaScript code of the auto-complete field in this post. If you haven&#8217;t read the previous post where I talk about the auto-complete field take a moment to read it first before continuing.Now take some cookies because the post is quite long. Be comfortable and let&#8217;s start!
]]></description>
			<content:encoded><![CDATA[<p>Hello! As I promised, I&#8217;ll be explaining all the JavaScript code of the auto-complete field in this post. If you haven&#8217;t read the previous post where I talk about the auto-complete field take a moment to <a href="http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/">read it first</a> before continuing.</p><p>Now take some cookies because the post is quite long. Be comfortable and let&#8217;s start!</p>
 <a href="http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/#more-8" class="more-link">(more&#8230;)</a>]]></content:encoded>
			<wfw:commentRss>http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
