LED Lighting Taking Over the World

December 13th, 2009

LEDs are taking over in the following sectors:-

  • LED Flat Screen Televisions are actually LCD TVs which use LEDs for backlighting.
  • LED Flashlights or Torches now totally dominate this sector
  • LEDs for general lighting
  • LEDs for Street Lighting
  • LEDs for Traffic Lights

LEDs are taking over because they are incredibly reliable with a life usually easily longer than the expected life of the equipment. They also are more efficient causing less heat dissipation problems. They are very popular for helping to reduce global warming and other Green issues.

Learn more about LED Flashlights here.

Uncategorized

Hereis Document for PHP: Great for Generation of HTML

November 19th, 2009

The great thing about hereis documents is that in most cases you don't have to backslash quotes, your "html" thus retains its visibility
echo <<<__HTML__

<li><a href=”$pressdir$file”>$file</a>
__HTML__;

$html.= <<<__HTML__
<li><a href=”$pressdir$file”>$file</a>
__HTML__;

return <<<__HTML__
<li><a href=”$pressdir$file”>$file</a>
__HTML__;

it can also cope with arrays if you use the following syntax ${my_array['postcode']}

return <<<__HTML__
<li><a href=”$multimap_url${my_array['postcode']}”>${my_array['postcode']}</a>
__HTML__;

I see so much ugly tangled php/javascript/html/css code which could be tidied up with the PHP Hereis Document

PHP

Ubuntu 9.10 Karmic Koala them Immediately Update

November 14th, 2009

My daughter upgraded her PC from 9.04 to 9.10 independently. Only hiccup it lost the Windows Network Printer however I Googled a bit and found to you needed to upgrade Samba if your Printer was on a Windows 7 PC (our case), so I went to System->Administration->Update Manager. There was a whole bunch of packages in there I selected all of them and did the update. I was then able to Find and Add the Network Printer via the Samba option.

Ubuntu seems to be bathed in clarity and elegance in comparison with Windows even the much vaunted Windows 7. I think this is because Microsoft is a large corporation, I have worked for many years for such organizations where the engineers would find their choices and suggestions overridden by non-technical managers.

ubuntu

How to Design a Database Driven PHP Page

November 11th, 2009

Design a Database Driven PHP Page

Many PHP pages turn into a mess because the PHP code is embedded into the HTML and. Over time this gets more and more tangled as the requirements change.

What is required is to make all the necessary database queries and all the manipulation of the data BEFORE you reach the first tag.

All that should appear in the HTML are the various php echos to output the dynamic parts of the page.

So here is the structure of a PHP page

query database
insert data from queries into php arrays (hashs)
General functions
Main section call functions, which manipulate the data to get that required by the dynamic web page
html section

PHP

Before the Web!

October 16th, 2009

When I first got involved with the Internet in 1994 I bought a Best Selling 500 page book on the Internet which only had a passing reference to the WWW mentioning that it might become important. The book concentrated on Gopher (the primitive precursor of the WWW), WAIS which never happened, and the usual Email, USENET and FTP.

But how many Internet users of today have even heard of Gopher!

internet history ,

Ubuntu: Connecting to a Windows Network Printer

October 13th, 2009

To allow Ubuntu or Linux PC to Print to a Windows Printer, you must enable LPD on Vista , and Unix Print services on XP.

How to Enable LPD on Vista :-
Control-Panel-> Program and Features -> Turn Windows Features On and Off -> Print Services -> LPD Print Services (Click to Enable)

This done Ubuntu will be able to see your Printer on the Network.

LPD is short for line printer daemon

ubuntu

zzapper’s Technical Tips

July 16th, 2008

Vim Tips and Tricks Famous Vim Tips
Vim Tips Blog Vim Tips in Detail
mysqltips.co.uk The most popular database
zsh tips An Alternative to bash
Cygwin tips Linux on your Windows PC
Technical Tips Blog Cool Unix & Internet Tools
Best Productivity Programs Open Source

Uncategorized

cialis for sale cialis order order cialis cialis price cialis uk cialis sale sale cialis cialis tabs cialis soft generic cialis cialis generic indian cialis levitra vs cialis soft cialis soft tab cialis online cialis professional cialis purchase cialis cheap cialis on line cialis in canada buy cialis on line buy cialis professional cheap cialis cheapest cialis cialis brand