14. August 2008




Intellisense not working in Visual Studio...

"IntelliSense is Microsoft's implementation of autocompletion, best known for its use in the Microsoft Visual Studio integrated development environment. In addition to completing the symbol names the programmer is typing, IntelliSense serves as documentation and disambiguation for variable names, functions and methods using metadata-based reflection." (Wikipedia)

So, I can't quite remember when exactly Intellisense stopped working for me in Visual Studio 2008, but I know I have been without (automatic) Intellisense for quite a while.When typing a dot after an object or method, it used to just show up automatically... I could however have it come up by pressing <CTRL><SPACE> and eventually got in the habit of just doing that when I needed it, without attempting to find out exactly why it was broken in the first place...

So, several months later, I stumble upon an entry by Richard Fennell, who explains how to fix it. I thought I'd post it for when it breaks again, I know where to find the answer...

In Visual Studio 2008, select Tools > Options > Text Editor > All Languages. Ensure that the checkboxes in the Statement Completion section are actively checked (not grayed out).

That is it!. Click Ok and try it.


by Miguel Moreno

Category: Programming | Tags:

12. August 2008




Free license for 60 DevExpress controls...

DevExpressHere is an opportunity to take advantage of: DevExpress is offering single developer licenses for 60 of their controls free of charge – without royalties or distribution costs.

These are very high quality controls that should not be left out when considering any web (or windows) application development project. You see their ads in MSDN magazine every month and this is your chance to get them and use them without spending a cent.

"Once you register, you will be forwarded an Email with your login credentials to our product download portal. With this information in hand, you will be able to download and install all the controls and tools listed above free of charge. The applications you create with these controls can be distributed royalty free (see the EULA that accompanies the products for more information). Note that the installation you download will include evaluation versions of our entire product line. You can install these trials if you wish during the setup process. Visual Studio 2005 and Visual Studio 2008 are fully supported." (devexpress)

Read more: http://www.devexpress.com/...


by Miguel Moreno

Category: Programming | Tags: ,

12. August 2008




Optimizing tools for ASP.NET

We all know that you can ask for directions to the same destination multiple times and get different answers each time.

They will all lead you to your destination; however, some direction may get you there faster, some have a more scenic panorama, some with clear instructions and others are difficult to follow. 

The exact same is true for software development; each developer will write code their own way and have a reason as to why some function was written a certain way. However, with software, a key requirement is that we often don't want the elegance, the scenic nor the "pretty" code, but simply the code that executes efficiently, robustly and fast. How do you know if your code does exactly that...? You don't really know until you take your code for a test run and measure its performance...

There are a ton of tools out there that will assist in giving you a diagnosis of speed, performance, etc. 

Morgan at PHPVS.net has written a good article highlighting 9 essential tools that a developer ought to have to testrun their code and optimize it for deployment.

Read more: http://www.phpvs.net/2008/08/...


by Miguel Moreno

Category: Programming | Tools | Tags:

11. August 2008




Visual Studio 2008 and .NET 3.5 SP1 released

Visual Studio 2008Visual Studio Service Pack 1 and Microsoft .NET Framework 3.5 Service Pack 1 have been released today. The downloads are available here: 

"The .NET Framework 3.5 SP1 includes a lot of improvements and especially TONS (literally tons) of performance improvements for WPF applications, ADO.NET Entity Framework, ASP.NET Dynamic Data, ADO.NET Data Services Framework and much more…

PLEASE NOTE: If develop Silverlight apps with Visual Studio, please note that after installing Visual Studio 2008 SP1 you must update the Silverlight Tools (more info and download links are available here)." (via MSDN blogs - pblog)


by Miguel Moreno

26. July 2008




Secure GMail...

If you use GMail, you expect to be using a highly robust, efficient and secure application. You also expect that your password is encrypted and transmitted via https when you log in. These are all true statements...however, in regards to encryption, that is as far as it goes. In other words, when you send or receive email, the data is transmitted using plain http protocol, thus in clear text and relatively easily "sniffed", especially when on a wirelless connection. 

You used to be able to "hack" GMail and just add an "s" to the http and make your connection secure when sending and receiving mail, however, that required a manual and often change every time you checked your email. 

Now GMail has the option to enable this feature permanently in the settings. You can now choose to transmit all you correspondence via a secure channel or not.

The drawback is obviously speed: your connection will be somewhat slower, because of the encryption and decryption process on both sides on your client and the server. However, because of the size of your typical email message, the speed difference should go unnoticed, unless of course your on a slow connection...

Read more at the Official Gmail Blog.


by Miguel Moreno

Category: Tools | Tags: ,

