You can always tell when it is the GCSE results time of the year for teenagers. The media goes into overdrive about how wonderful it is more people have passed their exams than before and the drivel that goes along with the story that dominates for a few weeks. My issue with this comes in the fact that I’m pretty sure more teenagers are ‘passing’ exams not due to gaining intellect but rather the dumbing down of exam papers.
In this day and age it seems to be more important that we don’t offend the pupils that aren’t doing too well rather than pushing them harder to improve themselves. When I was younger I wouldn’t stop attempting to do something until I’d learned to do it successfully. That is part of life, part of learning and part of what growing up is about.
For the majority, it seems more in this day and age that the mindset of a pupil is completely different to that of when I was their age. I’m not one in a million and I’m not exceptionally intelligent, but that never stopped me trying to better myself and learn more. It sadly seems now that most of the kids in school are happy just stay at the level they are at because it is a lot more comfortable that way. Of course, that’s comfortable in the sense of growing up and ending up on the dole living off the tax-payer.
This PHP script will post an update to Twitter using OAuth. You can download the complete script and library here.
#!/usr/bin/php
<?php// Twitter Status Update via Oauth// By Scott Wilcox (v0.1) http://dor.ky//// This script is a basic script that will post an update to // Twitter using OAuth. (Basic Auth is being deprecated at // the moment). You'll need to chmod +x this to run CLI.// This script uses the fantastic twitter-async library// which was created by jmathai. You can get the latest news // and updates for that over at Github using the following url // http://github.com/jmathai/twitter-asyncrequire "lib/EpiCurl.php";
require "lib/EpiOAuth.php";
require "lib/EpiTwitter.php";
// You need to fetch these OAuth tokens and save them for use// within the OAuth calls. To get these values you will need// to create a new 'app' at http://dev.twitter.com/apps//// You can find CONSUMER_KEY and CONSUMER_SECRET on your apps// 'Application Details' page, and you can find USER_TOKEN and// USER_SECRET on the 'My Access Token' page.define(CONSUMER_KEY,"Replace with your Consumer Key");
define(CONSUMER_SECRET,"Replace with your Consumer Secret");
define(USER_TOKEN,"Replace with 'My Access Token' Oauth token");
define(USER_SECRET,"Replace with 'My Access Token' Oauth secret");
// If there was a command line argument passed, we can use that as// the status update text, else print an error outif ($_SERVER["argv"][1]) {
// Format text as utf8 and chomp at 140 chars$text = utf8_encode(substr($_SERVER["argv"][1],0,140));
$twitterObj = new EpiTwitter(CONSUMER_KEY,CONSUMER_SECRET,USER_TOKEN,USER_SECRET);
$x = $twitterObj->post_statusesUpdate(array('status' => $text));
if ($x->id) {
echo "Tweet Posted: ".$x->id."n";
} else {
echo "Error Posting Tweetn";
} } else {
echo "Usage: ./twitter.php 'My status update goes here'n";
}?>Kid's are not getting smarter, exams are getting dumber.
Quickly updating your Twitter status using a command line script using a PHP script.
Its about time we started providing better services to our local residents.
Get quick information from Apple with your serial number.
Getting the data you want easily and quickly.