Sunday, August 09, 2009

Configuring Master Pages

So far, you've used the master attribute of the Page directive in the content pages to specify the name of the master page. Even though this approach works, it requires you or your developers to specify the master attribute in each page. You can eliminate that requirement by specifying the name of the master file in the web.config file under the pages element. After adding the entry to your web.config file, all the pages in that Web application will automatically use the designated master page. For example, the following web.config file entry specifies that all the pages in the Web application should use IntroMaster.master as their default master page.







You're not limited by setting the default master page in the web.config file. Even when you use this method to specify the name of a default master page, you can still override the global value by specifying a different master page in the master attribute of the Page directive. Any values you specify using the Page directive takes precedence over the web.config file entry.

To sum up, ASP.NET's new Master Pages feature provides a clean approach to encapsulate common functionality and content a centralized location, allowing other pages to inherit from those master pages, thereby greatly reducing the maintenance. Using master pages, you can also create one set of controls and code and apply the results to all your content pages. Apart from providing a fine-grained control over the layout of the content pages, master pages also expose an object model that allows you to access the master page controls, properties and methods from content pages.

ref:devx

Friday, August 07, 2009

Ten things you might not know about Google

1) The name Google is a spelling error. The founders of the site, Larry page and Sergey Brin, thought they were going for 'Googol.' Googol is the mathematical term for 1 followed by 100 zeros. The term was coined by Milton Sirotta, nephew of American mathematician Edward Kasner, and was popularized in the book, Mathematics and the Imagination by Kasner and James Newman. Google's play on the term reflects the company's mission to organize the immense amount of information available on the web. Initially, Larry and Sergey Brin called their search engine BackRub, named for its analysis of the of the web's "back links." The search for a new name began in 1997, with Larry and his officemates starting a hunt for a number of possible new names for the rapidly improving search technology.
2) The reason the google page is so bare is because the founder didn't know HTML and just wanted a quick interface. Due to the sparseness of the homepage, in early user tests they noted people just kept sitting staring at the screen, waiting for the rest to appear. To solve the particular problem the Google Copyright message was inserted to act as an end of page marker.
3) Google started as a research project by Larry page and Sergey Brin when they were 24 and 23 years respectively. Google's mission statement is to organize the world's information and make it universally accessible and useful. The company's first office was in a garage, in Menlo Park, California. Google's first employee was Craig Silverstein, now Google's director of technology. The basis of Google's search technology is called PageRank that assigns an "importance" value to each page on the web and gives it a rank to determine how useful it is. However, that is not why it is called PageRank. It is actually named after Google co-founder Larry Page.
4) Google receives about 20 million search queries each day from every part of the world, including Antarctica and Vatican. You can have the Google homepage set up in as many as 116 different languages –including Urdu, Latin, Cambodia, Tonga, and Yoruba. In fact, Google has the largest network of translators in the world.
5) In the earliest stage of Google, there was no submit button, rather the Enter key needed to be pressed.Google has banned computer-generated search requests, which can sop up substantial system resources and help unscrupulous marketers manipulate its search rankings.
6) The Google's free web mail service Gmail was used internally for nearly two years prior to launch to the public. The researchers found out six types of email users, and Gmail has been designed to accommodate these six. The free e-mail service recently changed its name for new UK users. Following a trademark dispute with a London-based Independent International Investment Research, the mail account has been renamed Google Mail.
7) It would take 5,707 years for a person to search Google's 3 billion pages. The Google software does it in 0.5 seconds. Google Groups comprises more than 845 million Usenet messages, which is the world's largest collection of messages or the equivalent of more than a terabyte of human conversation
8) The logos that appear on the Google homepage during noteworthy days and dates and important events are called Google Doodle. The company has also created an online museum where it has all the logos it has put on various occasions so far.Dennis Hwang, a Korean computer artist in the United States, is the guy behind these witty Doodles. Hwang has been drawing the face of Google for over two years.
9) You have heard of Google Earth, but not many know there is a site called Google Moon, which maps the Lunar surface. Google Moon is an extension of Google Maps and Google Earth that, courtesy of NASA imagery, enables you to surf the Moon's surface and check out the exact spots that the Apollo astronauts made their landings
10) Keyhole, the satellite imaging company that Google acquired in October 2004 was funded by CIA.Keyhole's technology runs Google's popular program Google Earth that allows users to quickly view stored satellite images from all around the world.

Wednesday, August 05, 2009

Folder Option Missing