19. May 2008




Increase your VMWare disk size...

Increase your VMWare disk size... Over the years I have used both Microsoft's Virtual PC and VMWare. As to which one I prefer and is better, that is a whole other post. In this post I wanted to write about increasing the size of a virtual hard drive of a VMWare machine.

When creating a new machine you are asked to define the size of your drive and when you choose 16Gb, you  think you'll never use  that much anyways, until, after a while, you realize you do need more. In that case, there are no options to increase the size of your C: drive. Ofcourse, you could always add a new drive (D or E), but that is just more files lingering around, as if VMware didn't create enough already.... 

With regards to your OS drive size, you are stuck with the size you chose. No menu options, dialogs, or wizards can increase it... 

...unless you do this trick. Thanks to Paul Marshall for outlining these steps. 

I have done this a couple of times and have found these steps work almost without fail. One observation, is that apparently the hard drive needs to be assigned a drive letter, or otherwise you cannot extend it. Here are the complete steps:

  1. Create a new full clone of your VM machine you want to increase in size, ensuring it has no snapshots.
  2. Open the folder containing your VM files and you should have only one vmdk file.  
  3. Open a Command Prompt and issue the following command, choosing your own size in Gigabytes, followed by the path to the vmdk file:
    C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager -x 20Gb "d:\[...]\vmdiskfile.vmdk"
  4. After several minutes, the process completes, however, the disk is not ready yet. You have expanded it, but the newly added space has not been allocated yet and is thus unusable at this point. If the disk is the system volume you will need to mount the disk in a second VM and expand it from there. If its not a system volume do it within the virtual machine it belongs to.
  5. Once you've mounted the disk in a different VM or booted up the VM it belongs to if its not the system volume, do the following: click on Start and then right-click on My Computer and select Manage
  6. Click on Disk Management
  7. Your second hard drive should show as available and the difference in space shows as unpartitioned.
  8. Ensure this second hard drive has a drive letter, if not, assign it one.
  9. Open a Command Prompt and type: diskpart
  10. Then type list disk and ensure the disk you want to expand is indeed in the list.
  11. Now type list volume 
  12. This will show you the drives, their volume number, capacity etc. You now need to select the volume you are about to expand, using the following command. Where n is equal to the number of the volume.
    select volume=n
  13. Once selected, you can now expand it using the extend command. Type extend, and your hard drive is ready. Close your machine (without saving) and start up the VM that this drive is the system volume on and check the size. 

by Miguel Moreno

Category: Tools | Tags:

24. April 2008




Adobe Reader alternatives...

BookIt is no secret that I am not an admirer of the Adobe product line. "Bloated" is the first word that comes to mind...

I know that Adobe does a couple products that are quite complex (photoshop) and those we expect to be large in size, but, there is no reason for a simple rendering tool like the Adobe Reader to be so large, gobble up so much memory and take an eternity to fully launch.

As an alternative, I use Foxit PDF reader and have used it for several years. I would recommend this one blindly as it is lightning fast, very light and does its job very well...it lets me read PDF's....for free, with no ads or anything... [you can get it here]

There are plenty of alternatives, some with more capabilities than others, but here is a post with about 30 other options for PDF readers.

Read more: http://www.cartridgesave.co.uk/news...


by Miguel Moreno

Category: Tools | Tags:

17. April 2008




Silverlight 1.0 Chase Game

Silverlight Chase GameHere is another example of my forgetfulness... I saw a small, addictive Flash game somewhere and I can't find it anymore. It involved an object that you could drag and then several other objects moving around the screen.

The goal is to avoid touching any objects or the walls.

Here is my attempt at recreating this small game in Silverlight 1.0 (click on the image). As usual, nothing refined, just a functional model.

You may wonder why I am not diving into Silverlight 2.0...? Well, that version is still in beta and although I have experimented with it, I don't want to post any example yet, as most folks still have the 1.0 version installed and may not want to install a beta version of the player.

Enjoy! 

Silverlight Chase Game 


by Miguel Moreno

Category: Programming | Tags:

26. March 2008




Wear sunscreen....and other good advice!

Distracted from what I was doing, I stumbled upon this excellent and inspiring clip. Truly one clip we should all watch every single day, first thing in the morning... I mean that. We go about our daily lives not realizing how we are wasting our youth; that precious substance of which we have less of, every day that goes by.... that and other magnificent advice.

From the Wikipedia article: "Wear Sunscreen or Sunscreen Speech are the common names of an essay actually called "Advice, like youth, probably just wasted on the young" written by Mary Schmich and published in the Chicago Tribune as a column in 1997.

