Dileepstanley’s Weblog

…………………………………….

Compare It

June 26, 2009 Posted by dileepstanley | Music | | No Comments Yet

A worried woman went to her gynecologist and said:

One of my friend send me this Email.I think It is a good one for every one to read.Please take only the right thinking .don’t be negative

A worried woman went to her gynecologist and said:
‘Doctor, I have a serious problem and desperately need your help! My baby is not even 1 yr. old and I’m pregnant again. I don’t want kids so close together.’

So the doctor said: ‘Ok and what do you want me to do?’

She said: ‘I want you to end my pregnancy, and I’m counting on your help with this.’

The doctor thought for a little, and after some silence he said to the lady: ‘I think I have a better solution for your problem. It’s less dangerous for you too.’

She smiled, thinking that the doctor was going to accept her request.

Then he continued: ‘You see, in order for you not to have to take care of 2 babies at the same time, let’s kill the one in your arms. This way, you could rest some before the other one is born. If we’re going to kill one of them, it doesn’t matter which one it is. There would be no risk for your body if you chose the one in your arms.

The lady was horrified and said: ‘No doctor! How terrible! It’s a crime to kill a child!

‘I agree’, the doctor replied. ‘But you seemed to be ok with it, so I thought maybe that was the best solution. The doctor smiled, realizing that he had made his point.

He convinced the mom that there is no difference in killing a child that’s already been born and one that’s still in the womb. The crime is the same!

March 5, 2009 Posted by dileepstanley | Uncategorized | | No Comments Yet

ajax and without ajax

View the following link to usage of javascript and ajax for building a page .This can work under with or with out java script enabled

January 16, 2009 Posted by dileepstanley | Ajax, java script | | No Comments Yet

How to solve the IE 7 ajax caching (method:get)

some times Internet Explorer cached the ajax requests and it creates problems .i used prototype library for a an ajax request .it works fine for firefox and opera.but creates problems with IE 7.then i add useless date value to query string for making the request unique .It solves my problem.and works fine .

the example code :

var date=new Date();

new Ajax.Request(’sample.asp?id1=’+Current_Id+’&id3=<%=IdCategoria%>&id2=’+id2+ ‘&date=’+date.getTime(),
{
method:’get’,onSuccess: function(transport)
{

}

}

January 16, 2009 Posted by dileepstanley | Ajax, IE 7, Prototype | , , , , | No Comments Yet

Prevent Some of the sql injection possiblities

hai

Yester day i red an article on http://forums.iis.net/p/1148917/1869844.aspx .This is about sql injection attackes.There i found some thing usefull for others who are trying to find some thing for prevent sql injection hacker attacks.

use [Master]

GO

DENY SELECT ON [INFORMATION_SCHEMA].[TABLES] TO [Public]

DENY SELECT ON [INFORMATION_SCHEMA].[COLUMNS] TO [Public]

DENY SELECT ON [INFORMATION_SCHEMA].[VIEW_COLUMN_USAGE] TO [Public]

DENY SELECT ON [INFORMATION_SCHEMA].[CONSTRAINT_COLUMN_USAGE] TO [Public]

DENY SELECT ON [INFORMATION_SCHEMA].[COLUMN_PRIVILEGES] TO [Public]

GO

use [Your_Database_name]

GO

DENY SELECT ON [sys].[columns] TO [Your_User]

DENY SELECT ON [sys].[tables] TO [Your_User]

DENY SELECT ON [sys].[syscolumns] TO [Your_User]

DENY SELECT ON [sys].[sysobjects] TO [Your_User]

DENY SELECT ON [sys].[objects] TO [Your_User]

DENY SELECT ON [sys].[syscomments] TO [Your_User]

GO

 

<%
str = request.servervariables(”QUERY_STRING”)
if instr(str, “;”) then response.redirect(”/404msg.asp”)
str = Request.Form
if instr(str, “;”) then response.redirect(”/404msg.asp”)

str = request.servervariables(”QUERY_STRING”)
if instr(str, “–”) then response.redirect(”/404msg.asp”)
str = Request.Form
if instr(str, “–”) then response.redirect(”/404msg.asp”)

str = request.servervariables(”QUERY_STRING”)
if instr(str, “‘”) then response.redirect(”/404msg.asp”)
str = Request.Form
if instr(str, “‘”) then response.redirect(”/404msg.asp”)
%>

 Execuse me for my bad English

any way Ciao tutti

June 23, 2008 Posted by dileepstanley | asp site security, sql injection, sql server security | , , | No Comments Yet

Antispy check antispyware

hai all

yesterday some time i allowed a web site to run a video .it install a spware on my machine .for installing a new spy ware it always a tray icon blinking.it is terrible to say no good anti virus software can not find and block it.today i found a an anti malware made malwarebyte’s  antimalware 1.17.it is enough and good for cleaning antispy check spy ware.

 

ok guys

 

June 19, 2008 Posted by dileepstanley | Uncategorized | | No Comments Yet

It is my first blog ever on inter net

hello ever body

it is my first in my life as a blogger.my intention for register as a blogger with wordpress for discuss some thing about my experinces and tricks and tips i used when i am programming.Also i want to share those pages on web sites i found use full for progrmmers.

ok dears

 

June 17, 2008 Posted by dileepstanley | Uncategorized | , , , | No Comments Yet