Contents
- Flash
- PHP
- Javascript
- CSS
- HTML
- phpBB
- Apache Web Server
- MySQL Database
- Useful Programs
- HTML & CSS
- Graphics
- Server Setup
- PHP & MySQL
Website Development Tips and Tools
Flash
-
Convert SWF files to HTML files
Go to Macromedia Player Licensing and click the Begin the licensing process for the Search Engine SDK › link. Once you sign up they will email you the link to download the swf2html script. There is even a Linux version included! I'm using this to convert a site from being totally in Flash to being powered by CMS Made Simple.
PHP
-
Easily syndicate content of Atom feeds on your website
Javascript
-
Automatically create a page Table of Contents
Use the QuirksMode Table of Contents script.
-
Debug your Javascript scripts by viewing the rendered source
Install the View Rendered Source Chart Firefox extension.
-
Create Pop-ups Without Dead Links
The SitePoint article Create Pop-ups Without Dead Links explains how you can create a pop-up that is both accessible to people with Javascript turned off and has a close link at the bottom of the pop-up for people with Javascript enabled.
CSS
Easily add rounded corners to your page
Use Nifty Corners Cube.
Easily make your stylesheet be formatted nicely
Use the online CSS Formatter and Optimiser.
Don't use numbers in CSS ids
CSS ids will not work with numbers in them. For example: instead of "#3rdcolumn" use "#thirdcolumn".
HTML
-
A Simple Character Entity Chart
A Simple Character Entity Chart - I find this chart very useful when trying to remember the code to use for things like quotes and symbols. -
Character Entity Encoder
Character to entity encoder bookmarklet - If you've ever had problems with your HTML entity codes in textareas or text inputs being converted to the non-ACII text by your browser which causes the entities to be displayed incorrectly on your page, then here is bookmarklet for you! The character entitity encoder bookmarklet will encode all special characters to HTML entities in every text input and textarea on the current page. I have found this to be very useful and timesaving in managing pages on this site in which I use special entities.
phpBB
-
Use EasyMOD to quickly install phpBB mods
Using EasyMOD is a fast convenient way to install MODs to your phpBB forum.
Apache Web Server
Easily set up Name-based Virtual Hosts
Just follow the example for what to add to httpd.conf in the Using Name-based Virtual Hosts section of the Apache HTTP Server documentation.Enable .htaccess files
To enable .htaccess files follow these instructions:
- Open httpd.conf
- Find this section:
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None - Change:
AllowOverride None
to:AllowOverride All
- Restart the httpd server.
Fix 406 Not Acceptable error
Follow the instructions in the Disabling mod_security entry in the TextDrive Knowledge Base.
MySQL Database
Import a large MySQL file
Run the following to import a large MySQL file:
mysql -u USERNAME -pPASSWORD DATABASE < /path/to/sql/file.sql
Beware of using underscores in MySQL database names
For some really odd reason, underscores will sometimes not work in MySQL database names (at least for me). I don't know why this is, but I just wanted to warn you because I wasted an hour of my time try trying to track down a problem that was caused by having underscores in the MySQL database name.
Useful Programs
-
Konqueror makes a good FTP client
I have come to find out that Konqueror is a great FTP client. It is especially useful when you want to upload a bunch of files overwriting the current ones (like a phpBB upgrade). To use its amazing FTP abilities just type: ftp://ftp.yoursite.com/ into the location bar and log in.
- Easily display Mathematical formulas by automatically Translating ASCII math notation to Presentation MathML - Added: 2007-03-14 00:49:10
http://www1.chapman.edu/~jipsen/asciimath.xml
- How To Enable / Use .htaccess / Nice permalinks in Apache Web Server on Windows - Added: 2007-04-05 23:55:23
http://blog.taragana.com/index.php/archive/how-to-enable-use-htaccess-nice-permalinks-in-apache-web-server-on-windows/
- Use Alertra to test if your website is really down - Added: 2007-05-09 12:02:17
http://alertra.com/
- Easily reverting back to previous subversion revisions - Added: 2007-05-10 10:39:39
http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.2
- Full Web Building Tutorials - All Free - Added: 2007-05-15 12:18:03
http://www.w3schools.com/
- Upload files using flash and javascript - SWFUpload - Added: 2007-05-16 12:34:31
http://swfupload.mammon.se/
Javascript
Modified: 2007-05-18 17:27:50
- kuler: Free Color Schemes - Added: 2007-05-24 12:31:55
http://kuler.adobe.com/
HTML & CSS
- Freebies Round-Up: Icons, Buttons and Templates - Added: 2007-06-04 22:10:45
http://www.smashingmagazine.com/2007/05/24/freebies-round-up-icons-buttons-and-templates/
Debugging Tools
Modified: 2007-06-14 12:19:45
- IFRAME scroller - Added: 2007-05-18 17:28:15
http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm
- HTML Entity Character Lookup - Added: 2007-06-04 14:23:15
http://leftlogic.com/lounge/articles/entity-lookup/
- Internet Explorer Developer Toolbar - Similar to Firebug, but for IE - Added: 2007-06-14 12:21:33
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
- Fiddler HTTP Debugging Proxy - Added: 2007-06-14 12:22:40
http://www.fiddlertool.com/fiddler/
- Button Width in IE - Added: 2007-06-18 20:48:17
http://jehiah.cz/sandbox/button.html
- Web Development Bookmarklets - Added: 2007-06-22 11:16:09
https://www.squarefree.com/bookmarklets/webdevel.html
- JavaScript Shell: A command-line interface for JavaScript and DOM. - Added: 2007-06-22 11:16:50
https://www.squarefree.com/shell/
- CSS Redundancy Checker - Added: 2007-07-06 17:43:20
http://code.google.com/p/css-redundancy-checker/
- JavaScript Development Environment able access the current page - Added: 2007-06-22 11:21:12
https://www.squarefree.com/bookmarklets/webdevel.html#jsenv
- DOM JavaScript Cheat Sheet - Added: 2007-06-28 15:21:36
http://www.wait-till-i.com/index.php?p=460
- Effect.Resize: script.aculo.us effect to easily resize elements - Added: 2007-06-29 17:31:10
http://wiki.script.aculo.us/scriptaculous/show/Effect+Resize+Extension
- Install PHP5 Apache MySQL on Windows : WAMP5 - Added: 2007-06-17 19:19:24
http://www.wampserver.com/en/
Graphics
- GIMP - Changing Background Color - Added: 2007-06-29 17:30:06
http://www.gimp.org/tutorials/Changing_Background_Color_1/
- Over 230 High Quality Royalty Free Icon Sets :) - Added: 2008-04-11 08:18:34
http://www.freeiconsdownload.com/
- Free Online Book: Getting Real: A smaller, faster, better way to build software - Added: 2007-06-28 15:00:25
http://gettingreal.37signals.com/toc.php
Use htaccess to redirect example.com to www.example.com
Modified: 2007-08-25 00:51:33
From htaccess to redirect domain.com to www.domain.com:
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=permanent,L]
If you have a subdir with a .htaccess in it you will need to put it in there also. For example in /silverstripe/.htaccess I have this:
# Force www.elijahlofgren.com instead of elijahlofgren.com
# RewriteBase /
RewriteCond %{HTTP_HOST} !^www.elijahlofgren.com$ [NC]
RewriteRule ^(.*)$ http://www.elijahlofgren.com/silverstripe/$1 [L,R=301]
# RewriteCond %{HTTP_HOST} ^elijahlofgren\.com
# RewriteRule ^(.*)$ http://www.elijahlofgren.com/$1 [R=permanent,L]
Server Setup
Settting up Postfix on your local Dev server to so you can send mail via PHP using a remote server
Modified: 2007-07-09 17:38:05
By following HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials - View Single Post - The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box? and then How to set up a mail server on a GNU / Linux system: MTA: Postfix I ended up with this in my /etc/postfix/main.cf file:
... myhostname = kubuntu alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = elijahlofgren.com, kubuntu, localhost.localdomain, localhost relayhost = elijahlofgren.com mynetworks = 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = masquerade_domains = elijahlofgren.com masquerade_exceptions = root
And now I can send email from my development box using PHP. :)
PHP & MySQL
- MINUS query in MySQL - Added: 2007-07-16 21:55:01
http://www.terminally-incoherent.com/blog/2005/08/19/minus-query-in-mysql/