Kamis, 29 Juli 2010

How to get RGBA support in Ubuntu

RGBA stands for Red Green Blue Alpha. When applied to the computer desktop it means a whole world more. It means full-blown transparency with the ability to control the transparency like never before. This feature was supposed to make it into Ubuntu 10.04, but because of some show-stopping issues, it was pulled. It is now slated to make it into 10.10 and, judging from how well it is working now,

Beginner Geek: Do More With Windows 7 Sticky Notes

Would you like an easy way to write down a quick note and keep it in front of you without wasting a piece of a dead tree?  Let’s take a look at the Sticky Notes app in Windows 7 and how you can use it to its fullest potential. Getting Started With Sticky NotesIf you’ve searched the Desktop Gadget Gallery for the Sticky Notes gadget from Windows Vista, you don’t have to search any more.  The Vista

Robot Theme, inspired by Android™

Chrome theme Read more: Chrome Extensions Posted via email from .NET Info

Introducing IIS Express

Developers today build and test ASP.NET sites and applications using one of two web-servers:The ASP.NET Development Server that comes built-into Visual Studio The IIS Web Server that comes built-into WindowsBoth of the above options have their pros and cons, and many ASP.NET developers have told us: “I wish I could have the ease of use of the ASP.NET Development Server, but still have all the

dm-crypt: a device-mapper crypto target

AboutDevice-mapper is a new infrastructure in the Linux 2.6 kernel that provides a generic way to create virtual layers of block devices that can do different things on top of real block devices like striping, concatenation, mirroring, snapshotting, etc... The device-mapper is used by the LVM2 and EVMS 2.x tools. dm-crypt is such a device-mapper target that provides transparent encryption of

Ubuntu Tweak

IntroductionUbuntu Tweak is an application designed to config Ubuntu easier for everyone. It provides many useful desktop and system options that the default desktop environment doesn't provide. At present, it's only designed for the Ubuntu GNOME Desktop, and always follows the newest Ubuntu distribution. LICENSEUbuntu Tweak is a free software, which means you can redistribute it and/or modify it

Open Source GSM Cracking Software Released

The GSM technology used by the majority of the world's mobile phones will get some scrutiny at next week's Black Hat security conference. An open source effort to develop GSM-cracking software has released software that cracks the A5/1 encryption algorithm used by some GSM networks. Called Kraken, this software uses new, very efficient, encryption cracking tables that allow it to break A5/1

Think Notepad only opens files? Nope! File/Open a HTTP URL (and get the HTML response) in Notepad…

Just learned this today via JoshEinstein.com - Quick Tip – Troubleshoot broken OData response using Notepad…Did you know you can “open” a URL in Notepad? Read more: Greg's Cool [Insert Clever Name] of the Day Posted via email from .NET Info

MSBuild Known Issues

Since the release of Visual Studio 2010 we have received a few reports of crashing behavior which can be traced back to issues with MSBuild.  We’ve analyzed all of these and there are several particular cases where a crash can occur.  We’ve also added a notification to Windows Error Reporting to help guide those who hit these errors.  You can determine you your error is one of these either by

Building Wave Gadgets with GWT

Hilbrand Bouwkamp is an independent internet developer/trainer/presenter specialized in RIA, GWT and Android. He has been following GWT and Wave since it's first release and has created two open source libraries related to GWT and Wave: cobogw and cobogwave.This blogpost is about the cobogwave library. As soon as Google Wave was released and I had an account, I wanted to write a Wave Gadget. I

How about a generic API that hooks your Web app to different social networks? How about the “Web Application Toolkit for Social Network APIs”! (C# and VB)

As social networking Web sites are becoming more and more popular, users often want to access simultaneously the different networks they belong to from one only entry point. For example, one user might want to post the same message they are posting on your site also on Facebook, Twitter, MySpace and so on. Although many of these social networks provide APIs for accessing their information, you

Serialization in C# .NET II - XML Serialization

AbstractSerialization in C# .NET plays a key role in various functions, such as remoting. Developers may often need to perform custom serialization in order to have complete control over the serialization and deserialization processes. Binary .NET serialization processes may not be enough to deserialize an input in one platform with serialized output from another. In the second article of this

Debugging an OOB Silverlight Business Application

Recently, we came across a bug with the Silverlight Business Application with respect to an Out of Browser application. In the RTM bits for Silverlight 4 Tools a new feature was added to enable a better debugging experience with Out of Browser application. The feature basically launched the app in OOB window when run with the debugger attached. If you have tried that with the business application

Google App Engine: The Ultimate List Of Resources

This is a collection of key resources from some of my favorite links and posts. This should give you a great starting point for working with Google App Engine. Before you Begin What is Cloud Computing Really? Comparing SaaS, PaaS and IaaS Comparing Traditional Hosting and Cloud Computing Top Cloud Computing Players: Amazon EC2, Google App Engine, Force.com Getting Started with App Engine

Skype's Cryptography Reverse-Engineered

Someone claims to have reverse-engineered Skype's proprietary encryption protocols, and has published pieces of it.If the crypto is good, this is less of a big deal than you might think. Good cryptography is designed to be made public; it's only for business reasons that it remains secret. Read more: Bruce Schneier Posted via email from .NET Info

How to Create a Silverlight OOB Installer Wrapper UI Library?

Before starting with the next part of the discussion, let me ask you some questions. Are you a Silverlight developer? If “Yes”, how many times you create a Silverlight Out-of-Browser application? For that, how many times you create an UI and write code to instruct the user to install the application as OOB application. I think the answer will be “Many Times” To solve this, we will create a Custom

Uploading a File (Or Files) With ASP.NET MVC

I wanted to confirm something about how to upload a file or set of files with ASP.NET MVC and the first search result for the phrase “uploading a file with asp.net mvc” is Scott Hanselman’s blog post on the topic. His blog post is very thorough and helps provide a great understanding of what’s happening under the hood. The only complaint I have is that the code could be much simpler since we’ve

Converting from webforms to MVC presentation?

I just posted the video from the Community for MVC presentation by Matt Hawley about how Codeplex has been converting the site from ASP.Net Webforms to ASP.Net MVC .Read more: LosTechies.com Read more: Video Posted via email from .NET Info

Windows Authentication

In this article we will cover Windows Authentication.ContentsDefinitions of few keywords to understand Windows Authentication.What is Windows Authentication.Why Windows Authentication. How Windows Authentication is implemented in ASP.NET Application.Configuring impersonation in an application.Authentication: Authentication is the process of determining the identity of a user based on the user’s

Applying MVC Pattern to web services

Web services can be invoked statically using a WSDL service interface and service implementation documents, or dynamically by retrieving the service type definitions and the service implementation via UDDI. But until now, you couldn’t do both at the same time. You can now do this using the Model View Controller pattern (or MVC); this architecture supports both dynamic and static Web services.

IKVM.NET 0.44 Release Candidate 2

A new release candidate with two bug fixes.Changes:Changed version to 0.44.0.2Fixed Field.set() bug #3033769.When a protected or public member is accessed in a non-public base class in another assembly that is simultaneously compiled, we need to add an InternalsVisibleTo to the callee assembly for the caller assembly. Read more: IKVM weblog Posted via email from .NET Info

A tutorial on Remote Procedure Calls (RPCs) in Google Web Toolkit

At some point in your GWT development, you’ll want to start communicating with a server. Handily, GWT has a lot of stuff built in to help you do this in as easy a way as possible. The GWT RPC framework is very helpful indeed for just this, and this post will show you how to create your RPC services easily. The basics:GWT is divided into “client-side” and “server-side” interaction. “Client-side”

CAST vs CONVERT

Both these functions are used to convert values from one datatype to another But there are some differences between them 1 CAST is ANSI standard and CONVERT is specific to SQL Server 2 CAST can't be used for formating purposes. But CONVERT can be used for formating purposes particularly on datetime and money datatype declare @d datetimeset @d='20001210 12:34:22'select convert(varchar(10),@d,108)

More Tools to Work with MySQL Databases in Visual Studio Provided by dbForge Fusion!

Devart today releases dbForge Fusion for MySQL, v4.50 - a powerful add-in designed to simplify MySQL database development and enhance data management capabilities.With dbForge Fusion, Devart continues its initiative to produce efficient database experiences for all the people in MySQL world. New features in dbForge Fusion for MySQL, v4.50 include:Support of MS Visual Studio 2010Now all the tools

CryptoAPI and 5 bytes exponent public keys

One customer of mine wanted to import a public key he got from a partner. That public key had a 2048 bits modulus and a 5 bytes exponent.The problem was that CryptoAPI's RSAPUBKEY structure doesn't allow a 5 bytes exponent because it defines the public exponent with a DWORD (4 bytes max): typedef struct _RSAPUBKEY {DWORD               magic ;DWORD               bitlen ;DWORD               pubexp

Database internal file versions– How to determine if the database was upgraded or created from scratch

In some cases it it interesting to know whether a database was directly created on the current version of the running SQL Server instance or if the database was upgraded during an upgrade of the instance or by attaching a database from an older version to a newer version of SQL Server. The information is stored in the datafile headers. To reveal it you will have to use the DBCC command and

Rabu, 28 Juli 2010

Silverlight and WebSockets

I was intrigued by this post from Tomek which has links to a prototype of an application built with Silverlight but using WebSockets.It’s kind of interesting because running the application in IE9 gives me; because Chrome has support for WebSockets already and so the sample switches out the Silverlight functionality. If you’ve not read about WebSockets then there’s a starter here and info on the

How to request an smartcard logon cert programmatically (C#)

Hi all,The other day I created this C# sample which shows how to request an smartcard logon cert to a CA. It is based on this other sample: How to create a certificate request with CertEnroll and .NET (C#). using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;//  Add the CertEnroll namespace

Sidebar that Silverlight - VB Project Template to help build Silverlight based Windows Sidebar Gadgets

There’s something about using Silverlight for a Sidebar gadget that appeals to me. Then there’s the fact that, with Win7’s success, sidebar gadgets are now getting more usage. And finally there’s the general uptick happening with Silverlight itself.  So we mash all these together and get…? Yes, there’s also a C# template too, Silverlight Sidebar Gadget (C#)Read more: Greg's Cool [Insert Clever

How to compile OpenJDK on Ubuntu

OpenJDK OverviewOpenJDK is the open source implementation of Java. OpenJDK is under version control by a distributed version control system called Mercurial . This guide will describe how to install Mercurial, download the source code of OpenJDK and how to compile OpenJDK. Install Mercurial and ExtensionsYou first need to make sure Mercurial is installed on your system.sudo apt-get install

Implementing a Basic Hello World WCF Service

IntroductionIn this article, we will manually implement a basic WCF service from scratch, step by step with clear instructions and precise screen snapshots. You will have a thorough understanding of what WCF is under the hood after you read this article. Visual Studio 2010 under Windows 7 will be used for all screenshots of this article. We will build the WCF service manually from scratch,

Microsoft XAML Toolkit CTP - July 2010

The XAML Toolkit bits are available here.  (actually soon to be posted  -- Brian)OverviewFeatures of the XAML ToolkitXamlDom – A XAML DOM that is LINQ friendly.  Enables easy static analysis. XAML FxCop integration – You can run FxCop rules that analyze your XAML against rules.XAML FxCop rule authoring - A BaseXamlRule implementation that allows you to write custom FxCop rules that target XAML.  

EventbasedPipelineSystem

The project implements a framework for event-based method pipelines with easy to use multi-threading support.It's developed in C#/.Net Framework.Read more: Codeplex Posted via email from .NET Info

State in asp.net

היכן ניתן לשמור מידע בעולם ה - web. כידוע לכל מפתח WEB מתחיל - עולם ה - WEB הינו state less כלומר לפי ההגדרה אתר לא אמור לשמור מידע על המשתמשים בו, למרות זאת הרבה פעמים אנחנו צריכים לשמור מידע. בפוסט הזה נסכם את האופציות. צד הלקוח. עוגיות - עוגיות הם אחד מהאופציות הישנות והטובות לשמירת מידע, היתרון הגדול שלהם הם שניתן לשמור בהם מידע לאורך זמן החיסרון הגדול שלהם שהם נשלחים בכל בקשה לשרת, ניתן

The Most Powerful and Feature Rich Web-Based Code Editors (IDEs)

   With all the talk of Cloud computing at the moment and after reading a short article on Dzones blog a few months back that questioned whether or not It Was the Right Time for Web-Based IDEs? (it was a split poll), we were inspired enough to venture out and find out what web based IDEs (integrated development environment) are available and which actually are the best. The results were a little

Deploying Microsoft RemoteFX for Personal Virtual Desktops Step-by-Step Guide

This step-by-step guide walks you through the process of setting up a working personal virtual desktop that uses RemoteFX in a test environment. Upon completion of this step-by-step guide, you will have a personal virtual desktop with RemoteFX assigned to a user account that can connect by using RD Web Access. You can then test and verify this functionality by connecting to the personal virtual

Profiling an application with Visual Studio – Memory allocation

I discussed the possibilities of CPU sampling and instrumentation data collection in the previous articles and now it is time to benchmark the application performance indicators that target the memory. To test this feature out, I created another sample application. This time, it works with files and I tried to create a simulation of a memory-consuming process.The setupIt is a simple C# Console

Bitlocker PIN Tool

Deploying Bitlocker with Windows 7 in enterprise environments works pretty nice with the new features which have beend implemented by microsoft. There's still one big problem to solve. Users can't change their PBA Bitlocker PIN without administrative priviledges. Read more: Codeplex Posted via email from .NET Info

ASP.NET MVC 3 Preview 1 Released – Channel 9 Video and Hanselminutes Podcast 224, Oh My!

Phil and friends released ASP.NET MVC 3 Preview 1 today. I snuck into the office of Phil Haack and Morgan the Canadian Intern to talk about the release of ASP.NET MVC 3 Preview 1 and some of the cool "futures" stuff that Morgan (and our fleet of interns) is working on. This video isn't only about MVC as Morgan's working on some cool CSS Sprites stuff that works nicely in WebForms that you should

How to make AJAX-requests to ASP.NET MVC application using jQuery

I decided to write over long time one posting that is directed to beginners who start with jQuery and AJAX. One of the first things to study is how to make requests to server and how to retrieve objects. In this posting I will show you how to use jQuery to retrieve JSON data from ASP.NET MVC application and how to debug it. Making AJAX-requests to serverThis was one of first things I needed when

Introducing “Razor” – a new view engine for ASP.NET

One of the things my team has been working on has been a new view engine option for ASP.NET. ASP.NET MVC has always supported the concept of “view engines” – which are the pluggable modules that implement different template syntax options.  The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms.  Other popular ASP.NET MVC view engines

Can You Run Unit Tests With Out Installing Visual Studio?

A customer asked me this question today, the answer is YES. Unit Tests are not used only to test code, you will need to use Unit Tests to test WCF for example. Running Unit Tests on machines with no installation of Visual Studio is an ability that can save licenses and installations. So how it is done?All you need is a Test Agent installed on the target machine, from this point you can do it in a

ASP.NET MVC: Adding client-side validation to ValidatePasswordLengthAttribute

When you create a new ASP.NET MVC 2 project in Visual Studio there are a number of files that are created. One of these is AccountModel.cs. If we ignore the fact that this one file contains multiple classes (I’ve no idea why!), we will see that there is some nice example code lurking in there. One such piece of code is the ValidatePasswordLengthAttribute. This attribute can be applied to your

Silverlight HTML5 WebSocket client with an HTML bridge to Ajax/JavaScript

As part of our ongoing experimentation with the HTML5 WebSocket proposed standard for duplex communication between web browsers and servers, we have prototyped a WebSocket protocol implementation based on Microsoft technologies. The prototype consists of a WCF service and a Silverlight client with an HTML bridge to JavaScript implemented in jQuery. You can read more about it at http://

Abandoned Adobe Version Cue Users Rapidly Moving to Subversion

Creative Professionals Find Subversion Delivers Exactly What They Need to Store and Manage Graphics and Animation FilesSan Ramon, CA July 27, 2010 – WANdisco, the makers of Enterprise Subversion with the most active core developers from the project on staff, today announced that a number of organizations stranded by Adobe’s decision to abandon Version Cue in CS5 are finding that Subversion makes

Selasa, 27 Juli 2010

Vulnerability Note VU#940193

Microsoft Windows automatically executes code specified in shortcut filesOverviewMicrosoft Windows automatically executes code specified in shortcut (LNK and PIF) files.I. Description Microsoft Windows supports the use of shortcut or LNK files. A LNK file is a reference to a local file. A PIF file is a shortcut to a MS-DOS application. Clicking on a LNK or PIF file has essentially the same

New gov't rules allow unapproved iPhone apps

WASHINGTON – Owners of the iPhone will be able to legally unlock their devices so they can run software applications that haven't been approved by Apple Inc., according to new government rules announced Monday. The decision to allow the practice commonly known as "jailbreaking" is one of a handful of new exemptions from a 1998 federal law that prohibits people from bypassing technical measures

AutoIt v3

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of

Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication

This guide presents a practical, scenario driven approach to designing and building secure ASP.NET applications for Windows 2000 and version 1.0 of the .NET Framework. It focuses on the key elements of authentication, authorization, and secure communication within and across the tiers of distributed .NET Web applications. (This roadmap: 6 printed pages; the entire guide: 608 printed pages) Read

How to use the MSBuild debugger in Visual Studio 2010

Dan Moseley, dev lead for msbuild, wrote a debugger for msbuild while on leave(!) back during the 2010 cycle.  While it ultimately couldn’t be fully completed and tested to be an official feature, it is in the product with a switch to enable it (it’s off by default).  This was a conscious decision made by the VS team, and I think it was a great compromise.  It wasn’t something feasible as a power

Arkanoid in Windows Phone 7 using XNA

Prof. Kostas Anagnostou from Ionian University has created an excellent 6 part tutorial covering the creation of the classic Arkanoid game for the PC using XNA framework. Here are the links for the tutorial Permanent link to Δημιουργώντας το Arkanoid μέρος 1οPermanent link to Arkanoid μέρος 2οPermanent link to Arkanoid- Game State ManagementPermanent link to Arkanoid- Game State Management μέρος

Principles 1: The Essence of Driving – A Crash Course in Project Management

About a year ago, I got feedback from my team that I needed to clarify what I meant by “drive this effort” or “lead that effort”. So I decided to create a quick document explaining what I meant. Below is that document. I later converted the document to a slide-deck, which I will publish shortly too. There are *a lot* of books on project management. From that point of view, there is nothing

"Facebook C# SDK" Announced for Microsoft Visual Studio Developers

Facebook engineer, Andrey Goder, announced the alpha release of the Hackathon Facebook C# SDK project for Visual Studio Developers (requires Microsoft's free Visual C# 2010 Express Edition).Facebook C# SDK Features: Works with both Web (ASP.NET) and desktop applications.Uses OAuth 2.0 for authentication.Supports a convenient way of making calls to the new Graph API using the OAuth 2.0 access

Make The WebClient Class follow redirects and get Target Url

How to make the .NET WebClient class follow redirects and get the target urlUnlike its brother HttpWebRequest, the WebClient class automatically follows redirects, but if you need to get the "final" url, you'll need to "wrap" your WebClient in a class that derives from System.Net.WebClient. Here's an example: using System;using System.Net;public class MyWebClient : WebClient { Uri _responseUri;

Implementing the HTTP Request/Response Model inside of Silverlight

IntroductionSilverlight gives users the ability to create an extremely rich UI experience for the user, but what about the server?  How can I take advantage of Silverlight to do simple access to a server whether it's a LINUX Web Server or a Windows Web Server?  What if I want to make REST calls to my server?  Silverlight includes a few namespaces for doing simple request and response to and from

Silverlight On Mobile : 3D on your Windows Phone 7 with Silverlight

With my last “Hello World” post, I am sure you must be in position to write some basic apps for your Windows Phone 7. Now we already spend some time to explore basics of Phone and other Development Environment. Now from this article onwards let’s try to look further. 3D in Silverlight is nothing new to us now since it has been made available to us by Microsoft from Silverlight Version 3. Since

To XAML, with love (an experiment with XAML Serialization in Silverlight)

’m a big fan of XAML.  It provides a nice, declarative, toolable way of defining UI, encourages separation of UI logic and application logic, and is flexible enough to allow an impressive amount of expressiveness.  In addition to being a way to describe a user interface, XAML can be used as a serialization format for arbitrary CLR objects.  A little over a month ago, as I was building out a

Senin, 26 Juli 2010

Skype SDK Now Available for Windows

Developers interested in integrating Skype into their applications can now request access to Skype’s new SDK, called SkypeKit. Available in beta format as of June 14th, the Windows version of the developer’s kit works on Windows x86 operating systems. Access to the kit is on an invite-only basis at the moment, and interested developers have to go to Skype’s website and fill out an online form

Debugging Unit Tests for the iPhone/iPad

I have been working my way through a new iPhone app. I have been doing this TDD. One problem that I ran into was one of my tests failed, yet I could not figure out how to get it working easily so I wanted to debug my Unit Tests. This should be straight forward, yet it took me a while to figure out using the metaphors and tools of XCode (built in OCTest). I know that many people will say I should

Tessnet2

Tesseract is a C++ open source OCR engine. Tessnet2 is .NET assembly that expose very simple methods to do OCR. Tessnet2 is multi threaded. It uses the engine the same way Tesseract.exe does. Tessdll uses another method (no thresholding). Read more: Best Open SourceRead more: Tessnet2 Posted via email from .NET Info

Transferring large data when using Web Services

I've been working with complex reporting application and big part of the application relies on Web Services.The client requests some operations by calling the Web Methods. The Web Service basically does everything on the sever where it is deployed and returns data to the client as byte[] array. When we have some more complex methods, the maximum message size quota (which is 65536 by default) is

Find the Most Time Consuming Code in your SQL Server Database

This post will demonstrate how to find T-SQL code (SQL Server 2005/2008) that takes the most time to execute. Note that a time consuming code may not necessarily be inefficient; it also depends on the volume of data being processed. --Top 10 codes that takes maximum timeSELECT TOP 10 source_code, stats.total_elapsed_time/1000000 as seconds , last_execution_time from sys.dm_exec_query_stats as

Script to load sos within Windbg based on .NET Framework version

I often debug  .NET Framework v 2.0 / v 4.0 code within windbg. In v 2.0 the main clr dll was called “mscorwks.dll” and in v 4.0 it is called “clr.dll”.  As many of you are aware , to load sos in v 2.0 we would have to enter “.loadby sos mscorwks” and in v 4.0 it would be “.loadby sos clr” . This was a pain for me. Came up with a script to automate loading sos based on clr version !

Class Designer PowerToys for Visual Studio 2010 is Released

lass Designer PowerToys for Visual Studio 2010 is released today! It provides a bunch of enhancements to Visual Studio 2010 Class Designer. Click here to download it now.It has many cool features like pan/zoom window, floating properties window, fast navigation, etc. You could find the detailed feature list in its help document which is available on the desktop after the Class Designer PowerToys

Создание и настройка WCF сервиса в Silverlight 4 приложении

В этой статье мы научимся:Создавать WCF сервис и бизнес объекты для обработки данныхСоздавать форму на Silverlight 4 для отправки данных.Изучать мы будем на примере: «Рисование и отправка поздравительных открыток другу» ПодготовкаДля работы с Silverlight 4 в Visual Studio 2010 нужно скачать и установить Silverlight 4 Tools. Expression Blend 4 сразу умеет работать с Silverlight 4, а также в нем

Google JavaScript Style Guide

JavaScript is the main client-side scripting language used by many of Google's open-source projects. This style guide is a list of dos and don'ts for JavaScript programs.Read more: Google Posted via email from .NET Info

Fun with dot

The symbol dot (.) plays a major role when you write queries. It is mainly used to speicify the columns for the respective tables when a join is used as you see in the following exampleselect t1.col1,t1.col2,t2.col3,t2.col4 from table1 as t1 inner join table1 as t2 on t1.col1=t2.col1But sometimes the usage of dot may surprise you. Let us consider the following examplecreate table #test(i int)

C# Code Converter

DeveloperFusion offers a free .NET code converter.  Simply paste your C# or VB.NET code into this web-based tool, then select your target language: C#, VB.NET, Python or Ruby.  Supports syntax up to .NET 3.5. Read more: developerFusion Posted via email from .NET Info

Glass UI

A Windows Forms Control Library built specifically for Aero Glass. This will consist of existing controls, modified to render on glass, as well as some completely custom controls. All controls will also render in non Aero projects, but the main focus will be on glass. Read more: Codeplex Posted via email from .NET Info

Converting an Access DB to XML using C#

I recently needed to import an Access database into a C# program for a sample that I will be blogging about soon. My objective was to convert the data into a more convenient form for use with my “real” application. Nothing here will be very cutting edge! A quick and dirty way to get the job done seemed to be to read the data into a DataSet and export it to XML. Access MDB files can be read using

Microsoft Expression Studio 4 Ultimate Trial

Expression Studio opens up a new world of creative possibility. Its professional design tools give you the freedom to make your vision real—whether you’re designing for standards-based websites, rich desktop experiences, or Silverlight. Includes Expression Web + SuperPreview, Expression Blend, SketchFlow, Expression Encoder Pro and Expression Design. For more information about what else is new

Deploying USB Redirection with Microsoft RemoteFX Step-by-Step Guide

This step-by-step guide walks you through the process of setting up USB redirection with RemoteFX in a test environment. Upon completion of this step-by-step guide, you will have a personal virtual desktop with RemoteFX assigned to a user account that can connect by using RD Web Access. Read more: MS Download Posted via email from .NET Info

Tutorials for iPhone developers

Read more: Ajax line Posted via email from .NET Info

NVIDIA Parallel Nsight

NVIDIA Parallel Nsight brings GPU Computing into Microsoft Visual Studio. Debug, profile and analyze GPGPU or graphics applications using CUDA C, OpenCL, DirectCompute, Direct3D, and OpenGL.NVIDIA® Parallel Nsight™ software is the industry's first development environment for massively parallel computing integrated into Microsoft Visual Studio, the world's most popular development environment.

A COOL WINDBG/SOS HIDDEN FEATURE

Every once in a while you run across an undocumented trick that totally and completely makes your day. A great example of that is the ability to debug MSBuild scripts in Visual Studio. Today I ran across another amazingly useful feature in WinDBG and SOS for .NET 4.0 that will save you countless hours of typing when analyzing minidumps. If you thought using .cmdtree to click your way to SOS

Programming Windows Phone 7 LOB Applications – Part I

Abstract In these post series, I’ll demonstrate how to develop LOB applications for the Windows Phone 7. This series will provide an easy start for iPhone, Android and .NET Programmers.IntroductionWindows Phone is almost here, and it’s a great timing to learn how to develop applications which target the Windows Phone 7 device. From my point of view, there are at least three reasons for doing so:1

SMSToolkit - .NET SMS server

The SDK allows any Windows Mobile 5 phone to be used in conjunction with a PC to act as an SMS Server, allowing developers to easily write SMS applications, using just their phone and a PC. Additionally, it provides a collection of samples that among other things, allow non-programmers to use Excel to send bulk SMSs and to build simple information lookup applications. This project is actively

My "Extending Visual Studio 2010" course is live

I mentioned I've been recording videos. That's because I'm doing another Pluralsight course. This one is on Customizing and Extending Visual Studio. About half of it is live already:Overview of Visual Studio 2010 Extensibility Why write extensions for Visual Studio?Visual Studio MacrosVisual Studio SnippetsGetting and installing extensions for Visual StudioThe Visual Studio 2010 SDKVisual Studio

Minggu, 25 Juli 2010

FluentIL

Helper class and methods to IL EmittingFluentIL helps to build faster applications. To use it, please download the lastest source code in download section.Read more: Codeplex Posted via email from .NET Info

How To Send and Receive SMS using GSM Modem

IntroductionSMS client and server is an application software which is used for sending and receiving messages(SMS). It listens for incoming messages to arrive, processes the message if it's in a valid format. Note the processing of arrived messages depends on the application which will be discussed later. I am going to explain the following things: Communication Port SettingsReceive Incoming

TSQL Challenge 34 - Search for two keywords within the maximum distance of one word between them

This challenge is all about searching for two keywords in a string with a maximum distance of 'one word' between them.For example, if 'sql' and 'server' are the keywords, a match will be found on 'Microsoft SQL Server 2008' as well as on 'I like sql and server'. The second phrase matches because there is only one word between 'sql' and 'server' which is acceptable. Note also that the search

LC ISO Creator

LC ISO Creator creates ISO files from CD/DVD-ROM. (14 Kb)Read more: Lucersoft Posted via email from .NET Info

Flickr API for Silverlight

C# Wrapper for the Flickr API built for use in Silverlight.OverviewAccessing the Flickr API from Silverlight has never been easier. Unlike the existing Flickr.Net wrapper, which relies on a lot of custom serialization and request issuing/response processing code, the Flickr API for Silverlight harnesses the built in capabilities of WCF to perform requests. And it is designed specifically for

Video Chat for Android in 30 Lines of Code

Here is a simple Video Chat application I built with Flex 4 and deployed on AIR for Android. The Application is just 30 lines of code and allows multiple users to join a chat room and “video chat”.Video streaming is powered by LiveCycle Collaboration Services, a set of hosted Flash Services that enable developers to easily add real-time collaboration and social capabilities to their applications.

Microsoft Expression Encoder Screen Capture Codec

This installer will install and register the Expression Encoder Screen Capture codec that will allow you to playback the Expression Encoder Screen Capture output (XESC) on machines that do not have Expression Encoder installed. Read more: MS Download Posted via email from .NET Info

User Management using ADSI

The listing demonstrates how to use Active Directory Service to manage the users on WinNT and Windows 2000.IADsContainer interface lets you crawl through the active directory. To manage users, you need to get ADS object with pathWinNT://DomianName/MachineName. IADsWinNTSystemInfo interface provides this information. Once we have a container, we enumerate through the container and if the object

NetworkDirect Service Provider Interface Version 2

The NetworkDirect service provider interface (NetworkDirect SPI) defines an interface that networking hardware vendors can implement to expose the advanced capabilities of their devices, such as remote direct memory access (RDMA) between computers, and that allows applications to leverage networking technologies such as iWARP and InfiniBand. This document describes version 2 of the NetworkDirect

Google Engineer Decries Complexity of Java, C++

Google distinguished engineer Rob Pike ripped the use of Java and C++ during his keynote at OSCON, saying that these 'industrial programming languages' are way too complex and not adequately suited for today's computing environments. 'I think these languages are too hard to use, too subtle, too intricate. They're far too verbose and their subtlety, intricacy and verbosity seem to be increasing

PostgreSQL Tutorial – Creating Your First Database

Once you’ve installed PostgreSQL (OS X Instructions) (other platforms), you’ll probably want to get started with a new database. Unfortunately PostgreSQL does not include a sample database by default. You can download the pagila sample database from the pgFoundry (direct download link). Pagila is a simple movie rental database, sort of like what you would get if you ran a video rental store. It

Calculate Age from Date Of Birth using SQL Server

Here’s a query to calculate the Age in Years, Months, Days, Hours and Minutesdeclare @birth_day datetimeset @birth_day ='19660527 12:34:22'select years, months, case when day(@birth_day)>day(getdate()) then day(getdate()) + datediff(day,@birth_day,dateadd(month,datediff(month,0,@birth_day)+1,0))-1 else day(getdate())-day(@birth_day) end as days, datepart(hour,convert(varchar(10),dateadd(minute,

Mono 2.8 Trick: tracing exceptions

Mono has an strace-like feature built into the runtime. This is useful to see which methods are being called by your application, just invoke Mono with --trace.Our upcoming version has a neat new feature, when you use --trace=E:ExceptionName or --trace=E:all you get a stack trace of where the exception was thrown from: $ gmcs.exemono$ gmcs missing.cserror CS2001: Source file `missing.cs' could

A Complete ActiveX Web Control Tutorial

This article is intended to help you get up to speed quickly with developing an ActiveX control. It will show you the basic concepts you need to know about ActiveX, such as methods, properties, and events, and how to communicate between an ActiveX control and a web page. ActiveX is a Microsoft technology developed in the mid 90s, that allows for the creation of applet-like applications that can

Writing an ActiveX control in C#

An ActiveX control is an object that supports a customizable programmatic interface. Using the methods, events and properties exposed by the control, web developers can automate their web pages to give the functionality which is equivalent to that of a desktop application. IntroductionAs web application developers, we want to give our users a highly functional application. We want to provide our

Sending an sms from C# in 3 steps

שליחת הודעות SMS מאפליקציה ב-3 שלבים פשוטיםחיי המתכנת קלים מאוד בתקופתנו בהשוואה לחצי עשור אחורה. היום אפשר לבנות אפליקציות שלמות המבוססות על אינטגרציות למערכות ייעודיות, מקצועיות ובוגרות בתחומן. אחד האפליקציות שפיתחתי דרשה יכולת שליחה של הודעות SMS ללקוחות. ההודעות מיועדות להשלח בארצנו בלבד ולכן חיפשתי פתרונות מקומיים העונים על הדרישות הבסיסיות הבאות:התממשקות למערכת שליחת הודעות SMS באמצעות

Modifying ASP.Net Providers at Runtime

How to add providers at runtime programmaticallySo if you are like me, you are a fan of not reinventing the wheel. This is especially true of components like Membership, Roles, Authentication, Personalization and whatnot. While I take some issue with the choice of API and can think of many improvements that should be made, the benefits of leveraging what work has already been done instead of

I’ve been programming for X years … now what?

You’ve been a programmer for some number of years.You are stuck in a rut and bored.You still like programming but you need to do something new.Is this you?Career development for programmers has always been a sticky subject.  The most traditional path is into management, even if the programmer doesn’t have any management skills or interest in management.  This leads to disgruntled and bad managers

Implementing the web services MVC pattern

In my previous blog, I had provided the architecture pattern for calling static and dynamic web services using MVC Pattern. In this blog, I would go a bit deeper on the implementation and construct and show how you can apply this to existing MVC pattern and key components of the architecture. The key components you need to implement are the static services navigator file, the SOAP client, the

I/O port sniffer

This program can be used to intercept PC I/O port activities. It uses X86 hardware debug registers as its ears, and eavesdrops at the lowest level. The readers are assumed to be familiar with windows device driver development and some knowledge about operating system and Intel X86 architecture. I once wanted to analyze a program and find out the data it sends and receives from some I/O ports. I

WCF service with custom username password authentication

Windows communication foundation comes with rich set of security such as transport level, message and transport with message; each of security type has its own advantages plus overheads as well For my application which has lots of diverse clients use to connect with the service and they have to be authenticated from Database, so the best possible solution to this problem was Message level

Terabyte-sized Java apps now possible

The new version of the Terracotta distributed Java caching software is able, for the first time, to aggregate more than a terabyte of pooled memory for a single application and its data, the company announced this week. The software, Ehcache 2.2, can also hold up to several hundred million Java objects in a single cache, according to Terracotta's CEO, Amit Pandey. He added that this terabyte of

Debugging services startup in Svchost from a kernel mode debug session

Windows shared services allow us to run system services together in a single service by having multiple DLLs run in a single process called Svchost. This allows Windows to have many services to run with the overhead of a single process.   You can find more information about shared services here and here. I like to do a lot of my user mode debugging from a kernel mode debugger. I can just attach

Sabtu, 24 Juli 2010

How to pass values to Silverlight application from ASPX page using InitParameter ?

Neither the Silverlight is new nor the init params. But, I found various people in different forums asking for the logic on the implementation part for passing value to Silverlight application from ASP.Net application. In this post, I will describe about it. Here I will discuss on the InitParams and tell you how to use it to pass value from your .aspx page to your Silverlight application. Read

TCP Port ReRouter

TCP PortReRouter is a basic network service that proxies TCP sockets to/from an alternate IP and/or an alternate port. For example, you can redirect traffic targeting SERVER-A on Port 992 to SERVER-B on port 2282. SSL is not supported as SSL implements IP validation.To configure TCP Port ReRouter, you must edit the TcpPortReRouterService.exe.config file if running as a Windows service or the

Database Development with Visual Studio 2010: Database Projects and Database Server Projects

In last article Database Development with Visual Studio 2010: Overview of SQL Server Data-Tier Application (DACPAC) we discussed what Data-Tier (DAC) applications are and how to create and deploy it using Visual Studio 2010. DAC applications are targeted towards SQL Server 2008 R2 and meant for small applications. In this article, we will discuss various components of Database projects and Server

CSLA 4 release

CSLA .NET is a software development framework that helps you build a powerful, maintainable business logic layer for Windows, Web, service-oriented and workflow applications. There are many frameworks in the world. Most of them focus on the common issues of getting data into and out of the database or creating a flexible UI. What is typically missing is a focus on managing or implementing

Enabling cross-domain calls for SL apps on self-hosted TCP services

On a post a couple of years back, I showed a solution to enable cross-domain calls for Silverlight apps on self-hosted WCF services. In Silverlight 4, we added a new transport (net.tcp), which needs its own policy file as well (see more details at http://blogs.msdn.com/b/silverlightws/archive/2010/04/09/policy-file-for-nettcp.aspx). If you are running IIS (or some other web service) on port 80

Rabu, 21 Juli 2010

NET Micro Framework

.NET Micro Framework 4.1 SDKThe .NET Micro Framework is a .NET implemenation for very small, resource constrained devices. With version 4.1, we have added VS 2010 compatibility with multi targeting to support development for NETMF versions 3.0, 4.0, and 4.1. We have also added support for Big Endian processors. In addition, we have included ports for the Following Renesas processors and

Selasa, 20 Juli 2010

NET 4 is on windows update !

Today I was running windows update on some virtual machines, and noticed that .NET 4 Client Profile is available via windows update.  Seems it was released to windows update in June. For Windows XP the update is optional. For Windows 7 and Vista the update is recommended.  What this basically means is for XP users they will typically need to run windows update and select .NET 4 from the optional

Build a WPF Interactive Animation Application

IntroductionThis article describes how to make a basic game – a window where bomb user controls drop from the top – to prompt the user to intercept them. To do this we are going to use Expression Blend 4, as anyone who has ever used this developer tool knows that the Design space is easily switched to an Animation space. WPF applications are sometimes easier to build using Expression Blend. Todd

How to execute a TSQL statement for all databases

I wanted a quick way to execute a TSQL command against all databases.  I was having hard time getting the sp_MSforeachdb to work and didn’t want to write a cursor,  so I instead built a TSQL command which makes the commands I need to execute.  Not fancy, but it got the job done. --Command to be exeuted on all databases SELECT DATABASEPROPERTY( 'Northwind' ,'IsFulltextEnabled')--undocumented

Xaps Minifier. Дополнение для Visual Studio 2010, позволяющее уменьшать размер Silverlight приложений

Я постоянно работаю с Silverlight приложениями и выкладываю релизы регулярно. Как правило, я использую паттерн MVVM и его реализацию Prism. В результате создаётся несколько XAP файлов, содержащих сборки приложения и манифест. Каждый, кто работает в соответствии с таким подходом, замечает, что большинство XAP файлов содержат дублирующиеся сборки. Например, при использовании библиотеки Prism,

Системные переменные MySQL сервера.

auto_increment_incrementУстанавливает приращение для механизма AUTO_INCREMENT. Возможные значения: 1 - 65 535. Значение по умолчанию: 1. При установке значения 0,получает значение 1, при попытке присвоить значение меньше нуля или больше 65 535, принимает значение 65 535. Если например, присвоить данной переменной значение 10, то значения счетчика автоинкремента, будет увеличиваться не на 1, а на

NET Hidden Gems - Memory fail points

I am embarking in a series of mini post called .NET hidden gems, not necessarily new bits but usually unknown. They are dedicated to those small features and components that are not commonly used but can deliver interesting value in certain scenarios. Today I am going to show you some functions that can help you to understand the memory state of your application when you need to store large

Community Goodies: Silverlight for PC

Tools and EnviromentEnviroment Visual Studio 2008 Visual Studio 2008 SP1Visual Studio 2010 Expression Studio 3Expression Blend 4 RC Tools Silverlight ToolkitSilverlight3 Tools for Visual Studio 2008 SP1 Silverlight4 Tools RC2 for Visual Studio 2010WCF RIA RC2 WCF RIA Services ToolkitWCF RIA Hotfix(For WCF RIA Beta) Features Application and Programming ModelsManaged API for Silverlight Dynamic

Ubuntu Kung-Fu – 10 Best Tricks (and some even work on Macs)

If your vision of a great vacation is laying down with a laptop on your belly, banging away on new bash commands and scripts, then this is the book for you.Now here are my favorite 10 tips.1. Command History Search with Ctrl+R – In a terminal, the up and down arrow shuffles through recent commands on almost any operating system. I had been using grep to search my history (history | grep something

Debugging an OOB Silverlight Business Application

Recently, we came across a bug with the Silverlight Business Application with respect to an Out of Browser application. In the RTM bits for Silverlight 4 Tools a new feature was added to enable a better debugging experience with Out of Browser application. The feature basically launched the app in OOB window when run with the debugger attached. If you have tried that with the business application

Knights, Knaves, Protected and Internal

When you override a virtual method in C# you are required to ensure that the stated accessibility of the overridden method - that is, whether it is public, internal, protected or protected internal(*) – is exactly re-stated in the overriding method. Except in one case. I refer you to section 10.6.4 of the specification, which states: an override declaration cannot change the accessibility of the

Import Data from Excel to DataGridView in C#

First need to add the reference "Microsoft ADO Ext. 2.8". You can easily add it from COM components.Add an open Dialog box control on form Put the following code on Browser button click events…..        private void button1_Click_1(object sender, EventArgs e)        {            OpenFileDialog fdlg = new OpenFileDialog();            fdlg.Title = "Select file";            fdlg.InitialDirectory

Fresh Mono Baked

Andrew just announced Mono 2.6.7, the version that is replacing our long-term maintenance release of Mono with plenty of bug fixes as well as the following new features:Microsoft's ASP.NET MVC2 is now bundled with Mono. Upgraded xbuild tool (Mono's msbuild)Upgraded our LINQ to SQL (DbLinq)Upgraded our Soft DebuggerWe now publish CentOS/RHEL packages.Our CentOS/RHEL packages install on /opt/novell

How to be a Cool C# Programmer

There are many C# programmers out there… but you probably want to be the coolest… it’s not enough to just call a bunch of methods, invoke some delegates, etc. You need to write it cool.Here are some ways you can make yourself a cool C# programmer (and pick up geeky chicks at your local C# party): 1. Use anonymous delegates whenever possible (or lambda expressions, see 2):var nums = new List(

Mono's Git Migration

Mono's source code is being migrated to GitHub on July 22nd, starting at 9am Boston time.We are psyched that Github was kind enough to host Mono's large repositories for free on their system. We are also taking advantage of their new Organizations functionality. Gonzalo posted the following details about the migration:We are moving our source code repository to GitHub.On July 22nd ~9am EDT (1300

Install LAMP with just one command line on Debian/Ubuntu

I'm so tired of install Apache with MySQL and PHP. I always have to make lots of "apt-get"s tto get all the packages installed just because I don't remember all of them at the first "apt-get". Here is the line to install all you (probably) need:apt-get install mysql-client mysql-common mysql-server mysql-server php5-mysql php-apc php-db php-pear php5 php5-cli php5-common php5-curl php5-gd php5-

Dokan.Mem, a filesystem prototype

IntroductionHiroki Asakawa created a device driver that enables an application in user-mode to simulate a file-system, and distributed it under a MIT-style license. This post shows how that's used in C# to create the functionality of a RAM-Disk, with some tips on rolling your own file-system application. Before you can run the code, you have to run the installer to install a proxy driver (

Deploying Microsoft RemoteFX for Virtual Desktop Pools Step-by-Step Guide

This step-by-step guide walks you through the process of setting up a working virtual desktop pool that uses RemoteFX in a test environment. Upon completion of this step-by-step guide, you will have a virtual desktop pool with RemoteFX that users can connect to by using RD Web Access. Read more: MS Download Posted via email from .NET Info

BUG: .NET 4.0 (System.Net.Mail) Unable to send emails with large attachments (more than 3MB)

This is probably the first bug reported by customer so far for System.Net.Mail Class in .NET 4.0 Framework, or at least the first one I worked on. This was pretty straight forward repro and I did not had to do much to reproduce the issue locally. static void Main(string[] args)        {            SmtpClient client = new SmtpClient("contoso_smtp_server");            client.Credentials = new

Back in business

I've been off for some time but now I'm back in business. A lot of material will be uploaded in this and next week. Posted via email from .NET Info