Users of the web all have different screen sizes, and not everyone uses the browser in the maximised state, especially those with large screen sizes. There are also a wide variety of portable devices with web browsing capabilities e.g. the Nokia n800, n810 and of course the iphone. Even many of the Portable Keep reading »
Redirecting using PHP is very simple. You just need a single line of code in your php page. I’ll split it out to two lines in the example below for the sake of clarity. Create a text file, calling it redirect.php. Add the following content to it:
<?php
$URI = $_REQUEST['to'];
Header ("Location: $URI");
?>
In the above example, we use the ‘to‘ parameter to specify our target URI.
To use this in your pages your link would look like the following:
<a href="http://www.example.com/redirect.php?to=http://www.vftw.com">Visit vftw.com</a>
You’d obviously replace example.com with your own domain, or you can omit it if you are referring it from the same domain.
Make sure there are no spaces or line-breaks before the <?php. If you are modifying the HTTP header, you are not allowed to write the the stream before that line.
Base is the database package that comes with openoffice.org 2.x. It seems quite OK as a desktop database package. But, I’ve found that resources for macro editing in basic for base are quite scarce. This is quite a problem since the editor it comes with doesn’t have intellisense/autocomplete. The uno documentation is way too big to be of any real use as a reference document. So I thought I’ll just write a beginners tutorial for connecting to the base database that is currently open from a form using openoffice.org basic macro. Keep reading »
If you have a working instance of apache and a working instance of glassfish, you can get them working together, i.e. have apache handle all the incoming http and let it forward any jsp or servlet calls to glassfish.
You’ll need to dowload and setup mod_jk for apache.
Then you’ll need to follow the instructions in
http://weblogs.java.net/blog/jfarcand/archive/2006/03/running_glassfi_1.html
As per the instruction, you will need the tomcat-ajp.jar file from Tomcat 5.5.16.
NOTE: The latest version of Tomcat 5.5 at the time of writing this is 5.5.25 and it will not work. You will get an error message like NoSuchMethodError getContentLengthLong in your glassfish log. So, save yourself a lot of time and frustration and stick to 5.5.16.
The rest should be obvious from the instructions.
Update: Looks like the tomcat-ajp issue is fixed for version 2.1, and it works with Tomcat 5.5.26. Thanks Amy for the update. I didn’t even know my post had made it to the glassfish issue tracker! Though, perhaps I should have followed open source developer etiquette and entered the issue in there myself!
Best Programming Practices For Web Developers
http://www.ibm.com/developerworks/web/library/wa-cranky76/?ca=dgr-btw01BetterWebpages
At first glance it seems drupal is more for servers where you have complete control. Especially since you need to have table locking rights in mysql, and the ability to run cron jobs.
Why Drupal WYSIWYG Makes MediaWiki Obsolete & How To Convert