A rambling blog from Arron, a scrawny little dork who likes to code. ;)
Wednesday, November 30, 2005
A Boo survival guide.
Tuesday, November 29, 2005
Me vs my professor.
A little introduction
Recently, it became required curriculum to take a "PHP and Linux Security" course. Never-you-mind the fact that we never had enough time to either go indepth in PHP or Linux Security very much during the session aside from a very broad and ultimately useless overview of both concepts. I'm not sure whose clever idea it was, but it wasn't a very good one to combine two completely different subjects into one amalgamation that can barely be taught in a semester.
So, the course has gone as I expected - slow, meandering, and without any real substance since its been divided between "Here's Linux" and "Here's PHP," and it comes time for final exams - except they're final projects instead, for some as of yet unnamed reason.
The Project
The professor seems very laid back, and in the beginning that was alright -we were verbally instructed to create a "PHP and MySQL" webpage, and then at the end he mentioned something randomly about homework. Yes, he gave homework the same day he told us about our final project, assigning them both to be due on the same day, which is of course an immediate priority conflict: one of them has to take precedence. They're not hard, per-say, but they are time consuming, an issue compounded by the fact that this isn't the only class I have to take. He is of course the only teacher still giving out homework so late in the term.
So, today was one of the alloted days to give presentations. Two people, who were obviously basing their presentation of existing PHP projects, went first: one smart foreign fellow was creating a CMS for the commpany he worked at to handle task tracking, and one other dude who had developed forum software for use with his associates. The rest of the projects were obviously from scratch and incomplete, judging by the quality of the one other I saw, and the people shaking their head and saying, "I'm not done yet" or "its not presentation quality." Hey, no sweat. We all have other classes, too, right?
The Presentation
Me? I volunteer. I'm done. I did the smart thing: I based my website off an existing template that came with the book for the course, whose author gave his blessing for modifications. I transformed one of the template sites to an ad-hoc image gallery, nothing really fancy but to be honest that's all I had time for, between those magical things called other classes.
So, when I'm done, what's the first thing he calls me on? You got it: the template. Well, that's great, except in his verbal "I-didn't-write-it-down-so-there's-no-proof" instructions he said we should consider using the examples in the book as templates. I can't quite tell him this to his face of course, because its incredibly insulting to call him out like that in front of the class, and the project is worth 35% of the final grade. I'm no sucker.
Gotta retaliate though (I have an ego), so I start quipping good development practices, like "a good programmer knows how to reuse code" and the typical, as the polite conversation almost turns into a debate. I had already queued up a logical argument on the issue of web development in general, when he suddenly distracts me with a copyright question. I hadn't removed the template author's copyright from the HTML page. I tell him its OK, since the author gave permission. He said I should have taken out the copyright notice. In hindsight I should have probably made a seperate 'credits' section and named him there, but I had more important stuff to do.
wtf?
Still, totally caught by suprise by the nature of his comment, I mumble the knee-jerk, "Uh, questionably legal area?*" and the class starts an ad-hoc discussion about it. By then I had lost my opportunity to argue the issue of using a template in my favor, though the professor still looked pretty displeased when I got up to go back to my seat.
I believe I saved quite a bit of face, though.
Sheesh.
In only two hours I'm probably going to have this same situation with another professor: the assignment didn't say to create our own data structures, so I logically used the tried-and-true STL data structures instead.
I've made a grave mistake assuming my professor's are all aboard the logic train.
*This is the only thing I remember from my CyberEthics class, even though the semester hasn't ended yet.
Boodle news update
I've been watching (and using) #develop 2.0 for awhile, and there's no beating it for IDE-style Boo support: at all. Or, at least, not with Boodle (on Windows) anyway, so I won't hold any delusions of grandeur. Its pretty obvious though that the Boo community now has an awesome IDE to take advantage of, since extending #develop 2.0 (as opposed to 1.1) is awesomely easy, and its got a rock-solid core that hasn't crashed on me since rev 5-something.
Hence, I'm "downgrading" Boodle to a very neat, tight text editor for Boo files with code completion and pleasant syntax colorization.
I'm not the type to look directly into the sun and pretend its a galaxy away.
Sunday, November 27, 2005
Migeul de Icaza on a "web aware" Gnome.
As a follow up to yesterday's web-based desktop communication engine, I wanted to comment on a few ideas that we have been bouncing around.It sounds like a pretty rocking concept, but I think he's missing the logical jump from a lot of seperate little webservers to one unified interface for working with your desktop.Clearly the HTTP end-points on desktop applications would be useful to invoke an arbitrary set of methods on each application. I envision a system in which we can remotely manipulate desktop applications through HTTP. The same idea that I pitched a few years ago on top of CORBA.
The difference this time is that writing the client code is trivial, unlike the previous attempt where writing the client code to talk to a CORBA server was very difficult.
But in addition to this HTTP-based RPC interface, it would be nice to make the GNOME desktop Web-Aware.
How does he want picture sharing to work?
Here is where the problem arises: people want to look at the pictures right away, or they want copies of the pictures, or they want me to tag them or annotate them. All of those at once.
The Solution: F-Spot coult have a "File/Web Share" which would basically run an HTTP server. In the particular case of F-Spot it can just embed our embeddable web server and expose the pictures with an ASP.NET application.
Every application embed a webserver? That's going a bit overboard.
I think a web-enabled Gnome desktop would do better to have simply *one* web interface that other applications could plug into. Surfing to http://localhost/web could bring up a user interface that would have the most common modules visible by default - pictures, video, audio, files - with applications registering and providing their own modules on demand.
I think that would be a bit better than every application doing their own thing and getting it half-assed. It also lowers the barrier of entry from "embed webserver, design webpage, ..." to "register a module in the Gnome web interface and just start sending out HTML on demand."
Hell, it could even use REST for communicating user actions back to individual applications that've registered with the Gnome web interface.
Saturday, November 26, 2005
stupid website splash
NO NO NO.
You click on the drop-down bar instead. That's innovative, huh?
You know what the best part is? When you click on a drop down item, instead of going to the site, you're presented with a button to click instead.
Do you know where it goes? To nintendowifi.com, HAR HAR HAR JOKES ON YOU.
Sunday, October 23, 2005
Rwarr, attack!
As you can tell, I've been trying to crush Grunwald under a wall of bugs lately.
He closes most of them the same day or the very next. The guy's got to get a new past-time hobby or something!
I'll have to admit I'm kind of disappointed with Boodle in comparison: #develop 2.0 is way more feature-packed than I had ever expected it to be. Aside from it not being able to do debugging - some kind of bug in the way Boo generates.pdb files when running under .NET 2.0 - its a pretty powerful development platform. Now its a project that's wedged between MonoDevelop (s'alright) and #develop 2.0 (the BFG of free .NET IDEs), and I'm not sure what to do with it.
As I expected, botty still hasn't delievered on the NAnt backend, so we're still stuck playing with SQL for the backend, which was just a temporary hack that was supposed to hold a few days so I could implement some stuff around the basic project model, but its held for almost three weeks now.
So, pretending to know what I'm doing for a moment, I've been thinking the past week if we should reposition Boodle as a simple Boo source editor with basic project support. Once you start reaching out for advanced features like NAnt and debugging, then its time to go to #dev or MonoDev. Its really no contest between Boodle vs #dev 2.0 or Boodle vs the newest MonoDevelop SVN releases, and I don't see it happening any time soon.
The only niche' it seems to really occupy is 'simple source editor,' and even in there its already got competition: Sciboo was announced on the Boo Lang list a few days ago! I think in its current form Boodle is better than Sciboo, for now, though. ;)
I've still got time to think things through before I start hacking on Boodle again. Its been another one of "those weeks" where everything is due on either Monday, Tuesday, or Wensday. Again. They were synchronized when they gave out assignments, and synchronized when those assignments were due, it seems.
Clever bastards.
Friday, October 21, 2005
What the hell is Flock?
I just saw this on Slashdot today:
daria42 writes "The much-hyped Flock, a new browser based on Mozilla Firefox and integrating features like RSS feeds, blogging tools, the del.icio.us social bookmarking and Flickr photo sharing services has just launched a public developer preview to the world. Flock is being driven by a team of developers being led by Bart Decrem, a well-known open source developer who co-founded the ill-fated Eazel project back in 1999 and has been involved with both the Mozilla and GNOME foundations. On his blog this week he says Flock won't be forking the Firefox codebase."
Slashdot | Firefox-based Social Browser Flock Launches
Our code couldn't wait any longer to be free!
But! This preview ain't for the faint of heart! If you're the bleeding-edge type and don't mind a few scrapes and busted knees from time to time, feel free to give it a whirl.
We've got interesting ideas in this thing. We want to know what we've done right how we could improve. And we've got a lot of work ahead of us!
So if a bucket of source code and developer binaries sound enticing, head over to our Developer page now.
Ok. But the website doesn't explain what the hell thsi thing is, so there was only one thing to do: download and install.
Its apparently just a heavily modified version of Firefox, built around social blogging and stuff. Weird. Whatever. I'm posting this using the builtin blog editor, though. There's not a lot of options here, to be honest. The AJAX-based Blogger posting system seems a little bit better.
Here's some amusing quotes from Channel9 and Slashdot:
It looks pretty, but I'm not sure what the hell it is or its supposed to do. They don't explain it on their site, either.
Worst marketing ever. =D
Re:cutting edge?
(Score:5, Insightful)
Slashdot | Firefox-based Social Browser Flock Launches
I could see this being extra handy if I blogged more options. We'll see what happens.(two minutes later, and I'm still trying to figure out why Flock won't post to my blog even though it autodetects the settings.)
I've just given up on getting Flock to post it and just cut-pasted the HTML code directly into Blogger's interface. *shrugs*
Wednesday, October 12, 2005
A boodle screenshot.
Sunday, October 09, 2005
My Windows Vista Wishlist (half-assed)
- Integrated Smart Upgrade technology:
- Right now applications are so disorganized with the way they check for updates. Some plunk something in the start menu's "Startup" that checks for updates, some applications have it coded right into their core, and other applications... sheesh. Its a pain.
- Some applications just say, "hey, wtf, there's a new app, now why don't you GO ALL THE WAY TO MY HOMEPAGE AND DOWNLOAD/INSTALL IT ALL YOURSELF, K THX" Yeah. Thanks, you lazy bastard.
- I want to see a unified control panel for all this: I want an API to code against to register my application, and then the user can set how and when he wants Windows Vista to check for updates to my application. Then Vista prompts him to download and run an installer executable specified by an update.ini (or whatever) file located on a remote webserver. Hell, if it could be done, it would automate the install/upgrade process silently, and allow the user to degrade back a version by keeping around old .msi install scripts for X many versions.
- Someone has to shepard this update madness into one less than insane bundle. Windows Vista is the perfect opportunity to do this.
- I have like a kajillion fucking Java WebStart app entries in my Control Panel Add / Remove thingy. Fuck. Thanks, Java. Thanks a lot.
- A better way to navigate through the "Start" menu Application Folders.
- *Anything*. Seriously. Maybe just a better way to navigate through application folders in general.
- I would like a better way to manage how applications and what applications are run at start-up. Every application does this in a little bit different way: some are in the 'Start' menu, some use the registry, some... some... agh. I 'specially hate applications that are auto-start but I can't track down how to stop the functionality due to the application's bad UI or whatever.
- The start menu's "most recently used application" list doesn't notice if a short-cut no longer points to a file. I broke jEdit awhile ago (thanks for installing into a new directory, you bastards), and haven't bothered with it since, but the icon is still there.
- Nothing bothers me more than the naming scheme, "Corporation --> Product Name" used in start menu entries. Damn it, that's metadata stuff right there. Half the time I barely know who wrote what application, so I'm constantly popping through 'new' corporation entries looking for the app I just installed.
Wednesday, October 05, 2005
Boodle improvements.
I spent a few hours staring at the code and tweaking it a little. Completely worthless adjustments. Couldn't find out why it was still so slow.
Finally got a REAL profiler - I normally just insert timer functions, but Boodle is a growing project, gettin' big, and that was gonna be a no-no.

