Seattle Seahawks Jones Soda

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This is a Sponsored Post written by me on behalf of Jones Soda. All opinions are 100% mine.

Are you a football fan? One thing that goes good with football on Sunday is enjoying a nice glass of Seahawks soda. Jones Soda is famous for their limited edition soda’s and now you can get a 4-pk Cream Soda, 4-pk Green Apple and 4-pk of Berry Lemonade Jones Soda which will go great watching football. I would choose the Berry Lemonade Jones Soda because I have always loved the taste of Lemonade. I would love to see the Cowboys Soda because that is my favorite team. I figure the Cowboy Soda would be grape flavor since that is also my favorite fruit. If you are looking for something different to bring to your Super Bowl party, you might want to bring some Jones Soda. They have all kinds of beverages, candy, clothing and limited edition items that you might be interested in. You can order the items directly from their website which makes it easier to get all of your Jones items. So what are you waiting for? If you are looking for a great tasting Soda that will go well with your football parties, you should checkout Jones Pure Cane Soda today and try one of the Seahawk sodas.

SocialSpark Disclosure Badge

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Groovy Dereferencing Null Pointer Exceptions Step 13

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

The most annoying and most common error in Java is the Null Pointer Exception.

If you type:

def a=null
println a.size()
You will get a Null Pointer Exception

If you type
println a?.size(),

it will print null and not throw you a null pointer exception. This makes it a lot easier to check for null pointer exceptions.

(Step 14 Coming Soon)

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Check Out the Dungeons and Dragons Soda

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This is a Sponsored Post written by me on behalf of Jones Soda. All opinions are 100% mine.

Are you one of the Dungeons and Dragons fan? How would you like to checkout their unique Dungeons and Dragons Jones Soda? This new and unique Dungeons and Dragons soda has many different flavors such as Sneak Attack, Potion of Healing and more. These sodas sound pretty interesting to me. They have some that are sugar free, and some that are pure cane. They also have Dwarven Draught and Eldritch Blast. I would love to try the Dwarven Draught drink which I would imagine would taste like Vodka. I would figure that Dwarves would be heavy drinkers. The Potion of Healing drink I would expect to taste like medicine. The Sneak Attack drink probably would be a very strong tasting drink that would give me a huge boost of energy. If you are looking for a cool gift to give to someone, you might want to get some of these Dungeons and Dragons drinks. This would be the perfect gift for anybody who enjoys playing Dungeons and Dragons or someone who is into fantasy. If you are looking to try a different kind of drink, or are looking for the perfect gift, you should checkout one of these drinks today. So what are you waiting for?

SocialSpark Disclosure Badge

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Operator Overloading in Groovy Step 12

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

Another shortcut in Groovy isOperator Overloading.
You can type something like this:
def d = new Date()
println d.next()
(1..3).each{println d++}

This code will print:
Mon Jan 11 12:06:11 PST 2010
Sun Jan 10 12:06:11 PST 2010
Mon Jan 11 12:06:11 PST 2010
Tue Jan 12 12:06:11 PST 2010

assuming that today’s date is January 10th at 12:06 PST in 2010.

This code will instatiate a new date and print the next date.
Then it will print three more dates starting from today’s date.

The d++ will call the next method.

Here are other operator overloading:

Operator Method
a==b or a!=b a.equals(b)
a + b a.plus(b)
a-b a.minus(b)
a*b a.multiply(b)
a/b a.div(b)
a%b a.mod(b)
a++ or ++a a.next()
a– or –a a.previous()
a & b a.and(b)
a | b a.or(b)
a[b] a.getAt(b)
a[b]=c a.putAt(b,c)
a<<b a.leftShift(b)
a>>b aa.rightShift(b)
a<b or a>b or a<=b or a>=b a.compareTo(b)

For example:

def b=new Date()
def v = new Date()
println “b”+b
println “v”+d
if(b.equals(v))
println “true”
else
println “false”

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

