Wednesday, July 2, 2008
MS Excel and MS Word shortcuts
Might be useful..
MS Word shortcuts: http://www.webprogramminglab.com/help/mswordshortcuts/Ms_Word.pdf
MS Excel shortcuts: http://www.webprogramminglab.com/help/msexcelshortcuts/Ms_Excel.pdf
XML Injection
One more type of Injection we need to be aware of since we are using XML for data transfer in most of our applications:
XML Injection:
Click here to get some more information:
How to add sitemap.xml for BLOGSPOT.COM
Please follow below mentioned steps in order to add a sitemap.xml for BLOGSPOT.COM. At this movement I am assuming that you have already verified your blog website adding Google provided meta tag on your home page of blog.
1. Goto Google webmaster tools URL: www.google.com/webmasters/tools
2. Enter your gmail username and password
3. Click on the website link for which you want to add sitemap.xml file
4. Click on Sitemap link
5. Click on Add a sitemap
6. Select “Add General Web Sitemap” option from the drop down menu
7. Enter file name as “ATOM.XML”
8. Click on “Add General Sitemap Button”
9. That’s it J you are done. Google will verified your Atom.xml file within few hours…
Gmail Rolls Out 13 New Features
Gmail rocks and all of you knew it already, but even so, users always want to see more features from Google's mail service. Regardless if we're talking about folders or a different UI, people have always requested new functions. Because of that, Google has recently rolled out Gmail Labs, a special testing platform which incorporates test versions of the upcoming Gmail features which could be used by all users of the mail service.
"People often ask how we decide what to build next. It's usually a mix of factors, like how many users are asking for it (think delete button, vacation responder, and IMAP, among others), how useful we think it will be (think chat, conversation view, etc.) or how much fun it will be to work on (this is actually really important). We have all sorts of debates about each option, we weigh the pros and cons, and then some of the time we probably make the wrong decision," Keith Coleman, Product Manager, mentioned the reasons for implementing the new platform.
In other words, Gmail Labs is a testing platform designed by Google based on your feedback. If you and lots of other users request the same feature, Google designs it and integrates into Gmail Labs, in order to see what other people think about it. In case positive feedback is received, Google may bring the functionality in final version and upgrade it from Gmail Labs.
"The idea behind Labs is that any engineer can go to lunch, come up with a cool idea, code it up, and ship it as a Labs feature," the Google official explains. "Labs is now out to all English users (US and UK), and administrators using Google Apps can choose to enable Labs by checking the `Turn on new features' box in Domain Settings."
At this point, no less than 13 functions are available under the Gmail Lab link included in all Gmail accounts. All you need to do is to navigate to Settings and click on the last tab called Labs. Here you can find all the available experimental features. For instance, you can now choose new chat emoticons, mouse gestures for Gmail, custom keyboard shortcuts, custom date formats and many others. Obviously, the main goal of this testing platform is actually to get feedback, so feel free to send your opinion about the new features to Google.
Tuesday, June 3, 2008
Excel file download on MAC
In order to download the .xls file on MAC machine, we need to set following content type in the response object.
Response.AddHeader "Content-Disposition", "attachment;filename=" & strgroup & ".csv;"
Please note: “attachment;”
Wednesday, May 14, 2008
JavaScript Trim function
function trim(s) {
while (s.substring(0,1) == ' ') {
s = s.substring(1,s.length);
}
while (s.substring(s.length-1,s.length) == ' ') {
s = s.substring(0,s.length-1);
}
return s;
}
JavaScript Replace All function
// This function replaces all instances of findStr in oldStr with repStr.
function replaceAll(oldStr,findStr,repStr) {
var srchNdx = 0; // srchNdx will keep track of where in the whole line
// of oldStr are we searching.
var newStr = ""; // newStr will hold the altered version of oldStr.
while (oldStr.indexOf(findStr,srchNdx) != -1)
// As long as there are strings to replace, this loop
// will run.
{
newStr += oldStr.substring(srchNdx,oldStr.indexOf(findStr,srchNdx));
// Put it all the unaltered text from one findStr to
// the next findStr into newStr.
newStr += repStr;
// Instead of putting the old string, put in the
// new string instead.
srchNdx = (oldStr.indexOf(findStr,srchNdx) + findStr.length);
// Now jump to the next chunk of text till the next findStr.
}
newStr += oldStr.substring(srchNdx,oldStr.length);
// Put whatever's left into newStr.
return newStr;
}