Dave's Archives

Entries categorised as “Geekdom”

The Zim desktop wiki

I've discovered that Zim is a great little brainstorming tool, for me at least. While I occasionally "think in images", my brain usually works on words and symbols. A wiki - especially one that sports a LaTeX equation editor - seems to be a powerful way to assist a text-based brainstorming session. Being a desktop application (rather than a web application), Zim is also very simple to set up and use.

I spent today and yesterday using it to construct some arcane maths involving matrix multiplication. Said maths mostly turned out to be wrong, of course, but that's all part of the process.

Comments Off Tags: ,

The university of technology

All Curtin students and staff know about OASIS.

OASIS purportedly stands for "Online Access to Student Information Service" . Is that the best they could do, you ask? Evidentially, that full name is now such an embarrassment that it doesn't seem to appear anywhere on the official OASIS website. However, I'm still not sure which is sillier - the full title, the abbreviation (a transparent backronym), or the slogan bestowed upon us when it first launched: "One site to rule them all".

It's bigger than Jesus!

The centrepiece of OASIS is the OCC (Official Communication Channel), through which students receive official correspondence from the University. Replacing physical mail with electronic mail is commendable, but OCC has two small drawbacks. One is that you can't choose to receive OCC messages via email, or even to receive email notifications. You must remember to log in to OASIS. The other is best illustrated in the following pie chart, representing all the messages (now archived) I've received:

oasis_occ

In the past 27 months, I've received 21 useful messages: about 0.18 per week. I realise that at some level the University is obliged to send me the other messages as well, but that's not the point. Logging into OASIS isn't hard, but you quickly forget because it's usually such a fruitless exercise. According to the official policy, one "performance indicator" for the OCC is: "The percentage of students with active OASIS accounts that access their official correspondence at least once per week." They're not advertising this metric, of course.

It's not until a library book is recalled (whether you're the original borrower or the recaller) that you appreciate the true splendour of the OCC. I simply didn't know about mine until after fines had already started accumulating, and the person who'd recalled the book probably wasn't too happy about it either. With email, I'd have returned the book the same day.

Not to be entirely defeated, however, I created a script on my laptop that automatically logs into OASIS for me at 11:30 am each day and forwards all new OCC messages to my email account. The Curtin bureaucracy hasn't quite mastered that idea yet.

→ 1 Comment Tags: , ,

Conroy’s train wreck

The Federal Government's proposed mandatory Internet filtering scheme has been battered and bruised from all corners of the technical community. Yet Senator Stephen Conroy valiantly battles on. Last year I wrote to the Senator to express my views, and also to the Greens and to my local member, Steve Irons. Conroy eventually replied with a stock letter that amounted to little more than a press release.

Conroy has consistently refused to explain exactly what the filter would actually block (principally child pornography, but also other "unwanted" material), how technical barriers will be overcome, and how the results of the pilot will be assessed. I shall briefly list some other important absurdities for your amusement:

  • nobody stumbles across child pornography by accident (the main premise of the scheme) - you have to be looking for it;
  • nobody knows how to construct a filter that will defeat well-known and widely-available countermeasures;
  • filtering in this case would be done based on a list of banned sites, which is not open to public review but which can be obtained illicitly anyway [pdf];
  • the very fact that a site is filtered prevents anyone from (legitimately) determining whether it should be filtered; and of course
  • filtering  is known to have an enormous impact on network speeds (the more comprehensive the filter, the greater the impact).

I may yet send another letter, but what good it would do I'm not sure.

I now suspect that Conroy (or at least the Labor Party in general) knows all this. They may have actually figured it out some time ago, but decided to fight on to save face. They may actually be relying on the Greens and the Coalition to vote down the scheme in the Senate, so that there doesn't have to be a public backflip. Doubtless the Greens would oblige, and the Coalition looks like it will as well. Conroy certainly isn't reaching out for their support, and he probably won't make much noise when the legislation fails. However, it would be amusing at some level if it passed, because then we'd truly have a fiasco - Conroy would eventually be forced to publicly back down and the concept of Internet filtering would be sunk.

Comments Off Tags: , ,

I’ve been assimilated… a bit

I am reluctantly on Facebook. For the record, I've never really liked Facebook as a concept. Networking is great, but such online social networking ventures seem like a way to pool vast amounts of sensitive personal information in the hands of private entities that aren't really accountable to anyone. Something is bound to go wrong - maybe suddenly or maybe subtly over time - and we'll have precious little recourse to any higher authority. I don't know when it will happen or exactly what it will be, but we're asking for it.

The other privacy concern, of course, is what you put online for other Facebook users to see. The first thing I did upon creating my account was review the privacy settings, and I was a little disturbed by the sheer number of them. I turned off the display of most kinds of information, and yet it's still not entirely obvious who ultimately gets to see what information. Each of the many and varied contexts in which someone else might gain access your details (which you're encouraged to divulge with wanton enthusiasm) must be configured separately, so it seems.

So why am I on Facebook? Well, basically for the photos, and that took some arm-twisting. I have my own webspace to upload photos, my own blog to post whimsical inanities (no reflection on the comments of others), and my own email account to exchange gossip with my co-conspirators.

The first time I tried to send a message in Facebook, I was immediately confronted with the following error:

Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.

It's all about the flow of information, you see.

Comments Off Tags: ,

Bouncy bouncy

