Done, and gets things smart.
28Apr
Posted by Elf Sternberg as Design, web development
I love LessCSS, because it allows me to write CSS as code, with consistent thinking throughout. Today, I’m going to show you how to have button-shaped anchors with consistent gradients throughout your page, using the color scheme you’ve initially chosen. LessCSS allows you to have parameterized mixins, small blocks of CSS that you can easily [...]
I learned an important lesson today: never put on hold a book from the library that’s already listed on the shelves. Just go get it. If it’s on hold, they’ll take it off the shelves and put it “into the system,” which means you won’t actually be able to get it for 24 hours. I [...]
06Oct
Posted by Elf Sternberg as django, python, web development
Hot on the heels of my last entry, the next utility is needed to extend the event object to automatically produce a URL compatible with Google Calendar’s “create an event” handler. Now, I could extend the Event application myself and add a get_google_url() method to the model, but let’s try to do this The Django [...]
I love being able to combine one of my favorite design techniques with my latest infatuation. It makes my hair tingle. “Gamification,” as any buzzword-compliant high-priced consultant will tell you, is the process of adding game mechanics to a website in the desperate hope that trivial reward mechanisms– badges, stickers, and made-up titles straight out [...]
18Aug
Posted by Elf Sternberg as django, web development
I searched for “django gearman” on Google and Bing, and found precious little. There isn’t much out there, so I’ve decided to put together my own example, using Gearman as a queue manager. If you don’t know what Gearman is, it’s a “generic application framework to farm out work to other machines or processes that [...]
11Aug
Posted by Elf Sternberg as web development
Oh, what a surprise! Firefox implements the HTML5 “article” tag as display: inline, and Chrome implements it as display:block. How annoying. Well, it’s a simple CSS setting to make it work as expected. (Edit: I see, as always, A List Apart is way ahead of me on this. By almost a year!)
I learned today how to enable ReCaptcha for Django. It’s fairly trivial. I’ll show you how to enable this for account registration. First, go and create a key pair for your site. You don’t even have to give them an email address, which is nice. Install the recaptcha client library on your site: pip install [...]
Inspired by Five Web Files That Will Improve Your Website, I decided this morning to implement OpenSearch on the Indieflix Website. (It’s not up yet, we’re still beta’ing it, and it’s along with a massive list of changes that still need testing, so don’t go looking for it.) OpenSearch is a way to turn your [...]
13Jul
Posted by Elf Sternberg as django, python, web development
As I’ve been working on a project at Indieflix, I’ve been evaluating other people’s code, including drop-ins, and for the past couple of days a pattern has emerged that, at first, bugged the hell out of me. Django has these lovely things called context processors– they allow you to attach specific elements of code to [...]
18Feb
Posted by Elf Sternberg as Design, web development
I recently implemented a new subsite for IndieFlix using LessCss, the Leaner CSS metaframework. LessCss is a programming language that abstracts CSS out into a hierarchal language, where instead of writing: #header { … } #header img { … } You write: #header { … img { … } } Which, believe me, makes a [...]