A site for solving at least some of your technical problems...
A site for solving at least some of your technical problems...
I worked on a site a week ago or so and checked it with IE 8 but not IE 7...
The customer then contacted me saying that some images were "completely" off. (about 30 pixels)
The image being off was actually centered. IE 7 and older does NOT properly reset the text-align CSS settings. So the parent setting leaks in the children instead of the chidren using the default as they should. So that one was easy, I just added a text-align: left; in the next <div> statement and got that to work right!
I had a little project which requirements was an Adobe Flash animation that calls a JavaScript function to close a browser window.
With the newest version of Internet Explorer, it will first ask you whether you want to let the script close your window... that's a problem when you'd like that process to be smooth (i.e. without user interaction.)
I wrote a small shell script (bash) to make a backup of one of my hard drive to another. Really, a very very simple script. It has one rsync command per partition. So I have one variable to define all the options and one rsync call per partition:
This is a test of a product all by itself without any feature.
Let's see how the Order charge goes through in this case.
This is useless, go ahead and buy 10! 8-)
I have been wondering, for a while, why is it that I get errors about DEFLATE no being known.
[Sun Apr 11 22:41:23 2010] [error] an unknown filter was not added: DEFLATE [Sun Apr 11 22:48:54 2010] [error] an unknown filter was not added: DEFLATE [Sun Apr 11 22:50:23 2010] [error] an unknown filter was not added: DEFLATE
I should have thought of it, the deflate module was not installed. That was it, but oh well... 8-)
To tweak your Apache setup, use the following two lines:
sudo a2enmod deflate sudo /etc/init.d/apache2 force-reload
And you'll get rid of those ...
Today I learned that not defining a variable in PHP would generate a notice error.
I had been wondering, why it is that so many people in Drupal define their variable or check them with isset()? That's why. In a way it is terrible that you can use a variable that does not exist and just get NULL, on the other hand, quite often that's because you intended to use another variable... (i.e. $create instead of $created, you declare $bool in one function and use it again in another, etc.)
This applies to objects, array indexes, and just plain variables. If you write:
Today, I was trying to run psql from a program when I got this error:
Insecure $ENV{PATH} while running setuid at ...
At first, I thought that psql would be testing something about the user, but in fact, psql is a perl script that runs in secure mode. In other words, this applies to any tool written in perl when they use the -T command line option and potentially tainted variables are considered insecure.
The perl interpreter makes sure that the current user identifier is the same as the effective user identifier. When there is a mismatch, the interpreter breaks with that error.
In ...
A long time ago, I got http://www.m2osw.com ... and I created a website (you know a 1.0 kind of a website.) It look like an abomination, and I would have prefered to lose it...
Well... there are time machines that are not perfect but will show you some of the pages of my company's website from way back (it started in 2001).
http://web.archive.org/web/*/m2osw.com
And, please, don't laff! Okay... whatever... Hey! Stop it! Or write a comment below, I'd like your input...
Recent Posts on The Linux Page: