You are viewing [info]aklikins's journal

color sorting

Jul. 6th, 2011 | 03:34 am

I find the idea of sorting a set of colors in interesting ways. It's very much a perceptual problem. Different people will sort a color palette in different ways.


"web" palette sorted by saturation. (Some of these examples are truncated for formatting, see the sortpal pages for fuller versions)


People organize colors differently. Lots of ways to sort them mathematically. Some map well to what people perceive as correct. Some do not.


web palette sorted by proximity in rgb colorspace


Sortpal is project to try to visualize what some of these different methods look like, and how they compare to each other. It shows a set of color palettes, sorted by the various attributes like it's redness, or brightness, or saturation. For example, in the "red" row, the reddest colors are at the far left and decreasingly red colors to the right. The width of the color depends on the number of colors in the palette.


web palette sorted by redness


Different color palettes can be chosen, including the 216 "web safe" palette (wiki), the X11/css "named" colors (wiki), the xkcd color survey (xkcd color survey), a rough approximation of the spot colors often used in print, a </a>Hilbert curve through rgb space (wiki), misc artistic palettes, etc.</a>


The sort methods fall into a couple of sorts (ha!):


Sorting by one component of a color space, the most obvious being the red, blue, green values of RGB:




web palette sorted by red, green, blue respectively


Hue, saturation, and value (HSL and HSV) is another color space, that maps a lot more naturally to how people understand colors.







web palette sorted by hue, saturation, value, lightness, respectively.


Hue or Saturation are probably what most people think of as the natural way to sort colors.


Another approach is sorting by proximity in the 3d color space. The idea being to start at the origin, and find the closest colors in 3d.


Hue, Saturation, Lightness 3d


Hue, Saturation, Value 3d


Red, Green, Blue 3d


The code is up at github. No promises to it's correctness or functionality.


Note that for the most part, all of the methods shown here are described as being one parameter sorts, but in some cases there are secondary and tertiary sorts as well (hsv3d, and chroma ) mostly just to stabilize the sorts.




Link | Leave a comment | Add to Memories | Share

helicopter flight/lesson

Jul. 5th, 2011 | 02:31 am

me in a helicopter


A couple weeks ago we took a helicopter demo flight and lesson from North Carolina Rotor and Wing. It was a short and to the point classroom lesson, and then a ~30 min flight in a Robinson R22 helicopter.


The helicopter itself is tiny. Two passengers, shoulder to shoulder. A small piston engine. Less than a 1000 lbs sans passengers.


Flying a helicopter is an interesting experience. There are alot of things going on to keep track of, and the controls are sensitive,but with a bit of delay to control input.


This was a gift from Gina since I had often remarked I had never been in a helicopter. Although I have flown in a glider, a single engine kit plane, a zeppelin, and a hot air balloon. Any one know where one could take a gyrocopter flight?




Link | Leave a comment | Add to Memories | Share

psaltery prototype

Jul. 5th, 2011 | 01:59 am


Prototype of bowed psaltery/hammerred dulcimer built from some scrap, zither tuners and guitar strings.




Link | Leave a comment | Add to Memories | Share

git diff like highlighting of extra whitespace in vim and emacs

Jun. 6th, 2011 | 04:43 pm

via Jim Meyering via coreutils list


Some configs for vim and emacs to show trailing whitespace and other whitespace anomalies.


vim config



let c_space_errors=1

highlight RedundantSpaces ctermbg=red guibg=red

match RedundantSpaces /\s\+$\| \+\ze\t/


Emacs needs the Whitespace mode from http://www.emacswiki.org/emacs/WhiteSpace


The default config is a bit overboard for me, so I use something more like:



;http://www.emacswiki.org/emacs/WhiteSpace

