|
iPhone 4 vs htc Evo 4G Fanboy video |
||||||||
I don't normally (re) post other blog entries, or link to hosted videos, but I'm making an exception for this one.
Its a short video exploring the extremes of fanboy-ism. Its not necessarily a dig at Apple or the iPhone, its just a good example of how hype can overrule consumers making informed decisions about their purchases.
Oh, and its hilarious. Its actually had me crying with laughter. (Features some bad language).
Credit goes to Phandroid.com for posting it first:
http://phandroid.com/2010/06/30/nsfw-iphone-4-vs-htc-evo-4g-i-dont-care/
After having a dig around I have also found that the guy who made it is a best buy employee, and they are attempting to fire him because of it!
Techcrunch have an article dealing with it:
http://techcrunch.com/2010/07/01/best-buy-iphone-4-evo-4g/
It highlights pretty well how some of the large corporates are out of touch with the real world, and just how badly they can misinterpret how the interenet works, and what the public opinion will be.
|
How to reload a JQuery Datatables table data, using the API |
||||||||
Since I found the JQuery dataTables plugin, I use it quite a lot. I think it's a great way to display tabulated data, and it provides simple easy to use pagination and filtering options.
I've been building an interface to manage data, and arrived at the need to reload a datatable powered table, through a JavaScript request, rather than a page reload, or external variable (Url or form).
The problem with this is that if you try and re initialise a datatable into an existing datatable you get an error:
So you cannot re initialise an existing dataTable object. Looking through the API methods there is a relatively straight forward fix.
2
3 dTable = $('#example').dataTable( {
4 // data tables code
5 "bProcessing": true,
6 "bStateSave": true,
7 "bServerSide": true,
8etc...
9 aoData.push({ "name": "pageFilter", "value": filterText });
10 });
11else
12 {
13 dTable.fnDraw();
14 }
This code is basically checking if the object 'dTable' already exists, and if it is we are re drawing it, rather than using the existing object.
The fnDraw() method re-draws the table, so the data is refreshed. It uses the fnClearTable() method to first clear an existing data set, and the re draws it.
As an aside the 'filterText' value is a JavaScript value set elsewhere (a select field) that I am sending through to my server side request. It is used in a simple where clause in a query.
|
My handy custom font header building function |
||||||||
I've been putting together a personal site for a little while now, and one of the more common pieces of work I've had to do is creating the page headers from a custom font library in Photoshop. The site is 'comic' themed, and as such has an appropriate font (not comic sans!) .
Rather than having to create a new image for each page, I thought I'd cut up the alphabet, and create a function to turn a string into a set of graphics.
|
How to move a Wordpress Blog (same domain) and redirect your users |
||||||||
One task that has come up recently when dealing with the SEO side of a client's portfolio is the positioning of their Blog. They are using Wordpress, so I searched for and found a few other guides to moving Wordpress Blogs, but they are all quite length, and don't deal with the social side of things, like re pointing your XML feeds and redirects on the old Blog URL.








