WPF: How to set the SelectedValue on Data Bound ComboBox
Most of the time when you have a form, you will have some combo boxes, and some list boxes. If you are editing an existing item, most likely you are going to want to have these items display the currently selected value. So we are going to populate a form with some contacts and provide a combo box of companies that they could work for. When we select an individual contact from our list, we would expect the combo box to change and show the company the contact currently is associated with.
WPF Binding from the CornerRadius of a Border
Ok, after posing this question over at .NET Blog it took me all of about 30 seconds to realize what I needed to do.
Is it possible to do Binding on separate corners of the CornerRadius. I would like to have a slider that the top corners on the Border increase/decrease radius as the slider is moved. But I don’t want the bottom to corners to be affected.
I had used the tutorial over at Martin Grayson: Adventures of a ‘Designer’ to create a glass button for a project I am working on. This was a great starting point for my buttons, but there were a few things I needed to modify. I am only going to show you how I was able to bind to a slider to change the radius of the button.
The first thing I did was create the control template, notice though that where the corner radius is, I have binded it to a slider that I have added. But on the one corner, the corners originally were set to 4,4,0,0, which will mean that if we use the value from the slider, it will end up looking looking distorted like Figure 1.
If you had to pick 1 accessory for your EeePC
I am not usually in the habit of recommending anything, but I bought the Targus PA248U Tornado Notebook Chill Pad 2 weeks ago. I love my little Eee, but it gets pretty hot, so I wanted to try and keep it cooler, and hopefully in the process would extend the life of it. The PS248 is a little bigger than the Eee, but compliments it really nicely. It still is very easy to carry both in 1 hand and not feel like i was lugging around a 5 pound over sized notebook.
If you could only afford 1 accessory, I would recommend the P248.
WPF IDataErrorInfo and DataBinding
This is by far the best example of IDataErrorInfo and DataBinding that any beginner can easily grasp.
Why Use Linux?
The other day I got into a somewhat heated discussion about why Linux is a viable alternative desktop OS. Despite my best efforts, I was unable to move the other side past the rhetoric and myths that seem to surround Linux. It is because of this discussion that I am writing this…as a way to give accurate information.
read more | digg story
How to create a EeePCLinuxOS LiveUSB with VirtualBox
I was having all types of trouble trying to create a bootable CD from the eeePCLinuxOS iso file, so I decided to try installing from the iso directly to a USB flash drive. I am running a Windows Vista PC and decided I would try using VirtualBox to boot the iso and attach the USB drive. This also helps everyone by not creating an additional CD that will shortly end in the trash.
What you will need.
Once you have installed VirtualBox, you are ready to create a new virtual machine.

How to use USB727 with Pendrive Linux
I was extremely surprised with how easy it was to configure my Verizon EVDO connection on the USB727 from Pendrive Linux. You will want to start with the USB727 unconnected to your PC.
I am not positive that you have to do this but with Ubuntu you have to use the sudo command when entering all of the following commands, so I went ahead and switched to root.
$ su
You should be prompted to enter the root password, which on the default install is root.
Unload the usbserial serial driver.
# modprobe -r usbserial
Insert your USB727 and load the driver for the device. I am using the USB727, therefore my command looked like below. If you are using a different device, see the Sprint Mobile Broadband document to find your vendor and product id. Simply select the Linux option from the dropdown box and you can then use the PDF.
# modprobe usbserial vendor=0x1410 product=0x4100
# dmesg|grep -i ttyUSB
Should give you something similar to below.
[ 1863.832000] usb 2-1: generic converter now attached to ttyUSB0
[ 1863.836000] usb 2-1: generic converter now attached to ttyUSB1
[ 1863.836000] usb 2-1: generic converter now attached to ttyUSB2
[ 1863.840000] usb 2-1: generic converter now attached to ttyUSB3
Now you are ready to setup the dialup connection. Navigate to the `Configure Your Computer` menu option as seen in the screenshot below.

Some thoughts on Puppy Linux
Recently many of the Linux magazines have been doing articles on Puppy Linux. If you have been reading this blog on a regular basis, you already know that I own an ASUS eeePC. One of the main reasons I bought it was so that I could use it when I travel. There was one big flaw with my plans, I still need to carry my Dell 830 to use for work. The more I work with Windows, the more I despise it but I have to use it for work. Normally I would have just partitioned the drive and installed a Linux distro and Windows, but we are not allowed to do that any longer. A friend recommended buying a second drive and just carrying that along. I was preparing to do that when I read all the hype about PL (Puppy Linux). The first thing I did was download it and install it on a USB flash drive from my home PC. It seemed to work great and on that PC I have a standard connection. Then I decided to carry it with me to visit my family. That is when I had my first problem with it, which seems to be related to using WPA on the wireless router. But it wasn’t very important to me at the time, so I just showed off how cool PL was. Now I am on my first trip with PL and am going to share my thoughts.
- Not sure why this is happening, but I can’t get Xorg to work with my laptop. I ended up using Xvesa instead, which for me seems to be fine.
- Pup packages are fast and easy to download and install, but sometimes they don’t show up in the menu. No a problem if you are comfortable with the command line, but for those people coming from a Windows environment it would very discouraging.
- The touchpad is too sensitive. I never use a mouse when I travel and have often had people comment on how efficient I am with the touchpad. But with Puppy, and maybe this is something with all distros, it is very difficult. As a result, I had to go buy a mouse.
- Connecting to the hotel wireless network took a little bit of time to nail down, but once I did it worked great.
- Changing WMs (Window Managers) was very easy. I opted to use IceWM, which has a ton of themes that are fairly easy to apply. Several of the ones available on the pup package site appear to be corrupted, but I was still able to find one I liked.
- Gaim worked great for several days but then after a reboot, it would show the login process and disappear where I could not locate it.
- The UI fairly plain, but completely acceptable as PL was designed to run on very old hardware. See hardware requirements.
Overall PL is very nice and has many uses. I could see value in carrying it around on a small USB flash drive or on a CD in order to recover files from a corrupted OS. If you had an old PC that wasn’t really up to par for running some of the newer OSs that are on the market, it would be a great way to get some use out of it, especially if you wanted to give that PC to someone who couldn’t afford to buy a new PC.
Linux Mint 5 - Carbon
As you can see it looks far more professional (shall I say boring?) than the theme we’re currently using. It’s all grey and squary looking but it has too huge advantages:
- It looks pro.
- A lot of space is gained on the screen (the widgets take much less and that leaves more space for content). In particular the difference is impressive in mintMenu and in Firefox.
Though it is all grey and square looking, I quite fancy it. I have always preferred the clean professional look myself. With the nice crisp clean corners, it is very easy on the eyes. Then you add that look to a the best distro available and you have something to brag about.
Comments(1)
Comments(0)
Comments(0)