So I download JetBrains dotTrace, have a little look-see, and wtf? Magic. I see I'm spending a bulk of the time during styling in a duck-typed closure I never even bothered checking out. I alter the closure to use static typing and wham, instant speed-up by an order of 2 magnitudes. Boodle doesn't choke on medium-sized files anymore! The profiler actually pointed out a few more hotspots that should be looked at, non-styler related, so I should get around to doing that before the profiler expires.
Its a nice piece of work that JetBrains has here, but its a bit lacking on features and it only shows .cs / .vb source files - kinda sucks. I'd rather it show any source file, sans colorization, or allow for colorization using syntax files. Seriously, anything is better than nothing.
Its way out of my price range, though - like a kajillion dollars too much. I'll be sad to see it go once the trial expires, but I couldn't justify the cash spent when I've got so little of it.
His worse day tops mine by like 10x
[23:01]the first was because we have to use this stupid graphing software that to my knowledge is only in the physics computer lab, and it turns out that lab requires you to pay money to print. so i go there the morning before the lab, and i have no cash on me. but i cant pay cash anyways, i have to pay "bevo bucks", which i can purchase online, except they dont take visa online
[23:01]i had enough change to print, but they dont take cash, they require bevo bucks
[23:01]so that assignment was late
... some minutes later ...
[23:05]we do the lab on computers, so hypothetically i could just email / put it on a floppy drive, right?
[23:05]wrong, because they dont have internet or floppy drives
[23:05]they DO have usb drives, but it is a mac and it wont take my usb stick
[23:05]FUCK THIS SHIT
[23:06]its like an island of stupidity, cut off from contact with the rest of the world
Saturday, October 01, 2005
More work on Boodle; mysterious Boo bugs.
In doing a project the "size" of Boodle I've noticed what appear to be deep, lurking bugs in Boo that I'm unable to reproduce as simple test cases: many of them appear to be caused by the interaction between the modules that Boo generates. I've been trying to keep track of them by marking them as "BOOBUG," but I've only been doing that sparingly - when I'm pretty sure that it isn't just part of my bad code.
Here's one of the more annoying one that crops up occasionally (across two or three seperate projects):
for item in input:
#BOOBUG: Another one I can't reproduce.
#Accessing anything in "item" causes null ref exception.
print item.LexicalInfo
Its not that LexicalInfo is null and I'm trying to manipulate it; its that accessing any member of "item" causes an abrupt null reference exception. I believe I worked around it last time by simply declaring item as duck, but its still a pretty disconcerting thing. In the case of Boodle it wasn't necessary because that code block is obsoleted - I never got around to checking it into SVN 0 but its still there so I can keep track of those BOOBUGs in case I ever figure out what's going on.
#BOOBUG - something to do with interacting with other classes that use private stuff.
#Can't track it down right now, sorry.
buffer = main.GetBufferInfo(main.GetSelectedTextControl()) as BoodleBufferInfo
This one bothers me quite a bit, because its a situation where Boo's type inference fails completely: instead of assigning "System.Object" to buffer it actually assigned a type of "unknown" to buffer, which is a mystery that is beyond me. The cast apparently makes things work, so its nothing impassable, but it is annoying.
The hard part about debugging these kinds of problems is the way the compiler fails - there's not enough detail in the exception, like where it occured, or what kind of node it occured on, or where in the *BOO* source code the exception was emitted. If you *really* want to debug it you have to start sliding Console.WriteLines everywhere in the main Boo source. Well, that's what I do, considering I've never gotten dbgclr to load up the Boo assemblies and show its source code properly.
I'm just kind of hoping most of these issues "magically" go away, and that metaboo has a stronger foundation than the current Boo implementation.
Wednesday, September 14, 2005
The magic of open source.
For a project less than 2 (3?) weeks old, that is pretty rocking. It is also why I wanted any kind of Boo integration project to be open source as well: it is very easy to foster a community of developers. Daniel? He submitted like 3 patches to the list before he even joined the project. Sweet. It takes pressure off the rest of us if the load is distributed evenly.
Syntax colorization and code completion finally got threaded; I crafted a "saferunner" class out of the threaded UI code that Michael contributed. Its a lot more "Boo" without any sticky work-arounds, which is *TOTALLY AWESOME*. First class functions rock.
Boodle-dev, the mailing list, is getting pretty active now. Good stuff, this Boodle thing.
Wednesday, September 07, 2005
Pfheh, college.
Oh well, I managed to bang out two pages, and it stinks of desperation and boredom. I should stick to doing things I'm good at, but if I only did that, I would never get to program.
What's next for Boodle?
Here's my little TODO list:
- Bug Mike to replace the textbox on the bottom of boodle with a tabbed interface that has console output, and a "task-list" where I can put errors. That will of course require a 'TaskManagerService' to do all the dirty under the hood work, which brings up the next point:
- Why am I suffixing everything with "Service" ? I have like three -Service files I haven't committed to SVN yet simply because they're pretty worthless, but the fact that I do it is weird.
- I have hazy thoughts of refactoring: a treeview showing each place the refactoring will occur, and a code block for each treeview to show the changes. Hopefully BooStyler will be able to colorize it properly. ;)
- I need to optimize the styler; right now it re-styles on every keystroke. There is a property, EndStyled, that tells me where the last styled position was... but since I'm using the Boo Lexer (Boo.Lang.Parser), 'publ' would be marked as an IDentifier, though it can easily become 'public' - and thus a keyword - seconds later. I simply cannot ignore that, but I have not thought up any good strategies yet. I have considered simply re-styling anything marked as an "identifier" each keystroke instead; that might be more efficient. I should probably look to see what other people are doing, but won't.
- Boodle's coming to the point where it can easily replace Boo Explorer. This is good, and was my original goal in the first place. ;) There is still much more to do after that point, though.
- I need someone with a better eye for colors than me to pick out some sane colors for syntax colorization.
- Don't let BooStyler get too muddled; in the future I'm going to want it to mark those mysterious 'ID's as fields, types, etc.
- I still haven't figured out how to make wxStyledTextCtrl bitmasks and stuff. Its just not something I do on a day-to-day level... and am mildly suprised they exposed implementation-level details in an API, but whatever - it wraps C/++ code, what can I expect?
Sunday, September 04, 2005
Like a melding of the minds...

