Kythin's Rants Kythin rants about all kinds of things, but mainly website development, SEO and PC Gaming.

6Jan/132

Minor update to Wordspinner, now works with YOAST seo plugin titles

Yay! YOAST is pretty good, I like how it shows google previews of your pages.

 

http://wordpress.org/extend/plugins/wordspinner/

21Jul/120

I just want to play batman. Why won’t you let me play batman?

Wanted to replay Arkham City after seeing the new Batman today. This is the crap I've had to do just to reinstall the game I own and have already finished.

4Apr/120

WordSpinner 2.6 Released

A few long-awaited features have finally made it into WordSpinner lately, here's a quick rundown of the updates.

21Mar/120

MySQL timestamp syntax quick reference

Quick code post with a really useful little function, all it does it return a MySQL timestamp value of 'now'. It's useful if you haven't already committed the format to memory, which sadly I have already... but still, it's good to have in a common function library.



function mysqlnow() {
  return date("Y-m-d H:i:s");  
}

Filed under: Code Snippets No Comments
1Mar/120

Force SSL for a php page

Another quick code post, this function when run will redirect the current page to the https equivalent (if it isn't already):

 

 



function forceSSL() {

  if($_SERVER["HTTPS"] != "on") {
     header("HTTP/1.1 301 Moved Permanently");
     header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
     exit();
  }  
  
}

Filed under: Code Snippets No Comments
27Feb/121

Use Dropbox for your Shopping List on your phone

1. Save a regular old text file (.txt) into your public folder in dropbox, call it Shoppinglist.txt or something like that you will remember. Then right click it and go to Dropbox -> get Public Link (if you don't have the right click menu, you can also get this via logging into the dropbox site).

2. Email yourself the link and open it on your phone.

3. Save it as a bookmark!

Now, changing or adding to your shopping list is as easy as typing a few lines into a text file, and it'll magically be updated the next time you're at the shops. For bonus points, put it inside a shared folder with your housemates or partner also having write access, and they can tell you what to buy!

This has been a public service announcement thanks to Dropbox.com - the most awesome 'it just works' application ever.

Filed under: Tutorials 1 Comment