Friday, June 11, 2010

Holy crap, JSON is awesome

I'm not an uber web app guy, I put together a monster of a webapp for my last job, and it was all based on XML shuffling between the browser and C# backend. And recently, I picked up a side job building a webapp that catalogs videos.

Here's how I thought "AJAX" worked:

The client JS does a GET with XmlHttpRequest.
The server does some work, like querying a SQL database. It then bundles it all up in XML, maybe via a DOM, or even just pushing strings out the response character stream.
The client receives the XML, (in the XmlDom object that exists inside the XmlHttpRequest), if you get it wrong, the parser is null, and responseText contains the ill formed results.
The client then walks the xml, and does stuff with it. Walking XML is kinda painful in JS, since I never know what value or child or whatever to use to 'get' my data out of.

The weakest link becomes the code I write to convert to and from XML.

Then Trimbo told me to use JSON.

JSON is a string representation of a JS object. a JS object can be created with name value pairs in a 'csv' like format, or it can be made with the normal JS assignment (using 'dot').

The JSON website has a neat little file called JSON2.JS that has "stringify" and "parse" functions that convert back and forth to a JSON string and a JS Object.
So, once I make a regular JS object, for example, the results from a form, I can stringify that, and shove it over the wire with a XmlHttpRequest POST.

So, Instead of nonsense like:
var xmlOut = ""+name+"";
xmlOut += ""+dateOfBirth.toString()+"";
...

I can do:
var outObject;

outObject.name = name;
outObject.dob = dateOfBirth;
...

var outString = JSON.stringify(outObject);

Easier to read, and a lot harder to screw up.

On the server side, I picked up a json library for Java, also on Json.org, and use that to 'put' and 'get' string value pairs from received objects.

This cleaned up by code considerably, and I don't really 'worry' about screwing up XML generation or XML parsing any more.

Tuesday, May 11, 2010

EM broken again

The latest problem I'm having definitely seems to be a hardware issue, the voltmeter goes to 0.70V (or effectively 0V), and the fuel counter starts counting 'less'.

I also have my doubts about the tach ever working right. I was getting 3000+ RPM on climbouts and straight and level flights, which should be impossible unless I firewall the throttle and point the plane straight down.

I haven't yet figured out why the voltage going bad also makes the fuel counter go bonkers.

All I know is that it seems to be a hardware issue, like a bad soldering joint. This has happened before, it seemingly shakes itself apart.







Thursday, May 6, 2010

Oh yeah, about the plane

I flew from Livermore, CA (KLVK), to Gwinnett county-briscoe field (KLZU) last week. It took about 14 hours or so, I had amazing tail winds the first day, I was seeing ground speeds 190KTS or more, even hitting 200+ at one point.

The EM had a strange problem in that it would basically stop working after one gallon (or when the counter hit 32768). I 'sorta' fixed it that night by putting in a watchdog timer, but that was only a band-aid. The real problem was some more signed/unsigned problems with the internal counters and some of the math.

Once the value hit 32768, it would 'go negative', and a bit shift would shift in a 0xffff causing a cascade of nonsense values. It caused it to hang before I put in the watch dog.

Now that is all fixed. There is still an occasional crash on the app side, and sometimes my windows machine simply hangs, or 'stalls' for long periods of time. If I can move to an embedded linux or other CF card friendly OS, I'm hoping I won't have that problem.

Plane and EFIS update

As mentioned previously, I ported to GTK (via gtkmm), which generally went OK. However, cairo on windows (at least 2.16) is amazingly slow. So slow in fact, it can't render a few lines (airspaces and SUAs) on my moving map in less than 400ms.

400ms?? Seriously? It's drawing lines, not a voxel based renderer. I couldn't figure out how to make it any faster, but I found out how to create a DIB and get a good ol' GDI DC on it.

So, while the rest of the app is in GTK, with a smidge of cairo, the main drawing is handled in GDI. Thats not the best port in the world.

