Tuesday, February 23, 2010

Monday, February 22, 2010

mir




Music as Embodied Knowledge: Info-Seeking Behaviour in a Flamenco Guitar Workshop with guest speaker, Margaret Lam, Masters of Information Studies Candidate.

Wednesday, February 24
KMDI Lab ? Bahen Centre, 50 St. George Street, 7231

4:30 pm -5:30 pm

Abstract:

Much research has been done in the field of information seeking behaviour, information retrieval, information architecture and system design to facilitate the sharing of musical content. With all the advances in the field, there remains an emerging research area, namely, how musical knowledge is being renegotiated in the information age. In this presentation, the preliminary results of a pilot ethnographic study will be presented in the context of multiple disciplines such as information science, ethnomusicology, music education and knowledge media design, highlighting a rich area for innovative interdisciplinary collaboration. This is a version of Margaret's talk which will be given at the British Forum for Ethnomusicology's Annual Conference in Oxford this April.






mmm pie



fight!



nexus



pad




An Adobe Flash developer on why the iPad can?t use Flash - The reason is - no mouseover. This is a real problem with touchscreen interfaces.



Sunday, February 21, 2010

Saturday, February 20, 2010

Friday, February 19, 2010

sound.py




How to play a sound in Python

and my Linux only version with comments:


#!/usr/bin/python

from wave import open as waveOpen
from ossaudiodev import open as ossOpen
from ossaudiodev import AFMT_S16_NE

# Open the sound file
file='abacus_click.wav'
s = waveOpen(file,'rb')
(nc,sw,fr,nf,comptype, compname) = s.getparams( )

# Open the sound card
dsp = ossOpen('/dev/dsp','w')

# Setup the sound card
dsp.setparameters(AFMT_S16_NE, nc, fr)

# Read the sound file
data = s.readframes(nf)
s.close()

# Play the sound
dsp.write(data)

# Close the DSP device
dsp.close()




chart



ok



thread



sc2



fl



nav



functional



Wednesday, February 17, 2010

jam



minus s




Ah tricky! I was trying to debug a file with gdb, and was using the -g flag, but gdb still would tell me "no debugging symbols found".

Turns out this was because I had accidently added the "-s" flag to LDFLAGS, which strips the executable...



Elaine Chew

Tuesday, February 16, 2010

set




Flash Settings manager - very useful!



sleeeep




A trick on Linux when you are "tail -f"ing the flashlog.txt file when using a local flashplayer applet. I was having some terrrible tracing issues, because the file was getting truncated and looked the same after it was truncated, so I wouldn't always see it change. To fix this, lower the sleep interval to the tail command:


tail -f -s0.01 flashlog.txt




poky



nn




Auto-encoder - An auto-encoder is an artificial neural network used for learning efficient codings.
Boltzmann machine - A Boltzmann machine is the name given to a type of stochastic recurrent neural network.



Monday, February 15, 2010

tricky!




I had some getters and setters in Actionscript that were accessing a private member variable _status, which looked like:


private var _status:String;

// Getters and setters for status
public function get status():String {
return _status;
}

[Bindable(event="statusChanged")]
public function set status(value:String):void {
_status = value;
statusChanged = true;
invalidateProperties();
dispatchEvent(new StatusChangeEvent(value));
}


I couldn't figure out how to call the setter function from Actionscript, and looked all over. Turns out the solution is way easier than I imagined, just set the "status" variable:


status = STATUS_BUSY;


This calls the appropriate setter.



The Next Generation of Neural Networks

good



tiger




2010 is the Year of the Tiger - symbol of vivacious bravery!



aural



whale



disks are cheap



mmm



five dot one



p3wny



eclipse



five



motion



mood enhancer



lineup



btr



sch




Schroedinbug - a bug that manifests only after someone reading source code or using the program in an unusual way notices that it never should have worked in the first place, at which point the program promptly stops working for everybody until fixed.



Monday, February 08, 2010

gotcha




I just encountered a little gotcha when compiling Flex. I like to separate out my .mxml and .as files, so I had something like:

GetDrawData.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">

<mx:Script>
<![CDATA[

include "GetDrawData.as"

]]>
</mx:Script>

<mx:Label width="100%" color="blue" text="abctest123"/>
</mx:Canvas>


and then had a .as file called GetDrawData.as. When I tried to compile this I got the following error message


Error: Could not resolve <sness:GetDrawData> to a component implementation.


The solution is to rename GetDrawData.as to something like _GetDrawData.as.


<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">

<mx:Script>
<![CDATA[

include "GetDrawData.as"

]]>
</mx:Script>

<mx:Label width="100%" color="blue" text="abctest123"/>
</mx:Canvas>


Tricky!



transcribe




The Bentham Papers Transcription Initiative - Crowdsourcing the transcription of paper archives.



calc



open




Following the open trail. Open source aspects of Flash.