Minggu, 31 Oktober 2010

Free ebook: Programming Windows Phone 7, by Charles Petzold

Gang, we’re done! 24 chapters, about 1,000 pages. Congratulations to Charles, who has outdone himself!Speaking for Charles and for the Windows Phone 7 team, we hope that you will enjoy Programming Windows Phone 7: You can download a PDF here (38.6 MB).And you can download the ebook’s sample code here (5.03 MB).To give you a sense of this offering, here is Charles’s Introduction—beneath that you’

PDC10: Mysteries of Windows Memory Management Revealed: Part Two

In the last session, focusing on virtual memory, it was noted that there was almost no connection between virtual and physical memory. The only connection is that the system commit limit is the sum of physical memory and the size of the paging file(s). This session focuses on the physical memory aspects of the memory management architecture in Windows. Physical Memory and Working SetThe working

Logical Tree and Visual Tree in WPF

Elements of a WPF user interface are hierarchically related. This relation is called the Logical Tree. The template of one element consists of multiple visual elements. This tree is called the VisualTree. WPF differs between those two trees, because for some problems you only need the logical elements and for other problems you want all elements.

Post-PDC HTML5 v. Silverlight Debate

I've been an advocate of Silverlight since it was called WPF/E, so I am not quite an unbiased observer. I decided to sit back and watch the twitterverse explode and see what the world thought. The Silverlight guys got angry; the ASP.NET guys got glib; the open source guys ignored us all. In case you haven't seen, this was the Mary-Jo Foley article that started it: http://www.zdnet.com/blog/

TSQL Beginners Challenge 18 - Count the total occurrences of HTML tags in the given string

This challenge involves counting the number of occurrences of HTML tags in a given list of strings. You can assume that there will be only valid HTML tags in the input strings. The output should display tags in ascending order. Sample Input DataID  HtmlText-- -------------------------------------------------------------------------1   This is challenge #18

Microsoft’s Silverlight dream is over

Remember “WPF Everywhere”? Microsoft’s strategy was to create a small cross-platform runtime that would run .NET applications on every popular platform, as well as forming a powerful multimedia player. Initially just a browser plug-in, Silverlight 3 and 4 took it to the next level, supporting out of browser applications that integrate with the desktop. The pace of Silverlight development was

Sorting Lists with Null Values

When working with data, you often have values that are null. For example, you may allow entry of a user's birthday, but not require entry. So some of your rows may contain a null date. Or your application may track a customer's last order date, which will be null if you track potential customers that have not yet made a purchase. When you sort a list that contains null values, the null values

Microsoft Application Platform at a Glance

“To stay on the map you've got to keep showing up.” -- Peter GallagherPeriodically I create a map of the Microsoft application platform.  (Here is my previous map of the Microsoft application platform.)   Making the map helps me stay on top of the platform, identify potential changes to architecture and design strategies, and anticipate trends.  It also helps me figure out where to invest my time

C# Observer Design Pattern Comprehensive Tutorial

Observer Design Pattern is one of the most usefull Design Pattern which you should learn. In this pattern, a Subject or Publisher is observed by several Observers or Subscribers. The Subjects will have to send a notification message to the Observers like Update(). This is the official definition from Design Patterns Book:Define a one to many dependency between objects so that when one object

25 BEST LINUX COMMANDS

As a Linux user you’ll come to learn and love certain commands. Remembering these commands is the toughest part. Some people use cheat-sheets some create scripts, and some just refer to website for their fix. Here I have posted the 25 top command line snippets. 25) sshfs name@server:/path/to/folder /path/to/mount/pointMount folder/filesystem through SSHInstall SSHFS from http://

WCF Community site

Welcome to the WCF Community site!Windows Communication Foundation provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise Within this site you will have early access to code for features that will likely appear in upcoming releases. This site is for YOU!Grab our sourceEvaluate our bits early and use them

Future of Silverlight 5 and HTML 5 – what now?

You’ve all heard the news – Microsoft is „shifting its Silverlight strategy“ and going full forward to embrace HTML 5 as its cross-browser cross-platform solution. Coupled with IE9, it makes lot of sense. But what about Silverlight 5 and Silverlight in general now? Same question can be asked regarding Adobe’s Flash. PDC 2010, HTML 5 and Bob MugliaIf you’ve got the chance to look at Microsoft’s

WCF Scenarios Map

The Microsoft WCF (Windows Communication Foundation) scenarios map is a consolidated and shared view of the common scenarios and tasks around developing WCF services. You will find Getting Started and Architecture scenarios first, followed by other common areas. Scenarios in each group should represent common tasks developers would face. Your call to action here is simply scan the WCf Scenarios

Используем видео как фон сайта. Разбираемся в youtube api. Плеер Chromeless

Сегодня у нас будет очень интересная тема, изучив которую вы сможете оживить фон своего сайта.Итак, я расскажу как можно вместо обычного фона использовать видео без флеша и html5. Делать мы это будем с помощью youtube api и немного мозгов. Задача у нас простая: поместить ролик под основной контент сайта и вывести кнопки управления видео на специальную панель. По-моему такое решение будет очень

Kamis, 28 Oktober 2010

Top 10 specialty Web browsers you may have missed

These oddly useful alternative browsers offer such advantages as 3-D searching, social networking, easy scriptability, and powerful page manipulationIn the game of technological one-upmanship, the browser used to be an easy place to win. Most people used Internet Explorer, so it was simple to gain the edge by using Firefox. But now Firefox is common, and even Opera and Google Chrome are losing

Asterisk 1.8 Released With Support For Google Voice

Long-standing open-source VoiP software Asterisk has just been updated, and it's packed with more than 200 enhancements, security updates, and new features — including calendar integration and support for Google Voice and Google Talk. Asterisk's fully-featured PBX includes call waiting, hold and transfer, caller ID, and other useful tools so it's a great option for small businesses that need to

RDS Protocol Bug Creates a Linux Kernel Hole, Now Fixed

The open-source Linux operating system contains a serious security flaw that can be exploited to gain superuser rights on a target system.The vulnerability, in the Linux implementation of the Reliable Datagram Sockets (RDS) protocol, affects unpatched versions of the Linux kernel, starting from 2.6.30, where the RDS protocol was first included. According to VSR Security, the research outfit that

Bible.com Investor Sues Company For Lack Of Profit

The board of Bible.com claims that it is easier for a camel to pass through the eye of a needle, than to make money on the domain name, but an angry shareholder disagrees. From the article: "James Solakian filed the lawsuit in Delaware's Chancery Court against the board of Bible.com for breaching their duty by refusing to sell the site or run the company in a profitable way. The lawsuit cites a

Iranian Cyber Army Moves Into Botnet Renting

A group of malicious hackers who attacked Twitter and the Chinese search engine Baidu are also apparently running a for-rent botnet, according to new research from Seculert. The so-called Iranian Cyber Army also took credit last month for an attack on TechCrunch's European website. In that incident, the group installed a page on TechCrunch's site that redirected visitors to a server that

Quantum computing: Cheat Sheet

FEATURETime machines - oh, boy!Steady on Sam, I love science fiction as much as the next geek but I'm not talking about Quantum Leap here. This is even more exciting than time travel.OK, so what is this quantum computing lark then? Quantum computing and quantum information processing are research efforts that seek to exploit quantum mechanical phenomena to perform tasks such as massively parallel

How Allies Used Math Against German Tanks

This an article about how the allies where able to estimate the number of German tanks produced based on the serial numbers of the tanks. Neat! Godwin does not apply.Read more: Slashdot Posted via email from .NET Info

Blend Bits 15: The Data Store

There’s lots of data features in Blend to provide food for future posts but this post is about the data store that showed up in Blend 4.This is a fairly simple idea and I suspect that I’d use it more in the realm of a SketchFlow application than I would in a real application as I tend to see it as a way for a designer to store something outside of the underlying object model that they’re

ATTACHED PROPERTY

בפוסט הקודם דיברנו על Dependency property. כעת נדבר על Attached. קודם כל נראה דוגמא קטנה :            הקוד הבא ימקם Button בתוך הCanvas על בסיס של Top ו Left. אנחנו רואים שהמאפיינים Top  ו Left יושבים בתוך ה Canvas

Useful, free resources for SQL Server

Recently Dave Ballantyne posted a list of free resources for SQL Server, entitled "The best things in life are free."  Now, I'm not trying to upstage Dave, but I know of several resources that aren't on his list.  It would be good to have a true community page for this kind of thing, but for now a blog post will have to do.  [I also just re-noticed Mladen Prajdic's post on free SQL Server tools,

Debug Executable Without Using Attach to Process

Okay, so the full title here is "Debug Your Executable Without Using the Traditional 'Attach to Process' Menu Items"  but that was way too long for me so I just shortened it up a bit.  You probably already know about the Attach to Process menu items on the Debug and Tools menus, but what if, for example, the process fails before you can attach to it?  Maybe it fails on startup or it runs too fast

Getting rid of the magic strings in a WCF Data Service Client

One of the common problems that you might find when using the generated DataServiceContext for consuming an existing WCF data service is that you have magic strings everywhere for handling links (expanding, adding, deleting, etc). The problem with all those magic strings is that they make your code to compile correctly, but you might run into some error at runtime because you used a link that

Mount zip file in application process

Opening a zip package in a program without extractingIntroductionApplications usually generate some combination of files as output such as xml, pictures, sound and put them in a folder. Packing all of that files and folders into single file and set custom extension for that file is common idea. The new file that includes other files called container. Because of the zip file format is a portable

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

OverviewThis 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

Enterprise JavaScript : Google Launches JavaScript Cloud Scripting Language

Google Apps Script is a new JavaScript enterprise technology to automate tasks across Google products. The new JavaScript cloud scripting language allow to automate repetitive business processes (e.g. expense approvals, time-sheet tracking, ticket management, order fulfillment…), link Google products with third party services (like sending custom emails and a calendar invitation to a list from

Tangible Software Solutions Inc

Convert Between VB, C#, C++, and Java with the Most Accurate & Reliable Source Code ConvertersInstant C# converts VB code to C#Instant VB converts C# code to VBC++ to C# Converter converts C++ code to C# C++ to VB Converter converts C++ code to VBC++ to Java Converter converts C++ code to JavaC# to Java Converter converts C# code to JavaVB to Java Converter converts VB code to Java C# to C++

Rabu, 27 Oktober 2010

Creating a carousel with the PathListBox

While the PathListBox control provides an easy way to lay out items along a path, creating a carousel-like effect that appears 3 dimensional and has smooth scrolling requires a fair amount of custom code. Thankfully the Expression team has written this custom code and recently made it available on Codeplex. Enter PathListBoxUtils - this collection of behaviors, controls and extensions makes

ListBox Styling (Part1-ScrollBars) in Expression Blend & Silverlight

Welcome to my fifth Beginners tutorial for Expression Blend & Silverlight. And this time we will be focusing on ScrollBars, which are a core component of a complicated & nested Control like a ListBox. Read more: Codeproject Posted via email from .NET Info

20 New jQuery Techniques – October

We don’t do jQuery roundups every month because we prefer to wait a longer period to get a better selection, more to choose from – anyway, this is October months roundup for jQuery techniques. This listing represents new techniques from late August until now. Cashrevelations.com presents a selection of new and fresh jQuery techniques – 20 new jQuery techniques released or updated during the

Microsoft retires Visual Studio Installer projects, replaces with InstallShield

This isn’t breaking or current, but it’s pretty startling to hear the word InstallShield on its own; to hear it will be combined with Visual Studio is just down right scary. Our future is now going to be filled with skinned installers and “Preparing to install” dialogs, even more so than now. Anyway, I originally received this tip via a newsletter from Flextera Software, the current folks

Защита Win32 и .NET приложений: обзор протектора Themida (X-Protector)

Этот обзор посвящен Themida (в прошлом X-Protector), одному из самых мощных и надежных протекторов Win32 приложений. Поскольку Themida совсем недавно понадобилась мне для одного из моих приложений, я решил написать по ней небольшой обзор. Заодно попросил автора ответить на некоторые интересующие меня вопросы. Думаю, ответы будут вам тоже интересны. Результаты этого небольшого интервью ищите в

Silverlight Developer Guidance Map

If you’re a Silverlight developer or you want to learn Silverlight, this map is for you.   Microsoft has an extensive collection of developer guidance available in the form of Code Samples, How Tos, Videos, and Training.  The challenge is -- how do you find all of the various content collections? … and part of that challenge is knowing *exactly* where to look.  This is where the map comes in.  It

KitKat - The Lazy/Poor Man's Rootkit

IntroductionThis article is about using global hooks and window subclassing to create a pseudo-rootkit capable of hiding files from Explorer, Task Manager, Registry Editor, etc.Background It is assumed that the reader knows basic C++, Windows Programming, Global Hooks (for DLL injection) and of course, knows what a RootKit is.DisclaimerAlthough The program has been well tested, I have to include

HTTPS Messaging with Client Side Certificate fails with IIS error 403

SymptomsWe have a Win2k3/Win2k8 Server. We are trying to send HTTPS messages to this Win2k3 Server. The Server Requires Client Side Certificates. The IIS log shows error 403.7 - Client Side Certs Reqd. Also if you enable deadlettering on the messages the messages end up in deadletter queue with HTTP error 403. CauseIf a Win2k8 Server has this problem then the problem is that the Network Service

Windows 7 and Windows Server 2008 R2 Service Pack 1 Release Candidate (KB976932)

OverviewWindows 7 and Windows Server 2008 R2 SP1 Release Candidate helps keep your PCs and servers on the latest support level, provides ongoing improvements to the Windows Operating System (OS), by including previous updates delivered over Windows Update as well as continuing incremental updates to the Windows 7 and Windows Server 2008 R2 platforms based on customer and partner feedback, and is

WP7 Development Tips Part 1

Performance is the area that we probably spend the most time on in all our apps.  Building apps on the phone is just way different than building desktop apps.   Things that might be really minor optimizations on a desktop Silverlight can really make a difference on desktop Silverlight apps. Developing on the phone is an issue of economics where processing power is a scarce resource.  You have to

A Step-by-Step Guide to Building and Deploying your Windows Phone 7 Applications

As of the publication date of this article, Windows Phone 7 devices are becoming available in Europe and will hit North America on November 8th 2010 and Microsoft is gradually opening up the application submission process to registered developers.  Microsoft expects as many as 1,000 applications available at launch.  Will one of those applications be yours? This article takes you through the

An introduction to Tuple

IntroductionC#4.0 has introduce a new feature call Tuple.Definition    In mathematics and computer science, a tuple is an ordered list of elements. In set theory, an (ordered) n-tuple is a sequence (or ordered list) of n elements, where n is a positive integer. There is also one 0-tuple, an empty sequence. (From Wikipedia) Purpose: Some time we need to return more than one value from a method or

10 Tips you should know about “Watch Window” While debugging in Visual Studio

Watch windows is one of most commonly used debugging tool with Visual Studio. We generally used to explore the objects, values, properties and other nested objects as a tree structure. Most of the time we used watch window to only view the values or change the current object properties values to see the effects of changed object during debugging. But we can use watch windows for many different  

Visual Studio - Always Run as Administrator

By elevating permissions for Visual Studio, you can perform all tasks related to features such as building and debugging applications, which 'might not' work correctly under standard user permissions. To elevate permissions, go to the Start Menu and right click Visual Studio > click 'Run as Administrator'. However if you are the only user on the machine and frequently need to do this, it could be

The Future of Silverlight

There are a lot of questions being asked about where Silveright is going, and what is it for. Microsoft has been giving pretty straight answers on the future of Silverlight but there has been a lack of quality reporting on those answers. For example, when Steve Ballmer was recently asked about HTML 5 and Silverlight his answer was that Silverlight started off as a cross-browser, cross-technology

More Secure Browsing Over Wi-Fi

In recent days, a new tool called Firesheep has become available that can “sniff out” the login information that’s being sent over wireless networks. Such tools have always been available, but this one makes it easy for anyone to collect other people’s private data. I’m sure that you, as a web professional, know that it’s important to use a VPN or to encrypt your connection by using https://

How To Protect Your Login Information From Firesheep

TechCrunch reader Steve Manuel claims to have found a workaround to Firesheep, the controversial Firefox extension that allows anyone on an insecure open Wifi network to access user login info for almost every single social network in existence. Firesheep banks on the fact that most social sites default to the HTTP protocol because it’s quicker. The already existing Firefox extension Force-TLS

Firesheep

When logging into a website you usually start by submitting your username and password. The server then checks to see if an account matching this information exists and if so, replies back to you with a "cookie" which is used by your browser for all subsequent requests. It's extremely common for websites to protect your password by encrypting the initial login, but surprisingly uncommon for

An introduction to System.Lazy

IntroductionObject creation is always expensive. It is better to create object when it is actually needed to do so. Otherwise, unnecessary memory allocation on the heap will cause a memory load. Lazy which is defined in the mscorlib assembly and belongs to System namespace, ensures that object is created only when it is needed. Using the codeConsider the below programstatic void Main(string[]

Selasa, 26 Oktober 2010

SQL SERVER – A Brief Introduction to DW 2.0

The traditional form of storing digital data has been disk storage.  However, the huge advances in technology means that there has been a huge need for data storage to evolve to keep up with the fast-changing times.  Microsoft SQL Server has gone through a huge overhaul in order to keep up with the amount of data storage that is necessary, and that is where data warehousing comes into play. For

Updated Windows Registry and Mac resources & Jad's Software....updated

As several sites have rightfully pointed out....Accessdata has made a huge jump ahead with their recent release of FTK Imager v3.0.  (not to mention FTK 3.2 and their most recent "Volatile tab.")   Just finished testing it today by mounting physical images and using VFC to virtually boot XP and Win7 systems.  Flawless!    While wandering around their site (actually looking for updated RSR files

FloatingWindow - Multi-windows Interface for Silverlight 4

Windows vs PagesI see a tendency of some Silverlight applications to mimic traditional HTML-based web sites. That's not so bad if we talk about home pages, but surprising if we have to deal with RIA - Rich Internet Applications. Apparently, besides inertia in thinking there are some technical reasons for that. And the most evident one - complexity of the RIA. Facing a need to design a web system

Использование Thrift в .NET

Хочу поделиться с вами примером того как можно использовать такую удобную штуку как Thrift в своих .NET проектах. Для тех кто не знает, Thrift — это фреймворк для облегчения взаимодействия между кодом написанным на разных языках, а именно C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk и OCaml. Thrift используется и был изначально создан Facebook. Так же неоднократно

An introduction to Complex Struct of dotnet 4.0

The Complex struct which resides in System.Numerics assembly is use for representing complex numbers.For using the Complex struct, we need to Add the System.Numerics assembly to our projectUsing the code Let us see some examples as how it helps usExample 1: Display the Real,Imaginary,Magnitude and Phase parts Read more: Codeproject Posted via email from .NET Info

Create your own packet sniffer in C

A simple implementation of a packet sniffer in C on linux platform using the libpcap library. This packet sniffer currently sniffs IP , TCP , ICMP and UDP packets. It can be modified to any protocol as needed just by introducing the header information in it. It is a little modified version of sniffer from tcpdump website.Note : To run this code you require root permissions. Here's the code: //

An introduction to BIG INTEGER class of dotnet 4.0

IntroductionBigInteger class that resides in the System.Numerics namespace helps in representing any large integer without any loss of precision. It has been introduced earlier in dotnet framework 3.5 but was removed(don’t know the exact reason). However, it is again back in framework 4.0 Using the codeExample 1: To find the factorial of 100. Read more: Codeproject Posted via email from

Boot to VHD / Boot from VHD

I recently learned about boot to/from Virtual Hard Disk (VHD) and how it makes it very easy to set up and manage multiple system configurations. After having my Windows 7 configuration get completely messed up and being really lazy about creating clean OS images, I figured I would give the VHD route a try and discovered it's much easier than I expected - if you can create an image in Virtual PC,

Interesting tips in JavaScript

Describes about 5 interesting tips in JavaScriptIn this article I would like to share some of the interesting things I came to know on JavaScript.These are the five tips we will see..            #1  Dynamic script loading          #2  Instantiation without "new"            #3  Memoizing            #4  Mixin classes          #5  Inheritance by cloning   #1 Dynamic script loading  Most of the

Microsoft(R) SQL Server(R) StreamInsight 1.1

OverviewMicrosoft® StreamInsight is a platform for the continuous and incremental processing of unending sequences of events (event streams) from multiple sources with near-zero latency. These requirements, shared by vertical markets such as manufacturing, oil and gas, utilities, financial services, health care, web analytics, and IT and data center monitoring, make traditional store and query

AJAXPRC

AJAXPRC : the JavaScript Remote Procedure Call, fast and easy . It allows JavaScript to be able to call into the server-side methods synchronously or asynchronously, based on JSON, open-source license(LGPL). Use AJAXRPC, you can develop as a traditional C / S procedures, to develop the WEB program that allows WEB development simpler and more efficient.Languages Supported: Java, .Net, Php.Browsers

An example of Strategy Design pattern for beginners

IntroductionSometime we need to carry out several computation / algorithms depending on certain conditions. We go ahead in implementing those generally by applying either switch or ternary operator or if else. Though initially somehow we manage to write those program but if the program demands too complex then it is difficult to frame such as well as to maintain. Moreover, writing all the logic

Output Caching in asp.net

Recently one of my friend ask about output cache so I decided to put a post about how output cache works and what is the advantages and disadvantage of using output cache. Output cache is a technique to cache generated response from the asp.net pages or controls. Output Caching increases the performance drastically by reducing server round trips. We can use @OutputCache directive to controls

Senin, 25 Oktober 2010

A first look at the Windows Web Services API

The article shows how to interop between a WCF service and a WWS client, and also how to rewrite the WCF service in WWS retaining compatibility with existing WCF clients.IntroductionThe Windows Web Services API is a native implementation of SOAP and can be used to interop transparently with existing WCF services and clients, in addition to offering the ability to completely achieve a

gSOAP 2.8.0

1  Introduction   The gSOAP tools provide an automated SOAP and XML data binding for C and C++ based on compiler technologies. The tools simplify the development of SOAP/XML Web services and XML application in C and C++ using autocode generation and advanced mapping methods. Most toolkits for Web services adopt a WSDL/SOAP-centric view and offer APIs that require the use of class libraries for

Why Server-Side JavaScript?

Chris Nicola left this excellent comment on Justin Etheredge’s blog:Even with a competitive way to do SSJS [(server-side JavaScript)] on the Windows platform, I just have to ask... why would anyone? Server-side JavaScript means that the server portion of a web application is written in JavaScript. Personally, I believe that server-side JavaScript will be the next big advance in web development.If

Developing a (very) Lookless Silverlight Radial Gauge Control

This blog post describes the development of a lookless radial gauge control. In this post I will explore the use of an attached view model in order to move view specific properties and logic out of the control code in order to give a truly lookless control. Today I had to get up far too early in order to catch an early morning flight to Copenhagen with a connection in Amsterdam. What to do for

Windows Command Reference

Overview   The Windows command-line tools are used to perform various tasks related to Windows Vista, Windows 7, Windows Server 2003, Windows Server 2008, and Windows Server 2008 R2. You can use the command reference to familiarize yourself with new and enhanced command-line tools, to learn about the command shell, and to automate command-line tasks by using batch files or scripting tools. System

Architecting WP7 - Part 6 of 10: Loosely Coupled Messaging

While I recognize my original schedule is slipping, let's continue the ten part Windows Phone 7 architecture discussion. In this sixth part of the article series, I want to discuss messaging in phone applications. When I say "Messaging", I don't mean SMS or IM, but instead I mean smart ways of being able to talk between different parts of the application. As you build an application in a loosely

How to track an object which is Out of Scope while Debugging ?

In Mastering in Visual Studio 2010 Debugging article I have discussed about the basic of Object ID creation while debugging. I received some request from some readers to explain the use of “Make Object ID” in details. In this blog post I am going explain how we can track an Object which is already out of scope using by creating a Object ID while debugging. By using “Make Object ID” option we are

C# Enums - A bit of Extra Caution when working with Enums

Straight to a question for you.Consider the following code, where you accept a caller key and a token request from a caller, to issue a security key for further requests? Note that we also have a minimal exclusion check, where we prevent certain callers from getting the admin permission. Now, the question. What is wrong with the code below? public enum SecurityToken    {        Admin,        

Download Progress Bar for Silverlight Media Framework Player

One of my customers has been using the Microsoft Silverlight Media Framework player for their Business-to-Business media sharing portal and wanted to add a download progress bar behind the scrub bar.  I was able to show them how to do this with a combination of template binding, re-templating the SMFPlayer and Timeline classes and subclassing the Timeline class. Since the Timeline bar is a custom

Show External Code

I thought it would be a good idea to talk about working with the Call Stack some more.  Specifically, the option to show external code.  Let's start with the basics.  When you are in break mode and you look at a "normal" call stack, this is what you will see: Let's define what "normal" is in this case.  Essentially, what you see here is determined by the "Enable Just My Code" setting in Tools ->

SUSER_SNAME

שלום רב,כידוע פלטפורמת sql server מכילה פונקציות מערכות שימושיות מאוד. בטיפים הקרובים אסקור מספר פונקציות שימושיות ומעניינות. שאלה:ברצוני להוסיף בפרוצדורה תנאים לביצוע ע"פ המשתמש אשר מריץ את הפרוצדורה – האם זה אפשרי? האם ניתן לקבוע ערך DEFAULT לעמודה בטבלה שמשמעו "מי ביצע את הפעולה" ? תשובה: פלטפורמת SQL SERVER 2005 מכילה פונקציות מערכת רבות ומגוונות, אחת הפונקציות השימושיות הינה : SUSER_SNAME. 

Транзакции в Mysql

Добрый день!Сегодня хотел бы рассказать о механизме транзакций в mysql.И так давайте разберемся с самим механизмом транзакций. Для начала надо сказать, что транзакции – последовательность операторов, которые выполняются. Если хотя бы один из операторов не будет выполнен, будет произведен откат. Данный механизм очень удобен при работе интернет-магазина и т.д. В Mysql не все типы таблиц

TFS vs. Subversion fact check

I spotted a good comparison of TFS vs. Subversion by Jarosław Dobrzański on DZone (you can also read the original post) but I feel that a couple of the points were either out of date, or borne out of a lack of knowledge of the product, or even more likely I just missed the point. This article was taken from the perspective of an SVN user who has moved to TFS, and I am not in that category. I want

Recovering Your Work After an Expression Web Crash

I am getting a little tired of Expression Web 4 crashing on me.I'm not sure why I'm repeatedly encountering issues with the latest version of Expression Web, but I suspect -- given the frequency at which it is crashing -- it may have something to do with the TFS integration. Note that this is purely a guess on my part, but I find it hard to believe that the memory corruption bug I'm experiencing

SSH.NET Library

Project DescriptionSSH.NET is client library to connect to SSH servers written in C# with multitasking support.This project was inspired by Sharp.SSH library which was ported from java and it seems like was not supported for quite some time. I wanted to address some issues in this library.1. To avoid any third party dependencies other then .NET.2. To utilize parallelism as much as possible,

Mapping Virtual Address Space in T-SQL

The Dynamic Management Views (DMVs) introduced in  SQL Server 2005 provide a comprehensive window into the state of the SQL engine and also the machine it is running on. This post will look at how the SQL Server process uses DMVs to keep track of its own Virtual Address Space (VAS). Querying the sys.dm_os_virtual_address_dump DMV results a map of SQL Server VAS by allocation, effectively

Managed DirectX via F#

Referencing DirectX Libraries in an F# ApplicationDespite the fact that WPF has a more powerful graphics engine that Windows Forms, developing commercial game software is accomplished via DirectX or, in some cases, the OpenGL. Microsoft provides a high-level interface to DirectX from the .NET Framework: Managed DirectX. Even though this a high-level interfaces, programs using Managed DirectX

Microsoft Remote Desktop Connection Client for Mac 2.1.0

OverviewRemote Desktop Connection Client for Mac 2.1.0 lets you connect from your Macintosh computer to a Windows-based computer or to multiple Windows-based computers at the same time. After you have connected, you can work with applications and files on the Windows-based computer. To learn about what's new in Remote Desktop Connection Client for Mac 2.1.0, please visit the Microsoft Web

Virtualbox hidden gems, VBoxManage

Virtual box has this little secret, the Command Line interface (CLI), this is very useful for users who wants to manage their virtual boxes on headless servers.Question is why using command line while you have a nice easy to use GUI, the answer is POWER. you can do anything with the virtual box command line, you can create virtual machines, modify their settings, take snapshots, start and

Native Javascript Ninjutsu: Window object methods & properties

Javascript used to be a dark and ancient art, looked down upon by many web developers as a dishonorable – even malicious – ‘copy and paste’ language. Macromedia’s Shockwave – which later became Macromedia Flash, which even later became Adobe Flash – pushed audio, video, and interactive motion graphics onto the web in a cross-browser compatible format that all but decimated the need and appeal for

Writing Minidumps in C#

This is the first in what I intend to be a group of related posts, about exceptions and error handling in C#.Minidumps are a mechanism for "post-mortem debugging" - debugging your application after it is "dead".  A minidump is a snapshot of the memory of your application, typically taken when it is has encountered a fatal error.  Various debuggers support loading minidumps and "debugging" with

Minggu, 24 Oktober 2010

Beginning Silverlight - PlaneProjection

In a way this could be a continuation of my look into transitions in Silverlight because what this post is going to cover is a perspective transform.Silverlight does not have a toolkit for 3-D drawing but this perspective transform gives you the opportunity to simulate 3-D.  Like the other transforms it takes the existing element and changes how it is drawn only this one makes it look like it is

Late Binding - Myths and Reality

The concepts of late and early binding can be confusing, mainly because they aren’t really as different as they might first seem.There is also a general belief that late binding in C# is sophisticated but hard work and in VB .NET less sophisticated but much easier. There is a sense in which late binding is really isn’t any different from early binding – you could say it’s more a state of mind of

Security Identity propagation for WCF Ajax endpoints in ASP.NET

A UI driven service is usually a service implementation that only makes sense in the context of the UI for solving an specific use case, and not something that you might want to share or expose to third parties. Typical examples of UI driven services are AJAX endpoints, which you build for supporting partial updates in a page. The implementation of this kind of services can take the form of a

Data-as-a-Service: Factual, InfoChimps & Google Squared

In 2004, Tim O’Reilly’s famous Web 2.0 manifesto suggested that “data would be the next Intel Inside,” and that any Internet service of significance would be underpinned by specialized datasets, such as Amazon’s product database or Foursquare’s places. However, although we’ve seen online office suites added to the portfolio of web worker productivity tools, database apps have been curiously

מה זה DEPENDENCY PROPERTY ?!?

 Dependency Property הוא דוגמא לנושא שכולם מתעסקים איתו ועובדים איתו אבל לא כך כך מבינים איך הוא עובד או מה הקטע שלו..Dependency property הוא Property מתקדם שבמצבים מסוימים בא להחליף את ה Property הפשוט שאנחנו רגילים אליו. מה הרעיון של Property רגיל ?Property רגיל בא לשמש בצורה פשוטה את עיקרון ה Encapsulation.העיקרון מנחה אותנו לא להגדיר בכלל שדות כ Public אלא אך ורק כ Private ולכן אנחנו צריכים

Для чего нужен DOCTYPE в HTML документах

Как я заметил в посте Основы HTML. Структура документа, первой строкой в документе HTML, должно идти объявление DOCTYPE. Этим постом, я расскажу что это такое и с чем его едят.Определение DOCTYPE - это не тег HTML, а инструкция веб-браузеру, указывающая, на какой версии языка HTML написан документ (веб страничка). DOCTYPE ссылается на определение типа документа (DTD — Document Type Definition).

SQL Tips: MS SQL Copy Table with Data and Structure

Introduction This article series is about the various SQL tips/techniques that I came across in my professional work. It will be very silly to someone who is an expert in SQL Server. But this article discusses some of the tips/techniques that I encountered when I tried to solve problems in SQL in my day-to-day programming life. I will be updating this series whenever I come across various

Installing Ubuntu Server 10.10 on Hyper-V

Now that the Hyper-V integration services are included in the official Linux builds – I wanted to try out a Linux distribution that is not officially supported by Microsoft and see what was involved in getting it all working.  With the recent release of Ubuntu 10.10 I thought I would try out their server version.  After downloading the bits from http://www.ubuntu.com/server I created a

Enhanced MFC Message Boxes

The ProblemWindows applications often use message boxes for asking the user for some actions or for displaying information messages. From week to week, more applications are getting published, which contain nice message boxes with checkboxes like "Do not display this message again" or "Do not ask this question" again, with which the user is able to customize the application behavior and to get

DLL Injection

In a previous post, I was discussing the idea of adding more events to Excel by adding a window hook.Under the hood, the idea is that we can load a DLL in the Excel process simply by transforming that DLL into a COM add-in, which is automatically loaded by Excel. This post covers the situation of programs that don’t implement an add-in mechanism so loading a DLL into their process requires DLL

CrossNet

CrossNet is a cross platform .NET runtime.It parses .NET assemblies and generates unmanaged C++ code that can be compiled on any standard C++ compiler.More than 95% of the .NET 2.0 features are actually "emulated" in C++. CrossNet does not produce managed C++, the generated code is pure ANSI C++. Even if that's only an emulation of .NET, the performance and memory usage are usually in the same

Writing a .net debugger (part 2) – handling events and creating wrappers

In this part I will describe which events the debugger has to deal with and how it should respond to them. Additionally we will create few COM wrappers for ICorDebug* interfaces. Let’s first examine the ICorDebugManagedCallback interface (imported from COM object – more in part 1). You may notice that each event handler has its own set of parameters, but the first parameter is always of type

Load a .NET Assembly into a Separate AppDomain So You Can Unload It

There may be times when you wish to temporarily load a .NET assembly to inspect it, but you don’t want the assembly to remain in your program’s memory taking up resources.  Unfortunately, once your program loads an assembly, there is no way to unload it.  The best way is to create a separate AppDomain, load the assembly into that AppDomain, then unload the AppDomain when you are finished. The

CAS (Code access security) & .NET 4.0 Security model FAQ (With Full Video demonstration)

Introduction What is CAS?What is evidence in CAS?What is a permission and permission set?What is code group?So how does CAS work on runtime?Can we see a quick demo of CAS?What is CASPOL.exe? When I open a .NET 4.0 DLL/Assembly using CASPOL it throws an error?Can you throw some more light on the security transparent model?A demo of security transparent model can really make things clear?What is

DLR using Reflection.Emit (In Depth) Part 1

Well, lets put it in other words, " The more I see the framework, the more I discover in .NET". Yes, after putting my efforts with Reflection classes, I thought I could make some research on code generation. I took the CodeDom being the best alternative to generate code. Sooner or later, I found out, CodeDom actually allows you to build your assembly but it is does not allow you to dynamically

Different Kinds of Operator Overloading

What is Operator Overloading?We know that standard data types supplied by languages are well known and there will be operators like +,* ,% operates on these data types. But, what is the case if it is user-defined types say a 3dpoint class, which is the combination of three integers. Well, all languages that supports operator overloading says, “It is your Type. Please you say how the operator +

Silverlight Tip of the Day #36 – Creating Smooth Tile Transitions using Opacity Masks

This tutorial will look into using the Opacity property on the tiles to create smooth, natural looking transitions between tiles. For example, blending a dirt tile into a grass tile, a grass tile into a rock tile, etc. Below, on the left, is a screen shot of a grass and dirt tile without the use of an opacity mask. As you can see, the straight line does not make for a very real looking transition

15 Things I’ve discovered about Silverlight.

I love Silverlight and have written / talked about it a lot. I can’t help but notice that a lot of people are new to Silverlight or may have played with it a few times. Well this post is for you. It is a list of 15 things that I’ve discovered since I started developing for Silverlight. If you are a full-time Silverlight developer than I would hope you know most of these. I promise not to scare

How to Develop MVVM Silverlight applications with Prism

I’ve got some criticism from Alex Golesh in a comment on one of my latest Posts (Managing Silverlight resources contained in external assemblies), First I would like to thank him for taking his time and writing this comment, I would like to reply him with this post. First let’s see Alex’s Comment:I have to comment it, because the code lead to bad practice...First, it heavily assumes you have all

Kamis, 21 Oktober 2010

Select / Deselect all checkbox in DataGrid In Silverlight

IntroductionIn the previous article we have seen how to add a Checkbox Column In DataGrid and how to achieve multi select delete operation. In this article we will see how we can select all rows of DataGrid and delete all selected. Creating Silverlight ProjectFire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as SelectAllRowsDataGrid.As you see we have customized the

Virtual CD Version 10

OverviewVirtual CD 10 is a unique app that will virtualize all off your optical media. You can virtualize CDs, DVDs, HD DVDs, and Blu-ray Discs. This is different than a just a virtual CD drive, as it creates images of your optical media, and allows you to manage it. You’ll no longer need to worry about your physical media being wrecked by scratches and constant use. Version 10 introduces a

How to Manually Repair Windows 7 Boot Loader Problems

If you’re having boot problems on your Windows PC, it’s often helpful to repair the MBR (Master Boot Record) to restore the Windows 7 boot loader—and you can do it easily from the Windows installation disc. This is generally most useful if you’ve broken something and there’s a boot loader error, or if you have made the mistake of installing an older version of Windows on the same PC that already

The complete guide for switching to, or learning about, your Android phone

Kevin Purdy, senior editor of the Lifehacker website, has just released his Complete Android Guide. The guide costs $9 to download an EPUB version, $19.95 to buy the dead-tree version, or you can read it all for free on the Complete Guides website. Whether you are switching from another mobile phone platform or operating system, or you've just bought your very first smartphone, this guide should

Direct3D 10 and 11 API now natively supported by Linux via Gallium3D

In one fell swoop, it seems like proper, contemporary 3D gaming could be coming to a Linux distro near you.Unlike Wine, this implementation of Direct3D under Gallium3D is an actual, native port of the DirectX APIs. There's no emulation involved -- Gallium3D just acts as a 'very thin wrapper,' allowing developers easy access to Direct3D's goodies. Luca Barbieri, the developer behind this new code

Admin templates for Google Chrome make it more enterprise-friendly

System admins generally aren't fond of rolling out new software to their users if they don't have a measure of control over what those users can and can't do with the app in question. Google knows that, and they've been working for a while now to add enterprise-friendly policy support to Chrome. Now, Google has made policy templates available for download which provide a measure of lockdown

YouTube Time Machine helps you reminisce with YouTube videos from a certain year

YTTM apparently stands for "YouTube Time Machine," although that's not specifically mentioned on the site. What it does is very easy to understand, though. You move a slider to a specific year between 1860 and 2010, and you get a bunch of YouTube videos related to that year. Yes, I said 1860 (that's not a typo). Not all hits are spot-on, though. When I chose 1972, I got a video from 1970. So, I

ASP.net assembly loading from GAC or Bin

For quite a while I have been going back and forth reading msdn documentations to figure out how does an assembly gets loaded at runtime. When an assembly is in the bin of your application and also in the GAC, what gets loaded at runtime, GAC or bin? This post is a quick reference guide so that I come back to it and get the short answer rather than parse through the msdn documentation each time.

Create a Build File for a Visual Studio Solution - MsBuild Series

Why create a build file for a Visual Studio Solution?A build file automates the process of building, testing, analyzing, packaging, & deploying your project. Build files can be used to give you a single click solution to perform mundane tasks in a consistent way. It saves you time by automating all the tedious steps necessary to prepare your project for testing or deploying. It reduces risk

Web VNC Client

As both dedicated and virtual hardware shifts to the cloud, the need to remotely access and control servers has become increasingly important. Often this is achieved using VNC however this has up until now needed a dedicated VNC client installed on the accessing machine and isn't always possible behind corporate firewalls. Likewise, the unencrypted connection makes it unsuitable for use when

Silverlight Performance Tip

After watching Seema’s PDC talk on Building an Optimized, Graphics-Intensive Application in Microsoft Silverlight I thought it would be useful to summarize what I learned.1. DebuggingThe following items will help you debug performance in your Silverlight application: •EnableRedrawRegions – Turn on this debug setting to see what and where rectangles are being redrawn within your application. When

ASP.NET Webforms and Event Handling

To create more active server pages as done in the first example, it is necessary to add code and reference elements of a page. The most simple way is to add a script section in the ‘index.aspx’ source. It may be surprising to see that the event handler is defined as a member function of a System.Web.UI.Page class definition. In the next example we add an event handler for a button click. As usual

Where Is The SQL Server ErrorLog File?

I seldom lose things; I just cannot find them as quickly as I’d like. This is true for keys, tools, and yes even ErrorLog files on SQL Server.On the servers that I configure, I have a standard way of doing things. I set them up using some industry best practices and some standards that I’ve developed over the years. On those servers, I can find the ErrorLog file quickly since it is in a

WCF: передача XML и расход памяти

Как я писал недавно - http://devlanfear.com/perexod-s-asp-net-web-services-na-wcf/ - мы перевели свой проект с ASP.NET веб-сервисов на WCF.  В процессе перевода столкнулись с проблемой – WCF не хотел сериализовать поле типа XmlNode, пришлось искать пути обхода этой проблемы. Первый вариант был – использовать XmlElement (наследник XmlNode), который сериализуется без проблем. Но при тестировании

London Stock Exchange smashes world record trade speed with Linux

The London Stock Exchange has said its new Linux-based system is delivering world record networking speed, with 126 microsecond trading times.The news comes ahead a major Linux-based switchover in twelve days, during which the open source system will replace Microsoft .Net technology on the group’s main stock exchange. The LSE had long been criticised on speed and reliability, grappling with

ExportParameters returns Invalid type specified error

Some time ago a customer of mine was trying to export the private key associated to a certificate stored in a smart card, and for that he was trying to use the RSACryptoServiceProvider.ExportParameters method with a code like the following: System.Security.Cryptography.X509Certificates.X509Certificate2 cert = GetCert(certName); RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)

How to upload files using C#

Create FTP RequestFtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));Setup your FTP Settingsrequest.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential(username, password);request.UsePassive = false;request.UseBinary = true;request.KeepAlive = false;using System.IO we can load the fileRead more: My.I.T.Side

Debugging Android: Using DDMS To Look Under The Hood Submitted by James Sugrue on Wed, 2010/

While working on an Android application recently, I ran into some problems, and was finding it difficult to work out what was actually going on in the emulator. As I'm using Appcelerator for my app development, I didn't have the luxury of using the built in Eclipse tools to find out what was wrong. Luckily for me, Google have a tool for this type of situation: the Dalvik Debug Monitor. You can

Mailbag: How to perform a silent install of the Visual C++ 2010 redistributable packages

Question:You previously posted lists of command line switches to perform silent and unattended installations of the Visual C++ 2005 redistributable and the Visual C++ 2008 redistributable.  How can I perform silent and unattended installations of the Visual C++ 2010 redistributable? Answer:The Visual C++ 2010 redistributable packages (vcredist_x86.exe, vcredist_x64.exe and vcredist_ia64.exe)

Accessing Server-Side Data from Client Script

IntroductionWhen building a web application, we must decide how and when the browser will communicate with the web server. The ASP.NET WebForms model greatly simplifies web development by providing a straightforward mechanism for exchanging data between the browser and the server. With WebForms, each ASP.NET page's rendered output includes a
element that performs a postback to the same

The Razor View Engine Basics

If you’ve been following me, you probably noticed that I became quite excited with the new view engine of ASP.NET MVC 3 – the razor view engine. If you’re familiar with it then you might agree or disagree with me, but if you don’t then this is a great time for you to make up your mind! In this post I assume you are familiar with the concept of view engines. If not, please watch this before.Let’s

Silverlight. Основы. Валидация. Часть 2. IDataErrorInfo & INotifyDataErrorInfo

Еще пару слов про ValidatesOnExceptionsЗабыл сказать, что если вам хочется построить валидацию на исключениях, то совсем не обязательно использовать DataAnnotations, можно очень просто выбрасывать исключения прям из set методов. Например, для проверки того, что повторно введенный пароль из прошлого примера совпадает с перво-введённым паролем, можно сделать так: [Display(Name = "New password

Getting the WebOperationContext of a HTTP response in Silverlight

This came up as a question from a customer today: how do you get details of the HTTP response message that a WCF proxy in Silverlight received? If you thought of  OperationContext and WebOperationContext, you’re on the right track, but you have only half of the story. In Silverlight, in order to get to these context objects, you have to switch from the event-based async pattern to the more

How to Create HTML5 Website and Page Templates for Visual Studio 2010

Now that I work at Microsoft, I’m using Visual Studio 2010 as my main editor. By default, an empty web page is created with an XHTML 1.0 doctype and it’s pretty barebones. Since I’m focusing on HTML5 & JavaScript development, having to constantly update the page with references to the new HTML5 doctype, jQuery, Modernizr and all of the other tags I use for my pages was becoming a drag. Today, I

Xte Profiler

.NET ProfilerXte Profiler is a trace and memory profiler for .NET. Supports .NET CLR v2 and v4 (.NET Frameworks 2.0, 3.0, 3.5 and 4.0)Supports profiling of Windows executables, ASP.NET Development server applications, IIS applications, Windows services and Silverlight 4 applications. Supports trace and memory profile modes.and more...Read more: Xte Profiler Posted via email from .NET

Windows Identity Foundation (WIF) SDK Help Overhaul

Overview Identity Challenges – SSO, Identity Flow, Fine Grained Authorization (Changed from: Identity Silos) The Claims-Based Identity Model Solution Concept (Changed from: Basic Scenario) Security Token Service Relying Party Solution Implementation Overview (Changed from: Federation Scenario) Fast track (How to use this content)Getting StartedWindows Identity Foundation SDK - Download and

SQL Server: How to insert million numbers to table fast?

Yesterday I attended at local community evening where one of the most famous Estonian MVPs – Henn Sarv – spoke about SQL Server queries and performance. During this session we saw very cool demos and in this posting I will introduce you my favorite one – how to insert million numbers to table. The problem is: how to get one million numbers to table with less time? We can solve this problem using

Simplest way to Create a Non-Movable Silverlight Child Window

Are you looking for a Silverlight Child Window, which can’t move from it’s actual position? Then this article will help you to understand & create a non-movable child window in Silverlight. Child Window is available inside the System.Windows.Controls.dll assembly. By default, it is movable. You can drag the Title Bar of the Window and position it anywhere in the screen. But, you may face some

INTEGRATE HTML5 FORM IN ASP.NET MVC

This article is divided into three parts. In the first, part I will show you how you can add Html5 forms in your ASP.NET MVC application with very minimum effort. In the second part, I will show you how to implement client side validation which will trigger automatically even when the browser does not have the html5 client side validation support and in the last part I will show widgetify the

Rabu, 20 Oktober 2010

Analyze and validate T-SQL code using SQL Enlight

As databases get bigger, the number of database objects increase and the amount of business logic implemented using T-SQL code becomes quite substantial, often even more critical than the application code; the automation of the process of ensuring code quality is becoming more and more important. Static code analysis is a popular method for code verification and defect detection in the .NET, C++

Managing Silverlight resources contained in external assemblies

A year ago, I’ve written a post about Managing WPF resources contained in external assemblies.I am using this pattern in every Prism application I’m developing, the main reason for this is  that I like having each module responsible for his own resources, especially it contains DataTemplates which couple Views to ViewModels. In each of my module entry classes (which inherit from IModule) I

Bubbling PropertyChanged Events in Silverlight

I’ve been working with Silverlight (specifically for Windows Phone 7) recently and something I’ve found useful is the ability to “bubble” PropertyChanged event up. So for example;    public class MainPageViewModel : INotifyPropertyChanged     {        public ObservableCollection People        {            get            {                return  _repository.Items;            }        }

Can you repro this 64-bit .NET GC bug?

Whilst developing low latency software on .NET, we have discovered a serious bug in the .NET 4 concurrent workstation garbage collector that can cause applications to hang for up to several minutes at a time. On three of our machines the following simple C# program causes the GC to leak memory until none remains and a single mammoth GC cycle kicks in, stalling the program for several minutes (!)

Silverlight: Why do I get 0x8000ffff when using WriteableBitmap on an Element

I'm working on a WP7 library which helps analyze your VisualTree and to provide a visual aid, I take WriteableBitmap snaps of the elements. Unfortunately I (seemingly) randomly encounter the following exception: A first chance exception of type 'System.Exception' occurred in System.Windows.dllWhen digging into the exception you may find that the error is actually a HRESULT which is being bubbled

Microsoft Office 365 – Videos, demos, resources, and more information for you

Earlier today, I posted about our Microsoft Office 365 announcement as well as the announcement of the beta for Microsoft Office 365.  In that post I included several links to things like the beta program, Microsoft partner page for Microsoft Office 365, the Microsoft Office 365 website, the Microsoft Office 365 Twitter & Facebook accounts, and more.  (So be sure you read through the earlier post

Silverlight. Основы. Валидация. Часть 1. DataAnnotations & ValidatesOnExceptions

В Silverlight 4 есть несколько способов для валидации введённых данных, точнее несколько подходов для реализации валидации. Первый вариант, реализация валидации на DataAnnotation. Вариант, когда правила валидации описываются при помощи атрибутов. Два других подхода – это реализация одного из интерфейсов IDataErrorInfo или INotifyDataErrorInfo. Я хотел бы остановиться на каждом из подходов,

Useful jQuery Tutorials - September 2010

AJAX JSON DatepickerThis tutorial shows how to use the jQuery UI datepicker with JSON. Dissecting jQuery - GrepWorking with the Official jQuery Templating PluginjQuery Tabbed Navigation TutorialHorizontal Scrolling Menu made with CSS and jQueryRead more: AjaxLine Posted via email from .NET Info

Selasa, 19 Oktober 2010

Universal COM Callable Wrapper

IntroductionGeneric COM Callable Wrapper for any .Net object, class, or type. This is a language-independent COM class library allowing virtual porting of most Microsoft .Net framework classes and types into any COM-aware language. On Windows OS's, if your language of choice can at least work with COM, theoretically with this library, you can now work with any Microsoft .Net class, type and

Eye on Visage: Compiler Preview #1 Available

The Visage Programming Language is moving forward, with Compiler Preview #1 available now.  This preview features Default Properties, which create a simplified syntax that makes it easier to read nested data structures.  A logo has also been chosen for the project as well.  According to Stephen Chin, founder and leader of the Visage Project:   "After a lot of searching (and some failed attempts

Ultimate Guide to speed up Visual Studio

I believe that better tools lead to better results. That’s why I care about my tools performance a lot!Recently I had a conversation with Peter Kirchner and Kay Giza on how to speed up Visual Studio. Specifically by configuring you Anti-Virus software. But beside that there are loads of things that you can do. So I decided to share the tweaks on environment:Read more: DANIEL FISHER (@LENNYBACON)

Hardware change detection

IntroductionIn this article I will describe how to detect device changes in your user-mode applications on the Windows operating system, IOW how to detect the situation when new devices are plugged or removed from the PC (i.e. plug-in USB stick, modem device or mobile phone,  mount/unmount the new disk). Basic approach is receiving notification messages from the system. Hardware change

HowTo: Messaging with MSMQ, an introduction

A short time ago I found MSMQ. To say it easy: MSMQ is a system where messages are able to be classified into queues and be converted piece by piece.Why should I use this?MSMQ is a system of queues. You put your message into it and than somebody will take it and convert it. This could be very useful in distributed applications for example. So for example it is possible to generate E-Mails, put

How to crack Microsoft interview?

Welcoming Kavya Sukumar, a developer at Microsoft who would like to share some insights on the interview process and how to crack it!Hello Kavya, thank you for accepting the invite! Our readers would like to know a little bit about yourself, so.. Yup, sure! I currently work as an Software Development Engineer in Test in Microsoft Corp., Redmond. I joined Microsoft’s India Development Center after

Interesting T-SQL problems

When I wrote my first article with the same name here, Interesting T-SQL problems, I was thinking it will be a weekly series. However, as it often happens, not all intentions become a reality.So, about a month and a half later, I want to discuss a few problems I encountered in different forums during the time since the last blog, that somehow caught my attention. The first problem is found here (

Use Bing API and MSDN metadata to generate code automagically (Part 1)

Working more and more with Garrett Serack on the CoApp project, I found myself needing to query MSDN in a non-traditional manner — programmatically. To be more precise, I needed access to the function prototypes of various APIs for code generation purposes. For the past few months, I tried a number of search facilities, web services, and even experimented with symbol server lookups. In the end,

Do I need DTC for my SQL Server?

I get a lot of questions about the "best" way to configure the Distributed Transaction Coordinator (DTC) for SQL Server on a Windows 2008 cluster. There is no one best way to do it, and the first question you ask should be "do you even use DTC and if so how and how often?". If you don't use DTC or use it rarely, then perhaps you don't need to spend a lot of time coming up with the absolute "best"

Best opensource alternative to Active Directory

Check out the 5 best opensource alternative to Active Directory. Directory Servers are used to store all information in the directory. It is primarily used as identity management to authenticate and authorize the Users in the network OpenDS - Next generation Directory ServiceOpenDS is an community project, building a free and comprehensive next generation directory service. OpenDS is designed to

A quick list of resources Developers using IIS

Overview - http://www.iis.net/overviewFeature Training - http://learn.iis.net/ IIS 7 Operations Guide - http://technet.microsoft.com/en-us/library/cc732976(WS.10).aspx Docs - http://technet.microsoft.com/en-us/library/cc753433(WS.10).aspxAccessing Online Help - http://technet.microsoft.com/en-us/library/cc725788(WS.10).aspx ASP.Net & PHP Support   http://www.iis.net/overview/

Network and Sharing Center Operations Guide

OverviewYou can use this guide to administer Network and Sharing Center in Windows® 7, Windows Server® 2008 R2, Windows Vista, and Windows Server 2008.Network and Sharing Center provides a centralized location where you can view, create, and modify local area network (LAN), wireless local area network (WLAN), virtual private network k. (VPN), dial-up, and Broadband connections on your client and

On Dynamic Objects and DynamicObject

As you know if you read my blog, C# 4.0 introduced some language features that help you consume dynamic objects. Although it’s not part of the language, most of the writing about dynamic in C# that I have seen, including my own, also contains some point about how you create dynamic objects. And they usually make it clear that the easiest way to do that is to extend System.Dynamic.DynamicObject.

How to create Fixed Header in GridView Control

אחת מהדרישות שחוזרות על עצמן בפרויקטים שונים היא ששורת הכותרות של ה – Grid תשאר קבועה במהלך הגלילה. הפתרון הראשון שעולה על הדעת הוא לייצר טבלה נפרדת עם שורת הכותרות ולהוסיף רק לגריד את יכולת הגלילה, הבעיה היא שזה די מייגע למדוד פיקסלים ולדייק שהגריד יישב בדיוק מתחת לשורת הכותרות. פתרון נוסף ואלגנטי יותר שאותו אני רוצה להציג מתבצע באמצעות שימוש ב – CSS. Expression in Cssכדי לקבע את שורת הכותרת

Authorization and Authentication using WCF Security - Silverlight

  In my previous articles Silverlight 4.0 - Calling Secured WCF 4.0 Service hosted with SSL and Self-Signed Certificate, we saw how to consume WCF SSL enabled service in Silverlight 4.0 client and in the article Silverlight 4.0 - Secure Communication to WCF service using Custom User Name and Password Validator, we saw how to authenticate a user using by using custom user name and password. As an

Silverlightbox released on Codeplex

Few hours ago I released a new project on Codeplex called Silverlightbox. The purpose of this project is to create a replacement for the javascript lightbox, used widely in many websites to display images and slideshows. The project works adding a silverlight overlay to the page that is showed when an hyperlink to an image is hit. The Silverlightbox I released is compatible with the javascript

File Explorer using Silverlight 4 COM Interoperability

You all know that, Silverlight 4 has the feature to talk with COM APIs. In my earlier posts I already mentioned various Interoperability functionalities of Silverlight. You can see some articles in my Blog. In this article, I will show you how Silverlight can read your local files, folders and drives. At the end of this Article you will be able to open any file/folder/drive and read their

Senin, 18 Oktober 2010

OnLive, the streaming video game service, is now free

OnLive, the one and only cloud-based gaming service, has eliminated its monthly fee of $4.95. You can now sign up without supplying your credit card details.Games still cost money to buy, but the main thing thing is that you now have access to fully-playable 30 minute demos for free. We were finally able to test the service, and it really is rather good. The client is attractive, smooth,

PenguSpy makes finding great Linux games easy

While you're waiting to find out whether or not Valve is going to deliver Steam to Linux users, you might as well bookmark a few other resources for finding games to play on your rig. One I've discovered is the recently-overhauled PenguSpy. PenguSpy offers a categorized collection of both free and commercial games for Linux -- from platformers to RTS, board games to racing sims. Each game's

Security Essentials Screensaver scans for viruses while your computer is idle

  Some people like to display a little eye candy while their computer idles, opting for screensavers which flip through an assortment of photos or flying toasters (for example). Some of us, however, would rather have our system doing meaningful work that we don't want going on while we're using systems. That's why a number of utility apps -- like defrag tools and antivirus programs -- have an

Bjarne Stroustrup Reflects On 25 Years of C++

Today roughly marks C++'s first release 25 years ago when about six years of Bjarne Stroustrop's life came to fruition in the now pervasive replacement language for C. It achieved ISO standardization in 1998 and its creator regularly receives accolades. Wired's short interview contains some nice anecdotes including 'If I had thought of it and had some marketing sense every computer and just about

Livescribe now integrates with Evernote

Livescribe -- that awesome pen which magically digitizes your handwriting -- can now sync directly with Evernote. For now you'll need Livescribe Desktop for Windows to use this feature, but the updated Mac OS X version should be available next week. The integration is, as you'd expect from two very smooth services, seamless. Write your notes as usual, connect your pen to your computer, and then

Patent troll starts suing websites that use roll-over images...

Ars Technica is running a fantastic, facepalm-worthy story of patent trolling gone wild. Webvention is the patent-holder in question, and their entire operations revolve around a single U.S. patent: 5,251,294. The patent abstract opens with one of the vaguest and most terrifying sentences ever conceived: "An interactive information environment for accessing, controlling, and using information."

Facebook, Microsoft Team Up Against Google

In a move that could be the biggest threat to Google's search standing yet, Microsoft and Facebook announced that they're teaming up for social search. When someone uses Bing's search engine to look for a new car or a book, she can see which ones her friends liked. While industry watchers say this is an interesting move for search, what's most notable is that Facebook turned to Microsoft for this

New Site Aims To Be iTunes For Exploits

It's been tried before, but NSS Labs founder Rick Moy says his company's new Exploit Hub — a store front for exploit code — can work. In an interview, he explains why the current market for exploits doesn't work for the good guys, and why zero-day exploits don't help anyone. Above-board markets for software vulnerabilities have been around for close to a decade, but previous efforts to market

Macbuntu Makes your Linux Desktop Look Like Mac OS X

We've shown you how to bring the OS X GUI to Windows, but if you're more of a Linux fan, Macbuntu will add an OS X theme to your Ubuntu desktop instead.If you're a fan of OS X's GUI but don't feel like paying for a Mac (or giving up your precious Linux), Macbuntu will install all the necessary apps, icons, and other resources to make your desktop look just like OS X. If you're using Ubuntu 10.04

How to Make Your Own DVDs from Almost Any Video File

   If you’ve got a lot of AVI videos in your media collection, you might want to be able to play them on your DVD player—or even more likely, give a DVD to a family member to watch. Here’s how to create your own DVDs easily. For the purposes of this guide we’ll show you how to do it using the freeware DVD Flick utility, or the Windows DVD Maker application bundled into some versions of Windows.

Writing a Compiler in C#: Parsing, Part 1

In the previous installment we saw the core of a lexical analyzer, a module that generates from a stream of characters a set of tokens for symbols, identifiers, keywords, integer constants, and string constants. Today, we move to parsing. The parser’s job is to give semantic structure to the syntactic tokens bestowed upon it by the lexical analyzer. There are, as always, automatic tools like yacc

Change Column DataTypes

There are times when I feel like writing that I am a day old in SQL Server. In fact, there are many who are looking for solution that is simple enough. Have you ever searched online for something very simple. I often do and enjoy doing things which are straight forward and easy for change. In this blog post, we will see how to change the datatypes of the column.We will create a sample table and

System Stored Procedure sys.sp_tables

I have seen people running the following script quite often, to know the list of the tables from the database:SELECT *FROM sys.tablesGOThe script above provides various information from create date to file stream, and many other important information. If you need all those information, that script is the one for you. However, if you do not need all those information, I suggest that you run the

Getting Started with Apache CXF Web Services

Before I get into the details of Apache CXF, this section presents a simple, yet complete, example of a RESTful web service built with Apache CXF. Specifically it includes the following technologies: ApacheCXF's Servlet that translates requests to specific URIs to specific method invocationsSpring to implement the serviceJAXB to perform the XML bindingXSD to represent the communication “contract”

Android Https Quirks

I wanted to make my own Https Get/Post request on Android platform. In this blog post I will cover my investigation and the quirks I noticed for eg.- if you are working over wifi behind a proxy server or 3G. - or what classes to use.A standard Http 1.1 requests can be made using Java standard HttpUrlConnection class. There is a separate HttpsUrlConnection class for https connections. But now you

C++ Properties

Introduction     This article discusses how to implement C#-like properties in Visual C++ 6 or above. This article assumes that the reader has enough knowledge in the C++ language to understand the code (though the code snippet will be thoroughly explained). It is recommended that the reader understands macros, classes, functions, and typedefs; however, this code is available for anyone to use.

Minggu, 17 Oktober 2010

Creating a simple COM+ component in C++

IntroductionI needed to test .NET com interoperability (as all debugging APIs are written in COM+) and so decided to implement my own simple COM+ component and then use it in my .NET application. I must warn you that I just started learning COM so if you are going to use this code you need to be careful  . As I’m a big fan of Starcraft II this component will implement objects representing Nexus (

Visual Studio source server cache

   Have you ever wondered where Visual Studio 2008/2010 stores the source files that it downloads from the source server? By default they are put in your home directory under Local Settings\Applications Data\SourceServer. If you are using two different debuggers or you have more than one user using your machine you probably would like to change this location. Unfortunately there is no way to do

Global hooks getting lost on Windows 7

Some time ago a customer of mine reported the following issue with SetWindowsHookEx API:Their application had global hooks to monitor for both keyboard and mouse input. On Windows 7, and under high CPU usage, those hooks were getting lost. They tried several things to solve the issue, without success: adjust registry setting "Control Panel\Desktop\LowLevelKeyboardProc" to 10000 (10sec), restart

Processing и Arduino

Processing является простым скриптовым языком для создания визуализаций с помощью платформы Java Virtual Mashine и позволяет быстро создавать интерактивные программы отображения изображений и анимации.Processing использовался для создания некоторых реклам, клипов, инсталляций, а также входит в учебные курсы некоторых вузов США. официальный сайт: http://processing.org скачать версию IDE для

Google’s guava java: the easy parts

Google’s guava is one of the best, most useful all-purpose java libraries to come out in a long time. It’s surprising that it isn’t standard in most projects now. Maybe there’s too much in there. If the functional and concurrency packages seem like too big an investment of time to understand and use in your code, just focus first on the easy parts. Think of guava as the next generation of apache

Pseudo Encrypted and Obfuscated File System

Project DescriptionPseudo Encrypted and Obfuscated File SystemRead more: Codeplex Posted via email from .NET Info

LiveKd for Virtual Machine Debugging

When Dave Solomon and I were writing the 3rd edition of the Windows Internals book series Inside Windows 2000 back in 1999, we pondered if there was a way to enable kernel debuggers like Windbg and Kd (part of the free Debugging Tools for Windows package that’s available in the Windows Platform SDK) to provide a local interactive view of a running system. Dave had introduced kernel debugger

Amazings WPF Controls

Project DescriptionThis project is the portal for accessing a lot of amazing WPF controls. It's developed in C# 4.0 with Visual studio 2010 ...A lot of them have their creations detailled on my web site : http://blog.lexique-du-net.com So far, here is a list of the available (or will be soon) controls :A Headered control,An animated expander,A Hand written text recognizer control,A whell listbox

Silverlight: toggle button bar

I have seen this asked several times: how to make a toggle button bar in Silverlight?Some might call it toggle button group.I have simply taken the ToggleButton template and dressed it on a RadioButton, with few minor changes like padding and corner radius. Read more: Shemesh Spots Posted via email from .NET Info

Transparent Data Encryption

My last post covered encrypting column level data using t-sql.  The need to encrypt data beyond column or row level may mandated by organizational governance or oversight.  Transparent data encryption is a feature available in SQL Server 2008 Enterprise edition which allows you to encrypt the database files, both log and data, as well as all backups and database snapshots.  As this works at the

3 Gems in Mono for .NET Programmers – The hidden potential of Mono.CSharp, Mono.Cecil And Mono.TextTemplating

Mono is getting more mature. I should say, Mono guys are even outshining their Microsoft counterparts in some areas. For example, Mono’s C# compiler already supports Compiler as a Service. In this post, we’ll have a quick look at some interesting Mono libraries that you can use in your .NET projects, to take advantage of some of their functionalities, that is not present in the .NET stack. 1 -

Hidden Facts of C# Structures in terms of MSIL

Did you ever thought of a program without using a single structure declared in it ?  Never thought so na? I did that already but found it would be impossible to do that, at least it does not make sense as the whole program is internally running on messages passed from one module to another in terms of structures. Well, well  hold on. If you are thinking that I am talking about custom structures,

Смешиваем managed и native код

Вчера я заинтересовался такой проблемой: каким образом можно использовать большую библиотеку, написанную на чистом C++, в проекте на C#? Первое, что пришло в голову — это экспорт функций в native dll, а потом импорт этих функций в C# с помощью P/Invoke. У меня уже был подобный опыт в одном из моих проектов, и, сказать по правде, больше мне такими извращениями заниматься не хочется  . Пораскинув

About the dollar sign ($) in javascript

I’m writing this short post because I think that many people are puzzled by the $ sign in java script. When I started using jQuery I thought that the $ sign have some super powers or do some woody magic. The truth is the dollar sign is "special" in javascript but unfortunately doesn’t do woody magic.Why the $ sign is special?Because you can do this: var $ = "Hello World";But you can’t do this:

ASP.NET Load WebUserControl programmatically and invoke method using Reflection

IntroductionA few days ago, someone asked me how to invoke a method in a WebUserControl that is being loaded programmatically. I took the opportunity to put together a sample code to provide the answer based on different access level. I hope you all will find this information useful. Sample code is available to download. Putting everything togetherShown in Listing 1 is the code behind of the

What does the FOF_NOCOPYSECURITYATTRIBS flag really do (or not do)?

In the old days, the shell copy engine didn't pay attention to ACLs. It just let the file system do whatever the default file system behavior was. The result was something like this:If you copied a file, it opened the destination, wrote to it, and that was it. Result: The copied file has the security attributes of destination (specifically, picking up the inheritable attributes from the container

How Google does test engineering

James Whittaker, test engineering director at Google, talked yesterday at the Agile Cambridge conference on how Google does ‘Test Engineering’. He likened software testing to healthcare – in particular patient care in hospitals. Whittaker started by saying that software development was like manufacturing 20 years ago, and that the cost of fixing problems after a release was much higher than

Fiddler and Channel-Binding-Tokens

Some users of Fiddler who have HTTPS Decryption enabled have found that some of their internal HTTPS sites that used to work properly with Fiddler now endlessly prompt for credentials while Fiddler is running. Even typing the correct credentials into the authentication prompt won't fix the problem. What happened? The problem is that the servers in question have enabled the new Extended Protection

.NET Gadgeteer

At Maker Faire 2010 New York, the .NET Micro Framework team and Microsoft Research (Cambridge) showed off their new device: the .NET Gadgeteer. It's like LEGO for electronics. In this video, Colin Miller explains some of the details on the board. The board itself has a multitude of connectors, and each is labeled with a letter. A sensor is then used to tell the end user which port to plug into,

Java mega-update plugs 29 critical security holes

Oracle has issued a massive Java SE and Java for Business update to fix 29 security vulnerabilities that could be exploited to take complete control of vulnerable computers.According to Oracle, 28 of these vulnerabilities could be remotely exploitable without authentication (over a network without the need for a username and password).  The patches are available for Windows, Linux and Solaris

Client (TCP and Named Pipe) Connection Pooling

Using the TCP and Named Pipe bindings give you a very clean mapping between IDuplexSessionChannel and the underlying network resource (socket or pipe). Namely, you can effectively treat a channel as 1-1 to a socket (I will use socket as shorthand for the generic “network resource” for the remainder of this post  ). That being said, the lifetime of the underlying socket is not necessarily 1-1 with

mindbg

Project DescriptionMindbg is a simple debugger engine written in .net 4.0 for learning purposes. If you want to learn some CLR internals and especially debugging API read my blog (http://lowleveldesign.wordpress.com) where I describe all steps of mindbg implementation. Part 1 - starting the debugging sessionThe first part of writing the debugger is ready. I described in it the process of starting

Using Javascript to Measure Web Page Performance with IE9

One ability that currently available in IE9 is the new msPerformance javascript object that enables developers to measure real-world performance of websites. In this post I’ll explain what is msPerformance and how you can use it to measure web page performance. The msPerformance ObjectWanting a web application that performs great is a very regular and crucial demand in these days. With IE9 beta

RemoteBox

Project DescriptionRemoteBox is a set of tools used to remote control VirtualBox. RemoteBox is developed in .NET framework for Microsoft Windows platforms.Read more: Codeplex Posted via email from .NET Info

C# \ VB .net Multi-user communication library (TCP)

IntroductionThe NetComm library allows you to connect multiple clients to the same server. This allows you to do the following:- Transfer personal messages to each other- Send a message to all of the users in the same server (public messages) - Communicate with each client using only ID (a unique string), without the need of knowing each other IP, the clients only need to know the host IP

UNetbootin (aka “Universal Netboot Installer”) - The “almost too easy” bootable Linux USB creation utility (with cool Windows admin/anti-malware/password recovery stuff included too)

“I came across an interesting utility called UNetbootin. It allows you to create bootable USB drives for many flavors of linux – but the part that interested me was the additional utilities you could write to a flash drive: “UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on both Windows and Linux. You can

Visual Source Safe management API

Visual Source Safe management API is a .Net library for accessing automation interface exposed by Microsoft Visual Source Safe.Read more: Codeplex Posted via email from .NET Info

Blend Bits 14: Fluid Movement

1) In Use… On the one hand, I find the FluidMoveBehavior in Blend very simple. When an item’s layout changes I can use the behavior to have the item animate from its previous layout position to its new layout position rather than having the change be instantaneous. In truth, I think the change is still instantaneous but the Behavior does clever things to apply transformations to the item from its

HPC cluster video encoder

Project DescriptionHPC cluster video encoder is a cluster application that provides near real-time encoding of video different formats and size. It's developed in C# using Microsoft Expression Encoder 3 object model, Microsoft Advanced VC-1 video codec and Microsoft HPC Pack 2008 SDK. System requirements- Windows 7 / Windows Server 2008 as a client- Microsoft .NET Framework 3.5- Microsoft

Using sp_rename

In my previous post I talked about using sp_rename to rename columns and primary keys/indexes. There was a time when most people recommended that you don’t use sp_rename and if you do a internet search for sp_rename you will see articles such as this one that Andras wrote back in 2006. Things do move on, so when you find a recommendation like this, I would recommend that check that it still

What exactly is Fragment_count ?

I started to think about this problem, when I saw this question asked by Sankar Reddy in SQL Server Quiz 2010. I have a fair bit of idea about Index fragmentation and defragmentation. I checked fragmentation of some of my table indexes previously and rebuilt the indexes when fragmentation percentage is too high. But I never thought about how exactly these will be calculated. But after looking at

Return Indexes for a Particular Table using TSQL

I posted a blog recently about returning a listing of all indexes for database, which is good if you want to see how many are in a database. However, you may want to return the indexes for one particular table. Script 1 shown below will do just that!  Just modify the table that you are looking for (and USE statement like above) and execute the script. See figure 1 for sample results of executing

Kamis, 14 Oktober 2010

Meet NELL, the Computer That Learns From the Net

Carnegie Mellon University has taught a computer how to read and learn from the internet. According to Dennis Baron at the Oxford University press blog, the computer is called NELL and it is reading the internet and learning from it in much the same way that humans learn language and acquire knowledge. Basically by soaking it all up and figuring it out. NELL is short for Never Ending Language

Recover Most of Your Google Chrome Profile After a Crash in Linux

Adventurous computer users are probably using either the beta or dev channels of Google Chrome. When these unstable versions crash and your profile is corrupted, how can you recover it?Note: of course, this technique won’t work for every scenario, but we’ve had to do this a few times this week and figured we’d share. Recently, we’ve been having problems with the dev channel of Google Chrome

What is Cloud Computing and What Does This Stupid Buzzword Mean?

The other day a reader wrote in asking if cloud computing could help save his hard drive space, which made me realize that it’s time to talk about exactly what this moronic buzzword really means.What is Cloud Computing? According to the National Institute of Standards and Technology, the definition for “Cloud Computing” is this incomprehensible piece of nonsense clearly written to be as confusing

Inserting & Retrieving Images from SQL Server Database without using Stored Procedures

Objective:To insert into & retrieve images from SQL server database without using stored procedures and also to perform insert, search, update and delete operations & navigation of records. Introduction:As we want to insert images into the database, first we have to create a table in the database, we can use the data type 'image' or 'binary' for storing the image.Query for creating table in our

TSQL TRY…CATCH

Transact-SQL is a great language for data manipulation, but it has its weaknesses. Unlike “real programming languages” T-SQL is confined to procedural code. Sure, you can build “modules” by using stored procedures and functions, but for the most part, all of the work will be procedural. It has in the past also lacked error handling syntax leaving you with the need to write GOTO statements and

Internet Explorer Application Compatibility VPC Image

OverviewIn order to help web designers and web developers test their websites in older versions of Internet Explorer, we've provided the following VHD with Windows set up with the specified version of Internet Explorer. The images are patched with the latest security updates and are otherwise clean installs of the operating system with very few modifications. These images are specifically

Silverlight Media Framework Now With Windows Phone 7 Goodness

Silverlight Media Framework 2.2 is now available and includes full support for Windows Phone 7!The open source Silverlight Media Framework (SMF) enables developers to quickly deploy a robust, scalable, customizable player for IIS Smooth Streaming delivery. The SMF builds on the core functionality of the Smooth Streaming Client and adds a large number of additional features, including an

TimeSpan.Parse breaking change in .Net Framework 4

This week my team upgraded our solutions to Visual Studio 2010 and .Net framework 4. When we ran the tests of one our projects, one of our tests failed with a weird reason. The code is simple:public DateTime CreateDateWithGivenTime(string time) { var t = TimeSpan.Parse(time); ... }The test was:[Test] [ExpectedException(typeof(OverflowException))] public void

Dependency Injection for Filters in MVC3

One of the new features of the Dependency Inject (DI) components from MVC3 is something called a IFilterProvider.  The purpose of this component is to provide a simpler way for MVC applications to interact with filters (action, exception, result, etc.). In the previous versions, trying to achieve something like providing DI support to filters was doable, it just required deeper integration into

Microsoft Silverlight Analytics Framework 1.4.7 Released

This weekend, in preparation for today’s Windows Phone 7 launch, we released, the Microsoft Silverlight Analytics Framework 1.4.7.  We fixed a few bugs and added tracking for the Microsoft Silverlight Media Framework 2.2 now available for both Silverlight and Windows Phone 7. Thank you to the community of partners, developers, and designers who are using the framework and giving great feedback.

How to run multiple versions of IE on same machine ?

A very common problem faced when developers want to see how they can test the application in multiple browser versions especially IE where in each version breaks some thing in application. It happens with me and so it might be happening with other users as well. Options 1 : IE TesterIETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE9 preview, IE8, IE7

Как написать неплохой обфускатор

Для тех кто не в теме, обфускация – это когда у нас есть код программы, и мы хотим сделать этот код нечитаемым. Как правило, обфусцировать (или все-таки обфускировать?) пытаются разные скрипты (на javascript, php и тд), потому что если программа написана на компилируемом языке, можно не извращаться и распространять только бинарники. Производить обфускацию руками долго и неприятно, потому пишутся

Выпущен стандарт Unicode 6, более 2000 дополнительных символов

Новая версия Unicode стала доступна сегодня. Версия 6.0.0 промышленного стандарта кодирования, обработки и представления текста, так же является первой версией выпущенной онлайн.Новый стандарт привносит множество изменений, включая свыше 2000 новых символов, новые свойства и файлы данных, некоторые корректировки в существующие символы и некоторые изменения в самом тексте стандарта. Новые литеры

Creating a Simple Action

In a few previous tutorials, you learned all about Behaviors and how to use a behavior that is provided out of the box by Expression Blend. You find a behavior in your Assets Library, drag/drop it onto something, tweak a few properties, and (like magic!) you are done and everything just works. There will be times, though, where you will not find a built-in behavior to suit what you are trying to

Microsoft releases its Security Intelligence Report, version 9

Today, Microsoft released its 9th edition of the Security Intelligence Report.  You can download the full pdf version here if you so desire.  SIRv9 covers the period of time from January to June 2010.  It contains all of Microsoft’s data and analysis surrounding threats in the cyber world. The nice thing about SIRv9 is that all of the data is no longer constrained to the pdf document (or print

Rabu, 13 Oktober 2010

Silverlight 4.0 Tutorial Index

Here is a list of all the posts in the Silverlight 4.0 Tutorial i had till now, i will keep this list updated as i publish more content: - Part1: Building the Database and the Domain Model- Part2: Capturing the WebCam - Part3: Working with the DataForm Control- Part4: ListBox ItemTemplate - Part5: More Blend!- Part6: Working with the ItemsControl - Part7: Visual States- Part8: Fluid Layouts Read

PostSharp

Do you ever find yourself creating a mess by duplicating boilerplate code because of tracing, exception handling, data binding, threading, or transaction management? You're not alone.PostSharp helps clean up that mess by encapsulating these aspects as custom attributes. This is what we mean by aspect-oriented programming (AOP).The result is clean, efficient code, much easier maintenance, and best

HTTP Communication and Security with Silverlight

Silverlight enables HTTP/HTTPS communication with Web services hosted both within and outside the domain that is hosting your Silverlight application. This topic discusses HTTP communication and security considerations for Silverlight application developers and Web service developers. This topic contains the following sections:HTTP Capabilities in SilverlightHTTP Communication Scenarios and

How to: Specify Browser or Client HTTP Handling

With Silverlight, you can specify whether the browser or the client provides HTTP handling for your Silverlight-based applications. By default, HTTP handling is performed by the browser and you must opt-in to client HTTP handling. Client HTTP handling provides greater flexibility for sending request headers, enables you to call HTTP methods other than GET and POST, and access the response

Write your own Twitter.com XSS exploit

So it seems the new twitter.com has a “virus” going around. Few minutes ago my twitter stream filled up with strange jQuery calls so I looked into it. Apperantly the new Twitter website is colunerable to a simple SQL-Injection like attack. It’ll just spit out to the page whatever HTML code you write on your status… So, the exploit work like this:Step 1:User writes the following status line:http:/

The Stuxnet Worm

It's impressive:   The Stuxnet worm is a "groundbreaking" piece of malware so devious in its use of unpatched vulnerabilities, so sophisticated in its multipronged approach, that the security researchers who tore it apart believe it may be the work of state-backed professionals. "It's amazing, really, the resources that went into this worm," said Liam O Murchu, manager of operations with

Width Height and Duration of wmv file

כיצד אפשר לקבל מידע על גובה רוחב וזמן (בשניות) של קובץ wmv כדי לעבוד בקוד עם קבצי wmv צריך להוסיף reference ל - Interop.WMPLib.dll (תוכלו להוריד אותו מכאן, אם אתם לא מוצאים את זה במחשב שלכם) לאחר מכן תוכלו לכתוב את הקוד הבא public class VideoProperties{    public int Width { get; set; }    public int Height { get; set; }    public long Duration { get; set; }    public VideoProperties(string

C# on Youtube

Video clips in english about various topics in C#. These video clips were prepared as part of the "C# Fundamentals" course available for free personal and academic usage at www.abelski.com. Read more: Youtube Posted via email from .NET Info

Objective C Tutorial – An Absolute Beginner’s Guide to iPhone Development

   So you’ve got a Mac, you’ve got an iPhone, and you really want to start writing some apps. There’s tons of documentation available, but the best way to learn a new language and framework is to simply dive right in. All of the documentation and tutorials I ran across when learning to program the iPhone depended a little too much on Interface Builder, which basically sticks a layer of magic

StackVM

StackVM makes virtual machines more accessible, more hackable, more embeddable, and more fun!With StackVM, you'll be able toreach your VMs from any browserembed your VMs in your blog share your VMs with collaboratorsrecord your VM sessionsconnect your VMs with a graphical network editorautomate your VMs with an open APIIn a few months, we'll start rolling out a free private demo. Sign up below

An Absolute Beginner’s Introduction to Database Indexes

Proper indexes on your tables are a crucial part of any Database design that requires advanced data retrieval. For basic databases with only a few dozen records per table, indexes may not be absolutely necessary and even slow things down (if your RDBMS does not automatically ignores the index), but it’s still good practice to design your database with proper indexes from the start if you expect

Linux From Scratch 6.7 is released! A free book that teaches how to build a base Linux OS from scratch, from an existing Linux installation or from a live CD

Linux From Scratch 6.7 is released , This release includes numerous changes to LFS 6.6 (including updates to Linux kernel 2.6.35.4, GCC 4.5.1, glibc 2.12.1) and security fixes. It also includes editorial work on the explanatory material throughout the book, improving both the clarity and accuracy of the text." Other major changes include update to GRUB 1.98, make 3.82, Perl 5.12.1, udev 161 and

The Real Truth About Oracle's 'New' Kernel

Yesterday at OpenWorld, Oracle announced a 'new' Enterprise kernel for its so-called Unbreakable Linux. What's the real truth? The company is simply sticking a 2.6.32-based kernel on top of its re-branded Red Hat Enterprise Linux clone and trying to spin it as a new and innovative development Read more: Slashdot Posted via email from .NET Info

Stored procedures with hibernate

In an earlier post i wrote up an article explaining how to call stored procedures using Spring's StoredProcedureCall template. This i believe is a very clean solution to handle all stored procedure related details. But this article is for those who already use the hibernate template and want to get things done using that without going into much details of using the Spring's StoredProcedureCall.

Download "Xap" Packages on Demand in Silverlight

IntroductionThis article introduces a method to download and use "xap" packages on demand in Silverlight.BackgroundTo run a Silverlight application, browsers need to download the "xap" packages generated by the Silverlight projects. When developing a Silverlight application, developers can put all the "User Controls" and other resources in a single "xap" package. They can also choose to put these

Silverlight TV 46: What's Wrong with my WCF Service?

WCF is an integral part of the communication stack for Silverlight applications, but sometimes things go wrong, very wrong. How do you fix those issues. In this episode of Silverlight TV, Yavor Georgiev from the WCF and Silverlight team shows you how to identfy the problems with your WCF services and how to fix them. He covers several topics including these: Setting up your serviceDebugging

Block IP Addresses to SQL Server using a Logon Trigger

We were testing a scenario and wanted to block SQL Server connection through certain IP addresses. Here’s how we solved the requirement using a Logon TriggerCREATE TRIGGER AllowLocalOnlyON ALL SERVER FOR LOGONASBEGINDECLARE @IP Varchar(500)SET @IP = EVENTDATA().value('(/EVENT_INSTANCE/ClientHost)[1]', 'varchar(500)')IF @IP IN ('172.16.255.11', '172.20.254.1', '172.26.254.12') BEGINPrint 'There I

Obfuscating Silverlight

Obfuscation is the concealment of intended meaning in communication, making communication confusing, intentionally ambiguous, and more difficult to interpret.”Obfuscation has been used in programming for ages helping protect intellectual property! WPF and Silverlight is a little more tricky to obfuscate because of the way XAML work! While searching for a solution I found that Dotfuscator does

Show Child Grid inside Grid in Silverlight

This article describes for you the concept of Data Grid. It shows use a child grid inside of a Data Grid. So here we go. First of all make a new Silverlight project and put a name and save location.Now add a two new classes using Add new Item menu and put a suitable class name.Customers.csAdd a namespace on top of class. using System.Collections.Generic;public class Customers{    ///

Silverlight Enables Massively Multiplayer Gaming

WARSTORY – Europe in Flames is a free-to-play, massively multiplayer strategy game set during World War II. In the game, players command their own allied companies, consisting of powerful combat units and individually specialized heroes. The game allows for dynamic real time battles that demand quick, tactical thinking. At Chimera Entertainment, we developed the game for Bigpoint using Microsoft

Powerpoint to Flash SDK 4.0 released

Convert Microsoft PowerPoint® XP/2003/2007 to Adobe Flash®• Convert PPT files to single SWF files for each slide• Convert a PPT file in a single selfruning Flash presentation without need a player • Converts slides from-to single slides specified by slide Numbers• Converts single slides specified by slide Numbers• Convert different sizes (not longer only the default PowerPoint® size)• Adobe Flash

NEW INTERNET EXPLORER 9 APIS

Internet Explorer 9 Beta 1 introduces some new APIs to make it possible to integrate with the jump lists and icons on the taskbar. To make it easier to use them, I created an even simpler API.To test the API you can browse (with Internet Explorer 9) to this page: http://bit.ly/dhQpEBThe API allows you to see whether the browser supports the API or not. So far, the only browser that supports them

How to create an "unkillable" Windows process

The topic of killing Windows processes has been investigated by developers and users probably from the first day this operating system appeared. Besides the task manager where it is possible to kill (practically) any process, there are a lot of freeware and shareware programs that will do all the dirty job of ending any process you select for you. But what to do if you need to write an "

How to distribute a Silverlight OOB Application?

Table of ContentsIntroductionBackgroundStep1 : Creating a Silverlight OOB ApplicationCreating a ProjectConfiguring OOB SettingsPublishing Application as .XAPStep2 : Configuring CD-ROM Installation Basic to Silverlight OOB InstallationBasic to Silverlight OOB Silent InstallationBasic to HTA FileCreating the Folder StructureConfiguring Silverlight Runtime DetectionConfiguring OOB Application

October 2010 Security Release ISO Image

This DVD5 ISO image file contains the security updates for Windows released on Windows Update on October 12th, 2010. The image does not contain security updates for other Microsoft products. This DVD5 ISO image is intended for administrators that need to download multiple individual language versions of each security update and that do not use an automated solution such as Windows Server Update

Forgotten T-SQL Cheat Sheet

You’ve seen the blog, you’ve downloaded the code…you even watched the 24HOP session recording…now own the Forgotten T-SQL Cheat Sheet!Yessir, this handy-dandy reference sheet includes the Logical Processing Order of SELECT, shorthand for recursive CTEs and MERGE, the famous list-of-details XML trick, and more! And it’s yours, for only $199.99! FREE! Read more: SQL Server Pedia Posted via

Silverlight 4.0 - Calling Secured WCF 4.0 Service hosted with SSL and Self-Signed Certificate

While developing Silverlight 4 (SL 4) Line-of-Business (LOB) applications, it is recommended to use WCF services while dealing with data. However what if that WCF is configured with SSL using self-signed certificates? If it is the case, then there some important configurations recommended to be followed as mentioned below: ·         Use custom binding on the WCF service.·         Enable

TouchToolkit

Project Description:A toolkit to simplify the multi-touch application development and testing complexities. It currently supports WPF and Silverlight.FeaturesA predefined set of common gestures. (i.e. sample gestures) A domain-specific language to define new gestures including multi-step, multi-user, multi-touch scenariosA device independent architecture that allows the application to run on

Create a database backup job using SQL Server Management Studio

SQL Server Management Studio  can be used to create a database backup job to backup an user database. Here are the steps and User interface workflow to create a simple backup job, run the job and view results 1) Create a  demo database and insert sample data using the following script.-- Create Demo DatabaseCREATE DATABASE DemoDBGO USE DemoDBGO-- Create a table CREATE TABLE TestData(id int) GO --

OfficeContent

Project DescriptionOfficeContent is a CodePlex project focused on Office Addins. The project’s owner has a passion for dynamic content assembly and engagement solutions using Word Addins, WPF, Silverlight and SharePoint 2010. Read more: Codeplex Posted via email from .NET Info

Optillect's SQL Decryptor v1.1 released

If you have encrypted an object definition in your database(s) by specifying WITH ENCRYPTION option, and by some reason you cannot restore it's original script, the SQL Decryptor will easily do it for you absolutely FREE. FeaturesSupports all versions and editions of the Microsoft SQL ServerSQL Server 2000, SQL Server 2005, SQL Server 2008, and SQL Server 2008 R2Decrypts all possible object

How Microsoft IT Uses System Center Virtual Machine Manager to Manage the Private Cloud

Real-world scenarios on how Microsoft IT is utilizing System Center Virtual Machine Manager as a key component of its management strategy in support of the virtualized data center.Read more: MS Download Posted via email from .NET Info

WP7 – Page Transitions Sample

Before going into the code, here are some thoughts I have on page transitions and animations on the phone in general:Animations are a key part of the metro experience. With the focus on text and minimal chrome it’s important to add animations to make the UI have some life.  They also “surprise and delight the user” as the Metro marketing material would say. Aside from the visual wonder created by

Integrating Silverlight and ASP.NET MVC

One thing that I’m excited about is learning new technologies.  Moving to the Silverlight team, I’ve moved away from a breadth of technology knowledge to something a bit more narrow.  Now I feel like all other developers trying to keep up with the technologies we are releasing.  As such, I’m a beginner for most.  One such technology is ASP.NET MVC, which was just released to release candidate

How to: Access a Service from Silverlight

This topic describes how to access a service from a Silverlight client by using a proxy. A proxy is a class that helps you access a particular service. The proxy can be generated automatically by using the Add Service Reference tool in Visual Studio 2010, which is the procedure used in this topic, or it can be generated by using the Silverlight Service Model Proxy Generation Tool (SLsvcutil.exe)

Selasa, 12 Oktober 2010

Debugging Polling Duplex on localhost with ipv4.fiddler

This post takes a brief look at the options for capturing localhost HTTP traffic in the superb Fiddler2 tool but in particular demonstrates how this can be achieved using the less-renowned ipv4.fiddler keyword in a Silverlight 2 polling duplex debugging session. HTTP traffic sent to or originating from http://localhost or http://127.0.0.1 by Internet Explorer and the .NET Framework is not

Ubuntu 10.10 Maverick Meerkat is released

Ubuntu 10.10 code name Maverick Meerkat is released, the new release comes with many new features and improvements (See screenshots). you can download the new release of Ubuntu from the link bellow:http://www.ubuntu.com/getubuntu After installation of this new release, for configuration i advice you to visit our previous post : Top things to do after installing Ubuntu 10.10 Maverick MeerkatIf you

Introduction to the Windows Threadpool

I regularly receive feedback that the Win32 Threadpool API is complex and there is a need for better examples. To improve this situation, I decided to create three wrapper C++ classes which provide the following; queuing work items, associating callbacks with events and timer functionality. You can directly use these wrapper classes or look at the source to understand how to use the Threadpool