Kamis, 31 Maret 2011

Add Facebook Like to your Silverlight Application

IntroductionIn this article you will find out what you need to do if you want to add a Facebook Like button to your Silverlight application. If you want to see a Live Example see my XAML blog.Using the codeThe strait forward approach is to add a button to your application and make it look the same as the one on Facebook. Then you need to Facebook authenticate the person that clicked the like

Silverlight, HttpWebRequest, HTTP Stacks and the UI Thread

This one comes from a customer who thought that they were seeing an issue in using the browser HTTP stack in Silverlight to make lots of HTTP requests. The issue seemed to be that the stack was blocking the UI thread and causing the UI to stutter. The suspicion was that the blocking was occurring while data was being read from the stream that is handed back to you when you’re reading an HTTP

MVVM Light - what's the Messenger?

MVVM Light offers a class specific to every ViewModel instance that is used in the context of an application - Messenger. One might ask - what exactly is it and why it is needed? The answer is simple - in a more complex application, ViewModel instances are not standalone entities. Chances are you would like to pass specific data from one model to another, and Messenger is facilitating this

convert Blend4 sketchflow to sl4 application (c#)

After making a nice project prototype you feel the need to use in a real deployment then follow the following steps.back up your project In the Projects panel, right-click the top project folder (e.g. SilverlightPrototype1), and then click Open Folder in Windows Explorer.In Windows Explorer, right-click the .csproj file (for example, SilverlightPrototype1.csproj), click Open With, and then click

BitLocker Drive Encryption Deployment Guide for Windows 7

This document describes the various aspects of deploying BitLocker™ Drive Encryption on computers running Windows® 7 Enterprise or Windows® 7 Ultimate in an organizational environment. This guide is intended for use by a deployment specialist or deployment team. It assumes that you have a good understanding of automated Windows deployment, Active Directory® Domain Services (AD DS) schema

Silverlight: Adding Google Streets View

While in drafting stage this post was originally called “ArcGIS Silverlight API: Adding Google Streets” but the only thing ArcGIS Silverlight API adds to the mix is the extraction of the coordinates from the map. For a regular Silverlight application just pass the coordinates from another source. My team leader asked me to try and add Google Street View to our map (that uses ArcGIS Silverlight

כלי הפיתוח שאתם פשוט חייבים

רגע לפני שאנחנו יוצאים לקרב המכריע רצוי מאוד לוודא שכולם עשו את ההכנות הרצויות, כדי שלא נגלה באמצע הדרך שהמימיות ריקות. גם בעולם פיתוח התוכנה צריך לבצע את ההכנות הללו. אמנם מדי פעם תמצאו חבורה מצומצמת של יוצאי ממר"ם או 8200 שמצליחים לעשות קפיצה קוואנטית ולשנות את התעשייה, אבל גם הם בד"כ הגיעו עם הרגלים ותשתיות מוכנות מהבית. אז מה צריך להכין?Source Control: המקום שבו ישמר הנכס החשוב ביותר שלכם

WPF 4: Using ObjectDataProvider for DataBinding

Windows Presentation Foundation (WPF) has provided many features for developing Data Driven applications. Using the DataBinding feature of WPF, effective data representation can easily be achieved. WPF allows developers to define an instance of the Data Access Object directly in XAML. ObjectDataProvider is one of the effective mechanisms for DataBinding in WPF. We use this provider if the

Skype Challenger Releases Viber 2.0: Free Text Messages And More

Viber Media, the Israeli startup behind the Viber service, which lets iPhone users make free calls to each other, has released version 2.0 of its application in the App Store. The company’s still gearing up for the launch of their Android application, but in the meantime the update to the iPhone app brings a couple of goodies, in particular the ability to text message other Viber users free of

Google tightening control of Android, insisting licensees abide by 'non-fragmentation clauses'?

A storm seems to be brewing over the realm of Android development. Bloomberg's Businessweek spies have received word from "a dozen executives working at key companies in the Android ecosystem" that Google is actively working to gain control and final say over customizations of its popular mobile OS. That might not sound unreasonable, and indeed Google's public position on the matter is that it's

How to send SMS in Windows Phone 7 using C# ?

The developers can make use of the SMSComposeTask launcher to send the SMS in Windows Phone 7 .To send the SMS in Windows Phone 7 using SMSComposeTask by including the namespace Microsoft.Phone.Tasks using Microsoft.Phone.Tasks; The Microsoft.Phone.Tasks namespace includes the classes necessary for all the Launcher and Chooser tasks .Now , create the instance of the SMSComposerTask and set its “

Itsy-OS Kernel: Premptive Switcher & Memory Manager

Itsy-OS v0.1 is a small 8086 operating system kernel providing two basic services: a simple preemptive task switcher and memory management. If necessary, simple IPC and task management can be added to provide the features of a traditional microkernel. Weighing in at about 380 bytes, Itsy should port well to tiny architectures.Memory Control BlocksEach block of memory is preceded by a memory

Why startups don't use .net

There have been several articles over the last couple of weeks about the usefulness of .net for startups. I will mention three: * Did the Microsoft stack kill MySpace?* Why we don't hire .net programmers* Why Microsoft could kill your startup careerEven though our company is now several years old, our HQ is still located in an office facility that is mainly for startups. Well over the time we

Android HTTP Camera Live Preview Tutorial

The Android SDK includes a Camera class that is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video. It is a handy abstraction of the real hardware device. However, the SDK doesn't provide any camera emulation, something that makes testing camera enabled applications quite difficult. In this tutorial, I am going to show you how to use

How I store Enumerations in the Database

One of the things I come across in databases now and then is a collection of single tables with a name like "MessageType". You have a look in them and it turns out to have 6 or so rows with no foreign key relationships. Every single time it turns out to be someone had the idea to store an Enumeration (Enum) type in the database. Not a bad idea as it turns out since you can add sort options, soft

Use Python to write plug-ins for GIMP

This article is about using GIMP-Python, which is a set of Python modules that allow you to do programming in Python to automate commands in GNU Image Manipulation Program (GIMP). These Python modules are wrappers around the libgimp libraries. GIMP-Python is different from the Script-Fu extensions. In Script-Fu, a plug-in is used to execute scripts. In GIMP-Python, the Python script takes center

Building WPF and Silverlight Applications with a Single Code Base Using Prism

ContentsIntroduction Creating a Silverlight Version of Prism Creating Project Linker Test-Driven Development on Silverlight Architecting Your Application for Multi-Targeting Identifying What Can Easily be Multi-Targeted Separated Presentation Building Platform-Specific Services Avoid Inconsistencies and Try to Keep a Single Code Base Accommodate for Different Platform Capabilities Conditional

OpenSSH-LPK

The OpenSSH LDAP Public Key patch provides an easy way of centralizing strong user authentication by using an LDAP server for retrieving public keys instead of ~/.ssh/authorized_keys. Read more: Google code Posted via email from Jasper-net

Rabu, 30 Maret 2011

How can I debug WPF bindings?

Data Binding can be tricky to debug. In this post, I will share the techniques I use to debug WPF bindings, including the new debugging improvements we implemented in the latest 3.5 release. I will discuss the following four techniques: Scanning Visual Studio’s Output window for errors.Using Trace Sources for maximum control.Using the new property introduced in WPF 3.5

Thread safe observable collection

If you ever wrote something more, then standard UI input-output, you sure got into wide range of exceptions like “The calling thread cannot access this object because a different thread owns it” or “This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread”. What the problem? The problem is old like condom in my wallet

Why should I use ObjectDataProvider?

There are many ways to instantiate an object that will be used as the data source for bindings. I have seen many people create the object in code and set the DataContext of the Window to that instance, which is a good way to do this. You may have noticed that I have been adding the source object to the Window’s Resource Dictionary in most of my previous posts, which works well too. We have an

StaticResource, DynamicResource, x:Static – what’s all this about?

So, you know to write very complicated things in XAML code, but, really, do you know what’s the difference between static and dynamic resource? Do you know what’s really x:Static means? We’ll try today to understand differences and things we can do with this stuff. All those are markup extensions. Let’s start from the very beginning – MSDN A markup extension can be implemented to provide values

15 Must Know Java Interview Questions After 2 Years of Experience

Interview Questions that every developer should have the answerEnterprise Java Application development is growing every day and new features being introduced but the the beginners have always start from the basics. The questions listed below are what in general a Java developer should be able to answer after 2 years of experience. (Assuming no prior exposure to Java) Core Java1) What is the

Advanced Animation: Animating 15,000 Visuals in Silverlight

In my last post I showed a quick summary of a graphic-intensive dashboard that I helped out with.  I also mentioned that there are a lot of posts out there dogging SL and WPF rendering performance.  But if we get creative with some of the built-in controls SL has to offer we can get some pretty good drawing perf.  I wanted to elaborate on some of the techniques I used to eek-out every bit of perf

How to create your first SQL Server Integration Services (SSIS) package part-1

Table of Contents Introduction What is SSIS package?Features SSIS Import/Export Wizard Creating or maintaining SSIS packagesFeatures of the data flow taskHow to create a simple SSIS package ReferencesConclusionHistory Introduction SQL Server Integration Services (SSIS) is an excellent component with some great features of Microsoft SQL Server 2005 & 2008 edition as well. Today’s business are

Enabling dynamic compression (gzip, deflate) for WCF Data Feeds, OData and other custom services in IIS7

I'm working on a thing that uses an HttpWebRequest to talk to a backend WCF Data Service and it'd be ideal if the traffic was using HTTP Compression (gzip, deflate, etc). On the client side, it's easy to just add code like thisrequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate or more manuallyvar request = HttpWebRequest.Create("http://foofoo");

Fallout Mod Studio - A new mod manager for Fallout 3 and Fallout: New Vegas

Project DescriptionFOMS provides a simple, graphical, and highly useful approach to installing and managing modifications for Fallout 3 and Fallout New Vegas. It utilizes XML templates to quickly sort mods, and offer solutions to missing dependencies, conflicting mods, missing patches, and more.Read more: Codeplex Posted via email from Jasper-net

Protocol Buffers and WCF

WCF performance has many aspects. In the previous series I explored how using GZip/Deflate compression can increase performance in areas with low network latency. However, the penalty is that the CPU utilization is much higher. Therefore, it does not apply to many people's situations. Instead of compressing messages after they are built, it would be better if we could build smaller messages.

Walkthrough: Creating a Custom Installer for a ClickOnce Application

Visual Studio 2010Any ClickOnce application based on an .exe file can be silently installed and updated by a custom installer. A custom installer can implement custom user experience during installation, including custom dialog boxes for security and maintenance operations. To perform installation operations, the custom installer uses the InPlaceHostingManager class. This walkthrough demonstrates

Where do I put my data to keep it safe from ClickOnce updates?

Sometimes you want to include a file with your ClickOnce application and then update it using input from your customer. Or about your customer. Or about what your customer is doing with your application. (“You say you didn’t hit the delete button, but according to the log file, you hit it exactly 47 minutes ago.”) To include the file in your deployment, add it to your project, and set the

Senin, 28 Maret 2011

‫ביטול HTTPS במדינות רגישות

במהלך הימים האחרונים התרחשה סאגה לא פשוטה בכלל סביב סוגיית האבטחה של שירות הדואר של חברת מיקרוסופט, הוטמייל . מסתבר שלפני מספר ימים בוטלה האפשרות של משתמשים במדינות מסוימות, שבמקרה יש להן מספר מכנים משותפים, להשתמש בפרוטוקול HTTPS כאשר הם מתחברים לחשבון ה-HOTMAIL שלהם. לכאורה, זה נראה כמו מהלך מכוון של מיקרוסופט, במטרה לתמוך באותן מדינות או להקל על גופי הביון לרגל אחרי התושבים. האמת, כמו במקרים

Ubuntu Software Center to offer install-free application test drives

Sure, installing and removing applications in Ubuntu is a breeze -- tools like Synaptic, apt-get, and the Ubuntu Software Center are all very easy to use. Canonical thinks there's room for improvement, however, and it's delivering an interesting new feature to the Software Center: application test drives. Find a program you'd like to try out -- but don't necessarily want to install just yet --

How To Fix Battery Drain Issue On A Rooted Android Device

On several Android forums around the web, Android users have been regularly reporting rapidly draining batteries after flashing custom ROMs (such as Cyanogenmod 7) to their devices. In what follows, we will provide you with a step-by-step solution to said problem. The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory. Every

Android SDK: Segmentation fault with dexdump / dexDecodeDebugInfo

Hi,the dexdump tool, bundled with Android SDK was identified toperform suspicious write accesses in the  dexDecodeDebugInfo function, as defined in dalvik/libdex/DexFile.c.The structural parser in dexdump failed to properly parse debug infosuch as code position info, with indications of code execution.  This could potentially be misused by remote attackers, tricking users intoopening apk/

How to work with the Silverlight BusyIndicator?

Silverlight BusyIndicator is not a new thing in Silverlight. It was first added in Silverlight 3 Toolkit in November 2009 release (if I am not wrong). In this post I will describe about this for those who wants to know about it. So, What is this Busy Indicator? Busy indicator is a tool which you can add in your Silverlight application to show a loading indication to your user while saving some

Visual C# 2010 Samples

Visual C# 2010 SamplesThe Visual Studio 2010 RTM Samples are now live!Samples and documents for C# 4.0 can be found on the Downloads page. The CSharpDynamic samples include several projects showing how to use Dynamic with Office, IronPython and other technologies. There is also a covariance and contravariance example, and an example show how to use the new IDynamicObject interface to create

Certificate Validation Callbacks in Indigo

A while back I hinted that there was another way to get solve the certificate problem when using the Https security mode in Indigo. It turns out that it's possible to register a System.Net.Security.RemoteCertificateValidationCallback event handler on the client to do custom validation of the certificate provided by the service. This gave me the hook I needed to check whether the provided

Writing Windows Shell Extension with .NET Framework 4 (C#, VB.NET) - Part 4: Context Menu Handler with Menu-item Bitmaps

In "Writing Windows Shell Extension with .NET Framework 4 (C#, VB.NET) - Part 1: Context Menu Handler", we introduced how to write Windows shell context menu handler using .NET 4: Lots of developers have this follow-up question: how can I add bitmap icons to those context menu items?  Here you are the directly working code samples from Microsoft All-In-One Code Framework!Sample download: C#,

How to create a Visual Studio add-in that launches from the Project window

IntroductionWithin Visual Studio 2010, there are two main ways to install add-ons that allow you to make modifications to a Visual Studio project. The first way is to use Visual Studio templates. Templates are a great way to duplicate work that you would commonly need to do such as add license information to the top of every class. Another way is to use add-ins. Add-ins typically run from the

HTTPS and Keep-Alive Connections

As we explore network performance on the “real-world web”, one bad pattern in particular keeps recurring, and it’s not something that our many IE9 Networking Performance Improvements alone will resolve. The bad pattern is the use of Connection: close semantics for HTTPS connections. In this bad pattern, a website allows only a single request and response on every HTTPS connection before closing

Microsoft Germany and Stereolize presents 234″ of interactive touch-screen goodness

Size doesn’t matter, unless you’re at a trade show. To prove this point, earlier this month at the annual CeBIT Germany technology fair, Microsoft Germany and long-time partner Stereolize, who specializes in elaborate interactive presentations, had an interactive screen that would even make Minority Report jealous. In what can only be described as an XXXXL-iPad, the “Microsoft Cinema” is not

Using BCrypt in a .NET Application – Why it’s better than SHA or MD5.

You guys know that I’m not a cryptography expert. In fact, I didn’t use hashing and salting well until my second year as a programmer during college. It’s recently come to my attention that using MD5 or SHA as your hashing methods is not good enough.While it does its job at hashing data, the problem is that it’s just too fast. A determined computer hacker with enough horsepower (machines) can

Hardware Accelerated Video Playback in Moonlight

David Reveman has just completed a series of optimizations in the Moonlight engine that allows Moonlight to take advantage of your GPU for the data intensive video rendering operations. This is in addition to the standard GPU hardware acceleration that we debuted a few weeks ago. This is what the video rendering loop looks like in Moonlight: Every one of those steps is an expensive process as it

Console Application to discover Effective Named Pipe Path of a WCF net.pipe Endpoint

As I have promised in my previous post, I am making available a C++ console application to troubleshoot named pipes endpoints in WCF. Below is a screenshot of the application: Application logic:It gets the endpoint from the command line and substitute the host name by +, * depending on the wildcard mode. It then add a “/” to the end if not present already and transform to up case all characters

WCF Extensibility - IServiceBehavior

This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page. The first behavior covered in this series is the IServiceBehavior. It can be used to inspect or change the entire service description and runtime. For example, to collect information about all endpoints in the service, to apply some common behavior to all

WCF Extensibility – Behaviors

This post is part of a series about WCF extensibility points. For a list of all previous posts and planned future ones, go to the index page. The first part of this series will focus on the behaviors. There are four kinds of behaviors, depending on the scope to which they apply: service, endpoint, contract and operation behaviors. The behavior interfaces are the main entry points for almost all

My first Screencast Series covering Windows Touch in C++/Win32 is Live!

A few months ago, I worked on some very simple samples that demonstrate how to program Windows touch applications in Win32 using GDI for drawing and C++ as the underlying programming language.  C++ Source code accompanying the Windows Touch Screencasts is available on code gallery.  Appologies for the video not properly embedding, the embed code on the MSDN video player seems to have a bug in it.

Improving CLRProfiler 2: 19.7% in TryGetValue

Playing with Visual Studio 2010 profiler data Function Code View finds another easy target for improvement: 19.7% in calling TryGetValue on a Dictionary object: This piece of code is called in 'c' command process for logged method call information. There are just millions of method calls in the profile we're testing with. The code uses Dictionary::TryGetValue to see if a thread has unprocessed

Minggu, 27 Maret 2011

Memory-Mapped Files

A memory-mapped file contains the contents of a file in virtual memory. This mapping between a file and memory space enables an application, including multiple processes, to modify the file by reading and writing directly to the memory. Starting with the .NET Framework version 4, you can use managed code to access memory-mapped files in the same way that native Windows functions access

Open Window, Dialog or Message Box from a ViewModel – part 1

Saying that a view-model belongs to the Application layer, and the Application layer doesn't references upper layers, and must not create or use visual objects, how can I open a Window, Dialog or any kind of Message Box on-the-fly, based on some logic triggered by the view or view-model? Well, there are several options doing that, one is using kind of service which encapsulates that, providing an

Task Parallel Library Ported to Silverlight 4

Long time readers will recall that I’ve done some oddball parallel articles over the years.  I recently decided to challenge myself with porting the Task Parallel Library to Silverlight 4.  The port is complete and all unit tests pass.  I’m still profiling but I’m generally encouraged by the results. Why?A fair question.  Why do I need libraries for making it easier to write multithreaded code in

10 Tips to Secure Your Apache Web Server on UNIX / Linux

If you are a sysadmin, you should secure your Apache web server by following the 10 tips mentioned in this article.1. Disable unnecessary modules If you are planning to install apache from source, you should disable the following modules. If you do ./configure –help, you’ll see all available modules that you can disable/enable. userdir – Mapping of requests to user-specific directories. i.e ~

IIS Express Easy Launcher

Project DescriptionIIS express launcher looks at the directory where it is launched, for a iisexpress.config file, and start iis express with it. For easy access, can IIS Express Launcher be executed, from the context menu, when used on a directory.If the IIS Express Launcher cant find an config, it creates it from a standard config, found in iis express install directory. Read more: Codeplex

Jeff Wilcox’s “Metro” design guide for developers, v1.00

Let’s make our Windows Phone apps look great, ok?I am not a designer. I am not a developer-designer. I am a developer and spend my days coding. But I love the concept of “metro” design and believe that it has the potential to bring a beautiful story to Windows Phone, and potentially millions of people. This is Microsoft moving beyond battleship grey buttons for its developer base, and all we need

Sharing data in .Net 4 (Let’s make our life easier!)

Sharing large volumes of data between .Net processes running in a single machine has lacked true enterprise-level support from the core CLR and foundation classes for a long time. Since .Net 1.x there have been several solutions which fell short of perfect for different reasons. Using available .Net IPC features such as Remoting, IP sockets or Message Queues lacked the performance required to

WPF databinding trick (part 1)

The last week, one of my colleague was doing a WPF training session and she ended up having a very strange behavior with the WPF databinding engine. I’ll describe a not well-known behavior of the WPF databinding engine and I’ll try to explain how its works under the scene. Binding the Text property of a TextBlock to a collection of objectsThis is something you’re not supposed to do, but you’ll

Working with TypeDescriptor in C#

TypeDescriptor is a static sealed class which makes the starting point of the API. It exposes information of the object in terms of Properties, Attributes, Events etc in such a way that it could easily be managed and/or consumed. Even though the basic usage of TypeDescriptor is to get metadata of an object, yet it also exposes features to extend the object on the fly. Let us now discuss few

Getting Lazy with .NET 4.0

.NET 2010 comes with lots of new features. Some relates to Technology while other relates to language enhancements. The huge class library that is there with .NET framework is also enriched with new classes. In .NET 4.0 there is a new set of classes which introduces a new concept called Lazy initializes. In this article I am going to discuss how simply you can use Lazy initialize to defer the

31 Days of SSIS – The Introduction

Since I’ve been working on an SQL Server Integration Services (SSIS) project over the last six months, I thought I would blog a little about some of the tips and tricks and solutions that I’ve worked through with this project and other SSIS projects I’ve worked on.  This isn’t intended as training for learning how to use SSIS.  The intent is to help prevent some of the same difficulties that I’ve

PostgreSQL Row Storage Fundamentals

I answered a question a few days ago on Stack Overflow about PostgreSQL & SQL Server btree storage fundamentals. After I answered the question, I started thinking more and more about how PostgreSQL stores data on the row. Rather than be content to live in ignorance, I went digging through PostgreSQL’s source code and some hex dumps to find out what was going on inside a row. Getting StartedTo get

Android to unlock in-app purchase system

Google smartphone devs can soon thrive from free-to-playGoogle will next week introduce in-app purchasing on its Android operating system, the company has said. Android Market In-app Billing will allow developers to sell virtual items within games. Google smartphone users will be able to purchase the likes of custom avatar clothing, virtual weapons and extra levels. Crucially for developers, the

How to update "Run only specified windows applications" GPO programmatically (VBScript)

Hi all, A customer of mine had to add a list of thousands of applications to the "Run only specified windows applications" GPO on his Windows Server 2008. And obviously he wanted to automate this task to avoid adding them manually one at a time.  So I went the easy way and created the following VBscript that simulates a user entering the application names on the "List of allowed applications" in

Introducing the Kinect WPF Toolkit

Kinect is fun. Kinect is new. Kinect is awesome. However, doing anything in Kinect right now requires developer work – and even with the available building blocks to rely on, for a developer to get up to speed takes a long time. This means that interaction designers cannot do Kinect development without a top-notch developer, and developers are needed even to finetune gesture settings (tolerance,

Anatomy of a .NET Assembly - Methods

Any close look at the method definitions in a .NET assembly has to start off with the method's information in the metadata tables - the MethodDef. So lets do that. MethodDefThe MethodDef entry for the entrypoint method in my TinyAssembly example used in previous posts has the following bytes:D0 20 00 00 00 00 91 00 47 00 0A 00 01 00 According to the CLR spec, the row is interpreted as follows:D0

WCF How To’s Index

This is index of available How-To’s for Windows Communication Foundation (WCF) distilled from the WCF Documentation available on MSDN. Topics covered: Getting Started How to: Define a Windows Communication Foundation Service Contract How to: Implement a Windows Communication Foundation Service Contract How to: Host and Run a Basic Windows Communication Foundation Service How to: Create a Windows

How do I monitor, or even control, the lifetime of an Explorer window?

A customer wanted help with monitoring the lifetime of an Explorer window.We want to launch a copy of Explorer to open a specific folder, then wait until the user closes the folder before continuing. We tried launching a copy of Explorer with the folder on the command line, then doing a Wait­For­Single­Object on the process handle, but the wait sometimes completes immediately without waiting. How

Don't just give your disk images/ISO's drive letters, RAM disk'em too...

Many free disc mounting programs provide multitude of options for mounting and managing disc images. Many of these programs have quite similar features and it is not often that one comes across a software that can take the edge from its competitors by providing a unique feature. OSFMount is an application that allows mounting disc images on not just virtual drives but also into the RAM. This

Capturing HTTP traffic on SSL enabled sites

BackgroundOn number of occasions there arises a need to capture HTTP traffic. In dev environments, this is usually accomplished using tools like NetMon or Wireshark Issue arises when we have a need to capture HTTP traffic which is enabled with SSLWithout the ability to capture SSL traffic, one usually has to disable SSL, capture traffic and then enable SSL  RequirementCapture SSL HTTP traffic via

Kamis, 24 Maret 2011

Everything You Need To Know To Start Programming 64-Bit Windows Systems

One of the pleasures of working on the bleeding edge of Windows® is poking around in a new technology to see how it works. I don't really feel comfortable with an operating system until I have a little under-the-hood knowledge. So when the 64-bit editions of Windows XP and Windows Server™ 2003 appeared on the scene, I was all over them. The nice thing about Win64 and the x64 CPU architecture is

Silverlight Tip of the Day #15 – Communicating between JavaScript & Silverlight

Communicating between Javascript and Silverlight is, fortunately, relatively straight forward. The following sample demonstrates how to make the call both ways. Calling Silverlight From Java script:In the constructor of your Silverlight app, make a call to RegisterScriptableObject().This call essentially registers a managed object for scriptable access by JavaScript code. The first parameter is

How to run WPF - XBAP as Full Trust Application

Recently I work on WPF-XBAP application that will run from intranet website: This application must have unrestricted access to client's OS resources (that is unusual for XBAP projects): I publish it on local website by using "Click-Once" deployment mechanism: User can launch the application from deployment page (also can run application setup):I get security error ("User has refused to grant

Accessing Web Services in Silverlight

SilverlightSilverlight version 4 client applications run in the browser and often need to access data from a variety of external sources. A typical example involves accessing data from a database on a back-end server and displaying it in a Silverlight user interface. Another common scenario is to update data on a back-end service through a Silverlight user interface that posts to that service.

Accessing the ASP.NET Authentication, Profile and Role Service in Silverlight

In ASP.NET 2.0, we introduced a very powerful set of application services in ASP.NET (Membership, Roles and profile).  In 3.5 we created a client library for accessing them from Ajax and .NET Clients and exposed them via WCF web services.    For more information on the base level ASP.NET appservices that this walk through is based on, please see Stefan Schackow excellent book Professional ASP.NET

How to: Use the ASP.NET Authentication Service to Log In Through Silverlight Applications

SilverlightThis topic describes how to authenticate the end users of your Silverlight-based ASP.NET Web site when you want to create a rich user log-in experience by using the full graphical power of Silverlight, instead of relying on an HTML-based mechanism, such as the ASP.NET Login Control. You can do this by using the ASP.NET Authentication service. For information about using this service,

Rabu, 23 Maret 2011

Google Engineer Releases Open Source Bitcoin Client

   A Google engineer has released an open source Java client for the Bitcoin peer-to-peer currency system, simply called BitcoinJ. Bitcoin is an Internet currency that uses a P2P architecture for processing transactions, avoiding the need for a central bank or payment system. Cio.com.au also has an interview with Gavin Andresen, the technical lead of the Bitcoin virtual currency system. Read more

Augmenting your 3DS reality just got a little simpler thanks to an Android app

Before we proceed any further, you owe it to yourself to check out our 3DS review or the video after the break in order to fully comprehend what Nintendo's augmented reality cards mean for 3DS gaming. We'll wait right here, take your time. Now that everyone's fully up to speed, an enterprising dev has put together an app that includes all of Ninty's add-in cards for its soon-to-be-launched

YouTube Video Editor gets impressive stabilization and 3D Video Creator

Google has just updated its cloud-based YouTube video editor to include the fruits of its recent purchase, plus a bit of 3D thrown in for good measure. The in-browser editor can now dramatically reduce camera shake using technology acquired from Green Parrot Pictures. It works by charting the best camera path for you, as if you were using a dolly or tripod, using a 'unified optimization

Microsoft's working on WGX, the future of PC gaming

The video showcases the Windows Gaming Experience, or WGX for short, and touches upon four main areas, including Social, Identity, Search and Transaction, explaining how they work in a very Kinect kind of way. For those of you who are unfamiliar, WGX is an internal Microsoft team comprised of all gaming-related endeavors between all of Microsoft’s platforms. Though the video is from 2010, this is

Catel - WPF, Silverlight and WP7 MVVM library

Project DescriptionCatel is more than just an MVVM framework. It also includes user controls and lots of enterprise library classes. The MVVM framework differs itself from other frameworks of the simplicity and solves the "nested user control" problem with dynamic viewmodels for user controls. We are currently investigating support for Windows Phone 7. So far, it looks very promising. If you have

ideone

Briefly about ideoneideone.com is a... pastebin. But a pastebin like no other on the Internet. More accurate expression would be online mini IDE and debugging tool. Ideone is an Italian word for great ideas - because ideone.com is a place where your greatest ideas can spring to life.ideone.com is designed mostly for programmers (but, of course, common plain text can also be uploaded). You can use

The day made of glass - Future of communication

Can you imagine organizing your daily schedule with a few touches on your bathroom mirror? Chatting with far-away relatives through interactive video on your kitchen counter? Reading a classic novel on a whisper-thin piece of flexible glass? Corning is not only imagining those scenarios – the company is engaged in research that could bring them alive in the not-too-distant future. You can get a

Why is there the message '!Do not use this registry key' in the registry?

Under Software\Microsoft\Windows\Current­Version\Explorer\Shell Folders, there is a message to registry snoopers: The first value is called "!Do not use this registry key" and the associated data is the message "Use the SH­Get­Folder­Path or SH­Get­Known­Folder­Path function instead." I added that message.The long and sad story of the Shell Folders key explains that the registry key exists only

C++Ox: The Dawning of a New Standard

It's been 10 years since the first ISO C++ standard, and 2009 will bring us the second. The new standard will support multithreading, with a new thread library. Find out how this will improve porting code, and reduce the number of APIs and syntaxes you use. In this special report, Internet.com delves into the new features being discussed by the standards team. Learn how these new features will

A simple way to run C# code from bat file

I read an interested article demonstrated how to run a bat file with embedded C# code. I repost this example here, because the original post is written in Russian. Despite the fact that there are other more powerful solutions and frameworks to achieve the same goal (e.g. Powershell) – I think the way presented by the author, is very useful for different scenarios. /*@echo off && clsset WinDirNet=

IIS7 Native API (C++) Starter Kit

OverviewTo extend the server, IIS7 provides a new (C++) native core server API, which replaces the ISAPI filter and extension API from previous IIS releases. The new API features object-oriented development with an intuitive object model, provides more control over request processing, and uses simpler design patterns to help you write robust code. NOTE: The IIS7 native (C++) server API is

"Cool" button creation in Expression Blend Tutorial

In this article we will look at some of the ways to create “cool” or gel buttons in Expression Blend. If you look at the default look and feel of a WPF button in Expression Blend or Visual Studio, you will notice that it doesn’t look “cool”. It’s still that dinosaur chrome looking button control, whereas Expression Blend and Windows Presentation Foundation (WPF) are not just about functionality

Named Pipes in WCF are named but not by you (and how to find the actual windows object name)

If Windows Communication Foundation (WCF) implementation has its own idiosyncrasies, named pipes provider is the champion. First, let’s start with the name of the provider. Named Pipes in Windows can be used to communicate between process on the same machine or between different machines across a network. WCF only implements the on-machine part of it. Named Pipes name has the format \\ServeName\

Loading Assemblies off Network Drives

.NET 4.0 introduces some nice changes that makes it easier to run .NET EXE type applications directly off network drives. Specifically the default behavior – that has caused immense amount of pain – in previous versions that refused to load assemblies from remote network shares unless CAS policy was adjusted, has been dropped and .NET EXE’s now behave more like standard Win32 applications that

Debugging WPF and Silverlight Binding Errors In Visual Studio

Recently I was working with a Microsoft Silverlight project, debugging a XAML binding error. After a few hours of searching, I found a blog describing how to alter the WPF Trace Settings to enable a more verbose output while debugging. After changing the trace level, you will see a more detailed output in the Debugger Output Window. Below is is a screenshot of the how to enable the proper

Detecting Certificate Authority compromises and web browser collusion

The Tor Project has long understood that the certification authority (CA) model of trust on the internet is susceptible to various methods of compromise. Without strong anonymity, the ability to perform targeted attacks with the blessing of a CA key is serious. In the past, I’ve worked on attacks relating to SSL/TLS trust models and for quite some time, I’ve hunted for evidence of non-academic CA

Revocation doesn't work (18 Mar 2011)

When an HTTPS certificate is issued, it's typically valid for a year or two. But what if something bad happens? What if the site loses control of its key? In that case you would really need a way to invalidate a certificate before it expires and that's what revocation does. Certificates contain instructions for how to find out whether they are revoked and clients should check this before

Hacker Spies Hit Security Firm RSA

Top security firm RSA Security revealed on Thursday that it’s been the victim of an “extremely sophisticated” hack. The company said in a note posted on its website that the intruders succeeded in stealing information related to the company’s SecurID two-factor authentication products. SecurID adds an extra layer of protection to a login process by requiring users to enter a secret code number

The architecture of VLC media framework

VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols. Technically it is a software package that handles media on a computer and through a network. It offers an intuitive API and a modular architecture to easily add support for new codecs, container formats and transmission

Synchronization Contexts in WCF

One of the more useful features of the Windows® Communication Foundation (WCF) is its reliance on the Microsoft® .NET Framework synchronization context to marshal calls to the service instance (or to a callback object). This mechanism provides for both productivity-oriented development and for powerful extensibility. In this column, I describe briefly what synchronization contexts are and how WCF

WCF Service InstanceContextMode and ConcurrencyMode combinations

What does the InstanceContextMode and ConcurrencyMode attributes in a wcf service do?A short MSDN description of this describes it as follows: “A session is a correlation of all messages sent between two endpoints. Instancing refers to controlling the lifetime of user-defined service objects and their related InstanceContext objects. Concurrency is the term given to the control of the number of

IKVM.Reflection Update

Missing MembersTo support mcs I previously added some limited support for missing members. This has now been extended substantially to allow full fidelity reading/writing of assemblies. Normally IKVM.Reflection behaves like System.Reflection in how it tries to resolve member and assembly references, but now it is possible to customize this to enable reading a module without resolving any

Selasa, 22 Maret 2011

Stored Procedure Definitions and Permissions

I wrote a post a while back that showed how you can grant execute permission ‘carte blanche’ for a database role in SQL Server. You can read that post here. This post is going to build on that concept of using database roles for groups of users and allocation permissions to the role. I recently had a situation where a tester wanted permission, for themselves and the rest of the testing team, to

Daily Chrome OS Builds for VMWare and VirtualBox Now Available

Hexxeh has now made available for everyone daily Chrome OS builds that can be used in VM. He has created both VMWare and VirtualBox versions of his Chrome OS Vanilla, which are snapshot builds of Chromium OS that the Chromium Team works on developing every day. If you’ve been frustrated because you did not get a Cr-48 or you could not get Chrome OS Vanilla to work on your own PC for hardware

Understanding the Role of Commanding in Silverlight 4 Applications

I’ve had the opportunity to give a lot of presentations on the Model-View-ViewModel (MVVM) lately both publicly and internally for companies and wanted to put together a post that covers some of the frequent questions I get on commanding.  MVVM relies on 4 main pillars of technology including Silverlight data binding, ViewModel classes, messaging and commanding. Although Silverlight 4 provides

A Silverlight Resizable TextBlock (and other resizable things)

In this blog post I present a simple attached behaviour that uses a Thumb control within a Popup to adorn any UI element so that the user can re-size it. A simple feature that has become quite popular on the web is to attache a small handle to text areas so that the user can resize them, this is useful if a user wants to add a large piece of text to a small comment form for example. Interestingly

New XML Standard for Super-Fast, Lightweight Applications Announced by W3C

From embedded sensors to high-frequency stock trading to everyday mobile Web applications, the race is on for technologists to build the most efficient systems for quickly streaming large sets of data from one device to another. Sometimes the language that data is communicated in can come with high costs in terms of efficiency. Today the Web's most venerable standards body, the Word Wide Web

6 Tips for Turbocharging Your Unit Testing

Who doesn't love making software run even better? Turbocharging, if you will. Here are Typemock developer's six tips for turbocharging Isolator. Need to simulate a fault? Just use Isolate.WhenCalled(...).WillThrow(new Exception()) with any method!Isolate.WhenCalled(...) uses Behavior Sequencing - use multiple expectations in sequence Isolate.Swap.AllInstances() affects both existing and future

Silverlight TV 65: 3D Graphics

Do 3D and graphics get you going? The folks at Archetype created an amazing 3D application that we first showed in the keynote at the Silverlight Firestarter in December, 2010. In this episode, Danny Riddell, CEO of Archetype, joins John to discuss their recent work with Silverlight 5, 3D, and graphics. Watch as Danny dives into how they built the 3D medical application and takes John through a

Using Query Classes With NHibernate

Even when using an ORM, such as NHibernate, the developer still has to decide how to perform queries. The simplest strategy is to get access to an ISession and directly perform a query whenever you need data. The problem is that doing so spreads query logic throughout the entire application – a clear violation of the Single Responsibility Principle. A more advanced strategy is to use Eric Evan’s

Consume a Web Service in an Android application with C# MonoAnDroid application

Description:In this application I will describe how to consume a web service in your MonoDroid application using VS 2010. (MonoDroid will not work in VS 2010 Express edition). To install MonoDroid navigate to http://mono-android.net/Installation. Follow the instructions and download all the necessary files. In the Figure 1. I have created a new MonoDroid application named

Wrapping a not thread safe object

Introduction    A colleague came to me with a question the answer for seemed very straight forward, yet an implementation took us more than a few minutes. The question was: I have a legacy object which is not thread safe, and all its methods, by its nature, synchronous. It was originally written to run on GUI thread in client application. Later on, this object had to be moved to server where it

Handling WP7 orientation changes via Visual States

It is pretty well known that an app can be notified of the phone’s orientation changes via the PhoneApplicationFrame.OrientationChanged event. However, if you are as serious about sharing the work between the designer and the developer as I am, you will not be happy with this – the changing of the layout should be the responsibility of the designer, not the developer. Of course, the best way to

Crytek to release UDK alternative

Co-founder Yerli ponders releasing engine for free; talks up mobile futureCryEngine 3 vendor Crytek is planning the release of an indie-friendly SDK, the firm has told Develop. Crytek co-founder Anvi Yerli said his firm already “has a business model in mind” for the CryEngine software development kit.“It will be extremely user-friendly,” he said. “The barriers for entry will be very low, and

Compressing messages in WCF part two - Expanding the GZipMessageEncoder and fixing another bug

The GZipMessageEncoder is a great sample for learning about MessageEncoders in general. In this post, I will expand the GZipMessageEncoder to do both GZip and Deflate compression. This will accomplish two things: (1) explain various pieces of a MessageEncoder and (2) set a groundwork for future posts. Since the MessageEncoder will now support both GZip and Deflate, it would be a good idea to

Figuring out why my SVCHOST.EXE is at 100% CPU without complicated tools in Windows 7

The SvcHost.exe process hosts services that run in the background on Windows. It's literally "Service Host." You may have a dozen services or more running inside that process. More complex is that you'll sometimes see multiple SvcHost.exe's in your TaskManager.  Let me tell you now, Task Manager will not save you. You can see the PIDs for a running Service for the Services tab, but when a service

IE 9 Bug Not All Links are Right Clickable

Since yesterday I've been using IE 9 most of the time so I can find out if there are any issues in mojoPortal skins and functionality related to using the new version. I use the right click on the mouse all the time for opening links in a new tab, and I began to notice that some links do not show me options for opening the link when I right click it. It seems as if it has no context as being a

Delay Binding Updates within a certain Context

This came up on Twitter today and since I have a solution that's been working well for me I opted to share. When making a series of data changes that will update Bindings, How can you keep a WPF/Silverlight UI from reflecting any of these changes until you're all done?  In other words, we need the ability to treat a series of Property changes as a single unit of work. While this works better with

Beginner’s Guide for Programming in C# - Hebrew

I've recently published a series of posts in Hebrew on the great site www.webmaster.org.il. The posts can be used as a beginner's guide for programming in C#. Following are the links for the different posts: C# Guide - Part 01 – Installation  C# Guide - Part 02 - First Program C# Guide - Part 03 - Input Output  C# Guide - Part 04 - Basic Variables C# Guide - Part 05 - Arithmetic Operators  C#

New version of StyleCop released

4.5 Preview was released today. The download is at http://stylecop.codeplex.com/releases/view/62209 I recommend the use of Style Cop to all C# developers.I quote the download page:This release currently contains 89 bug fixes since the 4.4 RTW release and includes 4 new rules. SA1125 - UseShorthandForNullableTypesSA1411 - AttributeConstructorMustNotUseUnnecessaryParenthesisSA1517 -

NHibernate and default constructors

One of the first things you learn about NHibernate is that in order for it to be able construct your instances and take advantage of lazy loading every persistent class must have  the default, parameterless constructor. This leads to having entities looking like this (standard blog with posts and comments example). public class Post{    private readonly IList comments = new List

How does the C runtime know whether to use the static-linking or dynamic-linking version of the header file?

In response to a description of what happens when you get dll­import wrong, nksingh asks, "This seems like a problem for the CRT. As far as I know, VC gives you the option of statically or dynamically linking the CRT. But it seems like the headers will have to make a choice to support one thing better than the other. Conditional compilation would work, but then people would have to remember to

WP7, iOS & Android: Is .NET the platform to rule them all?

The following blog post is an article originally published in the most current issue of "The Developer", a magazine distributed to Norwegian developers. The article discusses the exciting possibility to use C# and .NET across the three major smart phone platforms WP7, iOS and Android. Since the magazine is only distributed in Norway I decided to post it on my blog as well. You can either read it

Implementing the virtual method pattern in C#, Part Two

So far we've gotten rid of instance methods; they're just static methods that take a hidden "this" parameter. But virtual methods are a bit harder. We're going to implement virtual methods as fields of delegate type containing delegates to static methods. abstract class Animal{  public Func Complain;  public Func MakeNoise;  public static string MakeNoise(Animal _

Using AdMob for Windows Phone 7

A few days ago, Google has released a first beta version of an AdMob SDK for Windows Phone 7. People seem to be interested in that especially outside the U.S., because at the moment, Microsoft's own Advertising program is only available to developers based in the United States. Here is a short walk-through of how to use the AdMob SDK in your app and what you can expect from it at the moment.

Embarcadero AppWave Store: The World’s First True App Store for PCs

Embarcadero is going to unveil a new tool from their quite successful tool-chest:  AppWave in conjunction with the AppWave Store portal,  “The World’s First True App Store for PCs” . Based on their advanced virtualization Embarcadero products (ToolCloud and All-Access) the new AppWave tools (Studio, SDK..) and portal seams to be dedicated to ease the building, publishing, updating, licensing and

Amazon Appstore for Android goes live, welcomes newcomers with free Angry Birds Rio

In spite of Apple's grumbling, Amazon's proceeding full steam ahead with the rollout of its Appstore for Android. The switch has just been flipped and early adopters will be welcomed with a free copy of Angry Birds Rio, whose Android launch Amazon scooped all to itself. Beyond day one, Rio will be a $0.99 app, but others will take its place as the online retailer is aiming to serve one

Expression Web SuperPreview

OverviewExpression Web SuperPreview speeds the essential task of debugging your web sites for cross-browser compatibility. With Expression Web SuperPreview, you don’t need a web service to debug your pages on the same machine that you use for development.  Expression Web SuperPreview is a standalone visual debugging tool for cross-browser testing. With Expression Web SuperPreview, you can ensure

sharp2word

C#-to-Word Generator: Creates Microsoft Word Documents from C# code without using any component or library Read more: Google code Posted via email from Jasper-net

Windows 7 Service Pack 1 installation trouble

My computer is set to use automatic updates from Windows Update. So when SP1 for Windows 7 came out, I didn't even think about installing it… Windows Update will take care of it for me. But sadly I was mistaking. After two months I realized that the service pack had not been installed. So I downloaded the service pack from Microsoft Download Center, and tried to install it. But I got an error: "

Indexes in MS SQL Server

IntroductionI bought a book from Crossword; he packed the book and added two bookmarks into my pack. A thought came to my mind. Why do we need this bookmark? I can easily memorize the page number and next time resume from the same page when I resume reading, or read them all over to reach to the point where I stopped reading. But not all have a blessed memory; moreover, there are better things to

Senin, 21 Maret 2011

Implement pagination with NHibernate ICriteria

I want to share my experience about implementing a pageable and sortable grids using NHibernate ICriteria. Many web applications use grids as a common representation of search results or list of data required by some business rules. We can extract data from database and paginate or order the records on the server side, but this creates a list of limitations in ordering the records and a big

Simple paging with ASP.NET MVC and NHibernate

This post demonstrates how you can do efficient paging using ASP.NET MVC and NHibernate.To make paging efficient we need to pass the start index and the number of records to return to the database. So that we can display page links we also need to pass some information to our view such as the number of pages available and the current page index. I found the cleanest way of doing this was to

Make Your Caps Lock Key into a Cr-48-Style Search Key

If you want to search more than just the web, install Google Desktop and set your preferences for Integration. If you're just looking for quick access to a web search dialog, skip this step. Open your Start Menu folder in Windows Explorer—the easiest way is to click the Start button, right-click the All Programs near the bottom, and select open. Then:Open the Programs folder in that location.

What Is ClockworkMod Recovery And How To Use It On Android [Complete Guide]

ClockworkMod – also known as Clockwork and CWM – is a custom recovery for Android phones and tablets that allows you to perform several advanced recovery, restoration, installation and maintenance operations on your Android device that aren’t possible with the stock recovery. In what follows, we will cover all that this recovery is capable of doing, and how to do it. Here is what we shall be

Motorola's Sholes Bootloader Unlocked

Motorola's locked bootloader for their Sholes-family devices (Droid OG, Milestone, DroidX, Droid 2 etc, not Atrix 4G) has finally been cracked. @nenolod explains on his website: The Motorola Sholes platform uses a trusted bootloader environment. Signatures are stored as part of the CDT stored on the NAND flash. mbmloader verifies the signature on mbm before passing control. mbm verifies all other

GNU Project begins work on totally free Skype alternative

The GNU Project has begun laying the groundwork for another piece of "Free as in Freedom" software. This time, the group has its sights set on developing a Skype alternative which rivals the original in ease of use and functionality. Dubbed GNU Free Call, the program will rely on a "self-aware, meshed calling network" to deliver secure, anonymous VoIP. The GNU SIP Witch server will provide the

GO Contacts For Android Is Ideal Alternative To Stock Dialer & Contacts

The acclaimed GO Dev Team, after receiving satisfied nods from Android users all around for GO Launcher, GO SMS and GO Weather, has added another peach of an application to the Android Market. Go Contacts is a a free contacts manager and dialer that is, as claimed by the developers themselves, good enough to replace the stock Contacts and Dialer applications and perhaps even better in some

10 Revenue Models for Startups You Should Know

One of the toughest decisions for a startup is how to price their product or service. The alternatives range from giving it away for free (like Twitter), to pricing based on costs, to charging what the market will bear (premium pricing). The implications of the decision you make are huge, defining your brand image, your funding requirements, and your long-term business viability. The revenue

Silverlight & WCF RIA Services: Strategies for handling your Domain Context - Part 1

This is the first in a two-part article series on the WCF RIA Services Domain Context.Part 1: Introduction, instance strategies & first strategy Part 2: Other instance strategies, pointers & conclusion  This article series is accompanied by source code, which can be downloaded here.IntroductionA lot of business applications that are being developed in Silverlight today are built with the help of

Kinect for PS3

Ever. Awesome. Move over Move… Shantanu Goel has upped the ante in the motion controller game by taking Kinect, a collection of open source Kinect libraries and the DIY PS3 Controller, and mashed ‘em all together to create one righteous hack. Read more: PS3-hacks.com Posted via email from Jasper-net

Enabling IIS Express support in VS 2010 Sp1

With the Sp1 release of Visual Studio 2010 now available for download, you now have the option to use IIS Express as the development server for your web projects instead of the built-in Visual Studio Development server (aka. Cassini). Here are some previous blog posts explaining the IIS Express integration features in VS 2010 Sp1 Beta, which are also available with this new release of Sp1: VS

Getting started with GWT

GWT short for Google Web Development Kit lets programmers to develop Ajax web applications with java. Java codes are converted in to JavaScript and html codes by the GWT compiler. GWT applications are called modules and modules are described using a xml file, assuming the module name as "mymodule" name of the xml file would be "mymodule.gwt.xml". There is atleast one entry point for a module and

לפתח פייתון בויז’ואל סטודיו כבר ניסיתם? מהיום אתם יכולים…

מיקרוסופט ופייתון עד היוםפייתון היא שפה דינאמית שהפופולריות שלה עושה בשנים האחרונות אך סובלת מסביבות פיתוח וכלי פיתוח מיושנים ביותר. כבר לפני מספר שנים נולד פרוייקט IronPython – מימוש של השפה הדימאנית .NET Framework ו- Silverlight, הכוללים חלון כתיבה והרצאה אינטראקטיבי התומך בהידור דינאמי, ואפשרות להפעיל את כל רכיבי ה- .NET Framework כפקודות טבעיות בתוך השפה. הפרוייקט כתוב מעל ה- DLR ב- .NET

ASP.NET AppDomain–What it is and why it’s important–Part 12 of 52 part series

AppDomains are a silent mysterious part of ASP.NET and IIS.  It’s important for the web administrator to be aware of this building block of ASP.NET so that we can be aware of how changes to the system can affect production sites. While this series is targeted at the IIS and web administrator, this topic is useful for the ASP.NET programmer too.This is week 12 of a 52 week series on various web

DebuggerDisplay attribute best practices

The DebuggerDisplayAttribute is a powerful way to customize the way values are displayed at debug time.  Instead of getting a simple type name display, interesting fields, properties or even custom strings can be surfaced to the user in useful combinations [DebuggerDisplay("Student: {FirstName} {LastName}")]public sealed class Student {    public string FirstName { get; set; }    public string

Minggu, 20 Maret 2011

SQL Server: Identify Memory and Performance Issues in T-SQL Queries and Fix them

Sometimes you may notice that some T-SQL queries are taking too much time to execute and thus slowing down the performance of SQL Server and other applications. You can find and rectify these queries using the following methods: Method 1 : Use Dynamic Management ViewSELECTtxt.text, total_elapsed_timeFROMsys.dm_exec_query_stats statCROSS APPLY sys.dm_exec_sql_text (stat.sql_handle) txt ORDER

MFC Delagates

IntroductionThe arrival of .NET brought some very nice approaches and techniques. Of course, one main reason of .NET code efficiency (I mean from a developer's scope) is that .NET languages are fully and exclusively object oriented. One very nice attribute of .NET (and especially of C#) is delegates. Delegates are defined as member variables, and can hold references to functions.Can C++ (and I

Fun with Ubuntu

Ubuntu is like an empty box. You install packages according to your requirements, try out various options available and witness the changes that take place within your box. In other words, you are customizing the box according to your needs and interests. So, in this post, I will be presenting you with four useful options that you can try out to customize your Ubuntu box.Download Youtube videos

Using RSA Public Key Encryption in a Shared Web Hosting Environment

IntroductionIf you are thinking of using RSA encryption on a Web server maintained by a shared hosting company (as many small websites are), you might find yourself out of luck. The RSA encryption class (RSACryptoServiceProvider) supplied by .NET is not usable in such an environment because it would compromise the security of the server's own private keys. This article provides an alternative

Silverlight 4: Introduction to Behaviors

In this article, I will introduce you to Behaviors in Silverlight. We will also create a small demo of the ‘MouseDragElementBehavior’ behavior using Expression Blend 4. So let’s get started. We will first create a Silverlight project using ‘Microsoft Expression Blend 4.0’. Click on Start > Microsoft Expression > Microsoft Expression Blend 4 as shown below:Create a new project and give it a name ‘

Google makes web pages faster with a simple tweak

Google has manged to speed up the way that it serve AdSense content to web pages by a simple change to the JavaScript that does the loading. The ungrateful among us might be asking - why has it taken so long to fix? Google has been rolling out the new version of show_ads.js which it reckons is used by more than two million websites which show AdSense ads. The new version is supposed to be faster

Binding Media Resource Streams to XAML Controls

I came across an interesting problem as I was working on the Windows Phone 7 client code for my next installment of the WCF Data Services blog post series on streaming. In this series, I have been using a property on my PhotoInfo entity named StreamUri to hold the URI of the image used for binding in the client UI. However, because we are dealing with a Media Link Entry (MLE), I was reminded that

Jumat, 18 Maret 2011

Social media explained

Read more: Vanished-omen Posted via email from Jasper-net

What's new in Linux 2.6.38

A quite minor change in the process scheduler makes systems with 2.6.38 feel much faster, and more far-reaching changes to the VFS (virtual file system) make some tasks much faster. Some of the changes to driver code that deserve mention include Wireless LAN (WLAN) drivers and expanded support for current graphics chips from AMD and Nvidia. Ten weeks – that's all the time that Linus Torvalds and

Running Hadoop On Ubuntu Linux (Multi-Node Cluster)

Table of Contents: What we want to do Tutorial approach and structure Prerequisites Configuring single-node clusters first Done? Let’s continue then! Networking SSH access Hadoop Cluster Overview (aka the goal) Masters vs. Slaves Configuration conf/masters (master only) conf/slaves (master only) conf/*-site.xml (all machines) Starting the multi-node cluster HDFS daemons MapReduce

android patterns

This is androidpatterns.com, a set of interaction patterns that can help you design Android apps. An interaction pattern is a short hand summary of a design solution that has proven to work more than once. Please be inspired: use them as a guide, not as a law. Read more: android patterns Posted via email from Jasper-net

iLBC.NET

Project DescriptionA port of the iLBC (internet Low Bitrate Codec) speech codec for .NET platform.Details This is a port of iLBC (http://www.ilbcfreeware.org/) speech codec to C#, converted from the Java port by Jitsi (SIP Communicator) http://jitsi.org/. The project targets .NET 4.0 and can be ported to Silverlight too.LicenseThe source code is available under LGPL license http://www.gnu.org/

.Net Perf - timing profiler for .Net

Introducing .Net Perf Timing. A FREE timing profiler for .NetWhat is a timing profiler?A timing profiler provides you with the ability to determine exactly how much time is being spent inside each method, relative to the total execution time of the application. How does it work?The application works by pre-instrumenting your assemblies with calls to our application. This allows us to keep track

Web Platform Installer bundles for Visual Studio 2010 SP1 - and how you can build your own WebPI bundles

Visual Studio SP1 is  now available via the Web Platform Installer, which means you've got three options:Download the 1.5 GB ISO image Run the 750KB Web Installer (which figures out what you need to download)Install via Web PINote: I covered some tips for installing VS2010 SP1 last week - including some that apply to all of these, such as removing options you don't use prior to installing the

Android 3.0 Hardware Acceleration

One of the biggest changes we made to Android in this release is the addition of a new rendering pipeline so that applications can benefit from hardware accelerated 2D graphics. Hardware accelerated graphics is nothing new to the Android platform, it has always been used for windows composition or OpenGL games for instance, but with this new rendering pipeline applications can benefit from an

Threads Local Storage in C#

Calling the GetData and the SetData methods the Thread class provides we can keep isolated data separately for each threads. The following video clip shows and explains that. Read more: Life Michael Posted via email from Jasper-net

Task Parallel Library: 4 of n

IntroductionThis is the 4th part of my proposed series of articles on TPL. Last time I introduced Parallel For and Foreach, and covered this ground: Parallel For/ForeachCreating A Simple Parallel For/ForeachBreaking And Stopping A Parallel LoopHandling ExceptionsCancelling A Parallel LoopPartioning For Better Perfomance Using Thread Local StorageThis time we are going to be looking at how to use

How to find out where the IsolatedStorage is in a Windows Phone 7 app?

Experienced Windows Phone 7 developers already know that there is an actual file system on the device that is similiar structure-wise to that of the actual Windows OS. A lot of the content managed by the device is stored in local spots scattered across the system that are not publicly disclosed (although since the OS image was already disassembled, most of them are known). One of these locations

How to deal with CPU usage in WPF application ?

If you are building a WPF application with lots of animation inside it, may be some of which runs forever, you must have been a problem of eating up your entire CPU or a mammoth portion of CPU while the program is running. The problem is because by default, the framerate for WPF application is set to 60 per second. Thus for every second if your application has slight change, WPF environment draws

Implementing the virtual method pattern in C#, Part One

I was asked recently how virtual methods work "behind the scenes": how does the CLR know at runtime which derived class method to call when a virtual method is invoked on a variable typed as the base class? Clearly it must have something upon which to make a decision, but how does it do so efficiently? I thought I might explore that question by considering how you might implement the "virtual and

Kamis, 17 Maret 2011

Code Contracts

Code contracts provide a way to specify preconditions, postconditions, and object invariants in your code. Preconditions are requirements that must be met when entering a method or property. Postconditions describe expectations at the time the method or property code exits. Object invariants describe the expected state for a class that is in a good state. Code contracts include classes for

ClickOnce Deployment using IIS / Apache Server for VSTO

We can use Clickonce deployment almost on any Http Web Server. Clickonce deployment makes it very easy for the endusers to install the required application. I found ClickOnce deployment particularly useful when you want to distribute addins and document level customized projects for Excel / Word to the enduser in an internet/intranet scenario. Below are the steps to configure Apache Server for

Kaxaml

Welcome to Kaxaml!Kaxaml is a lightweight XAML editor that gives you a "split view" so you can see both your XAML and your rendered content (kind of like XamlPad but without the gigabyte of SDK). Kaxaml is a hobby and was created to be shared, so it's free! Feel free to download and try it out. If you don't like it, it cleans up nicely. Kaxaml is designed to be "notepad for XAML." It's supposed

Exception handling in T-SQL/TRY…CATCH – Underappreciated features of Microsoft SQL Server

As we continue our journey through the “Underappreciated features of SQL Server”, this week are are looking at a few of the T-SQL enhancements that the community felt did not get the deserved attention. This was in response to Andy Warren’s editorial of the same name on SQLServerCentral.com. Today, we will look at exception handling in T-SQL using the TRY…CATCH statements introduced since SQL

Debug Android UI

When debugging an Android application it’s important to look at the structure of the UI. There are tools that help you visualize the UI. Inside this article I will be explaining two tools: Hierarchy ViewerLayoutoptHierarchy ViewerThe Hierarchy Viewer application provides a visual representation of the layout’s View hierarchy (the Layout View) and a magnified inspector of the display (the Pixel

Microsoft Visual Studio 2010 Service Pack 1 (Installer)

Brief DescriptionThis web installer downloads and installs Visual Studio 2010 Service Pack 1. An Internet connection is required during installation. See the ‘Additional Information’ section below for alternative (ISO) download options. Please Note: This installer is for all editions of Visual Studio 2010 (Express, Professional, Premium, Ultimate, Test Professional). Read more: MS Download

WCF Extensibility – Behaviors

The first part of this series will focus on the behaviors. There are four kinds of behaviors, depending on the scope to which they apply: service, endpoint, contract and operation behaviors. The behavior interfaces are the main entry points for almost all the other extensibility points in WCF – it’s via the Apply[Client/Dispatch]Behavior method in the behavior interfaces where a user can get a

7 Ways to Protect your .NET Code from Reverse-Engineering

IntroductionIf you are making your software available internationally, and your software is written in .NET (which is particularly easy to decompile), then you ought to consider protecting your code. You can protect your code in various ways, including obfuscation, pruning, resource encryption, and string encoding. In this article, we will show you 7 different ways to protect your Intellectual

59 Open Source Tools That Can Replace Popular Security Software

It's been about a year since we last updated our list of open source tools that can replace popular security software. This year's list includes many old favorites, but we also found some that we had previously overlooked. In addition, we added a new category -- data loss prevention apps. With all the attention generated by the WikiLeaks scandal, more companies are investing in this type of

Debian GNU/Linux 6.0 (squeeze)

I have been a bit slack in not writing about the release of Debian GNU/Linux 6.0, which was made over a month ago now. A new Debian stable release is always a big deal, not least because it doesn't happen very often, and it doesn't happen on a predictable, regular schedule. It is also because Debian is the base used for a lot of other Linux distributions, including Ubuntu (and thus Linux Mint the

Linux 2.6.38 Boosts Performance

The second major Linux kernel release of 2011 is now available, offering open source users enhanced performance over its predecessors.The Linux 2.6.38 kernel goes a step beyond what Linux developers provided in the 2.6.37 kernel released earlier this year, by eliminating the last main global lock, which further unlocks Linux performance. "There are many performance enhancements that went into

Adding Restart/Recovery capability to your app's with "Windows Restart and Recovery Recipe" code recipe from MSDN Code Gallery

Windows 7 includes two closely related features: Application Restart and Application Recovery. These features are designed to eliminate much of the pain caused by the unexpected termination of applications, whether as a result of an unhandled exception, a “hard hang,” or an external request that is part of updating a DLL or other resource in use by the application. Application Recovery applies to

ASP.NET WF4 / WCF and Async Calls

How should you use WF4 and WCF with ASP.NET? For this post I’ve created a really simple workflow and WCF service that delay for a specific amount of time and then return a value.  Then I created an ASP.NET page that I can use to invoke the workflow and WCF service to test their behavior The Workflow DefinitionFirst off – let’s get one thing straight.  When you create a workflow, you are creating

Anatomy of a .NET Assembly - PE Headers

Today, I'll be starting a look at what exactly is inside a .NET assembly - how the metadata and IL is stored, how Windows knows how to load it, and what all those bytes are actually doing. First of all, we need to understand the PE file format. PE files.NET assemblies are built on top of the PE (Portable Executable) file format that is used for all Windows executables and dlls, which itself is

7000 Concurrent Connections With Asynchronous WCF

It’s rare that a web service has some intensive processor bound computation to execute. Far more common for business applications, is a web service that executes one or more IO intensive operations. Typically our web service would access a database over the network, read and write files, or maybe call another web service. If we execute these operations synchronously, the thread that processes the

Rabu, 16 Maret 2011

Generating Open XML WordprocessingML Documents

This is a blog post series on parameterized Open XML WordprocessingML document generation.  While it is easy enough to write an purpose-built application that generates WordprocessingML documents, too often, developers find themselves building new applications for similar but somewhat different scenarios.  However, if we take the right approach, it is possible to build a simple document

Maximizing window (with WindowStyle=None) considering Taskbar

Sainuu ... for people wondering what that is - its HI in Mongolian.. So here I am in Mongolia on my vacation and its going great... My blog will be neglected by me for the next couple of weeks..:) Ok now back to WPF.. One interesting problem that comes to mind is the Window occupying all screen space on Maximizing when the WindowStyle is set to None. So this means that even if we do have the

Understanding SynchronizationContext

SynchronizationContext - MSDN Lets You DownI don't know why, but there is really not much information about this new class within the .NET Framework. The MSDN documentation contains very little information on how to use SynchronizationContext. Initially, I must say that I had a hard time understanding the reason for this new class and how to use it. After reading a lot on the subject, I finally

Selasa, 15 Maret 2011

Amazon Accidentally Posts Android Apps, Reveals Pricing – Similar, But Sometimes Cheaper

Well look what we have here: it appears that the site androidnews.de has stumbled upon some (apparently accidentally) posted apps from Amazon’s upcoming Android app store. What were the site’s daring investigative journalistic practices that led to the discovery? According to Frank from the site, "This morning, just for funzies, I entered http://www.amazon.com/apps in the address bar and found

[WPF] Binding to an asynchronous collection

As you may have noticed, it is not possible to modify the contents of an ObservableCollection on a separate thread if a view is bound to this collection : the CollectionView raises a NotSupportedException : This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher threadTo illustrate this, let’s take a simple example : a ListBox bound

How can I propagate changes across threads?

I hope you didn’t get your hopes up too much when you read the title for this post. This time, instead of showing off what we support in our platform, I will explain to you what we don’t. The scenario I have in mind is when you want to bind a control in the UI thread to a collection or property that is modified in a different worker thread. My goal for this post is to tell you what works today

Security Guy Uses Android Phone to Get +15 to Lockpicking, Can Open Any IP-Based CardKey Lock With Caribou

My mind is blown. Ian Robertson is a security researcher who built an Android app that will unlock pretty much any card-key based security system, provided you can get the IP address of the controller and it is reachable via the internet…which, let’s face it, is most of them. Note, this is merely proof of concept…this is NOT an app you can download, you deviant! (I already tried.) By just

Video Tutorial: Android Internals - Building a Custom ROM, Pt. 2 of 2

Part 2 of 2. This video comes from a section of Marakana's Android Internals Training Course, which Marko Gargenta presented in Beijing, China earlier this year.  In this two-part series, Marko is going to show you how to build a custom Android ROM from scratch. This series will cover:Building Android From SourceSetting up your machine Getting the source code: git and repoBuilding the source

Senin, 14 Maret 2011

Anonymous Leaks Internal Bank of America Emails

Reportedly the information Wikileaks was set to disclose about a particular bank back from December, "a massive batch of internal Bank of America emails" has been leaked. While the site hosting it seems to currently be down due to the obviously gigantic amount of traffic interested in this leak, the leak is said to pertain to the Bank of America's improper foreclosure on homes. "The report came

Minggu, 13 Maret 2011

Превращаем C# в C++: ручное управление памятью

В этой статье я хочу показать, как можно оформить ручное управление памятью в C# и сделать затем с его помощью простой однонаправленный список. Для затравки забежим немного вперёд и покажем, как в итоге будет создаваться экземплят такого списка:new CustomLinkedList>, int>() Сразу условимся, что мы не будем использовать unsafe контекст.

Microsoft Message Queuing – A simple multithreaded client and server

IntroductionThis article shows how to create a very simple client-server solution using Microsoft Message Queuing – seems like there is a need for something very simple, just the basic stuff to get you up and running with a moderately performing solution. This solution can easily handle 500 000 moderately complex messages in three minutes.Screenshot of the Microsoft Message Queuing

Win7 application compatibility issue - How to Identify and remediate DEP issue

DEP Description and Terminologies To avoid redundancy, please read the following MSDN article on DEP if this is new to you: http://technet.microsoft.com/en-us/library/cc738483(WS.10).aspx orhttp://technet.microsoft.com/en-us/library/bb457155.aspx How to identify DEP problem using WinDbg  When the application encounters DEP problem, an Access Violation exception will be thrown by the OS. Since AV

Compressing messages in WCF part one - Fixing the GZipMessageEncoder bug

The compression options for WCF out of the box are limited in .Net 4.0. However, a sample is provided for GZip compression that shows you how to write your own MessageEncoder that can wrap the output of another encoder and apply GZip to the messages. If your environment has a network bandwidth limitation, compressing the messages going across the wire could be very helpful. In this series, we

C#/.NET Little Wonders: Tuples and Tuple Factory Methods

What is a Tuple?The System.Tuple is a class that tends to inspire a reaction in one of two ways: love or hate.  Simply put, a Tuple is a data structure that holds a specific number of items of a specific type in a specific order.  That is, a Tuple is a tuple that contains exactly three items: an int, followed by a string, followed by an int.  The sequence is important not only

APIHooking

IntroductionNetwork snoop introduces basics of building a network sniffer to pick up all information being sent using TCP socket via send and recv API, obviously, these will be the two APIs to hook to get information about data being sent/received. This code is more about introducing the readers to API hooking using Network snoop as an example. The reader can modify the code to hook APIs related

LastfmNet

Project DescriptionLastfmNet is a .NET wrapper for the Last.fm API It's developed in C# and usable from any .NET language. The API of the library is focused on ease of use and intuitiveness. Documentation / Usage Exampleshttp://lastfmnet.codeplex.com/documentationRead more: Codeplex Posted via email from Jasper-net

WCF Streaming: Upload/Download Files Over HTTP

Purpose of this articleI have tried to transfer large files over HTTP to/from WCF, but I have faced problems in that I was not able to upload files more than 45 KB in size. I have Googled over www, but I did not find any ready-to-use sample code/solution. Using the explanations over the www and MSDN, I have tried many configuration setting combinations and finally succeeded in transferring large

Introducing Renderscript

Renderscript is a key new Honeycomb feature which we haven’t yet discussed in much detail. I will address this in two parts. This post will be a quick overview of Renderscript. A more detailed technical post with a simple example will be provided later. Renderscript is a new API targeted at high-performance 3D rendering and compute operations. The goal of Renderscript is to bring a lower level,

Drupal architecture – how to implement loosely coupled communication across modules

Drupal is a free and opensource Content Management System which is used for building Websites. It is based on LAMP Architecture using PHP as implementation language. You can read success stories from the website and from the author Dries Buytaert ‘s personal blog. Most of the success of Drupal derives from his modular architecture which simplifies development, collaboration and user contribution.

Android Services and Broadcast Receiver Tutorial

Developing services with Android Gingerbread and EclipseThis tutorial describes how to create and consume Android services. It is based on Eclipse 3.6, Java 1.6 and Android 2.3 (Gingerbread). 1. Android Services 1.1. Service 1.2. Own Services 1.3. Broadcast Receiver 1.4. Pending Intent 2. System Services and Broadcast Receiver 2.1. Example 3. Define and consume your own service 4. Thank you5.

What's New in Honeycomb APIs, UI Point of View

As first Honeycomb tablets are hitting store selveds and the SDK has been out for few weeks Google has been busy updating their documentation for the new OS version. The Android Dev Guide is massive. Not everybody have time to go through all of it or even just the new posts (tagged with new! -tag). So I've gathered here a quick overview about the technical documentation for Android UI development

SQL Server: How to Avoid Big Single Error Log File on Production Servers

One thing, strange I found on our production database servers was a BIG SINGLE Error log file. It was taking long time to open and exploring it for required information was even worse. This happened because production database servers never go down and SQL Server is keeping error log to a single file. On every restart SQL Server initiates a new error log file but for production servers, restart

MVVM in Android

MVVM in AndroidMVVM stands for Model-View-ViewModel, which is a pattern widely adopted in MS WPF and Silverlight. In this article, I am going to discuss the implementation of MVVM pattern in Android (Java) with the help of Android-Binding framework.  Source code for this article can be obtained here. MVVM redefined for AndroidModel: Model in Android can be data coming from within your application

[Python-Dev] CPython hg transition complete

I'm very happy to announce that the core Python repository switch to Mercurial is complete and the new repository at http://hg.python.org/cpython/ is now officially open for cloning, and for commits by those who had commit access to SVN. The developers' guide at http://docs.python.org/devguide/ has been updated to talk about Mercurial and should be enough to get anyone started with a clone. We'll

Embedding PayPal Payments into Your Site

This article is in the Product Showcase section for our sponsors at The Code Project. These reviews are intended to provide you with information on products and services that we consider useful and of value to developers. When a customer visits your site, you want to make it as easy and seamless as possible for your customer to find and buy what they are looking for. For obvious reasons, you want

The Ultimate Bashrc File

Continuing on a Bash theme. If you haven't heard of the "Ultimate Bashrc File", then you should. It's a massive collection of aliases, functions and configuration options for use in your own .bashrc file. The file is maintained by inameiname and is at version 3.31 at the moment, containing a whopping, mind blowing 13K lines of goodness. Using the whole file as is isn't necessarely the best idea,

Live IIS Smooth Streaming in Expression Encoder 4 Pro

OverviewThis document provides a step-by-step guide to get up and running to broadcast your first Live Smooth Streaming event.Read more: MS Download Posted via email from Jasper-net

Caching в WCF сервисе

Кэширование данных неотъемлемая часть высоконагруженных и ресурсоемких проектов. В этой статье я опишу процесс организации оптимального механизма кэширования в WCF сервисе. Сформулирую задачу: имея WCF сервис, нужно организовать кеширование результатов работы любого сервис-метода в зависимости от входных параметров (Caching Support for WCF Services). Существует множество решений поставленной

Вызов .NET сервиса (WCF RESTful) из Android приложения

Вот недавно столкнулся с проблемой, нужно было вызвать .NET WCF сервис из Javа. Нашел несколько примеров, реализации, одним из них и хочу поделиться, вдруг пригодиться кому. Прогулявшись по просторам интернета, нашел готовое решение для SOAP сервисов. Разбираться с ним не стал и продолжил поиск. Затем, было найдено решение с использованием WCF RESTful сервиса, который возвращал данные в формате

App-V Package Accelerators

OverviewThese App-V Package Accelerators helps you create an App-V package for software listed below. By following the wizard in the App-V Sequencer, you can easily create a new package by using this Package Accelerator.  Package Accelerator Features: Easy to follow instructionsRepeatable deterministic App-V Package CreationNo complex Prescriptive Guidance to follow Package Accelerators

Java removed from Linux Standard Base 4.1

The Linux Standard Base 4.1 has been released by the LSB Workgroup at the Linux Foundation. Version 4.1 comes complete with an updated specification, a new version of the SDK, and updated Linux Application Checker and Linux Distribution Checkers. Previously included in LSB 4.0 in a "Trial Use" status, Java has now been removed from LSB 4.1. The release notes point out that licensing issues for

AQtime Standard

Discover and eliminate bugs and bottlenecks in your software.AQtime Standard FeaturesEasy to use application runtime analysis and performance profiling workbench. Diagnose and eliminate performance bottlenecks, track down memory leaks, analyze code coverage and trace runtime exceptions in the code. Profiles any Windows 32- and 64-bit applications: C/C++, Java, .NET, Delphi, Visual Basic, JScript

Android Kernel Undervolting: Benefits and Pitfalls

Android is rapidly gaining steam as one of the most common mobile operating systems on the market, and for good reason: it’s a solid, elegant, and stable OS that’s very well-suited to its job. For me and a great many others, however, there is one unique feature of Android that we place up on a pedestal: its customizability. You can change everything to your heart’s content: radio firmware,

Sabtu, 12 Maret 2011

Covariance and Contravariance FAQ

In this post I’ll try to answer the most common questions I find on forums and in documentation feedback about C# covariance and contravariance. It’s a big topic for a single blog post, so expect to see a lot of “more information” links. Special thanks to Eric Lippert and Chris Burrows for reviewing and providing helpful comments.What are covariance and contravariance?In C#, covariance and

2011 Japanese Earthquake and Tsunami

A massive 8.9 magnitude earthquake hit the Pacific Ocean nearby Northeastern Japan at around 2:46pm on March 11 (JST) causing damage with blackouts, fire and tsunami. On this page we are providing the information regarding the disaster and damage with realtime updates. The large earthquake triggered a tsunami warning for countries all around the Pacific ocean.Local Japan Emergency dials:171 + 1 +

Help The Victims of the Japanese Earthquake

As you have probably heard, around 2:46PM in Japan on March 11th an 8.9 Magnitude earthquake struck near the coast of Honshu, Japan, which triggered a widespread Tsunami warning all along the Pacific Ocean Coastline, displacing and killing many people, and flooding the land in Japan with Tsunamis. We at XDA don’t normally get involved in such situations but we feel the need to support the victims

Uzumaki whirlpool Japan tsunami

Video: Yuotube Posted via email from Jasper-net

Monodrid Preview 14 Available

Good news everyone!We are happy to release another preview of MonoDroid (r9779)!http://go-mono.com/monodroid-download Release notes are available here:http://monodroid.net/Releases/Previews/Preview_14Enjoy! JonathanRead more: Monodroid list Posted via email from Jasper-net

Kamis, 10 Maret 2011

Security Technical Implementation Guides (STIGS) and Supporting Documents

The STIGs and the NSA Guides are the configuration standards for DOD IA and IA-enabled devices/systems.A Security Checklist (sometimes referred to as a lockdown guide, hardening guide, or benchmark configuration) is essentially a document that contains instructions or procedures to verify compliance to a baseline level of security. Security Readiness Review Scripts (SRRs) test products for STIG

WPF PasswordBox Control

The password box control is a special type of TextBox designed to enter passwords. The typed in characters are replaced by asterisks. Since the password box contains a sensible password it does not allow cut, copy, undo and redo commands.       Databind the Password Property of a WPF

Sending MMS with Android

Following on from my last post about saving a view as an image, today I want to demonstrate how to send this image via MMS. We used this technique in our application, PinPoint to send out maps via MMS.  I have previously written about how to send SMSs with Android intents and while sending MMS via intents goes to the same application, the intent that needs to be constructed is quite different.

30 Creative Resume (CV) Designs for Inspiration

You cannot use your CV just like a tool to store information and showcase it to your future employers from time to time. It’s time to think out of the box and get creative, do something that will make people appreciate your creativity and get inspired to create something as well. I have recently discovered some amazing samples of creatively designed resumes, and I was truly amazed. I have decided

Fresh Icon Sets To Improve Your Designs

   Read more: noupe Posted via email from Jasper-net

Rabu, 09 Maret 2011

A highlighting AutoCompleteBox in Silverlight

Some days ago someone in the Silverlight forums asked about how an auto-complete box that highlights the matched parts of potential hits could be made. Something like: There is no built-in feature for this in the AutoCompleteBox and I didn't have a simple answer to that question. However I found it an interesting topic and a useful feature, so I decided to put some research in it as soon as I

XNA for Silverlight developers

This article is part 6 of the series "XNA for Silverlight developers": XNA for Silverlight developers: Part 0 – Why should I care? XNA for Silverlight developers: Part 1 – Fundamentals XNA for Silverlight developers: Part 2 – Text rendering XNA for Silverlight developers: Part 3 - Animation (transforms) XNA for Silverlight developers: Part 4 - Animation (frame-based) XNA for Silverlight

DEV-BOX: VIRTUAL MACHINES FOR DEVELOPERS

This post goes out to all the coders using a Windows machine for development. Might be interesting for others aswell but I can’t say much about that as I’m a Windows user myself ;) So what is this about? Well, some time ago I ran into smaller problems when trying to move a website from my local machine (which used XAMPP) to a real server (which was running on Ubuntu or some other Linux distro)

Iterate Over Object Properties and Property Attributes w/Reflection

Define custom attribute class as follows as well as placing the attribute reference on the property “FirstName”.  In the following we are creating our own custom attribute by defining an attribute class which derives from Attribute which makes identifying attribute definitions in metadata easy.  The AttributeUsage attribute can be used to limit which asset the attribute can be placed such as

How to test a class member that is not public using Visual Studio 2010 ?

There are various ways to test a Class member which is not publicBy making the private members public of a class under test Breaks the encapsulation principleAPI is modified just for the sake of testingBy making the private members internal of a class under test and annotate the assembly with internalsVisibleTo attribute and you can read more about it at http://msdn.microsoft.com/en-us/library/

How Google Tests Software - A Brief Interlude

These posts have garnered a number of interesting comments. I want to address two of the negative ones in this post. Both are of the same general opinion that I am abandoning testers and that Google is not a nice place to ply this trade. I am puzzled by these comments because nothing could be further from the truth. One such negative comment I can take as a one-off but two smart people (hey they

Introduction to the Nmap Security Scanner

A talk presented by SkullSpace member Mak Kolybabi at Winnipeg Code Camp 2011 on February 26th.In recent years, the Nmap Security Scanner has evolved from a simple port scanner written during the Internet`s infancy into the most widely used security scanning tool in the world. We`ll look at Nmap`s past, present, and future, paying special attention to the embedded scripting language that`s been

How to rescue a broken stack trace: Recovering the EBP chain

When debugging, you may find that the stack trace falls apart:ChildEBP RetAddr001af118 773806a0 ntdll!KiFastSystemCallRet 001af11c 7735b18c ntdll!ZwWaitForSingleObject+0xc001af180 7735b071 ntdll!RtlpWaitOnCriticalSection+0x154001af1a8 2f6db1a9 ntdll!RtlEnterCriticalSection+0x152001af1b4 2fe8d533 ABC!CCriticalSection::Lock+0x12 001af1d0 2fe8d56a ABC!CMessageList::Lock+0x24001af234 2f6e47ac ABC!

Silverlight Unit Test For Phone

There has been some confusion about how to make the Silverlight Unit Tests work on Windows Phone.  The latest release of the Silverlight Unit Tests comes with the Silverlight Toolkit, and it targeted at Silverlight 4.  Windows Phone is based on an enhanced version of Silverlight 3 and cannot use these DLLs. Fortunately, Jeff Willcox has made the right DLLs available on his web site.Silverlight 3

Mapping Sockets to a Process In .NET Code

One feature added to Fiddler a few years ago is the ability to map a given HTTP request back to the local process that initiated it. It turns out that this requires a bit of interesting code, because the .NET Framework itself doesn’t expose any built-in access to the relevant IPHelper APIs that provide this information. I found a number of samples on the web, but for Fiddler, performance is a

Chrome Stable Release

The Google Chrome team is excited to announce the arrival of Chrome 10.0.648.127 to the Stable Channel for Windows, Mac, Linux, and Chrome Frame.  Chrome 10 contains some really great improvements including: New version of V8 - Crankshaft - which greatly improves javascript performanceNew settings pages that open in a tab, rather than a dialog boxImproved security with malware reporting and

Using MvvmLight with (XAML) Silverligtht 4 or WPF

IntroductionThis tutorial will try and explain the advantages and the 'how to' of using MVVMLight within your XAML application. So that you can produce code that easier mantainable and more importantly testable. Why Use The MVVM PatternThe tight coupling of GUI to code behind has over the years meant that testing the code-behind can be some what tricky. In that how do you mimic the selected event

Light probes

Hello everyone. I wanted to show you something I’ve been working on last couple of FAFFs. The purpose of this post is to interest some of the technical types among you. If you don’t care about a technical discussion about an unfinished feature, you can just read about the basics or jump right to the video showing some WIP pretty pixels. The BasicsThe problem we are trying to solve is how to use

Creating a Custom Markup Extension in WPF (and soon, Silverlight)

WPF currently, and Silverlight in v5, enables you to create your own custom markup extensions. Markup extensions are those little strings in XAML that are typically (but not always) enclosed in {curly braces} which, as the name implies, add new functionality to XAML. The most commonly used markup extensions are the {StaticResource}, {TemplateBinding}, and {Binding} extensions. Creating your own

NEW APP: Wave Launcher

We’ve just been alerted to the existence of www.wavelauncher.com%2F&sref=rss" rel="nofollow">Wave Launcher, a new Home screen tool for Android 2.1 phones and higher. It adds a curved swipe bar to the bottom of your Home screen, allowing easy access to groups of apps and links. It’s all customisable, so you can stick whatever links and apps you like in your little shortcut menu. And it looks a

Kudos for the Amanuens Translation System!

Back in August we tried out what was then a fairly new service, Amanuens, that makes it easy to crowd source translation. We tried it with several translators, but at the time it seemed confusing and difficult to use so we stopped using it for a while. Since then Amanuens has made a lot of improvements to the usability and now we have used it successfully with a small group of translators and it

SGen – Finalization And Weak References

IntroductionIn this installment of my series on SGen, Mono’s new garbage collector, we shall be looking at how finalizers and weak references are implemented, and why you (almost certainly) should not use finalizers. Tracking Object LifetimeBoth finalizers and weak references need to track the lifetime of certain objects in order to take an action when those objects become unreachable. To that

gui-thread-check

MonoDevelop often makes use of threads to run operations on the background. Although we make sure to invoke all GUI update methods through the main GUI thread, sometimes there is a bug and an update is done in the secondary thread, which causes all sort of random locks and crashes. To make it easier to track down those bugs, I created a simple profiler module for Mono which can detect invocations

Random tip: wtf is"7 CDCs" and debugging on a Samsung Galaxy Tab

ust a quick note on some issues I had debugging a MonoDroid app I've been playing with (MonoDroid is very cool, BTW)... for some reason I couldn't get a Samsumg Galaxy Tab to be recognised as a USB device when connected to my 64-bit Windows 7 PC.  Googling turned up a few different 'ideas' like Samsung Galaxy S Problems, Samsung Kies Software and PC connectivity and Connect Samsung Galaxy S with

Linux From Scratch 6.8 is released! Step-by-step instructions on how to build your own Linux-based OS from scratch

Linux from scratch6.8 is released, This release includes numerous changes to LFS-6.7 and security fixes. It also includes editorial work on the explanatory material throughout the book, improving both the clarity and accuracy of the text. About Linux From Scratch:"Linux From Scratch (LFS) is a project that provides you with the steps necessary to build your own custom Linux system. There are a

How Dynamic Language Runtime(DLR) feature in .NET Framework 4 is a boon for debugging COM objects

The dynamic language runtime (DLR) is a new runtime environment that adds a set of services for dynamic languages to the CLR. For more details regarding new features of .NET Framework 4 please read New C# Features in the .NET Framework 4 and What’s New in the .NET Framework 4 In this blog I’ll show how this feature can make life easy while developing/debugging COM applications and compare the

References and Pointers, Part One

Writing code in C# is really all about the programmatic manipulation of values. A value is either of a value type, like an integer or a decimal, or it's a reference to an instance of a reference type, like a string or an exception. Values you manipulate always have a storage location that stores the value; those storage locations are called "variables". Often in a C# program you manipulate the

Introducing the Google APIs Explorer

Google is always looking for new ways to make it easier for developers to get started with our APIs. When you come across a new Google API, you often want to try it out without investing too much time. With that in mind, we are happy to announce the Google APIs Explorer, an interactive tool that lets you easily try out Google APIs right from your browser. Today, the Explorer supports over a half

Windows Forms Training Videos (114)

How Do I: SqlAzureLOB Line of Business How Do I: Use Dallas Data with WinForms Applications? How Do I: Use SQL Azure with WinForms applications? How Do I: WinForms WPF Integration How Do I: LINQ with Entity Framework How Do I: Entity Framework and Windows Forms Using VS 2010 beta How Do I: Use the Windows 7 Taskbar ProgressBar How Do I: Use JumpLists in Windows 7 Applications How Do I: Use

WPF – Using Data Triggers

Data triggers are a great feature of WPF. They allow you to change the style properties of a control depending on the data of the bound items of that control. In this tutorial, I am going to bind a set of data to a ListBox, and use Data Triggers to let me know when something is wrong.So first, I am going to create a Person class. This class will have three public properties: Name, Age, and

Magnifying Effect in WPF

IntoductionThe purpose of this article is to give you an idea on how you can go about creating a magnification effect in your WPF applications. The concepts you'll pick up will hopefully be of use in a full fledged application that would require such functionality. I will also explain how you can go about using my Magnifier control, a UserControl that functions like an Image control with a

Why am I receiving "Error C000009A" after installing Windows 7 Service Pack 1 (SP1)?

“After installing Windows 7 Service Pack 1 (SP1), you might receive the following error message on a blue screen:"Error C000009A applying update operation {###} of {###} (\Registry...)" To resolve this issue, restore your computer to a point in time before you installed Windows 7 SP1, uninstall any unused language packs, and then reinstall SP1. To restore your computer to a previous point in time

WCF Client Server Application with Custom Authentication, Authorization, Encryption and Compression

Introduction  Logical solution WCF considerations  Implementation Security considerations  How to use the code Notes  References History IntroductionWith the appearance of Windows Communication Foundation building Service Oriented Applications became easier than ever. And lots of articles poured in with extensions for special cases. Even so, there are still situations left untreated. Like the

March 2011 Security Release ISO Image

OverviewThis DVD5 ISO image file contains the security updates for Windows released on Windows Update on March 11th, 2011. 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

Get ready for Android apps mania

From health tips to free books, Google is set to woo its users with new apps.The battle between Microsoft and Google in the tablet and mobile space is heating up. But, if the response to Andriod devices in the biggest technology fair – the Mobile World Congress 2011 – is anything to go by, Android seems to be pulling ahead in the race. Google’s CEO Eric Schmidt in his keynote address said Android

40 Outstanding Websites with Unique and Creative Layouts

A website with pleasant graphics and typography, does not only fill visitors with appreciation it typically also encourages them to take concrete action purposely conveyed by the website owner. The more beautiful and elegantly organized a website is, the greater emotional response it may get from its visitors. This is an important factor when people decide whether to bookmark and consider to come

Tell me Why

No, not the Beatles song.This is my single most important recommendations for speakers.  If I devote an hour of my life to attend your talk, answer the ‘why?’ question. We’ve all heard that there are only a few important questions to answer in a presentation, article, blog post, or anything else:Who? What? When?  Where? How? Why?I’m going to make the bold assumption that most of you are

Building COBOL Applications within VS2010

See what excited the COBOL world this January. Watch the launch video and see Visual COBOL in action. The demo shows how to build COBOL applications within VS2010, and Eclipse IDEs integrating with .NET and other UI technologies... and much more, including COBOL applications running on an Android phone! Read more: .NET Journal Posted via email from Jasper-net

Generate your Fluent NHibernate POCO and mapping classes automagically.

At our current client, we”re refactoring some legacy data access logic to use Fluent NHibernate.  We chose NHibernate because of its large community and previous success on other projects at Clarity.  We chose the Fluent flavor primarily because of the compile-time checking of mapping files and brevity of code vs traditional hbm files. Unless your project is very small, you”re going to want a

GCFS: a Garbage-Collected Filesystem for Linux

Table of contents IntroductionSemantics' descriptionInformal discussion and examples Simple examplesLoops and tangled hierarchiesNames and nodes The problem with “..”Stateless semantics for “..” “Universal cover” semantics for “..”Formal specification Basic notionsMutating the filesystemGarbage collection semantics Other considerationsRecursive traversalSecurity considerations Weak

Remote desktop on mobile phones

Project DescriptionMobile Remote Desktop enables you to connect to your computer from mobile phones using bluetooth connectivity. Once connected, Mobile Remote Desktop gives you the control of mouse and keyboard of your computer from mobile phone. Read more: Codeplex Posted via email from Jasper-net

Selasa, 08 Maret 2011

Write Space

Write Space is a customizable full-screen text-editor that lives in your web-browser. It is designed to minimize the distractions that come between you and your writing. FEATURES• Persistent auto-save. The document is automatically saved with every key-press, so you don't have to worry about losing your work.• Offline. The application is completely self-contained, which means that it will

USB driver bug exposed as "Linux plug&pwn"

Rafael Dominguez Vega of MRW InfoSecurity has reported a bug in the Caiaq USB driver which could be used to gain control of a Linux system via a USB device. The bug is caused by the device name being copied into a memory area with a size of 80 bytes using strcpy() without its length being tested. A crafted device with a long device name could thus write beyond the limits of this buffer, allowing

8 Essential Developer Apps for Multiple Platforms

1. Sublime Text If you’ve been in the industry for any length of time, chances are you’ve heard of Sublime Text. Sublime is a powerful and flexible code with a robust feature set and a powerful Python language-based plug-in system, so you can further add functionality to the application. The $59 price tag may seem a bit steep (Sublime is free to try for as long as you like), but this program

WPF Architecture

This topic provides a guided tour of the Windows Presentation Foundation (WPF) class hierarchy. It covers most of the major subsystems of WPF, and describes how they interact. It also details some of the choices made by the architects of WPF. This topic contains the following sections. System.Object System.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual