Sunday, December 20, 2009

Windows 7 - Remove User From Login Screen

The users on the log-in screen are all the users that belong to the "Users" group.

To remove a user invoke the following command:

  net localgroup users /delete <username>

Instead, on Windows 7 Ultimate and Professional, you can use the User Manager to do that:

Monday, December 7, 2009

How to grab Google autocomplete list

We all know this wonderful feature:

Automation of grabbing that list can be helpful for instance if you want to know what people are looking for.

While typing in the search box, somewhere there is a Javascript code that makes the following HTTP GET request:
http://www.google.com/complete/search?hl=en&q=QUERY&cp=LEN(QUERY)

For example, the following query gives the same results as in the picture:
http://www.google.com/complete/search?hl=en&q=how%20to%20be%20better%20at%20&cp=20

window.google.ac.h(["how to be better at ",[
["how to be better at halo 3","43,100,000 results","0"],
["how to be better at basketball","87,500,000 results","1"],
["how to be better at math","52,900,000 results","2"],
["how to be better at soccer","88,300,000 results","3"],
["how to be better at football","207,000,000 results","4"],
["how to be better at beer pong","2,760,000 results","5"],
["how to be better at call of duty 4","72,600,000 results","6"],
["how to be better at madden","25,900,000 results","7"],
["how to be better at volleyball","9,370,000 results","8"],
["how to be better at chess","15,300,000 results","9"]]])

Monday, November 23, 2009

Installing Windows XP Professional on HP Compaq nx6310

Four years ago I bought HP laptop nx6310. It came with Windows XP Pro already installed.
Today I reinstalled Windows, but it wasn't as smooth as I thought it would be.
First, Windows setup didn't recognize any hard disk:
"setup did not find any hard disk installed in your computer…"
After searching Google a bit, I found out that I should disable SATA on the Bios.
I disabled it, and continued setup until:
"Windows could not start because the following file is missing or corrupt C:\Windows\inf\Biosinfo.inf"
This time it was a bit harder, because all the solutions I found on the Internet suggested I should get SP2 and it will be solved by itself, because it has all the missing drivers. The only problem is that I already had SP2. Some sites offered to download an installation with all the needed drivers built-in. But I couldn't use it because I want to install Windows in Hebrew.
In the end, the solution was very simple, I went to the place on the Bios where I recently disabled SATA, and I disabled everything else.
It worked. Windows is now installed.
Drivers were downloaded from here:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=1839164&prodTypeId=321957&prodSeriesId=1839143&swLang=8&taskId=135&swEnvOID=1093
The only problem is I wanted to re-enable all the features I disabled, and I couldn't enable SATA without crashing Windows. So I found this post: http://mytechweblog.blogspot.com/2007/10/enabling-sata-native-mode-after-xp.html. The author forgot to mention something, but he did mention it here: http://forums13.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1057792&admit=109447627+1258968594947+28353475, so it's better to follow the second link. Note that after following the instructions on the link you must re-enable SATA otherwise Windows won't load.
It works! :)

Sunday, November 15, 2009

Telnet on Windows 7

By default Telnet is not installed on Windows7 and you get this error message:
'telnet' is not recognized as an internal or external command,
operable program or batch file.
Solution:
Turn on this feature in Control Panel as explained here:
http://www.tech-recipes.com/rx/4230/windows-7-install-the-telnet-client/


I found a link that explains the list of features for Windows Vista. Most of it is relevant to Windows 7 too:
http://www.bleepingcomputer.com/tutorials/tutorial134.html

Thursday, November 5, 2009

Linux Tutorial

A very good Linux tutorial that I found:
http://rute.2038bug.com/index.html.gz

Wednesday, November 4, 2009

Hide URL in address bar using iframe (code that works)

I've been searching Google for some time, and I expected to find the answer easily, but that was not the case. So I wrote it here.
The following will show Yahoo home page in an iframe, but the URL in the address bar will be yours, and it stays the same, even if the user clicks on some link and go to another site.
If you ever tried to create an iframe, you noticed that you have two scroll bars - one of the page and one of the iframe. Well, the following code solves that too. The piece of code that most people are looking for is marked in red.

<html>
<head>
<style type="text/css">
html {
overflow: hidden;
}
</style>
</head>
<body>
<iframe name='FRAME1' src='http://www.yahoo.com' width='100%' height='100%' marginheight='0' marginwidth='0' scrolling='auto' frameborder='0'>
<p>Your browser does not support iframes.</p>
</iframe>
</body></html>