< Browse > Home / Archive by category 'Web development'

| Mobile | RSS

sandeep.chada

Top 10 things that annoy programmers

Hi,
I was going through some websites today when I came across this article and wanted to share it with all of you.
Its really funny, but mostly true. Read ON….
Programmers all have their pet peeves. Whether it’s scope creep, Hungarian notation, or smelly coworkers, we’ve come to accept that there are certain nuisances that come [...]

[ More ] May 27th, 2010 | No Comments | Posted in Uncategorized, Web development |
pradeep.assrr

Restrict content copying from the website

Please find the below code snippet for restricting content copying in a website
<html>
<head>
<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Expires” CONTENT=”-1″>
<META HTTP-EQUIV=”imagetoolbar” CONTENT=”no”>
<script type=”text/javascript”>
function clearData(){
window.clipboardData.setData(’text’,”);
}
function ccb(){
if(clipboardData){
clipboardData.clearData();
}
}
setInterval(”ccb()”, 1000);
</script>
</head>
<body onload=”ccb()” onbeforeprint=”return false” onprint=”return false” onbeforecopy=”return false” oncopy=”return false” onbeforecut=”return false” oncut=”return false”>
Pradeep ASSRR
</body>
</html>
Restricting content copy from a website involves the following:
1. Ctrl + C should be disable
2. Print screen should be [...]

[ More ] June 21st, 2009 | No Comments | Posted in Web development |
naveen.malla

SMTP Check Port 25 with the Telnet Command

For Example, if we want to sent email to zulfan@kebo.vlsm.org,  frist, we must know about MX for this domain :
# host -t mx kebo.vlsm.org
kebo.vlsm.org mail is handled by 10 kebo.vlsm.org.
# telnet kebo.vlsm.org 25
Trying 202.154.187.9…
Connected to surobuaya.vlsm.org.
Escape character is ‘^]’.
220 howie.eepis-its.edu ESMTP Postfix (Debian/GNU)
And then named of  the sender :
MAIL FROM: <zulfan_hakim@yahoo.com>
250 2.1.0 Ok
If you don’t [...]

[ More ] May 14th, 2009 | No Comments | Posted in Web development |
kiran.tangudu@scubetech.in

windows cron job for running php application in regular intervals

Hi Folks,
This post will help in scheduling a task (php application,or any such) using windows “Scheduled Tasks” which will run at regualr intervals as per our requirement.
My requirement : Migrate a Ms access database (which contains attendance and hosted on windows system) to mysql database (which might be hosted on Linux or windows). Migration have [...]

[ More ] May 1st, 2009 | No Comments | Posted in Php, Web development |
naveen.malla

Configuring Apache for Maximum Performance

Configuring Apache for Maximum Performance
1 Introduction
Apache is an open-source HTTP server implementation. It is the most popular web server on the Internet; the December 2005 Web Server Survey conducted by Netcraft [1] shows that about 70% of the web sites on Internet are using Apache.
Apache server performance can be improved by adding additional hardware resources [...]

[ More ] January 12th, 2009 | 1 Comment | Posted in Php, Web development |
viswanath.gavva

Show mysql query log with firebug

Replace all mysqlquery() calls in your project to debugmysql_query() to see all mysql queries in Firebug console.In general we use db_query function.so we need to change the mysql_query() in db_query() to debugmysql_query().
add the following function in the same page where we wrote db_query function .
if (!function_exists(’debug_mysql_query’)) {
function debug_mysql_query($query)
{
$js_query = str_replace(array(’\\’, “‘”), array(”\\\\”, “\\’”), $query);
$js_query = [...]

[ More ] December 26th, 2008 | No Comments | Posted in Web development |