Thursday, May 15, 2008

Oh what a tangled web...

I have owned several domains for some time, and I seem to be accumulating them (slightly).

When I started (I can't remember exactly when that was), I only had one. Then I bought a second one that pointed to the first.

Now, I have five. And I haven't gotten much further than I was when I had two.

At this point, I have the two that pretty much point to the same place - a web site hosted on someone else's servers. And a third that is pointing to email - hosted on someone else's servers.

Since I now have 'extra' domains, I can afford to try setting one up to do the things that I am paying others for now (web and email hosting). Also, if I am hosting my own web sites, then I will be able to take advantage of languages and hosting environments that I would be unwilling to pay extra for (JavaEE, etc).

And, I have a computer that spends all of its time turned on doing nothing hooked up to a broadband internet connection.

Hopefully, before Monday rolls back around, I will have at least a functioning test for my own web and mail host running.

Hopefully.

It's not just a scary snake anymore...

Looks like computer languages are going to get boosted.

I have begun taking a look at both Groovy and Python/Django.

So far, Groovy seems to be a streamlined version of Java that preserves complete compatibility with Java bytecode. I will have to do more playing before I can say anything more interesting about it though.

Python/Django are actually a combination of a language (Python) and a high-level web framework written in it (Django).

Python is kind of strange. There is no real declaration of variables - they just start to exist when you first use them. And, they are loosely typed - So, you can assign a variable a string value, then assign the same variable a numeric value. And the type magically changes. Also, whitespace matters. Rather than having any kind of code blocking characters, Python uses indenting.

Django looks like it should be useful for me at least for some more utilitarian sites. I'm fairly sure that as I get more comfortable with it, there will be more uses that 'pop up'. But for now, my unfamiliarity with Python and basic distrust of high-level languages are holding that back.

Stay tuned.

Ack! Too much progress...

After so long with no steady posting, this week should be a turn around.

I already have one post unrelated to my 'three post topics for May' and I have started doing something for each of the topics I pre-picked as well.

Watch for updates.

How can several SLSBs share the same interface?

Here is a tip that I wasn't able to find anywhere (maybe I didn't look hard enough).

It may be a rare situation that you would have a large number of session beans (EJB3 session beans) that need to share the exact same interface. And probably, there are several reasons why it could be argued that it is a bad idea anyway.

But, I had about twenty-five timer beans that only needed to expose the same single method 'setSchedule' - so that they could be scheduled.

When I first created all of these timers, I made separate interface classes for each of them so that I could easily access them like this:

@EJB private TimerInterface1 timerInstance;

That wasn't so bad - Even though every timer class that I created ended up having its own interface that was exactly like all of the others.

When I got up to twenty-five though - I thought there must be a better way.

And I finally found it. So now, I only have one interface class for all of the timers and here is how the particular bean that is needed gets declared and accessed. As a note, I happened to be using stateless session beans - the same should work for stateful.

(declaring)
@Stateless
public class ParticularBeanImplementation implements GenericInterface {


(accessing)
@EJB(beanName="ParticularBeanImplementation") private GenericInterface specificInstance;

I can't believe it took so long for me to find how to do this.

Tuesday, April 29, 2008

Subjects for May...

How did it get to be May so soon?

Anyway - Here are three topics that I will write about in the next month (at least):

1) Rewriting origamicentral taking advantage of AJAX (provided by Dojo).
2) Investigating what it will take to do my own hosting of web and email.
3) Learning a new language (either spoken or computer - not decided yet)

If I manage to start doing my own hosting then there will be more -

Wait and see.

Ok. It's officially ridiculous now...

My origami website is just about six years old now.

And, although it does just what it is supposed to - that is waaaaay too long for a website to go without any changes.

Last month, I discovered that the database back end for the site went down (I have no idea how long it was down though). And, I realized (again) that I really need to rework the site.

It's been six weeks since then.

Time to get to work.

Saturday, April 12, 2008

Finding time...

I figured that it would be difficult to find things to write about in a blog.

What I didn't guess is how difficult it would be just to find the time to write.

I'm starting to realize now though.

So, in an effort to make this a little more consistent, I'm going to try to put together a list of ideas for my next few posts and keep at least two or three 'ahead of myself'.

We'll see if that works (crossed fingers).