Technical News about Microsoft and tips from My learning
Wednesday, June 03, 2009
Multiple Validation Groups limitation
Within the single form it is evident that you can have multiple validation groups. To explain more, it is good to throw some light on such requirement. In our current project we have the following requirement.
If you observe this screenshot, the “Request a Quote” box is repeated. And on click of “Add More” button, one more “Request a Quote” would be added to the screen. Every time such a box is added, they are generated along with RequiredFieldValidator and adding the ValidationGroup property with the respective item index. In the above case, we have 2 validation groups. Now the problem is about validating the required fields on “Submit” button.
If there is only one validation group, you can directly associate the validation group to button with the “ValidationGroup” property. But in this case, we don’t a direct association of single validation group with single button. Hence we need to associate the multiple groups with the submit button, as mentioned below
The latest .NET Framework v3.5 doesn’t support the multiple ValidationGroups association before submitting the page to server. Here is the information about such feature unavailability. As it is a limitation with .net framework, started exploring the alternatives.
Got many articles, to resolve this situation. Javi on his one of the old posts, mentioned a JQuery mechanism along with a custom button control. Brain Main’s blog has similar post. Many more if you bing.. What every they are, they all look at the simple Validate() method of Page class. Instead of investing my time again & again and reinventing the same wheel, i decided to go as simple as possible of using Page.Validate and verify that the Page.IsValid property to decide to proceed with the consecutive commends execution. Code looks like the below
Page.Validate(); if (Page.IsValid) if (ValidateItemOptions(3)) { // Means there is no Error with the data as well as Required fields string strIPData = CollectPreviousItem(); // Invoke the Bussiness Method }
Do you have any other possibility??
(ofcourse, you would not.. but just checking if some thing unearthed would see light)
Today, almost more than 4 hrs I'd spent on this issue. Do you want to know what is that? Here is that. I have 4 checkbox elements and I have to do the following conditions
Condition 1) Any one check box has to selected
Condition 2) If any of the first 2 check boxes are selected, my code should throw an exception when the 3rd check box is selected
Condition 3) vice versa for Condition 2
A picture is worth of 1000 words. Here is the actual requirement.
Hope you got the actual picture. Now here comes the actual twist. You can do that with simple if conditions, but i thought of implementing this using territory operators using a single if condition. And the condition goes like this..
Within our current project, we faced a requirement such that there are multiple checkboxes and the user is required to select any one of them (at least one of them). So as there are multiple checkboxes, decided to go with CheckBoxList control. Now the problem is that, we need to show a error message if the user is not selected any one of them. The problem also extends not just there, but the display text should be culture specific.
So the story started long after I've written this post. But editing this entire post due to a simple non supportive feature by IE. I’ll come to that point little later, let me first detail the requirement and solution. There is one more solution for this unsupported error. Please read thru the post.
For all the client side validations, it is widely known that validation controls supported by ASP.NET framework are popularly used. But these controls can’t handle the CheckBoxList. Hence the following solution.
Step 1: Place your CheckBoxList control in a separate div as shown below. Observe that the text for these controls are populated from database depending upon the user culture
Step 2: Use ASP:Lable and get the error message while loading and place in a separate div and hide this div by default as mentioned below. Please note the div ID as cblError1 and the style is set to hidden by default
Step 3: Write a JScript function that reads all the client side rendered elements as input objects and checks whether any of them are checked or not. Code explains more in detail
function CheckListValidation(cblItm, errDiv) { var tDiv = document.getElementById(cblItm); var chkitems = tDiv.childNodes[1]; var chkitm = chkitems.getElementsByTagName("input"); for (var i = 0; i < chkitm.length; i++) { if (chkitm[i].checked) { return true; } } document.getElementById(errDiv).style.visibility = 'visible'; return false; }
Step 4: Now it is the turn of invoking this function from the button click. Every button is having a method called as “OnClientClick” along with Click. Invoke this function from that method as mentioned below
Step 5: All setup and the code is running fine. But there is a problem with this code while running in IE. IE 6 and above doesn’t support the getElementsByTag
var vTe = document.getElementsByTagName(..);
There is a long story for this. Let me post one more post for the better mechanism of CheckBoxList Validation. Until then, what are your comments??
1) Which programming language is faster ? VB or C# ?
This is regular and majorly mistaken by the VB developers and mistakenly highlighted by C# developers. According to the .NET architecture every language code is converted into MSIL, hence every language code is common on the first compilation. Then this MSIL is converted onto the native code. The entire purpose of converting the ELL into MSIL is to obtain the Interoperability between Commonly used languages. Hence this is absolutely false, and all we need to remember is that better code generates better performance results and vice versa
2) CodeBehind is better than InLine
It doesn’t really matter whether you implement the code in a separate file or with in the same, the reason behind this is .. anyhow, the IIS is going to compile for the first time and going to cache the page DLL. And once this is done, it doesn’t really mean any thing for the IIS towards processing and generating the output HTML from our ASPX page. Hence, it is totally untrue in-terms of separation of your code to single code behind or multiple code behind pages
3) Use WebServices as much as possible
LOL.. this is my first response for all those who say this. Right .. webservices are the break through in the industry, it doesn’t mean that use it all places. It is also myth to use webservices with in a big application having multiple project within same solution. My recommendation towards using the WebService depends on the type of the system. Use webservices only in case of different systems not within the similar systems
On 22nd of this month, i got a mail from Abhisheik about this event. This is the first of it’s kind by Microsoft to connect all bloggers. Points that rolled during this meeting are
0) Freebees at TechEd towards. MCP Exam tokens to attend any one exam for free
b) APIs are open to Plugins new features by community to integrate with Silverlight
Give a look at SmoothHD.com for some demos on smooth streaming
3) Release of Expression Blend 3
4) Pandu spoke about Sketch Flow in Expression Blend3
5) Nano Car experience and IPLT20 are developed using .NET technology – a feel good factor. Hope Silverlight streaming would be next generation of media transmission
6) IE 8 and WebSlices and Accelerators are going to be the part of IE8 highlights and key elements of success
7) Interoperability Lab from Microsoft is being setup at Bangalore and this is open for all public with out any fee
During this meeting, Abhisheik mentioned about a trick while presenting the Naked Browser Competition, that is run the command “explore –extoff” to open up the IE8 with lightening fast. This command opens IE with out enabling any Add-ons, which is a plain old fashioned and classical browser of IE4 or IE5 like. Anyhow, it is good that we can use the latest component in classical old style.
June 25th is the next time we can connect as the 2nd event of this kind. Did you attend this? Did i miss any point?
Now-a-days am conducting few interviews for our organization. While sitting in the other side of the table, I've visualized why most of the interviews fail with me. But when conducting these interviews, most of the candidates are attending with self confidence that they are suitable for the mentioned role and attend without preparation.
When people do some real preparation, they tend to fail due to lack of awareness at the interviewer towards interviewing techniques. Having failed in many interviews, I've learned that the interviews fail because of the following...
Reflection (or) Mirroring: The interviewer tends to see self within the candidate. The interviewer starts to compare self with the candidate and evaluate. This evaluation is totally personal. The yard stick for measuring the candidature is not generalized, but influenced.
Template (or) Checklist: The interviewer has a template of a questionnaire. The interviewer measures the candidate with respect to the list of standard questions that are available within the checklist. Of course, this checklist would vary from different roles, but majorly depend on the predefined set. There the outcome is majorly with standard FAQs. The yard stick here helps to some extent but not in all means.
Unprepared: This type of the interview always starts with, "Tell me about you". If this is the first question, I would ask them as, "What is the fun in submitting the profile before the interview". The only reason is that they are lazy to understand the candidate, and tend to ask questions as the interview progresses. These kinds of interviews are not in the control of interviewers but in the control of the candidates. If the candidate is smart enough to understand this situation, they will make use of this situation and sell themselves.
Yes, am mentioning about Security at Silverlight applications. Well, most of the developers think that Security is not the feature of the application. and they claim that it is the responsibility of the framework on which they are developing, be it as .net or java or any other. Thus, they don’t even worry about why security should be the core of any application and it should be given prime attention.
Microsoft has an initiative towards security with in any software development life cycle. This initiative is known as SDL, Security Development Lifecycle. Their definition of SDL is neatly designed as displayed.
And also they have released a security guidance document for writing and deploying Silverlight Application. The document can be downloaded from this link. The TOC is some thing like this
Threat Modeling and the Security Development Lifecycle
Background of Web Security
Same-Origin Policy
Cross-Site Scripting Attacks
Cross-Site Request Forgeries (CSRF)
A CSRF Mitigation: Nonces
Silverlight and Web Security
Changes from version 1.0 to version 2.0
How Silverlight Works
XAML
XAPs.
The Silverlight Sandbox
EnableHtmlAccess
ExternalCallersFromCrossDomain
Silverlight Networking
Cross-Domain Policy Files
How to Maximize Safety of Cross-Domain Access
Trusting Third-Party Domains
LANs and Security Zones
Internet Explorer and the XDomainRequest Object
Sockets
FAQ
How can I safely display a Silverlight ad on my Web site?
Is it safe to load arbitrary XAML in my Web page?
Is it safe to load arbitrary XAML from managed code?
Is it safe to display arbitrary media in XAML?
Is it safe to allow users to upload arbitrary XAPs to my Web site?
How can I tell if a file is a Silverlight application?
Is it safe to render XAML or run XAPs on my server?
How can I make sure my XAP is loaded only from a specific domain?
Is it safe to hide secrets in my XAP?
Does the PasswordBox control protect the password in memory?
Where can I find documentation for these features and APIs?
From long time, I've been looking out for a better regular expression for my web application. Every time, I adjust with some freely available expressions and complete the work. But this time, I've decided as not to compromise with what I get for free. And started writing my own expression.
My email validator should justify all the following conditions..
1) it should restrict the user name length between 4 to 50 characters length - {3,50}
2) it should allow dots, underscore, hyphen. But not as starting point - [-.\w]
3) it should allow numerical as well as alphabetic characters of both cases - [0-9a-zA-Z]
4) it should contain one dot after one @
5) all the chars after @ should be at least 2 characters length and may be up to 20 characters consisting of alphanumeric with both cases
After doing all kinds of R&D, concluded as below. Correct me if am mistaken. And extend if you have any further to add
Ofcourse, i might sound late in this announcement, but better late than never. On 31st October 2008, Microsoft has announced the CTP version of Visual Studio 2010 and Framework version 4.0. And their statement goes like this.
Visual Studio 2010 and the .NET Framework 4.0 mark the next generation of developer tools from Microsoft. Designed to address the latest needs of developers, Visual Studio delivers key innovations in the following pillars: Democratizing Application Lifecycle Management Application Lifecycle Management (ALM) crosses many roles within an organization and traditionally not every one of the roles has been an equal player in the process. Visual Studio Team System 2010 continues to build the platform for functional equality and shared commitment across an organization’s ALM process. Enabling emerging trends Every year the industry develops new technologies and new trends. With Visual Studio 2010 and .NET Framework 4.0, Microsoft delivers tooling and framework support for the latest innovations in application architecture, development and deployment. Inspiring developer delight Ever since the first release of Visual Studio, Microsoft has set the bar for developer productivity and flexibility. Visual Studio 2010 continues to deliver on the core developer experience by significantly improving upon it for roles involved with the software development process. .NET Framework 4.0 contains numerous improvements that make it easier to develop powerful and compelling applications. Riding the next generation platform wave Microsoft continues to invest in the market leading operating system, productivity application and server platforms to deliver increased customer value in these offerings. With Visual Studio 2010 and .NET Framework 4.0 customers will have the tooling support and the platform support needed to create amazing solutions around these technologies.
Now-a-days am attending interviews for my next job. Most of the calls are for the Architect position. While preparing for these, realized few responsibilities and activities that were part of my previous roles. And they are the main theme of this post.
As mentioned in the post title, questions that comes to every developer's mind is..
who is an Architect?
who can become an Architect?
what an Architect do?
what are the prerequisites for an individual to become as an Architect?
etc.,
Having mentioned all such questions, , would like to make things clear, out of my experience. Readers has every right to deny or challenge my understanding.
First of all, an Architect is like soul in the human body which you can never see but always experience the existence. This definition is totally true in small sized organizations. Because an Architect plays every role that is part of any implementation with in small scale industries. Architects are expected to be technically sound and functionally expert. The expertise comes with the knowledge and experience they gain from their previous jobs or personal observations from different implementations.
I remember reading from one of the articles by Mr. Joseph Hofstader, 'On software projects, the title Architect is often ambiguously defined and the value provided by architects is not easily quantifiable..'. That's true. In most of the situations the role is not predefined by either management or any other. But in all cases, the person who is acting as an Architect, will give life to the situation and serve the purpose that is being sought for. Did anyone ever thought that how this has become possible from nowhere to everywhere.
The only reason for the success of any Architect is the following..
Requirements gathering and understanding the business from the point of investors
Drawing the feasible and workable model in-terms of Technology and Business
Determine which Design pattern would best suite for the current situation and prototype
Convey the sprit of the Design to the least level of the ladder of development team
In any case, if any of one is failing, the consequent steps will yield unexpected results. For all the success of any and every Architect, the fundamental points are..
understanding the business and
correlating their past experiences or success stories of great applications implemented across the industry
Having mentioned that, the designation of an Architect wary from Technology vertical to Enterprise level. Depending on the role and responsibilities the designations can be attached to them. For about 3 yrs in my career I've freelanced working with different industry giants on short term as life saving or rescue missions for different domains. The designation with in the teams that I worked, depends on what am I asked resolve.
As it is very short period of time with every client, it is next to impossible to understand the business and the architecture of the application that is being built over 2 yrs and resolve the bottlenecks of the application. But one thing that I kept on my mind towards understanding the bottlenecks of any application is the .NET framework fundamentals and their flaws.
Coming back to the definitions and flavors of an Architect, there are different varieties of designations that are widely popular in the market.
Technical Architect, is some one who is extremely knowledgeable on specific technology. This person purely concentrates the latest updates of the technology
Solution Architect, is some on who is deeply aware of the business and the functionality of every interacting pieces of the business. This person is not necessarily technology agonistic
Enterprise Architect, is some one who takes care of the business and concentrates on how to make different functional units to work aligned to mission and vision of the Enterprise
Infrastructure Architect, is some one who takes care the smooth execution of the release management of the application from development phase to production environment. This role is the key for the application execution bed.
Apart of the above mentioned roles, there are plenty of fancy designations that would sound like, Software Architect, Business Architect, blah .. blah.. In this post, i've mentioned about different designations and roles that an Architect would be playing. Will try to post some other interesting facts about an Architect in the next post. Till such time, happy reading and blogging.
Microsoft has released .NET Framework 3.5 Service Pack 1 on 11th August 2008. Do you believe if I mention here that when compared to the .NET v3.5 with .NET v3.5 SP1, there are
16 extra namespaces added
525 new types are added
5228 Fields are added along with
22007 IL Instructions are added to v3.5 SP1 and
631 Methods are removed from v3.5
Don't get surprised.. these are not my inventions. NDepend is a tool that will help you to understand any given assembly. Patrick Smacchia, an MVP for C# has a detailed note on his blog about the version differences. I recommend every one to give a look at his post, " .NET 3.5 SP1: Changes Overview "
Maximum Transfer Rate in my life Today while am downloading the interview of Biff Gut from ARCast.Tv, i've reached the maximum download that i ever encountered in my life. Secondly, this download is from WiFi network.
I've never attained such a large transfer rate even with the wire connected network.
On top of this, this network doesn't belong to our company, but to the company situated at 2 stairs above our office. isn't is strange.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Creating your own search engine is not a big issue with the availability of the current technology. Apart from that, if you want to get results thrice that of a single search engine.. here is a mechanism for you to search with Live, Google as well as Yahoo at the same time.
The reason being that, http://mysearchoff.com is the place where you can perform a search with the above (Three) search engines. The trick is this, we are going to use this facility for our IE.
Final Step: Name the search as Sweet as you like and Press Install button.
By pressing the Install button the JScript of the webpage will install the search component on your IE. And you can see that on the top right corner of your IE with the name that you have given at the 3rd step.
Note: This works only with IE7 or IE 8. You can see that the search on my IE looks as seen below ..
Though the runtime that is released on 28th March 2008 is not related to .NET, but I see a huge breakthrough from Microsoft towards the runtime engine growth as well as the next generation runtime engines. Infact, if they could do it with MS-Access, it is not a big deal for Microsoft to introduce such similar runtime for .NET CLR as well.
Hopefully, in the near future we would see the same kind of runtime for .NET as well, leveraging the .NET languages to the next level of localisation. Honestly many a kind of the following questions are cooking in my mind... help me if you have any clue for any of the following
Do we really require a localised version as such?
What benefit that a localised runtime will add feather to the application?
Rather confirmed, am now more confused... who will help me..
Today, I've downloaded IE8 beta 1 as well as Silverlight 2.0 installed on my laptop. This day have seen many products released at Mix 08 by great personalities like Scott Guthrie, Bob Familiar, Guy Burstein, IEBlog, etc. According to Jane Kim at an interview for Mix08, Activities and WebSlices are two of the most exciting new features in IE8.
Apart of IE8.0 and SL2.0, there are other products such as
The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection.
Unity addresses the issues faced by developers engaged in component-based software engineering. Modern business applications consist of custom business objects and components that that perform specific or generic tasks within the application, in addition to components that individually address cross cutting concerns such as logging, authentication, authorization, caching, and exception handling.
Here is the road map for Enterprise Library version 4.0 and Unity
This is a nice talk about how the web evolved and where it should have been as of this day. According to Douglas Crocford, instead of progressing into new technology, we are degrading our technology into where it all started.
Shocking !!! isn't it !!! .. listen to him from his own voice. His discussion has roots back from Herman Hollerith and the 1890 census. In the begin of this episode, I couldn't imagine how this gentleman brought the relation from the good olden days to now-a-days AJAX and JSON. Am convinced with his idea, and certain facts that he is mentioning about are REAL. According to him, we are doing research on the great thoughts that are published way back in the history by many great scholars. Outstanding ..
During the discussion, he mentioned the failures of Java. Another interesting point is that he tells where and how Microsoft could be successful in the key failures of Java. All these days I've seen the failures vs success points of these both technologies from the point of a Developer, but after this Webcast, I realised the areas as visualised by the real researcher. Yes, he has a vary valid points to give attention towards introducing the new bugs to the application at every new release. One more point that he highlighted about the "Open Source" vs "Proprietary Source" as, at the open source there is no single responsibility towards the bugs introduced / induced onto the source. Where as the proprietary source takes the responsibility and fixes them as a patch to the application. Yes!! that too convincing to me.
This is the first time am giving attention to such talks. Probably because of this, I felt that this talk has many points to give attention. Anyhow, overall this is a great talk and every mind that want to contribute to the progress of our technology, should listen to him and put some thought process towards these points.
For the ASP.NET pages that has no user input it is a best practice to have the page register with EnableViewState=“false”. This will increase the response time to 200% of the default.
Along with that, you can also do the one more important is that, anyhow these pages have no user input. Secondly, these will have data that is read-only from database. Thus, you are sure that there is no activity from the user that could be saved onto disk. Perhaps the user might work with the data that is available on the page.
Hence, keeping all the above point in mind, by setting the session’s state to read-only makes the WebPages more effective and the response time increases drastically to about another 200%. Think this and change your web page attributes from the next time onwards
Did you ever thought that Bill Gates named their company as "Microsoft"?.. it was a billion dollar question to me all these days. At the early days when Bill is forming his company along with his friends, sought recommendations for a good and fancy name. Every one gave their won stylish and trendy names. They are not ready till their first cheque is due to them. While Steve Balmer is talking about a product that is the brain child of Bill, mentioned as ".. it is a SOFTware for MICROprocessors .. ", these words lead the idea to name their company as Microsoft. And the rest is history and preset.
With the new year roll out, Microsoft has initiated a new website with the caption as mentioned at the subject of this post. Yes, they are starting a new initiative with all the Standards that are in place with the industry giants and the best out of Individuals, Corporations, Academics, who not ... every one ..
http://www.microsoft.com/standards/ is the link for all such standards. The initial thought for this resulted from the Interop team. They have a separate home for them as http://www.microsoft.com/interop. The history has 2 yrs old story to come out with such standards towards Interoperability. And finally they are with the standards that are in best practice with industry.
I just started going through one by one.. did you ??
The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.
I've downloaded this, if any one require this, you can drop me a mail or can collect from me.
Who says that Microsoft manufactures products only to sell ?? Microsoft has many products that are free to download. As am into .NET and specially with Visual Studio, am aware that Visual Studio is free to download from Microsoft's website. Yes, that's true.. Microsoft give Visual studio 2008 Express Editions, MSDN Library for Visual Studio 2008 as well as the Runtime for the latest .NET framework 3.5.
Here is the link to learn more towards free products as well as priced products. To know more about the product information about Visual Studio 2008, click here.
That's true, you read the title correct. BBC recently wrote about this on 6th Dec 08. Microsoft is working out towards the XP operating system to be a reality on the co called $100 laptop or XO. If things go as scheduled, $100 Laptop or XO will be a reality by the mid 2008.
James Utzschneider, GM for Marketing and Communications from Microsoft, wrote about this at his blog. According to him, about 40 engineers are working towards mid 2008 to come out with a production-quality release. The XO laptop works with 1GB Flash memory, when compared with traditional Hard Disk Drive.
OLPC, One Laptop Per Child, organisation is having a great idea towards making this product into a reality. During June 2008, Intel announced a laptop under $220 with a title as "Classmate PC". This is similar to that of XO laptop, but some of the basic difference is kind of 2GB Flash memory in ClassmatePC, where as 1GB in XO laptop.
These kind of laptops are really good towards educating the next generation kids towards the technology. Isn't a great work..
Servers belong to Office. All these days, wife's worry that their husband not only work wholly with LapTop, on top of this, Micorosoft is coming out with one more product titling as "Stay at Home Servers". Don't you believe this .. pay a visit to their product page. Microsoft addresses this as "WindowsHomeServer". The advantages explained in nice video. This video has all the possible places that every home can have and what every one can do from every location of common home.
Where are we going .. and where is the infrastructure is moving to ?? anyhow, when will India have all such infrastructure inbuilt apartments or homes built with such facilities.
Microsoft Visual Studio Team has announced the new font for the Visual Studio Editor. The old font in the Visual Studio editor will look like the below one. You might wonder what is the difference between the old code font as well as the new Microsoft Consolas Font Family. The main difference in the words of microsoft is.. "All characters have the same width, like old typewriters, making it a good choice for personal and business correspondence". You can download the latest font from Download Section.
Where as the new font will have the look as displayed below
I've updated my Visual Studio with the latest font. Did you?
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Yes, that's true. You haven't heard about this website. oops.. Mistaken, it is not YOU Haven't.. but I Haven't heard of this till this day. This
website has 4 major sections as displayed in the image. 1) MSDN Admin KIT 2) MSDN DDIK - Developer Desktop Inventory KIT 3) MSDN BluePrint - Helps towards your role at your organisation 4) SDLC-in-a-Box, with lots of testimonials
Every one should give attention to this site. This site has some thing or other for every technology person. This site can be mentioned as a gold mine. Did you come acorss of this?? What are your comments on this??
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
After a long time, today, got a requirement from ASP page. Our current client has a major application written in classic ASP 2.0, and we have given him an extension functionality written in .NET with VB as programming language.
Now, we have 2 different applications running at the same box with 2 different technologies, ie., an ASP application and an ASP.NET application. For both of the applications, there is a common functionality talking to the database via a webservice written in Java. The current situation demand a common library that will be reused at both ASP.NET pages as well as ASP pages. Apart of the requirement, the one point that led me to post here is "How to call a .NET Assembly in a Classic page"
Creating .NET Assembly
Imports System Imports System.Runtime.InteropServices PublicClass MyLibClass PublicFunction MyLibFunction() AsString Return" Invoked the method from COM successfully .." EndFunction EndClass
With the above code, you can generate a .NET DLL after compiling with either Visual Basic Command Line Utility, VBC.EXE or from the Visual Studio Environment. While compiling this code, give extra attention at the assembly attribute to make the DLL Visible to COM as mentioned below.
<Assembly: ComVisible(True)>
If you are using the Visual Studio Environment, go to the Project Properties, at the Compile section don't forget to check the "Register COM interop" check box. This check box will be by default unchecked, indicating that the DLL will not be exposed to COM.
Now the assembly is ready to reuse. But before we start the actual implementation, if you want the Assembly should be register with the GAC, you have to take the assistance from StrongNameKey file. You can create a Strongname Key file with the command utility SN.EXE or from the Visual Studio as well. The command to create the Strongname Key file is as mentioned below
> sn -k strongnamekeyfile.snk
Once you are done with the strong name key file generation, you can attach the key file either with the /keyfile:strongnamekeyfile.snk option or with the assembly attribute as <Assembly: AssemblyKeyFile("strongnamekeyfile.snk")>
Now it is the final time to compile your code and do the calling stuff from ASP page. Once you compile the code from Visual Studio, you will have 3 files, .PDB / .TLB / .DLL. The .DLL is the actual file. You have to do 2 things to share this DLL.
Register as COM as well as with GAC
Now that the DLL is ready, we will take the assistance of REGASM command line utility to register as public assembly.
> regasm /codebase /tlb:a.tlb OurAssemblyFile.dll
With this command, the DLL will be registering at the registry. Please don't forget to use the /codebase option. To register the same with GAC use the following command
> gacutil /if OutAssemblyFile.dll
This command will register with the GAC and is available as reference within the .NET Framework. With the first command, the object is ready to invoke from ASP code. You can use the COM component with Server.CreateObject("OurAssemblyFile.ClassName") command from ASP page. The actual implementation at any ASP page will look like as mentioned below
dim objCom set objCom = Server.CreateObject("libraryNameSpace.libraryClass") objCom.DoSomeWork() ' this method doesn't return any value
Finally, if this page throw any kind of error as Unindentified Class name, then the only solution is to reset the IIS.
For all those who didn't attend the Mix at UK during Sep 07, here is a good news. The good news is not only for those who didn't attend the MIX, but for all the technology lovers as well as persons who are passionate about latest technology happenings.
The two day event is now available for offline viewing at their website. Here is the link that give you the download of all the videos of all the sessions that happened. Isn't nice for all of us, who missed the event and who couldn't afford to attend the event.
It's time to download and view them offline. Am going to download all the events, if any of you doesn't have the i-net connectivity or by any issue, could not download these videos, drop me a mail at DSKCHECK at MSN dot COM
Most of the industry say that, Google is the top search engine and will give you lot of results when you search. But the missing point is that, Live Search gives you deeper search when compared to Google.
Surprising !!!! i just did a small search for my name, Chakravarthy, at both the search engines. To make the figures matter, i go upto 100 pages in Live Search results. Where as, Google takes me only upto 84 pages. To my surprise, when i go back to the 83 page, then i see the search pages count is increased from 84 to 87. is isn't it weird ..
And adding to my surprise, i read a statement at the bottom of the last search page as
"In order to show you the most relevant results, we have omitted some entries very similar to the 870 pages already displayed"
Power of SliverlightSiderys webpage is designed using Sliverlight. An awesome work. This work simply demonstrates the power of using Sliverlight. I can use this as starting point to present the Silverlight technology to my customers.
Did you see this ??? Pl visit that page and post back your comments on the same.
Recently, while coding for a Text Field value padded with left zeros, realised the importance of the RETURN key word for the FUNCTION written in JavaScript. Before i mention the actual importance, let me describe you the situation.
Scenario: A Text box need to be padded with zeros and should have the length of 7 digits, even the data entered is less than 7.
Ex: When the key board input being 88, the text box should show 0000088. Note the ZEROs padded on left.
So, started with a JavaScript function as mentioned below
function PadZeros(x) { var v = x.value; while(v.length<7) { v = '0' + v; } var ss = document.getElementById(x.id); ss.value = v; }
After this, the text box is padding with ZEROs and the code is perfectly running. To allow this to code execute for any given text box, all you have to do is, add the ATTRIBUTE to that text box. And while adding keep one thing in mind that, we would be calling this function on BLUR, ie., LOST FOCUS of the text box. The code is as mentioned below.
Please note the 'this' keyword. The usage of 'this' keyword has many possibilities. Let me see that, one day will post where the 'this' keyword is used and their context. And also note that, neither the function is returning any value nor the text box is added with the code that handles the output of the function. Will come to that in short.
Every thing is working perfectly well and going on smooth. But suddenly, i realised that the text box is just padding ZEROs when there is no Input. I see all ZEROs in the text box as 0000000. Then came the real trick to the function.
function PadZeros(x) { var v = x.value; if(v.length == 0) { var vTe = document.getElementById(x.id); vTe.focus(); alert('Please enter Provider Code .. '); } while(v.length<7) { v = '0' + v; } var ss = document.getElementById(x.id); ss.value = v; }
What do you see here is the mechanism to set the focus back to the text box. Great... but that even is not solving my purpose of leaving the text box blank when there is no input. This function is still adding ZEROs to no input and showing all ZEROs. Then came the purpose of the 'return' keyword. The entire requirement is simply solved by this keyword. All i've done is.. changed the code as mentioned below.
function PadZeros(x) { var v = x.value; if(v.length == 0) { var vTe = document.getElementById(x.id); vTe.focus(); alert('Please enter Provider Code .. '); returnfalse; } while(v.length<7) { v = '0' + v; } var ss = document.getElementById(x.id); ss.value = v; returntrue; }
Recent development in my technical life is that, started working out with Orcas Beta 2. So, thought to blog about the latest happenings with C# language. The idea emerged to start a series of posts related to C# new features. This is the first of ever such kind of blogging specific to a topic.
C# 3.0 has many-a-new features. To start with, let me take a concept of Implicitly Typed Variables.
Implicitly Typed Variables
In the good old days, the developer has to worry about the type of the variable. Say for instance, whether to use long or double for a counter. Here all that we observe is that the language that is built upon is the type specific. Hence forth the developer is not required to define the type of the variable at the time of declaration, but it is the task of the compiler to decide what type of the object the variable is. All that the developer has to do is that, use the var keyword while declaring the variable, similar to that of JScript or Visual Basic style. Hey!!! Stop!!!!! don't get confuse with the type of VAR variables declared at JScript or Visual basic.
Let's first discuss the difference between VAR variables at JScript and VAR variables of C#
VAR JScript
VAR C#
This is of no type
The type of the variable is defined by the value declared and decided at the compile time
Technically have no type. Can consider of limited types, namely, string literal, numeric, boolean
Type agnostic, have specific predefined formats
Type conversion is coercion
Type casting is simple and handled by CLR
No mechanism for parsing
explicit functions for parsing to specific type
Now, let us see the difference between the language specific VAR of VisualBasic 6.0 and C# 3.0
VAR in VB (but not .NET)
VAR in C# 3.0
By definition, these are Variant
Type of the variable is defined at the compile time
Could be any allowed type from with in the known types of the language
Type is decided by the value associated with the variable
Largest among all the known data types
Size depends on the type of the value initialised
To summarize, the variables declared in C# 3.0 are type specific, thou used the key word VAR, during the declaration. Thus, we can conclude that the compiler is the responsible point to decide the type of the variable. Hence we can say with comfort that, the variables from C# 3.0 are Implicitly Typed variables.
Some examples as mentioned below.
var vIntVal = 10; // This will be the System.Int32 type var vLongVal = 10000000000; // This will be the System.Int64 type var vDoubleVal = 10.0; // This will be the System.Double type var vFloatVal = 10.0f; // This will be the System.Single type float vFlVal = 10.0f; // Thou defined using float key word, but inherits from Struct System.Single var vStrVal = "String Value "; // This will be the System.String type
So, from the above declarations, it is pretty clear that the variable is defined by the value associated during the declaration. The type is not just limited to the kind of data types as explained above, but you can extend this to any type of the variable that you use while writing code for iterations, similar such as foreach. Below is the example for other known types.
foreach (var vTable in ds.Tables) // Implicitly declared a variable of Data Table Type { foreach (var vRow in ((DataTable) vTable).Rows) // Implicit declaration of DataRow variable {
} }
By using such, one can extend any extent. The limit is the imagination of the developer. What do you say?
The concept seems great and as on this date there is less activity from the creators of the website. Anyhow, hope that this website will become active and vibrant in short time.
There is a big debate going on with these two buzz words. Before we get to the point of this post, let's first examine what they are... and what they mean by to the development force.
SaaS : By definition it goes like this, Software As A Service. In the good olden days, we are used to think the application as whole system and all the modules have to function only with in. But as the technology evolved and the new horizons are leading the development process to newer levels, we got a new dimension as "Web Service". This concept then further raise the functionality of the individual modules belonging to the big application turn into smaller parts of reusable components by other applications as well. Resulting the module as a service altogether for any and every consumer application.
This left the architects to view their application in smaller, exportable as well as consumable by different vendors or applications. This led to the concept of designing every application to foresee the reusability and come up with a kind of an architecture, so that every module inside the application is targeted as service. Hence the concept of "Software as a Service"
PaaS : By definition it goes like this, Platform As A Service. In the recent days, the paradigm of application switched over from an individual point of a specialized vertical to the combination with the external functionality as well. As mentioned above, the applications started consuming the Services from external world and expanding their domain functionality. The industry is not just satisfied there with.
Some thing more wanted and flexibility with in the application brought the idea of "Platform neutral" into limelight. Resulting that the application concept attain the new veneer. The architects started visualizing the need for the application platform, as a whole, to be flexible enough to work as a service. Leading to the new scope of web availability to every anonymous user.
-------------------------------------------
This is my first post that ever made me to think very deeply and came out of my own words... How is this ?
By definition Linq is Language Integrated Query. That's not the concept of this post. From my understanding and experience with LINQ as well as SQL programming, i would like to make a point. Most of the ideas that are in air about LINQ is an extension to the Structured Query Language, ie., SQL. In other words it is spelled as a kind of influence by Microsoft to the SQL.
Having mentioned the misconception from the people, let me correct with my understanding of LINQ is all about Reflection. So it is not about any kind of Database related query language.
Lambda Expressions
By definition from MSDN, they are the extension for the Anonymous methods from C# 2.0. In reality they can be interpreted as anonymous functions, such as from C# 3.0 feature some thing similar to FUNC<>. In other words, lambda expressions are nothing but the inline expressions. And the function body of the FUNC goes on the right hand side of <>
A new user group that is taking into shape, specially for the teams that involve software testing. You can get to know more about this user group from http://mtaug.net or get onto http://groups.msn.com/mtaug
With in our application, we want to validate a variable towards null. we started validating the variable with the ".HasValue" property. During some progress, suddenly some thing flashed in my mind about my experience of working with the teritory operator (of C or perhaps VB). The syntax could be some thing below
variableX = (condition) ? truevalue : falsevalue
similar such, is there in C#, not similar thou, but approxmately, ?? operator returns the left-hand operand if it is not null or it returns the right operand. You can observe from the below codesnippet
int? p = null;
int? y = 7;
if (p.HasValue)
y = 9;
int c = p ?? y; // this will return 7 as the value in p is null
Console.WriteLine(" \n The value of c is {0} ", c);
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Indian companies at WPC -Worldwide Partner conference
Thousands of partners registered with Microsoft competing for the WPC Awards. The finalists ready and their details are out from Microsoft, you can see their details at this link. Out of 42 categories 125 partners reached the finals. 3 companies with Indian origin also found their way to the final and competing with giants. They are
Webcast on XMLDom with Microsoft
Today accidentally, found my webcast on XMLDom functionality at ondemand Microsoft, India webcast site. Please go through the "VSTS" section, at the last you will see my name and the link. You can download the webcast from this link or search for the event id as 1032301833. And if you require the demo application and the presentation, write to me.
From this link you can learn more about my career as a speaker for Microsoft. And these details as on the date of May 2005. The details mentioned at their Speakers profile section are updated while am working with XYKA.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Interesting Typing TestThis link is really cool for people who want to test their typing skills and specially i found this useful for one important reasons is, spelling.. you will type fast if you know the spelling, else you have to read than type. This way you improve your spelling skills also.
Did you try, on my first attemt got around 365,xxx ... am not sure.. but is a good score for me. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
One of the frequently seen situations from a technical standpoint in a large scale of Business Layer objects is, invoking methods from different objects when they contain same method name. Today, am going to make it simple to give an example for Runtime Polymorphism. Leave your comments if am mistaken
At this stage, I don’t think to mention about "Polymorphism", as hope that you are aware of how polymorphic behavior can be fused using C#. If you want a start up, in simple words, implementation of one Method with many definitions, as mentioned below.
classEmployee { ///<summary> /// Invoked for the Regular salaried employes ///</summary> ///<param name="intEmpId">Employee ID</param> ///<param name="intAbscentDays">Number of days</param> ///<returns></returns>
/// Invoked for the employees, who work as Daily wage ///</summary> ///<param name="lSalPerDay">Salary per day</param> ///<param name="intDays">For number of days</param> ///<returns></returns> publiclong CalculateSal(long lSalPerDay, int intDays) { return lSalPerDay * intDays; } }
A simple way of invoking is as mentioned below.
Employee eTe = newEmployee();
long lSal = eTe.CalculateSal(124, 2); long lSal = eTe.CalculateSal(678.35, 18);
So, by now, you are clear how to write polymorphic method and as well as how to use. Let’s jump to how you can make the Runtime Polymorphism.
To continue the discussion, first we need to know that there are 2 basic types of polymorphism. They are, Overloading, referred as Compile time polymorphism, and Overriding also called as Run-Time polymorphism. What you have seen above is the first kind of polymorphism. The second type is referred as late binding. In other words, the selection of the method for execution at runtime depends on the reference of the actual object that is triggering the invoking of the method. Now let's explore that with some example.
Let us take a small class, as mentioned below with few properties. This class acts as a base class for us.
We will now inherit this into the following classes. Observe that the both classes doesn't have any direct relation with each other and can be instantiated as is.
///<summary> /// This class calculate the wages for given number of days ///</summary> publicclassWages : EmpNames { ///<summary> /// This will calculate the wages for the employees ///</summary> ///<param name="Params">Wage per Day, Number of Working days in a month</param> ///<returns> WagePerDay * WorkingDays </returns> publicdouble CalculateSalary(ArrayList Params) { returndouble.Parse(Params[0].ToString()) * int.Parse(Params[1].ToString()); } }
///<summary> /// This class will calculate the salary ///</summary> publicclassSalried : EmpNames { ///<summary> /// This will calculate the salary for the employees ///</summary> ///<param name="Params">Working days Per Month, Leaves, Salary Per Month</param> ///<returns> Full Salary in case no value for Leaves. Other case, (SalaryPerMonth/WorkingDays) * (WorkingDays - Leaves) </returns> publicdouble CalculateSalary(ArrayList Params) { double dSal=double.Parse(Params[2].ToString()); int intLeaves = int.Parse(Params[1].ToString()); if (!intLeaves.Equals(0)) { int intWrkDays = int.Parse(Params[0].ToString()); dSal = (dSal / intWrkDays) * (intWrkDays - intLeaves); } return dSal; } }
Now that we have these two classes, We can write our code to instantiate them as individual. But the point of this post is to describe the "RunTime Polymorphism". Before we go further, note that, each class has the method "CalculateSalary" and as they are not directly related, you can instantiate them with out any hassle.
EmpNames empObj;
ArrayList alValues = newArrayList(); alValues.Add(30); //Just add all the fields as this
bool bSalaried = true; //am using this variable for validation of emp
if (bSalaried) //Validating whether Salaried or Wages empObj = newSalried(); else empObj = newWages();
After executing the above lines of code, you are sure about the type of the variable empObj. This is Runtime initiating the object. But this is not the purpose of our current topic.
double dVal;
//The below line will throw compile time error //dVal = empObj.CalculateSalary(alValues); dVal = ((Wages) empObj).CalculateSalary(alValues);
What do you see from the last line of the above code? Did you find that the method invoked is from a class type. Now, think that, what if the class is being instantiated as Salaried and the last line is being invoked?
----------------------- Declaimer: What ever you read here is out of my own experience. No one shall be made responsible for the contents and issues that are mentioned here. If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
During my last interview, got a question about the mentioned subject. Have decided to learn and post some code.
Definition of the Asynchronous Calling:
Executing the method Asynchronously, inother words, executing like the concept of Thread. The bottom line is inheriting the method by System.IAsyncResult and using BeginInvoke and EndInvoke to track the status of the method. Between these methods, one can check the status by IsCompleted status.
This is acomplished by Deligate keyword. Will edit this post during the time with all the example code.
Must read for VSTS
While reading some news about VSTS, got to know that, Vertigo did some samples that Microsoft is using. Surprisingly true .. anyhow, thought to blog so that it can be useful for me in future learning towards VSTS.
They also have a blogs section with lots of content on VSTS, did you visited that?
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Hexadecimal Values Display at VS
While working with Debugging our current application, surprised to note that all the variables are showing their value in Hexadecimal format at Immediate Window. After doing some R&D got to know that some of team member set at to display in Hexadecimal value.
To revoke that format, all you have to do is, goto Watch Window and right click on any row and you will observe that "Hexadecimal Display" is enabled. Select or Deselect depending on your requirement. Dont go to Tools => Options => Debugging => ...
The tools option may not be available with some VS flavors like Professional or Architect. But for every edition, the Watch Window works.
What do you say? ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Convert Text to Sentence - C#
To convert any given sentence into Title Case, use the following code.
public static string PropCase(string strText) { return new CultureInfo("en").TextInfo.ToTitleCase(strText.ToLower()); }
Ofcourse, you have to use the Globalization class to get the CultureInfo method be available for conversion. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
One more Blog towards VS
While searching for some tips on Visual Studio environment, came across the blog from Helixoft. Seems interesting, blogging here so that will find some time to read through all his posts when time permits. Meanwhile if you got some time, go through this blog.
Forgot to mention that, the tag line is damn cool,
"Documentation has never been so easy .."
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
The Microsoft .NET Framework 3.5 Beta 1 is a preview release of the latest version of the .NET Framework. Many ISV’s, enterprises and Microsoft product teams are successfully building on the new features Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF) and Windows CardSpace in the .NET Framework 3.0. Microsoft plans to continue to invest in the .NET Framework developer platform and in support of existing users the .NET Framework 3.5 has a minimal number of breaking changes. So that existing applications built for .NET Framework 2.0 or .NET Framework 3.0 should continue to run without requiring changes. The .NET Framework 3.5 adds new features in several major technology areas; including:
Deep integration of Language Integrated Query (LINQ) and data awareness
ASP.NET AJAX for quickly creating more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers
New web protocol support for building WCF services including AJAX, JSON, REST, POX, RSS, ATOM and several new WS-* standards
Full tooling support for WF, WCF and WPF including the new workflow-enabled services technology
New classes in the base class library (BCL) for the .NET Framework 3.5 address the most common customer requests.
.NET Framework 3.5 is planned to release at the end of 2007 and will ship with Visual Studio code name ”Orcas” and will also continue to be available for separate download from MSDN. For more detail about the features being introduced in .NET Framework 3.5 and Visual Studio code name “Orcas”, click here http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx
And you can dowload the latest version from this link. Did you?
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Never USE Finalizer in .NET
Aren't you shocked to read the Title, but me ... when i first read this post from Joe Duffy. Read through the lines to learn why he insists on that.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
No Documentation and Time
Today, during the discussion with our fellow developer from offshore noticed the following statement about documentation and time. Thought that it is time to share my feelings with world on this kind of statement(s). Most of us come across such statement from some one or the other, or most of us use these statements in some time or other
.. my feelings is that you guys are used to work with the well defined structure, document and think like that, we lack of that here, we just don't have time to do much of that. I use to work with <<xx>> tool, we used to make a lot of UML design doc, UseCases every thing, but here we don't .. no time for documentation ..
The above statement has 2 controversial concepts.
Follow the Standards
Have NoTime
My understanding towards this goes as mentioned below,
First - NO STANDARDS : Who creates these Standards .. aren't these created by individuals like us??? why people are used to relate them with companies ??? and blame on organisations ??? if there is a practice that is resulting and implemented in an organisation, the employees who is currently working with that company ignore them when they join new organisation and start blame the new organisation. Would like conclude on this topic is, STANDARDS doesn't belong to organisations, but to INDIVIDUALs
Second - HAVE NOTIME : A big laugh, recollect from some old book that, "TIME IS THERE WITH THOSE WHO PLAN". To justify the statement, Prime Minister / Chief Minister / You and ME / Every one 's time is totally planned in-advance with regular stuff like sleep / wakeup / bath / travel / eat / blah .. blah .., isn't it. But what happens if there a sudden requirement for these guys to attend. In case of CMs / PMs they will plan again to reschedule all their plans. Isn't it. But what about those who say,
‘skipped our breakfast as we don’t have time in the morning..’
‘skipped lunch due to heavy work load and no time to visit loo ..’
‘skipped blah .. blah.. due to no time ..’
To me, "HAVE NO TIME" is really a statement with no meaning... GUYS !!!! Wakeup and start planning, then you have lot's of time
Anyhow, pl comment
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Mobile Phone Tracking
There is a hoax to paly prank with user by the mentioned title at this link. Fell in trap by Sudhakar at his blog and thought that is a kind of reality.
This is some kind of cool trick during this april month, a nice trap to fool your friends. Did you try this out..
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Intro to XAML
While searching for some server side control and accessing the htmlhidden values through the codebehind of ASP.NET pages, came across the article "Getting Started with XAML". This article is so simple and easy to digest.
All those who are new to .NET, pl start learning the V3.0 directly, dont start from both v1.1 or 2.0.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
HP Trashes Warrenty for Linux
On March 23, Slashdot published an article about HP scrapping the warrenty given along with the hardware, if Linux is loaded. How surprising is this ??? I can't believe this, but some how read from Slashdot website.
Did you read this article narrating in detail and this is from Linux community
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Downloading Webcasts
Now-a-days, am trying to download the webcasts from microsoftondemand site. Unfortunately, i get "Connection to server was reset" error after downloading about 8MB of file, is really irritating and disappointing.. any of you have clue about how can i download these webcasts with out getting these error?
If any of you got tools that will help us to download these webcasts, pl drop me a line at the below mentioned mail id.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
IE 7 Shortcut keys
While am updating my IE to Version 7, got this link from Microsoft's IE weblog. This link has all (major) shortcut keys and some interesting ways to explore your regular "ToDo's"
Try and experience them..
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Work load Quiz
There is a small quiz from Microsoft to promote 2003 Cluster Server... did you participate ? If not, quickly participate and win prizes.
I got 5 out of 5... how about you???
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Let me post about the truths that many of you unaware
First ) Am a Diploma holder for Bharatha Natyam
Second ) While persuing Education, dance tutions are my main trade towards financial support for my education
Third ) Started my technical career as DataEntry operator with HPCL at Kondapally @ 70/- perday for entering about 3000 records. This is during my 3rd year of Graduation. During the entire year, very few days visited the college.
Forth ) Soon after the college exam on April 2nd 1996, started my professional career as Faculty Member at Prime Computers, Gudiwada on April 4th 1996.
Fifth ) Recently finished the 6th Sem Exams of MCA from Sikkim Manipal University. Yet there are 4 & 5 th semisters are pending due to my visit to Dubai.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
ASP.NET Debug Article
Time and again, have been visiting this page for many a times. Hence felt that it is time to store at some place about the error that every web developer will come across during the debugging.
Great resource to learn more about
Using the Visual Studio .NET 2003 Debugger with ASP.NET Applications
Did you come across of such articles any other place ... pl post back here to know more. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Another MVP Blog
Jon Skeet an MVP and having a strong software development experience. I first got through his blog at his home page, later redirected to MVMPS weblog.
Interesting to read about the articles that are available at his MVMPS Weblog, where as good amount of learning stuff from his Yoda homepage.
Did you come across of any other such people...
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
Error while downloading the webcasts from Microsoft Event home. Has any one know about how can we deal with these kinds of errors? Or Any clue about where the partially downloaded files would have been saved... checked "%temp%" foder, InternetFiles folder and ApplicationData folder... but invain.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
First Post from home
First post from home... let's see how this will uplift my blogging skills
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 2/11/2007 01:07:00 AM0 Comments
Friday, February 02, 2007
Pre CLR Team
Before the CLR actually came into lime light, it was with a team called CROEDT stands for Comman Runtime Odds and Ends Development Team. And this team is the first team in achiving the round-tripping with the coding.
Round-Tripping means, take any managed code like IL, disassemble it, add or change some ILs and reassemble it back into modified Executable
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 2/02/2007 05:47:00 PM0 Comments
Wednesday, January 17, 2007
Is Google hacker free ?
What do you say, if i tell you that, Google is recently hacked ...
"Naaaaaaaaaaaa .... no way ..."
Are the answers from you... then tell me what do you see when you click on this link.
Good that you got some results from their database. But apart of the results, do you understand any hyperlink that is displayed at this link?
Fine, let me go to the root cause of the problem. What do you see when you click on this link?
Hey.. do you understand any hyperlink at this link ? What do you say after looking at these links...
Common... comment..
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 1/17/2007 10:51:00 PM0 Comments
Tuesday, December 26, 2006
Enterprise Library 3.0 is out and ready for download
OOOOOps... it is quite long time that i posted in this month... The silence is due to lack of access to the system and time. Been on vacation and most of the time working due to preparation towards vacation. Finally here i'm..
During the last weekend, Microsoft officially launched the EntLib Ver 3.0 from Codeplex. Did you download and tried that out ?
They have placed a section exclusively for EntLib, all the latest patterns & practices are found here. Do you know this ?
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 12/26/2006 07:48:00 PM0 Comments
Tuesday, November 28, 2006
BizTalk Training - This week
This week, am undergoing BizTalk Server 2006 training, let's see what i gain from there and will post all the data that i learn there. ----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 11/28/2006 03:31:00 PM0 Comments
Tuesday, November 21, 2006
XML - A Decade
Do you believe that XML took 10 years to penetrate into the industry and become a backbone for the datatransfer mechanism?
Worth reading, suggested to read and have a copy in your personal library.
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 11/21/2006 02:48:00 PM0 Comments
Wednesday, November 15, 2006
Notes on 3rd Day Training
Christopher Richard - Is the faculty for this training
MDX - Multi Dimension eXpression
MDX is a Key to all advanced functionality in Analysis Server
JimRoy Number -- ?
Books To Read to get to know more in detail about OLAPDM -
1) Datawarehouse Toolkit, A complete guide for DM - Ralf Kimble, Willy Pubs
2) MDX - MDX Solutions for SQL2005 and HyperonSpace - George Spafford, Willy pubs
Difinitions in OLAP
Slice - Members of one dimension Dice - Members of more than one dimension display
A Cube can have upto 128 DimensionsMDX can have upto 64 Axes
While fetching the Level name can't preccede the member name
MDX Query Example 1) select {[Measures].[Order Quantity], [Measures].[Sales Revenue]} on columns, {[product].[categories].[bikes]} on rows from [quick start sales view]
Note: this data is for a single calendar year by using the WHERE Clause
KPI - KeyPerformanceIndicator - Why they are at backend, they are supposed to be at frontface as they are similar to Dashboard.
Note: These exists from quite a long time in the industry, but are new from Microsoft's pespective and for the first time they have included them in their product
MicroSoft Dashboard Manager or KPI Manager
Scorecard - is the information that is WRT other information DrillThrough - Is another feature that every OLAP tool should support.
MLOP - Is the +vesFastest storage ModeRetrival is Fast-ve is Latency
RLOP - will only create the Cube and the data is still there in RDBMS
HOLAP - Details data is still there in RDBMS, where as Aggrigates are stored at Dimensional Model, inotherwords, in Cubes
Problem: Your client has a cube that is set to process for every 2 hrs Solution: ?????
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 11/15/2006 04:00:00 PM0 Comments
Tuesday, November 14, 2006
Training Notes on 2nd Day of SQL Analysis Sever
Realtime Warehouse - Do we really have such thing ?You can't analyse the data when it is not consistent for some time
Find the difference between - ER Model Vs Dimensional Model
Dimensional Model rules 1) Almost Dimensions Tables are mostly refered 1 to many to Fact Table 2) Summerizable numerical values are Measures 3) Dimension is an indipendent entity of a specific concept. For example Jan, Feb, Mar, etc are Time dimension and India, USA, Russia, etc are location dimension blah blah 4) Every thing that you see in world are grouped 5) From one Dimension one or more hierarchy is created 6) Think for only ANALYSIS, but not for information that is hidden and unwanted. The prime target of this tool is only to understand the progress and analyse the business but not for getting the details of the transacion 7) Remember that, how better you can give the user the Drill down capability
Customers - Dimension
ID CustName City State Country MaritalStatus Gender Tel eMail
How many hirarchies you can create out of the above individual labels?
Note: Hierarchies are created only the grouping possible labels, where as Tel and eMail can't be grouped, using them in hierarchy is a bad design
Types of Hierachies 1) Balanced - All leafs will have equal number of Members / LevelsRule 1 - All leave memebers should be at the same levelRule 2 - The parent member don't have the values, they are procured from the childs
2) UnBalanced - Not necessarily you will have the equal number of levels or members
3) Ragged - Ragged are more similar like Balanced but just missing some parents Never Make the OLTP Primary keys same PKs of Application System Dimension tables are almost smallFact Tables are generally huuuuuuuuuuuuge
Schemas 1) Snow-Flake - Bad Design 2) Star
Thing to remember: If report is taking long time to conceptualise, it is inotherwords conveying that the database design is bad. So, if the report is taking less time to conceptualise on the DB what you have, is a good design as, visualised the report while designing "Change the granularity is beyond the scope"
Dimension are not required to create repeatedlyRole Playing Dimension - Similar to the Table Alias
Measures are of 3 types 1) Additives 2) Semi Additive 3) Non Additive
Slowly Changing Dimension
----------------------- If you have something to share in person on this post, pl drop me a mail at dskcheck@gmail.com with the title in the subject.
¶ 11/14/2006 05:25:00 PM0 Comments
Thursday, November 09, 2006
Interesting Tips from AcitveWinActiveWin is a forum that is similar other forums by microsoft towards the knowledge share. They have a section called Tips under the name of TechTips, with general and regular tips contributed by users from across the globe. Though it is lastly updated on 24th June 2004, has some useful tips.
Understanding Security - MSDN
With the mentioned title, you have a special section for Security at MSDN. This section has many details explaind in simple. You have Webcasts, Trainings and Events listed there.
Windows Vista Team Blog for publicWindows Vista Team from Microsoft had initiated a blog and opened for external people to post their views and reviews. It is an initiative of first kind from Microsoft opening such a public forum even before the actual product comes into market.
This forum started way back duing Apr 2006. Many of the Vista Team members are contributing their knowledge in terms of articles / news about the new releases / examples / blah.. blah..
CLR Inside out - MSDN Magazine
Nov 2006 issue from MSDN Magazine has an interesting article about CLR. I've read for about thrice, still wanted to read for one more time. I read this article not just i don't understand, but every time i read the article it teaches me some new thing.
And it leaves me with such a strange feeling that i know less in .net. It talks about many-a-things like GC Performance, Diff counters that can be given attention while dealing with CLR, blah.. blah..
MSN Messanger 8.1 - ReadyMSN Messanger v8.1 is ready to download. Did you try this?
And some of the cool features of this messanger as a startup for a new revolution, 2 VOIP calls free, in other words, PC-to-phone calling with 2 free calls to virtually any phone in the world.
For the first time, i could see our project name and company's name at the Microsoft website. Read the last lines as mentioned bellow
*With XXXXXXXWeb Calling, you can make two free three-minute phone calls to virtually any landline or cell phone worldwide. Offer applies to new Verizon Web Calling customers only.
AppVerifier - Tool for Unmanaged codeAppVerifier is simply explained at this tutorial. And i suggest every .NET developer should read this, as this gives you an extra notch to understand how the code is managed and the developer should be aware of ..
This article also explains in step-by-step with images for each step.
Vista ReviewsDarkReading, is popular for critising. Y'day, they have published an article, "Microsoft beckons early adopters", talking about Vista. Interesting topic to read the views of an end user of a product from Microsoft.
This article is really impartial and talks about more indetails from the purspective of a realy USER.
Security in ASP.NET
While going through MSDN articles, came across an article about the mentioned subject. This article is really cool and explains from the basics of the Security to high level.
I've never come across of such detailed, fully explained version on this topic. I'll try to take a printout of this.
MAX from MicrosoftMax from Microsoft is ready roll out with full features. Y'day they have announced the closing of the survey or feedback from the external world.
The code name Max seems to be more or a tool that has many a features from Riya, RSS Reader, blah.. blah..
Century
Hey, with the last post i've completed 100 postings... what a great slow start.. let's see where will i go with what accelaration... it's party time ...
¶ 10/30/2006 04:32:00 PM0 Comments
.NET Framework 3.0 WebsiteMicrosoft recently started a website for .NET Framework 3.0 and the RC1 is ready for download from there.
Bolgs at MSDN by Tags
Do you know that you can reach people who blog on a specific topic at MSDNBlogs? There is a way, go to http://blogs.msdn.com/tags/
Here you see different topics and click on them to see, who blogs on that topic. Generally i have a feed to common blogs.msdn.com and from there read all posts that interest me.
USING - C# Key wordI've been asking a question about this key word on every interview. Most of them think that this is used only to reference the base class, apart of that, there is also a great usage with this key word. This key word, USING, can be used to destroy the objects (automatically) when they are no longer required in the memory.
At times, the developer will forget to write the code to destroy the created objects. These objects pile up on system memory and wait for the GC to collect and clean them. How it would be if they are cleanned as soon they finish their requirement? That would be great coding and you are reducing the work for GC during the collection process.
Here is how to accomplish the same. First, implement the IDisposable interface on the object that you are planning to implement automatic collection and allow CLR to release the allocated memory as soon this object is no longer required.
class SmpCls: IDisposable { void IDisposable.Dispose() { Console.WriteLine("Disposing the object and cleaning"); } public string RetHelo() { return "Hello World!! Happy coding .."; } }
While creating the object out of this class do the following way. Implement the object in the following code.
using (SmpCls obj as new SmpCls()) { ..... ..... }
One advantage by doing this is you never required to worry about GC active, clean and clear the heap .. blah, blah ..
Encyclopedia for C#
Recently Micorsoft lanuched a single place for all C# related. It is called C# online.net, a portal similar like Wikipedia. A great initiative.
Loadtesting Web ApplicationThis is the post that i've been trying to do / trying to search for... From starting developing web applications on .NET, wondering about the testing the same.
In the early days of, i used to depend on Application Center Test. Some how i'm happy with that but curious to know a better tool.
BTW what kind of tool that you used ? or what kind of tool that you suggest...
PS: I've also used Ants profiler and one more.. i don't remember the same, but keep suggesting me apart of these
¶ 9/25/2006 09:37:00 PM0 Comments
Memory Leaking - Full Story by an (MS) internal Debugger
While reading some information about windbg, came across of a blog by Tess, an internal debugger of Microsoft.
Well, i've not see all her posts, but this post explins the memory leakage in .NET and cool article. A must read for every developer to get the internals of GC and other activities in .NET Framework.
¶ 9/25/2006 08:26:00 PM0 Comments
Tuesday, September 05, 2006
Transaction Properties : ACID
I've been trying to chakout the ACID, from quite a long time.. and postponing the same, every time i think of it... today, i decided to draft what i mean for ACID
As every one know, ACID means
Atomicity
Consistent
Isolated
Durability
This is common from high level understanding, what about in detail? In this post, i'm trying to post all my understanding about these 4 buzz words, correct me if i'm mistaken (or) miss spelled Atomicity: this is in general talks about the changes or activities that are supposed to be happen in the given transaction. Inother words, all the changes that influence on the resource must happen on a single process or thread or operation, means on any kind of exception, the enitre thread has to be aborted. I recollect some statement from some of MSDN Magazine, "Every thing in the universe stops, the changes are made, and then every thing resumes" Consistent: means the transaction should be on a crystal clear state of Yes or No, intoher words, Completed or Failed.. Hence the transaction will result in logical state instead of abiguity Isolated: explains that, none other than the owner is allowed to peek into the process, while executing. Inother words, no other entity is able to see the intermediate state of the resource during the transaction Durability: tells that, the result of any process should remain constant with the time, inother words, the results of a sucessful transaction are to be persisted What do you say?
¶ 9/05/2006 08:00:00 PM0 Comments
Monday, September 04, 2006
Top 10 Interview Mistakes
eWeek, published the to 10 mistakes that can happen during any interview and how to understand them. This is really nice and meaningful.
As a participant, the things that every one need to understand these.
Characteristics of Class to become an Object
We all know that an object is the instatnce of any given class, are we really sure that every class code can be instantiated as Object ?!#$%^*
Is there any thing that is hidden behind the screen of "CLASS". Is any piece of code that is embedded with in "{" and "}" can be considered as "Class"?
During my study with W3C.com, i come to a conclusion that, the following features are must for any piece of code to be instantiate as an object.
0) Type 1) Only one Distructor allowed per class 2) Indexer facility should be provided 3) Default Constructor 4) Parameterised Constructor
VISTA by a Linux guy
While reading some of the blogs, i come across this blog. This blogs seems to belong to a Linux guy. At this post he defines VISTA in a -ve way.
Common Tux, better be positive. Entire world talkes better about the technology, and you are expressing your narrow thoughts, is not good for your health and status. Better change.
¶ 7/31/2006 11:14:00 PM1 Comments
Tuesday, May 23, 2006
Good resource for SQL Server CommandsDyess Consulting maintains a Whole site dedicated for SQL Server commands. It explains most of the commands that will be in general required by any Database Programmer / DBA.
Good Resource for offline Learning
Today while going through Microsoft technet, I found a good resource for the webcasts and multimedia. This link is truly a good resource for offline understanding of few good topics like Threat Modelling, AD Infrastructure, SQL Server 2005 at Microsoft, bla.. bla..
I'm now a Database Programmer
Now-a-days i'm writing SQL Server Triggers and StoredProcedures while working with the current project.
During the process of recollecting my database knowledge, it took me a little time but finally with much difficulty completed the first task. My past experience handling Database is with Oracle 7x/8.1.5 and 8.1.6, while developing the triggers / cursors / stored procedures / for that matter on every moment i recollect the Oracle Syntax and get confuse with the SQL Server Syntax. Just as an example, Oracle Supports SEQUENCE where as SQL SERVER supports the same facility as IDENTITY column as auto number.
Similar such, many-a-things, but thank god for giving me a great ability to learn technology with a great pace. During this process i visited
New Blog at MSMVPS.ORG
Y'day i've recieved a mail from Susan, giving me an oppertunity to blog at MSMVPS.ORG. Though not excited, but really felt happy to have my blog name next to such big guns having a huuuuuuuuuuuuuuuge knowledge treasure. Click here to read my Bolg at MSMVPS.COM
As my professional career is oscillating at extremes, couldn't decide which topic to blog on. Anyhow, as i'm currently doing here, let me share what all i learn during my experience.
¶ 5/20/2006 11:56:00 AM0 Comments
Wednesday, May 17, 2006
Blogging using w.bloggerw.blogger textw.blogger has a client side tool that will allow you to post at your blog. I'm trying for the first time, i thought it posts and publishes automatically...
Unfortunately, i've to login to my Blogger Account and publish it, as this post is saved as Draft. Is there any tool that allows me to post directly from my desktop? I'm connected 24X7.
CodePlex - To Share among the fellow developers
A place where developers across the globe can share their projects and a best example for Visual Studio Team Foundation Server.
Today i've registered when there were only 14 Projects are in place to start with, soon this will be a great community for the Open Source (Share) developers.
WiMo - An Initiative from MS What's WiMo ... ?!@#$%^&*
WiMo is the the Windows Mobile Robot. The name comes from the "Wi" from "Windows" and "Mo" from "Mobile" and is pronounced "Weemo" (think of it like a Spanish pronounciation). These words i copied from Windows Mobile Team Blog. On 13th May, 2006, Brain posted the details of WiMo.
This is surely a piece of example what a windows Mobile 5.0 is and it's new APIs can deliver...
There is a small presentation on Channel 9 on WiMo in Action.. though the download is not working, it is playing online... i would suggest you to increase your buffer time in your Windows Media Player and them start the presention...
My work at XYKAIt is really quite long time to post the new happenings in my life and learning ... As the title says, I’m currently working with XYKA as Project Lead. The interesting part working here is the current project. Xyka owns a travel product and is now integrating with different partners across the globe towards reservation related issues. My interest is not to disclose the internals of the product, but to throw light on what I’m working.
The UI of this product is common for different partners that are integrated with this product. As the UI is in-place working fine and with out errors, now it is the time to develop an interface to integrate the same UI with one of their other partner. The partner results data in XML Format and this product expects data in a Class objects. Now it is my turn to work on XML DataIlands to convert these pieces of data from the partner WebXMLInterface to the product’s class objects.
A picture is worth of 1000 words, here comes the picture..
The partner system exposed as XMLWebInterface, which accepts XML Data as POST and returns XML as GET. I’m using HttpWebReqeust from System.Net classes to post and get responses from the exposed interface. One of the interesting tasks that I’ve ever done in my life.
What do you say?
-----------------------Desclimer: What ever you read here is out of my own experience. Some of my leanings or understandings could be false or fake, it is the time that decides that. No one can be held responsible for the contents and issue(s) that are mentioned here.
¶ 5/12/2006 12:06:00 PM0 Comments
Friday, April 21, 2006
WinFX .. What is it?
How many people know about WinFX (though not in detail but on a overview)? I was not clear till i read Ian Moulster's blog.
Moulster, discuss and explins indetail at this thread about WinFX. His tag line (Translating Microsoft Technology into plain English) suits best.
New Blogs - Statistics
I can’t believe these statistics …
There were about 75,000 new blogs per day, 1.2 Million new blog posts each which means a new blog created on ever second of the day and 50,000 posts an hour… !@#$
CASE Usage in SQLProblem: Write a query using the following table. The requirement is, result all the details " less than 20000" in ascending order and salary "greater than 20000" in descending order
Name
Salary
Karthik
25000
Samuel
32000
John
17000
Murali
28000
Syam
15000
Output should be
Name
Salary
Syam
15000
John
17000
Samuel
32000
Murali
28000
Karthik
25000
Query is:
Select * From
Order by (Case When Salary <= 20000 Then -Salary Else null end) DESC,(Case When Salary > 20000 Then -Salary Else null end)
Today, while reading about the patches for Teamsystem, came across of Rules to follow while conducting Scrum. This data found from Scrumforteamsuit product website. As the website says, this product is developed by Conchango in collaboration with Ken Schwaber and Microsoft. At this point of time, I need to mention about Ken Schwaber, Ken Schwaber co-developed the Scrum Process with Jeff Sutherland in the early 1990s. Visit Ken’s website to learn more on Scrum.
Here are the guidelines or thumb rules during the scrum participation. Let me see, how this will work out for me.
Hold the Daily Scrum in the same place at the same time every work day. The best time for the meeting is first thing in the day so that Team members think about what they did the day before and what they plan to do today.
All Team members are required to attend. If for some reason a Team member can't attend in person, the absent member must either attend by telephone or by having another Team member report on their status.
Team members must be prompt. The Scrum Master starts the meeting at the appointed time, regardless of who is present. Any members who are late pay a fine that is donated to a worthy charity!
The Scrum Master begins the meeting by starting with the person immediately to his or her left and proceeding counter clockwise around the room until everyone has spoken.
Each Team member should respond to the following questions:
What have you done since the last Daily Scrum regarding this project?
What will you do between now and the next Daily Scrum meeting regarding this project?
What impedes you from performing your work as effectively as possible?
Team members should not digress beyond answering these three questions into issues, designs, discussions of problems, or gossip. The Scrum Master is responsible for moving the meeting along briskly from person to person.
Team members should address the Team. This is not a "Reporting to the Scrum Master" meeting.
During the meeting only one person talks at a time. Everyone else listens without any side conversations.
When a Team member reports something that is of interest to other Team members or needs assistance from other Team members, any Team member can immediately arrange for all interested parties to get together after the Daily Scrum Meeting.
Chickens (non Team members) are welcome to attend the Daily Scrum Meetings but they are not allowed to talk, make observations, make faces or otherwise make their presence in the meeting obtrusive.
Chickens stand on the periphery of the Team so as not to interfere with the meeting.
If too many chickens attend the meeting, the Scrum Master can limit attendance so that the meeting can remain orderly and focused.
Pigs or chickens who cannot or will not conform to the above rules can be excluded from the meeting (chickens) or removed from the Team (pigs).
Today, while searching for information related to Phishing attacks, I came across of a white paper published by “NGS (Next Generation Software)”. The whitepapers link has great information related to Security threats and the prevention mechanisms. Great research information at single location.
Must have a copy in your library. I had one, did you?
IT Capabilities Assessment Tool
Do you want to check your IT Capabilities... Try this tool. The concept of this tool is from Keystone Strategy, but developed by Microsoft under the direction of a professor of Harvard Business School... All the big names came out with a small tool to help you to assess yourself before others do.
Responsible (the role responsible for performing the task)
Accountable (the role with overall responsibility for the task)
Consulted (people who provide input to help perform the task)
Keep Informed (people with a vested interest who should be kept informed)
Tasks
Architect
Administrator
Developer
Tester
Performance Goals
A
R
C
I
Performance Modeling
A
I
I
I
Performance Design Principles
A
I
I
Performance Architecture
A
C
I
Architecture and Design Review
R
I
I
Code Development
A
Technology-Specific Performance Issues
A
Code Review
R
I
Performance Testing
C
C
I
A
Tuning
C
R
Troubleshooting
C
A
I
Deployment Review
C
R
I
I
Use a RACI chart at the beginning of the project to identify the key performance-related tasks together with the roles that should perform each task. What do you say?
The main difference while using RPC and Services is the application boundary.
RPCs are best suitable if your application is with in the known boundaries, where as Services are the ultimate if requests are across the application. Services are best option for the Web Applications, where as RPC are for Remoting purpose.
Some of the differences between the SOA and OOPs are as mentioned below. These are out of my observations and personal experience only. Please refer your knowledge and information available for you.
Today I come across of an article from Patterns & Practices, about measuring the .NET application's performance. This article throws light on all the ways that you can check for the performance for the application designed using .NET.
Most of them, though exists prior to .NET, but I guess people are not given importance to them. To name a few tools like NETSTAT, which gives you the information about the number of TCP connections are used.. honestly, I have never come to know about this prior coming to .NET
Click here to read and learn about all the possible ways to investigate and measure the performance of your application and other related issues.
All the secrets are unveiled for the Origami Project.. It is all about a new mobile with a small computer. In other words they call it as Ultra Mobile PC
Do you know that, there is no possibility to unload the assembly from the run time. The only possibility to unload the assembly is to unload the AppDomain as the CLR that binds them to respective process.
You might be wondering about, why one should unload the assembly at run time?
Though I sound strange, I feel that there could be at least 2 reasons that enforce me as a developer to unload the assembly from run time.
Point A) When my server is running out of space -- rarely this happens
Point B) when my application compiles a newer version of the assembly to replace the existing one.. Yes this happens often, specially with web apps. As and when you compile your project and deploy to the new location either you have to stop your iis or you have to restart your app from the iis.
Instead of all these manual process, I think that, developing application with the AppDomain concept and cache all the assemblies before the system resource lock my assemblies. so that you can easily deploy your web apps when any of your component is modified.
All these days we heard about day dreamers and night dreamers.. But have you ever come across of Day Programmers and Night Programmers?
Mitch Denny, at his blog, explains the characters to define the category. Interestingly, I fall in Night Programmers. And also incidentally, I work better in the late hours of the day, rather in the early hrs. Our current office starts at 7 am, you can imagine how sleepy I'm. Most of my productivity is from the evening hrs.. surprisingly, our office closes by 3:30.. that's the time I get fully charged with the mood to work.
BTW Which category you belong to?
If my project controller reads this .. he he he.. if he doesn't read this, don't tell him..
I started my career as Faculty for Computer Subjects. During those days, I used to tell the students about the HW Generations.. To my study and observations, we are currently in 5th Generation which is called as AI - Artificial Intelligence.
Though, you are aware of all the 4 other ... just to throw light on them a little...
1st Generation used Vacuum tubes to build the Computers. The dates could be between Mid 40s to mid 50s of 19th century
2nd Generation used transistors and resistors replacing the Vacuum tubes. The dates could be between mid 50s to late 60s
3rd Generation can be divided into 2 parts. First part is the advance of Integrated Chips, the transistors were miniatured resulting the semi conductors. Second part is the revolution brought by LSI (Large Scale Integration) and VLSI (Very LSI). Dates for these can be considered as entire 70s and early 80s..
4th Generation can be called as Microprocessors. The VLSI with the help of nano technology, the size of the machine reduced and the functionality increased to the power of 10. The time line for this period can be considered as early 80s to mid 90s
As mentioned above, the 5th Generation is all about Artificial Intelligence. We are already in the way of AI. There are devices that respond intelligently for the human actions. Though not fully considered as we are in 5th Generation, but in most of our walks of life, we can find the Artificial intelligence working around. Hence can be said that, 5th Generation is half way through. The time line can be considered as from late 90s to 2015 (approx)
The 6th Generation, Robotics, is at R&D state. And often we read articles from Hundai, Toshiba, Sony etc., like industries claiming to develop a human sized robots that can perform all kinds of activities that a human can perform. The time line is expected to existence from any time between 2015 and 2040
The 7th Generation, Humanoids, a fictitious name for the future world of machines. These are machines made out of human flesh, but implanted with Chips in place of human body. During the period of 2040 to 2055, there will be a huge scarcity for the dead bodies towards the R&D to implant these so called sophisticated chips into the dead to check their functionality.
The main reason for this post is the subject. I just read an article at "The Seattle Times News Paper" about the subject, "RFID Chips implant in Human Body". Click here to read the full story. After reading this news, the entire time line which I thought about the Humanoids is not very far as what I expected. If they could able to implant the chips in human body in few parts, hope with the advent of technology and rapid growth in the industry, the day for the first Humanoid is not far at our reach.
KPL - Another programming language for Kids. Though not an initiative from Microsoft, but supported and officially promoted via Channel 9. Currently KPL IDE supports nearly 15 languages across the globe.
Can you believe if I mention here that, KPL code can directly translate into C# like language?
Checkout your self from the site..
Regards,
DSK Chakravarthy Sr. Software Engineer Mercator–Member of the Emirates Group Area 2, 7th Floor, Al– Fattan Plaza, Post Box– 686, Dubai, UAE Desk+971 (0)4 213 3115 Fax +971 (0)4 213 3998 Mobile +971 (50) 281 9972
Date Validation on Text Field
Here comes the code that checks for the date entry. This event can be called on either KEY DOWN or ONBLUR event of the text box
Earth is round
As the old saying says, life is a learning cycle.. day after night and night after day...
Now-a-days, i started learning all the fundamentals of web computing. The current project is an intranet application. I started developing using Ajax. And all the controls are HTML instead of web controls.
During this period, i'm breshing up all my ASP 2.0 days coding. Hence forth i'll be posting all the JavaScript coding that i learnt. These are out of my search or research..
Windows Communication Foundation Architecture OverviewHere is a document published by Yasser, who works for MS. This document is more similar to the session by Gaurav.
By any chance, some one stole others information ... or it could be MS trained these two guys at the same time...
¶ 12/30/2005 05:07:00 PM0 Comments
ISV Related
Today i found a blog from some one who is working with Microsoft from long time and specially working in the ISV Department.
Human Area Network ... ? I heard of LANs (Local Area Network), WAN (Wide Area Networks), blah.. blah.. Surprised to read about HANs (Human Area Network). Here is the clear details about HAN
¶ 11/24/2005 04:20:00 PM1 Comments
Post from inside Microsoft Office in India
This post is from Microsoft office located at Kasturiba Road. I'm posting this message at the speed of 500bytes per second. The above picture tells you the download rate
¶ 11/24/2005 12:32:00 PM0 Comments
Wednesday, November 23, 2005
Aggrigates are not available in SQL 2005
What you see here is the Management Studio Console of SQL Server 2005. Note that Aggrigates are not available in SQL Server 2005 at the Database level.
Aamir Khan BlogAamir Khan !!!! Blogging !!! strange… I can never imagine that Aamir Khan will blog… Here you can find him blogging about Mangal Pandey. I’m not sure about, how true is this… but seems intresting…
¶ 10/27/2005 06:30:00 PM0 Comments
Tips to get most of your IT GuyDo you ever wonder how to handle your IT colleague? Here are the tips on ‘To get most of your IT Guy” This article looks decently good, and to some extent, I think that it really works out.
¶ 10/27/2005 05:34:00 PM0 Comments
Uninstallation - Required?How many times we do think of uninstalling any software? If we require to format our system, do we unistall the software?
I never thought that uninstallation of softwares is required if I’m formatting the hard disk drive. Think in this way, if a software like Photoshop which gets activation key from i-Net is not uninstalled, the next time you activate again, don’t you think that you are increasing your licence number by one? Where as you have formatted the system and the same is installed and used by one person only?
So, finally, my advice to you all as to uninstall the sw before you format the hard disk drive…
¶ 10/27/2005 04:21:00 PM0 Comments
Story about Jeeves - ASK JeevesHow many of us knon about Jeeves? Many of us know Jeeves only as ‘askjeeves’, some where in Shakespeare’s novel I read about a character called, ‘Jeeves’, since then I’m confused. Whether the same is the root for now-a-days ‘Jeeves’ fictionous character? Incidentally, the answer is ‘YES’. Read here about the full story about ‘Jeeves’. Wikipedia has full explanation about the same and gives you full story line about this gentleman’s personal gentleman
¶ 10/27/2005 04:14:00 PM0 Comments
Drag-Once Databinding in ADO.NET & VS 2005The Data Sources in VS 2005 has got many a features, one among them is “Drag-Once Databinding”. This feature is all about draggin columns of their typed datasets directly to the form. Here is a cool article by Steve Lasker. A must read for every developer who works with ADO.NET
¶ 10/27/2005 12:56:00 PM0 Comments
Wednesday, October 26, 2005
Plastics waste as a resource for fuel“Fuel from Plastic”, I’m really surprised. But infact it is a reality. Read here that Prof. Dr. Alka Umesh Zadgaonkar, has invented a process to produce fuel from the plasic waste. And the statistics are, a two wheeler which run for 44 KMs with a Ltr petrol has run for more 6 KMs (ie, 44 + 6 = 50 ) with the plastic fuel. Really amazing!!! Hope one day we will get outlets for plastic fuel.
Bytheway, the statistics that show currently are, a ltr petrol costs us at the rate of Rs. 50.66/- but surprisingly, the plasic petrol will cost us only Rs. 30/- per ltr. How great it is?
¶ 10/26/2005 07:01:00 PM1 Comments
South Asia MVP Meet 2005 - My ExperienceThat’s a great work, in other words a great effort to bring the MVPs to get to know and build a network, indeed it was awesome.
Though it is my first appearence at such meet, it helped me to get to know many great professionals and got a chance to build a network with them. I recollect from Subhashini’s words, “this is one place to build the bridge between the other fellow MVPs”.
I have a potpurri memories registered. Personalities like, Cally Ko, Venkat etc., created a long lasting image in my life, though they spent short time with me. I couldn’t really digest the fact that Celly is 40+ and still she is such a dynamic lady. In many occassions, she took the responsibility to kindle the community, not only that but by character too she is really down-to-earth. Infact, I hesitated a lot, to dance and mingle with many of you in the begin, but the way Cally Ko mingled with us and left me with no choice other than to go around with you all. Ravi Venkatesan, is one other gentle man I can ever forget. I heard a lot about him from insiders of Microsoft. When I met him, I was really speech less. I’m speech less not just because I met him for the first time, but for his smile and gentle gesture.
The speakers training session, I don’t know howmany are benifitted out of that, but for sure I’m benifitted out of it. Though it was little too long, but nurtured me with the code of coduct that one should maintain as a speeker, the body language, bla… bla.. bla..
Though I had few troubles like, a passenger train (oooooh did I mention that? It supposed to be a passenger flight), suitcase broken during the flight, veg food is not at all good, bla.. bla.. yet all these are vanished in air when you look at the events happened there. Apart of all, I lost my mobile in the room and my cam charger in ballroom next to Xbox. Hopefully I have a vague faith that I’ll get my cam charger.
Near Field Communication (NFC)Near Field Communication (NFC) is the mechanism to communicate to the immidiate environment and will enable easy communication between electronic devices… There is a forum for this initiative, the meber ship costs vary from USD $ 1,000 to USD $ 50,000.
Microsoft's WSYP (We Share Your Pain)Microsoft TechNet UK team has made a video I saw this with 10kbps from our my work place, reasonably amusing: Microsoft's WSYP (We Share Your Pain) - Passport required to view this presentation, though you can download the ppt of this show, but the entire show is not ready for download. It will be good if the entire show is ready for offline viewing.
¶ 10/18/2005 04:35:00 PM0 Comments
Provider Model for ASP.NET 2.0 Beta 2Provider Model Tool Kit and white papers are finally out and are available from MSDN. Click here to get the tool kit and other documentation.
¶ 10/18/2005 04:30:00 PM0 Comments
Tuesday, October 11, 2005
New MVPs
I never realised that i would be awarded with MVP. I'm surprised to see my name at HERE
Instrument and Monitor Your ASP.NET Apps Using WMI and MOM 2005Are you desinging apps that work closly with MOM 2005? Here is a good article that helps you to understand the WMI Architecture and also tells you, how to create MOM management pack that monitors instrumented ASP.NET applications.
Windows CE 5.0 WebcastsClick here to find lots of web casts for Windows CE 5.0. I never realised that Microsoft will publish such kind of good and self explorative webcasts. Had these been available for me when I’m doing R&D on windows CE, for developing apps using SQL CE database, would be a great resource to learn quickly.
Any how, better late than never, if you want to learn about Windows CE 5.0, this is the best resource for you. I bet this link will not dissppoint you.
Introduction to Windows VistaWhat is windows Vista?
Do you want to know more about that? Click here to learn more about Windows Vista. This site is aboslutely a great location to get to know about Vista from the end user point as well professional
¶ 10/05/2005 05:49:00 PM0 Comments
Monday, September 26, 2005
Visual Studio Uninstallation toolThe VS Beta and CTP uninstall tool has been updated and is now available at:
http://go.microsoft.com/fwlink/?LinkID=47598
Please make sure you run this before installing any future version of Visual Studio 2005 (including the released version). Hopefully this works with only 2005 Previous versions.
¶ 9/26/2005 01:18:00 PM0 Comments
An evening with Andrew Lees
It is really a great evening with Andrew Lees. The fun part of this evening is, I never realized that I don’t have an invitation for this session till I reached the registration desk. Registration desk validated my credentials and confirmed me that I don’t have an invitation, but they let me in after taking my credentials.
By the time I went in Lee just started his session. I found my self in a place comfortably and started understanding what Lee is presenting. The entire presentation is about Microsoft products and the road map for the next 2 years.
It is good know a little deeper about that from the people who make decisions.Few highlights from the presentation are…
1) Security Vulnerabilities in Database as well as WebServer when compared to others
The table for the database vulnerabilities are ...
For Windows Server 2003 and SQL Server High - 27 Other - 36
For RedHat and MySql are High - 41 Other - 75
For RedHat and Oracle are High - 73 (Unbreakable ?) Other - 134
If these details are for database, it is interesting to note that the server system has much more facts to astonish …
The table for the Web Server Role vulnerabilities are ...
For Windows Server 2003 High - 33 Other - 19
For RedHat - Minimum High - 48 Other - 84
For RedHat - Default High - 77 Other - 97
Apart of these, “Windows costs 13-14% less to patch”… is the comment by lead companies in the industry. That doesn’t sound great?
3 More New divisions
3 More (New) divisions in Microsoft
According to Steve Ballmer, on 20th Sep 2005, Microsoft introduced 3 new Business groups are introduced for the better performance and speed of execution. The three new business units are titled as…
1) Microsoft Platform Products & Services Division 2) Microsoft Business Division 3) Microsoft Entertainment & Devices Division
To read more about what these divisions do, click here
Microsoft Baseline Security Analyzer
Today, accedentally got to know about this tool... damn cool tool to scan your system towards all kinds of security. I liked the way of presenting the results for the security misconfigurations.
This report not only tells me about what is not configured properly, and also about "how to correct" and "where to find the respective downloads".
You don't believe if i mention that, i spent hrs to find some download on download.microsoft.com. This tool is cool for me to scan all the computers in our office, simply sitting from a single location.
Did you try this? Click here to download and try on your location.
Malicious Software Removal Tool from Microsoft
Did you tried this tool? This tool as the name says, removes any kind of Malicious softwares from your PC. I couldn't trusted that in the begin, then when i run that tool online, then i got to know how many programs are running on my PC with out my notice.
I recomend every one to use this. You can download this from Mircrosoft website.
Microsoft ISV Community Days - Visual Studio 2005, SQL Server 2005
Today, i got a mail on the Microsoft ISV Community Days - Visual Studio 2005, SQL Server 2005.
There is going to be an event at Le Meridien, 28 Sankey Road, on 20th Sep 2005. If you want to be there, register yourself by calling 2521 9852 / 53 or writing a mail to isvms@erfolgcs.com
Windows Server System Reference Architecture (WSSRA)
Though this article is published on March 31, 2005, is a good article that every IT Professional should read and have a back. A short description about this is quoted as...
"Windows Server System™ Reference Architecture (WSSRA) is a documentation set that helps organizations design and deploy Microsoft® technologies to create the most integrated, standardized, and optimized Windows Server System platform..."
Windows Server 2003 R2
The test version of Windows Server 2003 R2, supports both 64-bit and x86 systems. This also bundles with the improved interoperability with Unix
SQL Server 2005 Cost Chopper Competition I never thought this kind of competition can be found. Recently we have migrated one of our major database from Oracle to SQL Server 2005.
I think the learning during that phase will help me to send my participation. My migration story is a lengthy one, let's see...
Microsoft Vs Hackers
Did you ever happen to meet your destroyer? Microsoft did... Yes, it did. Recently, Microsoft has conducted a conference. No official information from Microsoft as such about this till date.
Microsoft called this conference as, “Blue Hat” – a reference to widely known “Black Hat” security conference
Native Code Vs MSIL Code
I recently discovered that the code genereated by the .NET compiler, the so called MSIL is very much smaller when compared to that of the runtime code, Native Code. In other words, with reference to the size point of view, the Native code is approx thrice the size of the MSIL code.
Any observation as such by you? Pl update me if i'm mistaken or wrong ..