Archive for the ‘Computers’ Category

Postgres and PostGIS

Sunday, January 3rd, 2010

While working on my pet PostGIS/OpenLayers project I ran into some difficulty with PostGIS – the version I was using didn’t support export to GeoJSON, a feature that was pretty key to what I was trying to do.  Poking around, it looked like in order to upgrade to the latest version of PostGIS (1.4, as of right now) I would need to upgrade to PostgreSQL 8.4.  Attempting to do that via command line on Ubuntu 8.04 LTS proved to be a bitch, because of what appears to be a (mostly) undocumented aspect of Postgres installed through apt-get on Ubuntu systems.

Working backwards from a couple of internet walkthroughs, I uninstalled then reinstalled the postgresql-8.X, postgresql-client, and postgresql-contrib packages.  After doing so the client programs, particularly psql, were still a mess, and postgres didn’t appear to have been launched.  Manually launching it didn’t seem to work, and even Webmin couldn’t find or launch the service.  I did notice while poking around that the installation files didn’t seem to be in the same place as in the standard Postgres install documented at their site.  Finally launching a GUI package manager resolved the problem – on Ubuntu, postgres is installed by default with a package called postgresql-common, which modifies the installation directories to allow multiple instances of Postgres (8.2, 8.3, and 8.4, for example) on the same box.  Since I don’t really need that, the solution was easy – remove the postgresql-common package, then install like normal.  Worked beautifully.

Hope this saves someone the several hours of frustration it caused me.  Now to upgrade PostGIS – since the standard apt-get package for 8.04 doesn’t have GeoJSON support, it may be a frustrating adventure into the land of make/make install.

Thoughts about Hourcar/Zipcar services…

Tuesday, February 6th, 2007

So, from a transportation perspective, HourCar style services (where someone pays a moderate monthly fee for the privilege to rent a car at a low hourly rate to run chores) make a lot of sense – allow people the flexibility of personal vehicles, while reducing their household expenses on cars and reducing the ratio of vehicles required per person at the same time. There are some disadvantages to the system, however – renting a car isn’t the same as owning. Apart from a drop in personal freedom (you can’t quite hop in the car whenever you want), there are issues of personal comfort that seem minor, but in total count for a lot. I’m thinking of things like having the radio programmed the way you like, or having the seat set appropriately for you.

Thinking about this, I realized that solutions to these inconveniences are within the grasp of modern technology. Just like in personal computers, where one can log in as a certain profile and have all the right shortcuts/programs/etc. load, a similar system could be employed for cars. Things like seat controls and radio programming are becoming increasingly electronic (one has only to look at my wife’s 2001 Prius to see that). It would be no difficult thing to implement a system whereby one had only to enter a username and maybe a password to have the car adjust to the previous settings, with no need to try and reset everything. As cars become more and more wired, this could be more and more useful – I’m thinking of integrated mapping services and possibly other electronically controlled settings like mirrors or even child safety features (like locks and windows). Mmmm, the possibilities… I wonder if this has already been done in some services. Might be worth a look.

The new semester rolls around…

Thursday, January 18th, 2007

And I find myself not nearly as excited as at the beginning of last semester. This is neither a huge surprise nor a sign that I’m becoming disappointed with grad school. I think it has more to do with the fact that at the beginning of grad school last semester I was starving for some intellectual conversation (while Lynn and I talk a lot, and often about pretty interesting stuff, last summer I was working full time for Got Junk – not exactly a bastion of in-depth discourse). I also had very little idea of what grad school was going to be like and what would be required of me. Now I have a pretty strong idea of what I’m going back to and what I want to get out of it, and my mind is actually getting some daily exercise at work, not just at home.

There are also a couple of sticky situations related to school that I’m not entirely sure how to deal with – not that I should complain, as they’re definitely of the to-much-of-a-good-thing variety. My internship with MCWD is great, but it has evolved from inspecting construction sites to creating and upgrading a database in Access (with which I have a love/hate relationship). This worries me on two fronts. First, I’m not entirely sure that HHH will consider that kind of work to be appropriate for an Urban Planning internship, no matter how important it is for the district. Second, I’m pretty sure that I want to focus on rural planning, and there is a Center for Rural Design at UMN that, if I could land an internship there, would be the perfect compliment to that track. The problem is that maintaining this database for MCWD is a pretty significant, long-term commitment, because no-one there has any clue how to fix it if something goes wrong. I don’t have the time to be more or less on call for MCWD, working at an internship, and going to grad school full time.

