?

Log in

No account? Create an account
Overloading the Machine -- Day [entries|friends|calendar]
johnsu01

[ website | wjsullivan.net ]
[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Quills and the Firefox DOM inspector [02 Apr 2005|10:25am]

Changing the way the default Quills CSS handles overflow, to have long lines handled nicely.

I've transfered all of the entries that were in the Computers and Code folder previously into my blog folder here. In doing that, I ran into a problem with overflow and some of the long lines that are in the code in some of these entries. In a regular document content type, these lines caused a horizontal scrollbar to appear, which was great. But in a Quills entry, they made the central column very wide, which was not great.

The problem had to be in the Quills CSS, since I knew these exact same entries worked fine in the document content type. domestos on #plone suggested I use the Firefox DOM inspector to help find the problem.

The DOM inspector is very handy. Debian users can get it with apt-get install mozilla-firefox-dom-inspector. It gives a nice visual view of the document structure so you can tell what CSS is affecting what stuff.

Anyway, this was not a complicated problem in the end. Adding overflow: auto; to .weblog-summary and .weblog-body in the Quills CSS seems to have solved the issue. The former fixes it on the overview page, while the latter fixes it in the individual entry view.

I was flustered for a while after this by the width of the content column in the individual entry view. It was even wider than the long code lines, so this was a separate problem from the above. Then I noticed how long the Trackback URL was at the bottom. The solution is to add overflow: auto to div.trackbacks. Don't add it to div.entry-trackback, otherwise you will end up with a little vertical scrollar as well.

post comment

Cooking with ginger [02 Apr 2005|10:27am]

A few random tips about how not to waste ginger when preparing it.

Some tips on cooking with ginger gleaned from the Ask the Cooks column in the Boston Globe Magazine, 2005 March 27.

  1. Peel the ginger with a plastic spoon. I generally do ok with a knife, but it is true that this can sometimes waste a lot of ginger. The author here claims that the plastic spoon is just sharp enough to get the skin off but too dull to waste any ginger.
  2. When grating the ginger, put a sheet of plastic wrap over the finest screen of a metal box grater. Rub the ginger over the surface until you have enough for your recipe, then pull the plastic off. The ginger will remain on the plastic. Makes clean-up easier and prevents ginger from getting caught in the grater.
  3. For leftover ginger, thinly slice it and immerse it in sugar-and-water syrup along with a little vinegar. Place it in a tightly sealed container and refrigerate it. It will keep for months.
post comment

navigation
[ viewing | April 2nd, 2005 ]
[ go | previous day|next day ]