ubuntu

batch converting Nikon .NEF images to greyscale JPG

Run this in a directory of .NEF files to
* create a directory "mkdir bw-jpg-greyscale-lightness"
* convert each image to black and white with auto exposure, colors, white-balence, etc.
* save each image as a JPG to the "mkdir bw-jpg-greyscale-lightness" directory

Written by yours truly

#!/bin/sh
mkdir bw-jpg-greyscale-lightness;

for file in *.NEF;
do ufraw-batch $file --out-path=bw-jpg-greyscale-lightness --wb=auto --exposure=auto --black-point=auto --color-smoothing --grayscale=lightness --out-type=jpg;
done

lucid eclipse autocomplete doesn't appear right: solved

Go to System > Preferences > Appearance, choose the theme you want, click "customize", and change the background and text colors for tooltips. You can do it real-time and see your changes, which is great.

Seems like this is a core ubuntu bug, in my book.

adding aliases the easy way

I'm always forgetting the syntax..

echo "alias drush='~/drush/drush'" >> ~/.bash_profile
source ~/.bash_profile

Going commando with flex on ubuntu: mxmlc, fdb, fcsh

No, I did not just sneeze at you. These are the names of the commands you should get to know if you're a bleeding edge Flex developer.

In a nutshell:

mxmlc flashcard.mxml

To get more advanced, specify the path to output the compiled swf to, and mark for debug:

mxmlc -library-path+=libs/as3corelib.swc -debug=true -output=bin-debug/flashcard.swf src/flashcard.mxml

Installing PDT on Eclipse 3.5, Ubuntu lucid 10.04

I couldn't get this working for a while. I had a stock eclipse setup from the Ubuntu repository that I had put Flex Builder in. Next went to install PDT but couldn't get it working whether through a repository, through the eclipse update site, etc.

I didn't realize you need to run eclipse as root to install plugins. and it provides no error message telling you the installation was a complete failure- it just fails to write the plugin files silently. doh!

Here's how to get it working:

- start eclipse as root - sudo eclipse
- Help > Install new software

ubuntu lucid: flex builder w/ sdk 4 on eclipse 3.5 gallymead. no.

UPDATE: I gave up on this approach and moved back to Eclipse Europa 3.3

Much to my dismay, there were just too many bugs trying to get FB to support 3.5 correctly. I had it mostly working, but there are unresolved issues with the ProblemManager Class that caused consistent "internal build error" messages and generally completely unacceptable error reporting.

I don't know about you but the scope of my Flex work is such that I need top-notch error-reporting. And I really don't like having to apply multiple patches to get my IDE to a half-functional state.

installing red5 on ubuntu slicehost - the easy way

this is easier than you might expect.

fix your sources.list
sudo nano /etc/sources.list
...and add "multiverse" to end of all the lines

update apt
sudo apt-get update

get red5 .deb installer
wget http://www.nielsenaa.com/red5-installers/red5_0.7.0_all.deb

install red5
sudo dpkg -i red5_0.7.0_all.deb

fix any dependency issues
sudo apt-get -f install

check it out @ http://myserver.com:5080 . you should see the red5 page!

Ubuntu Vmware Server C header files headers error

stuck with this error?

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The path "/usr/src/linux/include" is not an existing directory.

try this:

sudo apt-get install linux-headers-$(uname -r)
ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux

Ubuntu - Uninstall & reinstall all packages

This saved me a bunch of time downgrading from 64-bit to 32-bit ubuntu:

http://ubuntuforums.org/showthread.php?t=261366

upgrading Flex builder linux to alpha 5, on 64-bit Ubuntu 9.10:

OK. So for anyone else having this issue, when Adobe decides to piss on us Linux Flash developers again:
This time it was making my Flex Builder Alpha expire. First it took hours ( and two unhelpful Adobe reps ) to realize that there was a new alpha available for Flex. I thought they were trying to make me buy a license. So I figured, oh, cool, it'll be a cinch to upgrade. But I was incorrect.

Upgrading Flex builder linux to alpha 5, on 64-bit Ubuntu 9.10:

Syndicate content