Posts with the tag Usability

Quick Look from Terminal

We as Mac users know that the space bar reveals "Quick Look" the fast preview for folders and files on Mac OS X. But how can you have a "quick look" at a file when using the terminal? The anser is the following command:

qlmanage -p the.file.in.question

resource

http://www.macosxhints.com/article.php?story=20100712090451517

...

Read on

Set Paper Size of the Ubuntu System Globally

http://andreas.scherbaum.la/blog/archives/557-Papierformat-A4-oder-Letter-in-einer-Ubuntu-Installation.html
To change the paper format from or to letter resp. a4 for the Ubuntu installation do:

sudo dpkg-reconfigure libpaper1
sudo /etc/init.d/cups restart
...

Read on

Get Microsoft Office 2007 Fonts

http://www.oooninja.com/2008/01/calibri-linux-vista-fonts-download.html
http://embraceubuntu.com/2007/09/16/installing-vista-fonts-in-ubuntu

MS Vista/ Office 2007 Windows 95-XP era Linux OpenOffice.org
Calibri Arial/Arial Black DejaVu Sans Serif Bitstream Vera Sans
Cambria Times New Roman/Georgia/Impact/Lucida Bold(?) DejaVu Serif (Bold) Bitstream Vera Serif
Candara Trebuchet MS
Consolas Lucida Console/Courier New DejaVu Bitstream Vera Mono
Constantia Book Antiqua/Palatino Linotype/Tahoma
Corbel Trebuchet MS(?)/Verdana
sudo aptitude install cabextract
cd "/raid/downloads/fonts/4 Microsoft Fonts/Office 2007 (extracted from Powerpoint Viewer 2007)"
wget http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract -F ppviewer.cab PowerPointViewer.exe
sudo mkdir...

Read on

synergy and synergy+ (similar to x2x)

http://synergy-project.org/

Installation

Installing synergy on Arch Linux (Arch Wiki entry):

sudo pacman -S synergy

Installing synergy on Mac OS X 10.10

http://stackoverflow.com/questions/26923227/how-to-compile-synergy-on-mac

brew install cmake qt
cd ~/Downloads
git clone https://github.com/synergy/synergy.git
cd synergy
git checkout focus-fix-patch
./hm.sh conf -g2 --mac-sdk 10.10 --mac-identity Yosemite
./hm.sh build

Or use the nightly build: https://synergy-project.org/nightly

Using it:

Create a config file...

Read on

A Stopwatch on the Terminal

Using the bash builtin command time

You can just use the following terminal command to start the stopwatch:

time read -sn1

and press [Enter] when you want to take the time. As the output of the time command is a bit verbose, you may want the time command to only print...

Read on

Enter Unicode Characters directly on Ubuntu Linux

To enter a unicode character directly on your Ubuntu system do the following:

  • Press [Ctrl]-[Shift]-[u]
  • Enter the unicode hex code of the character you want to type
  • Press [Space] or [Enter] to confirm your input.

To be able to do so is great because I often used the ASCII character combination -> to mean...

Read on

Gedit Plugin to Search and Replace using Regular Expressions

found here: http://live.gnome.org/Gedit/Plugins
http://halfhourhacks.blogspot.com/2008/03/gedit-regular-expression-plugin.html

cd .gnome2/gedit/plugins
wget http://neednom.com/bfisher/blog/geditplugin/regex_replace.tar.gz
tar -xf regex_replace.tar.gz
rm regex_replace.tar.gz

Then open gedit and select Edit → Preferences → Plugins and activate the regex plugin

...

Read on

Vimperator – Firefox Plugin

The most important command:

:help

Get the normal Firefox menu back:

set guioptions+=mT
...

Read on

Read and Convert NFO Files (Codepage 437)

http://de.wikipedia.org/wiki/Codepage_437

convert to UTF8 with iconv

to convert a file from Codepage 437 to UTF8 do:

iconv -f 437 -t UTF8 your_nfo_file.nfo | less

nfoview

http://home.gna.org/nfoview/

sudo aptitude install nfoview
...

Read on

Set up gedit for use with C++

The post describes the setup for gedit to get most out of it for C++ development.

Activate gedit plugins using Edit → Preferences in gedit.

Smart indentation plugin for C/C++/Java

http://live.gnome.org/Gedit/Plugins?action=AttachFile&do=view&target=csmartindent.tar.gz

Function browser

http://sourceforge.net/projects/gedit-funcbrows/

The Ubuntu package gedit-plugins including an embedded terminal

to get an integrated terminal, get the package gedit-plugins. This...

Read on

Change Display Defaults for Folder Views in Gnome

Open the file browser in Gnome (called Nautilus) and select File → Preferences. Then set "View new Folders using:" to the option with the most details: List View.

...

Read on