Now I'm thinking that I might want to ditch C++ altogether and just make a Java version of this (with stock AWT), that makes it stupendously portable, so instead of recompiling for linux, I could theoretically just drop some class files and go.

The other idea would be to nab one of the upcoming android tablets, and just make an android app out of it. That way, customers could use their cell phones, or just grab their own tablet of whatever size they want, (like a Dell Mini 5, Archos 7, JooJoo, or whatever)

This starts to make more and more sense the more I think about it.

I'm sure my friend Trimbo will chime in with "I told you to do this in the first place".


Tuesday, April 20, 2010

EFIS update

While I'm on this business trip to Iceland, I've got some time after work to devote to improving the EFIS software, namely, porting it to gtkmm, so that I can easily hop it over to a linux install, like Xfce. My first attempt was basically a disaster, but then I found Glade.

Glade is a UI designer, it writes out a bit of XML, and then I can load that XML with just a few lines of gtk, display it, and run it. Very similar to the forms builder in C# (or perhaps vice versa)

This jumpstarted the port, and I hope I can chew through this and get the current feature set up and running soon.

Borders suck

I'm in iceland for a business trip. I'm here for two weeks, and I feel 'cut off' from the internet due to streaming rights for media. Apparently, sending packets outside of the US is a freakin crime, so I'm unable to use Hulu, Last.Fm, Pandora, and heck, even isohunt is giving me almost broken UI.

Here's a thought, KNOCK IT OFF.

Either let me use your sites (and serve up ads), or I go 'around' you and download commercial free torrents.

I'm really confused as to why there would be streaming rights confined to a single country or region, same goes for the whole DVD "Region Codes". Don't you want to sell product?

Sunday, February 21, 2010

The scale moved!

So, it might just be a crappy scale, but since I've been at this, the scale now reads somewhat consistently lower each morning. A sign of progress, or a red herring? It *looks* like it's somewhere around 205, 206. And if I'm really dropping 2lbs a week, then that could jive.

When I see the scale consistently at 200, then I'll know there's some real progress.

Consistent exercise and a slight diet change could very well be the ticket. My goal is 190. If I can keep up the pace, thats about 2 months.



Thursday, February 18, 2010

More memory for the VPS!


Yay! I asked for a smidgen more memory on my VPS, and NetrackServers.com just gave me a little bump for free. (I had offered to pay a few more dollars a month).

Thanks NRS!

The problem was that sometimes mercury mail would spike, and then mail would go down. And the tomcat container was sorta strained for memory (xms, xmx flags in use), I was able to increase these a tad more, and hopefully make things more stable.



Mold Making article from Makezine

Here's the link:

http://blog.makezine.com/archive/2010/02/letters_from_the_fab_academy_part_3.html#more

At some point, I'd like to make figurines for table top games, this article is inspiring as its the results of a 'maker space' session on molding.

Wednesday, February 17, 2010

1 week later.

Not that I really expected anything obvious of course. Daily trips to the gym (45-50mins each), no soda, no sobe, no chips, no fries, small caesar salads and chicken teriyaki rice bowls for dinner. I'm trying to drink lots of water. I get a glass of milk and a glass of OJ a day.

I feel OK, I'm eating less, and taking out the extras, and I've started to look at calories and other nutritional info. I probably should create a food journal, and start using the kitchen scale to be sure of the numbers.

At the gym, I'm cycling through arms (bicep/tricep), legs, and shoulders/chest. I do crunches and leg lifts for the abs. I try to end the day with jogging, incline 'power walking' on the treadmill, the bike, or similar exercise.

I'm also thinking I should start tracking the weights at each station, so I can see progress there. I try to do 3 sets of 12 reps for each station.

I'm thinking my personal weight is probably worthless to record, how much I can press, or curl, and if the ol' pants are getting loose is the better way to track progress. My previous weigh ins were bunk anyway, I've switched to 'right out of the shower in the morning', so hopefully that will be more consistent, but I have yet to see anything happen. However, it's only been a week, and the analog scale isn't very accurate. A friend told me once he started up his workout regimen, he gained weight, probably because he was adding muscle.











