Matt Horton

Ranch Hand
+ Follow
since Feb 06, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Horton

Thanks for your response, Tim.

I am realizing that finding a phone is a real challenge... I'm also disillusioned with apple, I didn't realize that Steve Jobs is such a git; the lack of j2me support on the iphone is a joke.

Although I'm tempted to glue a phone to a camera, like the guys in the flight of the conchords, do you think that the Nokia N95 is the best solution until the linux cameras improve (gps support, camera) or enter the US market? It has gps and a decent camera. Is there a better value than the N95? (incidentally, this has been edited, since I've found the nokia messageboards).
[ October 18, 2007: Message edited by: Matt Horton ]
16 years ago
Hi,

A friend just told me that he wants to plug a phone into a portable solar panel, and then put it outside; the phone would then need to take a photo every 5 seconds, and then post those images to a server.

Unfortunately, my only experience with my phone is throwing it against the wall every other day; i.e., I have no j2me experience.

Searching this forum suggests that a project like this is easy enough, but that I have to choose a phone wisely. Which phones make their apis readily available? If I have to store the image on the phone for a short period of time (e.g. connection fails), do all phones make their filesystems available?

I should also mention that there seems to be some play in the specification (sweet! scope creep!); if the user wants to print barcodes for field samples later on from a peripheral, do all phones have the same, err.. peripheral support??
16 years ago
Thanks for the feedback Steve. I think that I can better imagine the sort of project that would be benefited by quartz, but I suspect that in reality the average admin could write a 'typical' job schedule much faster than the average developer (implementing quartz). Of course, I base my opinion on no empirical data ('typical' job category, frequency of implementation, etc.).

I'll write an app in quartz to explore its bells & whistles.

To cron and quartz.
Hi,

I just started reviewing Quartz, and it seems pretty strong; however, searching through the forum(s) to survey its usage makes me wonder if most applications would be better supported with cron (or a similar app in any given os). Can you help me think through the benefits of quartz?

With quartz you can:
1) time jobs to the second. I'm not sure that this is very important.
2) skip execution on holidays, perhaps this has its uses.
3) use job/trigger/scheduler listeners. Perhaps this is really helpful when employing a transaction framework (with dependencies between jobs).
4) resubmit jobs after jvm crashes/server restarts.

One suspects that you inevitably tie a scheduler to a java service wrapper (if it isn't in some other container)?

However, this seems like a lot of development for a traditional schedule. Are there other benefits that I'm missing? The transaction-support and ability to resubmit a failed job seems attractive (but unnecessary for any of my jobs). I guess that it is ok for me NOT to need quartz, but imagine the horror! What am I missing?
Thanks Stefan! (and sorry for the delayed response; I dropped off of the planet ).
16 years ago
Hi Eric,
that was exactly the problem.

when I first fell in love with my mac(hine), I started using keyboard shortcuts for diacritics, the degree sign, etc. apparently I typed the degree sign into a stringbuffer instead of the character


When I opened the code in eclipse on a pc, somewhere the character was converted into a 1/4 sign. I've learned the error of my ways and now I've used the character above.
Hi,
my mac is being repaired, so I've been using a pc for a few days.

Since the switch, I've noticed that localhost shows a 1/4 sign, instead of a degree sign (for lat/long data), when my developer machine (mac) correctly shows the degree sign, as does the production server (linux).

It isn't terribly important (although my faith in my mac is restored), but what gives??
Hi Tim,

a set command shows up for me in bash (mac os x 10.4 bastardized unix). But isn't there also one in csh? Either way, I wrote that second command in a backwards way...

Thanks for the heads up about export, it works for me too...
17 years ago
Hi,

How do I do something ala:

set CLASSPATH=`cat classpath1.txt'

or
set CLASSPATH = (what would go here??) | cat classpath1.txt

I usually just source a file w/ the command built-in, but I asked myself this, and now I have to know.
[ May 02, 2007: Message edited by: Matt Horton ]
17 years ago
Hi Jeanne,

Thanks for your reply. So you just write scripts, and then apply them to your local machine and then apply it to the production server? That makes plenty of sense, I guess that I just need to be better organized. After I make a schema change, I invariably have to map it in hibernate (perhaps redo if I have an epiphany about an enum vs a table), write the pages/actions, perhaps map a new field in upload and export jsps and then remember what the schema changes were, to begin with, when I roll them out to the production server.

some schema-diff tool would be really useful.
Have you ever had this experience:

Errr, it's Monday. What field did I add to my *hiccup* local schema on Friday at 4 in the morning? I'm supposed to roll-out a few jsps today.



Ummm... neither have I ;).

But, I am curious to see what tool(s) you use to update the production db. I'm in a team of one, so it'd be nice if the solution was freeware...
so, for forum-dredgers of the future, I suggest that you read the following:
http://forums.hibernate.org/viewtopic.php?t=943384&highlight=bidirectional+listindex&sid=1e19f557855a43d8854db19a7f411d27

this link inspired me to take a somewhat dirty approach to taking care of the list-index issue (i was persistent, if not slow to actually read). That is, I used 2 uni-directional links with TWO JOIN TABLES. egatz! but, if you want order for both sides of the relationship, so be it. Hibernate will persist the list-index for you, if inverse is false for both sides of the relationship, and if you set not-null in the key column.
der!

omg, I did it. now I will bathe in the love that must cometh down from Christian Bauer. I read and read, and iteratively guessed and then the hibernate writers were pleased.

pththt. Nice docs. Better product.
in a different thread (that I didn't want to derail) a user asked a question about using bi-directional or uni-directional links. uni-directional links are an oddity in my mind, so I was perplexed when I read the following exchange:

http://forums.hibernate.org/viewtopic.php?t=943384&highlight=bidirectional+listindex&sid=1e19f557855a43d8854db19a7f411d27

in which Gavin suggests that a user split his/her model from a bi-directional association into 2 uni-directional associations (to accomodate the list-index element for lists).

I don't really know what this means, so I have to ask: what are 2 uni-directional links? If you put one uni-directional link in one hbm.xml file and another uni-directional link in a separate file, haven't you accidentally created a bi-directional link?? What am I missing? I'll go on a run in your name if you will enlighten me.
[ March 13, 2007: Message edited by: Matt Horton ]