Posts

Is That You? Writing Better Software for Cool USB Hardware

Summary : In this fourth installment of the "Some Assembly Required" column, Scott Hanselman and Bryan Batchelder find a piece of hardware so compelling—and with included software so bad—that they write their own version using the .NET Framework 2.0. You can buy a little wireless key fob with USB Receiver manufactured by a no-name company and billed as a "Wireless USB Security Device" from a number of online retailers that is meant to lock your computer when you leave and unlock when you return. However, the software it comes with is terrible. So, we figure—Some Assembly Required. (Hopefully the company will ready this article and start using our software!) We'll also extend the application with all-new functionality using plugins written in Visual Basic! HW: http://froogle.google.com/froogle?q=%22USB+PC+Lock%22&scoring=p SW: http://msdn.microsoft.com/coding4fun/someassemblyrequired/isthatyou/default.aspx

AHAH: Asychronous HTML and HTTP

AHAH is a very simple technique for dynamically updating web pages using JavaScript. It involves using XMLHTTPRequest to retrieve (X)HTML (http://en.wikipedia.org/wiki/HTML) fragments which are then inserted directly into the web page, whence they can be styled using CSS. AHAH is intended to be a much simpler way to do web development than AJAX: "Asynchronous JavaScript and XML." Strictly speaking, AHAH can be considered a subset of AJAX, since (X)HTML is just a special kind of XML. However, it is a subset with some very specific and useful properties: 1. The lack of custom XML schemas dramatically reduces design time 2. AHAH can trivially reuse existing HTML pages, avoiding the need for a custom web service 3. All data transport is done via browser-friend HTML, easing debugging and testing 4. The HTML is designed to be directly embedded in the page's DOM, eliminating the need for parsing 5. As HTML, designers can format it using CSS, rather than programmer...

Coding4Fun-msdn-dotnet

What's Playing? Interfacing Your Media with an External LCD Panel using Visual Studio 2005 Express Summary: To kick off his new "Some Assembly Required" column, Scott Hanselman explains how to use Visual C# 2005 Express Edition and the .NET Framework 2.0 to control an LCD Display Panel and interface it with Windows Media Player or iTunes to show "What's Playing?" http://msdn.microsoft.com/coding4fun/someassemblyrequired/External_LED/default.aspx --- Where the Heck am I? Connecting .NET 2.0 to a GPS http://msdn.microsoft.com/coding4fun/someassemblyrequired/whereami/default.aspx

Building a Web Site with ASP.NET 2.0 to Navigate Your Music Library

Coding for Fun. Building a Web Site with ASP.NET 2.0 to Navigate Your Music Library http://msdn.microsoft.com/coding4fun/webcoder/musiclib/default.aspx

XML (XMLType) inside PL/SQL Oracle 9/10

The XMLType is an OO XML aware data type. It can be used in columns or in PL/SQL just like VARCHAR2 or DATE. XMLType has member functions that allow access to data using XPath. A quick example extracting a specific value from an XML varchar2 string: DECLARE v VARCHAR2(32000) := 'ABC'; x XMLType; BEGIN x := XMLType(v); DBMS_OUTPUT.put_line( x.extract('/DATA/LINE[1]').getStringVal() ); DBMS_OUTPUT.put_line( x.extract('/DATA/LINE[1]/text()').getStringVal() ); END;

Fields to Properties (Visual Studio.Net)

Yes, we miss Automatic property generation from the Fields of the classes in the Visual Studio.net IDE. Following is the sample code of the Macro, I am telling here which I used for myself. This member variable to Property generation is not generic and is very difficult to be. The idea is that I demonstrate to do it my way and you can customize it for your needs. Code is in the Visual Basic.Net -------------------------------------------------- NEED: Public Class AClass #Region "Members" Private strStaffId As String Private strStaffName As String #End Region End Class --> Public Class AClass #Region "Members" Private strStaffId As String Public Property StaffId() As String Get Return strStaffId End Get Set(ByVal Value As String) strStaffId = Value End Set End Property Private strStaffName As String Public Property StaffId() As String Get Return strStaffId End Get Set(ByVal Value As String)...

What is a Smart Client?

Keywords : What is a Smart Client ? Define Smart Client SmartClient ------------------------ Smart Client An Internet-connected device that allows the user's local applications to interact with server-based applications through the use of Web services. For example, a smart client running a word processing application can interface with a remote database over the Internet in order to collect data from the database to be used in the word processing document. Smart clients are distinguished by key characteristics: * They support work offline – smart clients can work with data even when they are not connected to the Internet (which distinguishes them from browser-based applications, which do not work when the device is not connected to the Internet); * Smart client applications have the ability to be deployed and updated in real time over the network from a centralized server; * Smart client applications support multiple platforms and languages because...