Tuesday, February 16, 2010

I really like this idea...


Here is the link to makezine:

http://blog.makezine.com/archive/2010/02/envelope_made_from_google_map_of_re.html


It's an envelope, but inside is a map of the return address. I could imagine all sorts of other pictures going inside an envelope like this. But I imagine the receiver has a chance of severely damaging the 'art' (or in this case map) depending on their method of opening the letter.

If a letter opener is used, the map or art might very well go unnoticed.

Still, this is a very inspiring idea.

Wednesday, February 10, 2010

OK, so maybe I'm doing it wrong.

Weight this morning 220 - I'm 6'1" so that would be great if it was all muscle, but it's probably 25 pounds of fat.

So, made it to the gym again for another workout. I started on the treadmill again, and my calves were on fire by the 1st quarter mile, and could barely finish a half mile by walking the rest. This is contrast to the first day, which netted 0.5 mile jog and 0.5 mile.

I do better on the bike, as in, it doesn't cause my muscles to catch fire.

However, I was doing more research, and it turns out, cardio alone isn't gonna do me much good if I want to lose weight. "A pound of muscle burns more calories than a pound of fat", granted, me working out 'in general' for 45minutes is better than nothing at all, so my current course would probably do something, however, I like pumping iron more than jogging anyway.

What I'll do from now on is to work a muscle group like crazy, (low reps, higher weight), then perhaps still jog a bit, unless I was working legs. I gotta break through this weird calf burn, I'm guessing it's just pent up inactivity.

My research also was stating to do cardio like activity after the muscle building. Since the building burns the sugars, and then the jogging/bike/whatnot has no choice but to start kicking into the fat reserves.

The other side of all this is the diet. I'm gonna cut back on carbs, like bread, or "those extra chips", and so on. Also, working really hard to avoid soda. The 25c soda in the office is amazingly tempting, and in GA, I think the soda fountain is effectively free, but I just need to develop the right habits now. I've had a water jug on my desk for a long time, and actually use it, but I need to keep it filled, and probably drink at least a whole jug a day.

I probably should research the diet thing a bit more, and figure out what a decent daily diet looks like. I still don't eat breakfast (though I hear thats not a good idea), but I'm simply used to it. I do drink alot of sobe in the morning, and one of those bottles is 600 calories or something insane. Those will have to be taken out of my daily routine entirely.

I'm hoping that by removing the Sobe and "afternoon Dr Pepper", thats close to 800 sugary calories gone *per day*, so I'm hoping that will help a bunch as well.

For now, I just have to go full bore into this, and perhaps I'll see some obvious progress in a few weeks. My weight not actually change though ( exchanging muscle for fat), so I might have to go with measurements versus weight reports.





Tuesday, February 9, 2010

This time, with feeling

I brought my gym clothes back into the office, since this is my last month here, and I get a free gym to work out in (actually, my new job also has one, but not as nice), I'm gonna try to go every day, since I don't really feel any 'pressure' to complete tasks. Sure, I still have a work ethic, and I'm not gold bricking, it's just that work is finally calmed down a bit, and it's great.

Today, I got a ceasar wrap and left off the usual side of chips. (the tortilla has enough carbs). My goal this month is all about cardio, and starting on tone. So I'm shooting for low-weight but lotsa reps, and then I'll end the session with some jogging. I think I'm at a '20 minute mile" which is sorta pathetic, (mainly cuz I don't think I could even do a mile right now), A decent marathoner does 8 minute miles, and world records are at just under 4. So perhaps 9 is a good goal for a single mile. (granted, real runners can keep this up for miles on end)
Actually, maybe a simpler target first... just complete a dang mile, THEN work on getting the time down.
In fact, what I aughta do is blog my progress to keep track, and maybe inspire some other slob to get in shape.



