Skip to content

Stopping netbeans for Auto-Scanning every time

I know it is an important feature of netbeans but sometimes it is scanning a lot, especially when you have to use a trunk and a bunch of branches, all separated as different projects. If you want to stop auto-scanning that often (netbeans also does it after you unchecked it ;-), go to "Tools->Options->Mscellaneous->Files" and uncheck "Enable auto-scanning of sources". Thats it! The downside of this option is, that you have to manually refresh folders by using "rightclick->Refresh Folder" in your project- or filestree.

Web - BEAST: Surprising crypto attack against HTTPS

Shouldn't be that nice if it is true. Especially "block-wise chosen-plaintext attack" brings my knees to shiver :-O.

We present a new fast block-wise chosen-plaintext attack against SSL/TLS. We also describe one application of the attack that allows an adversary to efficiently decrypt and obtain authentication tokens and cookies from HTTPS requests. Our exploit abuses a vulnerability present in the SSL/TLS implementation of major Web browsers at the time of writing.
source

Add a watermark to a bunch of images

The Problem: You have a bunch of images (like files in an directory ;-)) you want to add with a watermark.

The Solution (an easy one):

!/bin/sh mkdir withLogo for f in *.jpg do composite -gravity SouthEast -watermark 25% ~/path/to/my/watermark.png $f withLogo/$f done

As far as you see, this shell script creates a directory called "withLogo" and walks to every file with the ending "jpg". The script combines every file with the "~/path/to/my/watermark.png" file saves it into "withLogo". Just change in the directoy with the images you want to add with a watermark and type in "sh path/to/my/combine/script.sh". If the command "composite" is not on your system, try to install "imagemagick".

resize images via shell

The Problem: You have a bunch of images (like files in an directory ;-)) you want to resize.

The Solution (an easy one):

#!/bin/sh mkdir 800px for f in *.jpg do convert $f -verbose -resize 800 -quality 90% -comment "powered by open source" 800px/$f done

As far as you see, this shell script creates a directory called "800px" and walks to every file with the ending "jpg". The script resize every file to a with of 800 pixels and saves it into "800px". Just change in the directoy with the images you want to resize and type in "sh path/to/my/convert/script.sh". If the command "convert" is not on your system, try to install "imagemagick".