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.
border: 1px solid #CCCCCC;
<object width="400" height="300">
<param name="movie" value="yourProject.swf">
<embed src="yourProject.swf" width="400" height="300">
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.
Attempted to make a snazzy portfolio using jQuery over the past week. It is essentially a horizontal accordian.
To view it, go here.
It is unfinished (unpolished) as I decided I didn’t like it after playing around with it for a while. But it may come handy in the future.
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: January 10th, 2009 | Author: scy | Filed under: Python | Tags: django, Python, regex | No Comments »
Just read through the first three chapters of The Django Book 2.0. It actually makes sense now that I have gotten my hands dirty with both python and regular expressions. When I tried to learn Django the first time it was easy to understand the concepts and copy/paste code together, but now I have a much better understanding of what the code actually does, so it seems less like magic. I am really looking forward to further chapter releases.
Posted: January 5th, 2009 | Author: scy | Filed under: Other | No Comments »
It was not too long ago that I decided to make the transition from Windows to Linux, but so far it has been a mostly pleasant experience. My distro of choice is Crunchbang Linux, which succeeds with its design purposes “to offer a good balance of speed and functionality.” I’d used other distros in the past (more specifically Zenwalk, Xubuntu, and Antix-Mepis) and stuck with them all for a month or two, but for some reason or the other I always went back to Windows. But with Crunchbang came a nice all around package and two great programs I’d never known about but use frequently now that I do.
It’s a simple, quick way to run any program already installed. Press a hotkey, type in the first few letters of your program, then press Enter. No need for the mouse, no searching through folders and subfolders, just quick and efficient use of the keyboard.
Another lightweight program. Deluge is a bittorrent client that reminds me of Azureus (the client I would have chosen if Deluge weren’t pre-installed) if Azureus were simpler.
One that I’d tried on Windows plenty of times before with little success. It is easily the most frustrating piece of software I’ve ever used, but I’ve learned to like it and use it on a daily basis. Still learning a lot of the ins and outs and constantly getting faster with it, so hopefully my frustration will fade with time.