More Than Four

Areas of Interest, as counted by my cat

Page 8 of 12

A new favorite programming font

I have a new favorite programming font: Damieng's Envy Code R

My old favorite was Microsoft's Office 2007 Consolas, and my initial reaction to Envy Code R was that it wasn't as readable. But very quickly I decided I liked it more. It looks great with ClearType smoothing, it looks good at ridiculously small point sizes, and the O and 0 characters are distinct.

I have just about ****ing had it with Microsoft Software

This is happening every time I click on Send/Receive in Microsoft Outlook:

Yes I have rebooted since I last had this happen. It is still happening. Am I expected to re-install Outlook now? Usually you can avoid this shit (and it is a travesty that I even have to use the word “usually” because this kind of unforgivable interaction is par for the course with MS) by installing the products in order of release, but Expression Web is a more recent product than Outlook 2003, and yes I installed Expression Web after Office 2003. So clearly you can’t even depend on that strategy any more.

I guess I’ll try the solution described here: Expression Web Ruminations.

It appears to have worked. Did I over-react? What should my expectation be?

Ubuntu Time, Chapter One

I'm writing this post from inside of Firefox running on Ubuntu 8.04 on my Sony Vaio laptop. Let me give props to the Ubuntoi, because the install process was very smooth, and it detected my screen resolution first time (1280×800) and the networking/internet connectivity just worked. I can contrast this experience with the Windows XP Professional install I performed yesterday on the other partition, and let me tell you, it was all about 800×600 and no network until I had installed the Sony-specific drivers downloaded laboriously last week from support.sony.com.

But let's rewind and discuss some background: My laptop hard drive has been filling up and I was short on free space. So I went into a frenzy of backing up important personal files, uninstalling unused applications, defragging, etc, and after a while it really felt like time to perhaps reinstall the operating system from scratch.

Many people will criticize Windows and even call the need to periodically reinstall the OS the "Windows Tax". Let me say here and now that Windows XP has been running flawlessly on my laptop for a year and a half without blue-screening once. It went to sleep, hibernated, did everything a boy could want, and never complained. It has been great, and my urge to "clean house" had nothing to do with the OS performance.

The thing about Windows XP dropping out of the retail channel as of June 30 reminded me that I had no easy way to recover my laptop OS if something happened to the hard disk. Sony Laptops have a special, hidden partition that contains "system restore" information that, if you hold your tongue the right way on bootup (and press F10 or something), will reformat your main partition and put things back the way they were when I bought it. Coupla things wrong with that:

  • It's Windows XP Media Center Edition, with multi-megabytage of extra stuff I don't want, not counting the shovelware stuff like AOL or whatever;
  • What if the hard drive fails? 

I could have sent away for the (optional?!) set of System Restore CD's but chances are it would be Vista Home Premium version, *vomit*, (which actually would have come with the laptop when I bought it except that Vista *ahem* wasn't ready yet). Also, there was a utility on the harddrive that would create the System Restore CDs for me if I asked nicely and gave it a couple of blank CD-Rs to play with. So I did that.

Now, I was free to reclaim that unuseable space, if I repartioned the drive… and I'd be able to restore Windows from the CDs.But that would still leave me with Window MCE. And I've heard that Windows Server 2003 makes a really nice desktop OS… so perhaps this was a good opportunity to try it out?

Yeah, long story short: Windows Server 2003 is particular about the device drivers it talks to. By default, I had 1024×768 non-native LCD resolution,un-accellerated graphics, and no network connectivity. The afore-mentioned Sony drivers looked like they were going to work: first networking… success! Then video…. no go. And neither Sony nor Intel make Windows Server 2003 drivers for the hardware in my Vaio.And believe me, once I got the Ethernet driver loaded, I searched for them.

No biggie. Back to tried and trusted Windows XP – Professional this time, not the MC edition. I booted up on my Norton Partition Magic 8.0 CD to re-format C: ready for the next attempt, and discovered that, somehow, it recognised Windows Server was there and refused to run! Really! It said "Partition Magic is not supported on Windows Server. Press any key to reboot" or words to that effect. And here I was thinking that I was booting on the CD in order to take the installed OS out of the equation…