Monday, February 8, 2010

Choose the right communication medium

Here's how I communicate in the office:

Email: I use this for 'latency tolerant' communication. For example, I've got an issue, but one that isn't too pressing. Email can handle images as well, but I also relegate email to low priority items. I don't expect an email back 'right away' for example. People use email if they want a 'paper trail', I see this used alot in passive aggressive kind of maneuvers, where someone sets the To: line to one person, and CC's the boss or other higher up. While email is very common, I find it almost barbaric. Granted, its enabled by our modern network, and is effectively 'free', but if you want something done, just go talk to that person. Email could be used to broadcast to a group, but many times, the group contains to many recipients, as very few people ever trim the recipient list even if it's obvious who should be cut out.

IM: We have Office Communicator at work, which is basically a stripped down Messenger client (no images, files, etc can be passed through it). This is great for stuff I'd like an answer on 'in the next 15 minutes or so", and that person is far away, or I can't leave my desk just then to go walk over to them. I also use IM for 'private' things. Instead of whispering a joke over the cube wall, it gets sent via IM. Its great, cuz the boss thinks you are typing away on code. I would rather just talk to someone face to face, but I've come to accept this form.

Phone: I rarely use the phone at all in my line of work. Usually, I answer the phone if someone else calls, but have called out for work related issues probably once a year.

Face-to-face: This is my preferred mode of communication. I get up, walk to that person, and talk to them directly. If I need to show an image, I might email them first with the image (or URL), then immediately walk over to them. I get the most done, and it just seems silly to me when people bounce emails one cube over.

Wave: Google Wave fascinates me. while it's not in heavy use as yet, I can see plenty of potential. Seeing other people edit and update entries or widgets is amazingly compelling.



Saturday, January 30, 2010

House hunting with a smart phone

My week long stay in Georgia is coming to a close, and I'd like to share my experiences.

First, the "gear": HP TC4200 tablet PC, Palm Pre(Sprint), Google Voice, Gmail, a hotel with wi-fi and ethernet in every room.

I started out optimistic, "I'll just surf craigslist for a while, call on some of the sweet looking houses, and I'll be done in a few days, piece of cake."

I quickly ran into a few snags, first, craigslist sucks for finding rentals. Specifically, single family detached homes. There is no good way to map them (even using the mashup sites), and craigslist doesn't have enough data, if "2 car garage" isn't in the title, the craigslist search box doesn't find it. Second problem with craigslist, many of the ads are missing stuff like addresses, and contact info! A few others go to email harvesting sites, and many people just never reply, or call back.

The next thing I tried was to only look at ads with addresses, and just go out to the property unannounced to snoop around. After I get a good look, I also canvas the neighborhood to see if I like it, and I can also dig up other rentals this way. If the house and neighborhood check out, I'll call the number on the sign or in the ad. But many were property management offices that were closed on the weekend, and I had just got really rolling on friday, so that hurt things a bit.

So, I'm gonna end up plugging realtors.com I can search for rentals and for sale properties, have searches with meaningful filters, and even dig into MLS numbers, and find out when a property was last sold and for how much.

So, once I clued in on this site, it was time to put rubber to the road and check these places out, I'd compose an email of addresses, send it to myself, and bring that up on the phone. Then I'd use copy-paste and flip between email and Sprint Navigation app on my palm pre. Multitasking!
Then I'd listen to it's directions, and hopefully arrive at the destination.

Some problems: Sprint Nav is a resource hog. the pre became very sluggish with just nav and email open, it would also set brightness to full, and chewed through the battery. I have a car adapter, but it's a cheap piece of shit, and must not always make a good connection, because I can seemingly drain the battery faster than I can recharge it while using Sprint Nav, email, and pandora. For those of you saying 'use google maps then', I'd like to remind them that it does NOT provide spoken instructions, nor will it advance the instructions to the next waypoint after hitting said waypoint.

Once I did reach a destination, I was able to fire up the camera app, and snap some photos for the places I like for reference later. The photos are geotagged, so I should be able to put these on the map in case I forget which photo goes with what address.

While there were no "GPS Drives me into a lake" incidents, it did send me down the wrong road a few times. Out here, there are some roads with "NW", or 'SW' designation on them and I think that confused it. In one instance, It kept sending me to Hickory Hills Trail, instead of Drive, and in another, it was convinced a road connected between two subdivisions, where it was really covered over with trees, and barely navigable by foot.

For the most part though, a GPS navigation app is a great thing, if I had to look up rentals in a paper, call people, and look on a paper map, I would have got about 1, maybe 2, houses a day.

I did bring the laptop with me one day, but ended up not using it. I figured I might want to hop onto realtors.com to snoop out more houses while out in the field, but it turns out that doing all that in advance while on the hotel ethernet is a better idea.

Realtors.com can just barely render on my Pre, it takes a while to come up, and while functional, is pretty darn slow. I certainly couldn't do any real hardcore searches on there yet.

Overall, data coverage here is great. I think I had one bar and slow poke data in one spot, and that was in a valley with trees all around.

I tried out google voice on this trip, and it would have been more fruitful had I set it up properly. I figured it would be more acceptable to people if I left a 404 area code number, instead of a 408 number. While my google voice number IS in 404, I didn't set up the forwarding right, so during 'working hours' GV went straight to voicemail, instead of ringing my phone! I didn't figure this out till friday afternoon, about the time where it no longer mattered. The moral of the story: Make sure to update any forwarding schedules while away from your normal routine.

GV does a half decent job with the transcriptions, which is great, because it will text me its best guess at a message, which lets me decide weather to fire up the GV webpage, give them a call back, or just sit on it until I'm back at the laptop. The mobile version of GV is shared betewen pre and iphone, and seems to work OK enough. For some reason, the gDialPro Pre app stopped working this week, (invalid password errors), though perhaps the GV API changed?


CDMA's limitation of data OR voice burned me once or twice. But at least I could be on a call and use the non-internet apps. (like jotting down info into a Memo), and other times I lucked out and had the laptop on the ethernet as the call came in. Still, this sucks, and I hope 4G networks are all VOIP.

The conclusion I came to for all this, is that it all felt like 'work', and while I got some 'work' done with the smartphone by itself, this particular task still requires that 'home base' mentality with the laptop as the main internet gateway, and the smartphone doing things very inefficiently.
I think this whole task of house hunting still hasn't become all it could be. For example, there is no way to have realtors.com send their map to my phone, nor was there any way to efficiently plot a course through all the selected houses. I had to look up everything separately, and sorta eyeball their placement in the email I'd send to myself, which was the guessed at order I should visit houses in. Also, the photos available for perusing are really poor. With the cornucopia of cheap digital cameras, I still don't understand why only 2-3 photos of a place exist.

If I had more time, It would have been cool to have a database ready to go, and I could have whipped out the tablet PC and entered notes and attached photos as I went along (and outward facing camera on the tablet would be cool), but something like that is a pretty involved piece of software.

in the end, I think I've got 2-3 houses that are good candidates, I just have to go through the application process, and write some checks on the winner.








Wednesday, January 27, 2010

Google suite of web apps

I have gmail, google voice, and wave. I now have notifiers for all of them in Chrome via the new extensions, which is great, since I don't need to have 'a email app open' or, have a gmail tab open.

Any time they light up or signal me, I hit one, and bam, I get a small preview, and I can just hit the button and go right to that new content.

The other cool thing everyone should try is using google docs with shared permissions. A friend and I were banging out ideas in a spreadsheet (extrapolating Moores law to 2030), and its a very compelling thing to see cells fill in real time, or have your own formulas corrected. Then, to discuss the results of the spreadsheet. Each person is at their own computer, without having to share a screen or keyboard.

