Before I forget to look for this silly sql dump code over and over in my computer- I’ve decided to put it right here inside this blog 😉
Setting up MySQl Connector- Java for Windows Server 2003
There’s a JoDBC zipped file beneath this document.
- Unzip/Unrar the file
- Place the folder for example “c:\jdbc”
- Right click on my computer > Advanced >Environment Variables
- Under System Variables > Select “New”
Varibale Name: CLASSPATH
Variable Value: .;C:\jdbc\mysql-connector-java-5.0.4-bin.jar
That’s it!… You’re done!
Download JDBC
Submit Once- Form Validation Javascript
If you have forms on your site, you know they are extremely prone to abuse by users. Apart from incomplete or bogus entries, the most common offense is duplicate submissions by the same individual, caused by pressing the “Submit” button over and over and over again. Well, this DHTML script has a cure for the problem, by allowing you to disable the submit (and reset) button once it is pressed once.
Note that the disabling effect is applied only to IE 4+ and NS 6+ browsers. All other browsers will still be able to sneak by and submit the form (degrades well). Also, the disabled buttons can easily be resurrected by reloading the page.
Step1: Insert the below validation code into the <head> of your page:
<script>
/*
Submit Once form validation-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100’s more DHTML scripts, visit http://dynamicdrive.com
*/function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down “submit” and “reset”
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()==”submit”||tempobj.type.toLowerCase()==”reset”)
//disable em
tempobj.disabled=true
}
}
}
</script>
Step-2 Inside the form in question, add the part in red to the <FORM> tag, as follows:
<form method=”POST” onSubmit=”submitonce(this)”>
Stages of development, from an ovum & spermatozoon to a newborn
The following information is approximate. Every pregnancy is different. Development varies from fetus to fetus. Do not rely on this information for medical decisions.
The process leading up to the birth of a newborn baby can be divided into many steps:
About 1 month before conception: Almost all adult males produce thousands of spermatozoa (male germ cells) each second. It would take about 500 of them lined up in a row to total 1 inch in length. They take a month or so to travel from a testicle, through a long tube called the “vas deferens,” to reach a small reservoir inside the man’s prostate gland. Here, semen (a mixture of spermatozoa and various fluids) is formed. Each spermatozoon contains human DNA. They certainly appear to be living organisms. As seen in a microscope, they seem to be moving energetically with the sole motivation of fusing with an ovum. Most people consider them to be a form of human life, because they appear alive and contain human DNA. Some scientists define “life” so strictly that spermatozoon are not considered alive. Its movements are due to chemical reactions. |
My New PhotoBlog section
Today I spent quite a significant amount of time in building up a photo blog site of my own. It’s a prolonged things which I should have done quite a long back!
Anyway, guys you are most welcome to visit my photoblog section at http://blog.tweenpath.net
Spent the day for a good wordpress theme and a plugin. NG Gallery is awesome!!!!
Have good time!!!
Sending and Receiving mail using Command line through telnet
Ok first off im no good at writing tutorials so feel free to flame me (hey that rymes). Anyway in this tutorial i will basically show you how to send and receive email via the command-line terminal emulation program called Telnet. Now where shall i start, hmm.. Sending Email!!
Grameenphone Customer Service!!!!
Guys, I did filed a complain about b/w issue on last Monday- Jul-07 through their website feedback form. On the very next day a sweet tuned customer care operator called me and guess noted my complains apparantly quite seriously!
My issue is simple- I get a tremendous high speed at my Dhanmondi office, but get a frustratring sluggish speed at my home. Well, precisely at office location ~18-20 Kb where as at my home it downs to ~2-3 Kb… is this acceptable?
Anyways, On tuesday, I received several calls from different technical support engineer from GP. However, this is good, least they’re trying to figure out.
But, guys this is Thursday! and not a response further from any of their customer support of technical support….! So, what will I assume? They’ve no plans to fix this out.
Haire Old Dhaka’r public hoia ei bhuganti bhugte hobe.
Last but not the least- I’ll try to observe this situation another 2-3 weeks. Even after that they do nothing- I’ll simply discontinue their service.
Dovecot Setup using webmin
Step 1 Networking and Protocols
- In “Server mail protocols”- select IMAP and POP3
- You can also select IMAP (SSL) and POP3 (SSL) if you plan to server through SSL
Step 2 Mail Files
- I decided not to store mail in the default location which is /var/mail
- In my earlier postfix set up I mentioned that I was planning to store user’s mail in /home/mail locaiton
- For this a short-cut path was created too using ln -s /home/mail /var/spool/mail (don’t worry you don’t have to do all these steps unless you did not follow the postfix set up section)
- So, now we need to tell Dovecot from where he’s going to serve mails to the users. Let’s start-
- Mail Files > Mail File Location > Other Dovecot Location > mbox:~/mail:INBOX=/home/mail/%u
Now telnet from your windows command prompt to-
telnet SERVER_IP 110 then enter
user XXXX then enter
pass ***** then enter
retr 1
Guess it will show the first mail in the box in command prompt 🙂
That’s it!
BTW, there’s also a good Mail_locaiton text for Dovecost available on their website too! Here it is-
http://wiki.dovecot.org/MailLocation
A good Webmail with least complications and have beautiful interface- MailBee
I was just tired on working webmail projects with-
- Horde
- Neomail
- Squirrelmail (I did customize quite a long back!)
- DWMail
- Uebimiau
- MDaemon with IIS integration
And so many!!!!!
Anyway, my eyes were bored in seeing those interfaces on and on, just looked for some new thingy available now a days… and there i found Afterlogic’s MailBee. Though worked with the lite edition- which is POP3 and SMTP supports only, but it is quite handy for 6 reasons-
- It has both .NET and PHP version. Which is good for setting up on IIS or Apache version
- The config file is on XML
- It is very fast to load
- Has excellent Skin/Template bundled
- Only a single parameter to configure!
- No database required (for lite version, though there is a pro version which is integrated with DB both MS and MySQL
And finally I’m really impressend on it’s performance.
Thanks to afterlogic!!!