Extreme Sheep LED Art
Wednesday, March 25th, 2009Was man mit Schafen alles machen kann:
Talk to Eliza to solve all your problems
Monday, May 26th, 2008I don’t know if anyone has mentioned this, but OS X comes with the simulated therapy program, Eliza. In the terminal type emacs and hit enter. When the editor has loaded, hold shift and hit the escape key. Then type xdoctor and hit return. Answer the first question and proceed from there. When you’re done, control-X control-C will quit the editor.
technorati
Sunday, May 11th, 2008XAMPP Installation bei Windows
Tuesday, August 28th, 2007“Einfache Installation und Deinstallation
Die Pakete haben gemeinsam, dass sie nur ausgepackt und gestartet werden müssen und schon funktioniert alles. Keine Einträge in der Registry (außer bei der Windows-Installer-Version), kein Ändern von Konfigurationsdateien. Einfacher kann es eigentlich nicht mehr sein.”
Jaja, neene. Schon klar. Registry bei Mac, Linux??
Gesehen auf: http://www.apachefriends.org/de/xampp.html
ein Verzeichnis durchlaufen
Saturday, August 4th, 2007Möchte man innerhalb eines Verzeichnisses und aller Unterverzeichnisse von allen Bildern Thumbs erstellen, ist dieses PHP Skript hilfreich.
-
public function ThumbErzeugen(){
-
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(".")) as $filename){
-
if($filename->isFile()){
-
$Bild = $filename->getFilename();
-
$Bilder[] = $Bild;
-
$bearbeiteBild = new Bilderbearbeiten(…);
-
$Thumbs[] = $bearbeiteBild -> erstelleRechteck();
-
}
-
}
-
}
-
}
-
}
-
}
Installing Eclipse, MTASC & FDT in Mac OS X
Wednesday, June 6th, 2007Eclipse http://www.eclipse.org/downloads/index.php
(Download now: Eclipse SDK 3.2.2, Mac OS X (118 MB) )
MTASC
http://www.mtasc.org/#download
(Mac OSX package)
FDT
(Installed via Eclipse)
normally installed on your Mac OS X:
Java 1.4.2
http://java.sun.com/j2se/1.4.2/download.html
(only need JRE (Java Runtime Environment) version)
MTASC Installation
I like to install MTASC inside the Eclipse folder, keeps it tidy, but that’s just me. You can put it wherever you like.
It install just the same as Eclipse, you just unzip it and put it where ever you want it.
You should now have a folder structure something like:
/Applications/eclipse/mtasc-1.12-osx/mtasc
or
/Programme/eclipse/mtasc-1.12-osx/mtasc
FDT Installation
- Open Eclipse
- Choose (from the top toolbar) “Help”->”Software Updates”->”Find and install…”
- Select “Search for new features to install” and choose “Next”
- Choose “New Remote Site”
- Insert as the name: FDT
- Insert as the URL: http://fdt.powerflasher.com/update
- Confirm with “OK”
- Make sure “FDT” is ticked in the site list and choose “Finish”
- Eclipse will check for the latest version�
- Make sure “FDT” is ticked again in the feature listClick “Next”
- Accept the licensing agreement
- Confirm the correct feature “FDT 1.0.2” is to be installed
- Click “Finish”
- Eclipse downloads FDT …
- Confirm you want to install FDT by clicking “Install”
- Click “Yes” to restart the workbench
FDT install done, Eclipse should now restart.
FDT Config Core Libraries
- Select (from the top toolbar) “Window”-> “Preferences”
- Expand “FDT” in the list on the left then select “Core Libraries”
- Ensure you have a “Flash Default” entry listed and checked.
IF NOT �
- Click “Add”
- Name it: Flash Default
- In Location put like this:
/Users/jensfreudenau/Library/Application Support/Macromedia/Flash 8/de/Configuration/Classes/FP8 - Click “OK”
- Make sure your new entry is checked then click “Apply”, then “OK”
Paths
- Select (from the top toolbar) “Window”-> “Preferences”
- Expand “FDT” in the list on the left then select “Flash”
- Check the paths have been auto filled in. If not, enter them based on your system. On mine, the paths are:
Flash IDE:
/Applications/Macromedia Flash 8/Flash 8
Flash Player:
/Applications/Macromedia Flash 8/Players/Debug/SAFlashPlayer
Flash ASO Directory:
/Users/jensfreudenau/Library/Application Support/Macromedia/Flash 8/de/Configuration/Classes/aso
Make sure you click “Apply”, then “OK”
Tools
- Select (from the top toolbar) “Window”-> “Preferences”
- Expand “FDT” in the list on the left then expand “Tools”
MTASC
- Select “MTASC” in the list on the left
- In the location box enter the full path to wherever you installed mtasc above, e.g.: /Programme/eclipse/mtasc-1.12-osx/mtascc:/
- Click “Apply”
Help
- Select (from the top toolbar) “Window”-> “Preferences”
- Expand “FDT” in the list on the left then select “Tools”
- Select “Flash Help” in the lest on the left
- Click “Update”
- Eclipse updates your help files�
- Click “Apply” then “OK”
- Restart Eclipse
Testing it all
* First note down where your workspace is located (shown in the popup when Eclipse starts), your going to need to know it in a minute.
- Select “File”->”New”->”Project”
- Select “Flash”->”New Flash Project”
- Click “Next”
- Enter “hello_world” and click “Next”
- Click “Create Source Folder”
- Enter as a source folder “Classes” then click “Finish”
- Click “Finish”
- Click “Yes” to open the Flash perspective
- Click “Try FDT”
- In the Flash Explorer list on the left, expand the “hello_world” folder
- Right click the “Classes” folder and choose “New”->”Class”
- In Class Name enter “HelloWorld” and click “Finish”
- FDT creates your stub class file�
- Insert the code below overwriting the stub file:
-
class HelloWorld {
-
function HelloWorld () {
-
_root.createTextField(”hello_txt”,1,0,0,100,100);
-
_root.hello_txt.text = “Hello World”;
-
}
-
//IMPORTANT, YOU NEED THIS FUNCTION FOR MTASC!
-
public static function main() : Void {
-
var h = new HelloWorld();
-
}
-
}
- Save the altered file
- Select “Run”->”Run�”
- Select “FDT � MTASC Support” in the list on the left
- Right click and select “New”
- Name it “HelloWorldBuild”
- Select the “Main” tab
- For “Project” click browse and select “hello_world”
- For “Main Class” click browse and select “HelloWorld” from the list
- Select the “MTASC Arguments panel”
- Change the default arguments to read:
-header 100:100:25 -main -swf hello_world.swf - Don’t touch the other panels yet (as we need to do an initial compile first), just click “Apply” then “Run”
- FDT should now launch MTASC, compile the swf and report the time it took in the “Console” panel at the bottom of the screen. If it says something like “Time to Launch: 16ms” you’re good!
- Select “Run”->”Run�” again
- Go to the “Miscellaneous” panel and check “Start SWF�”
- Click “Browse” and select the “hello_world.swf” located in the “hello_world” project folder in your workspace folder (remember I said you’d need to to know it)
- Select “Open with SWF Viewer”
- Click “Apply” then “Close”
- Click the green “Run” button in the top bar to launch your finished build job
You should now see your hello_world.swf displayed in the “SWF Viewer” panel at the bottom of the screen
