**最近看了 << 寡佬飛行日記 >> ( Up In The Air ) ,很感慨,但不是關心 George Clooney飾演的 Ryan Bingham 感情有沒有著落,而是戲中一幕又一幕的炒人場面,驚心動魄。
我想起許多年前的一篇舊文 << 一份工 >> , 訴說了一個打工仔的無奈,那
import java.awt.image.BufferedImage;import java.awt.Graphics2D;import java.awt.Color;import java.awt.Polygon;import java.awt.Rectangle;import java.awt.geom.Ellipse2D;
public static BufferedImage cutEllipse(BufferedImage source, int x, int y, int width, int height, int cx, int cy, Color color){ BufferedImage out = new BufferedImage(width, height, source.getType()); Graphics2D
Suppose that you need some IP aliases on an Ubuntu machine. So you go to /etc/network/interfaces and slavishly make yourself some, copying themain stanza a number of times to make entries that looks like this:
auto eth0:0iface eth0:0 inet static address 128.100.1.A network 128.100.1.0 netmask 255.255.255.0 broadcast 128.1
import java.awt.image.BufferedImage;
public static BufferedImage verticalReverse(BufferedImage source){ BufferedImage out = new BufferedImage(source.getWidth(), source.getHeight(), source.getType()); for (int i = 0; i < source.getWidth(); i++){ for (int j = 0; j < source.getHeight(); j++){ out.setRGB(i, j, source.getRGB(i, source.getWidth
**最近看了 << 寡佬飛行日記 >> ( Up In The Air ) ,很感慨,但不是關心 George Clooney飾演的 Ryan Bingham 感情有沒有著落,而是戲中一幕又一幕的炒人場面,驚心動魄。
我想起許多年前的一篇舊文 << 一份工 >> , 訴說了一個打工仔的無奈,那
