Slaptijack Title

Archive for the ‘Programming’ Category

Python: Empty String?

I've mentioned before that empty strings in Python are false. This leads to a common if not string paradigm. Unfortunately, this can be problematic. Check out this snippet: That pretty much worked out just as we imagined. The empty string returned False and our code did what it was supposed to....

Read More →

Categories: Programming

Pelican: Don't Let Me Publish Without Committing

Although I use Git all day long, I actually prefer to use Mercurial for my personal stuff. When I started working on this project to maintain slaptijack.com with Pelican rather than continuing to use Wordpress, one of the things that really interested me was the ability to keep Markdown files in ...

Read More →

Categories: Programming

Pelican: Insert Article Summaries into WordPress

This is was my next project. Update: For now I've solved this problem by using FeedWordPress to pull the Atom feed for the Pelican-specific portion of the website. Use this as a starting point for the XML-RPC bit. It should first try to pull the article before committing a new one. Otherwise we'...

Read More →

Categories: Programming

Using Pelican's article.summary

I'm using Jinja2 templates with my new Pelican-based articles. If you have Django experience, you'll feel right at home using Jinja2 templates. I decided early on that I wanted to create my own theme from scratch and keep it as basic as possible. (In fact, 'basic' is the name of my theme.) One of...

Read More →

Categories: Programming

Agreeing to the Xcode/iOS license...

Sometimes this pops up when you least expect it: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. This morning, I went to refresh one of my git repo's for work, and make spit that out. What the heck happened last night? Anyway, the fix is easy: Ullr:anchor scott$ sudo […]

Categories: Programming