Category Archives: Windows

ClipSync

ClipSync is a wonderful simple tool for sharing of text clipboard between Android smartphone and a Windows PC. Install the server part on the PC, install the app on the smartphone, connect them—and start copy-pasting between the devices.

Advertisements

Paste pure text in Windows

Background

Years ago, text could only be copied in Windows between the programs as a plain text. That is, only the content, without the format. Today the situation has improved changed and in many programs now when you copy and paste the text, you do so together with the format, whatever it may be.

Problem

In my opinion, this is a really poor approach from the user experience perspective. You should use styles to control the look of your text, so the text properties should not be connected to its content. One should really move around the text, not the look. (Word actually does it pretty neatly, by moving the style rather than the look of the text. The problem however is still there if you copy & paste the text from Word to, say, Excel.)

Another problem with moving the text properties around is that sometimes it is really not what you want. Have you ever tried to copy the content of a web page and paste it into Word? You know what happens. Word tries to keep the whole structure of the web page and transfer it to your document. The problem is that web pages are formatted inherently differently than the paper documents. Adding the structure of a web page to a text document means adding numerous redundant elements, such as tables, to your document. Besides, you just wanted the content, the text.

Solution

In Google Documents with Windows + Chrome, you can now press Ctrl+Shift+V. For other OS and browsers, see here.

In MS Office, use the Paste Special command. And if you do not like using it all the time, the PureText program comes to help. It is beautifully simple, tiny, and does not require installation. You can assign a new combination for pasting text-only (such as the default Windows+V or Google-like Ctrl+Shift+V) or overrule the standard Ctrl+V. The only two drawbacks are that the program needs admin rights to be run and is not as fast as Windows own clipboard.

Set UTF-8 as default encoding in Notepad

While the majority of power users will recommend to switch from Notepad to the wonderful Notepad++ or Notepad 2, it is still useful to make the original Windows Notepad save texts in UTF-8 by default. 

First, ANSI, which is the default Notepad encoding) is outdated. There is no benefit in saving files in ANSI over saving them in UTF-8. So why not do it properly.

Second, occasionally I want to have the simplicity of Notepad and still be able to use symbols outside the ANSI standard.

So here is how to do it (solution taken from Microsoft Community; note that you need the admin rights to do it):

  1. Start Notepad, do not type anything, do File > Save As, choose UTF-8 encoding and save the file somewhere as TXTUTF-8.txt.
  2. Copy TXTUTF-8.txt to c:\windows\shellnew.
  3. Run regedit (registry editor) and navigate to HKEY_CLASSES_ROOT\.txt\ShellNew.
  4. Right click in the right window > New > “String Value” and rename it to FileName.
  5. Double click on “FileName” and put TXTUTF-8.txt into “Value data:” field and press OK.

Now the default encoding in Notepad is UTF-8.

Checksum calculation integrated with Windows Explorer

A while ago I wrote about a nice program I very much recommend to anyone serious about computer security: HashTab allows you to (easily!) calculate a check-sum of any file and compare it to the one provided by the developer (serious developers of security-related software often provide checksums).

Today I found this thread on superuser.com, devoted to just the same question and providing a good overview of all HashTab competitors.

How to change the default operating system to boot with Ubuntu Linux and Windows

In Ubuntu, the boot order is controlled with GRUB. Do the following:

  1. sudo cp /etc/default/grub /etc/default/grub.bak (backup of the conf file, only superuser can do it)
  2. sudo gedit /etc/default/grub (edit the conf file, only superuser can do it)
  3. Replace GRUB_DEFAULT=0 with GRUB_DEFAULT=saved
  4. Save and close the file in gedit.
  5. sudo update-grub
  6. sudo grub-set-default xx, where xx is the number of the boot menu item you want to start be default. The first item has number 0. After doing update-grub, you’ll see a list of all OS’s that will be included in the menu, so you can count them (start with 0 and count all lines starting with found).

Note: memtest, if you have it in the menu, takes two lines in the menu, while update-grub shows only one. Windows is the last item. So add one to the number to start with Windows.

This solution is taken here.

Searching for PDF contents with Windows 7

Windows 7 can search for programs and documents right from the Start menu. It’s not the fastest search one can get with 3rd party programs, but it’s right here and now. No additional programs to install, no new windows to clutter the desktop, no additional hot-keys to memorize.

You may notice that Windows 7 finds some files only by filename while some others also by file contents. This can be checked by running Indexing Options (press the Windows key, type Indexing and click on Indexing Options in the search results). Click Advanced and then the File Types tab. There you can see, which search method is set for each file extension: index properties only or index properties and file contents.

I have discovered that my 64-bit Windows 7 was missing the iFilter to search inside PDF documents. It turns out that one needs a special Adobe extension to do it. Get it here if the link works or just Google for Adobe iFilter download for your platform. Then install it and rebuild the index (Indexing Options > Advanced > Rebuild).