Friday, January 30, 2004

A nice virus (for a change)

This post at Gentoo-Portage (damn, no permalinks) gave me a nice idea about a virus payload.
I solved the IE problem, it seems Internet Explorer likes to think 100% is more then 100% (but only some of the time), so i have decreased a couple things to 99% to combat this, if anyone else has a problem with IE please tell me, so i can write a virus to fix IE or something.
How about getting a virus to change the IE renderer into Gecko? Or even better install Mozilla and make it the default browser :-P
Posted by André Restivo at 18:00:24 | Permanent Link | Comments (1) |

Thursday, January 29, 2004

New gentoo system

Just installed a new Gentoo here at work. Just for the record this is what I emerged so far:

Base system:
  • gentoo-dev-sources (kernel 2.6.1)
  • xfree (It can't be all just text, can it?)
Window Manager:
  • windowmaker (Best WM hands down)
  • windowmaker-themes (Make it look nicer)
  • wm-icons (... even nicer)
  • gdm (Something nice to greet you when you login)
  • gdm-themes (Even nicer)
Some Apps:
  • imagemagick (convert and other image tools)
  • xlockmore (Nobody touchs my desktop while I'm gone. Note: Had to emerge latest PAM to get it to work under kernel 2.6.1)
  • samba
  • gnome-vfs-extras (To have samba in Nautilus)
  • menumaker (great tool for generating decent menus)
  • acroread (pdfs)
  • nautilus (while this isn't available)
  • lyx (Word what?)
  • firebird (One bird)
  • thunderbird (Two birds)
  • gaim (Keeping in touch)
  • xine (Video)
  • xmms (Sound)
  • cups (Printing - I had my printer installed in 5 minutes)
Hosting:
  • Apache 2
  • PHP 4 (remember to include apache2 in the USE variable)
  • PostgreSQL
  • phpPgAdmin
Some Window Maker DockApps:
  • wmnetload
  • wmclockmon
  • wmmemmon
  • wmcliphist (Essential)
Posted by André Restivo at 16:13:34 | Permanent Link | Comments (0) |

Tuesday, January 27, 2004

CSS Filters

CSS Filters Compendium: Hiding CSS from those nasty browsers.
Posted by André Restivo at 11:57:11 | Permanent Link | Comments (2) |

Sunday, January 18, 2004

Web Style Guide

The Web Style Guide has a lot of great info on building web sites, but this paragraph just pisses me off:
Web Style Guide: One of the visual properties that Cascading Style Sheets are meant to describe is how elements are positioned on the page. Style sheet positioning allows designers to set margins, to position text and images on the page relative to one another, to hide and show elements, and to stack elements so they overlay one another. In theory, style sheet positioning should provide all the design control needed to lay out visually appealing and legible Web pages. In practice, however, browser inconsistencies have rendered style sheet positioning useless, at least for the time being. Though the W3C specifications for style sheet positioning contain most of the tools needed for good design, Microsoft and Netscape have done a particularly poor job of implementing them, so that properties such as borders and margins display quite differently from browser to browser. If you are creating a site for a diverse audience you should steer clear of style sheet positioning for now and design your pages using layout tables as described below. If standards compliance is a priority, use style sheet positioning for page layout, but keep your layouts simple and be ready to accept variability across browsers and platforms.
Standards compliance should always be a priority, and these guys should know it.
Posted by André Restivo at 12:08:41 | Permanent Link | Comments (10) |

Tuesday, January 13, 2004

Color Harmonies (take 2)

Just finished a new Color Picker based on the FreeDesktop Desktop ColorScheme Specification document.

First I'm using a complimentary color scheme composed of 3 different colors. One for background and two for the foreground.

In this colorscheme several ( 2, 3 or 4 ) colors selected so that thay are on opposing sides of the color wheel - for example blue and yellow, red and cyan. Looks that employ such colorscheme usually convey bold and vibrant impression.

The color wheel normally lets to choose the hue component of a color and sometimes also lets you choose the saturation of that same color. Colors can be seen as composed by three components (hue, saturation and lightness).

Hue: Attribute of visual sensation according to which an area appears to be similar to one of the perceived colours: red, yellow, green and blue, or to a combination of two of them.

Lightness: The brightness of an area judged relative to the brightness of a similarly illuminated area that appears to be white or highly transmitting.

Saturation: Colorfulness of an area judged in proportion to its brightness.
So we will use a color wheel to choose hue (as an angle between 0 and 360 degrees) and saturation (as the distance to the center from 0 to 1).

Having chosen the hue of our first color we now have to choose the hue of the other 2. We will do this by adding and subtracting 120 degrees from it. This way each hue is separated by the same ammount from the next color's hue.

The FreeDesktop specification also talks about cold and warm colors:
Colors with hues between green and purple ( values of 120 to 300 ) are considered "cold" while the rest of the colors are considered "warm". One important application of it is that cold colors do not look very good while oversaturated. They tend to look garrish and irritating, so it is generally recommended to desaturate cold colors, to produce more soothing color scheme. At the same time warm colors look their best when oversaturated.
So what we will do is correct the saturation of warm and cold colors so that cold colors have a maximum of 0.4 saturation and warm colors have a minimum of 0.6 saturation.

Next we will choose the lightness of each color. According to the specs:

From the ergonomics perspective it is preferred that foreground interface elements, such as text, should be in stark contrast with background. There are two way to achieve that: hue contrast and brightness contrast (chromatic and achromatic). Human eye has about 5 times higher sesitivity to achromatic differences then to chromatic, therefore achromatic contrast between background and foreground is preferred.

To figure out contrasting color for given background color we should its Lightness value. If Lightness is in upper 50% of the range, then contrasting color will be dark, otherwise - light. Even if Lightness in the middle of the range, it is still preffered to use very dark or very bright contrasting color, instead of using hue contrast.
So what we'll do is allow the user to choose the lightness used for background and foreground colors.

Now that we have the 3 color components we can try out different combinations and see which one looks better.


Posted by André Restivo at 11:29:55 | Permanent Link | Comments (1) |

Color Harmonies (kind of)

Just for the record I've been doing some experiments with color harmonies: method 1 and method 2.

Method 1 - You can choose the hue and saturation from a color wheel. Then select the number of colors you want to generate and the lightness. The page will then generate as much colors as requested with the same saturation and lightness and with equally spaced hues around the color wheel, starting on the selected hue.

Method 2 - Chose the hue from the color wheel, and then choose the saturation and lightness for each of the 3 colors. Each color will have its hue separated by 120 degrees from the next one.

Results still suck ... The theory behind the curtains is here.

Update: New method that I don't feel like explaining right now :-P
Posted by André Restivo at 03:03:16 | Permanent Link | Comments (0) |

Friday, January 09, 2004

Windowmaker flickering bug

Sergio found a way to end with the annoying flickering bug that was compelling me to find a decent alternative to WindowMaker.
Posted by André Restivo at 09:11:39 | Permanent Link | Comments (0) |

Trip to Portugal

Via If-Then-Else: American tourists' description of their trip to Portugal.
Posted by André Restivo at 08:00:26 | Permanent Link | Comments (0) |

Thursday, January 08, 2004

iPod mini

After much speculation the new iPod mini specs are finally out. And forme this is a big disappointment. Why would someone give 249$ for a 4Gb iPod mini when they can get a 15Gb standard iPod for just more 50$.

If only the form factor was really mini. I have to agree with Douglas Bowman on this one, it should have been called the iPod Slightly Smaller. (iPod charts and comparison) .

First rumours talked about a really smaller, 2Gb and 100$ iPod mini. That would have been something.
Posted by André Restivo at 09:21:53 | Permanent Link | Comments (0) |

Wednesday, January 07, 2004

Gnome's new FileSelector

Slowly Linux gets ready for the desktop. This time Gnome its getting a new FileSelector. This was one of the few things that still annoyed me but the first mockups are looking good:

Posted by André Restivo at 08:14:47 | Permanent Link | Comments (1) |
1 2