Thursday, June 25, 2009

How to stop and start jetty server from command prompt

Hello My dear fellow Java Developer friends, Today I want to share with you one of the problem that I faced, and how I solved it. I was assigned to look for a better way to stop a Jetty server. We were stopping jetty by hitting ctrl + C or killing the process from the task manager. I have been searching the web for the solution : How to stop it from command prompt with no luck. Finally with one of our fellow blogger's post (read it here ), where he explained how Jetty can be started and stopped through an ant script, I was able to find a way to stop it using command prompt.

In order to start Jetty (which we all know) people usually use the following command:

java -jar start.jar (assuming you are dealing with Jetty7 eclipse version) However, if you want to be able to stop the jetty server from command prompt, you have to pass two extra jvm properties while starting, such as:

java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar

In order to stop Jetty :
java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar - –stop (Given the fact that you have used same jvm argument while starting that jetty server)

I hope those of you who are searching the way to stop jetty from command prompt, this post will save you some time.



Wednesday, June 24, 2009

How to use your tv as Monitor

While many of us already know that we can use our television as monitor of the PC, many of us may not aware of this facility. I will now explain how you can take the advantage of this feature. Most of the modern laptop computers are equipped with a TV out option. If you wondering about the look of this output jack it could be one of the following described in the picture bellow:

Many OLD Tvs are equipped with RCA and S Video input while newer TVs are equipped with VGA and HDMI or DVI input. Here we will cover about S-Video, RCA and VGA inputs. Before starting your laptop/pc,if you connect your tv output port with one of your tv inputs that has one of these type of jacks and then start your computer, there is a possiblity you will see your output on tv automaticlaly without configuring your display settings. However, most of the time, it will require you to configure the display settings on your laptop before being able to watch the output on tv.

This is what you need to do (Screen shots are taken from pc with windows xp)
go to start--->controlpanel and then double click on display window (if your control panel is not in classic mode, switch it by clicking the link on the top left corner)
you will see something like following window:


Click on setting tabs, and click on #2 Monitor and checked the option that says "Extended my Windows...." to just enable it as extended display, if you also want to make it primary select the "Use the device as the primary monitor" as well. Then you will see all of the components of the desktop (icons, start button, system clock , etc ) components on television. If you just select the extended desktop option, you will be albe to view any window drag to the #2 monitor side. If you want to switch the side of the external monitor (right or left) on the setting tab select #2 Monitor icon and drag it to the left side of the (or which ever side you like) #1 Monitor. And it will change the side of the external monitor.

By the way, except the VGA output jack, all other means of output will give you relatively blurry output. It is good for watching video but to watch the webpage with tiny text, VGA output is the best choice.

I hope this instructions will help you to view your pc output on your television. If you face any problem feel free to drop a comments here.

Thank you for reading.

Monday, June 22, 2009

Current Redbox Free Rental Code

Those of you are fan of Redbox movies, I will try to post updated Code that allows you to rent a movie for one night at no cost.
Last Used: 08/09/09 (Sun)
Free DVD Rental
Walgreens only
Last Used: 08/08/09 (Sat)
Free DVD Rental
Stop & Shop only
Last Used: 08/08/09 (Sat)
Free DVD Rental
Monday code - expires 8/3/09
Last Used: 08/07/09 (Fri)
Free DVD Rental
New customers
Last Used: 08/07/09 (Fri)
Free DVD Rental
Monday-only code
Last Used: 08/01/09 (Sat)
Free DVD Rental
Last Used: 07/27/09 (Mon)
Free DVD Rental
Festival Foods only
Last Used: 07/24/09 (Fri)
Free DVD Rental


For more information, you may check this site.

Saturday, June 20, 2009

Future Cricket Match Schedule

This schedule information was collected from http://www.cricketcalendar.com . Please visit the site for updated information.

How to watch this matches online
click here.
For Result you may visit here.


Australia:

Date Against Match Series Location
08 Jul, 09
Wednesday
06:00 AM
England

Test(1/5)
Australia vs England Cardiff,England
16 Jul, 09
Thursday
06:00 AM
England
Test(2/5)
Australia vs England Lords,England
30 Jul, 09
Thursday
06:00 AM
England
Test(3/5)
Australia vs England Birmingham,England
07 Aug, 09
Friday
06:00 AM
England
Test(4/5)
Australia vs England Leeds,England
20 Aug, 09
Thursday
06:00 AM
England
Test(5/5)
Australia vs England Kennington Oval,England
30 Aug, 09
Sunday
10:00 AM
England
T20(1/2)
Australia vs England Manchester,England
01 Sep, 09
Tuesday
02:00 PM
England
T20(2/2)
Australia vs England Manchester,England
04 Sep, 09
Friday
09:30 AM
England
ODI(1/7)
Australia vs England Kennington Oval,England
06 Sep, 09
Sunday
05:45 AM
England
ODI(2/7)
Australia vs England Lords,England
09 Sep, 09
Wednesday
09:30 AM
England
ODI(3/7)
Australia vs England Southampton,England
12 Sep, 09
Saturday
05:45 AM
England
ODI(4/7)
Australia vs England Lords,England
15 Sep, 09
Tuesday
09:30 AM
England
ODI(5/7)
Australia vs England Trent Bridge,England
17 Sep, 09
Thursday
09:30 AM
England
ODI(6/7)
Australia vs England Trent Bridge,England
20 Sep, 09
Sunday
05:45 AM
England
ODI(7/7)
Australia vs England Chester-le-Street,England

Bangladesh:
Date Against Match Series Location
09 Jul, 09
Thursday
10:00 AM
West Indies
Test(1/2)
West Indies vs Bangladesh Kingstown,St Vincent
17 Jul, 09
Friday
10:00 AM
West Indies
Test(2/2)
West Indies vs Bangladesh St George's,Grenada
26 Jul, 09
Sunday
09:30 AM
West Indies
ODI(1/3)
West Indies vs Bangladesh Roseau,Dominica
28 Jul, 09
Tuesday
09:30 AM
West Indies
ODI(2/3)
West Indies vs Bangladesh Roseau,Dominica
31 Jul, 09
Friday
09:30 AM
West Indies
ODI(3/3)
West Indies vs Bangladesh Basseterre,St Kitts
02 Aug, 09
Sunday
02:00 PM
West Indies
T20(1/1)
West Indies vs Bangladesh Basseterre,St Kitts


England:
Date Against Match Series Location
08 Jul, 09
Wednesday
06:00 AM
Australia
Test(1/5)
Australia vs England Cardiff,England
16 Jul, 09
Thursday
06:00 AM
Australia
Test(2/5)
Australia vs England Lords,England
30 Jul, 09
Thursday
06:00 AM
Australia
Test(3/5)
Australia vs England Birmingham,England
07 Aug, 09
Friday
06:00 AM
Australia
Test(4/5)
Australia vs England Leeds,England
20 Aug, 09
Thursday
06:00 AM
Australia
Test(5/5)
Australia vs England Kennington Oval,England
30 Aug, 09
Sunday
10:00 AM
Australia
T20(1/2)
Australia vs England Manchester,England
01 Sep, 09
Tuesday
02:00 PM
Australia
T20(2/2)
Australia vs England Manchester,England
04 Sep, 09
Friday
09:30 AM
Australia
ODI(1/7)
Australia vs England Kennington Oval,England
06 Sep, 09
Sunday
05:45 AM
Australia
ODI(2/7)
Australia vs England Lords,England
09 Sep, 09
Wednesday
09:30 AM
Australia
ODI(3/7)
Australia vs England Southampton,England
12 Sep, 09
Saturday
05:45 AM
Australia
ODI(4/7)
Australia vs England Lords,England
15 Sep, 09
Tuesday
09:30 AM
Australia
ODI(5/7)
Australia vs England Trent Bridge,England
17 Sep, 09
Thursday
09:30 AM
Australia
ODI(6/7)
Australia vs England Trent Bridge,England
20 Sep, 09
Sunday
05:45 AM
Australia
ODI(7/7)
Australia vs England Chester-le-Street,England

India :
Date Against Match Series Location
26 Jun, 09
Friday
10:30 AM
West Indies
ODI(1/4)
West Indies vs India Kingston,Jamaica
28 Jun, 09
Sunday
10:30 AM
West Indies
ODI(2/4)
West Indies vs India Kingston,Jamaica
03 Jul, 09
Friday
09:30 AM
West Indies
ODI(3/4)
West Indies vs India Gros Islet,St Lucia
05 Jul, 09
Sunday
09:30 AM
West Indies
ODI(4/4)
West Indies vs India Gros Islet,St Lucia

New Zealand:
Date Against Match Series Location
18 Aug, 09
Tuesday
12:30 AM
Sri Lanka
Test(1/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
26 Aug, 09
Wednesday
12:30 AM
Sri Lanka
Test(2/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
05 Sep, 09
Saturday
12:00 AM
Sri Lanka
ODI(1/5)
Sri Lanka vs New Zealand Dambulla,Sri Lanka
07 Sep, 09
Monday
12:00 AM
Sri Lanka
ODI(2/5)
Sri Lanka vs New Zealand Dambulla,Sri Lanka
11 Sep, 09
Friday
05:00 AM
Sri Lanka
ODI(3/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
13 Sep, 09
Sunday
05:00 AM
Sri Lanka
ODI(4/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
15 Sep, 09
Tuesday
05:00 AM
Sri Lanka
ODI(5/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
17 Sep, 09
Thursday
08:30 AM
Sri Lanka
T20(1/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
19 Sep, 09
Saturday
08:30 AM
Sri Lanka
T20(2/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka


Pakistan:
Date Against Match Series Location
21 Jun, 09
Sunday
10:00 AM
Sri Lanka
T20 (ICC)
Final
ICC World Twenty 20 Lords,England
04 Jul, 09
Saturday
12:30 AM
Sri Lanka
Test(1/3)
Sri Lanka vs Pakistan Galle,Sri Lanka
12 Jul, 09
Sunday
12:30 AM
Sri Lanka
Test(2/3)
Sri Lanka vs Pakistan Colombo,Sri Lanka
20 Jul, 09
Monday
12:30 AM
Sri Lanka
Test(3/3)
Sri Lanka vs Pakistan Colombo,Sri Lanka
30 Jul, 09
Thursday
12:00 AM
Sri Lanka
ODI(1/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
01 Aug, 09
Saturday
12:00 AM
Sri Lanka
ODI(2/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
03 Aug, 09
Monday
12:00 AM
Sri Lanka
ODI(3/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
07 Aug, 09
Friday
05:00 AM
Sri Lanka
ODI(4/5)
Sri Lanka vs Pakistan Colombo,Sri Lanka
09 Aug, 09
Sunday
05:00 AM
Sri Lanka
ODI(5/5)
Sri Lanka vs Pakistan Colombo,Sri Lanka
12 Aug, 09
Wednesday
08:30 AM
Sri Lanka
T20(1/1)
Sri Lanka vs Pakistan Colombo,Sri Lanka

Srilanka:
Date Against Match Series Location
21 Jun, 09
Sunday
10:00 AM
Pakistan
T20 (ICC)
Final
ICC World Twenty 20 Lords,England
04 Jul, 09
Saturday
12:30 AM
Pakistan
Test(1/3)
Sri Lanka vs Pakistan Galle,Sri Lanka
12 Jul, 09
Sunday
12:30 AM
Pakistan
Test(2/3)
Sri Lanka vs Pakistan Colombo,Sri Lanka
20 Jul, 09
Monday
12:30 AM
Pakistan
Test(3/3)
Sri Lanka vs Pakistan Colombo,Sri Lanka
30 Jul, 09
Thursday
12:00 AM
Pakistan
ODI(1/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
01 Aug, 09
Saturday
12:00 AM
Pakistan
ODI(2/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
03 Aug, 09
Monday
12:00 AM
Pakistan
ODI(3/5)
Sri Lanka vs Pakistan Dambulla,Sri Lanka
07 Aug, 09
Friday
05:00 AM
Pakistan
ODI(4/5)
Sri Lanka vs Pakistan Colombo,Sri Lanka
09 Aug, 09
Sunday
05:00 AM
Pakistan
ODI(5/5)
Sri Lanka vs Pakistan Colombo,Sri Lanka
12 Aug, 09
Wednesday
08:30 AM
Pakistan
T20(1/1)
Sri Lanka vs Pakistan Colombo,Sri Lanka
18 Aug, 09
Tuesday
12:30 AM
New Zealand
Test(1/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
26 Aug, 09
Wednesday
12:30 AM
New Zealand
Test(2/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
05 Sep, 09
Saturday
12:00 AM
New Zealand
ODI(1/5)
Sri Lanka vs New Zealand Dambulla,Sri Lanka
07 Sep, 09
Monday
12:00 AM
New Zealand
ODI(2/5)
Sri Lanka vs New Zealand Dambulla,Sri Lanka
11 Sep, 09
Friday
05:00 AM
New Zealand
ODI(3/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
13 Sep, 09
Sunday
05:00 AM
New Zealand
ODI(4/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
15 Sep, 09
Tuesday
05:00 AM
New Zealand
ODI(5/5)
Sri Lanka vs New Zealand Colombo,Sri Lanka
17 Sep, 09
Thursday
08:30 AM
New Zealand
T20(1/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka
19 Sep, 09
Saturday
08:30 AM
New Zealand
T20(2/2)
Sri Lanka vs New Zealand Colombo,Sri Lanka

West Indies:
Date Against Match Series Location
26 Jun, 09
Friday
10:30 AM
India
ODI(1/4)
West Indies vs India Kingston,Jamaica
28 Jun, 09
Sunday
10:30 AM
India
ODI(2/4)
West Indies vs India Kingston,Jamaica
03 Jul, 09
Friday
09:30 AM
India
ODI(3/4)
West Indies vs India Gros Islet,St Lucia
05 Jul, 09
Sunday
09:30 AM
India
ODI(4/4)
West Indies vs India Gros Islet,St Lucia
09 Jul, 09
Thursday
10:00 AM
Bangladesh
Test(1/2)
West Indies vs Bangladesh Kingstown,St Vincent
17 Jul, 09
Friday
10:00 AM
Bangladesh
Test(2/2)
West Indies vs Bangladesh St George's,Grenada
26 Jul, 09
Sunday
09:30 AM
Bangladesh
ODI(1/3)
West Indies vs Bangladesh Roseau,Dominica
28 Jul, 09
Tuesday
09:30 AM
Bangladesh
ODI(2/3)
West Indies vs Bangladesh Roseau,Dominica
31 Jul, 09
Friday
09:30 AM
Bangladesh
ODI(3/3)
West Indies vs Bangladesh Basseterre,St Kitts
02 Aug, 09
Sunday
02:00 PM
Bangladesh
T20(1/1)
West Indies vs Bangladesh Basseterre,St Kitts

RelatedPost

Blog Widget by LinkWithin