Tag Archives: components

CakePHP – Components

Naming:

  • MathComponent
  • extends Object
  • /app/controllers/components/math.php

Initialising:

var $components = array(‘Math’, ‘Session’);

When including Components in a Controller you can also declare a set of parameters that will be passed on to the Component’s initialize() method. These parameters can then be handled by the Component.
var $components = array(
‘Math’ => array(
‘precision’ => 2,
‘randomGenerator’ => ’srand’
),
‘Session’, ‘Auth’
);


Read more

CakePHP – Controllers

Naming conventions:

  • RecipesController
  • recipes_controller.php
  • extends AppController

Different Variables

var $name = ‘Recipes’;
var $uses = array(‘Recipe’, ‘User’);
var $helpers = array(‘Ajax’);
var $components = array(‘Email’);

Read more

Plasma vs LCD

Which one to Buy

Plasma

Plasma

  1. Viewing angle of 178 deg (Sitting at the extreme right or left corner of the screen, you will be able to see a clear picture).
  2. Heavy due to intrinsic internal components. Best place is a Table/TV trolley. Mounting on the wall req. additional support.
  3. Heats up Real fast. So, Some also come with a fan inserted at the back.
  4. Life Span is between 30,000 to 60,000 hours.
  5. Major problem is burn-in. It is a process in which prolonged display of the graphical elements can create a permanent ghost-like image on the screen. This happens over the time when phosphor loses its luminosity, levaing faint images of the menu or other frequently used areas of the screen visible to the eye, even when other images are playing out on the screen.
  6. When it comes to Colour and Contrast – Best.

LCD

LCD

  1. full HD support.
  2. Available from 14inches to 108inches.
  3. Viewing angle of 175 deg.
  4. Life Span is between 40,000 to 60,000 hours.
  5. No burn-in.
  6. Thinner than plasma. Easily mounted on the wall.
  7. Refresh rates are as low as 8ms. So its good for movies and games.
  8. Consumes less power

Final Word.

A head-to-head comparison of Plasma and LCD indicates that LCD have a better edge over the gas displays. Though LCDs make your wallet a lot lighter, they also give much more to the viewer – the highest resolution, good picture quality, lower power costs. If you think that TV’s in short term and plan upgrades every few years, then plasma’s are the way to go.

When and Why: Plasma vs LCD

SIZE

Plasma’s are not available in sizes lower than 32inches. So, if you want a Tv for a smaller space – LCD

RESOLUTION

If you want to enjoy HD movies and games, LCD supports 1080p resolution. Remember, the world is moving towards Blu-Ray tech

PRICE

LCD’s are more expensive compared to Plasma’s of the same size.

POWER CONSUMPTION

The bigger the size of the flat panel the more power it consumes.LCDs win here again. Tehy consume 30% less power.