Archive for July, 2010

簡単だ!CMS Made Simple lowers the bar…

Monday, July 12th, 2010

<shameless plug>

After talking about it for years and years (it seems) I finally got around to putting a commercial website:

http://www.kozel-heizungen.ch

I used CMS Made Simple and it does what the name promises: It’s easy to set up and if you have a basic understanding of databases providing dynamic content, then you should be up and running quite quickly.

That being said, the 80/20 rule still applies – the basic page is up quite quickly but fixing the details takes much longer. Even more so if the site owner just doesn’t provide any feedback T_T

Other steps that took some time were pushing the website in search engines. Whether this is the recommended method I don’t know but I simply contacted all the pages were the company was listed already and asked them to list the URL. Every little step helps methinks

</shameless plug>

(暴)GIMP for sysadmins

Thursday, July 8th, 2010

GIMP (short for GNU Image Manipulation Program – http://www.gimp.org) is a great tool – it’s versatile, it’s free and if you know it inside out, you swear by it. If you don’t know it very well, you just swear.

Starting from zero with GIMP is tough: No arrow cursor to select elements, whenever you paste something you cannot select other elements anymore etc. And all you wanted to do is to pimp up the screenshots for your documentation…

Believe me, I’ve been there. Working as a sysadmin, including screenshots with a couple of 1) and 2) added results in a much better description of anything than stringing “Window 1” and submenu 47b together a hundred times. Although it sounds perfectly simple, you have to figure out how to do things in GIMP which can be nerv-wracking because much of it is counterintuitive if you don’t understand the how and why. And if you don’t keep using GIMP, you quickly forget about it all and you have to start all over again.

Of course, there are tutorials about the GIMP. Lots of them. Written by friendly people with gallant intentions. You might even find what you are looking for. Oh, and recently there have been photo-editing tutorials in magazines as well. But I’ve rarely had to remove red eyes from OS screenshots.

In order to fight the forgetfulness that is mine I’ve decided to accumulate my meagre (and hard earned) knowledge on the matter that is GIMP. It’s not much but it’s proven useful to me and I hope it will be useful to you as well.

File Format

The GIMP’s native file format is .xcf but if you start with a screenshots, .png is fine and even .bmp will do. There’s no need to save the files in GIMP’s native file format or convert them.

Basics of Screenshooting

You can save yourself a lot of work by planning ahead:

  • Don’t take screenshots of your whole Desktop if you only need a dialogue window! Alt+PrtScn will save the active window only which is probably what you are going to down cut to later anyway. (These keys work on Debian/Ubuntu and Windows – I’m not sure about Macs and other flavours of Linux)
  • Resize windows before taking a screenshot! If you want to show users what options they have to pick from a menu or submenu, resize the program window as much as possible. Again, this will save you much work later.

