Monday, September 28, 2009

Gillette Career Advantage Helps Job-Seekers

Did you know that a survey was conducted that indicates 84% of HR professionals agree that well-groomed employees will climb the corporate ladder faster than those that aren’t well groomed? This means that it is even more important to be well groomed than it is to have a firm handshake. Gillette has discussed this with career expert Mark Jeffries and GQ style correspondent Brett Fahlgren to get their input on giving advice to people who are looking for a job or looking to move up the corporate ladder. You can read their responses by visiting Gillette Career Advantage website. You might want to take the Gillette Career Advantage Quiz and view their Hire Guide to see what the HR professionals really think. The Gillette Career Advantage is about helping people get the tools and information that they need to compete in today’s job market. To get some tools to help you improve your grooming standards, you might want to visit the Gillette Resource Center. So what are you waiting for? If you want to learn about how to improve your self to compete in the job market, and how Gillette can help you achieve that, you want to checkout the Gillette’s website today.

Post?slot_id=56492&url=http%3a%2f%2fsocialspark

Read more...

Charter High Speed Sweepstakes

Image
Are you looking to win a new Camaro? Charter was giving away laptops, but now they are giving away a 2010 Camaro 2SS. You can get the fast Internet speed with Charter and try and win a fast Camaro. This contest is running from September 15 through November 26 so you better hurry and enter. You can also get a $100 gift card when you purchase three Charter services, or $50 gift card for 2 services or a $25 gift card when you purchase one service. You can visit the Camaro Sweepstakes website to get complete rules for the contest. You can even checkout Charter on Facebook and Charter on Twitter. Charter is one of the fastest Internet providers and can give you the best solution for all of your Internet needs. They are the better choice for DSL and for Dial-Up. They even include security software that can help you with your virus protection. You can quickly download music and watch videos in a flash. You can read their website to find out what other customers are saying. So what are you waiting for? You should check them out today to find out how they can help you with your Internet Speed.
Post?slot_id=56482&url=http%3a%2f%2fsocialspark

Read more...

Friday, September 18, 2009

Win a Brand new LG Bliss Phone

re you interested in winning a LG Bliss? All you need to do is to upload your ugly and you can win. The grand prize is a LG Bliss phone and the secondary prize is a $50 gift card so you can purchase your own bliss. There will be five grand prizes and fifty secondary prizes so you might have a good chance to win. You have to be 18 years old and only one entry per Facebook account can enter. You can submit photos or videos of any object that you deem ugly on your Facebook page. All you need to do is to checkout the LG Bliss Facebook Fan Page. You can browse through other people’s ugly stuff such as trashy trends, mutant machines, ugly wonders of nature, ugly-mobiles, and other ugly stuff. Some of the stuff that I saw was a hotdog with a pile of hair next to it. I also saw some pretty ugly clothes that people uploaded. Someone uploaded some ugly animals along with some scary masks as well. So what are you waiting for? If you want to win a new Bliss phone, you should enter this contest today. You might be the one that wins a brand new phone.

Post?slot_id=50692&url=http%3a%2f%2fsocialspark

Read more...

Wednesday, September 16, 2009

Win $1000 Visa Giftcard

http://www.creditloan.com/twcontest/twcontest_one.jpg
Have you ever heard of twitter? Do you have a twitter account? Twitter is a free service that allows you to update and keep in touch with people by answering the question, “What are you doing?” The good news is that Creditloans is now using Twitter. Creditloans can help you with personal loans, credit cards and even debt consolidation. They are having a contest where you could win a $1,000 Visa Gift Card. All you have to do is to follow CreditLoans on Twitter, and Tweet this message, “Just entered the CreditLoan Visa Giftcard Giveaway. You can win by following @creditloan and retweeting "http://creditloan.com/twcontest”. I’ve became a follower, and you should too. The only way you can win is by following @creditloan, and the winner will be announced when CreditLoan reaches 10,000 Twitter followers. You will want to keep in touch with CreditLoans using Twitter because they will be able to help you with your auto loans, bad credit loans, cash advances and they can even help you get your free credit report. You can request a loan online and get simple, fast and secure service. You can also get immediate approval. So what are you waiting for? You should visit them today and check out the contest rules for details. Good luck!
Post?slot_id=50122&url=http%3a%2f%2fsocialspark

