Archive for June, 2010

flash compilation problem : white screen

Sunday, June 27th, 2010

if error “5005: Unknown error optimizing byte code” and white screen at compilation, we can increase the memory given to the compilator :

create the file ~/.MacOSX/environment.plist and copy :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>JAVA_TOOL_OPTIONS</key>
<string>-Xmx512m</string>
</dict>
</plist>

then log out for the change to take effect

with CS5 we also should modify this file : ~/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/ActionScript3.0/jvm.ini
and change -Xmx128m by -Xmx512m

restart flash and it should be ok

Using a Debian Virtual Machine as local server in OS X (2)

Sunday, June 20th, 2010

install debian

virtualbox preferences > network >
adapter : 192.168.3.1
dhcp server : off

settings > network :
adapter 1 : host-only adapter
adapter 2 : NAT

settings > storage :
CD/DVD : VBoxGuestAdditions

restart virtualbox

start vm

nano /etc/network/interface
auto eth0
iface eth0 inet static
address 192.168.3.3
netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

(use ifconfig -a to get the right interface name : eth0, eth1, eth2, …)

aptitude install virtualbox-ose-guest-dkms

virtualbox : settings > shared folders > add

rm -f /var/www/*

nano /etc/fstab

Sites /var/www/ vboxsf defaults,uid=33,gid=33 0 0

uid=33, gid=33 -> mount as user www-data so that apache can write to disk (file upload, etc ..)