I promise I tried. I tried really hard to get used to it and to love it... but i just can't waste anymore time with Ubuntu's
X! I am switching back to XP. I will use linux (ubuntu) or any other distribution ONLY for non X stuff. Let's admit: Linux's X is not THAT great! It is buggy it is slower than XP and i dont ever wanna talk about OSX. I am so tired of Segmentation Fault, trail and errors and spending days and nights getting something to work.
I ran 8.04 for about 2 months. I spent quite some time configuring stuff. Then 8.10 got released...SO I upgraded...
When I installed 8.10 on my Dell 1525 GDM did not work AT ALL. I just got blank desktop with nothing on it. Sure there are fixes out there to solve this problem but do I really want to spend/waste time doing all of them when I can use that time to learn Spring, or Struts or Dojo...or something else... ANd even then when I get everything ready and install Eclipse i still need to solve some 8.10 <> Eclipse bugs. I am tired. Maybe on long run, when XP starts dragging, I will regret making this decision but for right now I am happy that I can plug in my HDMI cable to my 1525 and Panasonic 1080p 42'' Plasma TV and enjoy movies. I couldn't do this in Ubuntu. I am sorry ubuntu but I will have to say bye bye to your X.
Anyone please tell me that i am making a wrong decision??? And please explain why?
peace!
nn
Thursday, November 20, 2008
Monday, October 20, 2008
Family Guy - McCain Nazi :)
If you missed Family Guy last night's episode make sure you check it out. (Fox on demand). Stewie and Brian steal some Nazi uniforms and find a button promoting McCain and Palin! :) Funny but still cant beat "Brid is the word"!
Thursday, October 09, 2008
Persisting Triggers in Quartz
I've implemented Quartz scheduling system at my work. It works great. We are all very happy with it. However, I've just realized that Job and Trigger listeners get lost when you restart webserver. It's even in the docs (tutorial 7). It tells you right there that you will need to re-register the listeners because they will be lost after the restart.
So, here is my simple solution.
In your Quartz Initilizer servlet right after cfg.getServletContext().setAttribute(factoryKey, factory);
add a method call reRegisterTriggerListeners(cfg.getServletContext()); that will re-register all the triggers.
Here is the method.
private void reRegisterTriggerListeners(ServletContext ctx){
try{
QrtzJobs qrtzJobs = new QrtzJobs(ctx);
qrtzJobs.listJobs();
ArrayList jobNames = qrtzJobs.getJobNames();
for(int i =0; i < jobNames.size(); i++){
System.out.println("will add trigger: " + jobNames.get(i) + "_listener");
SFCTriggerListener sfctrig=new SFCTriggerListener(jobNames.get(i) + "_listener");
scheduler.addTriggerListener(sfctrig);
}
}catch(Exception e){
System.out.println("Error while re-registering Trigger Listenenrs");
e.printStackTrace();
}
}
and that is it. From now after the server restart your jobs and listeners will work just fine.
So, here is my simple solution.
In your Quartz Initilizer servlet right after cfg.getServletContext().setAttribute(factoryKey, factory);
add a method call reRegisterTriggerListeners(cfg.getServletContext()); that will re-register all the triggers.
Here is the method.
private void reRegisterTriggerListeners(ServletContext ctx){
try{
QrtzJobs qrtzJobs = new QrtzJobs(ctx);
qrtzJobs.listJobs();
ArrayList jobNames = qrtzJobs.getJobNames();
for(int i =0; i < jobNames.size(); i++){
System.out.println("will add trigger: " + jobNames.get(i) + "_listener");
SFCTriggerListener sfctrig=new SFCTriggerListener(jobNames.get(i) + "_listener");
scheduler.addTriggerListener(sfctrig);
}
}catch(Exception e){
System.out.println("Error while re-registering Trigger Listenenrs");
e.printStackTrace();
}
}
and that is it. From now after the server restart your jobs and listeners will work just fine.
Friday, September 05, 2008
IM Bot to update Twitter
So for all of you twitters out there here is a little tutorial how to write your own IM bot to easily update twitter using IM client. I know i knoq you can use the official IM twitter bot BUT it is down right now. So, why not use your own.
First of all read post How to Write Your Own IM Bot in Less Than 5 Minutes
Follow all the steps for creating your own im bot.
Next add the following code to the .php script from the IM Bot blog post.
enjoy!
First of all read post How to Write Your Own IM Bot in Less Than 5 Minutes
Follow all the steps for creating your own im bot.
Next add the following code to the .php script from the IM Bot blog post.
// Set username and passwordThats it!
$username = 'user';
$password = 'pass';
// The message you want to send
$message = $_REQUEST['msg'];
// The twitter API address
$url = 'http://twitter.com/statuses/update.xml';
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
// check for success or failure
if (empty($buffer)) {
echo 'message';
} else {
echo 'success';
}
*/
?>
enjoy!
Tuesday, August 26, 2008
Catching up...
Yup I know we need to catch up a bit. 8 months is a long a$$ time. So I will do my best to pack everything in a brief post :).
Anyway, this first half of the year has been good to me. I graduated in May! Got my BAS in Technology Management. Very happy about it. And sooo glad that I don't have to study anymore. Well....i am not gonna study for right now...but I am seriously thinking about getting my MS soon...But it all depends how I feel. Right now i don't feel like studying at ALL! Degree Motivation is gone! I've been studying for my Java (SCJA) exam. Hopefully by the end of the year I ll take it and pass it! :)
Furthermore, I ve been doing some freelance work. I've done a few php jobs, c#, java. Java program I did was for this guy and it was a Java Desktop app. It is a photo album. The deal was for me to do a program and the guy is suppose to give me some money and 6 pack Sierra Nevada. So, he paid but no Sierra Nevada! Why? I have no idea. He maybe thought I was joking. Oh well...I am done with him for good. The guy was a friend too.
The project I am working right now is a C# program that my client will use to do some psychology testing on kids. It is a cool idea and I've been having fun working on it. I think I have a few days left before releasing the beta.
Oh, in meanwhile I've discovered twitter and twitpic. I love them! Check it out http://twitter.com/javadood
And...I've been waiting on a gPhone! My guess is that it will be T-Mobile! ATT is out because of the iPhone. The other providers...hmmm they are OK. but T-Mobile is in EUROPE as well...sooo knowing google, they will go for the big thing. ANd i think it will cost around 150 for the new phone. There are some rumors circling the net about the phone but I won't get into that right now. Maybe later...in the second post.
I went to Google IO 2008 conference in San Francisco. Had great time. Google is awesome. I had a few hours to tour the SF. Check out the pics http://picasaweb.google.com/nemnesic/GOOGLEIO2008
Work (day job) has been good. I am still working part time even though they've offered me a full time position. I don't wanna work full time yet. I mean even as a part time I work 40hrs a week...but i have great flexibility. I can take vacation whenever I want. I can take days off...etc. etc... so for right now,...i am happy to do part time 40hrs flexible work :) I've been also pushing some new ideas at work. Some people are not happy about it but my boss is. So who cares about other programmers who are used to old technology and old way of doing things. Oh well...
Also, I went to Europe for about 16 days. Had good time with friends.
Family is doing fine.
Relationship is fine as well...
oh and my dog is cool too! :)
peace out
nem
Anyway, this first half of the year has been good to me. I graduated in May! Got my BAS in Technology Management. Very happy about it. And sooo glad that I don't have to study anymore. Well....i am not gonna study for right now...but I am seriously thinking about getting my MS soon...But it all depends how I feel. Right now i don't feel like studying at ALL! Degree Motivation is gone! I've been studying for my Java (SCJA) exam. Hopefully by the end of the year I ll take it and pass it! :)
Furthermore, I ve been doing some freelance work. I've done a few php jobs, c#, java. Java program I did was for this guy and it was a Java Desktop app. It is a photo album. The deal was for me to do a program and the guy is suppose to give me some money and 6 pack Sierra Nevada. So, he paid but no Sierra Nevada! Why? I have no idea. He maybe thought I was joking. Oh well...I am done with him for good. The guy was a friend too.
The project I am working right now is a C# program that my client will use to do some psychology testing on kids. It is a cool idea and I've been having fun working on it. I think I have a few days left before releasing the beta.
Oh, in meanwhile I've discovered twitter and twitpic. I love them! Check it out http://twitter.com/javadood
And...I've been waiting on a gPhone! My guess is that it will be T-Mobile! ATT is out because of the iPhone. The other providers...hmmm they are OK. but T-Mobile is in EUROPE as well...sooo knowing google, they will go for the big thing. ANd i think it will cost around 150 for the new phone. There are some rumors circling the net about the phone but I won't get into that right now. Maybe later...in the second post.
I went to Google IO 2008 conference in San Francisco. Had great time. Google is awesome. I had a few hours to tour the SF. Check out the pics http://picasaweb.google.com/nemnesic/GOOGLEIO2008
Work (day job) has been good. I am still working part time even though they've offered me a full time position. I don't wanna work full time yet. I mean even as a part time I work 40hrs a week...but i have great flexibility. I can take vacation whenever I want. I can take days off...etc. etc... so for right now,...i am happy to do part time 40hrs flexible work :) I've been also pushing some new ideas at work. Some people are not happy about it but my boss is. So who cares about other programmers who are used to old technology and old way of doing things. Oh well...
Also, I went to Europe for about 16 days. Had good time with friends.
Family is doing fine.
Relationship is fine as well...
oh and my dog is cool too! :)
peace out
nem
Tuesday, December 04, 2007
NetBeans 6 and Ubuntu
Good thing I put (for now) in the subject of my previous post coz I am back on Ubuntu. What can I tell you. I tried Win again, but I missed Ubuntu. So I have 2 PCs running now. One with XP other with Ubuntu. THe one with XP I use for school work, and NetSupporting to my work PC when I wanna work from home (yeah my job is that cool). The Ubuntu or "vrnix" one is my working horse for everything else but mostly for my freelance (php, java) stuff.
Anyhow, I'd been waiting for the final release of NetBeans 6. And it is finally there! YAY!
I just download it and installed it. So here are some screenshots!