To the rescue: my Ubuntu 8.04 Live CD. This is a great tool. Booting on the Live CD puts you into a Linux desktop, and System->Administration->Partition Editor, and you're there. It can reformat a partition with NTFS despite the fact that you're running Linux. I think that was when I noticed that Linux got the screen resolution and network connectivity working without breaking a sweat…

Ok. So I decided now was a good time to give Linux (or to be precise, the Ubuntu distribution of Linux) a fair shake, and used the partiion editor to create three partions on the 100GB hard disk: 47GB for Windows, 47 GB for Linux, and 4 GB left over for Linux swap space. (It's easy to overlook this until too late. Fortunately, the Ubunu install gently reminds you to do it – but I'm getting ahead of myself.)

Rebooting on the Windows XP Professional CD followed, and the Sony drivers all installed cleanly, leaving me with a much less cluttered environment than when I first started using the Vaio. I got web browsing and email working, then said "What the heck" and rebooted on the Ubuntu Live CD, this time selecting the Install option.

Which prety much brings us up-to-date. I have configured Evolution for email and so far it seems to work. Obviously web browsing is working. I have no idea what my IP address is… so what are the next steps?

  • Finding out what the linux-equivalent to IPCONFIG /ALL is;
  • Getting me some Microsoft TrueType font goodness (the default fonts in Ubuntu are ok, but not great);
  • Seeing if I can get Wireless networking to function;
  • Sleeping? Hibernating? Power Management?
  • How do I take a screenshot?
  • Can I see my LinkStation 250 attached network storage? (That's where my backups are)

Of course, I still have my Windows XP available. I don't expect to be giving it up anytime soon.

Reason #702 to avoid Windows Vista

The File Types tab has been removed from Folder Options. This feature was available from Windows 95 up to Windows XP and Windows Server 2003.

The File Types
tab allowed users to change the file associations for various types of
files. It allowed configuring which application would open when a user
clicked on a certain type of file, or allowed manually defining a new
file extension, defining/editing custom secondary actions, showing
extensions only for specific file types, or customizing the file icon.
While there is a more simplified option to change the file
associations, called Default Programs in the Windows Vista
Control Panel, this option only allows users to change the default
action that occurs when they double click a file. It does not allow
users to choose which application would load if the user were to right
click on a file and then choose a secondary option such as Edit.

The Open With dialog box in Windows Vista also uses the corresponding Default Programs API which limits only one registered application to be set as the default program. It is also not possible to navigate/jump to a particular extension
using the alphanumeric keys on a keyboard; scrolling is required.

http://en.wikipedia.org/wiki/Features_removed_in_Windows_Vista#Windows_Shell

Thank you Derek Crudginton

This is exactly what I needed to know:

Installing Oracle 10g r2 on Solaris 5.11 is painless except before
you ./runInstaller you have to edit the ./install/oraparam.ini and
change line 42 to something like:

Solaris=5.8,5.9,5.10,5.11

Then it will pass the first check and continue with install.

Expression Web vs Visual Studio 2005

I’m happy to know that Visual Studio .NET 2008 (“Orcas”) is going have the HTML designer from Expression Web built-in. It’s much better than the editor in VS 2005.

Unfortunately my copy of Expression Web appears to be missing the third checkbox in the CSS options dialog, shown below:

Can anyone tell me where to find it?

An alternative to checkboxes for logical fields in Grids

I’ve never really been happy with how checkbox controls look when contained in Grid columns, displaying logical values. Lately I’ve been using the method described below.

Given a table with a logical column such as:

create cursor FILMLIST values ( VIEWED L, TITLE C(50) )

I use an expression for the grid column instead of referencing the table column name directly:

Alignment=2-(Middle Center)
ControlSource = iif(FILMLIST.VIEWED,"ü"," ")
FontName=Wingdings
FontSize=11
ReadOnly=TRUE

The default textbox control in the column will display the logical value as a tick mark (the WingDings character for ü):

This is all you need to do for a read-only column. For my users, I make the column editable by adding some code to the textbox’s .DblClick() event:

replace FILMLIST.VIEWED with !nvl(FILMLIST.VIEWED,.F.)
this.Refresh()

This toggles the logical flag when the user double-clicks the mouse in the column – and handles possible NULL values as well.

As an exercise for the student, try adding support for toggling the flag using the keyboard SPACE bar.

« Older posts Newer posts »

© 2025 More Than Four

Theme by Anders NorenUp ↑