posts tagged with the keyword ‘javascript’

2011.05.03

Processing

I’ve become quite the fan of Processing. When I first started to dig into the Arduino world, I turned to my old friend Perl to deal with Arduino<->Computer communication, but quickly discovered that Processing was an ideal environment for such a thing.

Perl is great (you know, IMHO and all that) but the main appeal for me has always been in Perl’s data processing capabilities, and having CPAN and a module for almost everything. Perl is fun, but it’s not FUN. I’ve dabbled with generating graphics with Perl using GD and SVG modules, but it’s not anywhere near the area known as fun.

Processing, in my mind, is built for fun. So what is Processing?

Processing is an open source programming language and environment for people who want to create images, animations, and interactions. Initially developed to serve as a software sketchbook and to teach fundamentals of computer programming within a visual context, Processing also has evolved into a tool for generating finished professional work. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.

Processing sometimes gets called a “multimedia programming language” and is used quite a bit by artists and designers, and probably much less by hardcore software developers. Check out OpenProcessing for some great example sketches.

Drawing

My own sketches are not very impressive yet, but as I said, Processing it a lot of fun. It’s reminiscent of the olden days of graphics on the Apple ][ where you plotted things out in HIRES graphics mode but, you know, way more advanced.

It’s pretty easy to build Processing sketches that respond to sensors connected to a microcontroller like an Arduino (see Accelerometer Art) and that’s something I’ll definitely be exploring more of in the future.

Android

Processing runs on top of Java, or is a subset of Java, or whatever. This is great because you can easily create a Processing sketch that can run on Mac OS X, Windows, and Linux, and even create a standalone application for each platform. (It’s that promise of Java we had long ago!) But the real excitement is that the latest version of Processing lets you target Android as a platform. Supposedly you can build an app in Processing and get it into the Android Marketplace. (I’m not aiming to get anything into an ‘App Store’ but just want to run my own apps on my own devices, as mentioned in my Android vs. iPhone post.)

And speaking of the iPhone, it looks like iProcessing and Processing.js may be able to get Processing sketches running on iOS… neat! (Processing.js is also on my TO DO list. I’ve toyed with it briefly and it’s pretty amazing.)

One of my complaints about this “new world of Apps” on phones and tablets and non-traditional devices is that there is too much of a barrier to entry to building things that run on them. I’m hoping Processing might help bring that barrier down a bit.

Update: It seems May is Processing Month. I didn’t know! Now I feel compelled to do more.

2007.10.11

I’ve uploaded a Greasemonkey script to Userscripts.org. It’s called WebGrader Link Rewriter and it takes the goofy Javascript used by WebGrader.com and makes real links you can click on and open in a new tab/window. I made it because the developers of the site wrote what I consider poor code.

I should note that I contacted the company that develops WebGrader a few weeks back and said I could suggest improvements in their system, and they replied to me pretty welcoming. I have not gotten back to them yet, as I’ve been busy, but writing this script took me about 10 minutes. (Yes, I pretty much copied an existing script someone wrote to fix Haloscan comment links.)

Userscripts.org looks pretty awesome for those of us who want to put fixing sites into our own hands. I would like to be able to choose a license when uploading a script but hey, I’ll forgive that for now. (Maybe it’s all public domain? I dunno…)

I do worry that Greasespot “The weblog about Greasemonkey” hasn’t been updated since May 2007. I hope it’s not abandoned. Then again, I should look around more, since I’m new to this. There is also a wiki at wiki.greasespot.net I should explore.


|


buy the button:

Buy The Button