Basic Operations

  1. Resize Screenshots (Scale)
    Resizing is straight forward. Open a screenshot, in the menu “Image” click “Scale Image…” OR press Shift+T which will bring up the same dialogue.
    HINT: Try to remember some of the basic key combinations, you’ll be much quicker!In the Scale dialouge, you can specify the new Width or Height in pixels, milimeters and other measurements. If the chain is symbol is disconnected as in the screenshot below, the screenshot will not be resized proportionally. You can use the Tab key to jump onto the chain symbol and connect by pressing Space.

    Scaling in GIMP

    Scaling in GIMP

    If you make a mistake, Ctrl+Z will take you one step back. The history in GIMP is not cut off by some memory restraint, so feel free to undo all steps if necessary.

  2. Cropping
    The description in the Crop Tool says: Remove edge areas from image or layer. In other words: Keep a part of an image, discard the rest.There are two ways to crop an image:

    1)  The manual way: Using the Rectangle Select Tool, copy a part of a screenshot, open a new empty image, paste the selection and select “Autocrop Image” from the menu “Image”. This is all reliable and swell, but it’s quite slow.

    2) The better way: Select the Crop Tool (Shift+C), select an area (which will be high-lighted) and press Enter.

    Cropping in GIMP

    Cropping in GIMP

    The high-lighted area will automatically preserved, the areas outside the selection will be discarded and the image will be auto-cropped. Fast and handy! If the auto-crop does not happen, it’s just one click away.

    3) The super-duper, perfect, perfectionist crop:

    Select the Crop Tool and check “Allow growing” in the options, as in the screenshot below:

    Cropping Options in GIMP

    Cropping Options

    This option will allow you to move and resize the crop selection. Move the mouse cursor over the crop selection. Depending on where the cursor is, the cursor changes to reflect how you can pull or move the selection. As soon as the cursor changes, you can use the arrow keys on the keyboard to change the size or position of the selection. This is especially handy for me because I like using a trackball which makes it very difficult to do exact selections.
    HINT: To get an even better shot at the perfect selection, you can press “+” on the numberpad to zoom in (“-” to zoom out again) and move the selection within the range of pixels.

  3. Cutting out parts of a screenshot
    You might have seen screenshots like this:

    huge dialogue window

    huge dialogue window

    They either make you wonder what this guys was thinking when the screenshot was made or what you were thinking when you made the screenshot if that guy happens to be you. If you think the screenshot is just fine, here’ s a hint: screen estate.
    In the next screenshot, all the area in red could be cut off and the screenshot would still retain all of the relevant information:

    wasted space in a dialogue screenshot

    wasted space in a dialogue screenshot

    See? If it’s your screenshot – retake it! If you don’t have access to the workstation where the screenshot was taken, you can also cut out part of the screenshot.
    Cutting out a part of a screenshot is slightly different to cropping. You will have to cut out the part in red, move the bottom part up so that it connects seamlessly to upper part, merge the layers and save the images.
    Your best friend is the Layers dialogue which you can find in the menu “Dialogs” -> Layers. Alternatively, press Ctrl+L to bring up that dialogue.

    Layers Tool

    One of your best friends: Layers Tool

    Whenever you open a screenshot for editing, there will be one layer called “Background”.
    Use the Rectangle Select Tool to select the area to be removed. If you’re the perfectionist, pay close attention to sections like scrollbars etc. to make sure that the boundaries of the compositions are not immediately recognizable (see the circle in red)

    Selection to Cut

    Selection to be cut out

    Cut out the selection (Ctrl+X). Your screen should now look like the screenshot below:

    Cut Selection

    Cut Selection

    In the next step, you will have to move the lower part of the screenshot up to join the cuts.
    Again using the Rectangle Select Tool, select the bottom remains of the screenshot. Use the arrow keys on the keyboard if necessary to move the selection. The result should look as below:

    Selection to move

    Selection to move

    When the selection is at the right place, cut the selection (Ctrl+X) and paste it again (Ctrl+V). Then, move the pasted image to join the upper part. Notice that the Layers dialog now displays a new layer: (Floating Selection (Pasted Layer)

    Moved Selection, New Layer

    Moved Selection, New Layer

    Maybe you noticed the how the lines of outline of the pasted image are running clockwise around the selection. This shows the selected layer. This has nothing to do with the Rectangle Select Tool. Also, it’s not possible to select a different layer in the Layers dialog. That’s why you have to right-click “Floating Selection (Pasted Layer)” in the Layers dialog and click “New Layer…”. The layer’s name changes to “Pasted Layer”, the running line around the layer turns yellowish. Now it’s possible to select a different layer again.
    HINT: If you’re working on a more complicated image, you can rename “Pasted Layer” to anything you like such as Logo1 etc. This makes it easier to identify what the layer contains.

    If you’re just doing screenshots, I recommend to merge the layers now. Several layers are not supported in .png files anyway so you when you try to save the image, you will be prompted to flatten the image anyway. Right-click “Pasted Layer” and select “Merge Down”. Only the “Background” layer remains.
    After another Autocrop (menu “Image” -> “Autocrop Image”) and another resize (menu “Image” -> “Scale image…” – remember to keep the width consistent across the screenshots if possible), the screenshot is ready for uploading.

Finishing Touches

  1. (Transparent) Rectangles Or Circles Within An Image
    These tools always rely on some selection and thus have one drawback: It’s hard if not impossible to change some settings such as colors or line styles afterwards unless you use the Undo function in the menu “Edit” to get back to the point before you applied the color to the stroke selection. If you have changed several other things since then, these will also be undone.
    Let’s say you wanted to highlight the Mode dropdown list in the Layers dialog:

    • Use the Rectangle Select Tool or the Ellipse Select Tool to draw a selection around the button.
    • Doubleclick the colour selector (by default the black area overlapping the white area), select a color to your likings
    • In the menu “Edit”, select “Stroke Selection…” Change the settings as desired. Click on “Stroke”

    The result should be similar to this:

    Highlightning in Images

    Highlightning in Images

    If you want to fill the selection with a slightly opaque fill, the selection still has to be active. Use Undo if you have already selected something else or deselected everything. Click on the Bucket Fill Tool (Shift+B).
    In the options, play around with the following settings:
    -The Opacity slider defines how opaque the fill will be.
    -Use “Fill Type” to select what color or even what pattern the selection should be filled with.
    -Affected Area: Most likely you will want this to be set to “Fill whole selection”, otherwise only the neighboring pixels within the clicked area will be filled

  2. Numbers and Text
    Numbers on a screenshot can be very useful to describe a workflow. See the screenshot below for a fictitious example:

    Usage of numbering in a screenshot
    In this way, you can easily guide a user to complete a couple of configuration steps.
    HINT: If the configuration steps occur over a number of windows, try arranging on top of each other and you will get away with a single screenshot such as above. Although the option window is completely separate from the program window, by layering them you can keep everything nicely arranged.
    Occasionally, background images may interfere. Originally I wanted to keep the text for 4) on one line but the disk usage in red behind the close button made this impossible. Then it is your turn to be creative. In this case, inserting a line break or changing the font colour are both valid options.
    While preparing the above screenshot, I noticed that it’s possible to resize the Text box by dragging the corners. In older versions of the GIMP, that was not possible and the only way of changing a text box was to undo, undo, undo. This is definitely a useful improvement!

  3. Blurring Text Properly
    Blurring text can be necessary if your screenshots contain sensitive information such as login names, host names, email adresses etc.
    The quick and dirty way is to use the Smudge Tool and go over the area to smudge a couple of times. However, if you are like me you will end up with something like this: (mainly because I’m using a track ball, mind ^_^)

    Smutty smudge

    Smutty smudge

    A much cleaner alternative is to smudge using the Rectangle Select Tool:
    1) Select the Rectangle Select Tool
    2) Draw a selection around the area to smudge
    3) Smudge your heart
    4) Profit! Or at least nicely contained smudges:

    Cleaner smudges

Conclusion

Again, GIMP is a great tool – if you know how to use it. I’ve been tearing my hair out again and again over simple edits but I hope you will not have to suffer the same.
If you have some additional tips, please let me know!

WasndasfürnePflanzeda?

Tuesday, July 6th, 2010

Seit es so warm ist, wächst bei mir auf dem Balkon diese Pflanze… Hat jemand eine Ahnung, um welche Pflanze es sich da handelt?

IMG_2354

Welche Pflanze?

Falls es sich um eine Art Unkraut oder gar was Ünerwünschtes handelt, werde ich sie natürlich entfernen und entsorgen…

Danke jedenfalls schon mal für ernsthafte Kommentare!