Successfully pulled in Laravel’s Ioc Container package for use with my project. I love it when things just work. BooYa!
Tag: Programming
I ain’t happy unless I’m tinkering. Re-installing Windows 7 then gonna use vagrant for dev stuff.
MKV, as in the audio/video container format, are also known as Matroska Video files. Matroska coming from the Russian word ‘matryoshka’, meaning ‘nesting dolls’.
The more I see how JavaScript gets used in websites I visit, the more I despair. Like when extra content gets loaded in, I click a link in that extra content to go to another page – so far, fine. But then if I click the back button in browser it won’t jump to where I was previously because that content isn’t there any more – not until I scroll down or click the ‘load more’ link at least. I dare say there is a responsible way to approach this. Here’s my idea – just paginate the results and provide page links. Zany idea I know.
Internal server error fixed from the train on my phone. Boom! Oh WordPress how you test me.
Starting to learn VIM
Rolling out live changes at 12:20am – never a good idea.
Just had an email from a recruiter about some job somewhere. It noted the skills required and said also: “perhaps most importantly, you will have dropped support for IE7”. Like that’s a skill to have.
I finally did it
Update: I’m now using WordPress again.
Ever since I can remember having my own website, for the most part, I have used WordPress. I’ve loved using it and will always recommend it to clients as being the best way for them to publish online. Of course, with me being a web developer I’m always wanting to tinker. There isn’t a day that goes by without me messing about with something on my site.A concept that I learned about, about six months ago or so, was that of the indieweb. Now this isn’t some new platform or anything like that. Rather it’s a set of principles, a way to approach publish on the web. In fact it’s the oldest method of publishing on the web: publishing on your own website.WordPress is great for publishing. But as my needs became more complex, and needing to make more fine grained choices when publishling different sorts of posts, I found my self neglecting to post notes/thoughts because the process of ticking the correct meta values and category was a bit combersome. The process adding a quick note or thought, like that of jotting something in a notepad, should be quick and effortless.So what I wanted was a stripped back UI from which to post notes, as well as other kinds of posts. Because of this I decided to go with a framework as opposed to a CMS platform, choosing ultimately to go with Laravel.The process is still on going as I still need to configure 301 redirects from my old site. But at least I am now publishing from my new site, and new domain, and it’s never been easier to do.
Owl Carousel has renewed my faith in using them. Very easy to use. Thats not to say I think all websites should have one though.
WordPress “Must Use” Plugins Directory
The Issue
I wanted to build a site with some custom post types, taxonomies and the like. But what if somebody who has used my theme decided to try another theme later on? What guarantee do they have that those custom post types will be recognized by a future theme?
None — that’s what.
WordPress obviously has its plugin directory, which is designed for adding in pieces of functionality that should span across themes. But what if these are essential to the working of the site due to custom post types, taxonomies or shortcodes?
Either it can be a plugin — which could be accidentally deactivated, or added to the theme’s functions.php — which would need copying over to any future theme.
A Hidden Gem of a Solution
Well it turns out that there is a third option — a way for WordPress to auto load essential plugins irregardless of the theme being used. Simply by creating a directory in the ‘wp-content’ folder called ‘mu-plugins’ — which stands for “must use plugins” — and adding plugins as you would into the regular plugins folder, they will be auto loaded with any theme and just work.
These ‘must use’ plugins will then be viewable in the plugin admin page, in a new option called ‘must use’ — grouped with the other plugin page navigation items, ‘All’, ‘Active’ and ‘Inactive’.
‘Must use’ plugins can’t be deactivated in the admin — creating a nice separation of essential plugins for a particular user.
Thanks to Justin Tadlock for this piece of info.
$name = in_array('pears', $fruits) ? 'Fruit Basket' : 'Schmoigal';