CodersBarn.com
The ASP.NET Community Blog

Google Maps - New "Explore this Area" Feature

May 15, 2008 07:29 by agrace

The Google Lat Long Blog has just announced a really cool new feature with Google Maps called "Explore this Area". According to Google, "you can explore an area by viewing photos, videos, user-created maps, and suggested local queries." This is a good example of how interesting mashups can be.

Google Maps - Explore this Area

I've often surfed around to places I've been with Google Maps and this adds a whole new level to the amount of fun you can have. After clicking on the "Explore this Area" button, click the "More" button in the map and check on wikipedia and photos. This will bring up even more photo and wiki entries. I did a search of my home town of Clonmel, County Tipperary, in Ireland. The search brought up a lot of my old haunts and some great memories... try it out!


Tags: ,
Categories: Google | GIS
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

A Silverlight Beginning - The Verdict

May 11, 2008 13:47 by agrace

Integrate XAML into ASP.NET Website Rather than write a long, tedious project walkthrough, you can find several simple examples of Silverlight projects online. I started with a Calculator tutorial and got it working first time. This was an interesting tutorial as it showed how to integrate XAML into an existing ASP.NET website. However, the XAML for that was pretty verbose when all you need at this stage is to see how the pieces fit together. You can find a list of what I thought to be especially helpful resources at the end of this post.

Well, I've been trying to get my head around everything Silverlight since the last post. Although I had to force myself to keep an open mind about the whole thing, I'm very impressed with what I have found. When I say I had to keep an open mind, I think I need to explain where I'm coming from...

I'm a Developer-Designer. I like to use Visual Studio for everything if I can. Other times, I'll just open up Notepad2 and hack away. My Photoshop skills are pretty limited but I have a good eye and create all my own CSS designs. I know that few developers are artistically inclined and vice-versa for designers. I also know that there are many in both camps that have themselves convinced that they are either left or right-brained and settle for that. But that kind of dichotomised thinking is another story.

Expression Blend 2.5

The original byline for CodersBarn was going to be "Blurring the Border Between Developer and Designer". I though it was a bit long-winded plus I didn't want to be writing about CSS all the time. My point here is that someone like me is going to look at something like Silverlight with both the eye of the developer and the designer. So, if Microsoft can sell this to me, they have achieved something since I will be doubly critical!

XAML the new HTML?

For some time now we have been moving toward a declarative model. When I say this, I do not mean that manual coding goes out the window. In the case of Silverlight, XAML is used to create tags which can be programmed against. Designers can use Expression Blend and Design to create their artifacts and the XAML end result can be handed off to developers. Now, most people have heard this type of marketing hype ad-nauseum over the past year. So, here's what sold me:

Arguments against Silverlight

* It doesn't support the Scalable Vector Graphics standard... humbug! Microsoft intentionally avoided introducing proprietary technology into an existing standard and instead built upon it.

* Weaning designers away from Photoshop is a real hard sell... you can import vector graphics to Expression Blend quite easily. Check out John Galloway's post on this. I also opened a Photoshop PSD file in Expression Design without any hitches. Admitedly, the IDE is a bit clunky, but for a new product, that's by no means a show-stopper. Tools improve over time and now Microsoft are moving into an area previously dominated by Adobe. Who's your money on?

* Silverlight doesn't support Linux... more humbug! Microsoft has been working with the members of the Moonlight project to make the port to Linux.

* Several US states are attempting to extend the antitrust case against Microsoft for another five years based on the argument that they will use the next version of Windows to tilt the advantage away from Adobe Flash... best of luck to them I say. If it's an accepted and open standard, then anyone can develop tools for it. Open is open. The same humbug is going on in Europe; if it's not fox hunting it's Microsoft season.

Arguments for Silverlight

Microsoft has effectively delivered a one-two-three punch winning combination against their rivals:

* XAML is text-based, thus it is searchable. Bye-bye Flash.

* The new integration between developers and designers can only foster more creativity. It will probably be a case of gradual but inevitable adoption because the Silverlight technology has taken the initiative where it is needed and I cannot see Adobe trumping that, especially when faced with the scale of the Microsoft development community. Greater co-operation between development and design teams means more productivity and it's the employers who will call the shots at the end of the day.

* I won't repeat the hype about being cross-browser and so on. The killer punch is the .NET Silvelight CoreLCR which weighs in at 4.5 MB. What a piece of engineering! Think about integration with Linq, Ajax, Web Services, Streaming... and just in case the opponent attempts to get back up off the floor, here comes the knockout blow... your JavaScript will run 250 times faster!!! In the future, where the RIA will be the name of the game, this is going to be a telling factor.

Resources

MSDN Silverlight Documentation

Overview of Differences between the 1.0 and 2 Beta 1 Runtimes

Videos, Tutorials and Samples

kick it on DotNetKicks.com   PHP, ASP, .NET, JSP Resources, Reviews