Honestly, though, I shouldn’t bitch. The other first-year MURP students are beginning to make envious comments about the internship I already have while they’re looking around for theirs. It is possible that my new position as DB admin (heh. Now if only I knew a damned thing about SQL/db theory/programming/etc…) will come with a pay raise, which would be pretty nice right now. Finally, the CRD doesn’t even have open positions at the moment, so it isn’t as if I could just start up an internship there tomorrow if I so decided. I’m thinking the best plan is to keep in touch with them, let them know I’m definitely interested, and see if something develops. I should probably just avoid worrying about the situation until there actually is a decision to make.

An Experiment

Wednesday, August 9th, 2006

Lynn had me install Blender today, and I had my first go at making a movie. If all goes well, it should be linked on this post. You should check it out: First Blender Attempt

Personally, I think it looks like there is something attempting to escape the box. Horror movie fodder. I like it.

In completely random news, we picked up some beer today from a liquor shop that had a very large selection of imported and otherwise not widely known beers, most of which were dusty. We mentioned that at the checkout, and the clerk pulled out a feather duster and cleaned them off. I can’t say that I’ve ever had my beer dusted for me before. It was an interesting experience (and quite decent beer, too – Old Nick. It has a somewhat wine-like flavor.) I recommend having your beer dusted.

Harrowing Travails and Near Misses

Tuesday, August 8th, 2006

I upgraded this weblog to the latest version of WordPress today.  I was slightly worried after I attempted the first time and the log was completely inaccessible, but (clearly) it eventually pulled through.  I think the problem was that the ftp program I was using was only updating files on the remote server that were smaller than local files, instead of overwriting all files with a different size.  If I start to do anything more advanced with this, however, there could be more complications…

(more…)

Married!

Monday, July 24th, 2006

Holy crap, I’m married.  I suppose that really very little has changed.  We still live together, in the same apartment, doing the same jobs and all that.  Superficially the only difference is that we’re both wearing rings now (which I can’t stop playing with).  I think I’ll have to wait a week or two to decide whether it feels all that different or not.

I have my first computer repair job today.  This is rather exciting, as I’ve missed working on computers.  It is also the first time that I’m actually going to be making money for myself, as opposed to receiving a paycheck.  Hopefully this grows into something substantial.  Given the state of computer repair (at least around here, and probably pretty much all over), I don’t think we’ll have any trouble getting customers.  Our only real challenge is establishing some kind of name for ourselves, and that is what this first job is all about.

More Weekend fun…

Sunday, May 28th, 2006

Another visit from Marla’s parents yesterday. This one went a little smoother, and it didn’t upset the cats, which is always good. We still have a ton of stuff to get done for moving and for the wedding, but I think we’re pretty on track. A lot of the wedding stuff needs to be done in the twin cities anyway, so right now it’s pretty much all about packing.

Yesterday I was a bit bored, so I added a geneology section to my website. I really doubt very much will come of it, but I wanted to see how hard it would be to add a wiki to my site. Not very, as it turns out. If nothing comes of it, I’ll just delete the whole thing, no harm done.

I also started using Tomboy, because my previous solutions for to-do lists weren’t really working. The desktop I’m using in Linux now (Xfce) is fast and works pretty well for me, but it doesn’t allow shortcuts on the desktop, which is kind of strange. It also means that I can’t just park a text file on the desktop and use that. The calendar allows you to keep simple notes, so that had potential. It even reminds you of what you’ve got planned for the day, but it’s more based around appointments, so you can’t set things to roll over to the next day. To use that, I would have to copy everything from the current day into the next day, every day. Tomboy is pretty slick, because I can set it to load on startup, which puts an icon on the Xfce equivalent of the taskbar. Then when you click on it, it just lists all of your notes. As I currently just have the one, it means my to do list is 2 clicks away after I log in. Not too bad.