Another great use for googledocs is resume proofing. Another friend of mine was worried about his resume, so he shared it on docs. I was able to fix spelling errors and add comments containing questions to him to mull over later. They recently added MS Word compatibility as well.





I used the Tablet today

Yes, the tablet, you know the one.

It was full of apps, it had a cool webkit based browser. It has wifi. I could turn it and get 4 different orientations of the screen.

It has 1 gig of ram.

The battery can be removed, which is a nice change.

It's great to turn it to portrait mode and read stuff like comic books or websites.

It does have a home button still.

It's really easy to develop for.

It has a pressure sensitive display, with a stylus, which is great for sketches. It can recognize hand writing really well. Better than any PDA could.

It also has a touch sensitive surface, if you don't want to get the stylus out.

I can press a button and talk to it, either to dictate text, or to issue commands. It does a decent job of recognizing my voice, with little training.

Naturally, it can multitask.

Here's where it gets strange:


It only cost me $300, no subsidies.

it has a full keyboard.

Its x86, not ARM based.

I've been using it for over a year now, but it was manufactured in 2006.

It's made by HP.

It's a TC4200 tablet PC running windows XP.


Oh, you thought all this was a brand new product that hasn't existed until today? Sorry, wrong again.


Thursday, January 21, 2010

Chrome is now my default browser.

While it is a bit of a memory hog, Chrome starts the fastest, runs the fastest, and is on the bleeding edge of HTML5. The developer tools are quite usable now (Chrome 1 was terrible in this regard), so it now dominates my web browsing. I target chrome first when making my little web apps.

I recommend y'all switch over to Chrome.


Wednesday, January 20, 2010

California beef recall

Granted, I normally talk about some sorta gadget, my plane, or op-amps here on my blog, but this sorta thing really pisses me off:

http://consumerist.com/2010/01/e-coli-recall-864000-pounds-of-beef.html


No, I'm not a vegetarian, what pisses me off is that these infections are only due to industrial farming techniques. These cows are packed in together, fed corn (corn is NOT a natural feedstock for cows), and they even 'supplement' their diet with guess what, cow byproducts, which is where the mad-cow disease comes from. (Cows eating cow brains)

Go watch Food Inc, then do what I do, only eat beef from grass-fed local sources, and free-range chicken.


Monday, January 18, 2010

Die Flash Die

Sorry Flash, HTML5 ate your lunch.

Flash used to be a good idea, long long ago, it was a good way of compressing interesting content back in the days when the web was dull and on 56k modems.

Nowdays, the layout/text effects, vector art, audio, (and almost the video) can be done with the DOM, javascript, and fancier stuff with HTML5/CSS3.

I know, I know, "HTML5 doesn't have the timeline/animation controls of flash", ok, fine, but is flash used this way any more? Seems like most 'flash' I see is just a container for H.264 video.










Saturday, January 16, 2010

Your iphone sucks, and the apple tablet is vaporware

All I'm gonna say about 'the apple tablet', is that it doesn't exist, and even if it did. it will suck just as much as your iphone does.


Some people may say 'My iphone doesn't suck!', and they'd be wrong, but whatever. Droves of idiots lined up to buy an iphone at launch for $600. Seriously, $600??
It had 12 applications, total - "but it has 50,000 now!" Thats great, really it is, yet: how many are decent apps? how many work on all versions of the iphone? Do you think that when a mystical 'tablet/slate/pad' comes out that all these apps will magically work? Not apples M.O. Look back at history, apple will screw over it's user base by nixing backwards compatibility without a second thought. They do it all the time with their hardware.