Read more...

You Gotta See this Video Contest

Contest
Have you ever had laser surgery done on your eyes? If you have, you might want to checkout the iLASIK Video Contest. The Abbott Medical Optics Inc. is a global leader in laser vision correction and is interested to know how people's lives have been improved due to their laser surgery. All you need to do is to create a video showing how your life has improved because of the vision correction you received. You could win some cash and prizes. They have three categories to submit your video under which are, “My contacts are getting in the way of my good time” , “My favorite sport or activity would be so much cooler with better vision”, and “You should see life after the iLASIK Procedure”. The next thing you will want to do is to get your friends to vote on the video which is one of the key factors on who wins the sweepstakes. You could win a grand prize of $5,000 and there will be three first prize winners that will win a HDTV package valued at $2500. They also have three third prize winners which will win a Flip UltraHD camcorder valued at $199.99. So what are you waiting for? You should submit your video now to see if you can win. You can submit your video at this website: www.GottaSeeThisNow.com .
Post?slot_id=49972&url=http%3a%2f%2fsocialspark

Read more...

RecoveryDate

Header-logo-beta
Are you looking for a stable relationship with someone who doesn’t abuse drugs and alcohol? There is a new dating website dedicated to helping clean and sober people find solid relationships with other clean and sober people. The RecoveryDate website is an online dating service which can help you find the recovery friends that you are looking for. They have a search mechanism that will help you browse for men or woman from all ages to find the friend that you are looking for. You can create a free account and start the process of finding those clean and sober friends that you need. There are many reasons to join this website. This site provides a safe and understanding online dating environment. This website is for people looking to meet other people who are serious about their recovery. They strive to make sure members are clean and sober and to make it easy to check members in a snap. So what are you waiting for? If you are serious about being clean and sober and want to make sure that you get in a relationship with someone who is also clean and sober, you need to checkout this website now.
Post?slot_id=49662&url=http%3a%2f%2fsocialspark

Read more...

Saturday, September 12, 2009

New Job Training Portal

Do you have a dream job? Everybody has a job that they wish they had. If you are looking to get into a dream job, you should check out Elearning and see how they can help you get into your dream job. My dream job would be a computer game designer because I have some great ideas for computer games. Elearning can help you achieve your goals by creating and managing your personal development plans. You can create assignments, create your own courses, and create over 50 courses on business and technology skills. Business of all sizes can quickly build and deliver business applications to improve employee development. This software can give you a step up from other people in the work force because it gives you the ability to automate your development lifecycle from being pre-hire to retire. You can use their LearnCenter, WebRoom, PeopleCenter, FormFlow and Learn2.com online courses to improve your marketability. You can search through their course catalog, review accredited courses, look through the job profiles and create a free course. I wouldn't mind taking the finance course to learn more about finances. So what are you waiting for? If you want to improve your marketability, you should visit Elearning now to see how to get started.

Post?slot_id=45179&url=http%3a%2f%2fsocialspark

Read more...

Thursday, September 10, 2009

Groovy Exception Handling is Optional Step 11

In Groovy, you also have optional exception handling.

In Java you have:

try
{
Reader reader=new FileREader("/foo.txt")
}
catch(FileNotFoundException e)
{
System.out.println(e.printStackTrace());
}


In Groovy you can write code like this:

def reader=new FileReader("/foo.txt")

Groovy converts all checked exceptions to unchecked exceptions. This allows you control over catching an exception or not catching it.


Import statements are also optional.


Read more...

Wednesday, September 9, 2009

Party at the Hard Rock Hotel


There is a great new reality show that you can watch on TV, it is called the truTV's Rehab. They are having their premier on September 1^st . Everybody enjoys a good party, and this show is one of the hottest parties around. I have attended a hot party one time which was Mardi Gra in New Orleans. I have seen many party fouls but one that I saw was when a few people got in a fight on the subway after leaving the party. I am sure there will be a lot of party fouls on this show as well. If you like real life drama, you would love this show. I am sure people on this show would probably get in fights as well. This show is an example of 'Real Life', and it is not just another reality show. That is because parties like this happen all over the place. Now here is the good news. If you are looking to get involved with this party, you might want to enter by visiting www.getrehabready.com/index.html#link=ssprhbswp . You can win a trip to the Las Vegas Hard Rock Hotel & Casino Pool. That is the grand prize, and first prize is three months of a Hollywood Tan. So if you are looking for a great show, you need to checkout this sweepstakes.
Post?slot_id=46821&url=http%3a%2f%2fsocialspark

Read more...

Watch truTV with CAUTION!


When was the last time you had a physical reaction watching a television show? When you watch truTV video, you might get a physical reaction when watching. Some of the shows are so shocking to me that I start to cry. One truTV video that I watch which gives me a physical reaction is the “most shocking shows” which has episodes of really shocking things. On this show, people are fighting and getting crazy. It is pretty shocking to see some of the stuff that is going on. Some other shows that can be pretty crazy are the World's Wildest Vacation Videos and the The Smoking Gun videos. On the World's Wildest Vacation show you can see some crazy things that happen to people on their vacation like getting attacked by pounds of fish. On the Smoking Gun show you can see some other crazy stunts such as people getting drunk and making themselves a human flame thrower. So what are you waiting for? If you are looking for some great reality television, you need to checkout truTV today. This show is different from other reality show because these shows are actual reality and not just reality. You should check them out today.
Post?slot_id=46831&url=http%3a%2f%2fsocialspark

Read more...

Party Like a Rockstar!


Are you looking for a hot new show? There is a new show called REHAB which is having their season premiere September 1^st at 10pm. This is considered one of the hottest parties. The hottest party I ever went to was when I attended the 4^th of July party in San Francisco. One of the most embarrassing party fouls that I have ever witnessed was when I saw a friend of mine drop a pizza on the floor when he was drunk. I expect on this show there will be a lot of party fouls such as people getting crazy drunk. This show exemplifies 'Real Life' instead of Reality television because there are so many places in the world that has parties just like this show. If you are looking to party like a rock star at the Las Vegas Hard Rock Hotel & Casino Pool, you need to enter the sweepstakes for a chance to win a trip to Las Vegas. The grand prize is a trip for two to Las Vegas and a one year Hollywood tan. You can win three months of Hollywood Tans for the first prize if you enter the sweepstakes. You should check this sweepstakes out today. So what are you waiting for? Don't forget to watch the truTV's Rehab.
Post?slot_id=46811&url=http%3a%2f%2fsocialspark

Read more...

Groovy Optional Datatype Declaration (Duck Typing) Step 10

Java is a statically typed language. That means that each variable has to have a datatype when you declare it. Groovy, on the other hand, allows you to define variables without a datatype.


For example:

def name='Greg' means that the variable name is a String. The keyword def means that it doesn't much care what type the variable is.

You can write,

def y="Hello"
String z="Hello"
println w.class
println w.class==x.class


Go To Step 11

Read more...

Other Groovy Syntax Step 9

There are other important syntax changes in groovy that you need to know.

semicolins are optional

Braces are optional for example
println("hello world!")
can be written
println "Hello world!"

You still need parentheses if a method has no arguments.
def s="Hello"
println s.toUpperCase()

There are some ways around using braces such as using method pointers.
def pizza=new Pizza()
def deliver=pizza.&deliver()
deliver

A return statements is also optional.

You can write a method like this:

String getFullName(){
return "${firstName} ${lastName}"
}

String getFullName(){

"${firstName} ${lastName}"

}

In the last method, the return statement is implied.



Go To Step 10

Read more...

Join the FUN and FESTIVITIES in Branson

Read more...

Creating Form in Groovlet Step 8

In your WEB-INF folder, you should create a folder called groovy. In that folder, you should put your groovy files such as groovytest.groovy.