The most popular and well-known form of the essay is the successful music single released in 1999, credited to Baz Luhrmann." This version with subititles in Spanish.

Listen carefully and enjoy!


by Miguel Moreno

Category: Tips for life | Tags: ,

18. March 2008




Boston Dynamics Big Dog...

You just have to wonder that with today's technology and vast knowledge that we'd have robots in place everywhere, exactly as we were promised 30 years ago. Most attempts at designing and developing robots that emulate human or animal like movements have been, well, let's say, not so human or animal like...

Until I saw BigDog: incredibly beautiful and creepy at the same time. The project is funded by DARPA (Defense Advanced Research Project Agency), you know the same folks that brought you the Internet... 

Make sure to check out 0:37...the immediate response is simply incredible and behaves so realisticly that I think I even felt a bit sorry for the steel beast.  

Their website is not much to look at and painfully slow, but check out their other robots...


by Miguel Moreno

Category: Science | Tags:

5. March 2008




Silverlight 2.0 Beta 1 available for download....

Silverlight 2.0Finally Silverlight 2.0 Beta 1 has been released. This is a big release with lots of new features, as Scott Guthrie mentions: "Silverlight 2 includes a cross-platform, cross-browser version of the .NET Framework, and enables a rich .NET development platform that runs in the browser. 

Developers can write Silverlight applications using any .NET language (including VB, C#, JavaScript, IronPython and IronRuby)."

Of course I w illbe posting some new experiments very soon.

Get the download, documentation, SDK and tools via silverlightexamples.net 


by Miguel Moreno

Category: Programming | Tags:

27. February 2008




Silverlight 1.0 Video Slidepuzzle

Silverlight 2.0 is about to be released in the next few days and I had yet to spend any time with version 1.0. I barely know how it works and thus decided to take a few hours here and there and put together a meaningless, but fun project, just to understand how it works.

Also, I know that the newer version 1.1 is in alpha and readily available, but I wanted to however still learn with the first version and understand the core basics of it.

This technology has tremendous potential and will be key in many, many future applications, especially with its close integration to .NET as it is basically a subset of Windows Presentation Foundation. Unlike (formerly Macromedia) Flash which uses Actionscript and a propietary editor, Silverlight uses standard languages such as XML, Javascript and any of the .NET languages in the next version. 

My first humble attempt at this technology produced a slide puzzle, like we all used to have as kids, but instead of a static image, its pieces contain a fraction of live video. Check it out!

Silverlight 1.0 Video Slide Puzzle


by Miguel Moreno

Category: Programming | Tags:

14. February 2008




Controlling spending...

Peanut Butter SandwhichI was thinking about ways of cutting unnecesary spending last night and thought that I tend to waste a few dollars on so many things that doesn't seem so much at the time, but when it is all added up....well, it adds up.

A cup of coffee in the morning, a snack bar in between, sometimes a pastry at midmorning, then lunch and maybe another coffee in the afternoon.  A couple of dollars at the time X a few times a day X twenty workdays = a lot of $$$. Think about it, even if it is just lunch at $8 per day for a to go salad or sandwhich is ($8 x 20days) $160 per month!

A clever dude has some really good information on how to spend only $6.99 for an entire month on lunch; even if not followed exactly the same, his approach is very good and can be altered to fit your needs and definitively to keep your spending lower than it currently is.

Read more: An illustrated frugal lunch by A Clever Dude. 


by Miguel Moreno

Category: Tips for life | Tags: ,

10. February 2008




Visual Studio 2008 first hotfix released...

Visual Studio 2008 hotfix

Visual Studio 2008 had several issues in its first release of slowing down or even freezing temporarily when developing web applications, especially large ones.

This hotfix addresses some fo these issues.

A readme file included in the download details every issue covered in this hotfix.

For more details check out Scott Guthrie's post on this release.

You can find the direct download here.


by Miguel Moreno

Category: Programming | Tags:

13. November 2007




How do I...?

How do I I noticed this section recently in MSDN on how to accomplish certain tasks shown in brief 2 - 15 minute videos. There are many categories that range from ASP.NET to SilverLight to Visual Studio, etc. and each category contains a many topics.

This is a link I will definitively store in my favorourites.

Especially useful for those of us sometimes too lazy to read...

Check it out: http://msdn2.microsoft.com/...


by Miguel Moreno

Category: Programming | Tags: ,

9. November 2007




Visual Studio 2005 Accelerators

Visual Studio 2005 Visual Studio 2005 is probably one of the most complex pieces of software ever developed. It has so many features, so many tools to (try to) satisfy every developer that is trying to accomplish such a wide variety of tasks, that it is easy to see how a product lile that could become very bloated and sluggish.

So, how do I speed it up? Here are some tips I have collected over time:

  • Disable the Splash Screen
    Add the following parameter to your VS2005 shortcut: "C:\Program Files\...\devenv.exe" -nosplash
    Note: the same trick applies to Business Intellgience Managment Studio and SQL Management Studio....
  • Install Visual Studio Service Pack 1
    get it here.
  • Turn off any IDE animated windows
    Go to Tools | Options | Environment and uncheck Animate environment tools.
  • Get a faster hard drive - seriously
    Scott Gu writes: "What you are much more likely to block on is the Seek and I/O speed capacity with which your computer accesses your hard drive.  If you are using an application that needs to read/write a lot of files, it is not atypical for your CPU processor utilization to be really low - since the application might be spending most of its time just waiting for the disk operations to complete."
  • Disable Startup Page
    Visual Studio tries to download the MSDN rss feed from the Internet at startup. Turn this feature off. Go to Tools | Options | General | Startup | Download content every and uncheck the box. 
  • Set the Environment to empty at startup
    Go to Tools | Options | General | Startup | select Show Empty Environment
  • Disable Navigation Bar
    If you are using ReSharper, you don't need VS2005 to update the list of methods and fields at the top of the file (CTRL-F12 does this nicely). Go to Tools | Options | Text Editor | C# and uncheck Navigation bar.
  • Turn off Track Changes
    Go to Tools | Options | Text Editor and uncheck Track changes. This will reduce overhead and speeds up IDE response.
  • Turn off Track Active item
    This will turn off jumping in the explorer whenever you select different files in different projects. Go to Tools | Options | Projects and Solutions and uncheck Track Active Item in Solution Explore. This will ensure that if you are moving across files in different projects, left pane will still be steady instead of jumping around.
  • Turn off AutoToolboxPopulate
    There is an option in VS 2005 that will cause VS to automatically populate the toolbox with any controls you compile as part of your solution. This is a useful feature when developing controls since it updates them when you build, but it can cause VS to end up taking a long time in some circumstances. To disable this option, select the Tools | Options | Windows Forms Designer and then set AutoToolboxPopulate to False.
  • Install the Public Hotfix Patch
    for VS 2005 F5 Debugging Performance Issue with ASP.NET. You can get it here.
  • Keep MRU Lists Under Control.
    One sure way to slow down the startup of Visual Studio is to have a lot of files and projects in the recent file and recent project lists. This is especially apparent if you have any projects in the MRU list that are located on a networkshare. consider this handy MRU cleaner add-in.
Credits to [Scott Gu, DotNetTipOfTheDay, O'Reilly and thekua]

by Miguel Moreno

Category: Programming | Tags:

19. October 2007




How airplanes fly and why it is not what you think.

Airplane"So we all know how planes fly, right? The top of the wing is rounded and the bottom of the wing is straighter. Air takes longer to travel over the top of the wing, which means there’s less air pressure there relative to the bottom of the wing.

That means there’s more air pressure on the bottom — hence the lift. Right?

Nope."

Read more: http://dmiessler.com/...


by Miguel Moreno

Category: Science | Tags:

3. October 2007




Developing a SharePoint 2007 Feature

SharePoint FeaturesOne of the most important features I look for in an enterprise application is the ability for a developer to take the products and customize it to fit and fill the business need. In simple words, it needs to be extensible and it needs to be able to integrate with other existing applications.

SharePoint 2007 has greatly enhanced its capabilies in these two fields with something called SharePoint Features. In essence, "SharePoint Features" is a plug-in framework, that allows a developer to extend SharePoint in any way that he wants to.

In this tutorial we will be walking through the entire process from the very beginning in easily explained terms.

Read more: http://www.miguelmoreno.net/sandbox/...


by Miguel Moreno

Category: Programming | Tags:

24. September 2007




Learn a new language II.

Passport I just posted about this yesterday but found a new site that has a concept I think is worth mentioning.

I have just registered and have yet to play with it some more but it seems it has quite a bit of content. There are hours of free courseware for several languages as well, but mainly it focuses on allowing you to social network with people who speak the native language that you are trying to learn and vice versa.

read more: http://www.livemocha.com


by Miguel Moreno

Category: Tips for life | Tags:

22. September 2007




Learn a new language..

language I think I have posted about learning a new language before and it not easy to find an application or software that is easy to use and free. Well, I came across this web based language application that, so far, is free and easy to use....really.

They have several languages and it starts out really easy, assuming you have absolutely no experience whatsoever.

read more:  http://www.trymango.com/


by Miguel Moreno

Category: Tips for life | Tags: