RSS

Monthly Archives: July 2007

>HP Business Inkjet 2800dtn does not work with Mac!

>After struggling for months to get the HP Business Inkjet 2800dtn working properly with Mac OS X 10.4, I contacted HP support. I told them the printer is extremely slow and fails to properly print moderately complex images.

Result: They told me they know the 2800 does not work well with Mac OS X. Switch to Windows or get your money back. I’m baffled. I explicitly checked for Mac-compatibility when I bought the printer.

However, the HP website still states that the printer is supported. Isn’t this sort of thing illegal?

Advertisements
 
1 Comment

Posted by on 20 July 2007 in 2800, apple, bij, business inkjet, hewlett-packard, hp, mac, macos, macosx

 

>Test your FreeBSD kernel

>If you have modified your kernel configuration, or if you have written a new one, you will want to test it before making it the default kernel for booting. Especially if you don’t have physical access to the console.

This is how you accomplish this:

cd /usr/src
sudo make buildkernel KERNCONF=MYKERNEL
sudo make installkernel KERNCONF=MYKERNEL KODIR=/boot/testkernel
sudo nextboot -k testkernel

For more information, check out:

If it works, make the testkernel the default, and make the previous kernel the backup:

cd /boot
sudo rm -rf kernel.old
sudo mv kernel kernel.old
sudo mv testkernel kernel

 
Leave a comment

Posted by on 19 July 2007 in boot, bsd, freebsd, kernel, test

 

>Don’t put your monitor on your Mac Mini

>
For those of you that:

  • have a Mac Mini
  • use a wireless internet connection
  • experience slow network speed
  • have your monitor on top of your Mac Mini

Try putting the Mac Mini aside, not below your monitor. For me, it greatly improved my network speed.

 
Leave a comment

Posted by on 19 July 2007 in mac, mac mini, mini, wireless

 

>CSV reading from Java

>If you need to process CSV files, for example as a result of an export from Excel or OpenOffice.org Calc, then try CsvReader, an LGPL Java-library. It works remarkably simple:

CsvReader reader = new CsvReader("input.csv");

// Read all headers (the first line)
reader.readHeaders();

// Read all remaining lines
while (reader.readRecord()) {
String productID = reader.get("ProductID");
// etc.
}

reader.close();

I’m using CsvReader 2.0, released in December 2006.

 
Leave a comment

Posted by on 19 July 2007 in calc, csv, csvreader, excel, export, import, java, oo, openoffice.org

 

>Hint: FreeBSD directory layout

>Tip for FreeBSD users: If you want to know your way around on a FreeBSD system, study the hier(7) man page. It explains what the standard directories are on a FreeBSD system, and how they are typically used.

 
 

>Disabling functionality prior to security fix

>
Normally, a security issue is known days if not weeks before a fix is available. In the meantime, systems are left vulnerable.

A solution for this could be to allow the security provider (typically the provider of the original software) to disable or reconfigure certain functionality in the target software.

Of course, this would require the software (such as an OS or application) to be configurable in such a manner, but a lot of applications these days already have thousands of configuration settings. Try about:config in Firefox, for instance.

Some system administrators might even choose to have such work-arounds applied automatically.

An example:

A security issue is found in Apple Quicktime, in combination with Firefox. Before doing anything else, Apple or Mozilla release a work-around patchset for Firefox that just disables the Quicktime plugin in Firefox.

 
Leave a comment

Posted by on 16 July 2007 in patch, security

 

>CSS: Combining text replacement with mouse hover underlining [updated]

>
In website-design, the CSS text-replacement technique is well-known (see for example the article on the subject at Stopdesign).

What I have not seen elsewhere, though, is a technique to make sure the text is not only replaced, but also shows an underline when the mouse is hovered over it, for a typical hyperlink-effect.

Consider the situation where you want to show a header in a special font (which visitor probably won’t have). and you want this header to be clickable. You want the header text to become underlined when hovered over with the mouse, to clearly indicate this is a hyperlink.

The solution is very simple:

  1. make sure your replacement images are placed on a background that has a plain color;
  2. paint the background in your images with the same background color;
  3. in the image, make all pixels transparent that should show up as the underline;
  4. in the CSS, set the background of the images to match the background color;
  5. in the CSS, add a :hover rule that changes the background color for the images to match the text color (instead of the background color).

For a working example, check out this site:

Update (July 23, 2007): Note that in order for this hack to work with PNG images under MSIE 6, you will need to save the backgroud color in the image and use an indexed PNG.