and another:


Anyhow, I'd been waiting for the final release of NetBeans 6. And it is finally there! YAY!
I just download it and installed it. So here are some screenshots!

and another:


Sunday, November 18, 2007
Why I switched to Windows (for now)...
I am sad to let everyone know that I am switching to windows.
Linux gave up on me. Well...i take that back. Linux's X gave up on me. It just can't be compared to the Windows. I am so sorry...but i gotta go back.
1. I switch between working windows a lot. i got one text editor, some kid of IDE, DB Query browser, one browser, second browser...and it just switching among them is just PAIN in my A$$! There is delay of 1...1,2 sec.
2. FF in the middle of playing some flash video stops working. I just freezes!!!!
3. Eclipse runs and responds faster on Win then on Ubuntu and SuSe
4. For some strange reason Ubuntu's xmms dies on me from time to time.
5. ...brb
Linux gave up on me. Well...i take that back. Linux's X gave up on me. It just can't be compared to the Windows. I am so sorry...but i gotta go back.
1. I switch between working windows a lot. i got one text editor, some kid of IDE, DB Query browser, one browser, second browser...and it just switching among them is just PAIN in my A$$! There is delay of 1...1,2 sec.
2. FF in the middle of playing some flash video stops working. I just freezes!!!!
3. Eclipse runs and responds faster on Win then on Ubuntu and SuSe
4. For some strange reason Ubuntu's xmms dies on me from time to time.
5. ...brb
Subscribe to:
Posts (Atom)