Posts filed under 'Windows'

Mac keyboard combinations on a Windows keyboard

I recently bought a Mac mini and a Belkin KVM switch, which enables me to use my existing monitor, keyboard and mouse with both my current Windows PC and my new Mac mini. There are however quite a few characters I couldn’t find when using the Windows keyboard on Mac, so I will use this thread to remember them. Thanks to Allan for supplying many of the keystrokes for a Windows keyboard with Danish layout.

  1. Commercial at @ : ALT Gr-* (just ALT-* in some applications)
  2. Pipe | : ALT-i
  3. Left brace { : SHIFT-ALT-8
  4. Right brace } : SHIFT-ALT-9
  5. Apple Command Key: Windows Key
  6. Less than < : §
  7. Greater than > : SHIFT-§
  8. Copy : Windows Key-C
  9. Cut : Windows Key-X
  10. Paste : Windows Key-V
  11. Quit Application : Windows Key-Q
  12. Dollar $ : <
  13. Euro € : SHIFT-4
  14. Backslash \ : SHIFT-ALT-7

I also found this article, which suggests a software solution to the problem. When I get a Mac keyboard, I should study this. The layout of a Mac keyboard can also be useful.

Add comment May 25th, 2009

The telnet hack

One of the most famous and useful hacks either when testing websites or firewall access to websites is “the telnet hack”. When you think of it, a web browser is just like an advanced telnet client executing HTTP commands. Thus using the classic telnet application and writing the HTTP commands your self has proven a good way of testing both website content and website access through firewalls. The syntax is: telnet <server> <port>

Get webserver version

# telnet www.httpforum.com 80
Trying 80.166.163.20…
Connected to www.httpforum.com (80.166.163.20).
Escape character is ‘^]’.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Wed, 30 Mar 2005 18:44:46 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=utf-8

Connection closed by foreign host.

So this shows us that www.httpforum.com is running Apache and the webservers default character set is UTF-8

Is the site available

# telnet www.httpforum.com 80
Trying 80.166.163.20…
telnet: connect to address 80.166.163.20: Connection refused telnet:
Unable to connect to remote host: Connection refused

Well, seems like I have forgotten to open port 80 in the firewall, or that the webserver is not running. Please note that if there is a firewall between the webserver and your client, the telnet hack is a far better option than ping, as the ping protocol is most likely limited by the firewall. People who pings a webserver and get no respons from the host, often take this as a proof the webserver is not started or that it’s network services are not running, but since ping is disabled by most firewalls, you can’t trust the ping command. In addition, tracert/traceroute command is also often blocked in firewalls, so you can’t trust that command either. The telnet hack is the only sure method of checking if the firewall is open on the web port (default 80 for HTTP and default 443 for HTTPS).

Add comment May 25th, 2009

Finding Windows Uptime

How can one find out how long a Windows system has been running ? Many are probably using Task Manager, and looking at how long System Idle Process has been running. This is however an uncertain method because multiple physical or virtual CPUs will give an incorrect picture. There are two more precise Command Prompt commands to find it:

  1. systeminfo

  2. net statistics server

Add comment May 25th, 2009


Services

Archives

Twitter

del.icio.us