LG Chocolate Touch Phone

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This is a Sponsored Post written by me on behalf of LG Chocolate Touch. All opinions are 100% mine.

How would you like to have a phone that allows you to make calls, send texts, use the Internet, use social media, take pictures and videos and also has a music player with Dolby Mobile technology for crystal-clear sound quality? The Dolby Mobile technology for crystal-clear sound quality will greatly improve my ability to communicate with my friends and family members. This phone also has sweet visual effects and features which include rhythmical beat that vibrates the handset to the beat of the music. Don’t worry because now you can have a phone that includes all this technology by purchasing the LG Chocolate Touch phone. This phone also has a 3.2MP Camera/Recorder with excellent quality. I think you would find life much easier by having all of these technologies contained in one phone right? I won’t have to wait until I get on my home computer to get on Facebook, and I will still have excellent crystal clear sound. I am sure if I had this phone, I wouldn’t need my home phone and the internet on my desktop computer anymore either. How convenient is that! It also has a one touch social network message key for easy use of Mobile Blogging such as Facebook. It also has mobile media such as pictures, videos and more. If you are looking for a great phone, you should checkout the LG Chocolate Touch. So what are you waiting for?

SocialSpark Disclosure Badge

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Create an Executable File Using Java

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

If you are looking to make your Java application an executable file, you might want to use the Fat.jar plugin. You can download it from this website: http://sourceforge.net/projects/fjep

I downloaded the net.sf.fjep.fatjar_0.0.31.zip from their website.

Unzip the zip file using winzip or another tool.

Copy the net.sf.fjep.fatjar_0.0.31.jar from the zip folder and paste it in your eclipse/plugin directory.

Restart eclipse.

Select on the Java project that you want to make executable with the right mouse button and then select Build Fat Jar.

In the popup menu, select the class that contains the main and press finish.

It will tell you which directory it placed the newly created jar file.

Open a command prompt and traverse to the directory where your newly created jar file is located.

Type (myjar is the name of your jar file you created): java -jar myjar.jar.

If you get the UnsupportedClassVersionError, you might have compiled your code with a new version of Java. In eclipse, you can change the compliance level to make sure your code is compliant for older versions of Java. You can do this by selecting the window menu in eclipse, select preferences, Java and then select compiler.

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Lovely Hilton Bed and Breakfast Package

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This is a Sponsored Post written by me on behalf of Hiltons of Branson. All opinions are 100% mine.


Do you have any plans during Valentine’s Day? Are you going to bring your spouse or your girlfriend on a romantic dinner? If you are planning on going on a Valentines Day vacation, why not consider going to Branson, Missouri? Have you ever been there? Branson Missouri is a great place to visit because they have so many great attractions. They have great Amusement Parks such as White Water, Celebration City and Silver Dollar City. If you are looking for a place to stay, you don’t need to worry because the Hilton Promenade at Branson Landing and the Hilton Branson Convention Center Hotel are offering an exclusive Romance Package. This package includes:
* Early check-in & pre-registration upon request
* In-room sparkling wine (where permitted by law) or cider upon arrival
* Access to hotel health club, pool and whirlpool spa (where available)
* Full American breakfast for two in their room (where available) or in the hotel’s designated restaurant. At airport locations, guests can exchange their breakfast for a lunch or dinner discount
* On stays beyond one night, buy one entrée and get a second one of equal or lesser value at no additional cost. (Choose from either lunch or dinner in designated restaurant)
*Late check-out available upon request
You can also take pleasure in the lovely Hilton Bed and Breakfast Package and enjoy the comfort of the Hiltons of Branson plus a personalized Hilton Breakfast for two. They also offer guests access to shops, boutiques, restaurants, a river walk and other attractions. So what are you waiting for? You should take advantage of the Hilton Promenade at Branson Landing and the Hilton Branson Convention Center Hotel exclusive packages today.

SocialSpark Disclosure Badge

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Forced Lazy Exception in Hibernate

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This code can help you default Hibernate to lazy.

You can create this class:

public class ForcedNonLazyConfiguration extends Configuration {
private static final long serialVersionUID = 1L;
public ForcedNonLazyConfiguration() {}
public ForcedNonLazyConfiguration(SettingsFactory settingsFactory) { super(settingsFactory); }
/**
* @see org.hibernate.cfg.Configuration#add(org.dom4j.Document)
*/
@Override
protected void add(Document doc) throws MappingException {
doc.getRootElement().addAttribute(”default-lazy”, “false”);
super.add(doc);
}
}

When you create your session factory, you want to call this class:

methSessionFactory = new ForcedNonLazyConfiguration().configure(”methodology.hibernate.cfg.xml”)
.buildSessionFactory();

You can get more information about lazy loading at this website: Lazy Loading.

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Personalized Apple & BlackBerry Cases

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

This is a Sponsored Post written by me on behalf of Pexagon Technology. All opinions are 100% mine.

Iphone-plastic-az
Are you looking for some cool Apple and BlackBerry personal cases? You can now get some personalized Apple & BlackBerry cases which will greatly improve your phone’s look. It will also give you some added protection in case you drop it. You can get these $5.00 personalized cases in many different models and styles. The personalization is free as well. You will also get free shipping. You can get all of this for only five bucks which is a great deal. The Apple cases come in resilient soft silicone rubber and plastic. The BlackBerry cases will come in the silicone design for most of the popular models. There is no setup charges and nor order minimums. You can get the case, engrave a logo, engrave your name and have it shipped for only $5. You might want to engrave your school logo in case you lose it, or maybe give these out to your employees with your companies color. There are so many things you can do with this great deal. If you purchased this in the store, you might end up paying $20 without the personalization. So what are you waiting for? If you are looking for an Apple or BlackBerry personal case, you should checkout Pexagon today.
SocialSpark Disclosure Badge

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Accessing Radio Buttons in Struts

Posted by admin | Photoshop | Wednesday 13 January 2010 8:39 am

If you are trying to access radio button that has a compound name, you might have trouble accessing it using document.frmName.elementName. For example:

List<Item> estimateModels = ((UserContainer)container).getEstimationModels();

for(Item item:estimateModels)
{
%>
<html:radio name=”estimatorStart” property=”componentView.estimateMethod” styleId=”componentView.estimateMethod” value=”<%=item.getName()%>” /> <a href=”#” onclick=”window.open(’<%=DiamondApplicationProps.getProperty(”SERVERPATH”).trim()%>/Diamond/BrowseKnowledge.do?action=viewLibraryItemDetails&liId=<%=item.getId()%>’);” STYLE=”text-decoration:none;color:blue”><%=item.getName()%></a>
<br>
<%}
%>
<html:radio name=”estimatorStart” property=”componentView.estimateMethod” styleId=”componentView.estimateMethod” value=”Other” /> <a href=”#” STYLE=”text-decoration:none;color:blue” onmouseover=”this.style.cursor=’none’”>Other</a>

Having a list like this will give your radio buttons a name called: componentView.estimateMethod

To access these elements as radio buttons in Javascript, you should do something like this:

var radiobuttonitems=document.estimatorStart.elements['componentView.estimateMethod']

for (x=0;x<radiobuttonitems.length;x++ )
{
//alert(radiobuttonitems[x].checked)
if(radiobuttonitems[x].checked)
{
code here
}

[Post to Twitter] Tweet This Post  [Post to Plurk] Plurk This Post  [Post to Yahoo Buzz] Buzz This Post  [Post to Delicious] Delicious This Post  [Post to Digg] Digg This Post  [Post to Ping.fm] Ping This Post  [Post to Reddit] Reddit This Post  [Post to StumbleUpon] Stumble This Post 

Next Page »
atriumax wordpress theme