<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.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>Sam3k</title>
	<link>http://www.sam3k.com/blog</link>
	<description>Samuel Roldan's blog</description>
	<pubDate>Thu, 28 May 2009 02:19:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>
	<language>en</language>
			<item>
		<title>Browse All Internet Explorer Versions at Once</title>
		<link>http://www.sam3k.com/blog/archives/2009/05/27/preview-all-internet-explorer-versions-from-a-single-program/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/05/27/preview-all-internet-explorer-versions-from-a-single-program/#comments</comments>
		<pubDate>Thu, 28 May 2009 02:16:53 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>web development</dc:subject>
	<dc:subject>css</dc:subject>
	<dc:subject>PHP</dc:subject>
	<dc:subject>JavaScript</dc:subject><dc:subject>css</dc:subject><dc:subject>javascript</dc:subject><dc:subject>PHP</dc:subject><dc:subject>web development</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/05/27/preview-all-internet-explorer-versions-from-a-single-program/</guid>
		<description><![CDATA[For the last coupe of months I&#8217;ve been using a program called IETester, which sole purpose is to allow you to preview/browse on all versions of Internet Explorer. For all these years working in front-end development, the single biggest frustration has been Internet Explorer and to add even more, it was not possible to have [...]]]></description>
			<content:encoded><![CDATA[<p>For the last coupe of months I&#8217;ve been using a program called <a href="http://www.my-debugbar.com/wiki/IETester/HomePage" target="_blank">IETester</a>, which sole purpose is to allow you to preview/browse on all versions of Internet Explorer. For all these years working in front-end development, the single biggest frustration has been Internet Explorer and to add even more, it was not possible to have more than one version of Internet Explorer in the same operating system. So this has meant that:</p>
<p>a) you own or check multiple computers and preview on all, and go back and forward</p>
<p>b) you find out about a bug through user feedback and go back and forward</p>
<p>c) you have multiple OS on your machine and go back and forth. </p>
<p>Most likely it&#8217;s d) all of the above. You can imagine. Now we have this program that saves web developers a lot of time in this lengthy process; and best of all, It&#8217;s FREE!</p>
<p><a href="http://www.sam3k.com/blog/wp-content/uploads/2009/05/ietester_v03.jpg"><img height="169" alt="ietester_v03" src="http://www.sam3k.com/blog/wp-content/uploads/2009/05/ietester_v03_thumb.jpg" width="500" /></a> </p>
<p>One of the key features that stands out is the tabbing interface, which allows you to have any version of IE on any combination you may need. The latest version added a even better interface with easily accessible buttons to open a new tab for the version you want.</p>
<p>The program is a little bit buggy but for the all the goodness and joy it provides, it is certainly tolerable. The biggest bug is that it freezes when you go back and forward with other programs. The exact problem seems to be when you minimize it and then try to maximize it by clicking in the taskbar. Eventually, it freezes. Not so bad! simply force close the program and restart if it freezes or avoid minimizing it and always minimize the other programs to get to it.</p>
<p>IETester is still in beta but it&#8217;s already a very powerful tool to have as a web developer. I strongly recommend it to everyone. It is in fact even more pleasant to browse on it than any version of IE from 5.5 to 7. =P</p>
<p>Visit <a href="http://www.my-debugbar.com/wiki/IETester/HomePage" target="_blank">My-Debuggar.com</a> to get the free download!</p>
<a href="http://www.sam3k.com/blog/index.php?tag=css" rel="tag">css</a>, <a href="http://www.sam3k.com/blog/index.php?tag=javascript" rel="tag">javascript</a>, <a href="http://www.sam3k.com/blog/index.php?tag=php" rel="tag">PHP</a>, <a href="http://www.sam3k.com/blog/index.php?tag=web-development" rel="tag">web development</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/05/27/preview-all-internet-explorer-versions-from-a-single-program/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Hover Accordion Menu</title>
		<link>http://www.sam3k.com/blog/archives/2009/05/17/hover-accordion-menu/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/05/17/hover-accordion-menu/#comments</comments>
		<pubDate>Mon, 18 May 2009 01:11:46 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>JavaScript</dc:subject><dc:subject>javascript</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/05/17/hover-accordion-menu/</guid>
		<description><![CDATA[I decided to do an early release of this hover accordion menu plugin I've built for one of my upcoming projects. It collapses and retracts on mouse over and mouse out instead of the typical mouse click.
View Demo

This jQuery plugin makes use of another plugin by Brian called Hover Intent which tries to determine what [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to do an early release of this hover accordion menu plugin I've built for one of my upcoming projects. It collapses and retracts on mouse over and mouse out instead of the typical mouse click.</p>
<p><a href="http://www.sam3k.com/demos/hoverAccordionMenu/index.html">View Demo</a></p>
<p><a href="http://www.sam3k.com/blog/wp-content/uploads/2009/05/HoverAccordionMenu.jpg"><img height="300" width="400" alt="HoverAccordionMenu" src="http://www.sam3k.com/blog/wp-content/uploads/2009/05/HoverAccordionMenu_thumb.jpg" /></a></p>
<p>This jQuery plugin makes use of another plugin by Brian called <a target="_blank" href="http://cherne.net/brian/resources/jquery.hoverIntent.html">Hover Intent</a> which tries to determine what the user's intentions are when they are rolling over/out of the menu too fast. It is a very helpful plugin for mouse hover behaviors.</p>
<p>How to use:</p>
<p>The menu is a simple html list.</p>
<div class="igBar"><span id="lhtml-3"><a href="#" onclick="javascript:showPlainTxt('html-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span><br />
<div id="html-3">
<div class="html"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"menu"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Link 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SubLink 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SubLink 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SubLink 3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Link 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><br />
<span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SubLink 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sam3k.com/blog/#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SubLink 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</div>
</div>
<p></p>
<p>Call the jquery function like this:</p>
<div class="igBar"><span id="ljavascript-4"><a href="#" onclick="javascript:showPlainTxt('javascript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span><br />
<div id="javascript-4">
<div class="javascript">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></p>
<p>$<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">hoverAccordionMenu</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</p>
<p><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p>Feel free to download and use on personal and commercial projects.</p>
<p><a href="http://www.sam3k.com/demos/hoverAccordionMenu/index.html">View Demo</a></p>
<p><a href="http://www.sam3k.com/demos/hoverAccordionMenu/jquery.hoverAccordionMenu-v1.0.zip">Download</a>
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=javascript" rel="tag">javascript</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/05/17/hover-accordion-menu/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>The New Beer Garden is Amazing!</title>
		<link>http://www.sam3k.com/blog/archives/2009/05/17/the-new-beer-garden-is-amazing/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/05/17/the-new-beer-garden-is-amazing/#comments</comments>
		<pubDate>Sun, 17 May 2009 18:57:36 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>life</dc:subject><dc:subject>life</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/05/17/the-new-beer-garden-is-amazing/</guid>
		<description><![CDATA[So a much needed second beer garden opened up this weekend in Astoria. It's called Studio Square. This place is beautiful!!! It's incredibly well designed and at the center of the Kaufman Astoria Studios. Not only is aesthetically beautiful but it makes good use of its surroundings. Like the fences on the main floor also [...]]]></description>
			<content:encoded><![CDATA[<p>So a much needed second beer garden opened up this weekend in Astoria. It's called Studio Square. This place is beautiful!!! It's incredibly well designed and at the center of the Kaufman Astoria Studios. Not only is aesthetically beautiful but it makes good use of its surroundings. Like the fences on the main floor also serving as a place to hang out and it provides plenty of stools for people to sit there in case the main tables are full. </p>
<p>The old beer garden Bohemian Hall is great and I have great times there but recently it has become so popular that you can't even find where to sit anymore. Last few times there with friends, we found ourselves sitting in that little stage they have. It's so popular! that it even made it to Grand Theft Auto IV.</p>
<p>So how do they compare? well, in my opinion, Bohemian Hall is just about the stripped down experience of European beer gardens while Studio Square garden adds to it a bit&#160; of class and elegance. Beer is cheaper at Bohemian Hall;&#160; like $14 in average while the new one is $18.</p>
<p>It will be interesting to see how the new beer garden evolves but by the look of the gatherings this weekend it will be a huge hit. And the best thing about the new beer garden? it's right by my house. =] The hood just keeps getting better and better. Oh, this is going to be a great summer. </p>
<a href="http://www.sam3k.com/blog/index.php?tag=life" rel="tag">life</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/05/17/the-new-beer-garden-is-amazing/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>A Better Music Site!</title>
		<link>http://www.sam3k.com/blog/archives/2009/03/01/a-better-music-site/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/03/01/a-better-music-site/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 21:23:08 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>music</dc:subject><dc:subject>music</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/03/01/a-better-music-site/</guid>
		<description><![CDATA[As promised, here is the music site my brother and I have been working for a while. Introducing PARCE MUSIK, a site dedicated to music news, music videos, interviews and more! 
 
Users can submit content such as story links, embedded video and personal blogs and vote on the stories they deem worthy or appearing [...]]]></description>
			<content:encoded><![CDATA[<p>As promised, here is the music site my brother and I have been working for a while. Introducing <a href="http://www.parcemusik.com">PARCE MUSIK</a>, a site dedicated to music news, music videos, interviews and more! </p>
<p><a href="http://www.sam3k.com/blog/wp-content/uploads/2009/05/screen_slides-parcemusik1.jpg"><img height="184" alt="screen_slides-parcemusik" src="http://www.sam3k.com/blog/wp-content/uploads/2009/05/screen_slides-parcemusik_thumb1.jpg" width="400" /></a> </p>
<p>Users can submit content such as story links, embedded video and personal blogs and vote on the stories they deem worthy or appearing on the frontpage. To help with keeping content relative for the user we have a filter system which allows for users to select the music genres they like. Once they choose their favorite genres, the content throughout the site filters out the unwanted content, effectively keeping content relevant and for longer periods of time, which mean less chances users will miss what matters to them.</p>
<p>This site was created and maintain by my brother and me in our spare time and we will introduce some great features real soon, such as custom artist profile pages and custom fan profile pages. In the mean time, we welcome everyone to check it out at <a href="http://www.parcemusik.com">www.parcemusik.com</a> and sign up and submit content. It is extremely easy to post content! If you hear about a music story elsewhere, simply go to Submit &gt; Submit Link. Enter a catchy title, give us a short description so we know what is it about, enter the link and hit submit. That's it. Now other users have the opportunity to check out the story in the <a href="http://musik.parce.tv/blog_stream">Blog Stream</a> and vote on it. Once the story reaches a certain amount of votes, it will be promoted to the <a href="http://www.parcemusik.com">frontpage.</a></p>
<p>There are a lot of great features we are currently working on which help artists and be enjoyable for everyone. We have a long road ahead of us, and we work on the site on our spare time but it's a lot of fun. We have an advertisement system in place so we can sell ads in the future and hopefully cover hosting and other expenses that are currently coming out of our pockets. =P</p>
<p>Ok, that's all for now. Check out the site <a href="http://www.parcemusik.com">www.parcemusik.com</a> try it out and spread the word. </p>
<a href="http://www.sam3k.com/blog/index.php?tag=music" rel="tag">music</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/03/01/a-better-music-site/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>What I&#8217;ve been up to you ask?</title>
		<link>http://www.sam3k.com/blog/archives/2009/02/17/what-ive-been-up-to-you-ask/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/02/17/what-ive-been-up-to-you-ask/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 19:06:46 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>music</dc:subject><dc:subject>music</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/03/01/what-ive-been-up-to-you-ask/</guid>
		<description><![CDATA[For the past year I have secluded to myself on most of my spare time to work on a project that wanted to do for years.&#160; Most of you know how much I love music; it's a passion and obsession that doesn't seem to fade away. About a year ago the idea of making a [...]]]></description>
			<content:encoded><![CDATA[<p>For the past year I have secluded to myself on most of my spare time to work on a project that wanted to do for years.&#160; Most of you know how much I love music; it's a passion and obsession that doesn't seem to fade away. About a year ago the idea of making a better metal news site started to swirl in my head and told the idea to my brother; another metal head and programmer. He liked the ideas, and had some great ideas of his own, and we began to work on making it happen.</p>
<p>The main concepts of the site revolved around fixing a major problem on music sites in general and adding a very important factor of today's web experience. </p>
<p>The problem? all music sites are flooded with content that for the most part, at any particular point, the user considers garbage. Why? because there are hundreds of genres and most likely a user only really cares about a handful. This is particularly true in metal music. There are dozens and dozens of genres but users only like a few and furthermore, they cannot tolerate some of the other bands. So our approach is to allow users to choose the genres they like and filter out the rest; increasing the chances the user will get more relevant content.</p>
<p>The second concept is that of allowing users to contribute content that they deem relevant by submitting link to news stories, blogs and embedded videos. This content can then be voted it on by other users and after certain amount of votes it can reach the frontpage where other popular stories reside. Voting system was made popular by sites like <a href="http://www.digg.com/" target="_blank">Digg.com</a> and soon after by <a href="http://www.reddit.com/" target="_blank">Reddit</a> and allow for a deeper level of interactivity from the user. In the case of music, it goes hand in hand with the devotion music fans often show for their favorite artists by talking about them, spreading the buzz.</p>
<p>Ok, enough for now. more info coming real soon.</p>
<a href="http://www.sam3k.com/blog/index.php?tag=music" rel="tag">music</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/02/17/what-ive-been-up-to-you-ask/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Fix Links&#8217; Target with this Tiny jQuery Plugin</title>
		<link>http://www.sam3k.com/blog/archives/2009/01/05/fix-links-target-with-this-tiny-jquery-plugin/</link>
		<comments>http://www.sam3k.com/blog/archives/2009/01/05/fix-links-target-with-this-tiny-jquery-plugin/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 01:06:40 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>random</dc:subject><dc:subject>Download</dc:subject><dc:subject>javascript</dc:subject><dc:subject>jQuery</dc:subject><dc:subject>random</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2009/05/19/fix-links-target-with-this-tiny-jquery-plugin/</guid>
		<description><![CDATA[
View Demo
Recently, I came across an little issue while developing one of my Drupal sites and that is: there really isn't a nice way to tell Drupal when a dynamic link should open in the same window if it is internal or a new window otherwise.
In our own posts we can do this manually, but [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sam3k.com/demos/fixLinksTarget/screen_fixLinkTargets.png" /></p>
<p><a target="_blank" href="http://www.sam3k.com/demos/fixLinksTarget/index.html">View Demo</a></p>
<p>Recently, I came across an little issue while developing one of my Drupal sites and that is: there really isn't a nice way to tell Drupal when a dynamic link should open in the same window if it is internal or a new window otherwise.</p>
<p>In our own posts we can do this manually, but there are many ways Drupal generates links which to correct would mean modifying the core system.</p>
<p>That's a big NO-NO! We do not touch the core system under any circumstances as this creates a lot of headaches in future updates. Almost to the same degree can be said about the free modules we are using which generate links. It just becomes hard to keep track of all these custom changes.</p>
<p>So to solve this problem, I wrote a little plugin that determines on its own if the link is internal or external and modifies accordingly so we don't have to worry.Using the script is as easy as loading the plugin and adding the following lines to your html page:</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showPlainTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span><br />
<div id="javascript-6">
<div class="javascript">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
$.<span style="color: #006600;">fn</span>.<span style="color: #006600;">fixLinkTargets</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p></p>
<p>That's all! I will add even more functionality in the future but for now it definitely helps a good deal.</p>
<p>Feel free to use in personal and commercial projects!</p>
<p><a target="_blank" href="http://www.sam3k.com/demos/fixLinksTarget/index.html">View Demo</a></p>
<p><a href="http://www.sam3k.com/demos/fixLinksTarget/jquery.fixlinksTarget-v1.0.zip">Download </a>
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=download" rel="tag">Download</a>, <a href="http://www.sam3k.com/blog/index.php?tag=javascript" rel="tag">javascript</a>, <a href="http://www.sam3k.com/blog/index.php?tag=jquery" rel="tag">jQuery</a>, <a href="http://www.sam3k.com/blog/index.php?tag=random" rel="tag">random</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2009/01/05/fix-links-target-with-this-tiny-jquery-plugin/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>A Simple Way to Write an XML File</title>
		<link>http://www.sam3k.com/blog/archives/2008/12/23/a-simple-way-to-write-an-xml-file/</link>
		<comments>http://www.sam3k.com/blog/archives/2008/12/23/a-simple-way-to-write-an-xml-file/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 22:39:05 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>PHP</dc:subject><dc:subject>PHP</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2008/12/23/a-simple-way-to-write-an-xml-file/</guid>
		<description><![CDATA[The following sample, shows how to create a very simple XML file using the DOMDocument Class.
I haven't found a decent solution yet that can do both, nested elements, and element attributes. Ideally, it would be great it we can construct the XML data directly from the array and skip the gatherXMLdata() method altogether.
The file should [...]]]></description>
			<content:encoded><![CDATA[<p>The following sample, shows how to create a very simple XML file using the DOMDocument Class.</p>
<p>I haven't found a decent solution yet that can do both, nested elements, and element attributes. Ideally, it would be great it we can construct the XML data directly from the array and skip the gatherXMLdata() method altogether.</p>
<p>The file should be saved in the server as "test.xml"</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span><br />
<div id="php-8">
<div class="php"><span style="color:#000000; font-weight:bold;">class</span> ScenesXMLbuilder <span style="color:#006600; font-weight:bold;">&#123;</span></p>
<p>private <span style="color:#0000FF;">$xmlAsString</span>;<br />
private <span style="color:#0000FF;">$dom</span>;<br />
private <span style="color:#0000FF;">$scenes</span>;<br />
private <span style="color:#0000FF;">$test</span>;<br />
private <span style="color:#0000FF;">$filename</span>;</p>
<p>public <span style="color:#000000; font-weight:bold;">function</span> __construct<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$_arr</span>, <span style="color:#0000FF;">$_filename</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">scenes</span> = <span style="color:#0000FF;">$_arr</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">dom</span> = <span style="color:#000000; font-weight:bold;">new</span> DOMDocument;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">filename</span> = <span style="color:#0000FF;">$_filename</span>;</p>
<p><span style="color:#FF9933; font-style:italic;">//functions</span><br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">gatherXMLdata</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span><br />
private <span style="color:#000000; font-weight:bold;">function</span> gatherXMLdata<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> = <span style="color:#FF0000;">''</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .= <span style="color:#FF0000;">''</span>;</p>
<p><span style="color:#616100;">for</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span> = <span style="color:#CC66CC;">0</span>; <span style="color:#0000FF;">$row</span> &lt;count<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">scenes</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#0000FF;">$row</span>++<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .= <span style="color:#FF0000;">''</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .=     <span style="color:#FF0000;">''</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">scenes</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">''</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .=     <span style="color:#FF0000;">''</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">scenes</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'age'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">''</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .=     <span style="color:#FF0000;">''</span>.<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">scenes</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'salary'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">''</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .= <span style="color:#FF0000;">''</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span> .= <span style="color:#FF0000;">''</span>;</p>
<p><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">convertToXML</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p>private <span style="color:#000000; font-weight:bold;">function</span> convertToXML<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">dom</span>-&gt;<span style="color:#006600;">formatOutput</span> = <span style="color:#000000; font-weight:bold;">true</span>;<br />
<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">dom</span>-&gt;<span style="color:#006600;">loadXML</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">xmlAsString</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">dom</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'Error while parsing the document'</span>;<br />
<a href="http://www.php.net/exit"><span style="color:#000066;">exit</span></a>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">writeXMLfile</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">dom</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p>private <span style="color:#000000; font-weight:bold;">function</span> writeXMLfile<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$_dom</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><br />
<span style="color:#0000FF;">$_dom</span>-&gt;<span style="color:#006600;">save</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">filename</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#006600; font-weight:bold;">&#125;</span></p>
<p><span style="color:#FF9933; font-style:italic;">//how to use:</span><br />
<span style="color:#0000FF;">$scenes</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><br />
<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a> <span style="color:#006600; font-weight:bold;">&#40;</span><br />
<span style="color:#FF0000;">'name'</span> =&gt; <span style="color:#FF0000;">'Sam'</span>,<br />
<span style="color:#FF0000;">'profession'</span> =&gt; <span style="color:#FF0000;">'developer'</span>,<br />
<span style="color:#FF0000;">'age'</span> =&gt; <span style="color:#FF0000;">'27'</span>,<br />
<span style="color:#FF0000;">'salary'</span> =&gt; <span style="color:#FF0000;">'$60.000'</span><br />
<span style="color:#006600; font-weight:bold;">&#41;</span>,<br />
<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a> <span style="color:#006600; font-weight:bold;">&#40;</span><br />
<span style="color:#FF0000;">'name'</span> =&gt; <span style="color:#FF0000;">'Andres'</span>,<br />
<span style="color:#FF0000;">'profession'</span> =&gt; <span style="color:#FF0000;">'designer'</span>,<br />
<span style="color:#FF0000;">'age'</span> =&gt; <span style="color:#FF0000;">'18'</span>,<br />
<span style="color:#FF0000;">'salary'</span> =&gt; <span style="color:#FF0000;">'$52.000'</span><br />
<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color:#0000FF;">$createXMLscenes</span> = <span style="color:#000000; font-weight:bold;">new</span> ScenesXMLbuilder<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$scenes</span>, <span style="color:#FF0000;">'test.xml'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</div>
</div>
<p>
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=php" rel="tag">PHP</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2008/12/23/a-simple-way-to-write-an-xml-file/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Retrieving Flashvars in a Class</title>
		<link>http://www.sam3k.com/blog/archives/2008/12/23/retrieving-flashvars-in-class/</link>
		<comments>http://www.sam3k.com/blog/archives/2008/12/23/retrieving-flashvars-in-class/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 22:19:18 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>ActionScript 3 [AS3]</dc:subject><dc:subject>ActionScript 3 [AS3]</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2008/12/23/retrieving-flashvars-in-class/</guid>
		<description><![CDATA[The way Flashvars are passed to Flash has changed in AS3 and now makes use of the LoaderInfo Class. In AS2, it was pretty straight forward; the parameters were available by default at _level0. Here is how to load in AS3:
PLAIN TEXT
Actionscript:

package &#123;
import flash.display.LoaderInfo;
public class LoadFlashVars &#123;
private var myFlashVars:LoaderInfo&#40;root.loaderInfo&#41;.parameters;
private var myParameter1 =  myFlashVars.parameter1;
&#125;
&#125;



If you pass [...]]]></description>
			<content:encoded><![CDATA[<p>The way Flashvars are passed to Flash has changed in AS3 and now makes use of the LoaderInfo Class. In AS2, it was pretty straight forward; the parameters were available by default at _level0. Here is how to load in AS3:</p>
<div class="igBar"><span id="lactionscript-10"><a href="#" onclick="javascript:showPlainTxt('actionscript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span><br />
<div id="actionscript-10">
<div class="actionscript">package <span style="color: #000000;">&#123;</span></p>
<p><span style="color: #0066CC; font-weight: bold;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">LoaderInfo</span>;</p>
<p><span style="color: #0066CC; font-weight: bold;">public</span> <span style="color: #0000ff; font-weight: bold;">class</span> LoadFlashVars <span style="color: #000000;">&#123;</span></p>
<p><span style="color: #0066CC; font-weight: bold;">private</span> <span style="color: #0000ff; font-weight: bold;">var</span> myFlashVars:LoaderInfo<span style="color: #000000;">&#40;</span>root.<span style="color: #006600;">loaderInfo</span><span style="color: #000000;">&#41;</span>.<span style="color: #006600;">parameters</span>;</p>
<p><span style="color: #0066CC; font-weight: bold;">private</span> <span style="color: #0000ff; font-weight: bold;">var</span> myParameter1 =  myFlashVars.<span style="color: #006600;">parameter1</span>;<br />
<span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></div>
</div>
</div>
<p></p>
<p>If you pass a parameter called parameter1, you can use "myParameter1" property above to store its value;
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=actionscript-3-%5Bas3%5D" rel="tag">ActionScript 3 [AS3]</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2008/12/23/retrieving-flashvars-in-class/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Adding Properties to a Sprite</title>
		<link>http://www.sam3k.com/blog/archives/2008/12/23/adding-properties-variables-and-functions-to-a-sprite/</link>
		<comments>http://www.sam3k.com/blog/archives/2008/12/23/adding-properties-variables-and-functions-to-a-sprite/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 21:52:43 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>ActionScript 3 [AS3]</dc:subject><dc:subject>ActionScript 3 [AS3]</dc:subject><dc:subject>random</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2008/12/23/adding-properties-variables-and-functions-to-a-sprite/</guid>
		<description><![CDATA[Sprites, unlike MovieClips, can't have custom properties do to being a sealed class. To get around this we can create a subclass that extends the Sprite class and have properties defined as public.
Here is a simple example: create a new class that extends the Sprite and create all the custom properties needed.
PLAIN TEXT
Actionscript:

package &#123;
import flash.display.Sprite;
public [...]]]></description>
			<content:encoded><![CDATA[<p>Sprites, unlike MovieClips, can't have custom properties do to being a sealed class. To get around this we can create a subclass that extends the Sprite class and have properties defined as public.</p>
<p>Here is a simple example: create a new class that extends the Sprite and create all the custom properties needed.</p>
<div class="igBar"><span id="lactionscript-13"><a href="#" onclick="javascript:showPlainTxt('actionscript-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span><br />
<div id="actionscript-13">
<div class="actionscript">package <span style="color: #000000;">&#123;</span></p>
<p><span style="color: #0066CC; font-weight: bold;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</p>
<p><span style="color: #0066CC; font-weight: bold;">public</span> <span style="color: #0000ff; font-weight: bold;">class</span> SpriteExtender <span style="color: #0066CC; font-weight: bold;">extends</span> Sprite <span style="color: #000000;">&#123;</span></p>
<p><span style="color: #0066CC; font-weight: bold;">public</span> <span style="color: #0000ff; font-weight: bold;">var</span> someProperty:<span style="color: #0066CC; font-weight: bold;">String</span>;</p>
<p><span style="color: #000000;">&#125;</span></p>
<p><span style="color: #000000;">&#125;</span></div>
</div>
</div>
<p></p>
<p>Use the new class, as a replacement for the Sprite class, which inherits all the Sprite functionality plus the custom properties. Here is how to use:</p>
<div class="igBar"><span id="lactionscript-14"><a href="#" onclick="javascript:showPlainTxt('actionscript-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span><br />
<div id="actionscript-14">
<div class="actionscript"><span style="color: #0000ff; font-weight: bold;">var</span> mySprite:SpriteExtender = <span style="color: #0000ff; font-weight: bold;">new</span> SpriteExtender<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</p>
<p>mySprite.<span style="color: #006600;">someProperty</span> = <span style="color: #009900;">"Hello World"</span>;</div>
</div>
</div>
<p>
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=actionscript-3-%5Bas3%5D" rel="tag">ActionScript 3 [AS3]</a>, <a href="http://www.sam3k.com/blog/index.php?tag=random" rel="tag">random</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2008/12/23/adding-properties-variables-and-functions-to-a-sprite/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Free Concrete Textures</title>
		<link>http://www.sam3k.com/blog/archives/2008/05/16/free-concrete-textures/</link>
		<comments>http://www.sam3k.com/blog/archives/2008/05/16/free-concrete-textures/#comments</comments>
		<pubDate>Fri, 16 May 2008 16:37:28 +0000</pubDate>
		<dc:creator>sam3k</dc:creator>
		
	<dc:subject>random</dc:subject><dc:subject>random</dc:subject>
		<guid isPermaLink="false">http://www.sam3k.com/blog/archives/2008/05/16/free-concrete-textures/</guid>
		<description><![CDATA[
View/Download
These are some textures I photographed and/or photoshoped for one of my video games. They are not super great but for 3D gaming it worked great! Try it out!
Free for personal and commercial use!

random]]></description>
			<content:encoded><![CDATA[<p><img id="image88" alt="Free Concrete Textures!" src="http://www.sam3k.com/blog/wp-content/uploads/2009/05/screen_concrete.png" /></p>
<p><a href="http://www.flickr.com/photos/sam3k/sets/72157605084572571/">View/Download</a></p>
<p>These are some textures I photographed and/or photoshoped for one of my video games. They are not super great but for 3D gaming it worked great! Try it out!</p>
<p>Free for personal and commercial use!
</p>
<a href="http://www.sam3k.com/blog/index.php?tag=random" rel="tag">random</a>]]></content:encoded>
			<wfw:commentRSS>http://www.sam3k.com/blog/archives/2008/05/16/free-concrete-textures/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>

