Saturday, May 30, 2009
pd
In order to compile pd on Fedora 10 (Linux), I needed the following packages:
yum install tcl-devel tk-devel fftw3-devel ladspa-devel speex-devel gsl-devel dssi-devel glut-devel pidip-devel imlib2-devel theora-devel vorbis-devel libvorbis-devel libtheora-devel libquicktime-devel -y
Friday, May 29, 2009
from ruby to python
A reddit thread about a programmer going from ruby to python. Which is what I'm doing as well.
Like, I love Ruby, and do all my scripting in it, but everyone else here is doing Python, and we could get more synergy with everyone doing Python.
analogin
Analog In - OSC
/analogin/5/value
and autosend
/analogin/5/autosend 1
/system/autosend-interval 10
/system/autosend-udp 1
mmm pie
Piezoelectricity - is the ability of some materials to generate an electric potential in response to applied mechanical stress.
Saturday, May 23, 2009
tip
Getting to where you were, terminal navigation all fast-like
alias saved='echo `pwd` > ~/.savedir'
alias showd='cat ~/.savedir'
alias god='cd `cat ~/.savedir`'
Friday, May 22, 2009
Thursday, May 21, 2009
Wednesday, May 20, 2009
Tuesday, May 19, 2009
double spacing
Double-spaced sentences
Amazing amount of details, I thought it was simple, but it's actually quite a deep topic.
social
Social construction - A social construction or social construct is any phenomenon "invented" or "constructed" by participants in a particular culture or society, existing because people agree to behave as if it exists or follow certain conventional rules.
servo
Controlling the servo on the Make Controller:
To set the first servo to one quarter its position, send the message
/servo/0/position 256
Leave the argument value off to read the position of the servo:
/servo/0/position
To set the speed of the first servo to just under full speed, send a message like
/servo/0/speed 975
Monday, May 18, 2009
big fonts
I use Firefox for viewing web pages that I want to be pretty, but I use Opera for everything else. It handles tabs much better, and I can have 20-50 tabs open at once.
I like having a nice big font in Opera, so I go into "Tools->Preferences", select the "Advanced" tab and choose "Fonts" from the menu on the right. I then can set the "Minimum font size (pixels)" to some nice big value, I like 20 pixels.
This works great for almost all websites, except for some that get tricky and set the "line-height" css property based on em widths.
To fix this, go into "Tools->Preferences", select the "Advanced" tab and choose "Content" from the menu on the right. Click on "Style Options" and then at the bottom, you can choose a CSS file for your own style. Here's one that is working well for me:
p {
line-height: 20px;
}
ul {
line-height: 20px;
}
dl {
line-height: 20px;
}
Sunday, May 17, 2009
Friday, May 15, 2009
Thursday, May 14, 2009
numlock
On xorg - ctrl-shift-numlock swaps between cursor and numeric control.
Wacky! This just happened to me.
Wednesday, May 13, 2009
think
Things I'm thinking about today:
Infrared
Embodied music cognition
Rhythm
Levenshtein distance
Self-organizing map
New Complexity
cwiid
Marc Leman - Main research focus: systematic and cognitive musicology (how music generates meaning in the sensorial, perceptive, cognitive, motoric and emotional domains); multimedia technology applied to the arts.
Tuesday, May 12, 2009
Monday, May 11, 2009
turbogears
turbogears.org/
The TurboGears 2 Wiki Tutorial
Controllers in TG2
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
Genshi Python toolkit for generation of output for the web
TG 2.0
TurboGears Documentation
force
Force-based algorithms - What I'm going to use for the mass spring damper system in Actionscript that I'm writing
boosting
Boosting - is a machine learning meta-algorithm for performing supervised learning. Boosting is based on the question posed by Kearns[1]: can a set of weak learners create a single strong learner? A weak learner is defined to be a classifier which is only slightly correlated with the true classification. In contrast, a strong learner is a classifier that is arbitrarily well correlated with the true classification.
Saturday, May 09, 2009
Thursday, May 07, 2009
Wednesday, May 06, 2009
esc
URI Escape
You may have seen a string like "%E3%82%82%E3%81%97%E3%82%82%E3%81%97.png". Characters for URI (URL) are limited to subset of ascii characters, therefore other characters (ex. 2 byte characters) are expressed using "% + hex?number" form. The expression "% + hex number" is called as "percent escape". "URI Escape.osax" is a scripting addition to encode strings into pecent escaped form and decode it.
Tuesday, May 05, 2009
psd
Some thoughts about the PSD format - good blog post about why the Adobe PSD format is so byzantine. It's a product of evolution and backwards compatiblity. Good points.
Monday, May 04, 2009
force
Force-based algorithms - are a class of algorithms for drawing graphs in an aesthetically pleasing way. Their purpose is to position the nodes of a graph in two dimensional or three dimensional space so that all the edges are of more or less equal length and there are as few crossing edges as possible.
stroketext
strokeText.js - The library provides cross API text stroking capability for Canvas and VML. The (built in) sans-serif font is also adapted for SVG to ensure an identical representation.
Looks interesting.
Sunday, May 03, 2009
Saturday, May 02, 2009
Friday, May 01, 2009
rest
REST worst practices
1) Conflating models and resources
2) Hardcoded auth
3) Resource-specific output formats
4) Hardcoded output formats
5) Weak HTTP method support
"Nothing about the REST model says that you have to limit yourself to the Big Four; it simply says that the methods you support need to be supported uniformly. PATCH, in particular, might be a very useful method."
6) Improper use of links
7) Couple the REST API to the application
The take home message is:
Resource != Model.
Subscribe to:
Posts (Atom)