Refactoring by Renaming in Visual Studio .NET 2005
July 29, 2006 on 3:26 pm | In General | Add a commentRefactoring by renaming is very straightforward in Visual Studio .NET 2005. Here is how it is done.
You simply overwrite the identifier you wish to rename. The editor will display a symbol underneath it to signal that a refactoring operation is available, at which point you press Alt-Shift-F10 and select the correct operation from a drop-down list. The entire sequence does not require any clicks or keyboard shortcuts to access the refactoring menu. I have seen something close in X-Developer, but it was not as refined as this.
I almost regret using Vim for C# development all this time!
Technorati Tags: Refactoring, Renaming, Visual Studio, .NET, C#, Vim
Related Posts:
- Parallels on MacBook Pro
- Koders Code Search
- Arbitrary sort of selection options
- Ubuntu Linux on iBook G3 laptop
Parallels on MacBook Pro
July 28, 2006 on 9:40 pm | In Apple, Windows | 4 commentsI am very pleased with my decision to run Windows XP in Parallels instead of using a different partition for BootCamp. Not only have I avoided the hassle of having to reboot each time I need to switch between Mac OS X and Windows XP, I also get near-native performance in Windows XP.
I installed Visual Studio .NET 2005 on a virtual machine configured with 8 GB disk space and 512 MB RAM, expecting the performance to degrade when the hefty development environment is running. I was pleasantly surprised when I was able to use it without incurring any performance loss.
Technorati Tags: Mac OS X, MacBook Pro, Parallels, Windows XP, Visual Studio .NET
Related Posts:
- Windows XP on the MacBook Pro
- Three weeks with a MacBook Pro laptop
- Refactoring by Renaming in Visual Studio .NET 2005
- Boot Camp for Mac OS X on Intel-based Macs
Windows XP on the MacBook Pro
July 27, 2006 on 11:06 pm | In General, Apple | 3 commentsI am running Windows XP within a Parallels on my MacBook Pro. All my software work flawlessly and as fast as on a native installation, which I can only attribute to the excellent virtualisation technology in the Core Duo processor.
I considered installing Windows XP on a separate partition and using BootCamp to boot into it, but dropped the idea when I discovered Parallels. I was so impressed that I did not have to wait for the end of the trial period to purchase a licence. Parallels is one of these must-have software for the Mac.
Technorati Tags: MacBook Pro, Mac OS X, Windows XP, Parallels
Related Posts:
- Parallels on MacBook Pro
- Boot Camp for Mac OS X on Intel-based Macs
- Three weeks with a MacBook Pro laptop
- More MacBook Pro goodness
How to Parse Dates from Strings
July 22, 2006 on 9:44 am | In Java | 5 commentsThis example shows how to parse dates from strings using the
SimpleDateFormat class.
The pattern is specified in the constructor, but could also be done with the applyPattern(String pattern) method.
import java.util.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class TestDate {
public static void main(String[] args) throws ParseException {
String s = "15-05-2005 5:55:55";
SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
Date date = df.parse(s);
System.out.println(date);
}
}
This example should help ease the difficulty that all beginners seem to face when dealing with formatting
dates in Java.
Technorati Tags: Java, Programming
Related Posts:
- How to Format Dates for SQL in Java
- Validating a Date Field with RIFE
- Copy/paste command-line utilities
- Using Apache Axis in NetBeans 5.0
Three Golden Rules to Tackle Complexity
July 21, 2006 on 11:27 am | In General | Add a commentAccording to Tim Newing, the IT Director of Camelot, there are three golden rules for tackling complexity in IT projects.
- Do not think of a complex project, but think of a collection of simple solutions.
- Manage outside the “business as usual”; instead, set up a different business structure so that the project team is not distracted by the normal business.
- Make sure that people have a good reason to complete the project. This is not the same as motivating them to make the project a success; instead, the objective is to convince them to put the lid on a project when it is time to do so and to prevent feature creep.
Technorati Tags: IT, Complexity
Related Posts:
- Successes in UK IT
- HOWTO: Filter spam efficiently
- wxWidgets time control
- How to identify and fix an anemic domain model
Successes in UK IT
July 21, 2006 on 11:15 am | In General | Add a commentThe IT industry in the UK has had a couple of much-needed success stories recently. This is a breath of fresh air amidst daily reports of major IT projects failing.
The first success is the completed modernisation of the British Transport Police IT systems.
The second is the positive progress made by the IT department of Camelot in revamping its retail infrastructure, which is the result of adopting the right methods to tackle complexity in such large projects.
Related Posts:
- Three Golden Rules to Tackle Complexity
- Linux will not displace Windows so soon
- Exception handling or result code
- JSF development with NetBeans 4.0
Robust Java Exception Handling
July 20, 2006 on 1:03 pm | In Java | 2 commentsHoa Dang Nguyen and Magnar Sveen published a very interesting paper on building robust Java applications by correctly applying exception handling. They explain how exceptions work in Java, when and how to use them, and provide sample source code to demonstrate their recommendations.
In the past, I have written about exception handling best practice and EJB exception handling.
Technorati Tags: Java
Related Posts:
- How to Handle Exceptions in EJB
- Exception handling or result code
- EJB Exception Handling
- BerkeleyDB database
Java Development on Mac OS X
July 20, 2006 on 10:30 am | In Java, Apple | Add a commentIf you are considering a move to the Mac for your Java development needs, then this comparison of Java development on different platforms is just for you.
Interestingly, it claims that Windows XP runs faster than Mac OS X on the new Intel-based Mac.
Technorati Tags: apple, mac+os+x, java, programming, benchmark
Related Posts:
- Three weeks with a MacBook Pro laptop
- Boot Camp for Mac OS X on Intel-based Macs
- Apple computers equipped with the Intel processor in 2006
- Linux will not displace Windows so soon
Powered by blog.mu with Pool theme design by Borja Fernandez.

