blog http://www.i-lateral.com/blog/rss Fix HTML5 placeholder attribute in IE 8 & 9 http://www.i-lateral.com/blog/fix-htmlplaceholder-attribute/ <p>Anyone who has encountered the HTML5 placeholder attribute, knows it is a great time saver over trying to manually load a label element into a HTML form input.</p> <p> </p> <p>The Problem is that IE8 (and very annoyingly, IE9) don't have placeholder support. This has proven quite annoying, but then I stumbled across this neat little fix earlier that seems to work great:</p> <p> </p> <p><a href="http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html">http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html</a></p> <p> </p> <p>Hopefully someone will find this useful, though by default this fix doesn't work with password input. There are a couple of solutions in the comments, such as changing the input type or cloning the element. I haven't tried any of these out as of yet though.</p> Sun, 14 Jul 2013 22:29:41 +0100 http://www.i-lateral.com/blog/fix-htmlplaceholder-attribute/ Upgrade to Android Market http://www.i-lateral.com/blog/upgrade-to-android-market/ <p>Just spotted on the Google Blog that there is an update to Android Market comming out (more info at: <a href="http://googlemobile.blogspot.com/2011/07/new-android-market-for-phones-with.html">http://googlemobile.blogspot.com/2011/07/new-android-market-for-phones-with.html</a>).</p> <p>Looks pretty slick. By the sound of it there won't be video renting in the UK, but I will still take any atempt to optimise the Android Marketplace. It is just a total mess at the moment!</p> Tue, 12 Jul 2011 23:41:54 +0100 http://www.i-lateral.com/blog/upgrade-to-android-market/ Sapphire MVC Framework 3.0 http://www.i-lateral.com/blog/sapphire-mvc-framework-3.0/ <p>Just thought I would have a quick play around with the pre-release of of Silverstripe 3.0. Most of all I was interested to see how the de-coupeling of the administration interface and CMS from the Sapphire framework was going.</p> <p>I have to admit, I am very impressed! I checked out Sapphire 3.0-pr1 and quickly setup a basic site. Following this structure:</p> <p>webroot<br>-- mysite<br>---- code<br>------ controlers<br>-------- controler classes go here<br>------ models<br>-------- model classes go here<br>------ _config.php<br>-- sapphire<br>-- themes<br>---- theme stuff goes here</p> <p>Adding in you data models and running /dev/build/ still gives you all the yummy enviroment builder that makes Silverstripe so awesome.</p> <p>The only thing you have to remember is that you will have to manually map your URL's to a controller in your _config.php, using something like:</p> <pre>Director::addRules(50,array( 'urlsegment' =&gt; 'ControllerName' ));</pre> <p>Once you do that, you should be away adding controllers and models and using Sapphire in just the same way as you would use any other MVC framework!</p> <p>You can get the 3.0 pre release of sapphire from github: <a href="https://github.com/silverstripe/sapphire" target="_blank">https://github.com/silverstripe/sapphire</a></p> <p>Have fun!</p> Tue, 12 Jul 2011 23:19:43 +0100 http://www.i-lateral.com/blog/sapphire-mvc-framework-3.0/ SilvaBuilda, the Silverstripe build tool http://www.i-lateral.com/blog/silvabuilda-the-silverstripe-build-tool/ <p>I love using Silverstripe, its a great CMS and Framework, easy to get into but powerful. But, there has been one thing bugging me for some time now, and that is managing all the different third party modules that you need in order to get your site up and running.</p> <p>Back in the days of SVN (not that long ago really, but its nice to be able to say "back in the days..." whenever you can) you could use SVN:Externals. Granted, this wasn't the most elegant solution, but it worked pretty well and meant you didn't have to fill your repo with loads of modules you are not developing.</p> <p>The biggest problem with externals was that it is slow! Unlike git there is no compression, so large sites take an age to download.</p> <p>Now most of the silverstripe modules are located in git repo's, the performance issue isn't really there any more,  as git compresses a repo before transmission. The downside is though that the closest thing to externals in git is submodules, and these are fiddly and will only work with other git repo's.</p> <p>You can download all the modules and just put them in your repo. But this is time consuming at the start of a project, or when you want to upgrade modules!</p> <p>Anyway, enough waffling, in the end, i got fed up of the problems listed above and came up with my own solution. SilvaBuilda!</p> <p>SilvaBuilda is built in python (using only core libraries) and is intended to be a simple cross platform tool that can be used to quickly generate a SilverStripe project on any platform (*nix or Windows).</p> <p>The project is still very much a beta release (if that), but it manages the automation of downloading and extracting third party modules really well, as well as the process of combining them with files from your working copy.</p> <p>So if you you are interested in trying it out, check out my git repo at:</p> <p>https://github.com/mlewis-everley/silvabuilda</p> <p>Any issues, please feel free to log them on github!</p> Thu, 07 Jul 2011 17:28:53 +0100 http://www.i-lateral.com/blog/silvabuilda-the-silverstripe-build-tool/ You total GIT! http://www.i-lateral.com/blog/you-total-git/ <p>With the announcement that SIlverstripe are moving their core code base from SVN to GIT, I felt it was time for me to stop putting it off and bow to public pressure! So I dutifully installed the latest version and then had no idea what to do!</p> <p>A little while (and a lot of reading) later, I think I am getting it. It is a pretty ailien thing if you are used to SVN though. One thing I have noticed though is the speed. Checking out an entire project took seconds, compared to maybe 5 mins for a full Silverstripe project, and that included a full local version history, which you don't get in SVN!</p> <p>I am still having some problems with concept of regular branching, and haven't even looked into submitting patches! Every source I have seen has implied it is a lot easier, but I remain scheptical!</p> <p>Anyway, there are some great resources on the web, for anyone who is interested. these include:</p> <p> </p> <p>Talk from Linus Torvalds at Google about GIT vs CVS/SVN:</p> <p><a href="http://www.youtube.com/watch?v=4XpnKHJAok8">http://www.youtube.com/watch?v=4XpnKHJAok8</a></p> <p>Really interesting and quite funny. Good place to start!</p> <p> </p> <hr><p>The Pro Git Book, available online at:</p> <p><a href="http://progit.org/">http://progit.org/</a></p> <p> </p> <hr><p> </p> <p>A really detailed and helpful guide to using GIT with SVN at viget.com:</p> <p><a href="http://www.viget.com/extend/effectively-using-git-with-subversion/">http://www.viget.com/extend/effectively-using-git-with-subversion/</a></p> <p>A great resource for those of us used to SVN</p> <p> </p> <p>Hope those are of some assistance, they have helped me a lot. Now I just need to get piston working so I can properly manage those externals!</p> Fri, 25 Mar 2011 00:06:14 +0000 http://www.i-lateral.com/blog/you-total-git/ How's Silverstripe 3.0 looking? http://www.i-lateral.com/blog/hows-silverstripe-3.0-looking/ <p>Anyone who is interested in Silverstripe is interested in what will happen in next iteration. By the sounds of it there are going to be a lot of big changes, but one of the ones I am very interested in is updating the design and layout of the admin area.</p> <p>Don't get me wrong, the current admin area is perfectly functional, but compared the visual style and user freindly layout of something like Wordpress, it is looking a little clunky and dated.</p> <p>Anyway, you can have a butchers at the latest batch of Silverstripe admin designs at their github repo. Link:</p> <p><a href="https://github.com/silverstripe/silverstripe-design/tree/master/Design">https://github.com/silverstripe/silverstripe-design/tree/master/Design</a> </p> <p>All looking very slick to me, can't wait for a stable release to get me hands dirty with!</p> Sun, 20 Mar 2011 17:04:15 +0000 http://www.i-lateral.com/blog/hows-silverstripe-3.0-looking/ Ubuntu Netbook 10.10 http://www.i-lateral.com/blog/ubuntu-netbook-10.10/ <p>So the latest version of Ubuntu was released over the weekend, and being the Linux fanboy that I am I thought I would download the Netbook flavour and install the it on my Acer Aspire Revo. See if it was any better than previous versions.</p> <p>At least, that was the plan. Unfortunately though, the Revo uses an Nvidia Ion graphics card which seems to be becoming quite commonplace among alot of these lower powered devices. I say that it is unfortunate because it appears that 10.10 netbook does not work correctly with this hardware.</p> <p>The cause of this seems to be that 10.10 netbook uses 3d acceleration to power some of the UI and the Ion requires the instalalation of Nvidia's drivers in order to get 3d acceleration working on the Ion.</p> <p>You may think "Ok, well then just install the drivers and get to using 10,10", but alas, life is not that simple! Once installed 10.10 simply refuses to boot into Ubuntu Netbook. Instead I just get a stock Ubuntu desktop.</p> <p>All seems quite a shame, so for the moment I have returned to using 10.04 netbook, which is smooth, seamless and lightning fast to boot. Even plays HD videos!</p> <p>It seems odd that Canonical chose a .10 version to release such a dramatic overhaul of the software, in the past it has seemed that the .04 version has been the version with most dramatic changes and the .10 release has largely been responsible for clearing out the bugs. I guess I will try again with the 11.04 release. Either that or try out 10.10 on my Aspire One, maybe I will get more luck there!</p> <p> </p> Mon, 11 Oct 2010 16:21:47 +0100 http://www.i-lateral.com/blog/ubuntu-netbook-10.10/ Open source Firewalls http://www.i-lateral.com/blog/open-source-firewalls/ <p>Just recently I have been doing a lot of work on setting up and upgrading our internal and external networks. It has been quite an interesting and challenging job, that I am only just starting to get to grips with and I have learnt a lot about how to setup networks using open source software.</p> <p>During my research, i have come across one particularly interesting project called <a href="http://www.pfsense.org/" target="_blank">PFSense</a>. This BSD based firewall software is pretty robust, and provides a lot of the functionality you would get from proprietary, enterprise level firewalls.</p> <p>What is even more interesting is that you can configure the software to suite applications other than just Firewalls (a list of examples can be found on the <a href="http://www.pfsense.org/index.php?option=com_content&amp;task=view&amp;id=71&amp;Itemid=81" target="_blank">PFSense website</a>), meaning that you can administer multiple parts of your network, using one common interface.</p> <p>There is even a book, available from <a href="http://www.amazon.co.uk/PfSense-Definitive-Michael-W-Lucas/dp/0979034280/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1272492911&amp;sr=8-1" target="_blank">Amazon</a>. Which is on its way to me now. Should be an interesting read.</p> Wed, 28 Apr 2010 23:01:00 +0100 http://www.i-lateral.com/blog/open-source-firewalls/ Moblin OS http://www.i-lateral.com/blog/moblin-os/ <p>During my wanderings on the internet the other day, I came across a pretty slick little Linux operating system that, according to their site, has been built from the ground up 'to work on Intel Atom powered devices.</p> <p>Whats more, it comes with an SDK and App Store like system called the 'Garage' that apparently allows easier development and deployment of applications, much like you would find on an iPhone or Android Phone.</p> <p>I must admit I was intreaged by the concept, and the screenshots and videos only increased my interest, so that evening I downloaded the latest build and installed it on my netbook.</p> <p>Granted, the first install went a bit wrong, and I couldn't use my trackpad. I tried again however and now have a fuly operational Moblin OS running on my Acer Aspire One. Which, I am happy to report, is really slick. The system boots in about 5 seconds, thats into a usable state too, ready to surf the web. That is way faster than the default Linux OS on the Aspire One, Ubuntu Netbook (which was on it untill now) and probably a million times faster than any netbook with Windws XP (*shudder*).</p> <p>All in all, I would say, if you have a netbook and want a fast, slick OS that will let you browse the web and integrate with your social networks (currently only Twitter, LastFM and IM, but hopefully more to come), Moblin is a pretty good piece of software to try.</p> <p>Links are:</p> <ul><li>Main Website: <a href="http://moblin.org/" target="_blank">http://moblin.org/</a></li> <li>Netbook video: <a href="http://moblin.org/documentation/moblin-netbook-intro" target="_blank">http://moblin.org/documentation/moblin-netbook-intro</a></li> <li>Screenshots: <a href="http://moblin.org/documentation/moblin-overview/netbook-screenshots" target="_blank">http://moblin.org/documentation/moblin-overview/netbook-screenshots</a></li> </ul> Sun, 28 Mar 2010 00:53:00 +0000 http://www.i-lateral.com/blog/moblin-os/ Putting Android on an old HTC phone http://www.i-lateral.com/blog/putting-android-on-an-old-htc-phone/ <p>After feeling months of prolonged sadness at my lack of ownership of an Android based mobile device, I was ecstatic to hear that there were a group of developers over at <a style="text-decoration: none; color: #fd7f00;" href="http://www.xda-developers.com/" target="_blank">XDA Developers</a> who are trying to port Android over to older, Windows Mobile based HTC phones.</p> <p>The process of getting this to actually work is quite a fiddle, if you have no idea what you are doing. Thankfully there are a few helpful sites out there. My advice to anyone planning on doing this (and I wish I had taken this advice) is to find your EXACT model of HTC phone (you may think you know the model, but a lot of these developers use the handsets development codename, rather than final production names).</p> <p>A full list of pretty much every handset you can buy is available at <a style="text-decoration: none; color: #fd7f00;" href="http://pdadb.net/" target="_blank">PDADB</a></p> <p>After about an hour of trying to install Android for the handset I thought I owned (HTC Vogue), with no success. I discovered that I actually owned a HTC Elf. Armed with new information, and a fresh mug of coffee, I was able to track down project <a style="text-decoration: none; color: #fd7f00;" href="http://sourceforge.net/apps/trac/wing-linux/wiki">Wing Linux</a> on Sourceforge. Wing linux is a special branch of the Android project, working on some of the older HTC Handsets, and even better, its a snap to install.</p> <p>If you are using a handset that wing linux supports, all you need to do is visit the downloads page, download the latest archive. Once you extract it, you will find it contained a load of cab files for different handset, and an approximately 40mb filesystem cab.</p> <p>Once you have these, all you have to do is load them onto your handset, then install them through Windows Mobile and finally, open your "Programs" folder and run the new "Wing Linux" icon that has been added. Then tap the 'run' button and your phone will re-boot.</p> <p>If this is the first time you have booted into Android, the OS will have to install itself. You should be able to leave this running. The last step before using Android is screen calibration. Be careful you do this properly, as currently there is no way to re-calibrate, and you will have to re-install if you mess up.</p> <p>If you calibration goes ok, then voila, an Android install of your very own.</p> <p>The software is still not entirely complete. Wifi doesn't work, and neither does audio, but this is supposedly on its way. I can't wait!</p> <p><strong>NOTE:</strong> No images yet, I will try to upload some when I get some time!</p> Fri, 12 Feb 2010 17:22:00 +0000 http://www.i-lateral.com/blog/putting-android-on-an-old-htc-phone/ Google Docs gets some updates http://www.i-lateral.com/blog/google-docs-gets-some-updates/ <p>I noticed last night that Google has anounced a load of new features for Docs users. Biggest one is probably the fact you can now upload any file, and Google Docs will act as an online harddrive. Though currently there is only a gig of storage space.</p> <p>There are also features like docx and xlsx support, improved drawing tools and lots of fancy spreadsheet functionality.</p> <p>I would say it all looks pretty exciting, it seems there is a enough functionality for me to try and get us to use Google Docs more at Oomph.</p> <p>All details can be found at: <a href="http://www.google.com/google-d-s/whatsnew.html">http://www.google.com/google-d-s/whatsnew.html</a></p> Thu, 04 Feb 2010 10:05:29 +0000 http://www.i-lateral.com/blog/google-docs-gets-some-updates/ Facebook's HipHop web server http://www.i-lateral.com/blog/facebooks-hiphop-web-server/ <p>I have been doing some reading up on Facebook's announcement that it has been developing a new web server, specifically for PHP apps. Apparently it will convert PHP code into C++ for more efficient running.</p> <p>Facebook say they have been using HipHop for a little while and it is a lot more efficient than Apache. Apparently now over 90% of their pages are served using it.</p> <p>I can't wait for an official release, I may setup a VM just to try it out. It would be nice to have a dedicated PHP web server, rather than just piggybacking off more generic ones (not that I am slating Apache though, its a pretty fine server).</p> <p>The official Facebook announcement, and details, can be found here: <a href="http://developers.facebook.com/news.php?blog=1&amp;story=358" target="_blank">http://developers.facebook.com/news.php?blog=1&amp;story=358</a></p> Wed, 03 Feb 2010 16:54:00 +0000 http://www.i-lateral.com/blog/facebooks-hiphop-web-server/ i-Lateral version 4 alpha online http://www.i-lateral.com/blog/i-lateral-version-4-alpha-online/ <p>After at least 4 years of neglect, I have finally decided to get the paddles out and try pumping some life through this dead site. LIVE! LIVE DAMN YOU!!!</p> <p>It is still early days, but the site's emphasis is going to be changed, less portfolio, more news, tutorials and photo's when I can work out the best way to build and integrate a photo section. Here's to 4 years of actual use and growth... Either that or this site will go rotten like stagnent water. Heres to hopping that doesn't happen!</p> <p>Right, time to create some content!</p> Wed, 03 Feb 2010 12:08:39 +0000 http://www.i-lateral.com/blog/i-lateral-version-4-alpha-online/