If you're tired of refreshing this page every day like a d-bag, you should probably subscribe to the RSS feed.
One of Nickycakes’ first projects making cash online started a little less than a year ago and was not much more than an autoblog system that would post articles to wordpress every day. This thing was the worst piece of memory hogging spaghetti code you’ve ever seen and eventually caused The Great Nickycakes.com Blackout of 2007. Since it was kinda running on autopilot and the Cakes had so much other crap going on that was making more than the $1 a day or so in adsense revenue that this little script was getting, he just let the thing die and forgot about it. Having learned quite a bit since then, Nicky has realized that there were many things that were done bass-ackwards that could have been simplified. One of them was the complete mess of code that was used to make posts to wordpress. The script actually ran as a wordpress plugin and used WP’s own internal functions to make the posts, which is completely retarded and requires that the script be running on the same machine, which will surely cause you problems if you’re running 100 poorly written memory/cpu hogging scripts on the same shared hosting.
Now armed with a little more knowledge of wordpress and a better general understanding of how to do things properly, the obvious solution to this problem is by posting to wordpress with it’s built in XMLRPC server. Wordpress lets you submit a simple request, formatted in XML with the login and post details, and your post magically appears on the blog. This would prove extremely useful if you were to create an army of blogs on different shared hosting accounts and had them all controlled by a central server feeding them the post details.
Anyway, if you were ever inclined to build such a system, or have some other project in mind that needed to send posts to wordpress quickly and easily, here’s a simple 15 line php function for you to do just that:
function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$categories=array(1)){
$categories = implode(",", $categories);
$XML = "<title>$title</title>".
"<category>$categories</category>".
$body;
$params = array('','',$username,$password,$XML,1);
$request = xmlrpc_encode_request('blogger.newPost',$params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_URL, $rpcurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 1);
curl_exec($ch);
curl_close($ch);
}
This function requires that you have the php xmlrpc and curl modules enabled in php.ini. $title, $body, $username, and $password are pretty self-explanatory. $rpcurl is the XMLRPC server address for your wp install. It’s generally located at http://www.yourblog.com/xmlrpc.php . $categories is an array of the categories you want the post filed under, and defaults to category 1 which is Uncategorized in the default wordpress installation. You can most likely use either category numbers or names in this array.
Enjoy.
Published by nickycakes //
Posted on February 1st, 2008 in Automation
Ok folks, here are some of Nickycakes’ favorite firefox plugins for doin internet marketing webdesign coding affiliate type stuff.
Search Status - http://www.quirk.biz/searchstatus/
This plugin does a few cool things. It shows you the Google Pagewank and Alexa rank of the current page, and by right clicking on the icon it puts at the bottom of your browser, you can opt to have it highlight no-follow links, which is invaluable on the fly sometimes. Especially useful when doing link building and looking for good places to drop your bombs.
Web Developer - http://chrispederick.com/work/web-developer/
Man, when Nickycakes started using this plugin, things changed man…things changed. Want to see detailed information about every form on a page? No prob. Want to look at/clear/whatever cookies for the current page only? No prob. View divs on a page by mousing over them? No prob. Disable images, view meta tags, view javascript, edit the page html, validate pretty much anything, whatever. No prob. This tool is especially useful for writing scraper scripts due to the form display functionality.
Firebug - http://www.getfirebug.com/
Awesome for showing exactly how fast your page is loading and what’s causing it to load slowly, etc. Probably a bunch of other functions the Cakes hasn’t bothered looking at too.
RefControl - http://www.stardrifter.org/refcontrol/
Fake your referer url. Fun for the whole family.
Adsense Notifier - https://addons.mozilla.org/en-US/firefox/addon/500
Saves you a trip to the adsense website.
Published by nickycakes //

Today, Nickycakes is releasing Linky. Linky lets you input an unlimited number of anchor texts and urls, and generate random interlinking between all the urls. No links will be reciprocal, there are no self-links, and no links are displayed twice on the same page. There are an even number of incoming and outgoing links to each page.
Once the script has generated a database of the links, you put a simple code on each of your pages that will automatically detect what page it’s on and display the proper outgoing links.
Anyway, there’s a readme file in the zip. Hope someone finds it useful. Nickycakes sure did. If it doesn’t work properly, just shoot the Cakes an email.
Download: linky.zip
Published by nickycakes //
Almost exactly one year ago, Eli from BluehatSEO made a post on MadLib sites. The basic idea behind a MadLib site is this: You make a script that will randomly (or not so randomly) generate pages from a database of information by inserting different pieces of information into each post to make them unique. For example: Today I saw *girlsname* go into *storename* and buy *productname*. You can generate thousands and thousands of unique pages this way with very little effort and get indexed by google without duplicate content penalty if you do a decent job.
Well, the problem is, not everyone has the ability to code their own madlib system, and not everyone owns large databases to use for the process. That’s where Datapresser comes in.
About 6 months ago, Rob at Seocracy started working on Datapresser. It’s a comprehensive madlib blog generating package. All you have to do is enter your madlib text and title using their formatting system using their huge databases of information, and it will generate thousands of unique content pages, in wordpress format, for you to slap on your wordpress blog and let ‘er go.
Saturday morning, Rob launched Datapresser.com with a fee of a modest $45 a month and 60 available signups. The 60 signups were gone in under 30 minutes. $2700 in 30 minutes ain’t bad, to be honest. If you weren’t able to get an account on Saturday, don’t worry. Rob is working on getting more server’s up to be able to handle more users, so there will still be opportunity to get your spot.
Anyway, Nickycakes is extremely grateful to have been given an account to check out Datapresser and see what it’s all about. At first blush, it’s great. The interface is clean, which the Cakes loves. The help file is…..well…helpful. And it works damn quick. There are 3 output formats for the data, including 2 for wordpress, and one is text output for use with pretty much anything.
If you don’t understand the scope of a tool like this, think about it a little harder. With Datapresser, or any madlib script, you can automatically generate thousands of unique articles for ANY niche you can think of. Go to your favorite affiliate network, open up the offers, and pick one. Want to make a site with thousands of keyword content rich pages related to that offer? Want to do it in under an hour? No prob!
So anyway, if you’re interested, keep checking seocracy and datapresser for updates on when the next batch of signups will be available.
And thanks again Rob. Great tool.
Published by nickycakes //
For a recent project, Nickycakes had to code a Wikipedia scraper. Here’s a simplified version of the function for you to use if you want. This code requires a few library files, which are included in LIB_http.zip.
Enjoy:
include('LIB_http.php');
include('LIB_parse.php');
function wikiscrape($topic){
$target = "http://en.wikipedia.org/wiki/".urlencode($topic);
$results = http_get($target,"");
$paragraphs = parse_array($results['FILE'],"<p>","</p>",EXCL);
foreach($paragraphs as $paragraph){
$paragraph = strip_tags($paragraph);
$paragraph = preg_replace("[\[.*\]]","",$paragraph);
if ($paragraph){
$final = $final . $paragraph . "\n\n";
}
}
return $final;
}
Published by nickycakes //