Django on .Net

You can run Django in Iron­Python under .Net. Awe­some. A Windows-based server is sud­denly a choice again, which is… fan­tas­tic. Mostly for pip­ing doc­u­ments through MS Office prod­ucts for index­ing and PDF gen­er­a­tion, because OO.o is great with Word docs but not so great — font siz­ing issues, etc. — with other things, espe­cially Pow­er­Point, which could account for up to a quar­ter of the con­tent con­tributed by users, I’d say. So I can run native MS Office -> Post­Script export -> ps2pdf processes, and MS Office -> Hor­ri­ble XML -> Scrub markup fil­ters -> Search index, with­out hav­ing to bat­tle with Wine, etc.

Of course, the sec­ond process would prob­a­bly ben­e­fit from using OO.o as a pro­cess­ing envi­ron­ment, but that’s equally achiev­able on a Win­dows or *nix platform.

So many fears about plat­form (OS and lan­guage) have been suf­fi­ciently allayed. Which is kind of annoy­ing, because, all of a sud­den, .Net is actu­ally an option. I’m still con­fused over data­bases though, so there’s plenty of befud­dle­ment to go around. Ulti­mately it doesn’t mat­ter a great deal if we find the right devel­oper (for what­ever lan­guage… except obscure things like Smalltalk and Ruby … oh did I say that? … doo be doo — just for future-proofing/maintenance rea­sons), which, hope­fully, we will. Another meet­ing about money for this thing is hap­pen­ing on Decem­ber 13th, so prayer is very wel­come for that! I want $35,000 to spend over about two and a half months to pay one other devel­oper and out­source design, as well as myself, of course (the front-end dude). By the end of that time we’ll hope­fully have an absolutely fan­tas­tic solu­tion that will mag­i­cally pro­pel (not that I really want to use Pro­pel, because that’s for PHP ;-)) itself for­ever… yeah, right.

We’ve got a half-baked busi­ness plan for this thing (by half-baked, I mean it’s all stuff I’ve writ­ten and the real gurus haven’t had any­thing to do with the num­bers, etc., so it’s not really autho­r­a­tive) that should get it out of the red by a cou­ple of months in (which is ridicu­lously quick… another rea­son to think it’s half-baked) and allow for clean­ing up all the bits we missed in the hec­tic two and a bit months it was orig­i­nally thrown together in, but, at the same time, it’s going to be par­tially depen­dent on licensed, pub­lished (dead tree) con­tent (i.e. not just user-contributed stuff, which, longer term, will hope­fully account for the bulk of sales — the profit mar­gin is lower, but it’s also eas­ier to move more units because of the sheer scope of con­tent we’re hop­ing will be available) — so because we’re licens­ing that rev­enue is going to be eaten into by pub­lish­ing divi­sion and other con­tent sources.

All of that is, of course, depen­dent on peo­ple want­ing to use these things (they do, but from there it’s a ques­tion of mak­ing the prod­uct known to them and mak­ing adop­tion easy) and being okay with shar­ing stuff they’ve writ­ten. Some knee-jerk reac­tions have been neg­a­tive to that, but the objec­tions were accom­pa­nied by acknowl­edge­ment of a need to think more about what shar­ing con­tent is doing — that is, why we’re both­er­ing to cre­ate this site anyway.

Which, I have realised, I have not shared here yet. I want to write it another time because I think I’m get­ting clearer at explain­ing what we’re try­ing to do every time I try, so it’s no bad thing repeat­ing myself. Here’s a brief overview of what Josh does (or, is try­ing to do) at Youth­works.

# by Josh on November 30th, 2006 Tags: , , , , , ,
| No Comments »

Python is so cool

Python logo

Or maybe I’m just get­ting excited about pro­gram­ming again. I just dis­cov­ered django, and have decided that Python is a seri­ously under­rated lan­guage. It’s prob­a­bly as high-level as Rails, only all the cool and suc­cess­ful kids (that is to say, the ones that have been around a lit­tle longer than Base­camp. Not to fling mud at Base­camp, but I just don’t think I’d want to fully embrace a frame­work that’s so-much-more-than-a-framework — because, let’s face it, who had heard of Ruby before Rails?) are using it.

Part of the appeal is pos­si­bly the name. Di-jang-go. Di-jun-go. Say it with me (either way). *yells “jumanji” and hopes no-one notices*

It looks unfor­tu­nately web 2.0 but no mat­ter, hope­fully it’s use­ful. I remain by no stretch of the imag­i­na­tion a pro­gram­mer. It’s been too bloody long since I even pre­tended. Maybe it’s time to start again (only after next Thurs­day, after writ­ing and research­ing three large-ish asssessments).

# by Josh on October 13th, 2006 Tags: , ,
| 3 Comments »

Horrible homonyms

I’m not even think­ing of homonyms so much (though that may be true of the word in ques­tion, if you ignore sim­i­lar mean­ings) when I get upset (as I am at present) about the unten­able nature of the word “class” or “classes” (as in school/education) in any con­text where it could pos­si­bly be con­fused with pro­gram­ming of any sort.

As usual, it’s the geeks’ fault. I sup­pose classes in pro­gram­ming gen­er­ally refer to a group­ing of objects, as a class of stu­dents is a group­ing of the same… so per­haps con­text should make the dis­tinc­tion clearer. But still, waaaay too much poten­tial for con­fu­sion. Roget’s was thor­oughly unhelp­ful in this regard… “course” is inac­cu­rate, “grade” is too broad, and every­thing else was way off the mark. I think I’m going to go with “course” for the minute, at least until/unless I come up with some­thing better.

