background preloader

C#, Visual Studio 2008, Silverlight, ASP.NET, WPF, WCF, WF, and

Related:  TrabajoDesarrollo

Starting threads with parameters in C# Please note: this page is now obsolete. It is now part of my larger article about threading. In the C# newsgroup, quite a few people have asked how parameters should be passed to new threads. In other words, if a new thread needs specific information in order to run (as it often does), how do you get that information to the thread? The ThreadStart delegate doesn't take any parameters, so the information has to be stored somewhere else. In some cases, you actually just wish to call a method in some class (possibly the currently executing class) with a specific parameter. Using ThreadPool instead One choice you should always be aware of when starting a new thread is whether it would actually make more sense to use ThreadPool, which will recycle threads for you, and queue items if the pool is full. To add a job to the pool, you merely need to call ThreadPool.QueueUserWorkItem with a WaitCallback delegate. Calling a delegate asynchronously A future solution: anonymous methods

Windows CMD Commands GitHub - valentjedi/ddd-dynamic: Domain Driven Design in Python, Ruby and other dynamic languages resources How to write and read a color in C# Transforming a color in hexa representation using following function: private string WriteHexString(byte aobjColR, byte aobjColG, byte aobjColB){string strRet;byte[] btR = {aobjColR};string strR = ToHexString(btR);strRet = strR; byte[] btG = {this.colorDialog1.Color.G};string strG = ToHexString(btG);strRet += strG; byte[] btB = {this.colorDialog1.Color.B};string strB = ToHexString(btB);strRet += strB; return strRet;}//WriteHexString This function transform a Color (defined as Color.R, Color.G, Color.B) in hexa representation (as string) and use following helper functions: private static string ToHexString(byte[] bytes) {char[] chars = new char[bytes.Length * 2];for (int i = 0; i < bytes.Length; i++) {int b = bytes[i];chars[i * 2] = hexDigits[b >> 4];chars[i * 2 + 1] = hexDigits[b & 0xF];}return new string(chars);}//ToHexString static char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7','8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; and helper function: The complete code is in zip file.

50 Places You Can Learn to Code (for Free) Online If you’re curious about learning a programming language then you’re in luck: there’s no shortage of resources for learning how to code online. University-level courses, tutorials, cheat sheets, and coding communities all offer excellent ways to pick up a new language, and maybe even a new job, too. Read on, and you’ll discover 50 great places to learn how to code, for free, online. University Many big names in education including MIT and Stanford offer programming courses, absolutely free. General If you’re just dipping your toes into programming, or you want to find a variety of resources, these sites offer several different ways to learn how to code. Community Learn how to code on these sites with a heavy community influence ready to offer help to newbs. Language Specific Drill down to the language you really want on these sites, offering expansive learning in one or two specific languages.

Git jQuery: The Write Less, Do More, JavaScript Library Generate JSON Data Using Web Service And SQL Server Stored Procedure Let’s know about Web Service Web Services are used for enabling an application to invoke a method of another application. These applications can be on the same computer or different computers. Web Services use protocols like HTTP, XML, and SOAP. Since these are open and well known protocols, the applications built on any platform can interoperate with Web Services. For example, a PHP application can interoperate with a Web Service built using .NET. Hyper Text Transfer Protocol (HTTP) is the protocol widely used by web services to send and receive messages. To know more about SOAP request and response, visit the below reference site. A web service is a web-based functionality accessed using the protocols of the web to be used by the web applications. Creating the web serviceCreating a proxyConsuming the web service Introduction to proxy in ASP.NET Web Service A proxy is a major part for the web service codes. Step1 Script Step2 Step3 Step4 Code Ref

Welcome to Treehouse, Start Learning Today Git Extensions | Free software downloads Triggers « Dr. WPF As we continue our series on ItemsControl, it probably makes sense to take a small detour and look at WPF controls in general. In this post, we will examine how WPF controls get their visual representation through styles and templates. Then we will look at how these techniques specifically apply to several ItemsControl classes. This article is fairly long and covers a lot of really important information, including the following: It is definitely worth taking your time to understand these concepts. I would also encourage you to keep kaxaml up and running as you learn about styles and templates. The Lookless Control Model When developers first start learning WPF, they are often very surprised to learn that a WPF control does not include a hardcoded visual representation. Why, you may be asking, is such a model better than the traditional approach of defining the visuals as part of the control? Introduction to Styles In this case, a style is created for a Rectangle. Introduction to Triggers

Desarrollo Web, Tu mejor ayuda para aprender a hacer webs. Massive open online course Education service on the web Poster, entitled "MOOC, every letter is negotiable", exploring the meaning of the words "massive open online course" A massive open online course (MOOC ) or an open online course is an online course aimed at unlimited participation and open access via the Web.[1] In addition to traditional course materials, such as filmed lectures, readings, and problem sets, many MOOCs provide interactive courses with user forums or social media discussions to support community interactions among students, professors, and teaching assistants (TAs), as well as immediate feedback to quick quizzes and assignments. MOOCs are a widely researched development in distance education,[2] first introduced in 2008,[3] that emerged as a popular mode of learning in 2012, a year called the "Year of the MOOC".[4][5][6] History[edit] What is a MOOC? Precursors[edit] Early approaches[edit] cMOOCs and xMOOCs[edit] MOOCs and open-education timeline (updated 2015 version)[13][30] Students served[edit]

Related: