Enlightenment animated background from animated gifs

I’ve been using different versions of Enlightenment since I started using Linux, about 17 years ago. It’s by far my favourite desktop environment, always pushing the envelope in UI design and visual bling. Some of the more interesting features for an end user is the complex interactive UI components that can be easily assembled. These are defined in ‘edc’ files, which have named components, mouse events, and ‘programs’ for animation and other tasks, and probably lots more – I’m certainly no expert, but I dabble.

I’ve designed a few animated backgrounds over the years ( which I really should add to the downloads section here ). Recently I bumped into some amazing animated gifs over at Extreme Instability.

( I’ve had to remove a direct link to an image on the above site – apparently that’s not cool with them? )

I immediately wanted them as animated backgrounds. So I downloaded a couple of gifs, and loaded them up as backgrounds, but Enlightenment only loaded 1 frame – I guess it doesn’t natively support animated gifs. So I set off figuring out how to split the gif into png frames, and then went back to my older animated backgrounds to figure out how I’ve built animated backgrounds before. Faced with so many of these beautiful storm animations to choose from, I then thought what was really needed was a script to convert animated gifs into Enlightenment edj files. So here it is:

 http://tesla.duckdns.org/downloads/gif_to_edj_1.0.sh

And here’s the result:

Here’s what the script does:

  • uses imagemagick’s “convert” utility to split the animated gif into a series of png frames
  • assembles an edc file with the relevent png frames inserted into it
  • calls edje_cc to compile the edj object
  • copies the edj object into your ~/.e/e/backgrounds folder

My bash scripting is kinda basic. I use Perl for everything mildly more complex, but it seemed overkill for this.

Enjoy 🙂

New Apple virus / botnet

I host a couple of websites on my home server, this one included obviously, and others for community organisations. They don’t need a lot of maintenance. I’ve written some perl scripts to monitor apache logs for obvious signs of comment-spam, and this keeps manual work to a minimum. So I was surprised to see this morning a large spike in traffic that happened on the 9th. Check it out:

spike_1_clipped

Now this site hasn’t posted any new content in quite a while. Nor is there any particular page the traffic was going to. It turns out it’s all comment-spam related ( as usual ), and targets all pages equally. Something did stand out though:

spike_2_clipped

That’s a lot of iOS & Mac OS users! In fact, if you subtract these 2 groups from the total usage stats for the day, it goes back down to normal. It sure smells like there’s a new Apple virus / botnet. If you get a virus on your desktop / laptop, it’s not so bad. But a virus on your mobile device is pretty harsh, because it can chew up a lot of your limited bandwith. I’d hate to be an Apple user at the moment. Acually, I’d hate to be an Apple user any time, but especially at the moment.

Hey I wonder if this is the new $10k Apple watch?

Posted in IT.