When my housemate told me of his scheme for constructing a physics simulation, I did the only decent thing I could. I stole his idea. I turned to my copy of Serway and Beichner (a ~1600 page physics book that I keep under my pillow for just such emergencies) and sat down to work out how to get 2D circles to bounce off each other in the expected manner. Not that anyone has actually seen two-dimensional circles bouncing off each other in everyday life, what with the universe being three-dimensional and everything, but somehow we still have a conception of what it would be like if it were possible.

This took a surprising amount of math (much of which was admittedly due to a series of mistakes). Collisions must preserve overall momentum and energy, and the direction of acceleration must be determined by the angle of collision. And it's nice if you can remember the quadratic formula, and work out which of the two answers it gives you is the right one in this circumstance.

Eventually I got it working, using a combination of C++, KDevelop, CMake, SDL and OpenGL, all of which I was using for the first time in years, or in some cases ever. My housemate valiantly tried to suggest the use of autopointers, but I was all learned out at that point. So, having triumphed in two dimensions where others have merely succeeded years or decades ago in three dimensions, I now have a little black window containing 20 or so blue circles of various sizes (and virtual masses) bouncing around and hitting each other.

The algorithm assumes for the moment that a given circle can collide with at most one other circle in every discrete time unit. When multiple simultaneous collisions occur, at least two circles become entwined - partially overlapping. They constantly "collide", in each and every time unit, each time alternating direction with respect to each other but never gaining sufficient velocity to escape. They each just vibrate back and forth. The net effect is that they become a combined object, which exhibits angular momentum. The two balls spin around each other, with the "heavier" one making less pronounced motions than the "lighter" one. And I haven't even tried to model angular momentum yet.

The next step will be allowing for multiple collisions with the same object in the same time unit, which should theoretically stop this from happening. But I might just have to preserve the current version.

Comments Off Tags: , ,

Redeployment

Sadly, due to seemingly increasingly frequent downtime at bur.st, I've shifted Dave's Archives over to a paid service - Jumba. In the process, I've discovered to my amusement and mild shock that one doesn't actually need to use the command line anymore in order to set up a website on a Linux machine, even if you have PHP web applications with database backends. Jumba (and, I'm informed, most other web hosting services that run Linux) lets you use a web-based interface called cPanel to manipulate just about everything you could possibly want to manipulate. It even has a web-based file manager built in, which actually works in Konqueror. It even has an add-on called Fantastico, which will install and configure web applications (like WordPress) with little more than a couple of button clicks on your part. I've shifted the entire site - database, theme and other miscellaneous settings - without even glimpsing the command line.

I suppose a few seasoned web developers are raising their eyebrows wondering how I managed to find a rock large enough to hide under for the last five years, or for however long this sort of thing has been going on. This is a new thing for me. My brain associates "using Linux" with either GNOME, KDE or the command-line, the first two of which are (generally) irrelevant if you're accessing the computer remotely. Nostalgia be damned. I have seen the light, and it is good.

Comments Off Tags: ,

Just so you know

I present to you the Frivolous Theorem of Arithmetic:

Almost all natural numbers are very, very, very large.

Comments Off Tags:

Window focusing

The user interface of OS X has many things to commend it. Its click-to-focus function is not one of them.

OS X, by design apparently, lacks a click-through capability. As far as I can tell there is no way to enable it. This generally means that when you click on a window to select it, the window itself will be blissfully unaware of the event. If you want to press a button in an unselected window, you must click once to select the window and once again to press the button.

As far as I can tell (and I could have missed something here), this is designed to prevent you activating some random hideous piece of functionality by accidentally clicking off the edge of the selected window, on the window underneath. However, while in certain somewhat undesirable states of mind, this subtle obstacle can become unimaginably irritating.

But surely Dave, can't you just get used to double-clicking to press a button in an unselected window?

But I damn well shouldn't have to! What if you have more than one screen (something that OS X in general handles quite smoothly)? The whole rationale falls to pieces. You have multiple screens so that you can rapidly switch your attention between multiple windows without worrying about the mechanics of the window manager. That's not to say I haven't tried getting used to it, but unfortunately OS X provides only a subtle visual distinction between selected and unselected windows. It's rather counterintuitive to have to modify your actions based on the colour of the buttons in the top-left of the window.

Even if I did get used to it, I'd still be screwed because if you double-click on an unselected window, the window receives a double-click event, not a single-click, and something unwanted is bound to happen. For instance, my text editor (Smultron) lists the currently-open files down the left side of the window. If you single-click on a filename, that file will be displayed. If you double-click, the file will be displayed in a whole new window. That in itself is a perfectly reasonable and useful thing for a text editor to do, IMO, but couple it with OS X's window management and it can become a headache.

What you actually have to do is click once to select the window, wait a prescribed amount of time, and then click again to do what you wanted to do. Gah...

Comments Off Tags: , ,

Cron just keeps going and going…

What happens when you set a cron job to run every fifteen minutes, generating mail, and then leave the computer in the hands of someone who doesn't know what a cron job is? 266MB and 54500 messages stuck in a mail directory that would never be read. Today it was turned off, and all trace of its existence (bar this post) has been wiped out. It had been running since January 10, 2006. It could have gone on much, much longer.

As a geek I set these things up as a convenience, but somehow I've never really trusted the technology enough to believe it would run for more than a few weeks without my intervention one way or another. I wonder how many other abandoned, forgotten cron jobs are out there, like the vestigial body parts of a species that has evolved away from them...

→ 1 Comment Tags: ,