Dengar's Blog Logo

Dengar's blog...
We will see what I post, probably will be some random tutorials

Wednesday, 28 October 2009

Twitter tools

I don't think much of tweet-deck. Maybe it's because it uses Adobe Aero and who wants to install any more software than necessary and let's face it: Twitter is still pretty useless...

I do however get "twats" to my Android phone, using both Twitgit and Twidroid. I will comment on the later some other day, cause it's really well developed and free.

But I found a widget for the Google Homepage that works fantastic and keeps you up to date with the twats you receive - it's intriguingly called 'TwitterGadget' and looks something like this:

Enjoy!

Monday, 26 October 2009

Barr Limeade - worst softdrink I ever had

The other day I had to make a purchase in a convenience store, so I could pay for my Indian takout lunch.After trawling the store for 5 minutes, trying to find something cheap yet consumable, I opted for Barr's Limeade. Who's ever had a softdrink he ever bought that couldn't be drunk? - Now I have...


- Posted using Mobypicture.com

Sunday, 25 October 2009

From the BBC discussion page

As per tstaddon:

So, here's a much better AND CHEAPER idea for Stephen Timms:

We know our village could partner up with a local company, to install and operate a community microwave broadband solution offering 16mbps broadband service to anyone who needs it (which could offer >50mbit broadband with minimal investment, in a couple of years' time).

The projected cost to us to get this up and running, doesn't even run into five figures.

We'd much rather have a grant to get that project up and running NOW, than twiddle our thumbs for a few years paying the 10p tax for the substandard infrastructure we have now so we can subsidise BT for giving places like Ebbsfleet and its brownfield trial sites in North London a better broadband service than they already have (even though their services are way better than ours).

We KNOW there's no point holding our breath for the roll out of a network that's ALREADY out of date in technology terms. We KNOW it will be even more out of date when (if) it ever gets to reach places like ours. And we KNOW we'll be left till last by the major players.

So come on, Mr Timms. Show a bit of backbone. If BT and Virgin show no interest in upgrading the infrastructure in places like ours, for God's sake don't BRIBE them into doing it because it's a waste of cash.

Outrageous UK Broadband Tax

It becomes increasingly likely that UK residents with a land line phone will be hit with a new tax. As of the beginning of the coming year, the new broadband tax will become effective and anyone, with or without internet access, will have to pay 50p per month to satisfy this new tax. This money then be squandered by politicians, contractors and sub-contractors... The only thing this money won't be used on is fund the changes it is meant for.

But that's not the problem, after all we are paying tax on cigarettes and that money doesn't go to healthcare; we pay liquor tax and that money doesn't go into healthcare either.. so why be upset that the 50p that we pay now might be used to fund weapons research?
No, the real problem here lies in the fact that a new tax is established and a ridiculous label is attached. If I think that this tax is being raised to fix the problem of broadband availabilty, but that it will never, ever disappear again, it makes me rather sad. I can see this tax being raised already: lower the VAT and raise the BBT... It's awful. All the government is doing is masquerade it's income. A little tax here and there is not as easy to track and understand as two income and value added that everybody is used to.

I would be hurt, but not upset or even outraged, if the government would raise the income tax. But to establish a completely new tax has only got one intention: being deciteful about it's plans.

I read on various blogs and newspaper sites that the plan to build out the existing telephone lines to make them broadband compatible was too little and too late. There are various new technological solutions that would be much more cost efficient and would provide a better infrastructure for the future to build up on than copper wires in the ground.

But that aside, I just wanted to highlight the injustice, the undemocratic aspects of it, as only the BT gets the benefits from this tax (obviously what's left after the administrative aparatus has taken it's more than modest share). How can it be fair that Virgin is paying for it's own lines and, like most other broadband provider, still has to rent lines from the BT - while the BT gets them free of charge from the government? Free to exploit their customers for years to come, free to monopolise and already heavily monopolised market.
This already creates an unfair environment that favours the BT, a company that made £2.5b profit in 2008, I might add!

Also consider that remote areas are exactly that: remote. If you live in a beautiful (or maybe less beautiful) place in the countryside, you should bloody well pay for the privilege of getting the 21st century out there. Is there an electricity tax because some houses in remote places don't have electricity? What about water and other such commodities? It's simply that people in remote places aren't willing to upgrade... If they really wanted to, they could (but admittedly would have to pay more for someone that lives in London)! Again, to highlight the hypocrisy: I live in London and my cost of living and transport is that much higher - is the government taxing other areas heavier to make sure that everyone pays equally?

If this is such an important thing, why not use the money they already get from us? We pay quite a bit of tax already, but raise the tax by 0.00001% and I certainly wouldn't mind. An additional charge infringes with my consumer rights: I shouldn't be double charged for one service / product. For the same reason I don't have Television - I refuse to pay that BS tax! I rather NOT have a service than pay a second time for it to someone that does NOTHING to maintain the service or provides an additional service that I rather not pay for.

In short, the best things to do in response to this are:
1. Write to BT, inform them that you will immediately leave them should they impose the tax on you
2. Write to Stephen Timms, the [horrible swearword] that is pushing forward with this programme. Contact here: http://www.stephentimms.org.uk/contact_me
3. Indeed cancel your BT contract with immediate effect (once the tax goes through), thus freeing you from the burden of an inflated bill and use your mobile and get a USB internet connection.
4. Write to other MPs that are opposing the planned tax.

Wednesday, 14 October 2009

PHP function to exchange HTML characters

This is of course if htmlentities does not satisfy you

Ready for you to copy:


function html_strReplaceSymbols( $str) {
$str1 = str_replace( '&', '&', $str);
$str1 = str_replace( ' ', ' ', $str1);
$str1 = str_replace( '!', '!', $str1);
$str1 = str_replace( '"', '"', $str1);
$str1 = str_replace( '$', '$', $str1);
$str1 = str_replace( '%', '%', $str1);
$str1 = str_replace( "'", ''', $str1);
$str1 = str_replace( '(', '(', $str1);
$str1 = str_replace( ')', ')', $str1);
$str1 = str_replace( '*', '*', $str1);
$str1 = str_replace( '+', '+', $str1);
$str1 = str_replace( ',', ',', $str1);
$str1 = str_replace( '-', '-', $str1);
$str1 = str_replace( '.', '.', $str1);
$str1 = str_replace( '/', '/', $str1);
$str1 = str_replace( ':', ':', $str1);
$str1 = str_replace( '<', '&#60;', $str1); $str1 = str_replace( '=', '&#61;', $str1); $str1 = str_replace( '>', '&#62;', $str1);
$str1 = str_replace( '?', '&#63;', $str1);
$str1 = str_replace( '[', '&#91;', $str1);
$str1 = str_replace( '\\', '&#92;', $str1);
$str1 = str_replace( ']', '&#93;', $str1);
$str1 = str_replace( '^', '&#94;', $str1);
$str1 = str_replace( '_', '&#95;', $str1);
$str1 = str_replace( '`', '&#96;', $str1);
$str1 = str_replace( '{', '&#123;', $str1);
$str1 = str_replace( '|', '&#124;', $str1);
$str1 = str_replace( '}', '&#125', $str1);
$str1 = str_replace( '~', '&#126', $str1);
return $str1;
}

Ampersands in XML

A word of warning:

Some XML parsers won't be stopped by the ampersand (&) symbol, others, I found, so for example Firefox, do have a problem with that.

You might find an instance were the XML parser stops when it encounters and untranslated ampersand. What happens is that these XML parsers expect to see the HTML number code written after an ampersand.

For the complete reference see here: http://www.ascii.cl/htmlcodes.htm

So for example, it's not good to have:
<name>Peter & Paul<name>


But better:
<name>Coolibert &#38; Jonathan<name>

And it is obviously better to have Coolibert and Jonathan, cause Peter and Paul just don't cut it.