The Raspberry Pi was designed as an affordable “computer” to get people interested in software and development, it has; but it has also spawned a huge other set of uses. As well as being a small computer running Linux, it can be a media machine, it can be a web server, it can control your home automation system and it can power a kiosk, or a fancy display screen.
I have multiple Pi’s myself, one of them running Raspbmc for a media machine, another just for playing. But today I have set up a Raspberry Pi to power a simple display view, giving stats output from a web page, updated in real time.
The Pi ordered, came with a memory card pre-installed with Raspbian so that seemed like a good place to start.
First task, wanting to install Google Chrome, to get the latest features from the browser, Chrome has the advantage of being able to be to started in “Kiosk Mode” – i.e. full screen, no toolbars.
Perfect, so how do we do this? First install Chrome, then we’ll disable the desktop environment starting up, replacing it instead with the browser.
sudo apt-get install chromium-browser x11-xserver-utils
sudo nano /etc/xdg/lxsession/LXDE/autostart
Within that file, we need to update the contents, replacing it with the following
Posted in Misc |
Leave a comment
April 23, 2013
@xset s off
@xset s noblank
@chromium --kiosk http://www.google.com
Coming to create some new VM’s on one of our XenServer hosts recently, I ran into an interesting problem of the templates not being in sync between various servers. All servers started life as a XenServer 6.0 install, and both have followed the exact same upgrade path, however the resultant templates were differing.
A search around the Citrix forum lead to a solution of “roll back the server, and re-perform the upgrade”, possible, but a right pain in the ….
A much quicker solution, however, is to run the following script from the XenServer Console, this adds any missing templates and restores any settings needed.
Posted in XenServer |
Leave a comment
February 7, 2013
Recently Google rolled out a huge change to the image search interface, on the outside this may seem like a huge step forwards, the new interface is much nicer and more streamlined for a normal user. Google constantly strive to improve the internet for users, and this is by no means a bash against them but more my observations following a recent update.
Since the update to the Google Images Search have been released, users now see a very different view when browsing for images. Previously whenever they selected an image they got a preview of the image, in place on the site it came from. This showed the user the image in context and let them either do what they wanted to with the image, or go back and carry on with their search.
However, with this latest update they never actually see the site the same. They are presented a much lager view while being kept within Google’s search. The new search does make it easier for the user to click through to the site, but adds a further step to do this.
It also gives the user a much larger preview without actually going to the site in question. From the users point of view, this is much quicker and more responsive as the data is always being served from Google and their vast quantity of servers.
Since the upload of this, one thing I have noticed with a couple of my sites that are heavily image based is a huge drop off in visitors actually hitting my servers, they are able to get the images searched for directly from Google without even leaving the search engine. As they never leave the search engine, they never see the context of the image, nor the extra content that might be relevant around it as well.
Basically, Google are copying images without permission and re-distributing them themselves, without the person who did the upload being able to track number of views / downloads etc. While that is already possible for someone to steal an image, its now being made even easier.
Google’s Blog entry on the subject can be viewed http://googlewebmastercentral.blogspot.ro/2013/01/faster-image-search.html – they are also encouraging feedback on the subject. We must embrace change, or the internet would never improve, however as with a lot of vast changes on the web all parties need to work together to make sure its beneficial all around.Posted in Misc | 1 Comment February 2, 2013
In a bit of an about face, the organisation responsible for policing the UK’s recent policy on cookies, have announced they are to stop asking users for permission to set cookies via their own website. This basically means the whole law is pointless.
The law was hated by loads of developers, as a waste of time and causing nothing but problems, so much so that many websites didn’t even implement the recommended requirements of asking users before setting cookies.
The quick answer was to just have a notice to say “we do it, using the site says you are ok with that”. The full solution was to not set a cookie until the user okayed it. Now this revelation, it probably won’t be long before the rather annoying notices start to disappear.
In the short time the law has existed, it has proven unworkable and totally unenforceable.Posted in Misc | Leave a comment January 7, 2013
2012 has definitely been the year where mobile and tablets devices have really taken off, this has meant web developers and designers have had to think differently about how they design and create their sites. Going back a bit, to have a mobile friendly version of a site was a separate system, usually pulling in the same data but displaying it differently. From a development point of view, it can cause problems by having double the systems to maintain and as such another solution was needed.
Step in CSS3 and Media Queries, they are a good solution to create multiple views from one set of data and back end systems. This is something that is only just becoming supported by most browsers (though with a lot of users still on old ones, support isn’t complete for all users).
So far, so good, having a different (but fitting) design or view for mobile or tablet devices sounds like a good idea, and actually is. On 3g, downloading the entire image set for a normal site isn’t a good plan, it’ll take the user too long and potentially cost them a fortune in bandwidth.
How this gets implemented is half the issue that exists currently with “Responsive Design”, I personally am seeing more and more sites that I look at and am actually put off using because of their newest, responsive designs – the designs that are built to scale based on screen resolution – are leading me on my old ish (1280×768) laptop to see sites that are no longer usable.
Multiple column layouts where content shifts based on screen resolution is one thing, but there are some quite hard to read examples appearing where the flow has gone totally. Take the new Mashable design as an example, there are now 3 columns of data, there is no nice way to read whats on screen and scroll to the next bit. On a mobile, it works perfectly and scrolls well, on a PC, it needs work.
Overall, I think responsive design is a brilliant answer to a growing issue, however it still needs work as an idea.Posted in Misc | Leave a comment October 13, 2012
I’ve decided to try using some of the new PHP 5.4 features after hearing a talk from Lorna Mitchell on features you will use, http://www.lornajane.net/resource/the-php-5-4-features-you-will-actually-use now I’ve had a few problems getting PHP to start on my Windows laptop so this is a quick “help” to fix it, it worked for me, it might help you.
PHP 5.4 on Windows, no longer has an installer and as such there is no automated requirements checking, nor does the PHP windows site list anything.
When it came to running PHP, I got a random error “The system cannot execute the specified program”, first off I tried downloading again and checking the obvious, turns out you need certain dependencies.
To start the PHP binary, you may need to manually install the Visual Studio C++ 2008 runtime, this can be downloaded from Microsoft http://www.microsoft.com/en-us/download/confirmation.aspx?id=5582
Hopefully this will help someone elsePosted in Misc | Leave a comment October 11, 2012
Having been back from my 2nd PHP conference a week now, my mind hasn’t stopped working. Having been last year, I had a little idea of what to expect, but nothing quite prepares you for how much your mind starts working after seeing a few days of very good talks.
Due to work, I was unable to attend the tutorial day, but I did attend both Saturday and Sunday talks. http://conference.phpnw.org.uk/phpnw12/schedule
Saturday started with a talk about PHP 5.4 features you will actually use , now I use Centos and as such am often behind with PHP versions. I hadn’t really considered upgrading for the new features but after Lorna’s talk, I will be. The rest of the day was spent going to a selection of talks relating to building large and complex systems, I’m in the process of planning new systems and as such, anything that can help benefits me.
The talk from Ian Barber sent my mind running wild, I’d heard about Firehoses from reading about how twitters infrastructure works, but wow. Mind. Blown. So much to think about.
The talk about the BBC from John Clevery, was certainly an eye opener. Revealing the strategy on creating the responsive design for the BBC’s site and has changed my view totally on how to work on responsive design.
Now I just need to find some more time to actually work on my ideas!Posted in Conferences, PHP | Tagged conferences, phpnw | Leave a comment June 18, 2012
Having had (another) drive failure recently, taking out my entire steam games library, I decided when it came to replace it, to use 2, one for OS and stuff, and another for Games and the like.
Perfect, sounds like an SSD combo with a normal disk drive!
In the end, I chose to go with an OCZ Agility 3 as a good mix of space, performance and cost (or lack of!). Installing it was a piece of cake, just like you’d expect from any drive install. First impressions after thinking “shut up DVD Drive” during the install, its quiet, I’m not used to drives that make NO noise!
Post Windows install, adding drivers and utils, its so much faster, click and things happen. Theres no more waiting for applications to start. They are just there. Power to ready to use is now sub 30 seconds, a far cry from last weeks 3-4 minutes.
I decided I was never going to get a drive big enough for all my games, so they still reside on a normal, spinning disk, Can’t have it all!
Overall, I can’t believe I’d not taken that step earlier, it makes using my computer usable again!Posted in Misc | Leave a comment March 19, 2012
Recently, I have been using XenServer to run a small cloud instance, this has been great but there are a few things you can’t just do with the XenCenter GUI. One of these, was to control and manage an extra externally attached hard drive.
There are reasons why you might want to attach a locally attached drive to a XenServer installation, without putting it in as a Storage Repository. In my case I want to back up data to an external drive (attached via eSata). The idea here is to make the XenServer see this drive as as a removable storage device.
Most of my servers use an ISCSI based SAN, but for backups I don’t want to back up to the same device, plus I want to be able to remove and swap the backup around so adding an extra, external disk is the perfect answer.
To get XenServer to recognise the drive, we need to create some extra symlinks in the /dev tree, this is managed by udev when USB and SATA drives are attached.
In my case, my new drive shows up as sdb, so we add the following lines to /etc/udev/rules.d/50-udev.rules – note, you can do this multiple times if you want to attach multiple drives. Once this has been added, reboot your server and you are ready to roll.
Posted in Servers, XenServer |
Tagged hosting, xen, xenserver |
Leave a comment
February 29, 2012
ACTION=="add", KERNEL=="sdb", SYMLINK+="xapi/block/%k", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="remove", KERNEL=="sdb", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
Microsoft Today have opened up Windows 8 for anyone who wants to test and try the latest version of Windows. This is the consumer preview program and it allows users to download and try a time limited verison of Windows for free.
Windows 8 has been built with touch based interfaces in mind, this is probably the biggest single change since Windows 95 arrived almost 17 yaers ago. The new interface, called the Metro will be standard on Windows 8. It is critical for Microsoft to do well with this, as this is an area they are competing with Apple and Google at, both of who already have established tablet platforms.
It is easy to see more, and even download the trial from Microsoft’s website, http://windows.microsoft.com/en-US/windows-8/consumer-preview
Are you looking forward to Windows 8, or dreading the change?Posted in Misc | Leave a comment ← Older posts