<?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>Marius Gundersen &#187; Javascript</title>
	<atom:link href="http://www.mariusgundersen.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mariusgundersen.net</link>
	<description>MariusGundersen.net</description>
	<lastBuildDate>Fri, 06 Aug 2010 00:34:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Regex Renamer</title>
		<link>http://www.mariusgundersen.net/2009/08/17/regex-renamer/</link>
		<comments>http://www.mariusgundersen.net/2009/08/17/regex-renamer/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 03:06:06 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Regex Renamer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XUL]]></category>
		<category><![CDATA[xulrunner]]></category>

		<guid isPermaLink="false">http://www.mariusgundersen.net/?p=47</guid>
		<description><![CDATA[This week I set out to make a simple batch application for renaming files. Specifically I wanted to rename folders containing episodes of a TV-show. These files tend to have very ugly names, containing the name of the show, the season and episode, the guy who uploaded it and the file type. I want my [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.mariusgundersen.net/wp-content/uploads/2009/08/regexrenamer.png"><img class="aligncenter size-medium wp-image-51" title="RegexRenamer" src="http://www.mariusgundersen.net/wp-content/uploads/2009/08/regexrenamer-300x223.png" alt="RegexRenamer" width="300" height="223" /></a></p>
<p>This week I set out to make a simple batch application for renaming files. Specifically I wanted to rename folders containing episodes of a TV-show. These files tend to have very ugly names, containing the name of the show, the season and episode, the guy who uploaded it and the file type. I want my collection to contain prettier names, and so I decided to make a batch renamer that could make the folder look more appealing.</p>
<p>I decided to make the application using XUL Runner. XUL Runner is made by Mozilla, and is essentially what Firefox and Thunderbird runs in. It lets you create an GUI using XUL, JavaScript and CSS and then run it as an application. Having made a few extensions to Firefox in my time, XUL was a familiar concept and it didn&#8217;t take long until I had a simple working version.</p>
<p>Regex Renamer lets you pick a pattern from a drop down list. It will then look for files that match the regular expression, and renames only those files. This means that if you have a folder where all the files have similar names, then you can rename all of them with a single click. The application also lets you create custom patterns, import and export the list of patterns from/to a file.</p>
<p>It&#8217;s not the most user friendly application in the world, and it could do with some work on editing the pattern list, and maybe have a cheatsheet on regex built inn. But for a simple application that took less than a week to code up, it works pretty well.</p>
<p>You can download the application for windows below. It should run on any system that XUL Runner runs on, which would include Windows, Linux and OS X, but you need to download XUL Runner for the last two platforms.</p>
<p><a href="http://www.mariusgundersen.net/wp-content/uploads/2009/08/RegexRenamer.rar">RegexRenamer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mariusgundersen.net/2009/08/17/regex-renamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EcmaCalc 0.4</title>
		<link>http://www.mariusgundersen.net/2009/03/25/ecmacalc-04/</link>
		<comments>http://www.mariusgundersen.net/2009/03/25/ecmacalc-04/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 13:00:25 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[EcmaCalc]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[calculator]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.mariusgundersen.net/?p=28</guid>
		<description><![CDATA[I have made some updates to EcmaCalc, and it&#8217;s reached version 0.4. The new features includes: Abortion of long-running scripts Syntax highlighting (still a bit buggy) Help There are a few bugs left to sort out, but this version is a lot better than 0.1, so I decided to release it. If you notice any [...]]]></description>
			<content:encoded><![CDATA[<p>I have made some updates to EcmaCalc, and it&#8217;s reached version 0.4. The new features includes:</p>
<ul>
<li>Abortion of long-running scripts</li>
<li>Syntax highlighting (still a bit buggy)</li>
<li>Help</li>
</ul>
<p>There are a few bugs left to sort out, but this version is a lot better than 0.1, so I decided to release it. If you notice any bugs or have any new ideas, post them in the comments.</p>
<p><a href="http://www.mariusgundersen.net/wp-content/uploads/2009/03/ecmacalc-04.rar">EcmaCalc 0.4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mariusgundersen.net/2009/03/25/ecmacalc-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EcmaCalc 0.1, A better calculator for Windows</title>
		<link>http://www.mariusgundersen.net/2008/08/04/ecmacalc-01-a-better-calculator-for-windows/</link>
		<comments>http://www.mariusgundersen.net/2008/08/04/ecmacalc-01-a-better-calculator-for-windows/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 07:33:04 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[EcmaCalc]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[calculator]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.mariusgundersen.net/?p=11</guid>
		<description><![CDATA[I&#8217;ve used the built in windows calculator for years now, but it&#8217;s missing some important features. So I made EcmaCalc, which is a pretty stupid, short, name for EcmaScript Calculator. It implements QtScript, which is based on EcmaScript, which is based on JavaScript. That is, you can write JavaScript code in it. This means you [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_12" class="wp-caption aligncenter" style="width: 271px"><a href="http://www.mariusgundersen.net/wp-content/uploads/2008/08/ecmacalcscreen1.png"><img class="size-medium wp-image-12" title="ecmacalcscreen1" src="http://www.mariusgundersen.net/wp-content/uploads/2008/08/ecmacalcscreen1-261x300.png" alt="EcmaCalc 0.1" width="261" height="300" /></a><p class="wp-caption-text">EcmaCalc 0.1</p></div>
<p>I&#8217;ve used the built in windows calculator for years now, but it&#8217;s missing some important features. So I made <span class="highlight">EcmaCalc</span>, which is a pretty stupid, short, name for EcmaScript Calculator. It implements QtScript, which is based on EcmaScript, which is based on JavaScript. That is, you can write JavaScript code in it. This means you can write expressions, functions, loops and create objects and arrays to make your calculations.</p>
<p>For example, you can enter <span style="font-family: Fixedsys;">7*9</span> and hit the Execute button (or <em>F7</em>) and you will get the answer (in green, on the right). Or you could write something more complicated, like <span style="font-family: Fixedsys;"> (7+1)*(3-5)/(8+2)</span>. You can store the results in variables, just like in JavaScript, like <span style="font-family: Fixedsys;">var a = 7+8;var b = 3+2; var c = a * b;</span>.</p>
<p>There&#8217;s a lot more you can do, like functions, objects, arrays and loops. There are a few built in things, like the ans variable and the answer and result arrays, which will return the last few results of your expressions. There is also a print function which you can use to print stuff in the middle of loops.</p>
<p>I haven&#8217;t written the help yet, because this is an early version. If you find any bugs or have any comments, then please share them.</p>
<p><a href="http://www.mariusgundersen.net/wp-content/uploads/2008/08/ecmacalc.rar">EcmaCalc 0.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mariusgundersen.net/2008/08/04/ecmacalc-01-a-better-calculator-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