For those won­der­ing why I’m talk­ing about some­thing IT-related out­side of the murky realms of seman­tics (though this arguably relates, albeit in a dif­fer­ent sphere!), pseudo-design/browser-bug-fighting, and my all-encompassing-JavaScript-ineptitude… well, I’m play­ing with Ruby on Rails again. Or rather, prop­erly for the first time. Because, you know, I don’t think there are enough balls I’m try­ing to jug­gle already ;-) Meh. If Rails is really fast and I don’t run out of time and make this drag out for­ever (which I inevitably will… bleh) this’ll prob­a­bly take about a month. If Rails actu­ally sucks, which by most reports it doesn’t — spec­u­la­tion about crap per­for­mance for large-scale ser­vices and con­cern over the small bus-factor (if one dev mem­ber got hit by a bus, what’d hap­pen to the project?) aside — then I might give up for another cou­ple of months. Whatever!

If noth­ing else maybe I’ll learn some stuff about MVC along the way. Not bad for an Arts stu­dent, hey?

# by Josh on March 14th, 2006 Tags: , , ,
| No Comments »

WordPress 2 is horrible

Okay, I’ve tried it prop­erly now. It sucks. Sure, it’s prob­a­bly more usable for someone-who-really–should–be-using-WordPress.com-or-Blogger-or-Spaces or some­thing, but not for any­one who’s self-hosting. Its WYSIWYG edi­tor is doing a grave dis­ser­vice to the web as a whole, the default theme, Kubrick, is a seman­tic thing-of-nightmares, and its AJAX admin­is­tra­tion inter­face fails to degrade fairly com­pre­hen­sively. Yuck.

I’m using it now because I want to put some­thing quick and dirty together, but there’s no way I’m seri­ously con­sid­er­ing chang­ing any­thing else to Word­Press 2.0.x, nor, in the future, will I con­sider build­ing other sites around it. There’s one blog-only site (this is unusual: we’re not that groovy and Web 2.0 — RSS feeds seem to be an uphill bat­tle!) we’re going to do this week at work: that can be my ini­tial foray into TextPat­tern.

From there, who knows (Who knows all). If I don’t like it/it’s not flex­i­ble enough (For­tu­nately, Word­Press is rather flex­i­ble. I’m not stuck with it’s crap­pi­ness, I’d just pre­fer not to have to deal with it in the first place.), it’s prob­a­bly back to the land of roll-your-own solu­tions again. There are a few decent-looking Rails-esque frame­works for PHP float­ing about out there at the minute, so I might try using one of those. Appar­ently Rails/Ruby is ridicu­lously slow com­pared to PHP, so I’d rather not use it and really like it and be trapped in this frame­work that’s very Web 2.0, very expend­able, and very crap.

Can you tell I’m embit­tered with web (2.0) prod­ucts at the minute?

# by Josh on February 5th, 2006 Tags: , , , ,
| No Comments »

Off the Rails?

josh@joah:~/Desktop/test$ rails Test      

    Rails requires Ruby version 1.8.2 (2004-12-25) or later.
    You're running 1.8.2 (2004-12-23); please upgrade to continue.

josh@joah:~/Desktop/test$ ruby -v
ruby 1.8.2 (2004-12-23) [i386-linux]

I am indeed run­ning a build released two days prior. The ver­sion num­ber is the same. What gives?

# by Josh on September 15th, 2005 Tags: ,
| 2 Comments »

Why’s (Poignant) Guide to Ruby

So I was look­ing for some light read­ing on the Ruby lan­guage, just because it [or the Rails frame­work that builds on it] seems cool and shortly before the biggest exams I’ve ever done com­mence is always a great time to acquire new and com­pletely irrel­e­vant skills (but, be assured — or dis­ap­pointed — to know, I’m sav­ing learn­ing a lan­guage until afterwards!).

In my search­ing, I stum­bled across a Cre­ative Com­mons licensed work, enti­tled Why’s (Poignant) Guide to Ruby. It’s a work of mod­er­ate genius and… well… poignancy. Tis most poignant indeed. On a scale of one to poignant, it’s… towards poignant.

If you’re look­ing to learn some­thing about Ruby and don’t mind occa­sional, rather amus­ing, diver­sions, I’d say (at twelve pages into the PDF ver­sion) it’s well worth a read.

# by Josh on September 14th, 2005 Tags: , ,
| 4 Comments »

On rails

Rails logo I’ve heard lots about [Ruby on] Rails over the last sev­eral months, but never really both­ered to find out what it was about/what it did dif­fer­ently until today, when their web­site was fea­tured on Style­gala. Yeah, pro­cras­ti­na­tion takes strange forms — I found myself inex­plic­a­bly drawn to the con­tent of this web­site, with a desire to dis­cover every­thing about this system.

Okay, not quite.

I saw a link to a video, and went and viewed that.

Screen capture from video

It was inter­est­ing, sur­pris­ing, astound­ing. The “Rails Acad­emy” con­tains a series of video tuto­ri­als, of which I have watched only one that demon­strates how to cre­ate a (rudi­men­tary) blog sys­tem in under 15 min­utes, with some­thing like 60 lines of code. Oh, and you get used to the accent in the video pretty quickly.

I’m really impressed. I’m almost afraid to start using it, because I think I’ll like it so much that there’ll be prob­lems with deploy­ment when web hosts don’t have Ruby/Rails installed! Hope­fully I’ll have more to report on this front in a few months time.

# by Josh on July 11th, 2005 Tags: ,
| 1 Comment »