Archive for August, 2005

Absolute positioning

Tuesday, August 23rd, 2005

[imported from Bloglines]

Creating a good, standards compliant layout that works across browsers is very difficult.

I was having trouble understanding why absolute positioning wasn’t working relative to a container I had.. you have to set the containers position to relative because the position is calculated using the “nearest positioned ancestor”

http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-position

Quote:
9.8.4 Absolute positioning

Finally, we consider the effect of absolute positioning. Consider the following CSS declarations for outer and inner:

#outer {
position: absolute;
top: 200px; left: 200px;
width: 200px;
color: red;
}

#inner { color: blue }

which cause the top of the outer box to be positioned with respect to its containing block. The containing block for a positioned box is established by the nearest positioned ancestor (or, if none exists, the initial containing block, as in our example). The top side of the outer box is ‘200px’ below the top of the containing block and the left side is ‘200px’ from the left side. The child box of outer is flowed normally with respect to its parent.

IE PNG revisited

Tuesday, August 23rd, 2005

[imported from HMG Intranet WebDev Wiki]

I have been looking for a generic solution to the IE PNG issues (i.e. it can’t display 24bit properly). However all the solutions seem to have at least one problem. The latest was WebFX PNG behaviour - it works alright except the filter which renders the PNG can’t do repeated backgrounds on either axis. i.e. so it’s not good for <div> backgrounds (this is a drawback of the AlphaImageLoader)

Belkin F5D7230-4 Wake On Lan (WOL)

Friday, August 19th, 2005

[imported from Bloglines]

I have recently purchased one of these, I would’ve bought the Linksys WRT54G but it was out of stock at aria

Unfortunately I can’t get it to pass on a WOL “Magic Packet” from the Internet & broadcast it on the LAN!

Apparently, sveasoft do a custom firmware that supports this but I don’t know if it will work on my router!

Mambo

Friday, August 19th, 2005

[imported from Bloglines]

The Mambo core dev team has split from the original project due to issues surrounding the formation of a Mambo Foundation by the Miro CEO and appointment of himself and hand picked people to it!

I have recently been evaluating Mambo as a possible candidate to run the hmgpaint.com website that I have been tasked with creating. It seems well suited and had a massive community @ mamboserver.com forums, it’s a shame that the new forums will have to be populated from scratch

opensourcematters.org

phpMyAdmin & Bloglines gripe

Wednesday, August 17th, 2005

[imported from Bloglines]

*sigh*

Typed a blog entry (first ever in this Bloglines account), it lets me do it, click “Publish to Blog” and voila, the entry is gone and a message telling me to set something up before I can publish stuff… well that’s just great - why the hell did it let me type it in the first place?!?

Anyway, here’s the crux of what my original post was about:

phpMyAdmin and server statistics (”show status”)

I’ve been using MySQL 5.x beta’s now for a while (both the server and embedded server) and noticed that the “show status” command was returning rather odd statistics, low query counts etc. I noticed that this was also the case with the phpMyAdmin statistics page. I thought it was a bug in MySQL 5.x since it’s still in beta… so time passes, I keep installing the newer versions, same problem, never fixed.. strange!

Anyway, I realised that it’s showing session statistics vs global statistics. Examing the mysql.com documentation I found that the command now takes an argument: “show [session/global] status”.

You can fix phpMyAdmin to provide global statistics like it usually does by modifying the server_status.php file and changing the “SHOW STATUS” to “SHOW GLOBAL STATUS”.

PNGs

Tuesday, August 16th, 2005

[imported from HMG Intranet WebDev Wiki]

I thought I was going mental just now, IE was displaying some PNGs with transparency (IE6)

Turns out that it can display PNG-8 which uses binary transparency (as opposed to alpha)

Silly me!