RSS
 

Archive for the ‘Uncategorized’ Category

CSS3 Look

02 Sep

CSS3 is the least version of CSS includes properties that allow you to style HTML elements with rounded corners, drop shadows and even of color gradients

 css3

 
 

MyBatis , iBatis are the Same.

23 Aug
MyBatis is iBATIS. We had to change the name because we left Apache. When you join Apache Software Foundation you have to sign over your trademarks
for understandable reasons. Because we chose to leave ASF we had to come up with a new name (MyBatis). The whole iBATIS team is continuing the
development of iBATIS under the new name of MyBatis. [Clinton Begin]
 
 

Delete & Truncate are different @ SQL

20 Aug

Delete & Truncate have identical tasks (Delete data from table) but with the following differences: (Note that you may have this question @interview :) :))

  • Truncate:
    • DDL command
    • can’t be rolled back, all of the memory space is released back to the server.
    • much faster
    • don’t check constraints
  • Delete:
    • DML command
    • can rollback
    • slower than Truncate command
    • check constraints, if exists then show errors
 
 

Factory Design Pattern

19 Aug

Since most object-oriented languages and runtimes provide object instantiation (e.g. new, newobj, etc.) and initialization (e.g. constructors) mechanisms, there may be a tendency to simply use these facilities directly without forethought to future consequences. The overuse of this functionality often introduces a great deal of the inflexibility in the system, as the direct use of a language/run-time object instantiation function creates an explicit association between the creator and created classes. While associations are a necessary type of relationship in an object-oriented system, the coupling introduced between classes is extremely difficult to overcome should requirements change (as they always do). [MSDN Microsoft]

One of the most widely used creational patterns is the Factory. This pattern is aptly named, as it calls for the use of a specialized object solely to create other objects, much like a real-world factory [MSDN Microsoft]

As with other design patterns, there are countless variations of the Factory pattern, although most variants typically used the same set of primary actors, a client, a factory, and a product. The client is an object that requires an instance of another object (the product) for some purpose. Rather than creating the product instance directly, the client delegates this responsibility to the factory. Once invoked, the factory creates a new instance of the product, passing it back to the client. Put simply, the client uses the factory to create an instance of the product [MSDN Microsoft]

The factory completely abstracts the creation and initialization of the product from the client. This indirection enables the client to focus on its discrete role in the application without concerning itself with the details of how the product is created. Thus, as the product implementation changes over time, the client remains unchanged

 

 

 

http://gsraj.tripod.com/design/creational/factory/factory.html | http://msdn.microsoft.com/en-us/library/ee817667.aspx | http://www.dofactory.com/Patterns/PatternFactory.aspx

 
 

Temporary Post Used For Theme Detection (5931f556-5e72-4a44-ad10-f5a5e9719612 – 3bfe001a-32de-4114-a6b4-4005b770f6d7)

19 Aug

This is a temporary post that was not deleted. Please delete this manually. (66596951-64c2-40f8-b2e1-d5e9dc00c9dd – 3bfe001a-32de-4114-a6b4-4005b770f6d7)

 
 

Creating ASP.Net Dynamic Website @Visual Studio

11 Aug

Dynamic data enables you to create a data-driven web site with little or no coding

An important feature of Dynamic data is the scaffolding framework. when scaffolding is enabled in a dynamic data web site, ASP.Net analyzes the application’s data model  and generate web pages dynamically based on the data in the data model. these auto generated web pages provide the capability to display, insert, delete and edit data for each table.

 

we have two options of this project template:

  1. ASP.Net Dynamic Data Entities web application
  2. ASP.Net Dynamic Data LINQ to SQL

in our example, let’s try Dynamic Data LINQ to SQL

Capture

the next step, is creating data model using LINQ To SQL (by adding new item –> LINQ To SQL Classes) to your solution and change connection string in the web.config

then, you need to register data @Global file

if you view the default page, you will see list of all tables in your data model, if you press on one table

 
 

Saving Time & Effort with IntelliTrace

05 Aug

Traditional debuggers show you the state of your application at the current time with limited information about events that occurred in the past. With IntelliTrace, you can actually see events that occurred in the past and the context in which they occurred. this reduces the number of restarts that are required to debug your application and the possibility that an error will fail to reproduce when you return the application.

IntelliTrace operates invisibly in the background, recording debug information. when you want to look back at a past state of your application, you can enter IntelliTrace mode. In this mode, you can navigate to various points in time where events of interest have been recorded.

when you use the default settings, IntelliTrace has minimal effect on application performance. Therefore, IntelliTrace is turned on by default. even if you did not plan to use IntelliTrace when you started your

IntelliTrace can save time by shortening the debugging cycle. For example, suppose that you are debugging an application that reads a registry value during initialization, but the registry key does not exist. The effect of that problem might not be noticeable until much later in the run of your application. Then, you must determine why the registry value was not read. The usual approach is to restart the application and place a breakpoint near the registry access. Rerunning the application takes time. With IntelliTrace, you can avoid many such restarts. Instead of rerunning your application, you can begin debugging with IntelliTrace, which enables you to look back at all registry accesses, choose the one that interests you, and examine the state of your application when that registry access occurred. You might experience similar time savings when you debug other problems such as an exception or a file access error.

you can watch this links

IntelliTrace in Visual Studio 2010 and Team Foundation Server 2010 | IntelliTrace Debugging in Visual Studio 2010 | How Do I: Using IntelliTrace in Visual Studio 2010

My References:

Debugging Applications with IntelliTrace | IntelliTrace: A graphical comparison | Debuggin LINQ to SQL queries using the Hisorical Debugger | Fix Bugs Faster with IntelliTrace 2010

 
 

C++, VC++ Differences

04 Aug

i have task on C++ :D , so i search for the difference between C++ and visual C++ which you can found in visual studio, i google for some time and found and i hope to share :

  • C++ and VC++ are same – you can use same classes and everything, the only difference is VC++ allows you to make program for windows based machines. C++ does for DOS console only.
  • Visual C++ is Microsoft’s version of the C++ programming language with specific extensions for Windows operating system.
  • C++ was created few years ago, based on another language called C, to solve many of the problems that programmers encountered. At the same time, it was made a (very) powerful language. As it usually happens, C++ solved many problems but also presented its own issues, including some limitations or difficulties. C++ is still widely used and is probably the most popular language in the computer world as it is present on most operating systems. To reduce many of the problems encountered in C++, Microsoft created an enhanced version of C++. This language is sometimes called Managed Extensions For C++. You will find out why the word Managed. As for Extensions, one of this new language’s goals is to "extend" the capabilities of C++ beyond the current functionality of C++. This language is also sometimes called Managed C++.
  • visual C++ is managed environment but C++ is not , what i mean by managed and unmanaged,
    managed means you don’t need to worry about memory management, "like cleaning up memory because there is a garbage collector does this duty for us.
    unmanaged means you must worry about memory management "like when you create object on the heap you have to clean it up manually"
  • C++ is a language and Microsoft Visual C++ is a development environment for the C++ language. It includes a compiler, editor, debugger and much more.The "flavor" of C++ accepted by VC has some Microsoft-specific extensions that may not be accepted by other compilers. Most compilers have such extensions.
 
 

Our Life @Facebook & ASP.Net … We can integrate

03 Aug

i determine to write post which collect all the functionality you may want to use in ASP.Net development website so i will start to collect one functionality one after the other. Share Functionality is the first, through my search in the internet i found the following description for Share functionality of facebook. 

First, let’s review what Facebook Share actually is. Adding a Share widget to a web page allows a user to click on an icon which launches a Facebook Share dialog. If the user has a Facebook account, they can then share the web page on their Facebook “wall” with their friends on Facebook, adding comments if they so choose. Their friends will have the opportunity to share with their friends, and so on. In this way, a web page’s exposure can increase dramatically in a very short time

we have to do the following steps to enable Share Functionality in website:

1. Add link to the facebook share application Share

1:      
2:         <a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a>
3: 
4: 

2. Add Script tag which point to JavaScript component which hosted by the facebook (we don’t do anything we only configure :D )

1: <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
2: 
3: 

3. Add Meta tag for the page Title + Description

1: 
2:     <meta name="My Page" content="this is the title" />
3:     <meta name="description" content="This is a short summary of the page." />
4:   
5: 

My Congratulation, we are finished :D

the second functionality i want to discuss is Connect Functionality

Today we are announcing Facebook Connect. Facebook Connect is the next iteration of Facebook Platform that allows users to "connect" their Facebook identity, friends and privacy to any site. This will now enable third party websites to implement and offer even more features of Facebook Platform off of Facebook – similar to features available to third party applications today on Facebook.

 
 

Really Great Project @ELMAH Project for 1 min

03 Aug

My friend told me about this link, i found great project called ELMAH (Error Logging Modules and Handlers) which is an application-wide error logging facility that is completely pluggable so in this post i only want to share this link for the project visit it and you will discover more and more Visit ELMAH Project

 
 
 
 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up