background preloader

Spring.NET - Application Framework

Spring.NET - Application Framework

10 C# Shorthands that improve productivity | Martijn's C# Programming Blog If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting! One of the best things about C# is that as the language and libraries expand thought is put into keeping things readable. 1. I first read about the ? 1.int x = 10; 2.int y = 20; 3.int max; 5.if (x > y) 6. max = x; 7.else 8. max = y; Using the (Question) ? 3.int max = (x > y) ? 2. How often do you test for null values in your code? 1.object cache = null; 2.object d = new object(); 3.object e; 5.if (c ! 6. e = c; 8. e = d; It is obvious that we can rewrite this using the single ? 3.object e = (c ! Using the ?? 3.object e = c ?? 3. After you create a new object you often have to assign one or more of its properties. 1.Customer c = new Customer(); 2.c.Name = "James"; 4.c.Address = "204 Lime Street"; can be written as: 1.Customer c = new Customer { Name="James", Address = "204 Lime Street" }; 4. Often you will need to allocate a system resource such as a font, file handle, network resource etc. 03.try 07.finally 10.if (font1 ! 11.

Multimedia Fusion 2 Note: This program has been replaced by Fusion 2.5 Game and software creation has never been easier or quicker than with Multimedia Fusion 2! Discover the tool used by so many multimedia professionals, game creators, and creative people from all walks of life. Within your first hour you will have learned the basics which will allow you make games for Windows, iOS, Android, Flash and XNA for windows mobile phones and the Xbox. Minimum System Requirements: Windows 8, 7, Vista, XP, 2000 or 98 operating system, 200 Mhz Pentium processor or higher, 32 Mb RAM (256 Mb for XP, Vista and 7).

General, Debugging, Options Dialog Box To access the General page, open the Tools menu and choose Options. In the Options dialog box, expand the Debugging node and choose General. This page lets you set the following general debugging options: Ask before deleting all breakpoints Requires confirmation before completing the Delete All Breakpoints command. Break all processes when one process breaks Simultaneously breaks all processes to which the debugger is attached, when a break occurs. Break when exceptions cross AppDomain or managed/native boundaries In managed or mixed-mode debugging, the common language runtime can catch exceptions that cross application domain boundaries or managed/native boundaries when the following conditions are true: 1) When native code calls managed code by using COM Interop and the managed code throws an exception. 2) When managed code running in application domain A calls managed code in application domain B and the code in application domain B throws an exception. Enable address-level debugging

The Best Websites to Learn How to Write Code The best tutorials and websites where you can learn how to write code in PHP, JavaScript, HTML, CSS, Python and all the other popular programming languages. The Learn to Code movement has picked up momentum worldwide and that is actually a good thing as even basic programming skills can have a major impact. If you can teach yourself how to write code, you gain a competitive edge over your peers, you can think more algorithmically and thus can tackle problems more efficiently. Don’t just download the latest app, help redesign it. Don’t just play on your phone, program it. — Obama. There’s no reason why shouldn’t know the basics of coding. Gone are the days when you had to enroll in expensive computer training classes as now exist a plethora of web-based courses that will help you learn programming at your own pace in the comfort of your web browser. If you are ready to take the plunge, here are some of the best websites that offer courses in a variety of programming languages for free.

VS 2010 and .NET 4 Series [In addition to blogging, I have been using Twitter more recently to-do quick posts and share links. You can follow me on Twitter at: (@scottgu is my twitter name)] Over the next few months I’m going to be doing a series of posts that talk about some of the cool things coming with the VS 2010 and .NET 4 release. VS 2010 and .NET 4 are the next major releases of our developer tools and framework. I will update this page with links to the individual posts I do as I publish them along the way: Hope this helps, Scott

Screencasts — Zurmo Zurmo Open Source CRM Demo This is a recording of the weekly Zurmo Town Hall Demonstration, in which we explore the user side of Zurmo CRM. We cover Zurmo Basic Navigation, Sales force Automation, Gamification, and Social CRM. The weekly Town Hall can be attended […] Continue Reading → What is Zurmo Open Source CRM? This video gives an overview of the next generation Open Source CRM. Continue Reading → Why Zurmo? Describes why Zurmo is being used by global companies and software developers. Continue Reading → Zurmo Homepage Navigation Learn how to navigate and configure the Zurmo homepage Continue Reading → Zurmo Application Flow A basic introduction to the application flow. Continue Reading → Zurmo Metadata Introduction This video gives an overview of the metadata construct in the application and explains how it works. Continue Reading → Understanding the Job Manager Learn about the Job Manager and scheduled tasks. Continue Reading → Introduction to the Zurmo Application Structure Continue Reading →

Compiled » String Formatting in C# I couldn’t find a quick reference to .NET string formatting using the String.Format() function, so I created this one (which has also spawned this String Formatting FAQ). When I started working with the .NET framework, one thing puzzled me. I couldn’t find sprintf(). sprintf() is the C function that takes an output buffer, a format string, and any number of arguments, and builds a string for you. For example: char szError[256];sprintf(szError, “Error %d occurred. This would write “Error 12 occurred.” into the szError buffer (assuming nError was 12). str << “Error ” << nError << ” occurred.” << endl; Or something close to that. The .NET framework handles strings very nicely – but it takes some getting used to. string errorString = String.Format(“Error {0} occurred.”, nError); Teeming with metadata, the .NET environment doesn’t need the format string to say what type of data you’re formatting, just where you want it. Strings Numbers Basic number formatting specifiers: Custom number formatting:

openFrameworks openFrameworks is an open source C++ toolkit designed to assist the creative process by providing a simple and intuitive framework for experimentation. openFrameworks is designed to work as a general purpose glue, and wraps together several commonly used libraries, including: OpenGL, GLEW, GLUT, libtess2 and cairo for graphicsrtAudio, PortAudio, OpenAL and Kiss FFT or FMOD for audio input, output and analysisFreeType for fontsFreeImage for image saving and loadingQuicktime, GStreamer and videoInput for video playback and grabbingPoco for a variety of utilitiesOpenCV for computer visionAssimp for 3D model loading The code is written to be massively cross-compatible. Right now we support five operating systems (Windows, OSX, Linux, iOS, Android) and four IDEs (XCode, Code::Blocks, and Visual Studio and Eclipse). The API is designed to be minimal and easy to grasp. openFrameworks is distributed under the MIT License. design philosophy Collaborative openFrameworks development is collaborative.

EncloseJS · Compiler for io.js/node.js SD-TOOLKIT. A Toolkit for Software Developers TechNet Wiki This article provides a step-by-step code sample on how you can implement your own custom authentication and authorization in a WPF application by implementing classes that derive from the IIdentity and IPrincipal interfaces and overriding the application thread’s default identity. This article was originally published on my blog in March 2013: It is very common for enterprise applications to provide access to data or resources based on the credentials supplied by the user and these kinds of applications typically check the role of a user and provide access to various resources based on that role. To get started, create a new WPF application in Visual Studio, add a new class called CustomIdentity and implement it as below. using System.Security.Principal; namespaceWpfApplication publicclass CustomIdentity : IIdentity publicCustomIdentity(stringname, stringemail, string[] roles) Name = name; Email = email; Roles = roles; get;

Related: