Archive for 2012
Posted by jpluimers on 2012/03/16
Unlike most tools where you use Shift-Enter to add a line break character (ASCII 10: line feed), Excel is different:
Sometimes it’s necessary to have more than one line inside a worksheet cell, which is easily done with a line break.
Add a new line by holding down the Alt key while you press enter. It’s the keyboard shortcut Alt+Enter. In Excel 2008 and 2011 for Mac use Cmd+Option+Enter.
–jeroen
via: Start a New Line Inside a Spreadsheet Cell in Excel | Excel Semi-Pro.
Posted in Excel, Keyboards and Keyboard Shortcuts, Office, Office 2000, Office 2003, Office 2007, Office 2010, Office 2013, Office 2016, Power User | Leave a Comment »
Posted by jpluimers on 2012/03/15
If you have RDP open on one or more of your computers, you should have patched your machines by now:
vulnerabilities in Microsoft’s implementation of the Remote Desktop Protocol (RDP) […] a Critical, remote code execution vulnerability affecting all versions of Windows. This blog post shares additional information with the following goals:
- To strongly encourage you to make a special priority of applying this particular update;
- To give you an option to harden your environment until the update can be applied.
–jeroen
via: CVE-2012-0002: A closer look at MS12-020’s critical issue – Security Research & Defense – Site Home – TechNet Blogs.
Posted in Power User, Windows, Windows 7, Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2012/03/14
When I come across code like this, I’m always astonished:
catch(Exception ex)
{
string strMess = ex.Message;
}
What was the person thinking when he wrote this? Did he get distracted and nobody else notice this before checking it into their version control system?
In the same module:
private string ToString(object myVal)
{
try
{
if (myVal != System.DBNull.Value)
return myVal.ToString().Trim();
}
catch{}
return "";
}
–jeroen
Posted in .NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2012/03/13
Sometimes when creating new Team work items in Visual Studio 2010 connected to Team Foundation System 2010, you get a sub menu like this:

“New Work Item menu still loading… (try again in a moment)”
There are not many results in the new work item menu still loading “try again in a moment” site:microsoft.com query, but luckily the first one shows a similar issue in Visual Studio 2005 with Team Foundation System 2005: the “Add Work Item menu still loading… (try again in a moment)”.
The solution is also very simple:
- Quit Visual Studio 2010
- Delete this registry key
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\WorkItemTracking\TeamMenu\AddWorkItemMru
- Start Visual Studio 2010
- Retry (can take more than a minute, but it usually works)
The only difference between the Visual Studio 2010 (version 10.0) and Visual Studio 2005 (version 8.0) is the version number:
- HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\WorkItemTracking\TeamMenu\AddWorkItemMru
Not sure if this can fail in Visual Studio 2008 too, but if it does, just apply this fix with version number to 9.0, and if it happens with the Visual Studio 11 developer preview, change the version number to 11.0.
–jeroen
via: Add Work Item menu still loading….
Posted in .NET, Development, Software Development, Visual Studio 2005, Visual Studio 2010, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2012/03/12
Handy when working with Microsoft Surface: install your development environment on a separate VHD that you can boot as your physical machine (Microsoft Surface SDK does not like being run in a Virtual Machine):
If you accept the constraints described above, I propose the following procedure, which I think is the easiest way to install Windows 7 on a virtual disk in multi-boot
Note: Within the VHD you can still access all the files on your physical HD.
–jeroen
via: How to install Windows 7 on a virtual hard disk (VHD) in 10 steps – Guides & Tutorials.
Posted in .NET, C#, Development, Microsoft Surface, Microsoft Surface on Windows 7, Power User, Software Development, Windows, Windows 7, WPF, XNA | 1 Comment »
Posted by jpluimers on 2012/03/09
Since about 9 months, 2.5 inch notebook drives ship that have 500 gigabyte platters.
With that technology, these drives ship:
they easily could manufacture these configurations:
Read the rest of this entry »
Posted in Hardware, Power User, SSD, ThinkPad, W701 | 2 Comments »
Posted by jpluimers on 2012/03/08
xs4all won’t tell you up front, but they changed a couple of things that will bring your 10 mbit down / 1 mbit up to something that hardly connects, and if it does less than half the speed.
This is also a post on how XS4ALL treats long lasting (15 years!) customer relations. Badly.
05.03.12 16:08:01 DSL-Synchronisierung beginnt (Training).
05.03.12 16:06:05 Internetverbindung wurde getrennt.
05.03.12 16:06:05 Internetverbindung IPv6 wurde getrennt, Präfix nicht mehr gültig.
05.03.12 16:06:05 Internetverbindung wurde getrennt.
05.03.12 16:06:05 DSL antwortet nicht (Keine DSL-Synchronisierung).
05.03.12 15:56:30 Internetverbindung IPv6 wurde erfolgreich hergestellt. Präfix: 2001:980:43d9::/48
05.03.12 15:56:30 Internetverbindung IPv6 wurde erfolgreich hergestellt. IP-Adresse: 2001:980:43d9::be05:43ff:fe70:9b53
05.03.12 15:56:26 Internetverbindung wurde erfolgreich hergestellt. IP-Adresse: 82.161.132.169, DNS-Server: 194.109.6.66 und 194.109.9.99, Gateway: 194.109.5.205
05.03.12 15:56:21 DSL ist verfügbar (DSL-Synchronisierung besteht mit 4804/1029 kbit/s).
05.03.12 08:44:20 DSL-Synchronisierung beginnt (Training).
They advertised XS4ALL ONLY (since it on the copper pair you only run DSL, no phone, so you don’t need a splitter) as faster, cheaper and more stable internet and VOIP connection.
It is not. Read the rest of this entry »
Posted in Fritz!, Fritz!Box, Network-and-equipment, Opinions, Power User | Leave a Comment »
Posted by jpluimers on 2012/03/08
This use case drove me nuts in Visual Studio 2010 for a while, but can be solved.
Use cases:
double click on a word to select it
- press Ctrl-C to copy the selected text
- result is either of these two dialogs:
---------------------------
Microsoft Visual Studio
---------------------------
Cannot navigate to definition.
---------------------------
OK
---------------------------
or
---------------------------
Microsoft Visual Studio
---------------------------
Cannot navigate to definition. The cursor is not on a symbol.
---------------------------
OK
---------------------------
The reason is that Visual Studio 2010 still thinks I am clicking the identifier (which I’m not, I just released the mouse button) while pressing the Ctrl key. Read the rest of this entry »
Posted in .NET, Delphi, Development, Keyboards and Keyboard Shortcuts, Power User, Software Development, Visual Studio 2010, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2012/03/07
It seems I’m not the ony one who watches what Eric Lippert writes closely.
Eric works at the C# team at Microsoft (since 1996, which is about the time Anders Hejlsberg joined Microsoft).
Unlike Anders, Eric is much more visible. I regularly read his blog, and watch his StackOverflow.com contributions (RSS feed) on a regular base.
Recently, he posted a awesome comment “Nullable is nothing but magic” on a the question “C# – Why does the == operator work for Nullable when == is not defined?“, together with a very concise answer explaining that in C# most operators are ‘lifted to nullable’.
Note his tiny – but important – mention that for == VB.net behaves different than C#.
Note that Eric is very productive, he usually contributes to StackOverflow.com multiple times a day, sometimes with material that (at least for me <g>) need a while before I really get the point.
Recommended reading :)
–jeroen
via: c# – Why does the == operator work for Nullable when == is not defined? – Stack Overflow.
Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Development, Software Development, VB.NET | Leave a Comment »