Friday, September 4, 2009

YSR DEAD, TAKEN T PULIVENDULA, FANS ATTEMPTING SUICIDES


హైదరాబాద్ : కోట్లాది మంది జనహృదయాలను దోచుకున్న నాయకుడు, చిరునవ్వుల రారాజు ముఖ్యమంత్రి వైఎస్ రాజశేఖరరెడ్డి ఆకస్మిక మృతి 122 తెలుగువారి గుండెలను ఆపివేసింది. హెలికాప్టర్ ప్రమాదంలో తమ ప్రియతమ నాయకుడు వైఎస్ దుర్మరణం పాలయ్యారన్న వార్త విని తట్టుకోలేక రాష్ట్రంలో శుక్రవారం ఉదయానికి 99 మంది గుండె ఆగి మరణించారు. మరో 23 మంది ఆత్మహత్యలు చేసుకున్నారు. వీరిలో అత్యధికంగా వరంగల్ జిల్లాలో 14 మంది ప్రాణాలు కోల్పోగా, తూర్పు గోదావరి జిల్లాలో ఆ తరువాతి స్థానంలో 8 మంది మరణించినట్లు శుక్రవారం మధ్యాహ్నం వరకూ అందిన సమాచారాన్ని బట్టి తెలుస్తోంది.

జనహితం కోరే తమ ముఖ్యమంత్రి దారుణమైన పరిస్థితుల్లో మరణించిన తీరును టెలివిజన్లలో చూసి గురువారం నాడే అనేక మంది గుండెపోటుతో మరణించారు. ఆత్మహత్య చేసుకున్న వారిలో కాంగ్రెస్ కార్యకర్తలతో పాటు వృద్ధులు, పేదలే ఎక్కువగా ఉండడం గమనార్హం. గుండె పోటుతో మరణించిన వారిలో మహిళలు అధికంగా ఉన్నారని ఇంతవరకూ అందిన సమాచారం. కర్నూలు సమీపంలోని హెలికాప్టర్ కూలిపోయిన ప్రదేశాలను, అక్కడ వైఎస్ మృతదేహం పడిన తీరును టెలివిజన్లలో చూసిన వారు ఆ దృశ్యాలను తట్టుకోలేకపోయారు. టీవీల్లో మరణవార్త వినగానే పలువురు నిలువునా కుప్పకూలిపోయారు.

Tuesday, September 1, 2009

common programming mistakes to avoid ...

1. Improper Or No Comments.
2. Not reviewing your code.
3. Assuming Business Logic.
4. Not refactoring code.
5. Not Unit testing your code.
6. Not maintaining list of changes.
7. Not indenting your code.
8. Not modularizing code.
9. Hard coding messages and configurations.
10. Not having a backup of files before upload.

Documenting Code

Documenting Code

Any code that took thought to write will also take thought to understand. Undocumented or poorly documented code presents a problem for you when you have to review code you wrote in the past. You will have to wade through all of the functions and class methods etc. to find out what parameters they take, what they return and quite literally, what they do. If your code is procedural then than can even be a worse nightmare. If you for any reason need to have someone else modify your code I guarantee it will be a nightmare. I have had the displeasure of working with code that had absolutely no meaningful documentation. Tasks that would have taken me a few hours to accomplish had the code been properly commented took me days to finish. I have since vowed to NEVER take on any job involving poorly documented code. I would much rather write the entire thing from scratch.


Tuesday, August 25, 2009

Modifying an Existing Theme in Drupal...

Modifying an Existing Theme in Drupal 6

In this two-part article by Naresh, we will put together the various techniques and demonstrate how to modify and heavily customize an existing theme.

The majority of people who set out to master Drupal theming start out by modifying existing themes and learning from the process; that's exactly what we're going to do in this article. We will take an existing theme, look at how it works, then copy it and modify it until we have a very different looking theme. In this case, we will be building a basic fixed width, CSS-based, personal blog theme.

For the purpose of illustrating the examples in this article, we start with the Zen theme, which you can download from the Drupal site.


Monday, August 24, 2009

10 Principles for PHP Developers

We need PHP masters to show us the best principles to follow for high-grade PHP programming.

1. Use PHP Only When You Need it 

2. Use Many Tables With PHP and MYSQL for Scalability 

3. Never, ever trust your users 

4. Invest in PHP Caching 

5. Speed up PHP Development with an IDE, Templates and Snippets

6. Make Better Use of PHP’s Filter Functions 

7. Use a PHP Framework 

8. Turn on Error Reporting Immediately 

