Easy Digital Downloads Receipt Bcc

Earlier this evening Pippin, author of Easy Digital Downloads tweeted about an idea for a simple little plugin to extend EDD’s customer receipts, sending blind copies to email addresses specified in the admin.

Interested to have a go I opened up my code editor and got cracking. After a while I had myself a working plugin which is now available on github!

Cheers guys!

A small tool to help look after your eyes

Both my parents have to wear glasses and a number of my friends do too and while it’s recommended that we all take a 5 minute break for every hour we work at a computer very few of us really do.

There are a bunch of mac apps out there that do the job, one that comes to mind is Time Out. While it does the job it did get a little annoying after a month or so. Instead I decided to use my screens brightness to dictate when I should take a break.

After some searching I found a great little terminal app which wraps OSX’s brightness settings into something I can work with.

First I created a bash script /rest/app.sh which will handle dimming the screen and restoring it.

#!/bin/sh

# Get the original brightness
BRIGHTNESS=`/rest/brightness -l`;

# Dim the screen to it's lowest setting
`/rest/brightness 0`

# Stop for 5 minutes
sleep 300

# Back to work!
`/rest/brightness ${BRIGHTNESS:60:8}`

Now we need to run the script every hour, we can do this by creating a cron job. Open terminal and type

crontab -e

This opens up the users crontab from where we can add our cron job. */60 basically means every 60th minute. So it should run on the hour every hour.

*/60 * * * * sh /rest/app.sh

Voila! The screen should dim on the hour and then return to normal brightness 5 minutes later.

Time will tell whether this is better but so far I’m liking it!

If you guys have any ideas on how to make it better you can contribute here

Suit and Tie

So I realise it’s been a fair while since my last post here, but I have been busy…honest!

With 2013 (now in full swing) I wanted to repaint my little corner of the internet. I probably did it out of habit, I tend to get the paint & brush out during this time of year.

I liked my old colour scheme, it was a good footing and was leaps & bounds ahead of the blank page previous to it. But as with all initial versions there were a few problems.

master

The biggest by far was it made me feel like it was a little immature. I’m 22.333333.. years old now and I wanted something that reflected my age, both as a person and as an artisan.

It wasn’t just a matter of maturity though, I also wanted to start adding imagery into my posts which my old design didn’t seem to show off in a way that I preferred. On some sites a 1px border works well, but on mine it looked too bland, almost boilerplate.

Fry

So in January I pushed my first commit to a new branch on github. I like to name my branches after characters on the Futurama series. This is probably not the most descriptive name for a branch but it gave me a giggle.

fry

It started out with Fry, which was a dark brown & green theme, this was definitely going in the right direction but the colours were just a bit too intense for me. The site had lost it’s simplicity and was now relying on heavy box shadows & border radii.

Farnsworth

I took inspiration from stripe’s site (I love these guys) and combined it with a variant on the green from Fry to create my new design

And so Farnsworth was born? created? morphed? … anyway this design was picked because:

  1. It fixed all the problems that I had with the original site.
  2. It’s green. Who doesn’t love green these days?

The new design also uses disqus now, disqus’ code could be smaller so I slimmed it using my limited javascript skill.

<aside id="disqus_thread"></aside>
<script>
	(function(d,t) {
	var c=d.createElement(t);s=d.getElementsByTagName(t)[0];
	c.async=1;c.src='http://[[YOURSITEID]].disqus.com/embed.js';
	s.parentNode.insertBefore(c,s)})(document,'script');
</script>

All in all I’m happy with this, and with some new plans on the horizon there should be some awesome looking posts coming out in the coming months.

I’d love to hear what you think over in the comments.