I’m also thinking about what to do with my old laptop. Marla has been using it sporatically, but she’s not all that excited by it because it has a pretty defunct battery. I think I’ll want to use it for school this fall, but I’m not sure that I want to keep Windows XP on it; it’s pretty slow. I know a couple of people who are into Gentoo, so maybe I’ll try that; I hear that it’s one of the lighter weight versions of Linux. Duff tried to get me into it a couple of years ago, but that was before I know anything at all about Linux, so it didn’t really stick. Now that I have some idea of the basic commands, the file structure, and can do a little of my own troubleshooting, maybe it’s time to give it another shot.

Of course, maybe before I try any of that, I should get a handle on Samba. Looks like I have a project for this afternoon.

Gameses

Tuesday, May 16th, 2006

I’ve been fairly boring lately. Most of my boringness is attibutable to Galactic Civilizations 2, which is very addictive and, as it turns out, fairly tough. My only disappointment with the game is that there is no tactical view, but the strategic options more than outweigh that minor complaint.

Marla has also been overtaken by a game as well, and a good one at that: Black and White 2. I really appreciate how the little villagers are much more self-sufficient this time around, and the enhanced city-building aspects of the game, but I have to say that I think the final word on city-building games will wait for Caesar 4. Number 3 is a game I still fire up every once in a while; there’s just something about moving around little quantities of goods, I can’t get enough. Weird, I know.

E3 and Respectability

Friday, May 12th, 2006

Being a gamer, right now is a fun time of year for me, what with E3 going on and all that. For the most part, I enjoy the hell out of the coverage, especially at my two favorite gaming sites: www.gamespy.com and www.gamespot.com. What irritates the hell out of me is the phenom of the “booth babe“, one of the recent hallowed traditions of E3.

Leaving aside my own view of attractive, scantily clad women, the ONLY function they serve at a venue like E3 (which is supposed to be a trade show) is to completely strip any sense of integrity from the industry. The computer and video game sector is growing dramatically, and right now it is in a pivotal stage. Animation is getting to the point where characters in games can actually have, well, character. The avatars can emote, and there is enough money in games that real writers can be had. Games are finally coming into the public consciousness in a serious way, and they have the potential to make a strong, positive first impression, yet it seems like the game developers and publishers themselves are determined to shoot themselves in the foot by depicting the entire gaming community as a club of adolescent boys. The whole “booth babe” problem is just one instance of this self-defeating attitude.

There are certainly games and designers who buck this trend. The problem is that for every Sims game, which has broad appeal and doesn’t alienate women with their depictions thereof, there are 10 Guild Wars or Dead or Alives, which, despite the fact that they have solid basic gameplay, demonstrate through their depiction of women a complete lack of respect for at least half the population of the earth. If games are ever going to be accepted or even tried in the first place by a larger group of people, that ratio needs to be reversed.

If E3 can clean up it’s act a little, that might go a long way towards convincing the public at large that games are no longer the exclusive domain of adolescent boys. It is, after all, the most public event in gaming. Increasing the professionalism of that event, it seems to me, would demonstrate the increased level of professionalism that has already crept into the industry. The publishers and to some degree developers may be aiming games at a pretty low level, but recent stats put the average age of gamers somewhere around 28 to 30. I think it’s time for the industry to reflect it’s consumers.

And let’s be serious here – if gamers really want to see half-naked women, they can just pick up a Victoria’s Secret or Maxim. You don’t really need to go to E3 for that.

SugarCRM

Monday, May 8th, 2006

I recently installed SugarCRM on the server at my work. It was quite a bit easier to install than the other workflow/project management software I had tried, and it is turning out to be much more customizable than I expected. It’s still overkill for a company with a grand total of 4 employees, but it should be a dramatic improvement over the system based around a physical calendar that we have been using thus far.  There are a few bugs; we had to renew a couple of passwords today because the system suddenly decided to reject them, but overall it’s been pretty sweet.

I find SugarCRM kind of facinating, because it’s an open-source project with its roots in a commercial enterprise, just like MySQL.  I’ve always thought of open-source projects being these spontaneous uprisings of the community, but it is becoming clearer and clearer to me that the “spontaneous uprisings” die out very quickly.  It’s the projects with something driving them, be it commercial success, a dynamic personality (the most famous example being Linus Torvalds), or the fairly urgent need of some group of people.  This is of particular interest, since I would really like to figure out how a quality open-source game could be produced.  It seems that having a commercial venture at it’s core might be viable, but it is difficult to see how such a framework could be constructed without, you know, charging for the game.  Something to ponder.