Starting a local Webserver for Testing

Easiest way is to open a console window in what you would like to have as root directory of your webserver and start

python -m http.server

Then, by serving to http://127.0.0.1:8000 you will be able to view and browse the contents.

To specify a port, just add the port number to the command, for example

python -m http.server 9999

Please not that this webserver does not support https, so you have to enter the URL with a starting http:// and you might have to click away a browser warning because of the unsecured site.

Therefore, only use this for local testing!

filegive: send and receive files across computers

filegive easily sends or receives files point-to-point, with authentication and ciphering, and the other side only needs a Web browser. No third party server is involved in the transfer. It can use common NAT traversal protocols like uPnP and NAT-PMP, manually forwarded ports, or a public ssh server.

filegive is a commandline tool available for Linux, Windows and Mac OS.

Project page with commands and download links

Missing fonts when starting X-application on Linux

Recently, I got the following error message when I tried to start an X-application under Linux:

Some fonts seem to be missing in your system, you should install either xfonts-100dpi or xfonts-75dpi and then restart Xorg to get xboard running.

I got this error message despite having the packages xfonts-100dpi and xfonts-75dpi installed. After scratching my head for some time I found the problem: I was running the application via ssh with X-forwarding from a Windows PC. And the Xserver was actually running on Windows, namely the Xming application.
The problem was quickly fixed by downloading the font packages from the Xming page.

How does a computer get infected with a virus or spyware?

Unfortunately, it became quite easy nowadays to infect your computer with malware:

  1. Accepting some plug-in or toolbar installation
  2. Opening email attachments “thesisgenerator.exe”
  3. Not running the latest updates on the operating system, the browser, etc.
  4. Installing software or media from unknown sources
  5. Running your system without a firewall

Sometimes, webpages try to scare users to install a trojan. For example, there exists a trojan version of the program MacSweeper, which promises to clean your system 😛

More on the topic: http://www.computerhope.com/issues/ch001045.htm