Search This Blog

Thursday, April 22, 2010

Java script alert box message box multi line

<html>
<head>
<script type="text/javascript">
function disp_alert()
{
alert("How are you ?" + '\n' + "I hope you are fine.");
}
</script>
</head>
<body>

<input type="button" onclick="disp_alert()" value="Show" />

</body>
</html>

java script message box

<html>
<head>
<script type="text/javascript">
function show_alert()
{
alert("Hi, How r u");
}
</script>
</head>
<body>

<input type="button" onclick="show_alert()" value="Click Here" />

</body>
</html>

Tuesday, April 20, 2010

Logo Tutorial : Learn LOGO language

Logo Tutorial

logo language

Learn LOGO language

LOGO is a computer programming language used for functional programming

About Logo:
Logo is a language to do draw and limited mathematical calculation. This is manly used to developed commuter interest ,language skill, under stand  in a new computer user / child. This language primary purpose was to teach children to familiar with computer programming.

History:
Logo was developed in the late 1960s at Bolt Beranek and Newman, Inc., in Cambridge, MA by W. Feurzeig, D. Bobrow and S. Papert.

Language Important command :

cs - clear screen
control +c  to stop a loop process.
bye - exit from logo.

Drawing Commands
The simple Logo drawing commands move the turtle forward and backward and turn it right or left. The commands and their abbreviations are given below:

fd move forward
bk move backward
rt move right
lt move left

No try this :

fd 60 rt 120 fd 60 rt 120 fd 60 rt 120

to save time the above command we will write as

repeat 3 [fd 60 rt 120]

The square brackets indicate that the enclosed commands are to be executed three times.

Logo has a number of other drawing commands, including those shown below.

pu penup

The pendown and penup commands tell the turtle to leave ink on the screen as it moves or not leave ink, respectively.

ht hideturtle
st showturtle

The hideturtle and showturtle commands hide or show the turtle but do not affect its ability to leave ink as it moves.

home

The home command causes the turtle to return to the center of the screen.

label

The label command takes a single word as a quoted string (e.g. ``a_string) or a list of words in [] brackets without quotation (e.g. [a string of letters]) and prints them on the graphics window at the location of the turtle. (Try them!)

setxy

The command setxy takes two arguments, treats the first as the value of the abscissa (horizontal axis) and the second as a value of the ordinate (vertical axis). It places the turtle at these coordinates, possibly leaving ink as it does so.

Now try and see What kind of figure does the following command sequence produce?

cs pu setxy -60 60 pd home rt 45 fd 85 lt 135 fd 120

Saturday, April 17, 2010

SQL Update query statment

SQL Update query statment
With SQL , The UPDATE function allows you to update a single record or multiple records in a table.

update syntax as is :
UPDATE table1
SET field1 = Value
WHERE field2="XXX";
in above condition filed1 row of table1 will be update with value where field2 value is "XXX".
In update function only one table will be use , if you want to update with multiple table condition then use WHERE EXISTS condition.
Example is :

UPDATE Table1
SET Table1.fieldename1 =
( SELECT table2.name
FROM table2
WHERE table2.fieldname2 = table1.fileld2)
WHERE EXISTS
( SELECT table2.field2
FROM table2
WHERE table2.field2 = table1.field2);

SQL Find Duplicate Data

This is very interesting SQL query to find exact no of same / Duplicate data in a row of table.

To -Find duplicate value in Field

SELECT Filed1,
COUNT(Field1) AS CountField
FROM table
GROUP BY Field1
HAVING ( COUNT(Field1) > 1 )

To -Find field have no duplicate Value

SELECT Filed1,
COUNT(Field1) AS CountField
FROM table
GROUP BY Field1
HAVING ( COUNT(Field1) = 1 )

Thursday, April 15, 2010

vista not recognizing usb pen drive

vista not recognizing some usb drive:-

windows vista type in search box *.1 there is one file you find in windows sub directory. Delete as administrator . Now insert and using usb drive .
if you have any other issue leave a comment to get a solution.

Wednesday, April 14, 2010

Solved regedit disabled by administrator

For enable regedit there are many option , here I am giving some option you can try it .

1st option is:
Click Start -> Run -> gpedit.msc -> User Configuration -> Administrative Templates -> System -> Prevent access to registry editing tools -> Right Click Properties -> Set it to Not Configured.

2nd option is :
Click Start -> Run. Type this command in Run box and press Ok.
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0

Then a prompt will come up with this question:
Value DisableRegistryTools exists, overwrite (Y/N)?
Type yes and press Enter key

After u did that also type this command in the run box and press then enter key

REG add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0

Then it will also come up with the question:
Value DisableRegistryTools exists, overwrite (Y/N)?
Type yes and then press Enter key.