We announced a whole new set of Social Measurement reports in Google Analytics today!

Capturing The Value Of Social Media Using Google Analytics
Tuesday, March 20, 2012 | 6:55 AM

Labels: Features, Social

Measuring the value of social media has been a challenge for marketers. And with good reason: it’s hard to understand exactly what is happening in an environment where activity occurs both on and off your website. Since social media is often an upper funnel player in a shopper’s journey, it’s not always easy to determine which social channels actually drive value for your business and which tactics are most effective.
Continue reading

screen scraping

so what’s the best way to screen scrape?

the site i want to scrape doesn’t offer any sort of API or XML tags,

should i do this in php or asp?

i’ll be self teaching myself on how to do it as i don’t have much experience writing web apps…

the page i want to scrape:

section of the code i want to extract…
i want to extract the scores and store them in variables to perform some math functions on them….
Continue reading

Suing my web host.

jaguarpc sucks a fat dick

They "accidentally" delete 12 sites after I adjust my hosting plan (4 year customer).

Down 4 days and counting. Can’t find the SQL databases that run the damned things.

$2k lost and counting. Lots of angry customers.

Ever sue a host?

good luck. Their ToS/EULA will probably absolve them of any liability unless you can prove intent. (next to impossible without written threats)

Continue reading

Revised PHP Question

Okay, I created this quick form, and php code to generate a total. Where I am running into an issue is if the $annual_income is lower than the $poverty_level I don;t get a result. Is there a way to set the php so if it is lower than $poverty_level (16755) than the script will generate zero?

<html>
<body>
<form action="#" method="POST">

    Annual Income: 
        <input type=text name=Annual_Income><br>
    Are you married? 
        <select name="Spouse">
              <option value="">Select...</option>
              <option value="1">Yes</option>
              <option value="0">No</option>
        </select>
        <br>
    How many children do you have?
        <input type=text name=Children><br>

<input type=submit value="Calculate my payments!">
</form>

<?php 
$annual_income = $_POST["Annual_Income"];
$spouse = $_POST["Spouse"];
$children = $_POST["Children"];
$family_size = (1 + $spouse + $children);

$poverty_status[0]="16755";
$poverty_status[1]="16755";
$poverty_status[2]="22695";
$poverty_status[3]="28635";
$poverty_status[4]="34575";
$poverty_status[5]="40515";
$poverty_status[6]="46455";
$poverty_status[7]="52395";
$poverty_status[8]="58335";
$poverty_status[9]="64275";
$poverty_status[10]="70215";
$poverty_status[11]="76155";
$poverty_status[12]="82095";
$poverty_status[13]="88035";
$poverty_status[14]="93975";
$poverty_status[15]="99915";
$poverty_status[16]="105855";
$poverty_status[17]="111795";
$poverty_status[18]="117735";
$poverty_status[19]="123675";
$poverty_status[20]="129615";

$poverty_level = ($poverty_status[$family_size]);

$annual_payment = ($annual_income - $poverty_level);
$monthly_payment = (($annual_payment / 12) * .1 );
?>
<?php 
echo "Your estimated annual payment is";
setlocale(LC_MONETARY, 'en_US');
echo money_format ('%.2n',$annual_payment) . "n";
?>
<br>
<?php 
echo "Your estimated monthly payment is";
setlocale(LC_MONETARY, 'en_US');
echo money_format ('%.2n',$monthly_payment) . "n";
?>
</body>
</html>

Continue reading