You can create HTML tags in your groovlet along with forms. In this example, I create a text field. The groovlet creates a form along with a submit button to allow the user to submit the form. After the form is submitted, the groovlet will grab the item that was submitted and print it to the screen.

html.h1("disk free (df -h)")


html.hr()

html.h1("IP Config (ifconfig)")

html.html
{


head
{
title 'Groovy Test'
}
body
{
h1 'Groovy page called'

form(method : 'GET' , action : 'groovytest.groovy')
{
Name: input(type : 'text' , name : 'name')


input(type : 'submit', value: 'Say Hi')
}

}
}


You can paste this code in your groovytest.groovy file to test it.


Go To Step 9

Read more...

Check Out the HP Home Store

I love it when my CPU first wakes up and bits of memory starts flowing through my system. I am a brand new Laptop, and I resemble an HP G60t series computer. I have a display with 16:9 ratio which is great for watching television. I have Windows Vista Home Basic on my computer with an Intel Pentium Dual-Core Processor. I also have 1 GB of memory and a 160GB hard drive. I also have a full-size numeric keypad and an integrated webcam. I love being a computer, but my biggest fear is getting a deadly virus that can wipe out my hard drive. I am pretty lucky that my user has a good virus protection. Did you know that HP has a $30 stackable site-wide coupon? You can get $30 off orders of $150 or greater at any HP Home Store. All you need to do is to use coupon code SV2132. This offer is valid through 10/31 or while supplies last. Restrictions and exclusions apply. So what are you waiting for? If you are looking to get your hands on a computer like me, you need to checkout HP right now and see their wide selection of computers.

Post?slot_id=45571&url=http%3a%2f%2fsocialspark

Read more...

Monday, September 7, 2009

Run Groovy Script Using Tomcat Step 7

You can get instructions on installing Tomcat from my prior posts.

You might want to run a groovy script with your Application Server. You can do this with Tomcat by doing the following:

In the GroovyHelloWorld example, you should create an antbuild directory, a config directory, a content directory, a build.xml file all at the root of your project. In the build.xml file, paste the following code:

build.xml


<project name="GroovyHelloWorld" default="war">
<!-- ============ Project Settings ====================================-->
<property environment="env" />
<property name="PROJECT_HOME" value="./" />
<property name="BUILD_DIR" value="${PROJECT_HOME}/antBuild" />
<property name="JAVA_BUILD_DIR" value="${BUILD_DIR}/classes" />
<property name="CONTENT_DIR" value="${PROJECT_HOME}/content" />
<property name="JAVA_SRC_DIR" value="${PROJECT_HOME}/src" />
<property name="CONFIG" value="${PROJECT_HOME}/config" />
<property name="LIB_DIR" value="${CONTENT_DIR}/WEB-INF/lib" />
<property name="HIBERNATE" value="${CONTENT_DIR}/WEB-INF" />

<path id="class.path">
<fileset dir="${LIB_DIR}">
<include name="*.jar"/>
</fileset>
</path>
<!-- =========== Clean ====================================================== -->
<target name="clean">
<delete dir="${BUILD_DIR}" />
<delete dir="${CONFIG}/WEB-INF" />
</target>

<!-- =========== Init System ================================================= -->
<target name="init" depends="clean">
<tstamp>
<format property="now" pattern="MMM d yyyy hh:mm aa" />
</tstamp>
<!-- Create build dir -->
<mkdir dir="${BUILD_DIR}" />
<mkdir dir="${JAVA_BUILD_DIR}" />
<mkdir dir="${CONFIG}/WEB-INF" />
</target>
<!-- =========== Compile Java Code =========================================== -->
<target name="compile" depends="init">
<echo>Compile</echo>
<javac debug="on" classpathref="class.path" debuglevel="lines,vars,source" optimize="on" destdir="${JAVA_BUILD_DIR}">
<src path="${JAVA_SRC_DIR}" />
</javac>
</target>
<!-- =========== Jar Process ================================================== -->
<target name="jar" depends="compile">
<!-- increase the build number -->
<buildnumber />
<echo>Create Jar</echo>
<jar jarfile="${JAVA_BUILD_DIR}/GroovyHelloWorld.jar">
<fileset dir="${JAVA_BUILD_DIR}">
<include name="com/**" />
</fileset>

