<?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>jtes.net</title>
	<atom:link href="http://jtes.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://jtes.net</link>
	<description>JohnTESlade - Software Engineer, Brighton UK</description>
	<lastBuildDate>Fri, 18 May 2012 22:17:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Linux on the Samsung Series 9 2012 (NP900X3B)</title>
		<link>http://jtes.net/2012/03/23/samsung-series-9-2012-np900x3b/</link>
		<comments>http://jtes.net/2012/03/23/samsung-series-9-2012-np900x3b/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 11:59:46 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[NP900X3B]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[series 9]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=210</guid>
		<description><![CDATA[On Wednesday I collected by brand new laptop &#8211; the latest Samsung Series 9 (model NP900X3B).  Ordered through John Lewis and collected from my local Waitrose.  This is the first]]></description>
			<content:encoded><![CDATA[<p>On Wednesday I collected by brand new laptop &#8211; the latest Samsung Series 9 (model NP900X3B).  Ordered through John Lewis and collected from my local Waitrose.  This is the first time I have ever sent this much money (£1199) on an electrical item.  The laptop is</p>
<p>I&#8217;m a Linux user so this post is about getting Fedora 16  running on it.</p>
<p><strong>Updated: 26 Mar 2012 with more details</strong></p>
<p><strong>Updated: 28 Mar 2012 added mouse details and backlight adjustment</strong></p>
<h2>Booting from USB</h2>
<p>First step of getting Linux installed is to boot from a USB stick.  This took me ages to get working &#8211; in particular you must disable &#8220;Fast BIOS Mode&#8221; in the BIOS setup (it&#8217;s on the &#8220;Advanced&#8221; tab).  Then you can alter the boot priority to USB first.  Thanks for <a href="http://forum.notebookreview.com/samsung/638253-new-2012-samsung-series-9-13-3-a.html">this thread</a> on Notebook Review for pointing that out.</p>
<p>My Fedora 16 x86_64 live USB stick booted fine and everything seemed to work ok.  So next step was to install it to disk.</p>
<h2>Re-partitioning</h2>
<p>In order to make space for Linux I shrunk the main partition (originally 90GB in size) down to 50GB using the Windows Disk Management tool.  This left 43GB of unallocated space to install Linux on.  I also had to delete the 5GB hibernation partition using gparted.  This has had no effect on how Windows runs.</p>
<h2>Trackpad</h2>
<p>The biggest problem I found in Fedora was that trackpad has didn&#8217;t work properly.  It worked fine in the original 3.1.0 kernel &#8211; but when I updated to 3.2.10 and 3.3.0 it started behaving erratically and the cursor not moving when I moved my finger.  Add the following to your xorg config (thanks to Guy Lunardi for this):</p>
<p><code>Option "FingerLow" "1" #sensitivity detection low<br />
Option "FingerHigh" "1" #sensitivity detection high<br />
Option "RTCornerButton" "3" #right-click to bottom right<br />
#Option "MinSpeed" "0.7"<br />
#Option "MaxSpeed" "1.7"<br />
Option "TapAndDragGesture" "1" #tap&amp;release then tap&amp;drag<br />
Option "PalmDetect" "1" #avoid bad track behavior<br />
Option "VertTwoFingerScroll" "1" #two-finger vertical scroll<br />
Option "VertEdgeScroll" "0" #right edge vertical scroll<br />
Option "TapButton1" "1" #one-finger tap = left-click<br />
Option "TapButton2" "3" #two-finger tap = right-click1</code></p>
<p>There are still some problems &#8211; you can&#8217;t tap the touchpad to click and right click is broken.  But two finger multitouch works to scroll up and down pages.</p>
<h2>Backlit Keyboard</h2>
<p>The keyboard backlight keys (f9 and f10) don&#8217;t work as default.  However, there is a fix for first series 9 laptop (details <a href="http://jablonskis.org/2011/fedora-16-linux-on-samsung-series-9-np900x3a/">here</a>) that works on this laptop.</p>
<ul>
<li>Download <a href="https://github.com/iksaif/samsung-laptop-dkms">https://github.com/iksaif/samsung-laptop-dkms</a></li>
<li>Compile the code (you need to have kernel-devel, kernel-headers and gcc installed)</li>
<li>Load the module with <code>insmod</code></li>
<li>Change the brightness (N=0 for off, N=8 for max) <code>echo N &gt; /sys/devices/platform/samsung/leds/samsung\:\:kbd_backlight/brightness</code></li>
</ul>
<p>There is more work to automatically load this module and map the keys.</p>
<h2>Suspend</h2>
<p>I initially thought that the laptop would not resume from suspend/sleep.  But on further investigation it is just a screen brightness problem.  When it resumes the brightness is so low the screen looks like it is off.  But you can enter your password, hit enter and then sometimes the brightness comes back &#8211; or if not hit Fn+F3 and it works again.  I will get a bug raised for this.</p>
<h2>External Monitors</h2>
<p>The laptop has two external monitor ports &#8211; MicroHDMI and VGA (via a dongle.  Since I don&#8217;t have the VGA dongle I could only test microHDMI and it works fine under Linux.  I was able to drive 2048&#215;1152 monitor as a second screen and drag windows between that and the laptop screen.</p>
<h2>Wireless</h2>
<p>Wireless worked out the box, connecting to my WPA2 home network.  I&#8217;ve had no problems with connectivity.</p>
<h2>Sound</h2>
<p>The sound works out the box (and the speakers sounds great for such a small laptop).  The headphone jack works too but I haven&#8217;t tested it with a microphone (it&#8217;s a dual headphone/microphone port).</p>
<h2>Graphics</h2>
<p>Again out the box graphics works perfectly.  Works in 3D acceleration perfectly &#8211; I&#8217;m running Gnome 3 shell.   glxgears (yes it&#8217;s basic) runs but there is some tearing when in fullscreen mode.</p>
<h2>Battery Life</h2>
<p>I haven&#8217;t done any tests on battery life, nor have I changed any settings.  From a full charge, Linux is estimating about 3 hours of time remaining (windows reports about 5).  This is my next item of things to check out &#8211; trying out <a href="http://www.linuxpowertop.org/">powertop</a>, <a href="http://www.jupiterapplet.org/">Jupiter</a> and <a href="https://fedorahosted.org/tuned/">tuned</a>.</p>
<h2>Ethernet</h2>
<p>Ethernet is via a breakout dongle (code AA-AE2N12B and supplied in the original box).  This worked perfectly in Linux: plugin dongle, attach ethernet cable and good to go.  The only annoying thing is having to remember to carry around the dongle.</p>
<h2>Webcam</h2>
<p>Tried this out using <a href="http://projects.gnome.org/cheese/">Cheese</a> and Skype and both the camera and internal microphone and work fine.</p>
<h2>Conclusion</h2>
<p>Overall Linux is working very well on this laptop.  There is some more work to do be done, but I am surprised how much worked on the default Linux installation.</p>
<p>If there is anything else anyone would like to me test out let me know in the comments.</p>
<p>I am also updating the <a href="http://www.linlap.com/wiki/samsung+np900x3b">LinLap</a> entry for this laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2012/03/23/samsung-series-9-2012-np900x3b/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Brighton Python Hack Day &#8211; 11 Feb 2012</title>
		<link>http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/</link>
		<comments>http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 22:47:08 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[brighton]]></category>
		<category><![CDATA[hackathon]]></category>
		<category><![CDATA[hackday]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=198</guid>
		<description><![CDATA[On Saturday 11th Feb 2012, Nathan Humphreys and myself ran a Python Hack Day for a few people at my flat in Brighton.  This was the first hack day that any]]></description>
			<content:encoded><![CDATA[<p>On Saturday 11th Feb 2012, <a href="http://www.nkhumphreys.co.uk/">Nathan Humphreys</a> and myself ran a Python Hack Day for a few people at my flat in Brighton.  This was the first hack day that any of us had run or attended so we didn&#8217;t know what to expect.  But we learnt lots of things along the way.</p>
<p>To be fair, the hack day was Nathan&#8217;s idea originally but I was immediately interested to help and organise it.  We have plans to run a larger hack day in the future, so we decided to start small and hold one in my flat.  We chose Python as a language to use since plenty of people we knew had a basic knowledge in it &#8211; plus Nathan and I have been using it side projects for a while now.</p>
<h2>Before the day</h2>
<p>So the first thing to do was to invite people.  We decided to just keep it to people we currently work with.  My first surprise was the number of people who initially said they were interested, but then pulled out because they weren&#8217;t sure they could write any Python code.  Seriously?  Professional software engineers should be able to pick up new languages &#8211; and IMHO be excited to do so.  The whole point of a hack day is to learn something new &#8211; and being around smart and fun people is surely the best way to do it.</p>
<p>In the end we had 5 people (including ourselves).</p>
<p>The other thing to sort before the day,  was to come up with some potential projects to work on.  There was generally a lack of ideas around, most people just wanted to come along and code something.</p>
<h2>Start of the day</h2>
<p>So we are good to go, 10am on a Saturday, most people have arrived and there is kitchen full of snacks.  First item is to decide what to work on. No one was really that bothered so we decided on a project that had the most scope &#8211; creating a <a href="http://en.wikipedia.org/wiki/Photographic_mosaic">photomosiac</a> web app.  We decide that we would develop this on <a href="http://code.google.com/appengine/">Google App Engine</a> and split into two teams &#8211; one for the web front end and the other for the image processing backend.</p>
<p>The first thing we ended up doing was setup the development environments.  We must have spent the first 2 hours getting python, git, <a href="http://www.pythonware.com/products/pil/">Python Imaging</a> and the App Engine SDK working correctly on all our machines.</p>
<p><a href="http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/crw_3780/" rel="attachment wp-att-187"><img class="aligncenter size-thumbnail wp-image-187" title="CodeJam - Matt and Mike" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3780-290x290.jpg" alt="" width="290" height="290" /></a></p>
<p><a href="http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/crw_3779/" rel="attachment wp-att-186"><img class="aligncenter size-thumbnail wp-image-186" title="CodeJam - Kev and Nathan" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3779-290x290.jpg" alt="" width="290" height="290" /></a></p>
<p>Once we started coding everything went smoothly, with plenty of code being written and pushed to our <a href="https://github.com/coderjam/photomontage">github repo</a>. I had never used git before in a team environment before &#8211; only for my own projects where I have 1 developer and 2 branches. I was amazed at how easy it is to merge files and push your changes across the network to someone else.</p>
<p><a href="http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/crw_3782/" rel="attachment wp-att-189"><img class="aligncenter size-thumbnail wp-image-189" title="CodeJam - Task Board" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3782-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Afternoon</h2>
<p>Following our lunch of Pizza, we made good progress and was ready to start integrating and testing the algorithm in late afternoon.  Then it was time for intense pair debugging to get this working.  After discovering a few oddities with GAE Image functions, we finally got something basic working by 7pm and continued tweaking it further until 9.</p>
<p><a href="http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/crw_3789/" rel="attachment wp-att-195"><img class="aligncenter size-thumbnail wp-image-195" title="CodeJam - Debugging" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3789-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Lessons Learnt</h2>
<p>After the first hack day, I learnt quite a few things:</p>
<ul>
<li>A 9 hour day is actually quite short, so maximise the available time.  Next time, we will try and select an idea to work on using email, create a skeleton project and ensure everyone can compile and run the project.  And all this before they arrive on the day.</li>
<li>Git and github rocks</li>
<li>Even in a single day, 5 people can create code that becomes difficult to debug and test.</li>
</ul>
<h2>What&#8217;s Next</h2>
<p>Nathan and I have plans for more hack days as they are brilliant fun.  Next up we are going to attend some else&#8217;s hackathon &#8211; Mark Pearson&#8217;s <a href="http://hackathonlondon.com/">Hackathon London</a> on 23-25th March 2012.</p>
<p>Then our other ideas are perhaps an Android one and, if can get hold of the hardware, <a href="http://www.raspberrypi.org/">Raspberry Pi</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2012/02/25/brighton-python-hack-day-11-feb-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My upgraded development workspace</title>
		<link>http://jtes.net/2012/02/25/my-upgraded-development-workspace/</link>
		<comments>http://jtes.net/2012/02/25/my-upgraded-development-workspace/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 10:48:00 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[chair]]></category>
		<category><![CDATA[desk]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=142</guid>
		<description><![CDATA[It was time to upgrade the workspace at home where I do my software development.  It was getting uncomfortable to sit there for many hours at a time and that&#8217;s]]></description>
			<content:encoded><![CDATA[<p>It was time to upgrade the workspace at home where I do my software development.  It was getting uncomfortable to sit there for many hours at a time and that&#8217;s not what you need when trying to code.  So I went off to IKEA.  Here&#8217;s my old desk setup &#8211; a bog standard dining table with a cheap chair from Rymans.</p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3792/" rel="attachment wp-att-143"><img class="aligncenter size-thumbnail wp-image-143" title="CRW_3792" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3792-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Chair</h2>
<p>As a tall person (6ft 3) I&#8217;ve always suffered with chairs and desks being the wrong height for me and suffering neck ache.  So first item up is a new chair that has a high seat and a head rest.  Where I used to work I had an amazing <a href="http://www.rhchairs.co.uk/web/models-rh-logic.aspx#8c14b317-0807-40d8-a89c-43539761c219">RH Logic 4</a> chair, but not having a spare £900, I opted for the £125 <a href="http://www.ikea.com/gb/en/catalog/products/70178863/">IKEA MARKUS</a>.  It&#8217;s a very comfortable chair with plenty of back support and it reclines too.</p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3794/" rel="attachment wp-att-145"><img class="aligncenter size-thumbnail wp-image-145" title="CRW_3794" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3794-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Desk</h2>
<p>Then to solve the next height related issue of mine: the desk.  So I added four <a href="http://www.ikea.com/gb/en/catalog/products/60105301/">IKEA VIKA KAJ</a> legs that are adjustable between 60-90 cm.  I set them to 80cm which works well for me.  And while I was there I added a <a href="http://www.ikea.com/gb/en/catalog/products/30200253/">IKEA SIGNUM</a> cable tidy to clear up the mess of cables behind the desk.</p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3797/" rel="attachment wp-att-147"><img class="aligncenter size-thumbnail wp-image-147" title="CRW_3797" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3797-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Monitors</h2>
<p>My final update is to my dual monitor setup &#8211; a Dell 23&#8243; and a Samsung 20&#8243;.  Again, getting the monitors to the correct height is important, and the cheapest option I found before was to use two <a href="http://www.ergotron.com/Products/tabid/65/PRDID/126/language/en-GB/Default.aspx">Ergotron Neo-Flex LCD Stands</a>. But these don&#8217;t go very high and they struggle with the weight of the 23&#8243; monitor.  So I ordered an <a href="http://www.allcam.biz/catalog/product_info.php?products_id=420">Allcam MDM05 Multi Screen Desk Mount Bracket</a> from Amazon.  Was very impressed with the next day delivery and the couriers (DPD) texted me in the morning to give me an hour slot when the delivery would occur.</p>
<p>The screen mount was very easy to assemble but you have to tighten up all the bolts which makes it difficult to tilt and move the monitors.  This is fine for me as I want them fixed in position.</p>
<p>So here is my dual monitor setup on the stand.  It looks good and leaves the area under them clear.</p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3803/" rel="attachment wp-att-153"><img class="aligncenter size-thumbnail wp-image-153" title="CRW_3803" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3803-290x290.jpg" alt="" width="290" height="290" /></a></p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3802/" rel="attachment wp-att-152"><img class="aligncenter size-thumbnail wp-image-152" title="CRW_3802" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3802-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>Complete</h2>
<p>So here is the final view with chair, desk and monitors.</p>
<p><a href="http://jtes.net/2012/02/25/my-upgraded-development-workspace/crw_3801/" rel="attachment wp-att-151"><img class="aligncenter size-thumbnail wp-image-151" title="CRW_3801" src="http://jtes.net/wp-content/uploads/2012/02/CRW_3801-290x290.jpg" alt="" width="290" height="290" /></a></p>
<h2>What&#8217;s Next</h2>
<p>I&#8217;m not done yet, but this is the first pass.  Having now raised the desk, it is a little unstable and does wobble when I&#8217;m typing.  So I need to get a more solid table top &#8211; probably an <a href="http://www.ikea.com/gb/en/catalog/products/70162490/">IKEA VIKA AMON</a>.  I might also get some <a href="http://www.ikea.com/gb/en/catalog/products/00202324/">IKEA DIODER</a> lights that change colour to light up behind the monitors.</p>
<p>And then it&#8217;s to computer hardware upgrades &#8211; a wireless keyboard &amp; mouse and a new laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2012/02/25/my-upgraded-development-workspace/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8230; As A Service &#8211; SAAS, PAAS, IAAS</title>
		<link>http://jtes.net/2012/01/19/as-a-service-saas-paas-iaas/</link>
		<comments>http://jtes.net/2012/01/19/as-a-service-saas-paas-iaas/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:39:57 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[iaas]]></category>
		<category><![CDATA[paas]]></category>
		<category><![CDATA[saas]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=131</guid>
		<description><![CDATA[Thanks to nkhumpreys I was introduced to the three &#8220;.. as a service&#8221; concepts from cloud computing.  Even though I have been using the cloud I had never heard the]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://www.nkhumphreys.co.uk/">nkhumpreys</a> I was introduced to the three &#8220;.. as a service&#8221; concepts from cloud computing.  Even though I have been using the cloud I had never heard the terms before but they classified the tools I had been using. Here&#8217;s my overview.</p>
<h3>SASS &#8211; Software As A Service</h3>
<p>The top of the stack where the user interacts with an application which handles the processing and storage of data. Like a desktop application you access through a web browser.  The user is not usually developing code.</p>
<p><strong>Examples:</strong> <a href="http://docs.google.com">Google Docs</a>, <a href="http://www.dropbox.com">Dropbox</a>, <a href="http://www.salesforce.com">SalesForce.com</a></p>
<p><strong>Typical Billing:</strong> on a monthly subscription</p>
<h3>PAAS &#8211; Platform As A Service</h3>
<p>A software platform is provided which abstracts away some of the elements of the cloud &#8211; normally the scalability elements. This allows a developer to write a piece of code that processes a job (e.g. output a page of a website) and not worry about how many concurrent instances there are. This is great for services that might have unpredictable demand or where there are bursts of activity &#8211; such as algorithm that runs for 5 minutes every hour.</p>
<p>Generally the platform makes restrictions on the type of languages of the software and the code must be written in a way so it can execute in parallel &#8211; think problems that would work under Map Reduce.</p>
<p><strong>Examples:</strong> <a href="http://code.google.com/appengine/">Google App Engine</a>, <a href="http://www.picloud.com/">PiCloud</a></p>
<p><strong>Typical Billing:</strong> based on resource usage at a granular level &#8211; e.g. amount of bandwidth or number of CPU cycles used.</p>
<h3>IAAS &#8211; Infrastructure As A Service</h3>
<p>The renting of a piece of infrastructure for a short period (e.g. a server) in small increments (often hourly).   This reduces the need to keep spare servers to deal with load fluctuation - new servers can be rented on an hourly basis when required.  This provides full access of the instance server including shell access and installed libraries.</p>
<p><strong>Examples:</strong> <a href="http://aws.amazon.com/ec2/">Amazon EC2</a>, <a href="http://www.rackspace.com/cloud/">Rackspace Cloud</a></p>
<p><strong>Typical Billing: </strong>per instance per hour</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2012/01/19/as-a-service-saas-paas-iaas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Undefined subroutine &amp;Scalar::Util::weaken</title>
		<link>http://jtes.net/2012/01/01/undefined-subroutine-scalarutilweaken/</link>
		<comments>http://jtes.net/2012/01/01/undefined-subroutine-scalarutilweaken/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 21:24:40 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=125</guid>
		<description><![CDATA[Ever had the problem in Perl: Undefined subroutine &#38;Scalar::Util::weaken called at This is caused by a version of Scalar::Util that is perl only and doesn&#8217;t implement the weaken function (ref).]]></description>
			<content:encoded><![CDATA[<p>Ever had the problem in Perl:</p>
<blockquote><p>Undefined subroutine &amp;Scalar::Util::weaken called at</p></blockquote>
<p>This is caused by a version of Scalar::Util that is perl only and doesn&#8217;t implement the weaken function (<a href="http://lists.jifty.org/pipermail/jifty-devel/2006-June/000390.html">ref</a>).  To install the XS version of Scalar::Util use cpan and run:</p>
<blockquote><p>force install Scalar::Util</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2012/01/01/undefined-subroutine-scalarutilweaken/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Flash in Fedora 16 x86_64</title>
		<link>http://jtes.net/2011/12/28/adobe-flash-in-fedora-16-x86_64/</link>
		<comments>http://jtes.net/2011/12/28/adobe-flash-in-fedora-16-x86_64/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 17:20:12 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jtes.net/?p=112</guid>
		<description><![CDATA[I always had problems getting Flash to work in both Firefox and Chrome when running Fedora Linux.  This became more of a problem since I started using the x86_64 kernel.  But]]></description>
			<content:encoded><![CDATA[<p>I always had problems getting Flash to work in both Firefox and Chrome when running Fedora Linux.  This became more of a problem since I started using the x86_64 kernel.  But here are the steps I took that worked under Fedora 16.  Thanks to <a href="http://www.google.com/support/forum/p/Chrome/thread?tid=72e4fac1f77af264&amp;hl=en">the_nins on the chrome support pages</a>.</p>
<p>Install the flash rpm</p>
<blockquote><p>From <a href="http://get.adobe.com/flashplayer/">http://get.adobe.com/flashplayer/</a></p></blockquote>
<p>Install the other required packages</p>
<blockquote><p>yum install flash-plugin nspluginwrapper.x86_64 nspluginwrapper.i686 alsa-plugins-pulseaudio.i686 libcurl.i686</p></blockquote>
<p>Create the wrapped up plugins for x86_64</p>
<blockquote><p>mozilla-plugin-config -i -g -v</p></blockquote>
<p>Create a symlink to the wrapped file:</p>
<blockquote><p>cd /usr/lib64/mozilla/plugins</p>
<p>ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so</p></blockquote>
<p>Restart the browser and it should pickup the flash plugin.  I would also highly recommend using flashblock to load flash animations on demand &#8211; addons for <a href="https://chrome.google.com/webstore/detail/gofhjkjmkpinhpoiabjplobcaignabnl">Chrome</a> and <a href="https://addons.mozilla.org/en-US/firefox/addon/flashblock/">Firefox</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2011/12/28/adobe-flash-in-fedora-16-x86_64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl &#8220;Perl_Gthr_key_ptr&#8221; problems</title>
		<link>http://jtes.net/2011/12/03/perl-perl_gthr_key_ptr-problems/</link>
		<comments>http://jtes.net/2011/12/03/perl-perl_gthr_key_ptr-problems/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 16:28:55 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://johnteslade.com/?p=103</guid>
		<description><![CDATA[I just upgraded by laptop to Fedora 16 and started to get problems with Perl libraries that were installed via yum.  Errors along the lines of: perl: symbol lookup error:]]></description>
			<content:encoded><![CDATA[<p>I just upgraded by laptop to Fedora 16 and started to get problems with Perl libraries that were installed via yum.  Errors along the lines of:</p>
<blockquote><p>perl: symbol lookup error: /usr/local/lib64/perl5/auto/Crypt/Rijndael/Rijndael.so: undefined symbol: Perl_Gthr_key_ptr</p></blockquote>
<p>Some research suggest this is caused by the shared library being built against a different version of perl.  This is mainly a problem because Fedora provides a number of prebuild perl libraries through yum.  The fix for this is to use cpan to rebuild the libraries. So as root start cpan:</p>
<blockquote><p>cpan</p></blockquote>
<p>Then reinstall the libraries causing problems.  In the above example I did:</p>
<blockquote><p>force install Crypt::Rijndael</p></blockquote>
<p>This will recreate the .so file against the correct perl version.</p>
<h2>CPAN error with vxs.so</h2>
<p>There may be problems with cpan failing due to:</p>
<blockquote><p>perl: symbol lookup error: /usr/local/lib64/perl5/auto/version/vxs/vxs.so: undefined symbol: PerlGthrkey_ptr</p></blockquote>
<p>I managed to fix this by just deleting the whole folder:</p>
<blockquote><p> /usr/local/lib64/perl5/auto/version/</p></blockquote>
<h2>Apache and selinux</h2>
<p>If you are calling perl scripts from apache there might be further problems like:</p>
<blockquote><p>failed to map segment from shared object: Permission denied at /usr/lib64/perl5/DynaLoader.pm</p></blockquote>
<p>This is an SE linux issue and can be fixed with chcon:</p>
<blockquote><p>find /usr/local/lib64/perl5/auto -name &#8220;*.so&#8221; | xargs -n 1 chcon unconfined_u:object_r:lib_t:s0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2011/12/03/perl-perl_gthr_key_ptr-problems/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Site online</title>
		<link>http://jtes.net/2011/09/24/site-online/</link>
		<comments>http://jtes.net/2011/09/24/site-online/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 18:41:55 +0000</pubDate>
		<dc:creator>John Slade</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://johnteslade.com/?p=97</guid>
		<description><![CDATA[The site is now finally sorted and I’ve put up my projects page.  I’m currently working on my remanence programming project (https://github.com/johnteslade/Remanence) and on starting my eliptic curve cryptography introduction book. More]]></description>
			<content:encoded><![CDATA[<p>The site is now finally sorted and I’ve put up my projects page.  I’m currently working on my remanence programming project (<a href="https://github.com/johnteslade/Remanence">https://github.com/johnteslade/Remanence</a>) and on starting my eliptic curve cryptography introduction book.</p>
<p>More details soon</p>
]]></content:encoded>
			<wfw:commentRss>http://jtes.net/2011/09/24/site-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