Many of us sometimes find the folder option missing in the windows explorer.
Here is the solution—>

1.Open Run and Type "gpedit.msc"
2.Now goto User Configuration>Administrative templates>Windows Component>Windows Explorer
3.Click on windows Explorer you will find the thrid option on the right side of screen "Removes the Folder Option menu item from the tools menu"
4.just check it,if it is not configured then change it to enable by double clicking on it and after applying again set it to not configured.
5.I hope that you will find the option after restarting windows.

Monday, August 03, 2009

Multi Google Talk

Just follow the simple steps Below:

1.Right click on google talk shortcut,
2.click on properties
3.Go to shortcut tab on google talk properties window
4.on the target textbox,add in the /nomutex to the end of the line so that it looks like below(or you can simply copy and paste the below syntex and replace the original)
"c:\program files\google\google talk\googletalk.exe" /nomutex
5.click on ok

I didnt have to do anything after this and clicking on the shortcut multiple times just gave me different google talk window.

Saturday, August 01, 2009

How Do You Speed Up Flex Builder?

Here is a article written by Brian Deitte(http://www.deitte.com/archives/2006/12/about_this_blog.htm) , explaining how to speed flex builder

Here are some of things we do:
1.Build every application in one project using multiple source paths (instead of using extra library projects)
2.Build parts of the applications as SWCs (instead of referencing their source paths)
3.Close extra projects
4.Use a system font instead of embedding fonts
5.Run "eclipse -clean" occasionally
6.Turn off "Copy non-embedded files to source folder"
7.Turn off "Build Automatically"

Things we haven't tried or just trying now and which may be helpful:
1.Build a lot of the application as SWCs or anything as an RSL
2.The Hellfire compiler (http://stopcoding.wordpress.com/2008/06/17/hellfire_compiler/)3.Use the Flex 4 SDK (or just the compiler portion) with Flex Builder
4.Merge some of the many Flex 4 compiler performance changes into a Flex 3 SDK, and using this in Flex Builder

Thursday, July 30, 2009

Want to Add your site to all search engines.

Many people designing websites today,but if it is not known to others ,there is no use in that.So everyone wants to add their sites in search engines ,so that people came to know the websites.
i will give you some list of search engines url submission link,try this link and submit your urls.Your site will be indexed in all search engines in less time and your pages will be displayed in the search results.

Google - http://www.google.com/addurl/
Yahoo - https://siteexplorer.search.yahoo.com/submit
MSN/LIVE - http://search.live.com/docs/submit.aspx
Cipinet - http://cipinet.com/addurl/
Alexa - http://www.alexa.com/site/help/webmasters#crawl_site
Aesop - http://www.aesop.com/cgi-bin/sub/submiturl.cgi
Burf - http://www.burf.com/submit.php
guruji - http://dir.guruji.com/misc/SubmitSite.php
Accoona - http://www.accoona.com/public/submit_website.jsp
Entireweb - http://www.entireweb.com/free_submission/
FyberSearch - http://www.fybersearch.com/add-url.php
MixCat - http://www.mixcat.com/addurl.php
OneSeek - http://www.oneseek.com/listings.htm
WhatUseek - http://www.whatuseek.com/addurl.shtml
Scrub The Web - http://www.scrubtheweb.com/addurl.html
Search Site - http://searchsight.com/submit.htm
SonicRun - http://www.sonicrun.com:8081/add
Abacho - http://www.uk.abacho.com/anmelden.html#nogo
Acoon.com - http://www3.acoon.com/addurl.html
Amfibi - http://addurl.amfibi.com/
homerweb - http://www.homerweb.com/submit_site.html
JGDO - http://www.jdgo.com/add.html
Myahint - http://www.myahint.com/addurlmyahint.html
Walhello - http://www.walhello.com/addlinkgl.html
Stopdog - http://www.stopdog.com/submit
Searchengine.com - http://www.searchengine.com/List_Your_Site/Basic_Submit/
eXactBot - http://www.campubco.com/cgi-bin/exactsearch.cgi?action=showadd
Megaglobe - http://www.megaglobe.com/urlSubmit
Find Once - http://www.findonce.co.uk/submit/
Net Search - http://www.netsearch.org/adds/addurl.php
Susy Search - http://www.susysearch.com/addsite/

Try this links and make your site popular..

Tuesday, July 28, 2009

About Lotus Notes

Configuration of email in Lotus Notes
Friends, today our topic is, Lotus Notes…here I share my knowledge on lotus notes. Hope this will be of use to any one of our community.

Lotus Notes and Domino are collaboration software. Lotus Notes is a client-server, application developed by IBM Software Group. IBM defines the software as an "integrated desktop client option for accessing business e-mail, calendars and applications on IBM Lotus Domino server.

Configuration of mail in Lotus notes client:Open the Lotus notes client,
1. Provide the user information
2. Provide Domino Server details
3. Select the option 'I want to Connect to a Domino Server' then click next
4. Select the lotus notes ID file saved in the System by 'Browse' and click yes to the popup message box
5. Type the password for your mail.
6. Click on finish to complete your mail configuration set up.
7. Welcome screen will be displayed.
8. Click on the 'Mail' icon

Now your Lotus notes is ready to use…you can access your email through Lotus notes.

Sunday, July 26, 2009

Creating a table & entering values into that table using rexx

This is a simple rexx code to create & entering values into that table.

/*rexx*/
ADDRESS ISPEXEC
"control errors return"
"libdef isptlib"
"libdef isptabl"

Tdsn = 'AAA.DSN'
TNAME = 'SAMPLE'

"libdef isptlib dataset id('"Tdsn"') uncond"
"libdef isptabl dataset id('"Tdsn"') uncond"

"tbcreate "TNAME" keys(ID) names(NAME)"
"tbclose "TNAME
"tbopen "TNAME

ID = '001'
NAME = 'AGENT1'
"tbadd "TNAME

ID = '002'
NAME = 'AGENT2'
"tbadd "TNAME

"tbclose "TNAME
"libdef isptlib"
"libdef isptabl"

Friday, July 24, 2009

MVS SYSTEM CODES -S237

An error occurred in end-of-volume processing of a magnetic tape data set.

Possible causes & Solution:
1. The block count of the tape label did not agree with that of the DCB. One or more blocks may have been skipped during processing.
2. An incorrect volume serial number was specified in the volume parameter of the DD statement.
3. An incorrect volume was mounted.
4. The DSN was misspelled.
1) Verify that the DSN is spelled correctly, and that the correct volume(s) are specified and mounted. Correct any errors, and resubmit the job.
2) If all the data set information appears correct, resubmit the job specifying a different device in the unit parameter of the JCL. If this does not correct the error, re-create the data set.

