Posts Under ''

A simple newsletter sign-up form using PHP, Ajax and the Prototype JavaScript framework

A simple newsletter sign-up form using PHP, Ajax and the Prototype JavaScript framework. When visitor enters his name and email and clicks on “Sign up” a check is being done if the email exists already and if not it is added. This is happening without refreshing the current page (Ajax). All code is well commented, […]

Read more »


Recommended Add-ons for Firefox

The Firefox Web Browser is the faster, more secure, and fully customizable way to surf the web – The recommened firefox add ons – 1. StumbleUpon – StumbleUpon discovers web sites based on your interests, learns what you like and brings you more. 2. FoxTab – 3D in your browser! FoxTab brings innovative 3D functionality […]

Read more »


Generate PDF files in Java on the fly

iText is an ideal library for developers looking to enhance web- and other applications with dynamic PDF document generation and/or manipulation. iText is not an end-user tool. Typically you won’t use it on your Desktop as you would use Acrobat or any other PDF application. Rather, you’ll build iText into your own applications so that […]

Read more »


The request doesn’t contain a multipart/form-data or multipart/mixed stream, content type header is null

org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn’t contain a multipart/form-data or multipart/mixed stream, content type header is null If you are iterating the items from the multipart request without checking if an http request is encoded in multipart format then you will get this error. If ServletFileUpload.isMultipartContent(request) returns true then you need to get the fields via the […]

Read more »


Postfix Header Checks

Postfix header checks to reject spam mails : /^Subject:.*=\?(big5|euc-kr|gb2312|ks_c_5601-1987)\?/ REJECT No foreign character sets, please. /^(Content-Type:.*|\s+)charset\s*=\s*”?(big5|euc-kr|gb2312|koi8|Windows-1251|ks_c_5601-1987)”?/ REJECT No foreign character sets, please. /^(Content-Type:.*|\s+)charset\s*=\s*”?(Windows-1251)\?/ REJECT Probably a windows virus. /^From:.*\@.*\.r[uo]/ REJECT No Russian or Romanian mail, please. /^From:.*\@.*\.bg/ REJECT No foreign character sets for bg, please. /^From:.*\@.*\.nz/ REJECT No foreign character sets for nz, please. /^From:.*\@.*\.lb/ […]

Read more »