</jar>

</target>


<!-- =========== War DEV ======================================================= -->
<target name="war" depends="jar">
<echo>${BUILD_ENV}</echo>
<war warfile="${BUILD_DIR}/GroovyHelloWorld.war" webxml="${CONTENT_DIR}/WEB-INF/web.xml">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="Struts 1">
<attribute name="Implementation-Title" value="GroovyHelloWorld" />
<attribute name="Implementation-Build" value="${build.number}" />
<attribute name="Implementation-Build-Date" value="${now}" />
<attribute name="Implementation-Vendor" value="" />
</section>
</manifest>

<!-- include everything in content directory -->
<fileset dir="${CONTENT_DIR}" />
<lib dir="${JAVA_BUILD_DIR}">
<include name="*.jar" />
</lib>
<lib dir="${LIB_DIR}">
<include name="*.jar"/>
</lib>
<classes dir="${BUILD_DIR}/classes">
<exclude name="*.war" />
</classes>

</war>
<copy file="${BUILD_DIR}/GroovyHelloWorld.war" todir="${env.CATALINA_HOME}/webapps" />
</target>
</project>



You also want to create a WEB-INF folder in your content directory and in the WEB-INF folder you should create a web.xml file.

web.xml


<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<description>GroovyHelloWorld</description>

<servlet>
<servlet-name>Groovy</servlet-name>
<servlet-class>groovy.servlet.GroovyServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Groovy</servlet-name>
<url-pattern>*.groovy</url-pattern>
</servlet-mapping>

<!-- Time Out -->
<session-config>
<session-timeout>60</session-timeout>
</session-config>

</web-app>



Make sure you have the groovy-all-1.6-RC-3.jar in your lib folder and move the lib folder under your WEB-INF folder under your content folder. (correct all library paths to point to the correct library in your eclipse build paths).

Create a groovy file called groovytest.groovy and put it under your content directory.

Paste this code in it:

println "Hello ${request.getParameter('name')}"

You should visit this URL and see the script execute on your Tomcat server.

http://localhost:8080/GroovyHelloWorld/groovytest.groovy?name=greg

Go To Step 8

Read more...

Wednesday, September 2, 2009

Laundry Bags

http://www.posylane.com/images/oh-mint-camo-laundry-bag-t290.gif

Are you looking to purchase some gifts for children or babies? There is now a website that offers unique and personalized gifts for women and kids. One cool gift is the laundry bag which has a mint draw string and a shoulder strap. It can coordinate with a towel wrap or duffle bag for a great gift set. You also might want to checkout their personalized kids backpacks. They have all sizes and some even for toddlers. This will be a great back to school gift. One cool item you can get from the Posy Lane website is the Stephen Joseph Quilted Backpack. This cool backpack is another great item for toddlers. It is made from 100% cotton, and is machine washable. These items are great for day care, kindergarten and more. So what are you waiting for? If you are looking for a great website for woman and children, you should checkout Posy Lane.

Read more...

Tuesday, September 1, 2009

Auto Resize TextAreas in Javascript

This function will automatically resize your text areas as the user types. Here is a struts example:

You will call the function with this code.

<html:textarea rows="2" name="start" property="principles" onkeyup="javascript:resizeTextArea(this)"/>

Here is the function that will resize your textboxes.


function resizeTextArea(txtBox)
{
nCols = txtBox.cols;
sVal = txtBox.value;
nVal = sVal.length;
nRowCnt = 1;
for (i=0;i<nVal;i++ )
{ if (sVal.charAt(i).charCodeAt(0) == 13) { nRowCnt +=1; } }
if (nRowCnt < (nVal / nCols)) { nRowCnt = 1 +(nVal / nCols); }
txtBox.rows = nRowCnt+1;
}

Read more...