<?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>elblogg &#187; english</title>
	<atom:link href="http://blog.elzapp.com/tag/english/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.elzapp.com</link>
	<description>blogge v1 (norr bloðga, av *blod) skjære, stikke fisk slik at blodet renner ut, jf *bløgge</description>
	<lastBuildDate>Fri, 09 Jul 2010 13:38:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ubuntus new window buttons</title>
		<link>http://blog.elzapp.com/2010/04/08/ubuntus-new-window-buttons.html</link>
		<comments>http://blog.elzapp.com/2010/04/08/ubuntus-new-window-buttons.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 06:17:59 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1795</guid>
		<description><![CDATA[Okay, so Ubuntu has moved the close, minimize and maximise buttons to the left. I know there&#8217;s been a huge controversy around this since one of the early alphas. Well, I don&#8217;t care so much about that. You get used to it after a while, the only problem I see is that there&#8217;s a lot [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so Ubuntu has moved the close, minimize and maximise buttons to the left. I know there&#8217;s been a huge controversy around this since one of the early alphas. Well, I don&#8217;t care so much about that. You get used to it after a while, the only problem I see is that there&#8217;s a lot going on around the close button, like the file menu, and if the window is maximized, the gnome-menu, so you might easily close a window accidentally.</p>
<p>That&#8217;s not the biggest problem with the design though, that is that the active area for the close button is bigger than the button itself. Look at the image below:<br />
<a href="http://blog.elzapp.com/wp-content/uploads/screenshot4.png"><img src="http://blog.elzapp.com/wp-content/uploads/screenshot4.png" alt="" title="screenshot4" width="128" height="111" class="aligncenter size-full wp-image-1796" /></a><br />
You might think that there&#8217;s a bit of titlebar to the left of the close-button, right? So you could think that you could click-and-drag here to move the window, right?<br />
Well, if you try to do that, the window will close! The close button goes all the way to the edge of the window, even though it doesn&#8217;t look like it does.</p>
<p>I hope this will be fixed prior to release of the final version of Ubuntu 10.04</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2010/04/08/ubuntus-new-window-buttons.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Printer setup</title>
		<link>http://blog.elzapp.com/2009/07/21/printer-setup.html</link>
		<comments>http://blog.elzapp.com/2009/07/21/printer-setup.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:03:19 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1327</guid>
		<description><![CDATA[We got a new Xerox network printer at work a few months back. I haven&#8217;t had that much use for it, so I never bothered setting it up on my computer. People around me, using Macs and Windows, were complaining that it was hard getting it to work, and some never managed to get it [...]]]></description>
			<content:encoded><![CDATA[<p>We got a new Xerox network printer at work a few months back. I haven&#8217;t had that much use for it, so I never bothered setting it up on my computer. People around me, using Macs and Windows, were complaining that it was hard getting it to work, and some never managed to get it to work.</p>
<p>Knowing that Macs use the same printing system as Ubuntu, I assumed that this would be complicated as well, so I had postponed it for some time. This week I finally got to setting it up, and it was really simple.</p>
<p>I didn&#8217;t have to enter any information at all, it was just a matter of clicking four buttons.</p>
<p>Start the printers control panel from the System menu. This reveals the following window:</p>
<p><a href="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Skriverkonfigurasjon-localhost.png"><img class="alignnone size-full wp-image-1330" style="border:1px solid black" title="Skjermdump-Skriverkonfigurasjon - localhost" src="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Skriverkonfigurasjon-localhost.png" alt="Skjermdump-Skriverkonfigurasjon - localhost" width="450" height="202" /></a></p>
<ol>
<li>Click the &#8220;new&#8221; button (&#8220;Ny&#8221; in Norwegian).  This revealed the following window:<br />
<a href="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Ny-skriver.png"><img class="alignnone size-medium wp-image-1328" style="border:1px solid black" title="Skjermdump-Ny skriver" src="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Ny-skriver-500x380.png" alt="Skjermdump-Ny skriver" width="500" height="380" /></a></li>
<li>You don&#8217;t have to enter anything, just click &#8220;Forward&#8221; (&#8220;Framover&#8221; in Norwegian). The configuration wizard then asks you to verify some settings, like the name of the printer:<br />
<a href="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Ny-skriver-1.png"><img class="alignnone size-medium wp-image-1329" style="border:1px solid black" title="Skjermdump-Ny skriver-1" src="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Ny-skriver-1-500x382.png" alt="Skjermdump-Ny skriver-1" width="500" height="382" /></a></li>
<li>Still, no need to change anything. Just click &#8220;Use&#8221; (&#8220;Bruk&#8221; in norwegian)<br />
<a href="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Vindu-uten-tittel.png"><img class="alignnone size-full wp-image-1331" style="border:1px solid black" title="Skjermdump-Vindu uten tittel" src="http://blog.elzapp.com/wp-content/uploads/Skjermdump-Vindu-uten-tittel.png" alt="Skjermdump-Vindu uten tittel" width="270" height="132" /></a></li>
<li>Now click &#8220;Yes&#8221; if you want to see the glorius and colorful ubuntu test page coming from your printer.</li>
</ol>
<p>That&#8217;s it. Who said Linux where complicated?</p>
<p>I later used the information revealed by the Ubuntu (and Fedora) printer configuration tool to help out my collegues figure out how to set up the printer on a Mac, and in Windows Vista.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/07/21/printer-setup.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ubuntu-user at Narvesen</title>
		<link>http://blog.elzapp.com/2009/07/01/ubuntu-user-at-narvesen.html</link>
		<comments>http://blog.elzapp.com/2009/07/01/ubuntu-user-at-narvesen.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 06:10:31 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[narvesen]]></category>
		<category><![CDATA[trondheim]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1323</guid>
		<description><![CDATA[When I&#8217;m travelling, I often visit the kiosks at the airport, to see what they have of intresting magazines, specially Linux and Digital Photography magazines. I was visiting Trondheim last weekend, and on the way back, while I were waiting for my plane back to Bergen, I was looking on the shelves at Narvesen at [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntu-user.com/Issues/1"><img class="alignright" title="Ubuntu User Issue 1" src="http://www.ubuntu-user.com/var/ezwebin_site/storage/images/issues/1/955-3-eng-GB/1_medium.jpe" alt="" width="200" height="267" /></a>When I&#8217;m travelling, I often visit the kiosks at the airport, to see what they have of intresting magazines, specially Linux and Digital Photography magazines. I was visiting Trondheim last weekend, and on the way back, while I were waiting for my plane back to Bergen, I was looking on the shelves at Narvesen at Trondheim airport, Værnes. There were actually a quite good choice of Linux magazines, and one specially catched my eye. I had heard about the new Ubuntu User magazine at the <a href="http://podcast.ubuntu-uk.org/">Ubuntu UK podcast</a>, which by the way is a pretty good podcast. But I didn&#8217;t expect to find it in a news-stand in Norway, I thought I had to order it from the UK.</p>
<p>So I bought it.</p>
<p>The magazine was priced to around £7, which would translate to about 74 norwegian kroner, or €8.20. But at when I got to the counter, I had to pay 210 NOK for it, which is about £19 or €23. In comparison, one years subscription to the magazine is €29.90 if you live in Europe outside the UK, which would include Norway. €29.90 is 269NOK or £25.5</p>
<p><strong>This is a total rip-off</strong>. I understand that Narvesen needs a margin for magazines with a narrow group of readers, but this pricing is insane.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/07/01/ubuntu-user-at-narvesen.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Great news in the software world</title>
		<link>http://blog.elzapp.com/2009/06/30/python3-1-firefox3-5-php5-3.html</link>
		<comments>http://blog.elzapp.com/2009/06/30/python3-1-firefox3-5-php5-3.html#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:45:36 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[closures]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[namespaces]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1315</guid>
		<description><![CDATA[During the last week there has been a couple of great releases in the software I use every day. First out was Python 3.1. It was released June 27th and features An ordered dictionary type Various optimizations to the int type New unittest features including test skipping and new assert methods. A much faster io [...]]]></description>
			<content:encoded><![CDATA[<p>During the last week there has been a couple of great releases in the software I use every day.</p>
<p><img class="alignright" title="Python logo" src="http://www.python.org/images/python-logo.gif" alt="" width="211" height="71" /><br />
First out was <a href="http://www.python.org/download/releases/3.1/"><strong>Python 3.1</strong></a>. It was released June 27th and features</p>
<ul>
<li>An ordered dictionary type</li>
<li>Various optimizations to the int type</li>
<li>New unittest features including test skipping and new assert methods.</li>
<li>A much faster io module</li>
<li>Tile support for Tkinter</li>
<li>A pure Python reference implementation of the import statement</li>
<li>New syntax for nested with statements</li>
</ul>
<p><img class="alignright" title="Mozilla Firefox logo" src="http://www.mozilla.com/img/tignish/home/feature-logo.png" alt="" width="400" height="105" /><br />
Next out was <a href="http://mozilla.com"><strong>Mozilla Firefox 3.5</strong></a>, which was released earlier today (June 30th), most noteworty items from that release is the <a href="http://hacks.mozilla.org/2009/06/web-typography/"><strong>@font-face</strong></a> css-attribute, that allows web-designers to bundle custom fonts with their website designs, and use custom fonts in their design.  I have used that feature to change the header of my blog, you would se a grudge font if you use the new Firefox or Safari. They have also released a new javascript-engine, which they claim to be a lot faster than the old one. Also, support for the <strong>&lt;video&gt;</strong>-tag has been added.</p>
<p><img class="alignright" title="PHP logo" src="http://no2.php.net/images/php.gif" alt="" width="120" height="67" /><br />
Then last, but not least, the long awaited <a href="http://www.php.net/archive/2009.php#id2009-06-30-1"><strong>PHP 5.3.0</strong></a> has been released, which provides <strong>namespaces</strong> and <strong>closures</strong> for PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/06/30/python3-1-firefox3-5-php5-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sugar</title>
		<link>http://blog.elzapp.com/2009/05/05/sugar.html</link>
		<comments>http://blog.elzapp.com/2009/05/05/sugar.html#comments</comments>
		<pubDate>Tue, 05 May 2009 13:17:27 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[debian edu]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[skolelinux]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1278</guid>
		<description><![CDATA[Ok. It has been a while since my last post, and quite a few things have happened since then, some of which I will get back to in some later posts. One of the things that have happened is that I attended the &#8220;Skolelinux developer summit&#8221; or Debian Edu developer summit here in Bergen, with [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. It has been a while since my last post, and quite a few things have happened since then, some of which I will get back to in some later posts.</p>
<p>One of the things that have happened is that I attended the &#8220;<a href="http://www.friprogramvareiskolen.no/Gathering/2009-03-Bergen">Skolelinux developer summit</a>&#8221; or Debian Edu developer summit here in Bergen, with the goal to do some real contribution to free software. I didn&#8217;t end up contributing any code at that event.</p>
<p>Cecilie had asked Knut Yrvin to do a talk about community based projects, which inspired some of the other attendees, <a href="http://en.wikipedia.org/wiki/Walter_Bender">Walter Bender</a>, to talk about his organization, <a href="http://www.sugarlabs.org/">Sugarlabs</a>. Sugarlabs organizes the development and promotion of <a href="http://www.sugarlabs.org/index.php?template=page&amp;page=teachers">Sugar</a>, the <a href="http://www.sugarlabs.org/index.php?template=gallery&amp;page=media_01">user interface</a> for the <a href="http://laptop.org/en/">One Laptop Per Child (OLPC)</a> project.
<p style="text-align: center;"><a href="http://www.sugarlabs.org/index.php?template=page&amp;page=learners"><img id="illustration" style="display:block;margin:auto;width:685px;" src="http://www.sugarlabs.org/assets/narrative_01.png" alt="" />from sugarlabs.org, click the image to show the whole series in context.</p>
<p></a><br />
Sugar is an user interface aimed at <a href="http://www.sugarlabs.org/index.php?template=page&amp;page=learners">kids</a> and learning, rather than changing the learning process to use the computer and the web, it changes the user interface, so it is suited for a classroom environment. That being said, using sugar will probably revolutionize the way learning is done in the classroom, to a much more collaborative approach. Everything in sugar is made for sharing between the pupils and/or the teacher.</p>
<p>I had seen some screenshots of Sugar before, but I was totally blown away about the collaboration part of the system, and also how it changes the approach to computers, where we make the computer suitable for the classroom, rather than making the classroom suitable for the computer.</p>
<p>My contribution during the developer summit ended up beeing translating the Turtle Art activity into Norwegian, and helping Mr. Bender finding some bugs.</p>
<p>Since then I&#8217;ve translated the <a href="http://wiki.sugarlabs.org/go/Downloads/lang-no">download pages</a> on the Sugarlabs wiki into Norwegian. Sadly the current state of Sugar is that it&#8217;s quite buggy as &#8220;Sugar on a Stick&#8221;, completely broken in Ubuntu, and probably somewhat buggy in Fedora.</p>
<p>Also, listen to the <a href="http://wiki.twit.tv/wiki/FLOSS_Weekly_66">Episode 66</a> of the <a href="http://twit.tv/FLOSS">FLOSS weekly</a> podcast about the implementation of the OLPC in Nepal, which goes more into detail about Sugar.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/05/05/sugar.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>armering</title>
		<link>http://blog.elzapp.com/2009/04/02/armering.html</link>
		<comments>http://blog.elzapp.com/2009/04/02/armering.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 19:56:07 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[norsk]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/2009/04/02/armering.html</guid>
		<description><![CDATA[armering, originally uploaded by elzapp.]]></description>
			<content:encoded><![CDATA[<div class="flickr-post">
<div class="flickr-frame">
<a href="http://www.flickr.com/photos/elzapp/3405050370/" title="photo sharing" class="flickr-link"><img src="http://farm4.static.flickr.com/3584/3405050370_c1ac58e5db.jpg" class="flickr-photo" alt="" /></a><br />
</p>
<div id="flickr-caption"><a href="http://www.flickr.com/photos/elzapp/3405050370/">armering</a>, originally uploaded by <a href="http://www.flickr.com/people/elzapp/">elzapp</a>.</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/04/02/armering.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tak</title>
		<link>http://blog.elzapp.com/2009/04/02/tak.html</link>
		<comments>http://blog.elzapp.com/2009/04/02/tak.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 19:53:57 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[norsk]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/2009/04/02/tak.html</guid>
		<description><![CDATA[DSC_3722.JPG, originally uploaded by elzapp.]]></description>
			<content:encoded><![CDATA[<div class="flickr-post">
<div class="flickr-frame">
<a href="http://www.flickr.com/photos/elzapp/3407826570/" title="photo sharing" class="flickr-link"><img src="http://farm4.static.flickr.com/3631/3407826570_d7f795d928.jpg" class="flickr-photo" alt="" /></a><br />
</p>
<div id="flickr-caption"><a href="http://www.flickr.com/photos/elzapp/3407826570/">DSC_3722.JPG</a>, originally uploaded by <a href="http://www.flickr.com/people/elzapp/">elzapp</a>.</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/04/02/tak.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hvit søle</title>
		<link>http://blog.elzapp.com/2009/04/01/hvit-soele.html</link>
		<comments>http://blog.elzapp.com/2009/04/01/hvit-soele.html#comments</comments>
		<pubDate>Wed, 01 Apr 2009 18:40:50 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[norsk]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/2009/04/01/hvit-s%c3%b8le.html</guid>
		<description><![CDATA[hvit søle, originally uploaded by elzapp. Jeg gikk forbi Florida i Bergen for noen dager siden, på det som skal bli en fotgjengerovergang over bybanen lå denne blåhvite sølen. Fascinerende farger]]></description>
			<content:encoded><![CDATA[<div class="flickr-post">
<div class="flickr-frame">
<a href="http://www.flickr.com/photos/elzapp/3404238299/" title="photo sharing" class="flickr-link"><img src="http://farm4.static.flickr.com/3605/3404238299_e5e9138a20.jpg" class="flickr-photo" alt="" /></a><br />
</p>
<div id="flickr-caption"><a href="http://www.flickr.com/photos/elzapp/3404238299/">hvit søle</a>, originally uploaded by <a href="http://www.flickr.com/people/elzapp/">elzapp</a>.</div>
</div>
<p>
Jeg gikk forbi Florida i Bergen for noen dager siden, på det som skal bli en fotgjengerovergang over bybanen lå denne blåhvite sølen. </p>
<p>Fascinerende farger
</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/04/01/hvit-soele.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pusekatter</title>
		<link>http://blog.elzapp.com/2009/04/01/pusekatter.html</link>
		<comments>http://blog.elzapp.com/2009/04/01/pusekatter.html#comments</comments>
		<pubDate>Wed, 01 Apr 2009 17:50:10 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[norsk]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/2009/04/01/pusekatter.html</guid>
		<description><![CDATA[pusekatter, originally uploaded by elzapp. Våren er på vei&#8230;]]></description>
			<content:encoded><![CDATA[<div class="flickr-post">
<div class="flickr-frame">
<a href="http://www.flickr.com/photos/elzapp/3405052548/" title="photo sharing" class="flickr-link"><img src="http://farm4.static.flickr.com/3426/3405052548_9a0295fd3d.jpg" class="flickr-photo" alt="" /></a><br />
</p>
<div id="flickr-caption"><a href="http://www.flickr.com/photos/elzapp/3405052548/">pusekatter</a>, originally uploaded by <a href="http://www.flickr.com/people/elzapp/">elzapp</a>.</div>
</div>
<p>
Våren er på vei&#8230;
</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/04/01/pusekatter.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merging two lists</title>
		<link>http://blog.elzapp.com/2009/03/12/merging-two-lists.html</link>
		<comments>http://blog.elzapp.com/2009/03/12/merging-two-lists.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 12:13:56 +0000</pubDate>
		<dc:creator>elzapp</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.elzapp.com/?p=1262</guid>
		<description><![CDATA[Lets say you have two lists, one of them containing the values [1,2,3] and the other one containing the values [4,5,6], and you want to combine these two lists into one list, like this one: [1,2,3,4,5,6]. Let&#8217;s see how this can be done in different (high level) programming (or scripting or templating) languages. Java Java [...]]]></description>
			<content:encoded><![CDATA[<p>Lets say you have two lists, one of them containing the values [1,2,3] and the other one containing the values [4,5,6], and you want to combine these two lists into one list, like this one: [1,2,3,4,5,6].</p>
<p>Let&#8217;s see how this can be done in different (high level) programming (or scripting or templating) languages.</p>
<h3>Java</h3>
<p>Java has multiple list implementations, lets start with the most basic one, the builtin array.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1262code5'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12625"><td class="code" id="p1262code5"><pre class="java" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> A <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> B <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">4</span>,<span style="color: #cc66cc;">5</span>,<span style="color: #cc66cc;">6</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> C <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span>A.<span style="color: #006633;">length</span> <span style="color: #339933;">+</span> B.<span style="color: #006633;">length</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">int</span> counter<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> e <span style="color: #339933;">:</span> A<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  C<span style="color: #009900;">&#91;</span>counter<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>e<span style="color: #339933;">;</span>
  counter<span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> e <span style="color: #339933;">:</span> B<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  C<span style="color: #009900;">&#91;</span>counter<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>e<span style="color: #339933;">;</span>
  counter<span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>or with an ArrayList:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1262code6'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12626"><td class="code" id="p1262code6"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*Dropped importing the correct classes, 
and constructing the ArrayLists A and B, since thats not the focus here...*/</span>
List<span style="color: #339933;">&lt;</span>Integer<span style="color: #339933;">&gt;</span> C <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aarraylist+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ArrayList</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
C.<span style="color: #006633;">addAll</span><span style="color: #009900;">&#40;</span>A<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
C.<span style="color: #006633;">addAll</span><span style="color: #009900;">&#40;</span>B<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>PHP</h3>
<p>So, how is the same done in PHP?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1262code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12627"><td class="code" id="p1262code7"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$A</span><span style="color: #339933;">=</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$B</span><span style="color: #339933;">=</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$C</span><span style="color: #339933;">=</span><a href="http://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$A</span><span style="color: #339933;">,</span><span style="color: #000088;">$B</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Python</h3>
<p>And at last, how does the Pythonistas do this?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1262code8'); return false;">View Code</a> PYTHON</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12628"><td class="code" id="p1262code8"><pre class="python" style="font-family:monospace;">A=<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span>,<span style="color: #ff4500;">2</span>,<span style="color: #ff4500;">3</span><span style="color: black;">&#93;</span>
B=<span style="color: black;">&#91;</span><span style="color: #ff4500;">4</span>,<span style="color: #ff4500;">5</span>,<span style="color: #ff4500;">6</span><span style="color: black;">&#93;</span>
C=A + B</pre></td></tr></table></div>

<p>Note: the rubyists use the same approach.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.elzapp.com/2009/03/12/merging-two-lists.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