(require 'whitespace)

(autoload 'global-whitespace-mode "whitespace" "Toggle whitespace visualization." t)

(autoload 'global-whitespace-toggle-options "whitespace" "Toggle local `whitespace-mode' options." t)


;turn on the more or less git diff --color whitespace highlighting

(setq whitespace-space whitespace-style (quote (face tabs trailing space-before-tab newline empty space-after-tab indentation)))




Link | Leave a comment | Add to Memories | Share

gitconfig

May. 14th, 2011 | 09:14 pm

I finally started organizing the various git commands and aliases I use alot, and published them to github. My gitconfig repo.


Some of these are useful only for projects similar to mine (fedora, tito based, bugzilla, etc) but I think some of then are generally useful.


A few favorites:

# commits not pushed to $1

unpushed = cherry -v


# ignore po files in "git log", sorry translators ;-<

slog = "!sh -c 'git log --no-merges $1 `ls | grep -v ^po`' -"


# what tag contains the sha

whatrelease = name-rev --name-only


# what branch contains the sha

contains = branch --contains


# what got pushed to master in the last hour

# based on http://stackoverflow.com/questions/3357219/expose-the-date-a-commit-was-pushed-to-a-repository

justpushed = log origin/master@{\"1 hour ago\"}..origin/master --


# show a list of branches sorted by time of last commit

brage = "!sh -c 'for C in $(git for-each-ref --sort=committerdate refs/heads --format=\"%(refname:short)\") ; do git show -s pretty=format:\"%Cgreen%ci %Cblue%cr%Creset $C\" \"$C\" -- ; done'"


# show a list of tags sorted by when they were tagged

tagage = "!sh -c 'git for-each-ref --sort=taggerdate refs/tags --format=\"%(refname:short)\"'"


# show a list of every branch and show there latests commit, sorted by last commit

brlog = "!sh -c 'for C in $(git for-each-ref --sort=committerdate refs/heads --format=\"%(refname:short)\") ; do git show -s --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset $C\" \"$C\" -- ; git show -s $C ; echo; done'"


# needs python-bugzilla, and git-showbugs

openbugs = showbugs -s NEW,ASSIGNED,NEEDINFO,FAILS_QA,REOPENED,ON_DEV

closedbugs = showbugs -s PASSES_QA,VERIFIED,RELEASE_PENDING,CLOSED



# show a list of files with bug fixes in them, sorted by popularity of occurance

# aka, list the buggy files

buggyfiles = !"git log --format=\"format:%n\" --grep \"^[[:digit:]]\\+:\" --name-only | grep . | sort | uniq -c | sort -n"




Link | Leave a comment | Add to Memories | Share

Maker Faire NC 6/18/11

May. 14th, 2011 | 05:40 pm

I'm going to be playing Maker Faire NC 6/18/11 at ~12:30pm in the Kerr Building at NC State Fairgrounds.


I'll be bringing the Stochasticaster, the Heart Kalimba, Kalimbateeny, Kalmibazooka, the de-fretted guitar, and whatever else I can find or finish in the meantime.




Tags: ,

Link | Leave a comment | Add to Memories | Share

919noise 4/6/2010 Stochasticaster debut

Apr. 10th, 2011 | 05:07 am

For the performance at the 919noise showcase, I built an instrument based on a cross between a guitar, a kalimba, and a spring reverb tank.


no name yet


I wanted a physical sounds source as opposed to something electronic or digital. In this case, magnetic pickups with strings resonating in them like a regular electric guitar. Long loose strings for reverb type sounds, short strings for kalimba like tones. 34 strings/tines in total, 5 single coil pickups, 5 bridges. String gauge range from .09 inch (typically the high E string on a guitar), all the way down to a .106 inch string (typically low E string on a bass guitar).


Bridges were the same style of electrical panel grounding bars as I used on the Kalimbazooka.


Unlike the Kalimbazooka, this used the more flexible electric guitar strings for the tines, which made it somewhat difficult to tune. The strings were very sensitive to the exposed length, which was difficult to get right. I got it mostly at tune at one point, but it drifted quickly, and I ended up forgetting about trying to tune it to a particular set of notes. Oh well, it makes cool noise.


Built it in a week or two. Not sure I learned to play it as well as I would like, but I wanted something new and interesting. I guess with this kind of thing, the main thing to figure out is how it interacts with the amps and feedback, which I thought I had figured out.


I played first after a couple minutes of soundcheck. One of the first problems I ran into was the buzz/hum. Lots of it. The type of pickups in it (single coils) have a tendency to buzz a bit, but in normal guitars, only one is on at a time. I had 5 of them. That plus some long wires, bad shielding on the cheap donor guitar, and I had a pretty loud buzz. Could be worse, it was a noise show at least. I've got some ideas on how to fix it though.


Adrian at nightlight


The high noise floor made it a little hard to use as much dynamics as I would have like. Quieter things got washed away in the noise. So less subtlety was called for.


Was nervous about it as usual, and rushed stuff. Not particularly a good habit for noise/ambient/drone, hopefully it works for me. Seemed to get a good response, and folks were curious and complimentary about the instrument.




Tags: , ,

Link | Leave a comment {1} | Add to Memories | Share

Near space balloon launch talk at TriLug.

Sep. 8th, 2010 | 06:16 pm

Since several TriLUG'ers were involved, TriLUG is hosting a talk about our recent balloon launch. The talk will be given by Tanner Lovelace and Jonathan Trappe.


The meeting will be Thursday, Sept 9, 2010 at Red Hat headquarters in Raleigh, NC.


IMG_1205




Link | Leave a comment {1} | Add to Memories | Share

Balloon launch

Aug. 30th, 2010 | 04:19 am

I've been working with a team from Tech Shop RDU to put together a helium balloon as part of the Hackerspaces in Space contest.


Basic idea, build a balloon with a camera and gps, and try to get pictures of the curvature of the earth and the blackness of space. And I think we did.


We actually made two launches, the first included my camera (Canon sd850, running CHDK firmware, and a script to take a pic every 15 seconds and log some basic data). We thought we lost it after the gps transmitting via a ham radio data connectio stopped transmitting, but someone found it in Wendell, NC and called us.



IMG_1174


IMG_1058


The team also made a second launch that day. We thought the first one was long gone, so put together a second launch from spare parts. I had to leave early so didn't get to help out with the second launch though. Mk II was a simpler setup, with just a Spot gps tracker and a nikon point and shoot camera with a built in intervalometer. It looks like it was able to fly a little higher, probably due to the reduced weight (first capsule was about 3.5lbs, I think the second one was closer to 2).


DSCN0123


DSCN0177


DSCN0203


I think the current estimate for the second balloon launch is somewhere in the 80,000 ft range. It is definately high enough to see the curvature of the earth and the thinning and the black of space in the photos.


We had a lot of people show up to watch the first launch.


IMG_1209


Near Space Balloon


Adrian and the Balloon


Near Space Balloon


We even maanaged to get a fair amount of press coverage, including a segment on the local news ,WRAL



Photos provided by lintqueen, and clubjuggler, and Ncnearspace




Tags:

Link | Leave a comment {4} | Add to Memories | Share

heart kalimba

Aug. 10th, 2009 | 09:04 pm



heart_kalimba

I'm on a bit of a trend. This was built as a belated Valentines day gift so it was made from a heart shaped candy box. The main set of tines use a busbar, just like the kalimba's on the kalimbazooka.

tines


The pine sounding board and metal resonator gives it a pretty good sound. It is tuned to two octaves of a pentatonic C major scale.









Link | Leave a comment | Add to Memories | Share