MS has had tablets for years now, I'm composing this on an HP tablet PC in fact. It's pretty cool actually, thankfully it has a full keyboard, and has an OS with millions of applications, it also has well thought out OS integration with the tablet aspect. I don't see apple magically producing a must have gadget with no experience in this field. The same applies to the iphone, which is nothing more than a glorified 'dumbphone', it didn't even do regular 'phone' stuff very well.
(ipods don't even play music well, nor do their computers run software well, but I digress)

If this POS ever comes out, I expect the same stream of BS to pour out of the apple zealots; headlines such as "Apple invents tablet computing", "Why I'm selling my car to get an iSlate", and "I named my newborn child iSlate".

I just thought of something... I stopped watching TV cuz of all the brain dead sitcoms, how do I stop hearing about shitty apple products while surfing the web?



New home, same blog

I used to run my server at home, now it's all on a VPS (virtual private server). I was using blojsom, but at some point, it decided to stop letting me log in. It gets kinda hard to run a blog when I can't log into it and add new posts. I decided not to tempt fate again, and I removed it from my new tomcat deployment. So here I am, and blogspot. Letting someone else mow the lawn.

Some things I've learned in this migration process, and over the years of hosting all my own web services, like FTP, email, DNS, and webserver:

Jerkwads abound: Spammers, and hackers. The amount of spam my domains received was getting insane. In fact, I'll be retiring my old domain just because I'm sick of managing all the spam, and wasting bandwidth. Even though its no longer 'my' bandwidth, it still annoys me. Running a blog meant that every post had 25 comments from bots trying to sell ED medications.
Trying to keep up with the spammers is a full time job. When the Bayesian spam filter "Spam Halter" became available, I plugged that in and trained it for a week or so, which dramatically reduced spam that hit my inbox. Still, some still gets through. (plus the server still downloads the whole message)

On the hacking front, I could look at my logs and see brute-force password attacks on my FTP server practically daily. I'm not even sure of other ports that may have been under attack.

Pick a version and stick to it: On a regular desktop, I always update to the latest, and usually don't get burned. However, with 'server' software this isn't always the case. Server software moves at 'internet speed', which means there are new versions constantly coming out, and "Technology of the Week", or "Yet another scripting language" is rampant. An example being and upgrade to a new web-email client means a new version of PHP, which requires an upgrade to some other component, and so on. I think this is why older versions are maintained so long.
Pick an OS version, an apache version, a tomcat version, etc. set those up, and leave it.

I still run email and web, but DNS, FTP are gone. I use apache 2.0.x, Tomcat 6, and MySQL 5.1.
The Email server will get less use as I move a few domains off my server, but I'll probably won't retire it completely for a while. The webserver gets some use, and it's fun to have a little servlet sandbox.

So yeah, about tomcat. Now that I finally grok it. I like it. They also stablized things to there wasn't a million different connectors. It's now just mod_jk, and it's simple to use.

However, I did use (and like) C# and asp.net for a while, running a windows box, I have 'native' access to the CLR (I have no idea how well mono on linux is supported, but I can't imagine it's easy to use), and SQL-express lets me set up simple databases. However, when my old 1U server died, and I moved it, nothing worked.. then SQL-Express no longer worked ("service failed to start"). I simply gave up at that point. I used the MS solution at work, and it runs like a champ, and the tools are decent but there's also a IT department in the background.

For my own stuff, I've gone back to java, and found that it's actually quite nice nowadays. TOAD let me set up my database 'playgrounds' in a snap, and once I cut through all the nonsense in the tomcat docs, found out it's really easy to deploy a servlet. The last piece being that there is a decent java IDE now, Netbeans 6.8. Last time I used java was perhaps 10 years ago, and the IDE landscape at that time was a wasteland, so I'm happy to report that it's improved.

My friend Trimbo thinks I'm insane for running my own server ,and is a big fan of ruby on rails. He has a different use case, and I'm sorta set in my ways. I like java, and banging out a servlet with netbeans is pretty easy, and I'll end up with a JIT'ed app, while I doubt RoR has a JITer.

This post has gone on long enough, so I'll end it here. But now that the blog is back, I hope to start posting more often, and with more interesting topics. Hopefully I can figure out a way to import my more interesting posts from my old blog... I think they were stored as plaintext somewhere on my hard drive...