Ref: www.ibmmainframes.com

Wednesday, July 22, 2009

MVS SYSTEM CODES -S314

An input/output error occurred in closing a data set on a direct access device.
Possible causes: The volume or the device was defective.
Resolution: Rerun the job specifying another volume or device.

Ref: www.ibmmainframes.com

Monday, July 20, 2009

Left click and Right click tips.

As we all know that Left mouse button is easy to click and drag, select and for everything.
Do know one thing,while dragging any file or folder from one place to another right mouse button is better compared to left mouse button.

For example-There are 10 folders in a drive with name folder1 to 10, and i am moving folder1 to folder2 .So i drag the folder 1 over folder 2,it is moved.

If you have only two folders it is easy no issues,but if you have some 10 or more folders while dragging ,unfortunately you released the left mouse button.The file moved to some folder and you dont know where it is moved and you have to check all folders.

So, what to do is..Use your right mouse button for dragging file or folder.if you released the right mouse button as left mouse button in the middle,it will ask you like Copy here,move here,Create shortcuts here .So that you will know where you are moving the files or folders.

Try this in your system.

Saturday, July 18, 2009

Access Add/Remove Programs in a Single commad!!

1) Type Windows+R to get the "Run" dialog Box.
2) In that type "Appwiz.cpl"
3) That's it you can see "Add/Remove" programms Menu

Thursday, July 16, 2009

Log Levels on JBOSS Application server

There are 6 different log levels that can be configured in JBOSS Application server
A)FATAL
B)ERROR
C)WARN
D)INFO
E)DEBUG
F)TRACE

Tuesday, July 14, 2009

Oracle SQL Developer Data Modeling tool

The early adopter (EA) version of the Oracle SQL Developer Data Modeling tool is available for download on Oracle Technology Network. SQL Developer Data Modeling contains a complete set of graphical database modeling tools and utilities. It includes Entity Relationship modeling, Relational Database Design, Data Type and Multidimensional modeling, full forward and reverse engineering and code generation. This initial early adopter version is available as a standalone product, but future releases are planned to be available as an extension to Oracle SQL Developer.

http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html

Sunday, July 12, 2009

Using HashSet

