Labels

Monday, November 2, 2009

STAGES OF CONTROL OVER OTHERS

There are several stages to control others, the worst one being hatred and the best one being neutrality-appreciation. Once you achieve neutrality, it means you have completely given up the want to control others. Here are some tips to assess all the stages and understand how to get out of each one.

Hatred: This is the worst stage to be in. If you hate some people, it shows that you want to control the outside circumstances. It bothers you that some people behave in a certain way or because of who they are. Because you feel this way, you are completely imprisoned and you feel angry or disappointed as a result. Your ego is happy because it has achieved its goal of separating you from others and you indeed feel very distant from other people.

To give up hatred you simply need to change. When you honestly seek ways to stop hating people, you magically stop hatred.

Dislike: The second stage that you experience once you don't hate people is disliking them. You no longer feel deep anger, disgust and resentment of others, but you still feel negative towards them. However, now you feel a bit better as though you got rid of some of the uneasiness and uncertainty.

At this stage you would still feel uncomfortable with the idea of oneness of all the humanity and the unconditional love because you would not be able to grasp the real meaning of such ideas. A better way to improve this feeling is by understanding that you don't need to control others to feel good.

Disapproval: A milder control stage is disapproval of the actions of others. You may not necessarily dislike people anymore, but you still disapprove of some of their actions or behaviours. So now you no longer want to control people, but you want to control certain actions they take. As you no longer want to control people, you feel a huge relief but you still don't feel entirely peaceful and free.

Tolerance: Many people think that tolerance is the last stage in giving up control over others. Yes, it is better than hatred or disapproval, but it still contains a desire to have power over others. When you become tolerant, you still don't feel a complete peace of mind and freedom.

At this stage you can feel that some small part of yourself still wants to cling to other people and teach them the right way to live, but you restrain from doing that. This shows that you still have some want to control others and therefore you fail to free yourself. Go further than that, seek complete neutrality and ignorance to what others do.

Neutrality: This is the last stage – you completely give up control and you are perfectly fine with that. You completely give up your ego. No matter what other people's opinions are, no matter what they do, who they are or how they look - you are perfectly fine with that.

In the neutrality stage, when you hear someone angrily comment about the way someone looks or behaves, that just seems funny to you and you feel sorry for the person who critiques – you know that they are still suffering because they want to control what they cannot control.

Your neutrality may even develop into appreciation. You may start to notice good things in even worst people. You may start to understand that everyone is a creator and that from their perspective they are doing the right thing. Every behaviour rises from a good cause, just the action people take to get what they want may not be agreeable to you.

The desire to control others tricks many into the false illusion of importance and power. However, a real sense of importance can only be acquired by searching for importance within yourself and not outside of yourself.

It is so easy to get away from the want to control, it may even at first be hard to believe. All you need to do is want to change, because when you ask it is always given.

Once you completely give up control over others you will feel a huge relief and peace of mind.

 

Reference: Link

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

 

Sunday, November 1, 2009

Deprecating Web Services

Hi,

 

Few quick note on Migrating WSE 3.0 Web Services to WCF.

 

The benefits of migrating WSE 3.0 Web services to Windows Communication Foundation (WCF) include improved performance and the support of additional transports, additional security scenarios, and WS-* specifications. A Web service that is migrated from WSE 3.0 to WCF can experience up to a 200% to 400% performance improvement. WCF implements many advanced web services (WS) standards such as WS-Addressing, WS-ReliableMessaging and WS-Security

 

 

WCF has support for multiple protocols (TCP/IP, HTTP, PIPE, MSMQ etc.). ASP.NET Web Services has only http.

WCF can be hosted outside if IIS i.e.: can be hosted in managed windows applications, IIS, a Windows Service, and WAS (Windows Process Activation Service)

WCF provides customization such as event hooks into service start / end / init / custom global error Handling etc. etc.

WCF supports more of the WS-* standards than Web Services, unless WSE is used.

You can’t really do streaming or support atomic transactions etc in Web Services.

WCF supports multiple binding’s HTTP, WSHTTP, TCP, MSMQ etc. ASP.NET Web Services has only http.

It can control concurrency

It has AJAX Integration and JSON (JavaScript object notation) support

Web Services have no instance management, i.e. you cannot have a singleton web service, or a session-full web service. You can maintain state of web services but we all know how painful that is.

A Web Service supports only the HTTP Request-Reply model, while WCF supports simple, Request-Reply and Duplex channels.

WCF is an extensible platform.

WCF while very similar to Web Services also incorporates many of the features of Remoting and .NET Enterprise Services (COM+ Services Components).

It is flexible and extensible like Remoting only more so.

It is compatible like Web Services only more so.

It is feature rich like Enterprise Services only more so 

 

 

Directly from Wikipedia: WCF is designed in accordance with Service oriented architecture principles to support Distributed computing where services are consumed by consumers. Clients can consume multiple services and services can be consumed by multiple clients. Services typically have a WSDL interface which any WCF client can use to consume the service, irrespective of which platform the service is hosted on. WCF implements many advanced web services (WS) standards such as WS-Addressing, WS-ReliableMessaging and WS-Security.

 

The WCF unifies the various communications programming models supported in .NET 2.0, into a single model. Released in November 2005, .NET 2.0 provided separate APIs for SOAP-based communications for maximum interoperability (Web Services), binary-optimized communications between applications running on Windows machines (.NET Remoting), transactional communications (Distributed Transactions), and asynchronous communications (Message Queues). WCF unifies the capabilities from these mechanisms into a single, common, general Service-oriented programming model for communications.

WCF can use SOAP messages between two processes, thereby making WCF-based applications interoperable with any other process that communicates via SOAP messages.

 

 

 

In What situations should you choose WCF instead of XML Web Services?

My first answer could be: now that .NET 3.5 is out and now that we know that a WCF service could be exactly like an XML Web Service, all the new services should be implemented by using WCF.

However, for giving a more professional answer... J if you have a scenario where you plan that different client applications needs to consume your service with different protocols, WCF is recommended. You can write your WCF service and expose different endpoint protocols for every types of different applications that could consume the service. You can obtain a complete and flexible SOA solution...

 

Conversion:

 

-          Conversion could be approached in two ways:

o        Migrating Existing Web Services to WCF (Few Tradeoffs - TBD)

o        Scratch Code.

 

 

Quick Link on Direct Migration:

 

Integrating WCF with your existing ASMX Services

Convert existing WS to WCF

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 


From: Brijesh Choubey [mailto:bchoubey@xpanxion.com]
Sent: Saturday, October 31, 2009 12:27 AM
To: Arun Manglik; Nitin Mankar; Prakash Sharma
Cc: Prasad Pande
Subject: FW: Deprecating Web Services

 

 

Let's discuss this sometime next week before me discussing with Donnie.

 

Thanks

Brijesh

 

From: Owen, Donnie [mailto:Donnie.Owen@nuance.com]
Sent: Friday, October 30, 2009 2:53 PM
To: Brijesh Choubey
Subject: Deprecating Web Services

 

Brijesh,

 

We need to consider deprecating existing and future web services in favor of WCF services. When we discuss 5.0 changes for VGS/Desktop I’d like to explore this further.

 

Thanks,

 

D

____________________________________________

Donnie Owen

Lead Architect

 

NUANCE COMMUNICATIONS, INC.

607 Saint Henry Drive

Brandon, FL 33511

 

813.494.2456  Mobile

813.651.3615  Office

 

NUANCE.COM 

The experience speaks for itself ™

 

Friday, October 30, 2009

XML & DTD

Hi

 

Here the left is XML and right one is it’s DTD to validate the left side XML.

 

XML

DTD

<xml version="1.0"?>

 

