January 10, 2008

SmartFTP 2.5.1008.32 Beta

SmartFTP it’s a FTP (File Transfer Protocol) tool, this program allows users to transfer files and archives between local computer and servers.
This program supports proxy servers, several connections to different hosts; it has a favorite list as IE has and more.
SmartFTP, it’s free for download.

Free Download: SmartFTP 2.5.1008.32 Beta (3.67MB)

June 27, 2007

How To Crash Windows Vista In 10 Seconds Or Less

Microsoft’s Windows Vista operating system is a mighty paradox. On the one hand, it’s more robust and feature-rich than any of its predecessors. For the most part, it’s also more secure and is immune to many pretty sophisticated takedown attempts. But it’s got one nasty Achilles’ Heel, which’ll enable you to crash the OS in under 10 seconds.

Here’s the deal: One of the simplest command sequences you can think of will take Vista down completely. Hold down the Windows key and the letter “E” for 10 seconds or so. After opening up Windows Explorer windows ad infinitum, your system will stop responding.

Like this:


Holding down the Windows key and the letter “E” will send Vista into its death throes. (click to enlarge image)

How should you protect yourself? Check out my article, “What To Do When Windows Vista Crashes: Little-Known Recovery Strategies.” I describe the Complete PC Backup utility, which enables you to save a bit-for-bit copy of your hard drive. That’ll allow you to restore your system without having to go through a cumbersome, full reinstall of the OS.

Equally useful (maybe more useful) is little-known process to repair bad boot sectors. Called Bootrec, it’s an update of something that was previously available on XP. That portion of the article is located here.

June 26, 2007

CodeSnip: Simple Array Shuffler

Introduction

ShuffleArray is a function that takes an array as argument, shuffles it, and returns another array holding the shuffled items.

Steps

The steps of shuffling are as follows:

1. Create a new array with the same dimension of the original array to be shuffled.

2. Select an item randomly from the original array and insert it in the new array.

3. Repeat the previous step until all items of the original array are copied to the new array.

4. Return the new array.

Get Full Source Code

Client Printing Support in SQL Server Reporting Using SOAP

As the reports rendered by the “Render()” web method do not support the toolbar provided in the “ReportViewer” control, it makes a difficult choice for a programmer to print reports from the application directly.

One of the method to use, the printing functionality as in toolbar of the ReportViewer control, can be implemented by certain customization in the application. This can be said as Direct Client printing Technique obtained by the combination of certain HTML and JavaScript Code.

Selecting data from different databases

GianMarco writes “I need to make a view that includes external data in different DB (still sql, on the same server). How can I do it? In acces I can link external table and then create my query but in Sql?”


–> You can type something like this from any database:

SELECT *
FROM pubs.dbo.authors

Table names (and all database objects) can be qualified with the database name and owner name of the object with the syntax:

. . . FROM DatabaseName.OwnerName.ObjectName . . .

You could also use something like this:

SELECT *
FROM pubs..authors

June 25, 2007

How Do I: Write Code More Quickly with Unit Tests?

In this video we learn how Unit Testing can increase your productivity by easing the debugging process. We see how Visual Studio Team System can generate a Unit Test to automate execution of code that is being debugged, which saves you the time it takes to fire up your Web application and perform any steps needed to manually execute the same code. The result of Unit Testing is that you can write more robust code, more quickly.

Presented by Chris Menegay

Duration: 8 minutes, 40 seconds

June 23, 2007

Script# + Reflector

One of the benefits of using Script# that I’ve alluded to multiple times now, is the ability to use a standard class browser like .NET Reflector against your code. If you’re using Reflector, you probably want to browse your Script# assemblies separate from the .NET Framework assemblies because of their overlap (eg. both of them contain a definition of System.Object and other basic classes such as String, Int32 etc.). In fact Reflector has the notion of assembly lists so you can already create interesting groups of assemblies and open/browse them as a set.

I’ve been asking Lutz for a feature to enable defining and storing an assembly set into a file, and then launching reflector.exe with an assembly list file. He has added that functionality as of version 5.0.21.0, so if you don’t have the latest version (you probably do, given the auto-update functionality) go and download it now.

Display XML Menu Items Based On User

Displaying a menu that shows items based on the current user can be done easily by using roles in membership. In ASP.NET 2.0 membership and login controls make it easy to setup and maintain users for a web site. However, membership comes with some overhead. For example, a database (usually SQL Server) is required to store user information. Another issue with membership is deployment since all ASP.NET applications can use the same database.

The purpose of this article is to demonstrate how to display menu items based on the user from an XML file without using ASP.NET membership. This has limitations, but very little overhead.

Figure 1 - This is a screenshot of the sample menu application

June 22, 2007

Silverlight content only prints in IE (for now)

Last night I made a simple Silverlight maze generator for my 6 year old daughter, who’s really into mazes right now. When I tried to print the resulting mazes, I found that the Silverlight content was was blank in Firefox (left), but worked in IE (right):

Silverlight-FF2-Print-PreviewSilverlight-IE7-Print-Preview

The official word seems to be that printing Silverlight 1.1 content is unsupported, but is being considered as a 1.1 feature. It sounds like some people are coming up with some clever hacks to handle printing Silverlight content, but I’m hoping that print support is added to 1.1. In addition to a nice application framework, Silverlight’s vector based content could be a great print format which would eliminate the need for PDF downloads in many cases.

June 21, 2007

Validation Application Block PropertyProxyValidator Screencast

The screencast discusses the ValueConvert Event of the PropertyProxyValidator that is used to convert form control values to types expected by the Validators.

The screencast discusses:

  • Validation Application Block
  • PropertyProxyValidator
  • ValueConvert Event of PropertyProxyValidator
  • Int32.TryParse and DateTime.TryParse
  • RangeValidator and RelativeDateTimeValidator

Download ( 5MB, 8min AVI File )