Archive

Archive for February, 2010

Los Techies’ Pablo’s Fiesta

I attended my first Los Techies/Open Spaces conference this weekend: Pablo’s Fiesta.

It’s nice to live in a place with a thriving developer community and other coders who view software development as craftsmanship.

I also learned what a fishbowl is. Very cool!

Developer Resources: Finding Information

A big part of our job as software developers is knowing lots of detailed information, but I would argue that knowing how to find information when you need it is even more important. So here is an assortment of resources and tips for Visual DataFlex developers, published today on the DAW Development Team blog.

Searching in Windows 7 part 2

Since writing Searching in Windows (part one), I have been doing more research on this. All recommendations I have read state not to index full hard disks as I suggested because it will slow down the index too much.


The next logical question is how do I find files that are not indexed?

The Search in Windows Vista had an Advanced Search button, which would allow you to check the option “Include non-indexed, hidden, and system files (might be slow)”. I see no way to do this in Windows 7.


One way to be able to actually find a DLL file is to go to the folder it is in (in this case c:\Windows\SysWOW64) and then search for it. In other words, if you know where a file is, Windows can help you find it. Very helpful. Actually it’s worse, it will only help you find it in that folder.


It is very weird how difficult it has been to find a solution to this question. I figured out one answer myself:

dir c:\msxml6.dll /s


Has it really come to this? Do I need to revert back to what I last did in DOS to find a file while running the latest Windows operating system in 2010?


In part 1 of exploring the Windows 7 search I thought it was simply unintuitive but had potential. Unfortunately, after more research, things have turned for the worse. I can’t see myself relying on this search for anything. I will have to resort to Google desktop for file content searches and the command prompt or some other tool for file searches.

Searching in Windows 7

I have been running Windows 7 Ultimate x64 on one of my two main PCs for about 3-4 weeks now. I like it, it seems like an improvement from Windows XP and Vista (admittedly, I only worked on Vista part-time and only felt the real pain when having to figure out how to do things on my wife’s PC and my test virtual machines).

I really want to like the Windows 7 search. It certainly allows you to perform more, faster, and more thorough searches than previous Windows versions. It is also far more versatile. It’s just really unintuitive if you want to do anything other than the default. I want to try to use it as much as possible; sometimes new features turn out better than your first impression once you really use them.

Thus far, I ran into a couple of gotchas, and here are solutions to both:

  • Searching full local drives

    I typed the file name into the search window for example:

    msxml6.dll

    Out of the box, this returned all documents containing that file name as text, but not the locations of that file on my PC, such as the Windows system32 folder. The problem was that the predefined libraries did not include my complete local hard drives, but only some predefined locations, such as My Documents, Music and Videos. As a programmer, I often search for the locations of specific files on my entire local drive(s), just to make sure I don’t have a stray copy in the wrong place.

    I added a new library named All Local Drives and added C: and D: (both local drives) to it. Now the search finds all copies of this file on both local drives, as well as all files that contain the file name as text.

    Caution: Your libraries are also used as default locations for the built-in Windows backup, so adding more locations as libraries for searches will also back up those locations by default. You can go in and change locations to back up in Control Panel > Backup and Restore.

    I had expected this to be automatic after adding C: and D: to my indexed locations in Control Panel > Indexed Locations.

    Caution: By default, Windows will exclude some locations such as the Windows and AppData folders from the Index and it’s quite cumbersome to even figure out what some of these locations are and include them. This really ought to be simpler!

    Update: It turns out that this issue is far worse than I thought. Please see Searching in Windows 7 part 2 for more.

  • Filtering searches

    You can use a filter to constrain the search results to only display files, and not files containing the text. For example:

    msxml6.dll type:=.dll
    

    Now the search finds all copies of this file on both local drives, but not files that contain the file name as text.

  • Searching multiple Exchange mailboxes

    I have a personal mailbox on our Exchange server, but I also have access to 2 additional mailboxes that I frequently need to find emails in. Windows 7 does not allow me to search these additional mailboxes.

    I had really hoped not having to install Google desktop on my Windows 7 machine (why use two searches if one will do?), but this item is a big deal to me and that was ultimately the solution.

First Impressions of Visual Studio 2010

I played with Visual Studio 2010 Beta 2 over the weekend and I really like many of the improvements.

My favorites are new features to make code navigation simpler:

  • Call Hierarchy: being able to see in design mode what method calls and is called by other methods is brilliant! This is only available for C# in this revision, but that’s really the only .Net language I code in anyway.
  • Navigate To: an easy way to type any part of an identifier name and find it anywhere in the current solution.

I’m really happy about this. One of the most cumbersome things when working in Visual Studio has been navigating through code.

I still miss one of the best features of Visual DataFlex Studio, Code Explorer, in Visual Studio. While I appreciate the improvements for making code easier to find in VS 2010, I always have Code Explorer open in the Visual DataFlex Studio. Code Explorer is a docking panel that displays the structure of the current code file. This makes it very easy to locate a class, object or method with a click.

VDF Studio Code Explorer 'Locate in Editor'

Class View at first appears somewhat similar, but the way it’s implemented, it still takes a lot more steps to find something.