How to enable concurrent sessions on windows machines

This enables multiple concurrent users on Windows 7:

  • enable remote desktop login in the control panel
  • install the UniversalTermsrvPatch
  • create multiple user accounts
  • each user can access the machine via remote desktop concurrently

Full explanation at http://www.zahirkhan.com/

Update: to make it work under Windows 11, check out http://woshub.com/how-to-allow-multiple-rdp-sessions-in-windows-10/

Reverse the lines of a file

Sometimes one needs things that cannot be done with a built-in function of Word or Libre Office Writer.
I needed to reverse the lines of a file. The IMHO most elegant solution to do this was:

cat -n myfile | sort -nr | cut -c 8- > outfile.txt

Basically it is enumerating the lines of the file, sorting them in reverse order and then cutting away the numbers. Isn’t bash beautiful?

Of course, Linux also has dedicated command to reverse the lines of a file, it is called tac (‘cat’ reversed).

Collaborative online writepads

You probably know this situation: you are in a chat or a telecon discussing some subject that needs some writing/showing to your communication partners.

Thanks to Web 2.0, there exist several solutions to that problem:

  • you could collaboratively edit a google docs document
  • for a simple and quick solution for editing plain text you can use

    They work without registration – just send your partners the link to your pad

  • or CollabEdit if you want to discuss a piece of code with syntax highlighting (no registration required)
  • or, if you need to include drawings and images, there is CoSketch that can also be used without registration

Of course, all these services are hosted externally, so you have to consider, what secret information you might disclose by using one of these services. However, there might be the same issue if you are using your whiteboard in your office without cleaning it afterwards – only that the cleaning lady might be less interested in your secrets than google and others.