Monday, 30 September 2013
Sunday, 29 September 2013
How to set Error and success message in magento
Hello Friends,
You can set error and success message in magento through the following code
Mage::getSingleton('core/session')->addSuccess(Mage::helper('module_name')->__('Please Type Your Success Message'));
Mage::getSingleton('core/session')->addError(Mage::helper('module_name')->__('Please Type Your Error Message'));
Now Code for display error and success message on phtml
Tuesday, 24 September 2013
GOOGLE TRICKZ
We all use google for searching but its time to explore the funny side of google.Here I have collected the top 7 funny google tricks that will amaze you.Some of the tricks are provided by google itself while other have been developers.
1. Google Gravity:-
We all have read the Newton’s law of gravity.Does it also apply to google?To test it follow the instructions,
Go to google.com
Type Google Gravity
Click on I’m feeling Lucky
Now you will see the effect of gravity on google.The google icon will fall down automatically.You can even pickup and throw google icon anywhere
2. Google Pacman Game:-
Play Google Pacman Game
Wednesday, 18 September 2013
WINDOWS RUN Commands !!!
1. Accessibility Controls - access.cpl
2. Accessibility Wizard - accwiz
3. Add Hardware Wizard - hdwwiz.cpl
4. Add/Remove Programs - appwiz.cpl
5. Administrative Tools - control admintools
6. Automatic Updates - wuaucpl.cpl
7. Bluetooth Transfer Wizard - fsquirt
8. Calculator - calc
9. Certificate Manager - certmgr.msc
10. Character Map - charmap
2. Accessibility Wizard - accwiz
3. Add Hardware Wizard - hdwwiz.cpl
4. Add/Remove Programs - appwiz.cpl
5. Administrative Tools - control admintools
6. Automatic Updates - wuaucpl.cpl
7. Bluetooth Transfer Wizard - fsquirt
8. Calculator - calc
9. Certificate Manager - certmgr.msc
10. Character Map - charmap
Labels:
General Knowledge
,
Information technology
Monday, 9 September 2013
simple trick to capture your screen shot
This is a simple trick to capture your screen shot.
This page shows you how to capture a screen shot of your desktop or a window. Although the print screen feature has been available on Windows machine for a long time, some people have never tried to use it and would want to find out how.
To capture a screen shot of your entire desktop:
Hit "Print Screen" key on your keyboard (or "Print Scrn", or similar).
Open an image editor (i.e. Photoshop, Paintshop, or the Windows built-in "Paint").
Press Ctrl-V to paste the image and save the file as Jpeg, Bitmap, etc..
To capture a screen shot of only a window, a popup, or an error dialog:
Make sure the window or popup which you want to capture is active (on the very front of your screen).
Hold the "Alt" button and press "Print Screen" key on your keyboard (or "Print Scrn", or similar).
Open an image editor and press Ctrl-V to paste the image and save the file as Jpeg, Bitmap, etc..
This page shows you how to capture a screen shot of your desktop or a window. Although the print screen feature has been available on Windows machine for a long time, some people have never tried to use it and would want to find out how.
To capture a screen shot of your entire desktop:
Hit "Print Screen" key on your keyboard (or "Print Scrn", or similar).
Open an image editor (i.e. Photoshop, Paintshop, or the Windows built-in "Paint").
Press Ctrl-V to paste the image and save the file as Jpeg, Bitmap, etc..
To capture a screen shot of only a window, a popup, or an error dialog:
Make sure the window or popup which you want to capture is active (on the very front of your screen).
Hold the "Alt" button and press "Print Screen" key on your keyboard (or "Print Scrn", or similar).
Open an image editor and press Ctrl-V to paste the image and save the file as Jpeg, Bitmap, etc..
Labels:
General Knowledge
,
Information technology
Sunday, 8 September 2013
some cool NOKIA secret codes
*#06# - is used to check the IMEI (International Mobile Equipment Identity).
*#7780# - resets to factory settings.
*#0000# - shows the software version of your mobile phone.
*#9999# - Phones software version if *#0000# does not work.
*#67705646# - clears the LCD display(operator logo).
*#147# - This lets you know who called you last (Only vodofone).
*#1471# - Last call (Only vodofone).
*#7780# - resets to factory settings.
*#0000# - shows the software version of your mobile phone.
*#9999# - Phones software version if *#0000# does not work.
*#67705646# - clears the LCD display(operator logo).
*#147# - This lets you know who called you last (Only vodofone).
*#1471# - Last call (Only vodofone).
Labels:
General Knowledge
,
Information technology
Full form of computer related terms
* HTTP - Hyper Text Transfer Protocol.
* HTTPS - Hyper Text Transfer Protocol Secure.
* IP - Internet Protocol.
* URL - Uniform Resource Locator.
* USB - Universal Serial Bus.
* VIRUS - Vital Information Resource Under Seized.
* 3G - 3rd Generation.
* GSM - Global System for Mobile Communication.
* CDMA - Code Divison Multiple Access.
* UMTS - Universal Mobile Telecommunication System.
* HTTPS - Hyper Text Transfer Protocol Secure.
* IP - Internet Protocol.
* URL - Uniform Resource Locator.
* USB - Universal Serial Bus.
* VIRUS - Vital Information Resource Under Seized.
* 3G - 3rd Generation.
* GSM - Global System for Mobile Communication.
* CDMA - Code Divison Multiple Access.
* UMTS - Universal Mobile Telecommunication System.
Labels:
General Knowledge
,
Information technology
Friday, 6 September 2013
increase your internet sped by 20%...
Simple Trick to increase your internet sped by 20%....
============================== ============
Follow this simple steps>>>
1]Click on start, select run and type "gpedit.msc".
2]Select to LOCAL COMPUTER POLICY>COMPUTER CONFIGURATION>ADMNISTRATIVE TEMPELATES>NETWORK> QOS PACKET SHEDULER>LIMIT RESERVABLE BANDWITH.
3]Double click on "limit reservable bandwith" and then select "Enabled" snd edit the bandwith to O.
Its a nice trick...!! try it and get internet speed 20% more..!!
Note:For some versions of windows like windows home basic versions don't have gpedit.msc command,in that case just ignore this trick...(it is not work)
==============================
Follow this simple steps>>>
1]Click on start, select run and type "gpedit.msc".
2]Select to LOCAL COMPUTER POLICY>COMPUTER CONFIGURATION>ADMNISTRATIVE TEMPELATES>NETWORK> QOS PACKET SHEDULER>LIMIT RESERVABLE BANDWITH.
3]Double click on "limit reservable bandwith" and then select "Enabled" snd edit the bandwith to O.
Its a nice trick...!! try it and get internet speed 20% more..!!
Note:For some versions of windows like windows home basic versions don't have gpedit.msc command,in that case just ignore this trick...(it is not work)
Labels:
General Knowledge
,
Information technology
,
Internet
What is hibernate
Never Shutdown Your Computer Again
Shutting down your computer saves power and prevents computer parts from wearing down too soon, but closing all of your programs every night just to re-open them again the next morning can become quite annoying.
The programmers at Microsoft have the same problem, so they designed a feature called “hibernate.” When you hibernate your computer, all of your programs are saved just they way they are and then your computer is shut off. When you start the computer again, all of your computer programs are restored. It has all the benefits of leaving your computer on overnight without any of the drawbacks.
There’s just one catch: hibernate doesn’t work on all computers. It works really well on most laptops, but it may not work on older desktops. If it doesn’t work, you’ll lose any unsaved changes to your documents, so the first time you try it, make sure you save everything that’s important to you.
Shutting down your computer saves power and prevents computer parts from wearing down too soon, but closing all of your programs every night just to re-open them again the next morning can become quite annoying.
The programmers at Microsoft have the same problem, so they designed a feature called “hibernate.” When you hibernate your computer, all of your programs are saved just they way they are and then your computer is shut off. When you start the computer again, all of your computer programs are restored. It has all the benefits of leaving your computer on overnight without any of the drawbacks.
There’s just one catch: hibernate doesn’t work on all computers. It works really well on most laptops, but it may not work on older desktops. If it doesn’t work, you’ll lose any unsaved changes to your documents, so the first time you try it, make sure you save everything that’s important to you.
Labels:
General Knowledge
,
Information technology
Basic Concept of Interface in java
Interface is collection of abstract method.
Using the keyword interface,you can fully abstract a class interface from its implementation.
example of interface:
interface Callback
{
void callback(int p);
}
Using the keyword interface,you can fully abstract a class interface from its implementation.
example of interface:
interface Callback
{
void callback(int p);
}
Wednesday, 4 September 2013
String handling class in java
In java,there are two String handling class available.That is the library class which is available is java.lang package.
String handling class
- String
- StringBuffer
Object of String class cannot change.we can change the value of StringBuffer class.
eg. String s = "Hello World";
String s = new String("Hello World");
char a[] = {'a','b','c','d'};
String s = new |String(a);
here, s is a object of String class.There are several in-built method for String handling class.
Tuesday, 3 September 2013
explanation of DDA algorithm
DDA : Digital Differential Analyzer
The dda is scan-conversion line algorithm based on calculating dx and dy.
DDA algorithm
DDA(int xa, int ya,int xb,int yb)
{
x = xa
y = ya
dx = xb - xa
dy = yb - ya
The dda is scan-conversion line algorithm based on calculating dx and dy.
DDA algorithm
DDA(int xa, int ya,int xb,int yb)
{
x = xa
y = ya
dx = xb - xa
dy = yb - ya
Monday, 2 September 2013
Binary sorting in C langaugae
The basic algorithm is this:
- Select an arbitrary element and add it to our sorted list, S.
- Select another arbirtrary element, x, and, using binary search, try to find x in S.
- Place x in S according to the results of the binary search.
- Repeat steps 2 and 3 until there are no more elements to select.
C program for binary search: This code implements binary search in c language. It can only be used for sorted arrays, but it's fast as compared to linear search. If you wish to use binary search on an array which is not sorted then you must sort it using some sorting technique say merge sort and then use binary search algorithm to find the desired element in the list. If the element to be searched is found then its position is printed.
Infix program in C program data structure
Infix notation is the common arithmetic and logical formula notation, in which operators are written infix-style between the operands they act on (e.g. 2 + 2). It is not as simple to parse by computers as prefix notation but many programming languages use it due to its familiarity.
#include<stdio.h>
#include<conio.h>
#include<string.h>
#define MAX 20
char stack[MAX];
int top=-1;
char pop();
void push(char item);
int prcd(char symbol)
{
#include<stdio.h>
#include<conio.h>
#include<string.h>
#define MAX 20
char stack[MAX];
int top=-1;
char pop();
void push(char item);
int prcd(char symbol)
{
Sunday, 1 September 2013
Concept of Agile Development Process
Agile methodology is an alternative to traditional project management, typically used in software development. It helps teams respond to unpredictability through incremental, iterative work cadences, known as sprints. Agile methodologies are an alternative to waterfall, or traditional sequential development.
Subscribe to:
Posts
(
Atom
)