HashSet class is a concrete implementation of Set interface. It creates a collection that uses a hash table for storage. Hash table stores information by using a mechanism called hashing. In hashing, the informational content of a key is used to determine a unique value, called its hash code. The hash code is then used as an index at which the data associated with the key is stored. The transformation of key into its hash code is performed automatically. You never see the hash code itself. The advantage of hashing is that it allows the execution time of basic operation, such as add(), contains(), remove(), and size() to remain constant even for large sets.

HashSet is not synchronized. If more than one thread wants to access it at the same time then it must be synchronized externally.

source: java-tips.org

Friday, July 10, 2009

How to prevent your Pen Drive from Virus?

Many of your PC/laptop’s normally gets virus because of Pen Drives or USB devices (Even PC’s who are not connected to network). Some Virus like Ravmon Virus, Heap41a worm which are not detected by anti virus normally spreads mostly by the Pen Drives. In such a case what can you do to prevent your PC from getting infected with Virus that spreads through USB devices or Pen Drives?You can protect your PC by just following the simple steps below. It won’t take much time.
1. Connect your Pen Drive or USB drive to your computer.
2. Now a dialogue window will popup asking you to choose among the options as shown in the figure. Don’t choose any of them, just simply click Cancel.
3. Now go to Start > Run and type cmd to open the Command Prompt window .
4. Now go to My Computer and Check the Drive letter of your USB drive or Pen Drive. ( E.g. If it is written Kingston(I:) , then I: will be the drive letter.)
5. In the Command Window (cmd), type the drive letter: (e.g., I:) and Hit Enter.
6. Now type dir/w/o/a/p and Hit Enter.
7. You will get a list of files. In the list , search if anyone of the following do exists
* Autorun.inf
* New Folder.exe
* Bha.vbs
* Iexplore.vbs
* Info.exe
* New_Folder.exe
* Ravmon.exe
* RVHost.exe or any other files with .exe Extension.
  • If you find any one of the files above, Run the command attrib -h -r -s -a *.* and Hit Enter.
  • Now Delete each File using the following Command del filename ( E.g del autorun.inf ) .
  • That’s it. Now just scan your USB drive with the anti virus you have to ensure that you made your Pen Drive free of Virus.

Wednesday, July 08, 2009

MVS SYSTEM CODES -S522

The wait time limit was exceeded for a job or job step.

1. The operator did not respond to a console request.
2. The program was waiting for a resource that was not available at execution time.
3. The CPU resource was not available at execution time.
4. The user request was invalid.

1. Check with the operator to determine if there were any outstanding requests for your job.
2. Check with the operator to determine if there were any problem jobs running at the same time as yours.

Ref: www.ibmmainframes.com

Monday, July 06, 2009

MVS SYSTEM CODES -S613

An error occurred in tape related input/output.

1. The JCL DD statement was incorrect.
2. An input/output error occurred in label processing.
3. The standard header labels were missing for an input data set.
4. There was a hardware malfunction.
An error occurred in tape positioning.
An error occurred in reading a tape label.
The tape label was invalid.
An error occurred in writing a tape label.
An error occurred in writing a tapemark after the header labels.

1. Verify that the JCL specifies the correct volume and device.
2. Verify that the volume contains standard labels.
3. Resubmit the job specifying a different volume or device

Ref: www.ibmmainframes.com

Saturday, July 04, 2009

Using TreeSet

TreeSet stores objects in a sorted manner. TreeSet stores its elements in a tree and they are automatically arranged in a sorted order.
TreeSet is not synchronized. If more than one thread wants to access it at the same time then it must be synchronized externally.

import java.util.*;
public class DemoTreeSet {
public static void main(String[] args) {
TreeSet t1 = new TreeSet();
t1.add("ggg");
t1.add("aaa");
t1.add("ddd");
t1.add("bbb");
t1.add("nnn");
t1.add("lll");
System.out.println("Contents of treeset");
Iterator it1 =t1.iterator();
while(it1.hasNext()){
Object o1 = it1.next();
System.out.println(o1);
}
}
}

source: java-tips.org

Thursday, July 02, 2009

Setting password for MS Office files.

Have you know about setting password in MS Office documents it is very easy.

  • While saving the document ,Click Save as button ,the save as dialog box will open,in that you have tools button at the left bottom corner.
  • Just click it and select General options .
  • General options dialog box will open ,and in password to open box enter the password for the document and click ok.
  • It will ask you to retype the password for confirmation ,type the same password and click ok.
  • Now save the document and open it again.
Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory