DPalkar

Stories submitted by DPalkar

Begin with Parallel programming in Dotnet 4.0(beyondrelational.com)

submitted by DPalkarDPalkar(228) 1 year, 4 months ago

Now a days computers are coming with multiple processors that enable multiple threads to be executed simultaneously to give performance of applications and we can expect significantly more CPUs in near future. If application is doing CPU intensive tasks and we find that one CPU is taking 100 %usage and others are idle. It might be situation when one thread is doing cpu intensive work and other threads are doing non cpu intensive work. In this case application is not utilizing all CPUs potential here. To get benefits all CPUs Microsoft launches Parallel Programming Library in DotNet Framework 4.0. read more...

add a comment |category: |Views: 10

tags: another

Yellow Exclamation mark on Assembly Reference in VS 2010(beyondrelational.com)

submitted by DPalkarDPalkar(228) 1 year, 5 months ago

Recently I went through a tricky problem while working with VS 2010. I was trying to reference a Class library project in a Console project. So I opened Add Reference window from Console App, selected Projects, on top left corner of the window and located Class Library Project that I wanted to reference and I clicked on Add button. It was there in the Reference list, but with an yellow exclamation mark. I looked around on Google and found some posts which were suggesting that the physical dll file might not be there while VS is trying to load it and hence, it’s showing that exclamation mark. read more...

add a comment |category: |Views: 20

tags: another

Tips and Tricks to prevent SQL Injection in .Net Code(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

There are many detailed articles available on web on SQL Injection topic and hence I’ll just try to keep it short and simple in this post. SQL Injection is an attack in which malicious code is inserted into strings that are later passed to an instance of SQL Server for parsing and execution. This can allow an attacker to steal the data as well as modify and delete it. Conventional security measures like use of SSL and IPSec, do not protect the application from SQL injection attacks. read more...

1 comment |category: |Views: 430

tags: another

Configuraing the Data Access Application Block(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

I have mentioned Data Access Application Block in my previous posts and I thought it would be convenient to mention how to configure the Data Access Application Block in your project. Mr. Thiru Thangarathinam has written a very nice post about it in very detail hence I’ll just summarize it here. read more...

add a comment |category: |Views: 10

tags: another

Creating and Executing Parameterized Queries(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

In this post we’ll discuss how we can execute parameterized queries in .Net. At times when you can’t use the most recommended way to retrieve/update data through Stored Procedures, you can rely on parameterized queries. It is much safer and recommended than building a sql string dynamically, which is a bit more error prone as well as hard to maintain. Parameterized queries are queries that have one or more embedded parameters in sql statement which are also type safe. You build them separately and attach them into the sql statement. read more...

add a comment |category: |Views: 9

tags: another

Getting Started with LINQ - Part 2 (Language Enhancements)(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

In my previous post I summarized Microsoft Language Integrated Query (LINQ). Briefly discussed about its components as well as showed some code examples to highlight the sql query type syntax it uses. When we talk about LINQ, we are talking about number of little features that were added in .net 3.0 framework which are the building blocks of the LINQ. In this post I will discuss these features a little further as follows. Object Initializers Collection Initializers Anonymous Types, Implicitly Typed variables (var keyword) Lambda Expressions Partial Methods Extension Methods read more...

1 comment |category: |Views: 258

tags: another

Getting Started with LINQ(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

In this we’ll continue to discuss how to go about the SQL Server Data Access using various technologies. This post will discuss Microsoft Language Integrated Query, otherwise known as LINQ. I will discuss how it can be used to accomplish the same tasks we have discussed in previous posts. But before that it surely requires a good introduction to start with. LINQ was introduced with .net 3.0 as one of the language enhancements. It uses generics, which was introduced in .net 2.0, thoroughly to accomplish what it was designed to do. LINQ is designed to query virtually any kind of data source which implements IEnumerable<T> interface. It allows you to query the data by emulating the SQL query expressions using any .net language you are comfortable with. Isn’t that amazing!! read more...

add a comment |category: |Views: 346

tags: another

Amazing Strategy!!(beyondrelational.com)

submitted by DPalkarDPalkar(228) 2 years ago

I recently downloaded a cool fighter plane game (iFighter lite) on my iPhone. As I started playing, I felt that plane is moving a bit slow!! But soon enough I saw a little perk on the screen and I flew over it and suddenly plane's speed increased. Soon enough, enemy planes started attacking me and I shot back at them. But again I felt my bullets were too slow! I shot down few planes and a new perk showed up on the screen. As soon as I collected it, my plane started shooting more bullets per attack!! Yeeee hoo!!! I started enjoying this and before I knew, I by mistake collected a "skull and bones" perk and "darrnn!!" I said, cause I knew now my plane had lost those powerful bullets :( Now, of course I am not writing a review about the human behavior while playing games on iPhone! But what I am trying to highlight here is the plane's ability to act differently in certain conditions! And that's something the Strategy Design Pattern allows us to do. I’ll try to use this game as an analogy to discuss about Strategy Design Pattern. Definition: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. read more...

add a comment |category: |Views: 7

tags: another