Sunday, March 9, 2008

javascript web safe colors for extjs

Came up with this today when I wanted to popuate an extjs color picker with a set of all web safe colors. I think it's pretty sweet for javascript.

var cl = ['00','33','66','99','CC','FF'];
var clist = [];
for(var x1=0; x1 for(var x2=0; x2 for(var x3=0; x3 clist[clist.length] = cl[x1]+cl[x2]+cl[x3];

You can see the test output here: http://www.rainfireweb.com/drip/testcolor.html

Saturday, August 25, 2007

It's been a while..

I have not made any progress it seems in my quest to use lisp for web applications. I messed with Kpax which seemed very promising but ultimately does NOT feel ready/robust/solid enough for production. I am exploring other options. I keep thinking "why can't it just work like php?" built in to apache. I have seen some mod lisp attempts but none of them seem to work either. I think the entire lisp paradigm presupposes apache in a lot of ways i.e. kpax.

I have however been making a lot of progress on the applications I want to develop. More on those later.

Saturday, March 10, 2007

Moving Backward

I stumbled across a webpage which serves as an archive/tribute to GUI's of days gone by.

http://toastytech.com/guis/

One of the most interesting things to me was noticing how there were things you could do using Apple Lisa, Geos etc. that only now are re-emerging as "web applications". It made me think: Is computing two steps forward one step back? My question is why do we keep writing the same applications just on new platforms and technologies? I suppose it's largely to do with the fact that development is driven by business and capitalism is so inherently boring that the applications are going to be boring as well.

I want to develop applications that actually make life better not just easier. I am not really interested in making another email program, another spreadsheet, another graphing library, another news site, another movie site, another blog (oh wait). I have some ideas of what it is I want to make but those will unfold as times goes on.

One of things that has always drawn me towards lisp is the almost reverence or disdain people have for it. Sort of how I got into punk. Everyone hated it, it sounded awful, it was totally dissonant, reminded me of myself so I loved it. I feel the same way about lisp. But beyond the normal list of reasons (elegance being the primary one) people end up falling in love with lisp I have a different motive. I place my hope in this language (irrational, yes I know) that it will actually allow me to orchestrate, not write, applications in a way that reflects my childhood impressions of what programming would be like. Why?

Friday, March 9, 2007

Lisp. What is it good for?

I created this blog basically to document my interest in Lisp. Particularly in using lisp for web development. The more php I write the more lisp I want to write. My kingdom for a macro. I am going to explore all of the issues surrounding using lisp on the web. Will it work as a scripting language on top of apache? Will it work as it's own web server? Will it work as a compiled CGI? I don't know but I intend to find out. Also it should be noted that I have had some strange obsession with lisp since I first accidentally started up Emacs years ago. This by NO MEANS implies I know what I am doing. That's sort of the point of this blog, to record what I THINK I know and how I build upon that.

I also have some more artistic interests (music, image generation and synthasesia style stuff) which will crop up here every once in a while!