background preloader

NewLearning

Facebook Twitter

RabbitMQ - .NET/C# Client API Guide. When building distributed systems with RabbitMQ, there are a number of different messaging patterns that crop up over and over again. In this section, we cover some of the most common coding patterns and interaction styles: Limited library support is also available for working with these patterns, in the Future releases of the RabbitMQ .NET client library will include improved high-level support for the most common messaging patterns and their variations. Point-to-point Messaging The point-to-point messaging pattern occurs when the publisher of a message has a particular receiving application in mind - for instance, when a RPC-style service is made available via the AMQP server, or when an application in a workflow chain receives a work item from its predecessor and sends the transformed work item to its successor. Synchronous, Client-Server Remote Procedure Call (RPC) Addressing the service Ensuring a service instance is listening Alternatively, one could use Publisher Confirms.

Subscription. Random Acts of Coding.

EntityFramework

Papers We Love. Home - Chai. New. Edit, Compile and Execute Programs Online| Online IDE. Lettering.js - A jQuery plugin for radical web typography. ECMAScript Language Specification - ECMA-262 Edition 5.1.

This is the HTML rendering of Ecma-262 Edition 5.1, The ECMAScript Language Specification. The PDF rendering of this document is located at . The PDF version is the definitive specification. Any discrepancies between this HTML version and the PDF version are unintentional. Copyright © 2011 Ecma International Ecma International Rue du Rhone 114 CH-1204 Geneva Tel: +41 22 849 6000 Fax: +41 22 849 6001 Web: This document and possible translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works.

Software License 1. 2. 3. Reserved Words - JavaScript. The following are keywords and may not be used as variables, functions, methods, or object identifiers, because ECMAScript specifies special behavior for them: Words reserved for possible future use The following are reserved as future keywords by the ECMAScript specification. They have no special functionality at present, but they might at some future time, so they cannot be used as identifiers. These keywords may not be used in either strict or non-strict mode. In ECMAScript 1 List of FutureReservedWords, defined in ECMAScript 1: case catch const debugger default do enum export extends finally import super switch throw try In ECMAScript 2 List of FutureReservedWords, defined in ECMAScript 2: abstract boolean byte case catch char class const debugger default do double enum export extends final finally float goto implements import instanceof int interface long native package private protected public short static super switch synchronized throw throws transient try volatile In ECMAScript 3.

What most schools don't teach. Introducing Git Version Control into Your Team | pattern & practices symposium 2013. Encrypting Configuration Information Using Protected Configuration. The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location. Part of securing an application involves ensuring that highly sensitive information is not stored in a readable or easily decodable format. Examples of sensitive information include user names, passwords, connection strings, and encryption keys.

Storing sensitive information in a non-readable format improves the security of your application by making it difficult for an attacker to gain access to the sensitive information, even if an attacker gains access to the file, database, or other storage location. One of the primary places that sensitive information is stored in an ASP.NET application is the Web.config file. To help secure information in configuration files, ASP.NET provides a feature called protected configuration, which enables you to encrypt sensitive information in a configuration file.

How To: Secure Connection Strings when Using Data Source Controls. The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location. When working with data source controls, you should centralize the location of your connection strings placing them within the application's Web.config file. The benefits of this are twofold: your data source controls might reference the connection string's name from the configuration file rather than include the connection string as a control property; and site administration is easier because management of connection strings is centralized, which eliminates the need to revisit individual pages if your connection string information changes. In this topic you'll learn how to place your connection strings within the Web.config file using Visual Studio and a data source control, and how to use the command-line utility, Aspnet_regiis.exe, to encrypt those connection strings for an added layer of security.

Advance By Design development. DuckDuckGo. ProgrammingOcean. 6 important uses of Delegates and Events. 6 important uses of Delegates and Events Introduction In this article we will first try to understand what problem delegate solves, we will then create a simple delegate and try to solve the problem. Next we will try to understand the concept of multicast delegates and how events help to encapsulate delegates. Finally we understand the difference between events and delegates and also understand how to do invoke delegates asynchronously. Once we are done with all fundamentals we will summarize the six important uses of delegates.

This is a small Ebook for all my .NET friends which covers topics like WCF,WPF,WWF,Ajax,Core .NET,SQL etc you can download the same from here or else you can catch me on my daily free training @ from here Abstraction problems of methods and functions Before we move ahead and we talk about delegates let’s try to understand what problem does delegate solve. X` In short the problem is that there is a tight coupling of function names with the UI client. 2. 3. 4. 5. How to Create Reports in VB.NET. Write Less Code. One of the fundamental truths of software development is that you have to write code, but one of the biggest fallacies is the idea that writing code is your job.

When I first started out as a software developer, I fell into that trap, writing code is a powerful thing, its empowering, you feel like you are productive and you are accomplishing things. However, what I have learned over the years is the real truth of the matter. The truth that the job of a software developer is to write as little code as possible. Now, don't get me wrong, we should not be getting ourselves into code golf situations where we are compacting code and saving keystrokes to the point where the code you produce is no longer understandable. When you think about it though the fact that most of your time will be maintaining the terrible code you wrote, writing less code and not creating more work for yourself will start to look like an exceptionally good idea.

Why? So why should you write less code? Lambda Expressions (C# Programming Guide) A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions. + To create a lambda expression, you specify input parameters (if any) on the left side of the lambda operator =>, and you put the expression or statement block on the other side.

For example, the lambda expression x => x * x specifies a parameter that’s named x and returns the value of x squared. You can assign this expression to a delegate type, as the following example shows: + delegate int del(int i); static void Main(string[] args) { del myDelegate = x => x * x; int j = myDelegate(5); } To create an expression tree type: + The => operator has the same precedence as assignment (=) and is right associative (see "Associativity" section of the Operators article) See Also. Articles. A Software Developer's Guide to HTTP Part V– State & Security An overview of cookies and authentication protocols for HTTP and web programming.

Published: Tuesday, February 7, 2012 A Software Developer's Guide to HTTP Part IV– Web Architecture Proxy servers, caching, and the flexibility of the web are the focus for this article as we view HTTP from an architectural perspective. Published: Thursday, February 2, 2012 A Software Developer's Guide to HTTP Part III–Connections In this article we'll look at HTTP from a networking perspective, and talk about HTTP connection optimizations like persistent connections and parallel connections.

Published: Thursday, January 26, 2012 A Software Developer's Guide to HTTP Part II - Messages A look at request and response messages in HTTP, including HTTP methods, status codes, and headers. Published: Thursday, January 19, 2012 A Software Developer's Guide to HTTP Part I - Resources A look at HTTP resources and resource locators. Databinding in Silverlight. 2.0 Tips, Tricks, Recipes and Gotchas. OxyGen Code Generator: Features. How to Show images in the GridView when image stored in the database | Dot Net Twitter. Extreme ASP.NET: Client-Side Web Service Calls with AJAX Extensions. Extreme ASP.NET Client-Side Web Service Calls with AJAX Extensions Fritz Onion Code download available at:ExtremeASPNET2007_01.exe(160 KB) Since its inception, ASP.NET has fundamentally been a server-side technology.

There were certainly places where ASP.NET would generate client-side JavaScript, most notably in the validation controls and more recently with the Web Part infrastructure, but it was rarely more than a simple translation of server-side properties into client-side behavior-you as the developer didn't have to think about interacting with the client until you received the next POST request. At the Microsoft Professional Developer's Conference in September 2005, Microsoft unveiled a new add-on to ASP.NET, code-named "Atlas," which was focused entirely on leveraging client-side JavaScript, DHTML, and the XMLHttpRequest object. Calling Web Services with AJAX <%@ Page Language="C#" %><! This way if the Web service call fails, you will notify the client with an alert box.

How It Works. HOW TO: Control Authorization Permissions in an ASP.NET Application. Creating a Web API that Supports CRUD Operations. This tutorial shows how to support CRUD operations in an HTTP service using ASP.NET Web API. Software versions used in the tutorial Visual Studio 2012 Web API 1 (also works with Web API 2) CRUD stands for "Create, Read, Update, and Delete," which are the four basic database operations. Many HTTP services also model CRUD operations through REST or REST-like APIs. In this tutorial, you will build a very simple web API to manage a list of products. Each product will contain a name, price, and category (such as "toys" or "hardware"), plus a product ID. The products API will expose following methods. Notice that some of the URIs include the product ID in path. Resources The products API defines URIs for two resource types: Methods The four main HTTP methods (GET, PUT, POST, and DELETE) can be mapped to CRUD operations as follows: GET retrieves the representation of the resource at a specified URI.

Note: The PUT method replaces the entire product entity. Create a New Web API Project Adding a Model. Free source code, tutorials and articles | Visual Basic, VB.NET, C#, PHP/MySQL, C/C++, Java/JavaScript, ASP/ASP.NET, MS Access, FoxPro, SQL. UpdatePanel not working with TemplateField. Using Globalization and Localization in ASP.NET. Download source - 5.09 KB Introduction This article is aimed at understanding how Globalization and Localization work in ASP.NET. Background A few days ago, I saw a TV commercial that said that "Even the smallest business can go multinational". If we need our website to be designed in such a way that it caters to the need of users from across the planet, then perhaps it is a good idea to understand and implement Globalization and Localization in our application.

Before starting, let's get these two terms straight. Understanding Resource Files Imagine a scenario where we have a web page with a lot of labels and text in it. To avoid having to write such code, ASP.NET provides us Resource files. There are two types of resources: Local Resources Global Resources Local resources are the resources which are specific for a page, i.e., there will be local resource file for every page. Using the Code Let us now create a test web page that we will be working on to understand. Points of Interest History. Asp.net insert, Edit, update, delete data in gridview. SqlConnection con = new SqlConnection("Data Source=SureshDasari;Integrated Security=true;Initial Catalog=MySampleDB"); protected void Page_Load(object sender, EventArgs e) if (! IsPostBack) BindEmployeeDetails(); protected void BindEmployeeDetails() con.Open(); SqlCommand cmd = new SqlCommand("Select * from Employee_Details", con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); con.Close(); if (ds.Tables[0].Rows.Count > 0) gvDetails.DataSource = ds; gvDetails.DataBind(); else ds.Tables[0].Rows.Add(ds.Tables[0].NewRow()); int columncount = gvDetails.Rows[0].Cells.Count; gvDetails.Rows[0].Cells.Clear(); gvDetails.Rows[0].Cells.Add(new TableCell()); gvDetails.Rows[0].Cells[0].ColumnSpan = columncount; gvDetails.Rows[0].Cells[0].Text = "No Records Found"; protected void gvDetails_RowEditing(object sender, GridViewEditEventArgs e) gvDetails.EditIndex = e.NewEditIndex; protected void gvDetails_RowUpdating(object sender, GridViewUpdateEventArgs e) cmd.ExecuteNonQuery();

Free source code and usefull technical articles - Programmer World. Signs that you're a bad programmer - Software Engineering Tips. Why was this written? Most of these faults were discovered the hard way by the author himself, either because he committed them himself or saw them in the work of others. This paper is not meant for grading programmers, it was intended to be read by programmers who trust their ability to judge when something is a sign of bad practice, and when it's a consequence of special circumstances. This paper was written to force its author to think, and published because he thinks you lot would probably get a kick out of it, too. 1. Inability to reason about code Reasoning about code means being able to follow the execution path ("running the program in your head") while knowing what the goal of the code is.

Symptoms Remedies To get over this deficiency a programmer can practice by using the IDE's own debugger as an aide, if it has the ability to step through the code one line at a time. 2. Object Oriented Programming is an example of a language model, as is Functional or Declarative programming. 3. 4. Beginner's Guide: Exploring IIS 6.0 With ASP.NET. Table of Contents Introduction In the past, I have written a few articles for beginners and had got a very good response from all readers. This time I have planned to write an article on IIS 6.0 and Integration of IIS with ASP.NET. I have worked on IIS 5.1, IIS 6.0, and IIS 7.0. Though the purpose of all IIS servers are the same, they are very different in their architecture and use. Don't worry, I am not going to explain the differences of those three versions of IIS.

What is a Web Server Visual Studio has its own ASP.NET engine which is responsible for running your web application so you don't have any problems running an ASP.NET application from the VS IDE. IIS Server Overview The first client will make a request to the web server (IIS), the web server checks the request and will pass the request to the ASP.NET Process (don't get confused here, I have explained the details), the ASP.NET process engine will process the request and pass the response to the client via the web server.

CRUD with ADO.NET, DAL and Stored Procedures. CRUD operations using LINQ Entities. Exception Handling. Delegates and Events in C# / .NET. [ashKAP] by Ashish Kapoor. Lesson 06. Threading in C# - Free E-book. How to call a Visual C# method asynchronously. Queens.db.toronto.edu/~papaggel/courses/csc309/docs/lectures/web-architectures.pdf. 3 Tier Architecture. C# : Unit Testing Private Methods. How to unit test private methods in C# using NUnit | ISerialized.