Tags:
Categories: Silverlight
Actions: E-mail | Permalink | Comments (3) | Comment RSSRSS comment feed

Beginning Silverlight - First Steps

May 7, 2008 00:02 by agrace

Silverlight 2 Beta 1 Solution I decided to get adventurous and see what all the fuss was about. So, I'm going to record my experiences as I try to "do something" with Silverlight! Fasten your seat belt and come on a drive-along. No guarantees. The sole aim here is to get a successful install of all the working parts. I know absolutely nothing about Silverlight so this will be truly ab-initio.

If I was slow to make the jump on this one, it was probably because I have had a hard time figuring out how the run-of-the-mill developer will suddenly become artistic overnight and vice-versa with designers suddenly spouting algorithms in their sleep. Microsoft's red-suspendered marketing brigade describe Silverlight as a "cross-browser, cross-platform plug-in for delivering next-generation media experiences and rich interactive applications for the Web." I'm starting to think that as far as Silverlight and some of the other emerging technologies from Redmond are concerned, we have not seen the big picture yet.

I already had VS 2008 installed on my VMWare Workstation and had just downloaded the .NET 3.5 Enhancements Training Kit, when I decided to go for broke with Silverlight. I navigated to the Silverlight Get Started page and worked from there. I wanted ALL the toys so here's the order in which I installed things:

    1) .NET 3.5 Enhancements Training Kit

    I was then prompted to install Windows Power Shell 1.0 and ASP.NET 3.5 Extensions.

    2) Silverlight Tools Beta 1 for Visual Studio 2008
    Includes Beta 1 runtime and SDK (thanks Ailon)...

    Follow Robert Cameron's advice on getting the SDK to show up in VS 2008.
    You can optionally download the source code and unit tests for some of the controls.

    3) Expression Blend 2.5 March 2008 Preview

    4) Expression Web 2 (391 MB)

Finally, download the Deep Zoom Composer. Check out the Hard Rock Memorabilia sample of Deep Zoom in action. 

Follow the steps here to create your first Silverlight project. Also, check out Jesse Liberty's Silverlight For Total Novices site for some more resources.

We haven't actually done anything with Silverlight yet but we're off to a good start. I'll be back soon, hopefully with something useful built!

kick it on DotNetKicks.com   PHP, ASP, .NET, JSP Resources, Reviews


Microsoft Office Labs - YouTube for Office

April 29, 2008 20:55 by agrace

Office Help For all the people out there with a love-hate relationship of the new Office ribbon, here's something to grab your attention. Despite, the fact that the "experts" spent 10 years studying people's interaction with Office applications in order to come up with the magic ribbon, more than a few people are extremely frustrated on first contact with it! So, we now have help videos, a sort of multi-media, social office assistant.

The Office team have come up with Microsoft Office Labs in an effort to ease the learning curve of their Office "power users"... I'm keeping a straight face, honest :-| In short, the Office Labs umbrella site has two new projects which Microsoft has just gone live with: Community Clips and Search Commands.

Given the pace with which Microsoft have been releasing new products lately, this is a welcome source of information. I may be a developer, but I put mastering Office tools right up there with programming the VCR... one day I'll master it...


Tags:
Categories: Technology
Actions: E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed

500,000 SQL Injection Attacks this Week

April 26, 2008 23:38 by agrace

Web Server Attacks From the Washington Post, April 25, 2008:

Quote... Hundreds of thousands of Web sites - including several at the United Nations and in the U.K. government -- have been hacked recently and seeded with code that tries to exploit security flaws in Microsoft Windows to install malicious software on visitors' machines. Unquote...

Apparently there have been an estimated half-million attacks on different Web sites this week alone. There seems to have been a rush to judgement in trying to point the finger of blame at a recent Microsoft Security Advisory (951306). According to Bill Staples, Product Unit Manager for IIS, "Microsoft has investigated these reports and determined that the attacks are not related to the recent Microsoft Security Advisory (951306) or any known security issues related to IIS 6.0, ASP, ASP.Net or Microsoft SQL technologies."

These attacks are not related to said security advisory but are aimed at sites, on any platform, that are open to SQL Injection. What we are really seeing is a growth in SQL Injection over other types of attack. Although around for a long time now, this technique has been gaining in popularity among hackers over the last couple of years, and seems to be more popular now than cross-site scripting or buffer overflow exploits. I would argue that this would not be the case for ASP.NET sites if basic input validation and SQL parameters in combination with stored procedures were employed, as is the recommended practice.

At the very least, even if you are still using ASP and haven't time to convert to stored procedures, check your input data! All input data is evil and when designing your application you should take time to consider where else that input may be coming from, such as query parameters, cookies, etc. Watch this space...

kick it on DotNetKicks.com


Tags:
Categories: ASP.NET | IIS
Actions: E-mail | Permalink | Comments (6) | Comment RSSRSS comment feed