Blog posts

Dec 14

Dice Adobe Air application

Written: Dec 14th 2008, 23:45

Had some friends over at my place on saturday and for beer and “Navigare” (like the Monopoly Board Game only on the ocean). Unfortunately the dice was gone.. Well, creating a random thing shouldn’t be that hard on a computer, so I wrote this simple dice application.


Download Dice.air (Adobe Air Application)


Download Dice Source

Permalink for Dice Adobe Air application
Sep 22

Automator workflows for batch process images and photos

Written: Sep 22nd 2008, 19:14

Automator workflow - batch scale photos

Even though Apple has hidden the Automator workflows for Finder deeper down in the GUI, they are still very useful for doing batch actions. Both home and at office I use this collections of workflows every day. Almost!

Image utility workflows

  • Add to iPhoto Adds image to Apple iPhoto
  • Change Image Type Batch change image to the following formats: BMP, JPEG, JPEG 2000, PICT, PNG or TIFF
  • Crop Photos Batch crop images by pixel or percent
  • Flip Photos Batch flip your photos
  • Frame Images Batch add a black border around your photos
  • Print Photos Batch print your photos
  • Rotate Photos Batch rotate your photos
  • Scale Photos Batch scaling your photos

Web workflows

  • Make names webfriendly Batch transform filenames to webfriendly format

To make this Automator Workflows avaiable from Finder, drop them into:
/Users//Library/Workflows


Download these Automator Actions here

Permalink for Automator workflows for batch process images and photos
Jul 12

New MacBook - How to setup Apache, PHP and MySQL

Written: Jul 12th 2008, 20:32

My new MacBook - closeup

After 3 years with my old Imac, I have finally bought a new MacBook. The screen is tiny, but I guess I will get used to it. I am very exicted, but before any real joy can begin, I need to install all the thing I need for my use as “Webdesigner/Webdeveloper”.

Permalink for New MacBook - How to setup Apache, PHP and MySQL
May 09

Using Flex SDK on mac

Written: May 9th 2008, 14:17

Your first Flex application with TextMate

Adobe recently made Flex opensource. That mean that you don’t have to use their Flex Builder in order to make Flex-apps.

This is a quick intro in how to use Flex with Textmate on mac.

Download the Flex SDK

You can download the Flex SDK from Adobe’s site. Place it whereevery you want, but be sure to make it available in your Path:

/Users/gerhard/.bashrc

export PATH; PATH="/Developer/SDKs/air_sdk/bin/:/Developer/SDKs/flex_sdk_3/bin/:/Developer/Tools:/Developer/Applications:/usr/local/bin:/usr/local/subversion/bin:$PATH"<br>alias flex="mxmlc"

I also added a alias for the compiler, located inside the bin/ dir of the SDK.

Download the TextMate bundle for AS3 and Flex

The ActionScript 3 Bundle and the Flex Bundle can be downloaded from TextMates Repository at: http://macromates.com/svn/Bundles/trunk/Review/Bundles/ (Use the SvnX app for mac to access these). Install this and you are ready to start developing in Flex.

Mini tutorial – your first Flex-app with TextMate

Create a new file in TextMate, and name it FlexTest1.mxml:

&lt;?xml version="1.0"?&gt; <br>&lt;!-- mxml/TriggerCodeExample.mxml --&gt; <br>&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;<br>    &lt;mx:Panel title="My Application" <br>        paddingTop="10" <br>        paddingBottom="10" <br>        paddingLeft="10" <br>        paddingRight="10" <br>    &gt; <br>        &lt;mx:TextArea id="textarea1"/&gt; <br>        &lt;mx:Button label="Submit" click="textarea1.text='Hello World';"/&gt; <br>    &lt;/mx:Panel&gt; <br>&lt;/mx:Application&gt; <br>

The ActionScript 3 bundle will provide you with a buildin “Build (mxmlc)” command, but I prefer just compiling the files direct with Terminal.app:

gersh:~/Desktop/Adobe Flex/HelleWorldFlex gerhard$ mxmlc FlexTest1.mxml<br>Loading configuration file /Developer/SDKs/flex_sdk_3/frameworks/flex-config.xml<br>/Users/gerhard/Desktop/Adobe Flex/HelleWorldFlex/FlexTest1<br>.swf (164508 bytes)<br>gersh:~/Desktop/Adobe Flex/HelleWorldFlex gerhard$ 

If you have installed the last version of flash-player you will be able to open the .swf file in Finder.

Permalink for Using Flex SDK on mac
Oct 31

9 lives but no iLife [Review of Leopard]

Written: Oct 31st 2007, 21:23

Mail.app in Leopard - the new stationary templates features

Just had my mac at home upgraded to the last version of Mac OS X: Leopard. After the 1,5 hour long install session, I was pretty excited when the apple logo reappeared after the last restart. It was way past my go-to-bed time (11 pm), but knowing that I would never get any sleep before I at least had the chance to stroke the new kitten.

Permalink for 9 lives but no iLife [Review of Leopard]

Page 1 of 1