C#

Download My PowerShell eBook for Free [US-EN]

I have been the author of this book which was written for Syncfusion, to increase their offer on the Succinctly series. Two more books are on stack to be released so wait for more news in the following weeks.

Capture

PowerShell Succinctly highlights some of the PowerShell programming model’s many benefits, specifically for .NET developers and system administrators. Author Rui Machado guides readers through time-saving methods that simplify code testing by eliminating the need to create a new application in Visual Studio. Also included are tips for using additional services, such as PowerGui, WMI, and SQL Server, to get the most out of PowerShell. Even if you don’t already use scripting languages to manage your machines, PowerShell Succinctly will show you just how easy it is to automate activities, work with databases, and interact with a variety of file types with this useful model.

(mais…)

Anúncios

Custom Snippets Creator (C#)

After a while developing in C# all of you will eventually start using Visual Studio Snippets, however building Custom ones can take time and some effort. When i started to use snippets i searched for tools that would create the snippet for me and even having found some that made that for me i belt my one tool.

This tool is very easy to use and it will allow you to be working in your projects and at the same time create customs Snippets (Once again WITHOUT having to exit your projects, it will only take you 3 seconds to create it).

(mais…)

Analyse Facebook Friends Geography (en-US/C#) [FOR FUN]

After talking with a friend of mine about our facebook friends, i decided to tell him a more precise information about where are my friends in the globe. In order to give him a response tomorrow i make a simple tool to give me that information.

What i am going to show you here is how i made it and maybe incourage you to check on your friends as well. First thing to do is study the facebook C# API : https://github.com/facebook-csharp-sdk/facebook-csharp-sdk

Technologies used:

  • C#
  • Excel
  • Excel PowerView
  • Facebook C# API

(mais…)

IsolatedStorage Helper

Introduction

After some time developing for Windows Phone 7 I noticed that the core of this mobile apps is the process of saving to files, reading from files, managing the phone memory and in case you didn´t know the core of this file/folder management is the Windows Phone Isolated Storage.

(mais…)

Nullable types and ?? operator C# [en-US]

Nullable types vs Non-nullable types

 

While developing our C# projects its frequent the null comparison operation to avoid null exceptions. This simple operation is mainly coded using the “var x = null” code example inside an if clause. However not all types of variables are nullable, which means that setting a variable to null is not allowed in every cases, it depends on what kind of type are you defining. But what if there was an extension to your non-nullable type that would convert your variable types to nullable? This extension really exists.

(mais…)

Download an Image and Convert it to Text (Base 64) [en-US]

While developing applications we might need to send images between systems or even between classes of our own application. To do this kind of task you might use the object Image or as i propose, use the base64 format of your images.

This base64 object is a group of similar encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.

(mais…)

Pixel Manipulation in C# (Advanced topics)

Download: http://code.msdn.microsoft.com/Pixel-Manipulation-in-C-5bdb1c38

Introduction

I have been noticing that for some reason people are developing several projects with pictures in Visual Studio Projects, mainly Windows forms projects.

Some days ago I helped a guy with an issue of zoom in and out an image within a picture box. For those that don’t know this visual studio toolbox artifact, it represents a Windows picture box control for displaying an image.

After helping this guy I started to Google for some related problems and found out many other people asking the same questions. In order to help these people and other that may work with Images in Visual Studio projects I developed a small Demo, to show you how simple operations can be done. You can find this previous demo in the following link: http://code.msdn.microsoft.com/Image-Manipulation-C-09020bc1

(mais…)

Image Manipulation C# (PictureBox) [en-US]

Code gallery link (download): http://code.msdn.microsoft.com/Image-Manipulation-C-09020bc1

* Version 2.0 – Added Load Image Function

Introduction
I have been noticing that for some reason people are developing several projects with pictures in Visual Studio Projects, mainly Windows forms projects. Evern yesterday i helped a guy with an issue of zoom in and out an image within a picture box. For those that dont know this visual studio toolbox artifact, it represents a Windows picture box control for displaying an image.
After helping this guy i started to google for some related problems and found out many other people asking the same questions. In order to help these people and other that may work with Images in Visual Studio projects i developed this small Demo, to show you how simple operations can be done.

(mais…)