It is not just a dream anymore, but a fact. India has risen to the levels where America needs India for its support, for information and for technology. We are not only an economic superpower, but chief innovators of the 21st century.
I was going through Barack Obama's speech today at http://www.freakygossip.com/2010/11/barack-obama-momentous-speech-video-indian-parliament/
I heard stuff like Martin Luther King, Mahatama Gandhi, the power of zero. As we used to say as kids, the Americans are trying to boost our Ego to get stuff done. We are not still happy with the increase in prices of visas for IT people. It is a bad move and the United States of America will be held responsible for their jobs by many Indians. It is the unsaid story of our guys. The President of India may or may not be moved too much by the increase in prices, but we for sure are.
Also, we will not let America dominate and do what it feels like again. We have fire in our hearts and blood to kill people who taste it!
Showing posts with label tech stuff. Show all posts
Showing posts with label tech stuff. Show all posts
Tuesday, November 9, 2010
Wednesday, March 18, 2009
MS makes a victory in its run to code
Microsoft launches IE8 final code today
Sets start time at 9 a.m. PT for its newest browser
Gregg Keizer
March 19, 2009 (Computerworld) Microsoft Corp. will release Internet Explorer 8 (IE8) at 9 a.m. PT today, beating its biggest rival, Mozilla Corp., in the race towards final code.
The new browser (see Computerworld's review) will be available for manual download from the company's Web site, the hour selected to coincide with a keynote address at MIX09, the Microsoft-sponsored Web developer conference where IE8 will be introduced, said James Pratt, a senior product manager on the IE development team.
"We'll be launching IE8 RTM [release to manufacturing] in 25 languages for Windows Vista, XP, Server 2003 and Server 2008," said Pratt.
Windows 7 users, the vast majority of them running the beta that debuted Jan. 10, will not see the final version of IE8 until Microsoft delivers the next public milestone of the operating system, Pratt said. He declined to promise that the final bits of the browser would make it into the Windows 7 release candidate, which Microsoft has strongly hinted will be offered to the general public. "But that would be ideal," he said.
People already using an earlier version of IE8 -- Microsoft issued two betas and one release candidate in the last 12 months -- will be offered the final code via Windows Update "over the next couple of weeks," said Pratt. "We want them to have the most up-to-date version."
At some still-unspecified later date, Microsoft will "switch on" IE8's automatic download and installation through Windows Update for people running the older IE6 or IE7 browsers. In January, the company posted a tool kit that corporate IT administrators can use to block IE8's installation when Microsoft pulls the Windows Update trigger.
Pratt was confident that Microsoft's servers would stand up to the expected load when users start hitting its site for IE8 today. In January, Microsoft had to postpone, then restart, the launch of Windows 7's public beta after the crush overwhelmed its servers. "An operating system and browser are different-sized packages," he noted. "We've had lots of experience releasing browsers, and I'm confident that it will be available to all users who want it."
As the company promised last November, Microsoft used what was for it a faster-paced development cycle near the end, sticking to its promise then to issue just a single "release candidate" build, which it did in late January 2009, before moving on to final.
But that doesn't mean Microsoft has its foot on the gas. "We are very deliberate in how we release a product," Pratt said, when asked whether Microsoft would pick up the pace to match the faster cycles of some of its rivals, such as Mozilla and Google Inc. "When we build a browser, we have to balance the needs of a number of customers," he added, including enterprises that are traditionally loath to change software.
Ironically, the slower Microsoft beat the nimbler Mozilla in the race to the next major upgrade. Mozilla has had to postpone Firefox 3.5, formerly called 3.1, several times over the last eight months and has yet to issue a release candidate.
Even so, Mozilla welcomed the IE8 launch. "We're happy to see that Microsoft is not standing still," said Mike Beltzner, the director of Firefox. "But we're not standing still either. Browser makers have to keep up [because] people expect more of the Web today."
IE8 will be available from Microsoft's main download center, and from the page specific to Internet Explorer 8.
Sets start time at 9 a.m. PT for its newest browser
Gregg Keizer
March 19, 2009 (Computerworld) Microsoft Corp. will release Internet Explorer 8 (IE8) at 9 a.m. PT today, beating its biggest rival, Mozilla Corp., in the race towards final code.
The new browser (see Computerworld's review) will be available for manual download from the company's Web site, the hour selected to coincide with a keynote address at MIX09, the Microsoft-sponsored Web developer conference where IE8 will be introduced, said James Pratt, a senior product manager on the IE development team.
"We'll be launching IE8 RTM [release to manufacturing] in 25 languages for Windows Vista, XP, Server 2003 and Server 2008," said Pratt.
Windows 7 users, the vast majority of them running the beta that debuted Jan. 10, will not see the final version of IE8 until Microsoft delivers the next public milestone of the operating system, Pratt said. He declined to promise that the final bits of the browser would make it into the Windows 7 release candidate, which Microsoft has strongly hinted will be offered to the general public. "But that would be ideal," he said.
People already using an earlier version of IE8 -- Microsoft issued two betas and one release candidate in the last 12 months -- will be offered the final code via Windows Update "over the next couple of weeks," said Pratt. "We want them to have the most up-to-date version."
At some still-unspecified later date, Microsoft will "switch on" IE8's automatic download and installation through Windows Update for people running the older IE6 or IE7 browsers. In January, the company posted a tool kit that corporate IT administrators can use to block IE8's installation when Microsoft pulls the Windows Update trigger.
Pratt was confident that Microsoft's servers would stand up to the expected load when users start hitting its site for IE8 today. In January, Microsoft had to postpone, then restart, the launch of Windows 7's public beta after the crush overwhelmed its servers. "An operating system and browser are different-sized packages," he noted. "We've had lots of experience releasing browsers, and I'm confident that it will be available to all users who want it."
As the company promised last November, Microsoft used what was for it a faster-paced development cycle near the end, sticking to its promise then to issue just a single "release candidate" build, which it did in late January 2009, before moving on to final.
But that doesn't mean Microsoft has its foot on the gas. "We are very deliberate in how we release a product," Pratt said, when asked whether Microsoft would pick up the pace to match the faster cycles of some of its rivals, such as Mozilla and Google Inc. "When we build a browser, we have to balance the needs of a number of customers," he added, including enterprises that are traditionally loath to change software.
Ironically, the slower Microsoft beat the nimbler Mozilla in the race to the next major upgrade. Mozilla has had to postpone Firefox 3.5, formerly called 3.1, several times over the last eight months and has yet to issue a release candidate.
Even so, Mozilla welcomed the IE8 launch. "We're happy to see that Microsoft is not standing still," said Mike Beltzner, the director of Firefox. "But we're not standing still either. Browser makers have to keep up [because] people expect more of the Web today."
IE8 will be available from Microsoft's main download center, and from the page specific to Internet Explorer 8.
Wednesday, February 18, 2009
This is a small code but helps a lot
For all ppl who want to find out how to validate e-mail addresses visit here
Tuesday, December 30, 2008
Changes made to deploy ASP.NET 2.0 AJAX 1.0 control in MOSS 2007 application
- Downloaded ASP.NET 2.0 AJAX 1.0 extentions from http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&DisplayLang=en
- Downloaded ajax.config feature and from http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502
added and deployed wsp and activated ajax.config feature on necessary web application.
-Made a web part
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
using System.ComponentModel;
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace CompanyName
{
[XmlRoot(Namespace = WebPartConstants.WEBPART_NAMESPACE), DefaultProperty(WebPartConstants.DEFAULT_XML_ROOT_PROPERTY)]
public class TestWebPart : Microsoft.SharePoint.WebPartPages.WebPart
{
public TestWebPart()
{
this.ExportMode = WebPartExportMode.All;
}
protected override void CreateChildControls()
{
//EnsurePanelFix();
this.Controls.Add((UserControl)Page.LoadControl("~/_controltemplates/CompanyName/TestControl.ascx"));
}
/*protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
// Register the ScriptManager
ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); if (scriptManager == null)
{
scriptManager = new ScriptManager();
this.Controls.Add(scriptManager);
}
}*/
/*private void EnsurePanelFix()
{
if (this.Page.Form != null)
{
String fixupScript = @"
_spBodyOnLoadFunctionNames.push(""_initFormActionAjax"");
function _initFormActionAjax()
{
if (_spEscapedFormAction == document.forms[0].action)
{
document.forms[0]._initialAction =
document.forms[0].action;
}
}
var RestoreToOriginalFormActionCore =
RestoreToOriginalFormAction;
RestoreToOriginalFormAction = function()
{
if (_spOriginalFormAction != null)
{
RestoreToOriginalFormActionCore();
document.forms[0]._initialAction =
document.forms[0].action;
}
}";
ScriptManager.RegisterStartupScript(this,
typeof(TestWebPart), "UpdatePanelFixup",
fixupScript, true);
}
}*/
}
}
-Made a user control
--- ascx file---------
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestControl.ascx.cs" Inherits="TestControl_TestControl" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
---code file----------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class TestControl_TestControl : System.Web.UI.UserControl
{
protected void TimerFunc1(object sender, EventArgs e)
{
newLabel.Text = DateTime.Now.ToUniversalTime().ToString();
}
}
- Modified masterpages. Added scriptmanager control in the masterpage right under the webpartmanager tag. Set EnablePartialRendering to true and set SupportsPartialRendering to true in the asp:Scriptmanager tag. Removed return from onSubmit in form tag.
- Added web part on a page.
- Ajax worked!!
- Downloaded ajax.config feature and from http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502
added and deployed wsp and activated ajax.config feature on necessary web application.
-Made a web part
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
using System.ComponentModel;
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace CompanyName
{
[XmlRoot(Namespace = WebPartConstants.WEBPART_NAMESPACE), DefaultProperty(WebPartConstants.DEFAULT_XML_ROOT_PROPERTY)]
public class TestWebPart : Microsoft.SharePoint.WebPartPages.WebPart
{
public TestWebPart()
{
this.ExportMode = WebPartExportMode.All;
}
protected override void CreateChildControls()
{
//EnsurePanelFix();
this.Controls.Add((UserControl)Page.LoadControl("~/_controltemplates/CompanyName/TestControl.ascx"));
}
/*protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
// Register the ScriptManager
ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); if (scriptManager == null)
{
scriptManager = new ScriptManager();
this.Controls.Add(scriptManager);
}
}*/
/*private void EnsurePanelFix()
{
if (this.Page.Form != null)
{
String fixupScript = @"
_spBodyOnLoadFunctionNames.push(""_initFormActionAjax"");
function _initFormActionAjax()
{
if (_spEscapedFormAction == document.forms[0].action)
{
document.forms[0]._initialAction =
document.forms[0].action;
}
}
var RestoreToOriginalFormActionCore =
RestoreToOriginalFormAction;
RestoreToOriginalFormAction = function()
{
if (_spOriginalFormAction != null)
{
RestoreToOriginalFormActionCore();
document.forms[0]._initialAction =
document.forms[0].action;
}
}";
ScriptManager.RegisterStartupScript(this,
typeof(TestWebPart), "UpdatePanelFixup",
fixupScript, true);
}
}*/
}
}
-Made a user control
--- ascx file---------
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestControl.ascx.cs" Inherits="TestControl_TestControl" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
---code file----------
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class TestControl_TestControl : System.Web.UI.UserControl
{
protected void TimerFunc1(object sender, EventArgs e)
{
newLabel.Text = DateTime.Now.ToUniversalTime().ToString();
}
}
- Modified masterpages. Added scriptmanager control in the masterpage right under the webpartmanager tag. Set EnablePartialRendering to true and set SupportsPartialRendering to true in the asp:Scriptmanager tag. Removed return from onSubmit in form tag.
- Added web part on a page.
- Ajax worked!!
Thursday, December 11, 2008
Web Part Lifecycle
Following is the series of events which occurs for every web part on the page.
1. protected override void OnInit(EventArgs e)
2. protected override void OnLoad(EventArgs e)
3. protected override void CreateChildControls()
4. protected override void LoadViewState(object savedState) //Only at Postback
5. protected override void OnPreRender(EventArgs e)
6. protected override void Render(System.Web.UI.HtmlTextWriter writer)
7. protected override void OnUnload(EventArgs e)
8. public override void Dispose()
1. protected override void OnInit(EventArgs e)
2. protected override void OnLoad(EventArgs e)
3. protected override void CreateChildControls()
4. protected override void LoadViewState(object savedState) //Only at Postback
5. protected override void OnPreRender(EventArgs e)
6. protected override void Render(System.Web.UI.HtmlTextWriter writer)
7. protected override void OnUnload(EventArgs e)
8. public override void Dispose()
Calculated Columns
This blog post is an addition to the knowledge served under the technology domain in my blog. Going specifically into MOSS 2007, which has been the source of my bread and butter (no wonder I've gained weight :)), there is a feature in this product called as MOSS 2007. All people associated with the technology know deep into how to deploy the site column through features, how to create a new site column, types of site columns. What I thought people would love to know is that there is a feature called as calculated site columns in MOSS 2007. The formulas mentioned below can be used in MS EXCEL as well in case you are not a MOSS buff :).
The real mantra here is that there are site columns that need the currently logged in user name or the current date at times. The way to do these is to use the [Me] and [Today] objects. There is a further flaw in this approach. Directly entering this value in the visual code editor for the column value will throw an error. For this first create a column as Me in the content type and use that in the formula. Delete Me after the calculated column has been created to achieve the desired result. The same applies to Today object as well. Happy developing from here on :).
It is not very easy to find a sample of how to define a site column of type calculated using the SharePoint 2007 features framework. The documentations shows how to do it using the user interface (see Calculate data in lists or libraries ). The documentation in the WSS SDK about the Formula Element in the CAML Core Schemas points in the right direction but is maybe not clear enough. I tested the sample code below by using the site columns in a list definition. You might want to test it out in a content type as well - please provide feedback in the comments.
Code sample feature.xml
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Scope="Site" Title="Calculated Sitecolumn" Id="49C90DCA-6C76-4b30-99DB-7C4C7D100761">
<ElementManifests>
<ElementManifest Location="calcsitecolumn.xml"/>
</ElementManifests>
</Feature>
Code sample calcsitecolumn.xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field Name="CalcDemo" StaticName="CalcDemo" Type="Calculated" DisplayName="Calculated column" ID="{DD01AF0E-5E58-4e50-B3E8-1BFC866CA9A0}" ResultType="DateTime" Format="DateOnly" ReadOnly="TRUE">
<Formula>=StartDate+7</Formula>
<Default></Default>
<FieldRefs>
<FieldRef Name="StartDate" ID="{64cd368d-2f95-4bfc-a1f9-8d4324ecb007}" />
</FieldRefs>
</Field>
</Elements>
The real mantra here is that there are site columns that need the currently logged in user name or the current date at times. The way to do these is to use the [Me] and [Today] objects. There is a further flaw in this approach. Directly entering this value in the visual code editor for the column value will throw an error. For this first create a column as Me in the content type and use that in the formula. Delete Me after the calculated column has been created to achieve the desired result. The same applies to Today object as well. Happy developing from here on :).
- How to deploy these calculated columns through features:
It is not very easy to find a sample of how to define a site column of type calculated using the SharePoint 2007 features framework. The documentations shows how to do it using the user interface (see Calculate data in lists or libraries ). The documentation in the WSS SDK about the Formula Element in the CAML Core Schemas points in the right direction but is maybe not clear enough. I tested the sample code below by using the site columns in a list definition. You might want to test it out in a content type as well - please provide feedback in the comments.
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Scope="Site" Title="Calculated Sitecolumn" Id="49C90DCA-6C76-4b30-99DB-7C4C7D100761">
<ElementManifests>
<ElementManifest Location="calcsitecolumn.xml"/>
</ElementManifests>
</Feature>
Code sample calcsitecolumn.xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field Name="CalcDemo" StaticName="CalcDemo" Type="Calculated" DisplayName="Calculated column" ID="{DD01AF0E-5E58-4e50-B3E8-1BFC866CA9A0}" ResultType="DateTime" Format="DateOnly" ReadOnly="TRUE">
<Formula>=StartDate+7</Formula>
<Default></Default>
<FieldRefs>
<FieldRef Name="StartDate" ID="{64cd368d-2f95-4bfc-a1f9-8d4324ecb007}" />
</FieldRefs>
</Field>
</Elements>
- How to use the formulas in the site column (Its basically simple VB code):
You can use the following examples in calculated columns. Examples that do not include column references can be used to specify the default value of a column. For details on how to use these formulas refer to: http://office.microsoft.com/en-us/sharepointtechnology/HA011609471033.aspx
Wednesday, November 26, 2008
Sharepoint is bloody deep
If you go to understand what MOSS is, you will be baffled by the number of features and the number of references it has. MSDN is itself so vague in explanations. Blogs are the god of MOSS development.
I was reading about the Excel services Architecture in MOSS 2007. It is a doctorate in itself!!
I was reading about the Excel services Architecture in MOSS 2007. It is a doctorate in itself!!
Tuesday, November 18, 2008
Caught in the wrong job?
Its really like one of those "Caught in the wrong job" kind of times nowdays. I'm doing development, design, architecture, and whole lot technical documents on MOSS 2007. Yesterday the client told me that he needed a development document for MOSS 2007. So I made one - 2 MB in size. Huge document containing all the best coding practices and stuff that I did not know before.
As usual -> luck is not really what I bank on and it turned out a correct investment gyan. I got raped by my manager, that this is a bible, not a best practices document. So the 180 pages document had to be reduced in size to a 30 page document, including TOC, references, etc. I mean 1/5 th the size of the original document. And then it was supposed to go to the client. I ended up mailing the first document altogether.
Bloody e-mail. Then I called back the first mail, sent an apology to the client (my performance score is expected to suck after this) and sent him the correct documentation.
What I need now is i think: http://www.drinksmixer.com/drink8127.html. Anyone for accompanying me on that?
If you feel that I love my job is the mantra you need. Hey you. Welcome to my club.
As usual -> luck is not really what I bank on and it turned out a correct investment gyan. I got raped by my manager, that this is a bible, not a best practices document. So the 180 pages document had to be reduced in size to a 30 page document, including TOC, references, etc. I mean 1/5 th the size of the original document. And then it was supposed to go to the client. I ended up mailing the first document altogether.
Bloody e-mail. Then I called back the first mail, sent an apology to the client (my performance score is expected to suck after this) and sent him the correct documentation.
What I need now is i think: http://www.drinksmixer.com/drink8127.html. Anyone for accompanying me on that?
If you feel that I love my job is the mantra you need. Hey you. Welcome to my club.
Thursday, September 18, 2008
tech stuff
Hey nowdays i am working on sharepoint. i am with Sapient (website www.sapient.com). its a great technology. I would love to solve all the doubts you have on this technology. I can solve a lot of stuff now. lets see what you got to ask.. ask me at aagarwal10@sapient.com.
The site's live. Its an intranet site, so you all cant see it, ask me for pics and i'll give them to you with pleasure.
For all the people who need a higher download speed on their bit torrent clients, I suggest the following url.. Please read the instructions carefully and do not screw up your router in any other way. http://forums.afterdawn.com/thread_view.cfm/73686
Also one more thing. If you are using a wi-fi network. Please please use a password protected network at home/work. That is because the government of India has passed a law that if you use a open network there is a possibility of the terrorist groups using your network to send terror threats. So please be aware that it is a crime punishable by law, to set up an open wi-fi network.
The site's live. Its an intranet site, so you all cant see it, ask me for pics and i'll give them to you with pleasure.
For all the people who need a higher download speed on their bit torrent clients, I suggest the following url.. Please read the instructions carefully and do not screw up your router in any other way. http://forums.afterdawn.com/thread_view.cfm/73686
Also one more thing. If you are using a wi-fi network. Please please use a password protected network at home/work. That is because the government of India has passed a law that if you use a open network there is a possibility of the terrorist groups using your network to send terror threats. So please be aware that it is a crime punishable by law, to set up an open wi-fi network.
Subscribe to:
Posts (Atom)