Boodle's coming together quite nicely.
You can't see it, but there's a neat firefox-esque "find" bar that pops up when you ctrl-f.
You can jam over to The Boodle Project Page and grab a SVN copy if you're desperate, but its still got a boat-load of bugs lurking, plus a like of spaghetti code. (Make it work, then make it work fast).
Yes, those colors *need* to be changed. =D
Update:
Careful, the setup exe is out of date - we've made quite a bit of progress in the past four days. ;)
Thursday, September 01, 2005
Boodle on Novell Forge.
There's already a few SVN commits and an installer (!), because Mike Hansen is apparently one very busy dude. For those of you not engrossed in reading the comments section, I'm working with him on Boodle. He's very good at compositing the UI elements together in a fashion that doesn't suck -- too bad my code isn't as elegant. ;)
I just checked in very raw code completion / compiling / running of single files. Still haven't found a way to work with the StyledTextCtrl yet, though, without dipping into C - something I don't wanna do. At all. Ever. (colorize me lazy). Not sure how to handle the situation yet.
*Update: made link point to right project, sorry. ^.^
Wednesday, August 24, 2005
*thump* Ow, watch your feet, GTK#!
So, today, I was toying with wx.NET. It seems promising, but there's a lot of rough edges. A lot. There are many, many fields that take integers instead of enums, and practically everything is undocumented. Its a bit unwieldly, like using MFC, but the API is simplier and does not require the herculean efforts of strength required to make simple stuff 'go.' Still, its unmaintained - they only update the library to keep it in sync with wxWidgets, and I hate programming against dead-end APIs. 'specially ones that are not particularily polished.
I'm not sure what to do now. The main reason for using GTK# was because, although its chock full of annoyances when dealing with simple stuff, it is powerful enough to let me do some pretty cool things with a little less effort than the equivilent using S.W.F. Same goes for wx.NET.
I'm not sure what I should do now; I obviously can't continue with GTK#, but I'm hesitant to pick wx.NET. I don't know of any other crossplatform .NET UIs, and using S.W.F would be a pain in the ass and require some P/Invoking, I think.
Should I take another look at booclipse and try to integrate some of my ideas into it? I hate Java.
Tuesday, August 23, 2005
Boodle!
I definitely plan on doing code completion, colorization, and launching the interpreter in a seperate appdomain or thread - having the interpreter hang is a real pet peeve of mine. Hopefully I will be able to move Boo Explorer out of my daily routine and replace it with Boodle. ;)
Monday, August 22, 2005
Ah, Boo, where's your killer IDE?
I believe Daniel Grunwald is holding off until Boo gets generics support, which could be sometime in the far, far future.
booclipse is nice, and I hacked a little on it today, but immediately reverted the changes - I don't know if I just don't like the language, or I'm rusty, or what, but it was damn unpleasant and not really something I want to spend my spare time on.
MonoDevelop of course is not an option, since I spend a lot of time on windows, and boo explorer is only good for simple scripts.
I wonder if its possible to wrap the generics exposed in #develop addins with C#, then expose plain-jane arraylists to Boo? Still don't know much about the architecture, and I would be duplicating efforts by Grunwald, but if he really is waiting for Boo to get generics, I would have a quasi working addin a lot sooner than that, to be sure.
Monday, August 15, 2005
SharpDevelop 2.0: The Next Generation
After the clusterfuck that was SharpDevelop 1.1 (you know what I'm talking about if you've tried to use it for any serious projects), the constant pushbacks for Corsavy, and a forum post indicating that Corsavy hadn't been touched in months, it seemed like SharpDevelop was R.I.P.
It comes as bit of a suprise then that out of the blue the repository for Corsavy was opened for public consumption, and to be honest, I'm a bit amazed: SharpDevelop 2.0 is very, very good for what they consider alpha quality code.
Its got some pretty sweet features; when you find all references for a type, for instance, they appear in a little search window at the bottom, colorized by syntax and divided by columns. If you've had to deal with Visual Studio 2005's "let's cram everything onto one line in the same color and hope it works out" this is going to be sweet, sweet relief to you.