<po id="PO1456">

 

  <date year="2002" month="6" day="14" />

 

  <address type="shipping">

    <name>Frits Mendels</name>

    <street>152 Cherry St</street>

    <city>San Francisco</city>

    <state>CA</state>

    <zip>94045</zip>

  </address>

 

  <address type="billing">

    <name>Frits Mendels</name>

    <street>PO Box 6789</street>

    <city>San Francisco</city>

    <state>CA</state>

    <zip>94123-6798</zip>

  </address>

 

  <items>

    <item quantity="1"

          productCode="R-273"

          description="14.4 Volt Cordless Drill"

          unitCost="189.95" />

    <item quantity="1"

          productCode="1632S"

          description="12 Piece Drill Bit Set"

          unitCost="14.95" />

  </items>

</po>

<?xml version="1.0" encoding="UTF-8"?>

 

<!ELEMENT po (date,address+,items)>

<!ATTLIST  po id CDATA #REQUIRED>

 

<!ELEMENT date EMPTY>

<!ATTLIST date year CDATA #REQUIRED

               month (1|2|3|4|5|6|7|8|9|10|11|12) #REQUIRED

               day (1|2|3|4|5|6|7|8|9|10|11|

                    12|13|14|15|16|17|18|19|

                    20|21|22|23|24|25|26|27|

                    28|29|30|31) #REQUIRED>

 

<!ELEMENT address (name,company?,street+,city,state,zip)>

<!ATTLIST address type (billing|shipping) #REQUIRED>

