How to remove iframe border (Internet Explorer)

Ok so any normal human will add the following inline css
style="border:0"
to remove the border from an iframe.
The problem is that it doesn't work on IE 6.

You have to use the following iframe attribute
<iframe frameborder="0"/>
and you'll get rid of the 3d looking border.

Web optimizations - part 1 - What is a cluster?

I'm not going to talk about a star cluster obviously, (although I'd like that :) ) but about a server cluster. Basically we're talking about a bunch of servers that work together to perform certain tasks.

These tasks can vary from doing file operations, running databases, to doing some sort of complex math calculations.

IE doesn't start cookies in iframes

If you're using iframes and it appears you cannot start sessions or set cookies in Internet Explorer (IE), then most likely you have an issue related to the P3P header.

In PHP you'll probably be able to fix the problem by adding the following line at the beginning of your script (for other languages find and use the equivalent):

header('P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"');

gd-png: fatal libpng error: zlib error

If you upgrade from php4 to php5 you'll see the following error when you're trying to save png files.

gd-png: fatal libpng error: zlib error

The thing is that in php5, the quality range changes for imagePNG from 0-99 to 0-9. therefore you need to change your code to relect this, e.g.

imagepng('','', 9);

Web optimizations - cluster solution needed?

Ok, this is a very wide topic but I will try to touch some corners in the event somebody will need such ideas. This will be a series of articles that I will write as time permits.

What will be covered in these series:

- what is a cluster? http://www.at-byte.com/technology/web-optimizations-part-1-what-cluster
- why would i need a cluster? http://www.at-byte.com/technology/web-optimizations-part-2-why-would-i-n...
- web server optimizations

Using library embedded fonts in Actionscript 3.0 / 2.0

This is a small tutorial on how to use embedded fonts in the library with Actionscript 3.0 / 2.0.

You have to follow the next 4 steps to correctly embed and use library fonts in your code.

1. Add the font to the library - right click the library panel and select 'New Font'. From the 'Font' drop down select the font you want to embed and give it a name in the 'Name' field. The name can be the same with the font.

How to trim a video using ffmpeg

I took a while to find how to trim a video using ffmpeg.

ffmpeg -i video.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:04 trimmed_video.avi

Will trim the video to 4 seconds starting from the beginning.
The -vcodec , -acodec options are required so that ffmpeg knows in what video/audio format you want for the new video.

Pages

Subscribe to