Andy Gertjejansen

Greenhorn
+ Follow
since Dec 30, 2010
Andy likes ...
Eclipse IDE Java Ubuntu
Merit badge: grant badges
For More
Sunny beaches of Minnesota
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andy Gertjejansen

ahh, I suppose. The client uses Ubuntu I don't suppose that helps? He locks his computer ctrl + alt + L, but if the application does not have focus I cannot catch that. I will just have to do some more digging. Thanks for your help.
13 years ago
Thanks, I found a way to catch it on Windows systems which is but this application will need to catch the lock/unlock on Linux systems because the main user of this application works on a Linux system so I haven't been able to find anything but thanks for the reply.

Does any one know how to catch or be notified when a user locks there computer on a Linux system? it is a Java application .

Thanks partner,
Andy
13 years ago
I am building an application that needs to do some operations when a user locks their computers. How can I be notified of that? is there a system wide event or something I can catch? BTW I know how to do this on a windows OS but not Linux so just need to know about linux.

Thanks homies,
Andy
13 years ago
Thanks again. Yea I know JavaScript has absolutely nothing to do with java as I use it a lot with ajax requests and such. Thanks for showing me the appropriate forum Roel . I just thought maybe someone would crack a joke or something about prototypal languages. I think they are funny. You can do ANYTHING in them. lol but anywho thanks
Thank you partners,
Andy
Thank you Dennis and Roel. That's a good idea, the shutdown hook. I kind of figured that this would be the case, I just wanted to make sure that there wasn't a standard practice for spawning threads in certain spots of your application. Well thank you much for the help guys, this site is awesome!!! I am starting part time school in 8 months so hopefully you guys are still here to answer my questions! I saw that I have a JavaScript class!! Prototypal languages confuse me so I hope you guys are still here and still brainiacs!!!
Thank you partners,
Andy
I am wondering at what areas of your code spawned their own threads explicitly? (I am sorry this is such a elementary question, but I just want to know how to get the best performance using multi-threading). Currently, the only place I programmatically spawn a new thread in only one place which is every half hour to do some writing and reading of the cached data (of course this is besides my main threads). I know RMI does some multi-threading under the hood and when networked there will be some concurrency. Did any of you guys spawn new threads in your code (besides the main methods). Once again I know this is a subjective and rather daft question to ask but I guess I am just an insecure bugger
Thanks Partners,
Andy
Thanks Roel!! I thought that's what you did but I was a little nervous thought I would double check. Wow perfect score very impressive!
Sorry for bothering you so much just to make sure. You had an interface (lets call it Foo) that extends the DB interface and then just implemented Foo and that was ok with the assessors? I imagine it would be because you are still implementing DB by implementing an interface that extends to it but just thought I would ask to make sure. I also don't mean to straight up copy your design but it is such a good idea unfortunately I cannot resist!
Thanks again,
Andy
I am nearly a full blooded German with a Norwegian name that lives in Minnesota, USA . For some reason your name struck me as Spanish or maybe Italian, but your from Belgium right? That is why I love this site, it seems to bring the world a little closer heh, no it's just really cool to see the diverse selection of people that can get together and help each other with their common propensity...Software developing
Thanks,
Andy
I suppose...I remember saying you had a custom interface. I get it, that way you can just cache the data and the other methods just deal with a Map. Thanks again sir!
Thanks,
Andy
Hey Roel,
I am using a singleton as well. I pass in a database path into getInstance method and actually have an overloaded version without params. I know this is a terrible design but I throw a custom exception when it isn't used properly. Is there a way I didn't think of to get around this. I don't like the idea of having a setter for the database path. How did you get the database path to Data? by the way I have been reading a lot of your posts... You are a very adept at teaching, when you help people solve their problems you do it in a way that is understandable and you are very humble (in my opinion a must for any teacher) which helps people build their confidence. I was very insecure when I began the project, only a week later, I am almost cocky! Just wanted to say thanks man .
Yea I just thought about it a little harder and realized that I can do it with one for loop as well. DTO in the business layer, I could see how that would be nice. Thank you sir, I really appreciate the help.
Thanks Partner,
Andy
Howdy,
I'll start with an explanation and end with the question
Currently in my read method I seek a record and read the entire thing so that only a small bit of code has to be synchronized. Then I take that byte array and go through it in a for loop (with a few nested for loops ). Should I go this route or to cut down on nested blocks should I read stuff out one field at a time (more code in synchronized block). Stupid question I know but I am just really paranoid about code complexity (nested loops seem to be a no no even though they aren't that confusing). The other question I had was concerning a VacantRoom or Record DTO, I imagine anyone who used it didn't change the sun/oracle provided Interface so that the read method returned a DTO so how were you able to use it? It would probably be nice for front end validation but I was wondering if there was a way to get around the DB interface's read method (call it with another method that changes a String[] into DTO but then I wouldn't want read to be public or maybe it wouldn't matter blablabla).
Thanks Partners,
Andy