利用 Java 旋轉圖片 (Use Java to rotate an image)
import java.awt.image.BufferedImage;import java.awt.Graphics2D;import java.awt.Color;import java.awt.geom.AffineTransform;
public static BufferedImage rotate(BufferedImage source, double degrees, int x, int y, Color color, boolean resizable){ double radians = Math.toRadians((degrees % 360.0 + 360.0) % 360.0); int width = source.getWidth(); int height =
利用 Java 將圖像合併 (Use Java to combine 2 images)
import java.awt.image.BufferedImage;import java.awt.Graphics2D;
public static BufferedImage combine(BufferedImage source, BufferedImage other, int x, int y, int ox, int oy, int owidth, int oheight, int cx, int cy){ BufferedImage out = new BufferedImage(source.getWidth(), source.getHeight(), source.getType()); Graphics2D g2d = out.createGraphics(); g2d.drawImage(source,
利用 Java 將圖像轉換成負片效果 (Use Java to edit an image to negative)
import java.awt.image.BufferedImage;import java.awt.Graphics2D;
public static BufferedImage negative(BufferedImage source){ BufferedImage out = new BufferedImage(source.getWidth(), source.getHeight(), source.getType()); for (int i = 0; i < out.getWidth(); i++) { for (int j = 0; j < out.getHeight(); j++) { out.setRGB(i, j,
月滿軒尼詩
很久沒看這種小品劇,很不錯,之前有一套很相似的,月滿抱西環。
兩片都一樣,流露出濃濃的地緣主義的情感。生活和空間的音調,彈奏得鏗鏘入耳。
演員的表達沒什麼好評品,就是那個好字足矣。
岸西的編劇真的就是那一個

利用 Java 改變圖像畫布的闊及高 (Use Java to edit the canvas of an image)
import java.awt.image.BufferedImage;import java.awt.Graphics2D;import java.awt.Color;
public static BufferedImage canvas(BufferedImage source, int width, int height, int x, int y, int cx, int cy, Color color){ BufferedImage out = new BufferedImage(width, height, source.getType()); Graphics2D g2d = out.createGraphics(); g2d.setColor(color); g2d.fillRect(
iSSH on the iPad - SSH and VNC from Anywhere
[ UPDATED : The developer of iSSH emailed me this morning with a couple of tidbits that will be useful for any early iSSH adopters on the iPad - see my updated notes in bold.]
One app I haven't had a lot of time to work with (yet) is iSSH on the iPad. I tried the iPhone version, but the tiny iPhone screen simply couldn't keep up with a productive SSH or VNC session.
The iPad changes the game, though; I can actually log in via SSH

An important thing about how ZFS handles spares
There's an important thing about how ZFS handles spares that's implicitin my first entry , but it's such an important thingthat it deserves to be said explicitly:
ZFS only activates spares when faults happen.
In a traditional spares implementation, spare activation is driven bythe state of the RAID array; if the array is unhealthy and there is aspare, the spare is activated. In ZFS, spares are activated (only) inresponse to fault events; if the right sort of pool fault
How to Tether Your iPad to your iPhone - Link
Just posted in the Articles section of the website:
How to Tether Your iPad to Your iPhone (via WiFi)
It's a pretty simple process, and it works great! The only downside is that the iPhone runs out of juice relatively quickly. To compensate, consider plugging it into the wall charger while it's tethered.