|
Installing MySQL 5.5 on Ubuntu 11.10
Posted on February 02, 12 @ 04:40 am under Uncategorized and has no comments.
Installing MySQL 5.5 on Ubuntu 11.10
1. Ubuntu 11.10 has MySQL 5.1 version present in the repository. So update the PPA source with this – ppa:nathan-renniewaldock/ppa
2. From terminal run the update
> sudo apt-get update
3. Then install mysql 5 from terminal. MySQL 5.5 will be installed.
> sudo apt-get install mysql-server
4. To check the version, open mysql command prompt. The installed version will be shown.
> mysql

Installing Tomcat 7 on Ubuntu 11.10
Posted on February 02, 12 @ 04:36 am under Uncategorized and has no comments.
Installing Tomcat 7 on Ubuntu 11.10
1. Install JDK first
2. Download Tomcat 7 core tar.gz from tomcat.apache.org and extract it.
> tar xvzf apache-tomcat-7.0.25.tar.gz
3. Move the extracted folder to required directory, for ex. I have moved to /var/local
> sudo mv ./apache-tomcat-7.0.25 /var/local/
4. Now go into bin directory and run startup.sh to start server.
> cd /var/local/apache-tomcat-7.0.25/bin
> ./startup.sh
5. To check the server, access http://localhost:8080/
6. Tomcat Manager is present in http://localhost:8080/manager/
7. To open manager, following is to be added to /var/local/apache-tomcat-7.0.25/conf/tomcat-users.xml and restarted.
8. Restart the server
> ./shutdown.sh
> ./startup.sh
Now Tomcat 7 is ready to be used. 
Installing JDK 7 on Ubuntu 11.10
Posted on February 02, 12 @ 04:32 am under Uncategorized and has no comments.
Installing JDK 7 on Ubuntu 11.10
1. Download JDK 7 SE Linux version from Oracle website
2. Uncompress the downloaded .tar.gz file with this command
> tar -xvf jdk-7u2-linux-i586.tar.gz (32bit)
3. Move the jdk to /usr/lib/jvm with this command
> sudo mv ./jdk1.7.0_02 /usr/lib/jvm/jdk1.7.0
4. Run the following command. This will enable the java, javac javaws commands available in terminal. (or may be some other impact)
>sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
>sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
>sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
5. Then run these commands.
> sudo update-alternatives --config java
> sudo update-alternatives --config javac
> sudo update-alternatives --config javaws
6. Now JDK 7 is installed. To text, check the java version. 1.7.0_02 will be displayed.
> java -version 
Ubuntu 11.10 Tricks - 1
Posted on January 30, 12 @ 10:26 am under Uncategorized and has no comments.
1. To get the woobly windows effect, like Gnome 2x, install CompizConfigSettingsManager from Ubuntu Software Center. From Dashboard, open up the manager and select the woobly windows option. Restart if necessary
2. If sudo gedit throws this error - (gedit:2328): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
, create this directory - sudo mkdir /root/.local/share. (Step by step - sudo mkdir /root/.local, sudo mkdir /root/.local/share)

Missing watch
Posted on January 06, 12 @ 08:57 am under Uncategorized and has no comments.
There once was a farmer who discovered that he had lost his watch in the
barn. It was no ordinary watch because it had sentimental value for him.
After searching high and low among the hay for a long while; he gave up and
enlisted the help of a group of children playing outside the barn.
He promised them that the person who found it would be rewarded.
Hearing this, the children hurried inside the barn, went through and around
the entire stack of hay but still could not find the watch. Just when the
farmer was about to give up looking for his watch, a little boy went up to
him and asked to be given another chance.
The farmer looked at him and thought, "Why not? After all, this kid looks
sincere enough."
So the farmer sent the little boy back in the barn. After a while the little
boy came out with the watch in his hand! The farmer was both happy and
surprised and so he asked the boy how he succeeded where the rest had
failed.
The boy replied, "I did nothing but sit on the ground and listen. In the
silence, I heard the ticking of the watch and just looked for it in that
direction."
Moral: A peaceful mind can think better than a worked up mind.
Allow a few minutes of silence to your mind every day, and see, how sharply
it helps you to set your life the way you expect it to be...!

January 01, 2012
Posted on January 01, 12 @ 08:58 am under Diary and has no comments.
Happy new year to all. Wish you a very joyful year ahead. 
December 7, 2011
Posted on December 07, 11 @ 09:11 am under Diary and has no comments.
From the day of my last post, till last week, I was doing couple of assignments in Zend Framework. I am feeling comfortable in using it. Learned some jquery and others. Now its time to learn some HTML5. 
Maatladu.
Posted on October 17, 11 @ 06:04 am under Uncategorized and has no comments.
౧. ప్రేమతో మాట్లాడు
౨. ఆలోచించి మాట్లాడు
౩. అర్థం చేసుకుని మాట్లాడు
౪. మంచి మాటలు మాట్లాడు
౫. తెలివిగా మాట్లాడు
౬. నవ్వుతూ మాట్లాడు
౭. పూర్తిగా విన్నతర్వాత మాట్లాడు
౮. మనసువిప్పి మాట్లాడు
౯ . ఉన్నది ఉన్నట్టు మాట్లాడు
౧౦. మనసు నొప్పించకుండా మాట్లాడు
౧౧. తక్కువ మాట్లాడు
౧౨. మాట్లాడకుండా ఉండడం నేర్చుకో

The shortest Horror story ever
Posted on October 04, 11 @ 07:13 am under Uncategorized and has no comments.
A husband kills his wife while their 5 yr old son was still sleeping.
The weird thing was that the kid didn't ask for his mom even 3 days after she went missing.
Father: Is there something u want to ask me?
Kid: I just wonder why mom is always standing behind your back ? 
Notes: Zend Layout
Posted on September 26, 11 @ 08:35 pm under Zend Framework and has no comments.
In ZF, enabling Zend layout has 4 parts.
1. specifying layout path in Bootstrap.php
2. Creating a default layout file in the layout path
3. Specifying the content areas for data
4. Using custom layouts
5. Specifying images and css
1. Specifying layout path
Create a folder named layouts in application/views/, or where ever the layout files are planned to be placed. After that in application/Bootstrap.php, specify the layout path in startMvc method of Zend_Layout in run() method. (runApp() in older ZF versions).
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
public function run() {
//..... other code
Zend_Layout::startMvc(array('layoutpath'=>APPLICATION_PATH.'/views/layouts'));
//... other code
parent::run();
}
}
2. Creating a default layout file in the layout path
Create a file named layout.phtml file in the application/views/layouts folder. This acts as template for the Zend site. This is the default layout file picked up, when no specific layout is asked for. This file contains the template html code, where the content html generated from view scripts gets included.
3. Specifying the content areas for data
In the layout.phtml, the content area is specified by the following code
layout()->content; ?>
The content area will have the html code generated by the view scripts.
Including another .phtml content inturn into layout.phtml can be done by the partial() method. Suppose a menu html code in _menu.html is to be included into the layout, the code will be,
Site Menu: partial('_menu.phtml'); ?>
4. Using custom layouts
In the layouts folder, you can create your own layout with the extension phtml. e.g. admin-home-layout.phtml. This custom layout should be specified in the desired controller.
$this->_helper->_layout->setLayout('super-admin-home-layout');
After specifying this, the variables between controller and view can be passed normally.
5. Specifying images and css
Images, style sheets and any other javascript files can be placed in respective folders inside the public folder. 
Pages: [1] - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34
|