Hide Trackbacks 1.1.1
Hide Trackbacks is a WordPress plugin that hides pingbacks and trackbacks from your website comments.
I’ve updated the plugin to indicate it works correctly with WordPress 4.9 and earlier.
Hide Trackbacks is a WordPress plugin that hides pingbacks and trackbacks from your website comments.
I’ve updated the plugin to indicate it works correctly with WordPress 4.9 and earlier.
Embedding a ted.com video by pasting the URL into a WordPress post means the whole video loads (33mb!) on pageload! Great videos, bad service.
Ubuntu 17.10 comes with python3 3.6.3 installed by default but not pip and pipenv. We can install install pip systemwide and pipenv into the user local bin so we can use all the convenience when working with our python projects:
wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py sudo python3 /tmp/get-pip.py pip3 install --user pipenv echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile source ~/.profile
Sources: Installing Python 3 on Linux; pip installation; Installing pipenv; How to permanently set PATH on Linux
Update 9 Nov 2017: replaced curl with wget, thanks Peter
After quickstarting a Lektor site, a next obvious thing to do is to add a feed to the site’s blog. Fortunately, Lektor has a growing ecosystem of plugins, one of them creates atom feeds.
The plugin to install is lektor-atom, and is installed via the terminal:
lektor add plugin lektor-atom lektor build
This adds a reference to the myproject.lektorproject file with the plugin and installs the plugin into the lektor pipeline.
However, notice that after building the site no feed is generated! This is because no feeds have been setup yet.
Create a configs/atom.ini containing the following lines (full documentation)
[blog] name = My Blog feed source_path = /blog item_model = blog-post url_path = /blog/feed.xml
Change the url_path to suit your preferences. Trying to build now would result in an error: E blog/feed.xml (RuntimeError: To use absolute URLs you need to configure the URL in the project config.)
To resolve the build process myproject.lektorproject must be updated with two lines within the project section to indicate the site’s live URL and an absolute URL style:
[project] name = My Project url_style = absolute url = https://myproject.com [packages] lektor-atom = 0.2
The site can then build and the resulting feed can be accesssed from https://myproject.com/blog/feed.xml.
Just came across an interesting perspective on frameworks by Timothy Perrett:
It is imperative to understand that the need for composability in our software tools is an absolute requirement. If we as an industry have any hope of not repeating ourselves time and time again, we have to change our ways.
I definately agree that we’re doomed to keep making the same mistakes if we’re building on top of frameworks and then switching them out for a different one, which I hadn’t considered before.
Two technologies that I have can really recommend you try out – Lektor and Cloud9 – can be used together to start a static site or blog in a matter of minutes. If you want to try out the power of Lektor without leaving a trace on your machine then follow this quick setup.
I wrote this little script and thought it might be useful for others. WorkLog.py allows you to keep track of what you are working on by writing a timestamped message to a CSV file.
It turns out it helps me stay in tack during a long day of work.
If your website has mod_rewrite enabled but the URL’s generated by SilverStripe still contain ‘index.php’ then SilverStripe is unable to detect mod_rewrite. Adding the following line to /mysite/_config.php
will address the issue (Thanks DsX):
Director::setBaseURL('/'); // fixed index.php in the URL's
This morning I integrated our PowerShell processes into FogBugz by writing a small module that submits occurrences of all errors to BugzScout. You might want to do something similar so I did this write-up.
Broadly it works similar to BugzScoutLogWriter that I developed previously for integration with SilverStripe CMS. In this case however, we need to do the following things:
I’ve published the code in a Gist for you a have a look. I include the function in every script I use.
Hide Trackbacks is a WordPress plugin that hides pingbacks and trackbacks from your website comments.
I’ve updated the plugin to indicate it works correctly with WordPress 4.2.