[userlog]
Making IT work for you
When you want to alter a theme to customise the loop you should do it in the following way (this is as much for my own reference as anything else):
In my current theme’s home.php file we can see the line:
<?php
if (have_posts()) : while (have_posts()) : the_post();
?>
This is the start of the WordPress loop. This version of the loop has no filters in place. It will output all posts in the system according to the default system settings. This will include all categories, dates, authors etc.
All we need to do is put the following line before the loop:
query_posts ($query_string . '&cat=4');
to create
<?php
query_posts ($query_string . '&cat=4');
if (have_posts()) : while (have_posts()) : the_post();
?>
Here’s a blog post about my NAS and what I’ve managed to do to/with it to get the most functionality/usage.
RSync / Grsync wasn’t working to backup Ubuntu laptop. I could access with FTPES in Filezilla but it was slow and not as feature rich as I’d have liked. I could SSH in using terminal but for some reason SFTP would not work in Nautilus when using the “connect to server” bit.
Next try was to upgrade the DiskStation OS (DS Manager) to see if there was better functionality and stuff.
This was being done remotely so I had to hope that the settings would remain otherwise I would lose my DynDns connection & have to travel back to the UK to resolve the issue.
It was time to take a chance. I stopped my SSH connection in terminal and the torrent downloads I had going and started uploading the .pat file of the new DSM (v.3.1-1613)
The error message given after the file had been uploaded was something about an incompatible file type.
Not disheartened I gave the 411j specific v.3.1354 a go. Same error again.
Hmm… what to try next?
So I just installed Fennec (beta) for Android on my Samsung Galaxy S. For those who don’t know Fennec is the Mobile version of Firefox.
The concept is based on “horses for courses”. You couldn’t run Firefox (the Linux version) on Android – it just doesn’t work that way. But there are probably many parts of Firefox that are replicated throughout the different builds. Be it the Windows, Linux or Fennec versions.
First impressions
Quick. Multi-touch zoom. Integrated Google search in address bar. Strange placement of settings controls – you don’t access them via the normal menu button that Google demands on Android phones, instead on any webpage use a swipe gesture from right to left. This brings up a hidden side-panel that includes the bookmarking button, back and forward buttons and the settings button. I am guessing a lot of people will struggle find this unless told.
Also the Sync plugin is ready to go from the install. This is a wise idea as many people who are likely to want Firefox on their phone (over the default browser) want it because they already use Firefox on the desktop. Sync brings across your saved passwords, bookmarks, history and settings. That’s the main reason I want Fennec on my phone. Seamless syncing between my laptop and phone.
Unfortunately, I got lots of errors when trying to sync with Firefox 3.6 or 4 beta on my laptop running Jolicloud. After research and a little wasted effort I have found this to be a tough nut to crack. I am sure the experience will be different across operating systems, network connections and Firefox versions. I hope to update this post with information of how and why these problems occured for those in the same boat.
Footnote
If you don’t complete the sync set-up when Fennec first installs and want to enable a sync account afterwards it is in the settings at the bottom of the page.
And just in case you missed it the;
User, Password & Sync Key
is the same as desktop Firefox Sync’s;
User, Password and Secret Phrase.
I Googled “Sync Key Fennec” when I couldn’t figure this out but seems no-one else was confused by the alternative naming of the Secret Phrase.
Excited much?! I fracking love getting to the insides of fledgling businesses. Just had an informal chat with a prospective client and even if they don’t use me professionally a good ol chat is still the full-on funzors!
As the head of this here thing I think it goes a long way when people do good deeds and as only I have control of the good deeds AFDIT does it falls on my shoulders to walk the walk.
I’ve had a few ideas on the best way to do this – and it may be that in the future you find out about some of them – but now and again I just do something small and I consider them a step in the right direction.
Yesterday a friend said she wanted a new dress. She said the dress was too costly and that she couldn’t afford or justify it’s expense and asked (albeit jokingly) if someone would buy it for her.
Well I thought about how people like presents (and I’m not sure if I’ve ever bought said friend a present before) so tried to justify it for myself somehow. Then it hit me: Kiva!
Kiva offers people a mechanism with which to lend entrepreneurs in poorer countries money. Those entrepreneurs repay their loans and the Kiva lender can start lending the money again to another Entrepreneur. It’s like giving money to charity but the money can be given again and again because the lenders get repaid.
Well I was going to put some money in my Kiva account anyway – roughly the same amount as this dress – and so why not bring someone else in on the deal?
The deal was struck. I proposed that I buy the dress as a present if, and only if, the recipient put the equivalent amount in to a Kiva account and start lending and never take the money out again.
I thought this was a good way to get someone started with Kiva – bribe them / pay for the first loan. Having thought about it I may bribe more people and ask them to bribe others. In fact most friends+family can expect Kiva vouchers for their foreseeable birthday and Christmas presents.
Unfortunately you can’t comment on this post until I fix my commenting system – but bare with me… it’ll be there soon.
Inspired by ever increasing publicity and debate I’ve decided to write a post on Linux Operating Systems and Free Open Source Software (FOSS).
For the uninitiated, the Linux Kernel is a bit of code at the heart of any Linux system, be it Ubuntu (a popular desktop Operating System), Android (Google’s mobile phone Operating System) or what runs inside everday gadgets (like this)
The Kernel is like the foundation Lego brick that any Linux system uses at it’s core. That’s why Linux can look and feel different depending on it’s release. It could look like a mobile phone, it could be a media player or games console, or it could be an Operating System a little like Apple’s OSX or Microsoft Windows.
Here’s a few things that make Linux and FOSS different from OSX and Windows:
To give a little added insight – the first mentioning of the term free means just that – it costs nothing. Although this does not apply to all FOSS products it is common throughout Linux OSes and FOSS. “How do the companies/programmers make their money?” you may ask – well, it’s usually through services (such as support) rather than the product (the software).
The second mention of being free refers to freedom. Those behind FOSS wanted to allow things to flurish in the open and they knew that keeping ties on how this would happen hindered that development. The result is a vast array of different people trying to achieve frequently similar aims. They can do this together by joining Open Source projects or they can take different routes like the major desktop interfaces, KDE and Gnome. Those two do roughly the same job but in different ways. This gives the user total freedom to choose and the choices often seem endless.
But, as with everything that has quality to it – the critics rave, people on the internet catch on and in no time at all – it’s a hit
For most people – this is the entry point for using Linux OSes or FOSS. If there enough other people using it you can get answers to questions in Forums or on official support sites and, hey “that many people can’t be wrong” has some truth to it.
To dip your toes in to FOSS as a Mac or Windows user try the following:
Open Office – If you have used Microsoft Office before (Word, Excel, Powerpoint etc) this software is deisgned for the same purpose – word processing, spreadsheets, slideshows and so on. It will save to open formats like .odf as well as being able to save as or open .doc files (as created by Microsoft Word). If you have ever felt the need to pirate MS Office just to open and work with files, here’s your opportunity to try a different approach.
Firefox – I’m guessing you’ve already heard of this high flyer. Firefox is one of the most highly used web browsers on the internet today and it’s all open source. It is easily expandable through the use of add-ons – which, are more simple to create as developers have access to as much or little of the open source code as they would like. Thanks to it’s transparent code it has also seen development of better security at it’s core than closed rival Internet Explorer. This has come in the form of companies and individuals all providing feedback when they noticed something in the code that could be improved.
7-Zip – When you receive a compressed file you need to decompress it. Windows has a program built in to Vista and Windows 7 that does this for you sometimes. Well getting a copy of 7-zip lets you open and create compressed files of all types! Finally you can have one great application that you know will handle all variations of compressed file.
VLC - This is an all-round video and media player. As with Open Office and 7-zip the power of this application comes with it’s ability to play all manor of file types without the need for additional codecs. VLC is soon to be releasing a video editor as well, building on the success of it’s media player.
For the more adventurous among you I can suggest 3 ways to try out Linux based Operating Systems.
Wubi - It’s an acronym for Windows Ubuntu Installer (you’ll find a lot of acronyms used as FOSS names) and with it you can install a copy of Ubuntu alongside your Windows installation with the same ease as installing any Windows application. This has to be the easiest way to try Ubuntu (or any Linux OS).
LiveUSB / LiveCD – Simply put this is an install disk which can sit on either a CD or a USB stick. But it’s more than that! You can also try the whole Operating System before you install it So, to achieve this just grab a recordable CD or a USB stick and use the appropriate link in the title of this paragraph. The USB link will take you to a program called LinuxLiveUSB – this manages the process of putting a LiveOS of your choice. I’d recommend Jolicloud/Ubuntu/Fedora/Mint from it’s list of options as they are great for beginners to get going. If instead you don’t have a USB stick click any of the following to get the .iso file (this is a CD Image ready to burn to disc) Jolicloud, Ubuntu, Fedora or Mint – please note that if you use the Mint link you’ll need to click on a link in the list of “Mirrors”. The Live method should let you get started with the Operating System as a whole, although if you would like to make certain changes and then come back to those changes when the machine is rebooted look for the “persistence” options. Jolicloud / LinuxLiveUSB and Wubi should offer simple set up of this.
Virtualisation -Virtualisation refers to the ability to install an Operating System within a virtual environment that replicates a normal install. Think of it as a testing environment which is like a spare machine you have lying around. The only difference is the spare machine is a program on your current Operating System – in this case we’re using Virtualbox. This allows people to try one or more versions of different Operating Systems and figure out the pros and cons without having to continually reboot. The virtual environment will be accessible inside your current OS! If you have ever seen a Mac user using Windows inside their MacOS then this was how it was done. Just as with the LiveCD option you will need a .iso once you have Virtualbox installed, so go ahead and use of those above links to download that file and install it in your new virtual environment.
I’m going to end this post here but stay tuned and I will continue from where I’ve left of and provide more news of where Linux and FOSS is going next.
Thanks for reading this far – now get back to work!
Ok – this is the last post of the day (3 in such a short space of time is overkill after so little blogging for so long).
After discovering the majestic awesomeness which is Mahalo I soon found myself participating in asking questions and getting in a few answers of my own. Immediately I was hooked and still can’t leave the site alone.
My favourite and most affirming answer to write was a little fun one where the question was simply to write a short story. There was only a very slight premise within which to keep the story based – it was to be Sci Fi in a cafe called Starport where all the races of aliens came together to share a coffee.
I hadn’t done any creative writing since school but I started to sketch down an idea (it was 4am and I was ready for bed) and it all just flowed. The asker of the question was even so kind as to tip me for it. Flattered and confident I have decided to carry on. This is where you can follow my Starport series : http://putfingertokey.afdit.co.uk
Also, as some of you may know, I am off travelling for a while and again I’ve given myself a new subdomain to issue my route, pictures tales of adventure and a schedule of where I am to keep my mother calm.
Track my travels here : http://travel.afdit.co.uk
Thanks for reading. I’ll be back again soon (but not too soon).