<!ELEMENT name    (#PCDATA)>

<!ELEMENT company (#PCDATA)>

<!ELEMENT street  (#PCDATA)>

<!ELEMENT city    (#PCDATA)>

<!ELEMENT state   (#PCDATA)>

<!ELEMENT zip     (#PCDATA)>

 

<!ELEMENT items (item)+>

 

<!ELEMENT item EMPTY>

<!ATTLIST item quantity CDATA #REQUIRED

               productCode CDATA #REQUIRED

               description CDATA #REQUIRED

               unitCost CDATA #REQUIRED>

 

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

 

The NOT IN clause in LINQ to SQL

The NOT IN clause in LINQ to SQL

 

Programmers used to write SQL queries often want to know a LINQ syntax equivalent to the SELECT NOT IN clause in SQL.

Consider this code that returns all the customers who don't have an order in the Orders table. This is one SQL query that returns that value.

 

SELECT *
FROM [dbo].[Customers] AS [t0]
WHERE [t0].[CustomerID] NOT IN (
    SELECT [t1].[CustomerID]
    FROM [dbo].[Orders] AS [t1]
)

 

This is not the faster way to get the desired result (using a NOT EXISTS is the favorite way - more on this shortly). LINQ offers a Contains extension method that allows writing the following code.

 

NorthwindDataContext dc = new NorthwindDataContext();

dc.Log = Console.Out;

var query =

    from c in dc.Customers

    where !(from o in dc.Orders

            select o.CustomerID)

           .Contains(c.CustomerID)

    select c;

foreach (var c in query) Console.WriteLine( c );

 

In LINQ to SQL the query is translated into this SQL code:

 

SELECT [t0].[CustomerID], [t0].[CompanyName], [t0].[ContactName],

       [t0].[ContactTitle], [t0].[Address], [t0].[City],

       [t0].[Region], [t0].[PostalCode], [t0].[Country], [t0].[Phone], [t0].[Fax]

FROM [dbo].[Customers] AS [t0]

WHERE NOT (EXISTS(

    SELECT NULL AS [EMPTY]

    FROM [dbo].[Orders] AS [t1]

    WHERE [t1].[CustomerID] = [t0].[CustomerID]

    ))

 

This approach is not only semantically equivalent, but also faster in execution. The following is the result with SET STATISTICS IO ON. The first result is for the hand-written query that use the NOT IN clause.  The second result is for the LINQ to SQL generated query.

 

(2 row(s) affected)

Table 'Orders'. Scan count 182, logical reads 364, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'Customers'. Scan count 1, logical reads 5, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

 

(2 row(s) affected)

Table 'Orders'. Scan count 1, logical reads 5, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

Table 'Customers'. Scan count 1, logical reads 5, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

 

The LINQ query is not always similar to SQL (like from/select), but in general you should be able to write in LINQ a SQL query. However, there is not always a direct translation for each single SQL keyword, but you can get the same result with semantically equivalent statements.

 

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

 

Tuesday, October 6, 2009

Building Cascading DropDownList in ASP.Net Using jQuery and JSON

Hi,

 

Recently worked for ‘Building Cascading DropDownList in ASP.Net Using jQuery and JSON’.

Reference: Link

 

The reason to go for this approach is the problem while using Cascading DropDown in Update Panel.

Here is the Link, Link, Link

 

However as I had thought, the soultion is not promising with Jquery & JSON as well. i.e it Things works fine till the records are less than 1000 (1k).

It dies when the count reaches to 5k & becomes worst at 10k.

Here is where the solution and the problem - Link

 

Hope this helps.

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

 

Tuesday, September 29, 2009

Desert Island Web Development Tools

Desert Island Web Development Tools

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

 

WebsiteSpark Program

WebsiteSpark Program

 

Microsoft has announced a new program – WebsiteSpark

 

WebsiteSpark is designed for independent web developers and web development companies that build web applications and web sites on behalf of others.  It enables you to get software, support and business resources from Microsoft at No Cost For Three Years, and enables you to expand your business and build great web solutions using ASP.NET, Silverlight, SharePoint and PHP, and the open source applications built on top of them.

 

What does the program provide?

 

WebSiteSpark provides software licenses that you can use for three years at no cost.  Once enrolled, you can download and immediately use the following software from Microsoft:

 

  • 3 licenses of Visual Studio 2008 Professional Edition
  • 1 license of Expression Studio 3 (which includes Expression Blend, Sketchflow, and Web)
  • 2 licenses of Expression Web 3
  • 4 processor licenses of Windows Web Server 2008 R2
  • 4 processor licenses of SQL Server 2008 Web Edition
  • DotNetPanel control panel (enabling easy remote/hosted management of your servers)

 

The Windows Server and SQL Server licenses can be used for both development and production deployment.  You can either self-host the servers on your own, or use the licenses with a hoster.  WebsiteSpark makes it easy to find hosters who are also enrolled in the program, and who can use your licenses to provide you with either dedicated or virtual dedicated servers to host your sites on.

In addition to software, WebsiteSpark provides partner opportunities to grow and build your business (including customer referrals through our partner programs).  It also includes product support (including 2 professional support incidents) and free online training for the products.

 

Who can join the program?

 

WebSiteSpark is available to independent web developers and small web development companies.  The only two requirements to join the program are:

 

  1. Your company builds web sites and web application on behalf of others.
  2. Your company currently has less than 10 employees.

 

If you meet these requirements you can visit the WebsiteSpark website and sign-up today. 

 

What happens after the 3 years?

 

WebsiteSpark is a 3 year program.  There is no obligation to continue to use any of the software after the three years is over, and there are no costs for the three years other than a $100 program fee at the end of the three years.

At the end of the three years, WebsiteSpark participants can optionally choose to purchase all of the software in the WebsiteSpark program via a $999/year package.  This includes 3 copies of VS Professional, 1 copy of Expression Studio (including Blend and Sketchflow), 2 copies of Expression Web, and 4 processor licenses of Windows Web Server 2008 and 4 processor licenses of SQL Server Web edition that can be used for production deployment.

Alternatively, if you want to purchase only the production server licenses, you can take advantage of a $199/year offering that includes both 1 Windows Web Server processor license and 1 SQL Server Web edition processor license.  You can buy the quantity you need of this package at $199/year each. 

 

 

Hope this helps,

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead