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.

Task Manager has been disabled by your administrator

"Task Manager has been disabled by your administrator" error

When you pres Ctrl+Alt+Del to to open task manager then you may get the following error-"Task Manager has been disabled by your administrator" .
This happens if there is restriction in the registry-
DisableTaskMgr value becomes one(1) instead of zero(0)
In XP Professional it may be blocked via the "Local Group Policy" or "Domain Group Policy".

SOLUTION:-

XP Home Edition:-

1]Start>Run>Regedit>OK

2]Now navigate to the following location:-
Software\Microsoft\Windows\CurrentVersion\Policies\System
Double click on DisableTaskMgr. If it is not present then Create a new DWORD valued named "DisableTaskMgr"
0 = default, 1 = disable Task Manager. Set the value data zero.

3]Restart computer.

XP Professional:-

1]Start>Run>gpedit.msc>ok

2]Double click on Administrative Templates under the User Configuration.

3] Now double click on System. Select Ctrl+Alt+Del options. Double click on it.

4]Select Remove Task Manager. Right click on it and select Properties. If this setting is enabled and users try to start Task Manager, a message appears explaining that a policy prevents the action. So by disabling the policy, you are enabling the Task Manager.( (Click Setting>Select Disabled radio button>Apply/OK)

Tuesday, April 6, 2010

BSNL MODEM configuration tips

BSNL MODEM DataOne configuration

1.Login to the ADSL Router using http://192.168.1.1.

2.Username and password are ‘admin’ and ‘admin’.

3.WAN connection (0/35) select in bridge mode for dial from connected computer to connect Broad Band.

4. WAN connection (0/35) select in PPPOE mode for Auto connection to broad Band .Computer is not required to connect / dial to connect broad band connection every time. All Computer is connected is able to use / browse internet at same time.

5. If your mode have wireless port or want to enable, go to W-LAN and activate / Enable it.

6. If you using wireless access in broadband then for security reason 1st methode select wep to wep method then use Key in the desired security password. In this option if know any one password is able to use your broad band . 2nd option is in W-LAN use MAC Filter to use it eanble it . Then select Allow , then Add MAC one by one ( To view MAC Address / Physical Address to use ipconfig /all ). In 2nd option your wirell modem / broad band by wireless is access by which PC or Labtop mac id is allowed in mac filter section and the have not require any password to connect your wireless broad band.

You can chose as per your meet requirement.