By default they ship supporting NUnit, MbUnit, and SVN support. You'll find SVN support under "Tools" which doesn't make as much sense as if first sounds when you think of it, but that's a minor problem.
Also nice to find was that if you right click on a project you have the option of deploying it via ClickOnce, although it seems that functionality for assembly signing hasn't been completed yet: ever see a ListBox with the words "TODO" in it before? Scary.

Generics support is just as you'd expect: generics in code completion. There's a minor annoyance when creating a generic type, as when you type List
Did I mention that the debugger works? We all know t

Oodles of small goodies, but they're like the little mints you find on your pillow at night: you don't notice them until you're there, and when you do, you smile. ;)
There are still some missing features, though:
- No background compiliation to check for errors. After having used Visual Studio 2005 and Eclipse for quite a bit, its become a *must.*
- No contextual help for error messages. This removes quite a few short-cuts that Eclipse and VS2005 made possible: you can't instanize a new type, click on the error message, and automagically import the namespace that holds the type.
- Weak refactoring. You can't refactor local variables, apparently, and the refactorings for methods and classes are pretty weak, as there are no convience refactorings like "explicitly/implicitly implement members" for interfaces and abstract classes.

- You can't "go to definition" or "find references" arbitrarily by left clicking in the source code; you have to use the little class/interface/property/field icons that appear to the left of the screen if you want to find references for a class. I cannot click on a local variable that is an interface and go to that interface's definition. I can't even "find references" for a varaible, which is sometimes uber useful!
Definitely something to keep my eyes on.

Every once in a while someone makes a +5 Insightful comment about how there should be a version of Firefox with the more popular extentions built in so that the average user gets more functionality and doesn't have to do all the work themselves.
Finally someone does it, and people are quick to start belittling it for not being something fantastic and earth shattering. It said straight up that it was based on Firefox.
It's not doing anything nasty like Netscape did, so this just means that there are more alternatives out there. Last time I checked, that was considered to be good around here.