Blog of Alexander Mamchenkov

… mammoth cave …

Cutting Image Background with ImageMagick

Here is a small sequence of commands to cut the image of background (given that background is a solid color): ORIG_IMAGE_NAME=green.jpg; NEW_IMAGE_NAME=green-trans.png; TMP_COLOR=`convert $ORIG_IMAGE_NAME -crop 1×1+0+0 txt:- | sed -n ‘s/.*\(#\S\+\).*/\1/p’`; convert $ORIG_IMAGE_NAME -bordercolor $TMP_COLOR -border 1×1 -alpha set -channel RGBA -fuzz 30% -fill none -floodfill +0+0 $TMP_COLOR -shave 1×1 $NEW_IMAGE_NAME Just change the first [...]

DNS wildcard observations

Had an interesting case with DNS wildcard records: if you have a wildcard (*) A record – it works pretty fine, but if you specify a CNAME record to point to non-existing A record (which would normally be satisfied by wildcard A record) it won’t work, at least in the case I had. So as [...]

GNOME3 Delete button in Nautilus

Just noticed that Delete button in Nautilus of GNOME3 does not delete a file. Either Shift+Delete should be used to delete file completely or Ctrl+Delete for normal removal to Trash. If you use Nautilus a lot and would like to get normal (old-style) behaviour, check out these post: http://www.khattam.info/howto-enable-delete-key-in-nautilus-3-fedora-15-2011-06-01.html Basically you need to enable accels key [...]

September, vacations…

It’s been a long while since I’ve been on such good vacations. More than one week away from office traveling around Cyprus and having all sorts of fun. Just a short post with list of things done during these nice days: 15/09/2011: Trip to Agia Napa to see Olga and Anatoly who came to visit [...]

Repost: If you can read this you have a strong mind

7H15 M3554G3 53RV35 7O PR0V3 H0W 0UR M1ND C4N D0 4M4Z1NG 7H1NG5, 1MPR3551V3 7H1NG5! 1N 7H3 B3G1NN1NG 17 WA5 H4RD BU7 N0W, 0N 7H15 LIN3 Y0UR M1ND 1S R34D1NG 17 4U70M471C4LLY W17H0U7 3V3N 7H1NK1NG 4B0U7 17, B3 PROUD! 0NLY C3R741N P30PL3 C4N R3AD 7H15. R3-P057 1F U C4N R35D 7H15… !!! Originally took it from [...]

keep looking »