If you’re like me, you have a Windows desktop, but control a number of Linux servers. For Windows IDEs that have FTP, but not SFTP. For any that this helps, I have found a way to use SFTP with PSPAD (or any IDE that has FTP support, but not SFTP support), it’s great if you have only one linux server:
Uncategorized
Run two SSL sites on a single IP and port on Apache
The way Apache works, this cannot be done. Let me explain why:
Consider this request header for https://www.modphp.org/:
Read moreRun two SSL sites on a single IP and port on Apache
Weird Internet Explorer Print Bug Involving IFRAME and TABLE
I ran into a very strange bug with printing in IE. It happened in an online calendar program that I work on. Somebody showed me a printed page from IE 6 where the attendees, which are in an IFRAME, had this big 6 inch left margin. The table was pushed off the right edge of the paper, you couldn’t even read it. On screen, the page looked just fine, there was a 10 pixel border. I printed the same page in Firefox and it printed just fine.
Read moreWeird Internet Explorer Print Bug Involving IFRAME and TABLE
Throttle down your bandwidth
Just found this, think I might try it out sometime:
http://www.xk72.com/charles/index.html
See what your site looks like with low bandwidth or latency. Also, Charles can act as a man-in-the-middle for HTTP/SSL communication, enabling you to debug the content of your HTTPS sessions, but I would recommend Mozilla LiveHeaders (http://livehttpheaders.mozdev.org/) for viewing headers, post data, etc..
Problems with multiple versions (4.0, 4.1) with mysqld_safe
I am running mysql-standard-4.0.20-pc-linux-i686 and mysql-standard-4.1.12-pc-linux-gnu-i686 on the same machine, installed binaries.
I had a heck of a time running both of these versions at once. And not for the typical reasons: port collision, sock file, etc… I have that all figured out, I should be able to run two versions of MySQL on the same machine. I am running 4.0 out of /usr/local/mysql and trying to run 4.1 out of /usr/local/mysql-4.1 and cannot get it working for the life of my, using the mysqld_safe script.
Read moreProblems with multiple versions (4.0, 4.1) with mysqld_safe
Used cpan2rpm to create perl-Date-Set RPMS
I had the hardest time finding pre-made perl-Date-Set RPM, which I needed for a project I am working on. So, I made them myself with cpan2rpm.
It was really easy to do. Here is the result:
CVS tricks
Show all modules:
I lifted this from my friend Joels website, www.gadgetwiz.com, and have found myself using it many times:
List all directories in cvs
I accidentally typed this command and recieved a list of all the cvs root directories available for checkout. Other commands to list modules did not work, but this one did. You must be in a CVS directory first.
Code:cvs -n co .
Recursively show all files:
Have you ever worked in a CVS module, added a deep tree of directories and files and needed to add them to CVS. If you have, you may have had to go through a painful process of adding one dir at a time, then all the files in that dir, then repeat until you’ve done all the dirs. I have a solution for that:
Just run this over and over again, until all files are added:
Howto install Apache with ModSSL and PHP from source
Code:
# choose a source dir:
cd /usr/local/src
# there are lots of mirrors, get apach_1.3.33.tar.gz from one of them
# you can get a random mirror at http://httpd.apache.org/download.cgi
# here is one for your convenience:
Read moreHowto install Apache with ModSSL and PHP from source