Tag: web development

Our website got a speed boost!

Never completely satisfied with their insane technological achievements, our engineers have been hard at work once again — this time they were tweaking the first thing you come in contact with when considering joining the Spin Rewriter family… our website!

The website got a thorough behind-the-scenes overhaul, with all sorts of technological advancements. There’s an even better utilization of CDNs (content delivery networks for optimized loading of images, styles and scripts from an array of servers around the world), better delivery of crucial elements for above-the-fold rendering so the pages on our website pop up even more quickly, and a significantly optimized approach to JavaScript elements that make our website even more user-friendly.

We were able to bring our website into the top 10% range of most “speedy” and responsive websites globally, and that’s including the tons of images and a video that always get loaded on the homepage.

Pretty cool! 😀

We just bought the SpinWriter.com domain name

So…… Here’s the thing, haha 😀

It seems like a decent chunk of our user-base (and especially potential user-base of people who have already heard about us a couple of times, but haven’t actually signed up just yet) thinks that the name of our product is…

Spin Writer.

Hmmm, sounds close enough, right? 😀

Anyway, we didn’t want anyone to get confused, or to have to stare at a blank page if they type the SpinWriter domain name into their web browser… so we just bought the LUDICROUSLY-EXPENSIVE SpinWriter.com domain name. 😀

And, of course, it now redirects everyone straight to www.SpinRewriter.com, haha 😉

Improved UI responsiveness

We’ve just finished working on some behind-the-scenes programming black-magic which is going to speed up the User Interface of Spin Rewriter quite significantly, which means it will improve the existing User Experience in its entirety.

We used some clever bits of caching in strategic places, and made sure that our servers are always working on the stuff with the highest priority to ensure your page loads are as instant as possible. Average article processing time is also down almost 12% which is quite a big deal considering how incredibly optimized most of our infrastructure already is.

We hope you like these new updates!

Even more API goodness! (Python)

Today I’ve got even more good news for all developers out there who are interested in integrating Spin Rewriter into their own software products!

As you probably know (that is, if you’re a developer), we’ve already gone a number of extra miles to make sure Spin Rewriter is super easy to integrate with other apps through our API.

Our API SDK library, written in PHP, is a work of coding art… and let’s not forget the famous integration of Spin Rewriter’s functionality with 3rd party applications in as little as 3 lines of code (literally!)… The response from the developers has been 100% positive since we rolled out the first version of our API, and we’re looking to keep it this way! 😉

Still, so far all our code samples and the API SDK library were only available in PHP… but today, this changes as well!

From now on, you will also find a 100% working Python API SDK library on the API page: http://www.SpinRewriter.com/api

The library itself is hosted on pypi.python.org — feel free to check it out right away! 🙂

Updated API code samples

We’ve just made things even easier for all developers out there who wish to integrate Spin Rewriter’s incredible power of ENL Semantic Spinning into their applications.

We’ve updated our (almost famous) working code samples, along with the brand-new Spin Rewriter API SDK (PHP Library & Examples), version 4.1.0.

With all this code ready to go, you can now integrate Spin Rewriter’s article spinning technology into your own software products with — literally! — 3 lines of code!

Of course our API developer documentation still tells you everything about all the features that are available through the API (which is all of them), and how to use them: http://www.SpinRewriter.com/api

Enjoy! 😉

Spin Rewriter API documentation

Okay, we just launched the Spin Rewriter API, and we thought – we should get developers on board as effortlessly as possible!

So we prepared a ton of stuff for all of you developers out there, and our efforts should enable you to integrate the Spin Rewriter API into your own apps in 10 minutes or so. Among other things you’ll find:

  • A thorough documentation of all API (HTTP POST) requests and API (JSON) responses. This will give you an idea about the inner workings of our API.
  • 100% functioning code samples (in PHP):
    – a script that will get the remaining number (quota) of API calls
    – a script that will spin your article and return the spun text (with spintax in place)
    – a script that will spin your article and return one of the possible unique variations
  • We prepared an actual official Spin Rewriter API SDK (Standard Development Kit) that’s also available in PHP. This kit comes with a number of examples, and allows you to spin your articles using the Spin Rewriter API with as little as 3 lines of code. 😉
  • A short “Q&A” section that should provide the answers to the most common questions.

You can find everything over at http://www.SpinRewriter.com/api 😀

We love developers just as much as Steve Ballmer (the Microsoft guy), and we want to make everything as easy as possible for you. Oh, and here’s a funny clip of him going just a little bit crazy. 😀

Don’t manually escape all your variables

Let’s start with something fairly simple, shall we?

I’ve seen way too many programmers escaping all $_POST and $_GET variables like this:

$name = mysql_real_escape_string($_POST['name']);
$email = mysql_real_escape_string($_POST['email']);
$password = mysql_real_escape_string($_POST['password']);

I suggest you simply use something like this from now on:

$post = array();
$get = array();
foreach ($_POST as $key => $value) {
	$post[$key] = escape_string($value);
}
foreach ($_GET as $key => $value) {
	$get[$key] = escape_string($value);
}
/**
 * escape given variable so we can use it in an SQL query
 * @param anything $value
 * @return anything $escaped_value
 */
function escape_string($value) {
	if (get_magic_quotes_gpc()) {
		$value = stripslashes($value);
	}	
	if (!is_numeric($value)) {
		$value = mysql_real_escape_string($value);
	}	
	return $value;
}

This way you can always use $post instead of $_POST and $get instead of $_GET if you need escaped values. And you can always access the original values in the original $_POST and $_GET variables. Pretty neat, huh? 🙂