Adding Line Breaks for Printed Media

CSS gives us a nice way to insert line breaks into HTML with page-break-before and page-break-after.

Here's a pretty self explanitory example below. Looks normal in the browser, but when you print the HTML, line breaks are there.

<html>
<head></head>
<body>
This is the first page
<br style="page-break-before:always;">
This is the second page
<br style="page-break-after:always;">
This is the last page
</body>
</html>

Better Radio Buttons

A simple trick to make clicking on the text of a radio button select it. If you don't already know it, you should! Here, try it out:

<label for="FU1"><input type="radio" name="myButton" value="myValue" id="FU1">FUblog 1</label>

Using IIS FTP

I''ve been setting up several FTP accounts lately using regular ol' IIS on a machine that only had one IP address available.

Unlike HTTP, where it is possible to host multiple sites using one IP using host headers, You can only host one FTP site per IP in IIS.

I remember the first time I did this was a huge pain to figure out, so here you go.

[More]

Scheduled DTS Package won't run

If you've got a scheduled DTS Package that won't run, it's probably a simple fix.

The error we got was "reason: the system cannot find the file specified."

The job would run just fine when manually started, but scheduled jobs would fail.

The reason is irritating -- SQL Server doesn't include the path to "DTSRun.exe"

So you'll need to add that path to your PATH environmental variable, or edit each job you create individually.

To edit the job, go the the STEPS tab, double click the Step, and manually edit the command that calles DTSRun.

You'll find DTSRun.exe in tools/binn.

Firehose mode in SQL Server

I saw this super odd error message from SQL Server today:

Transaction cannot start while in firehose mode

Firehose mode? What's that?

[More]

Task Manager Sweetness

Ever have a computer pegged on memory usage, but unable to really tell what was eating all that memory up?

In Task Manager, click View --> Select Columns. Did you know that was there? I didn't. Here's the columns I use, and they are quite helpful:

[More]

Homesite bug

There exists a horrible but known bug in Macromedia Homesite. We've known about it for a long time, but it got me again last night so I thought I'd mention it for all you old timers still using this editor.

[More]

IE form field madness

This totally drove me nuts!

Cut/Paste this code:

<div id="banner">
   <ul>
      <li><a href="#">My account</a></li>
      <li><a href="#">Order status</a></li>
      <li><a href="#">Wish list</a></li>
      <li><a href="#">My cart</li>
   </ul>
</div>

<form>
   <input type="text" size="20" name="whatever">
</form>

Then open it up in IE. Type something into the input box and then try to select your text. Good gravy!

Moral of the story - close your <a> tags (the last LI is missing a </a>). Did you see it? I didn't. For a few minutes, I thought I was going to totally flip out.

TITLE is cool, part 2

David Huyck posted a comment about Javascript tool tips being a good alternative to the CSS/Title solution.

I've never used them before, but they proved to be quite handy. Here's a link to the one I decided to use in a project where I needed response time to be immediate.

Not as elegant as a CSS only solution, but it works, and you can modify the CSS to customize the appearance of the tips.

CAM Retail STAR to Microsoft RMS

A project I'm just finishing up included a lot of data manipulation. The customer was using CAM Retail STAR point of sale (POS) software to manage their inventory and run their cash registers. They decided they wanted to upgrade to a POS system that better met their needs, and they chose Microsoft RMS.

The challenge - given two separate POS software products, move all customers, orders, credit vouchers, and of course inventory from the old to the new. This is gonna be a hard one.

[More]

TITLE is cool

In IE, when you mouse over an image with an ALT parameter, you'll see that text pop up after a brief delay.

CSS lets you do something similar with just about anything - a table cell, span tag, link, etc. Here's a simple example:

[More]

CSS and you

I think this is as good a post as any to begin a blog category on CSS. If you haven't yet embraced CSS yet in full, you might want to read on.

About a year ago, I started a small project and decided to completely dive in to CSS, making all code output completely with DIV, SPAN and P tags. Though the temptation to use a table here and there was strong, I used CSS to control the layout. I'd of course used CSS before, but only for trivial things like link colors, font settings, element borders, etc.

If you're thinking of diving in, here's a few observations that might make your life easier:

[More]


Psykel blog uses BlogCFC (by Raymond Camden). Layout design inspired by arcsin