Posted: April 24th, 2009 | Author: scy | Filed under: Notes | Tags: DVD, Notes, Vista | No Comments »
An old problem that resurfaced when I re-installed Vista.
Solution can be found here:
http://support.microsoft.com/default.aspx/kb/929461
Posted: January 16th, 2009 | Author: scy | Filed under: Flash, Notes | Tags: Notes | 1 Comment »
In the past I purposely did not put borders around my flash projects so that I could easily make them fit in with my website whenever I redesign it. The idea was that it would be easy enough to add a border using CSS… but that did not work out well. So I just embedded the files without a border, which made it hard to tell where the .swf begun and where it ended if I used a white background. Recently however I took another go at it and was successful, the trick was to add display: inline-block; to it.
.flashBorder {
padding: 2px;
border: 1px solid #CCCCCC;
display: inline-block;
} |
<div class="flashBorder">
<object width="400" height="300">
<param name="movie" value="yourProject.swf">
<embed src="yourProject.swf" width="400" height="300">
</embed>
</object>
</div> |
Without adding disply: inline-block;, my div borders would expand as far as possible instead of hugging closely around the flash object. The only way I could find around it was specifying the div width and height for each flash object that needed a border.
Posted: January 11th, 2009 | Author: scy | Filed under: Notes | Tags: Notes | No Comments »
I began reading SICP last night but didn’t bother trying to install MIT-Scheme until now. So far it has been a bit of a headache. I am running Ubuntu Intrepid 8.10. The first problem was that the package manager could not find libltd3. I followed the workaround stated here and installed the debian libltd3 by running
$ sudo dpkg -i libltd3_(version number).deb |
This worked well and allowed MIT-Scheme to be installed from synaptic. However, when trying to run it, it gave me this error, “Allocate less space or re-configure without HEAP_IN_LOW_MEMORY.” A workaround for this is discussed here. Basically type in
sudo sysctl -w vm.mmap_min_addr=0 |
This offers a temporary fix, but at least now everything will actually run.
Posted: December 21st, 2008 | Author: scy | Filed under: Flash, Notes | Tags: as3, Flash, Notes, vim | No Comments »
Backup of my vimrc file that was customized using the links below. It is setup with Flash(AS3) development in mind.
http://vim.wikia.com/wiki/Quick_yank_and_paste
http://www.flashdevelop.org/community/viewtopic.php?f=9&t=3973
syntax on
colorscheme kib_darktango
" Normal copy/paste
vmap <C-c> y<Esc>i
vmap <C-x> d<Esc>i
imap <C-v> <Esc>pi
imap <C-y> <Esc>ddi
map <C-z> <Esc>
imap <C-z> <Esc>ui
set number
set nowrap
set autoindent
" Any file with .as extension is treated as an actionscript file
autocmd BufRead *.as set filetype=actionscript
"Preview in webbrowser
command Preview :!firefox %:p:r.swf
"This command (:DebugF) launch flashplayer debug. In gvim, juste type :DebugF or :De and tab
command DebugF :! /home/scy/flash/flashplayer %:p:r.swf
" Compile for Flash Player 10.
command Flex4 :! /home/scy/flash/flex_4.0.0.4/bin/mxmlc %:p
" Compile using Flex3 sdk and Flash Player 9.
" Output .swf is named after [filename] ie Test.as results in Test.swf
command Flex3 :! /home/scy/flash/flex_3/bin/mxmlc %:p |
Posted: December 16th, 2008 | Author: scy | Filed under: Flash, Notes | Tags: 2d, box, Flash, Notes | No Comments »
Here is a quick example of getting a ball to roll around and hop up. It is a modification of the HelloWorld.as example that comes with Box2dFlash. Use the arrow keys to move around.
Read the rest of this entry »