Hacking Tweeterwall to Autovote

Okay you may have seen my previous post which used a shell script to just vote every 20 seconds. Very simple, but they have got wise and now put a stop to that!

Tweeterwall is at http://tweeterwall.mallplace.com and is like a popularity contest. I got all my friends or people i knew into top 20, then we went into the continental (NZ and Aussies) at which point i had this setup to vote for all the NZ people, this way no Aussies got through into the finals (except one!).
We finally got into the World competitions at which point I really just couldn’t be buggered with it anymore, its no fun (shorter comps for people with low attention spans would be nice!). And secondly, I would get really beaten down if i beat Miley Cyrus by my 2 daughters! Hence why im making this post.

I’m not the first person to do this, im fairly sure, im just publicizing it so others can mess with it. So when  you see those people in the top of the polls, who only have only 30 odd followers and are kicking your butt, its not because you arn’t a cool person. its just that there isnt many ways to prevent people from doing this kind of thing.

Ideally they need to impliment some sort of statistics which checks what IP addresses are hitting what users and look for things like ‘never having a break’ (real people sleep!) and browser versions being different, time being an exact rather than random amount etc.  All of which can be faked with a few more lines of code anyway, but it will still make it hard enough that people wont bother with it.

After that i looked at Grease monkey and a co-worker came up some code that worked nicely. All you had to do was install the firefox Grease Monkey addon, then load this script and leave the browser open in a tab!

Grab this code, modify the URLs at the top to reflect the one you need, and edit your username near the bottom.

/ ==UserScript==
// @name Vote Velofille
// @namespace http://tweeterwall.mallplace.com/tw/new-zealand/ms-twitter
// @description Vote for Velofille
// @include http://tweeterwall.mallplace.com/tw/new-zealand/ms-twitter
// ==/UserScript==
var $;

// Add jQuery
var GM_JQ = document.createElement(“script”);
GM_JQ.src = “http://code.jquery.com/jquery-latest.min.js”;
GM_JQ.type = “text/javascript”;

document.body.appendChild(GM_JQ);

// Check if jQuery’s loaded
var checker=setInterval(function(){
if(typeof ($ = unsafeWindow.jQuery) != “undefined”) {
clearInterval(checker);
setTimeout(‘window.location.reload()’,1260000);
voteforperson();
}
},100);

function voteforperson() {
$(‘#velofille div.tweeter-vote > a’).click();
console.log(‘velofille voted’);
}

Save the file as something.user.js then open it with firefox. the file name must end in .user.js for Grease monkey to Pick it up.

So have fun with that, and go forth and hackery!

Parent vs Child – Laws & Rights – funny

Unsure who the author is, got this in an email though 🙂

My son came home from school one day,
With a smirk upon his face.
He decided he was smart enough,
To put me in my place.

‘Guess what I learned in Civics Two,
that’s taught by Mr. Wright?
It’s all about the laws today,
The ‘Children’s Bill of Rights.’

It says I need not clean my room,
Don’t have to cut my hair
No one can tell me what to think,
Or speak, or what to wear.

I have freedom from religion,
And regardless what you say,
I don’t have to bow my head,
And I sure don’t have to pray.

I can wear earrings if I want,
And pierce my tongue & nose.
I can read & watch just what I like,
Get tattoos from head to toe.

And if you ever spank me,
I’ll charge you with a crime.
I’ll back up all my charges,
With the marks on my behind.

Don’t you ever touch me,
My body’s only for my use,
Not for your hugs and kisses,
that’s just more child abuse.

Don’t preach about your morals,
Like your Mum did to you.
That’s nothing more than mind control,
And it’s illegal too!

Mum, I have these children’s rights,
So you can’t influence me,
Or I’ll call Children’s Services Division,
Better known
As ‘c.y.f.s’

Mum’s Reply and Thoughts

Of course my first instinct was
To toss him out the door.
But the chance to teach him a lesson
Made me think a little more.

I mulled it over carefully,
I couldn’t let this go.
A smile crept upon my face,
he’s messing with a pro.

Next day I took him shopping
At the local Goodwill Store..
I told him, ‘Pick out all you want,
there’s shirts & pants galore.

I’ve called and checked with c.y.f.s. …
Who said they didn’t care
If I bought you K-Mart shoes
Instead of Nike Airs.

I’ve canceled that appointment
To take your driver’s test.
The C.y.f.s. Is unconcerned
So I’ll decide what’s best.’

I said ‘No time to stop and eat,
Or pick up stuff to munch.
And tomorrow you can start to learn
To make your own ‘efen’ lunch.

Just save the raging appetite,
And wait till dinner time.
We’re having liver and onions,
A favorite dish of mine.’

He asked ‘Can I please rent a movie,
To watch on my VCR?’
‘Sorry, but I sold your TV,
For new tires on my car.
I also rented out your room,
You’ll take the couch instead.
The C.y.f.s. Requires
Just a roof over your head.
Your clothing won’t be trendy now,
I’ll choose what we eat.
That allowance that you used to get,
Will buy me something neat.

‘m selling off your jet ski,
Dirt-bike & roller blades.
Check out the ‘Parents Bill of Rights’,
It’s in effect today!

Hey hot shot, are you crying,
Why are you on your knees?
Are you asking God to help you out,
Instead of C.y.f.s..?’

Custom WordPress Pages using Templates

I was migrating a fairly static website to a wordpress recently when i had to create some dynamic custom pages using PHP.

Information seemed hard to find, though perhaps it was just my lack of knowledge in search terms for it?

<?php include(’wp-blog-header.php’); ?>
<?php get_header(); ?>
<!– Put here your personal contents in HTML or PHP –>

<!– End personal contents –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Either way, this is the general gist

Easy yes? good! Thanks!