Posts about tips

Automator service to resize image to several sizes

24 January 2015

Here's an Automator service to [resize an image into several sizes](/files/workflow.zip). Unzip and copy the package "Multiple Sizes.workflow" to your **~/Library/Services** folder and you will get a new entry on the finder services context menu. Just right click any image and choose "Multiple Sizes" from the services menu.

For instance, if you select an image named "image.png" it will create the following files on the same folder:

- image_512.png - image_256.png - image_128.png - im...

Sets - Link collections made simple

24 January 2015

Meet [Sets](http://makesets.com), a website that allows you to create and maintain lists (or sets) of links. Much like with sex, you can do it solo or with other people. I think it has the potential to replace [Delicious](http://delicious.com) and other bookmarking sites even if, for now, it does not support tags or groups... although that's not necessarily a bad thing :)

The design is super simple and pleasing to the eye and they include a bookmarklet to help you link any webpage you visit, m...

JAVA vertical gradient background panel

24 January 2015

Recently i had to create a gradient background for one of the panels in our [POS application](http://inforviegas.pt/wp-content/uploads/2010/09/VOS.jpg), so i though i'd share the code.

You need to pass the top and bottom colors of the gradient and also make sure that any panels inside this one are transparent (i.e. setOpaque(false)), otherwise they will paint above it.

import java.awt.Color; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D;...

Displaying posts 7 - 9 of 99 in total