mncaudill/3bitdither | Github
7 weeks ago by blech
"This demo currently uses two different error-diffusion dithering algorithms: Atkinson's and the Floyd-Steinberg algorithm. Error-diffusion means that the algorithm goes pixel by pixel, rounds the individual R, G, and B channels to either 0x00 or 0xff, and then distributes those differences (which the algorithm calls the "quantization error") in differing amounts to pixels further down the line. It being a 3-bit dithering means that your red, blue, and green channels are represented by a single bit (off or on), giving you a total of 8 colors."
newaesthetic
design
code
javascript
image
7 weeks ago by blech
The pxl effect with javascript and canvas (and maths) | Rev Dan Catt
7 weeks ago by blech
"As part of a bigger project I wanted to generate an abstract background image/texture." "Recently the pxl app for iPhone has filtered through my friends. It allows you to apply a variety of abstract compositions to your photos, a popular one turns an image into a collection of triangles, a general effect that should work well, and allow us to create a large background image out of a relatively small source image." Nice work there.
newaesthetic
design
code
javascript
image
twitter/capture
via:@revdancatt
7 weeks ago by blech
GEOIPSUM | Scratching the surface
january 2011 by blech
"Have you ever needed to generate some fake polygons to test a geo application? No... oh. I have, so I created GEOIPSUM!!!" "I used polymaps for the map, rails for the app, don't go near the dateline, it's a bit crap."
geo
json
code
placeholder
via:iamdanw
from delicious
january 2011 by blech
A Python script to migrate networks | gist
december 2010 by blech
I probably should have made this a proper project rather than just a gist, but: a Python command line script that goes through and subscribes to people with the same username as those in your Delicious network. Almost certainly not perfect, but hopefully usable.
delicious
pinboard
python
gist
socialnetwork
portability
code
from delicious
december 2010 by blech
journal.stuffwithstuff.com » Blog Archive » The Biology of Sloppy Code
december 2010 by blech
To the question, “what is the next big trend in programming”, Guy Steele said, “Maybe it’s sloppy programming.”
development
language
code
from:instapaper
from instapaper
december 2010 by blech
Processing.A4 | Basil Safwat
october 2010 by blech
A version of the Substrate Processing code to paper, from Papercamp 2 in London.
papercamp
processing
design
programming
code
paper
via:blackbeltjones
from delicious
october 2010 by blech
Welcome! | PyEphem
june 2010 by blech
"PyEphem provides scientific-grade astronomical computations for the Python programming language. Given a date and location on the Earth’s surface, it can compute the positions of the Sun and Moon, of the planets and their moons, and of any asteroids, comets, or earth satellites whose orbital elements the user can provide."
python
code
library
module
science
space
astronomy
iss
development
sciencehackday
from delicious
june 2010 by blech
Photos from the "Your Best ... | Twitter/kellan
january 2010 by blech
'Photos from the "Your Best Shot of 2009" group, that are in galleries, a slideshow' Key bits: you can pass a slideshow a Flickr API method, and flickr.photos.search can take an 'in_gallery' argument.
flickr
api
code
kellan
via:straup
january 2010 by blech
mroth's flickr-wholovesyou at master | GitHub
january 2010 by blech
"A quick and dirty command line tool to see what Flickr members most frequently favorite photos of you (or someone else you know!). This uses the People in Photos feature (API documentation coming soon to Flickr!)" The key bit: person_id in the flickr.photos.search method.
flickr
github
code
api
search
mroth
via:straup
january 2010 by blech
aanand's cmon at master | GitHub
august 2009 by blech
"cmon is an HTML preprocessor that adds powerful layout capabilities to your markup. With cmon, you can engineer solid, cross-browser layouts that in CSS would require hours of writing and debugging browser-specific behaviour.
html
web
development
code
css
github
via:@robinhouston
august 2009 by blech
Backfilling Flickr Data in Aperture | AlexUndercover
july 2009 by blech
Well, that's handy. I tried doing this for iPhoto (with limited success), but Aperture is probably a better platform for it. If only Photoshop 5.5 hadn't stripped EXIF out of everything I uploaded from 2001 to 2004...
aperture
flickr
ruby
applescript
osa
code
todo
july 2009 by blech
Manufacturing flic.kr style photo URLs | Flickr API
april 2009 by blech
kellan explains the base 58 encoding used for turning a photo ID into the hash used in the flic.kr/p/hash/ short form URL for a Flickr page (which might, hopefully, see people using Flickr instead of Twitpic when doing short status updates).
flickr
api
php
code
url
source
revcanonical
via:kellan
via:straup
april 2009 by blech
django-gae2django | code.google.com
march 2009 by blech
"gae2django is a Django helper application that provides an implementation of Google's App Engine API based on pure Django. The helper makes it easier to re-use applications originally designed for Google's App Engine environment in a Django environment." Handy for avoiding lockin (which seems to be attracting folk to Heroku).
python
google
appengine
code
django
portability
paas
via:jerakeen
via:simonwillison
march 2009 by blech
advice to a new journalist: learn to code | Charles Arthur
january 2009 by blech
"You’d be able to knock up something like the Guardian BNP map without a second thought." I'd argue that you don't necessarily need to be able to code, but you do need to be able to use good tools; Excel and DabbleDB spring to mind (but aren't mentioned in the comments). (Note megp asking for Dopplr CSV exports so she can do her own visualisations.) Still, interesting thoughts.
journalism
programming
development
code
tools
january 2009 by blech
DS_Store Format | search.cpan.org
december 2008 by blech
Documentation of the various settings for Finder window settings stored in .DS_Store. This might be useful if I ever start itching to programatically fix up various window issues.
mac
finder
ftff
perl
cpan
code
via:siracusa
december 2008 by blech
Home | GeoKit for Rails
december 2008 by blech
Looks interesting, although my geo-using projects are in GAE and I've just discovered geopy, which seems to be working. As you'd expect, over in the Rails world there's a bit more magic involved (like "an option to automatically geocode a model's address field on create").
ruby
rails
code
development
geowanking
via:straup
december 2008 by blech
5 Questions for Gustavo | code.flickr.com
november 2008 by blech
"Cache, cache, cache." Interesting stuff on large-scale data analysis on Flickr, including recommendation systems based on favourites.
flickr
code
developer
development
interview
november 2008 by blech
Stripes and Surrealism: Playing with the Moo API | Infovore
october 2008 by blech
A nice hack, doing something a little less obvious with Flickr and Moo stickers. Complete with source code.
flickr
moo
favcol
stickers
design
code
api
blogcomment
october 2008 by blech
Who's On First | code.flickr.com
september 2008 by blech
Aaron writes up a new API method, flickr.places.placesForUser, which might be just the thing for me, and reiterates a bunch of other useful geolocation stuff.
flickr
geowanking
api
code
development
september 2008 by blech
Apple’s Script | Red Sweater Blog
june 2008 by blech
Daniel Jalkut argues that, given SquirrelFish and its wider success, Apple should consider retiring AppleScript as the primary choice for the Open Scripting Architecture and replace it with JavaScript. Lots of comments already.
apple
applescript
javascript
development
code
comment
june 2008 by blech
Flickr Button for Picasa | Flickr Ideas
march 2008 by blech
That didn't take long, then. Mind you, this just hands off to the Flickr Uploadr, rather than using web-based upload itself. That'll be a bit harder, I suspect.
google
picasa
flickr
code
march 2008 by blech
html5-gears | Google Code
march 2008 by blech
What it says on the tin: "A JavaScript shim for HTML 5's offline API and manifest format, implemented using Google Gears under the cover." Useful now there's an HTML5 storage API supporting browser out there.
google
code
storage
database
offline
html5
march 2008 by blech
#29684: Empty summary added on convert() | rt.cpan.org
march 2008 by blech
I need to apply this patch to my local XML::Feed, after I've done a similar patch/test job on the changes I made to get a valid Atom feed out of the module.
perl
xml
atom
feeds
code
bug
patch
march 2008 by blech
JavaScript Pretty Date | John Resig
january 2008 by blech
Huh, the groupr dev branch had a function like this, except it handled months too. I wish I'd hived it off into a library now.
javascript
groupr
zimki
code
opensource
jquery
web
january 2008 by blech
jQuery for JavaScript programmers
august 2007 by blech
I spent a bit of the weekend playing about with JavaScript, and jQuery was the nicest of the libraries I was dealing with (and there were a few). Simon Willison's written a nice introduction to it.
development
dhtml
javascript
jquery
library
code
via:mattb
august 2007 by blech
JavaScript URI Objects
april 2007 by blech
"Within a few minutes, I realised that I needed something like URI.pm, in order to resolve URIs into an absolute form." Could be useful for Zimki stuff (and indeed Mark's already looking at it).
javascript
url
internet
code
blogcomment
april 2007 by blech
Local Track, Shared Track, or iTunes Store Preview?
march 2007 by blech
Could well be useful code, this. I also need to forward it to the Synergy developer. Both AppleScript and ObjC notifications - nice.
itunes
macosx
applescript
cocoa
code
march 2007 by blech
Repository - markup - Fence: trunk/VoxAtomApi.m
november 2006 by blech
Deep in the guts of Six Apart's own Mac posting tool for TypePad/Vox. I'm hoping I can dredge something useful about the way their API works from this.
vox
code
atom
api
cocoa
november 2006 by blech
Using the iSight for Adium / iChat - jerakeen.org
november 2006 by blech
Who needs Twitter when you can glance at pictures of your buddies?
apple
isight
im
python
code
via:mattb
november 2006 by blech
related tags
aperture ⊕ api ⊕ appengine ⊕ apple ⊕ applescript ⊕ astronomy ⊕ atom ⊕ blogcomment ⊕ bug ⊕ cocoa ⊕ code ⊖ comment ⊕ cpan ⊕ css ⊕ database ⊕ delicious ⊕ design ⊕ developer ⊕ development ⊕ dhtml ⊕ django ⊕ favcol ⊕ feeds ⊕ finder ⊕ flickr ⊕ from:instapaper ⊕ ftff ⊕ geo ⊕ geowanking ⊕ gist ⊕ github ⊕ google ⊕ groupr ⊕ html ⊕ html5 ⊕ idea ⊕ im ⊕ image ⊕ internet ⊕ interview ⊕ isight ⊕ iss ⊕ itunes ⊕ javascript ⊕ journalism ⊕ jquery ⊕ json ⊕ kellan ⊕ language ⊕ library ⊕ mac ⊕ macosx ⊕ maps ⊕ module ⊕ moo ⊕ mroth ⊕ newaesthetic ⊕ offline ⊕ opensource ⊕ osa ⊕ paas ⊕ paper ⊕ papercamp ⊕ patch ⊕ perl ⊕ php ⊕ picasa ⊕ pinboard ⊕ placeholder ⊕ portability ⊕ processing ⊕ programming ⊕ python ⊕ rails ⊕ revcanonical ⊕ ruby ⊕ science ⊕ sciencehackday ⊕ search ⊕ socialnetwork ⊕ source ⊕ space ⊕ stickers ⊕ storage ⊕ todo ⊕ tools ⊕ twitter/capture ⊕ url ⊕ via:@revdancatt ⊕ via:@robinhouston ⊕ via:blackbeltjones ⊕ via:iamdanw ⊕ via:jerakeen ⊕ via:kellan ⊕ via:mattb ⊕ via:simonwillison ⊕ via:siracusa ⊕ via:straup ⊕ vox ⊕ web ⊕ xml ⊕ zimki ⊕Copy this bookmark: