Plausible Thought http://plausiblethought.net/blog Kirby Sun, 07 Apr 2013 22:07:03 +0000 A blog that focuses around the topics of web design, development and technology. Creating new blog posts with an Alfred Workflow http://plausiblethought.net/blog/creating-new-blog-posts-with-an-alfred-workflow http://plausiblethought.net/blog/creating-new-blog-posts-with-an-alfred-workflow Mon, 01 Apr 2013 14:55:00 +0000 post.txt You can download the Workflow here. Note: You'll need to modify the blog path in the bash script. Hopefully you find it useful. I'm no bash expert, so I'd to love to hear feedback or suggestions. I'm on Twitter: @marcjenkins. Update (03/04/13): Matthew Guay has tweaked the Workflow above and added some extra features. Check out his post: Publish to Kirby from Alfred.]]> How to add favicons to bookmarklets in Chrome http://plausiblethought.net/blog/how-to-add-favicons-to-bookmarkets-in-chrome http://plausiblethought.net/blog/how-to-add-favicons-to-bookmarkets-in-chrome Sun, 31 Mar 2013 09:21:41 +0000 Bookmark Manager. Now export your bookmarks by clicking Organize > Export Bookmarks to HTML File. Save the file to your Desktop. At this point, it will be worth backing up your exported bookmarks file. Just in case. Next, open the file in your text editor of choice. In the file you'll see a list of links. Notice that all links are a hrefs but not all have an ICON attribute. All you need to do is copy the relevant ICON attribute to the correct bookmarklet (i.e. instapaper.com to the Read Later bookmarklet). Then, once you've gone through them all, save the file and head back to Chrome to import it: Organize > Import Bookmarks from File. That's it, your bookmarklets will now have favicons!]]> Stop "fixing" WebKit font smoothing http://plausiblethought.net/blog/stop-fixing-webkit-font-smoothing http://plausiblethought.net/blog/stop-fixing-webkit-font-smoothing Tue, 20 Nov 2012 21:12:00 +0000 Drop down Terminal with iTerm2 http://plausiblethought.net/blog/drop-down-terminal-with-iterm2 http://plausiblethought.net/blog/drop-down-terminal-with-iterm2 Thu, 15 Nov 2012 20:42:00 +0000 A new microsoft.com http://plausiblethought.net/blog/a-new-microsoft-dot-com http://plausiblethought.net/blog/a-new-microsoft-dot-com Wed, 03 Oct 2012 21:13:00 +0000 .htaccess in multiple Wordpress environments http://plausiblethought.net/blog/handling-htaccess-in-multiple-wordpress-environments http://plausiblethought.net/blog/handling-htaccess-in-multiple-wordpress-environments Mon, 01 Oct 2012 21:32:00 +0000 RewriteRule . - [E=rwbase:/] RewriteCond %{HTTP_HOST} localhost$ RewriteRule . - [E=rwbase:plausiblethought/] RewriteCond %{HTTP_HOST} staging.plausiblethought.co.uk$ RewriteRule . - [E=rwbase:plausiblethought/] RewriteEngine On RewriteBase /%{ENV:rwbase} RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /%{ENV:rwbase}index.php [L] </IfModule> It's a clever snippet of code which works by setting a variable called rwbase depending on the URL. First, it checks to see if it is on 'localhost' and adds the folder 'plausiblethought'. It does the same for 'staging.plausiblethought.co.uk'. If your site is in the root of your staging domain, you can just delete the relevant lines. We don't need to add anything for the production environment because it's not in a subfolder. Using multiple htaccess files and symbolic links This solution is a bit more fussy and requires SSH access to your server. First, delete the .htaccess file (if there is one). Then create a htaccess file for each environment and name it accordingly e.g. .htaccess-local, .htaccess-staging and .htaccess-production. You'll need to use the default htaccess code and add the relevant folder paths. Next is the fun bit where we create a symbolic link. A symbolic link is a fancy term for creating a reference to another file. To do this, open Terminal and cd to the correct directory. Then type the following: ln -s .htaccess-local .htaccess ln -s is the magic we need to create the symbolic link. .htaccess-local is the file we created above and .htaccess is the file it creates. You should now see a .htaccess file on your local environment with the same contents as .htaccess-local. You'll then need to repeat this process using SSH on your remote server. Again, cd to the correct directory and then type: ln -s .htaccess-production .htaccess That's it. I'd love to hear your thoughts on how you work with Wordpress on multiple environments. I'm on Twitter: @marcjenkins.]]> Microsoft's new logo http://plausiblethought.net/blog/microsofts-new-logo http://plausiblethought.net/blog/microsofts-new-logo Sat, 25 Aug 2012 13:10:00 +0000 Scratch: a quick-input notepad for iPhone http://plausiblethought.net/blog/scratch-quick-input-notepad-for-iphone http://plausiblethought.net/blog/scratch-quick-input-notepad-for-iphone Sat, 21 Jul 2012 22:04:00 +0000 Code Club: Inspire kids to learn to code http://plausiblethought.net/blog/inspire-kids-to-learn-code http://plausiblethought.net/blog/inspire-kids-to-learn-code Tue, 17 Jul 2012 21:54:00 +0000 Why you should pay too much for things http://plausiblethought.net/blog/why-you-should-pay-too-much http://plausiblethought.net/blog/why-you-should-pay-too-much Sat, 14 Jul 2012 10:34:00 +0000 Testing websites using the iOS Simulator http://plausiblethought.net/blog/testing-websites-using-ios-simulator http://plausiblethought.net/blog/testing-websites-using-ios-simulator Sat, 11 Feb 2012 20:11:00 +0000 Device > iPad. It's that easy!]]> Huffduffing http://plausiblethought.net/blog/huffduffing http://plausiblethought.net/blog/huffduffing Mon, 23 Jan 2012 19:40:00 +0000 Helvetica http://plausiblethought.net/blog/helvetica http://plausiblethought.net/blog/helvetica Sun, 18 Dec 2011 11:13:00 +0000 Hello world http://plausiblethought.net/blog/hello-world http://plausiblethought.net/blog/hello-world Sat, 17 Dec 2011 20:12:00 +0000