9. Use Batch Processing





CodeIgniter installation

CodeIgniter Installation:

  1. Unzip the package.
  2. Upload the CodeIgniter folders and files to your server. Normally the index.php file will be at your root.
  3. Open the application/config/config.php file with a text editor and set your base URL. If you intend to use encryption or sessions, set your encryption key.
  4. If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings.

If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system folder to something more private. If you do rename it, you must open your main index.php file and set the $system_folder variable at the top of the page with the new name you've chosen.

That's it!

If you're new to CodeIgniter, please read the Getting Started section of the User Guide to begin learning how to build dynamic PHP applications. Enjoy!


Accenture to lay off 336 executives

Accenture to lay off 336 executives: 
Accenture, a business
consulting and outsourcing company is likely to lay off around 336
senior-level managers as part of a broad-based restructuring effort.
William Green, CEO, Accenture said, "We are taking this step to
position Accenture better for both short-term and long-term economic
improvement growth and profitability."





















The company has about 177,000 employees globally, of which 4,800 are
senior-executive employees. The lay off is likely to be completed by
the end of November 2009. The company said that the reductions would
cost about $247 million in the fourth quarter, which ends on August 31.
Out of $247 million, about $128 million of the charge is for severance
and related costs of workforce reductions at the senior executive level
and $119 million linked to reduction of excess office space. The
company said that the space reductions would be completed by the end of
August, while the job cuts are expected to be completed in the first
quarter of fiscal 2010.



According to a projection by Goldman Sachs Group, global technology
spending will decline by eight percent this year. Accenture said that
it continued to expect net revenues for the fourth quarter in the range
of $5 billion to $5.2 billion with operating margins between 13.4
percent and 13.7 percent. But the company also added that the
restructuring charges will likely reduce its earnings per share for
both the fourth quarter and the full year by 24 cents.



The company had generated net revenue of $23.39 billion for the fiscal
ended August 31, 2008. In the last one year, the stock of Accenture has
climbed by 11 percent on the New York Stock Exchange (NYSE). 





To run the install script point your browser to the base URL of your website.

The base URL is defined in your Web server configuration file and is specific to the document root where you placed your Drupal files. If you have installed Drupal on a Web server this will likely be a domain name such as http://example.com. If you have installed Drupal on your desktop machine this URL might be http://localhost.

  1. Start by downloading the installation profile and unpacking it.
  2. Copy the entire directory that you just unpacked into the /profile directory of your core installation. For example, if you have core installed at /home/www/htdocs and you downloaded and unpacked an installation profile called "fooprofile", you would want to copy the entire "fooprofile" directory into /home/www/htdocs/profiles/fooprofile.
  3. Read the documentation on the installation pack you downloaded. This can either be found on the profile's project page (example: Innovation News Installation Profile) or in the README.TXT that came with the download (example: Drupal Hebrew Installation Profile). It should contain installation instructions such as listing the required extra modules and/or themes that you will have to download.
  4. Download these modules and themes and put them in the right directory. This is usually sites/all/modules and sites/all/themes.
  5. Go to your site's install.php and select which installation profile to install


To run the install script point your browser to the base URL of your website.

The base URL is defined in your Web server configuration file and is specific to the document root where you placed your Drupal files. If you have installed Drupal on a Web server this will likely be a domain name such as http://example.com. If you have installed Drupal on your desktop machine this URL might be http://localhost.

  1. Start by downloading the installation profile and unpacking it.
  2. Copy the entire directory that you just unpacked into the /profile directory of your core installation. For example, if you have core installed at /home/www/htdocs and you downloaded and unpacked an installation profile called "fooprofile", you would want to copy the entire "fooprofile" directory into /home/www/htdocs/profiles/fooprofile.
  3. Read the documentation on the installation pack you downloaded. This can either be found on the profile's project page (example: Innovation News Installation Profile) or in the README.TXT that came with the download (example: Drupal Hebrew Installation Profile). It should contain installation instructions such as listing the required extra modules and/or themes that you will have to download.
  4. Download these modules and themes and put them in the right directory. This is usually sites/all/modules and sites/all/themes.
  5. Go to your site's install.php and select which installation profile to install


Sunday, July 26, 2009

More glorious and more dread than from no fall

Mee though just right, and the fixt Laws of Heav'n
Did first create your Leader, next, free choice,
With what besides, in Counsel or in Fight,
Hath bin achievd of merit, yet this loss
Thus farr at least recover'd, hath much more
Establisht in a safe unenvied Throne
Yeilded with full consent.