Pages, Excerpts, and Links


29/3/2011
Tags: pyBlag, blog, projects

I hadn't planned on working on pyBlag today... but I had some free time, so I did. During this free time, I managed to add three new features: pages, excerpts, and links to entire posts from excerpts. You can now click on the title of each blog post and get to that post only. Each post also has an excerpt tag, which will be shown on the main page instead of the entire content of the post, which saves a lot of space.

... [Read More]

Update to pyBlag


28/3/2011
Tags: pyBlag, blog, projects

If you can't already tell, I'm kind of enthused about how well this pyBlag project has turned out. I just spent a few minutes to finish implementing the tag search feature; you can now click on tags to see all posts that are tagged with them! What I find so exciting about pyBlag is how little time it has taken, and how many features I was able to just throw in. For example, you may have noticed that the welcome post is sticky. How did I accomplish this? Well each post has a number associated with it so that the posts get sorted properly. This rather uninteresting feature enabled the addition of two other features: sticky posts and hidden posts.

... [Read More]

pyBlag


27/3/2011
Tags: pyBlag, blog, blogging, projects

So you might be asking yourself "What is this pyBlag thing?" or "Why does it say Powered by pyBlag on this guy's site?". pyBlag is a single, CGI script that I wrote in about three hours of a Sunday afternoon. Why did I do it? Why didn't I use ordinary content management software like Wordpress? Why did I create another blog, even though I already have one? The answer to these questions is that I thought it would be fun, and I thought it would be a cool thing to put as my McGill CS homepage. Writing a super simple CMS script didn't seem like too difficult a task, so I did it.

pyBlag has no backend. In other words, what you see here is the only interface to pyBlag; it is only one script. To add new posts, you have to manually add them into a very simple XML file. It's not that hard if you have a brain, can recognize patterns, and aren't afraid of "technology," but it's not as userfriendly as other CMS tools. That being said, the entire script weighs in at 3.9 kilobytes (at last count.) Needless to say, for what it is, I think it's pretty cool.

At some point I'll release the source code for pyBlag, but there are a few features I want to add first. I'll detail my progress on my CS blog (here,) for all to see. If you have any questions, please feel free to e-mail me at worldgnat (swirly a) gmail (dot) com. Yes, yes, I have a McGill e-mail address, but I prefer to separate my e-mails that need to be read immediately from my e-mails that can be read later (but which address is which?)

Third Post


27/3/2011
Tags: pyBlag, blog, blogging, projects, Starbucks

There: I fixed it. For those interested, I simply added a list of the posts, had my XML parsing code add the post text to a list, and then add the text one by one to the page. I think I'm finished for today. For the record, not including the time I've been thinking about how I would write this code, it has taken me two hours to write this script. It's 79 lines of code, including comments and whitespace.

... [Read More]

Second Post


27/3/2011
Tags: pyBlag, blog, blogging, projects

This is my second post! I don't think it's going to work though... because of the way I wrote the XML parsing portion of my script, I think this, the second post, is going to replace my first post. Unless, of course, the CS gods are smiling on me, and have decided to allow my computer to figure out what I meant to tell it to do instead of doing what I actually told it to do. I find this extremely unlikely.

Back to the text editor.

Hello World!


27/3/2011
Tags: pyBlag, blog, blogging, projects

Hello World! This is the first blog post ever written on my simple, feature-light, easy to use collection of blogging scripts, which I am calling pyBlag. You have to write the posts in html, and I'm actually writing this post directly into an XML file because I haven't actually writteng the post editing/creation script yet, but it looks like it's going to work pretty well. I decided to write this collection of scripts because I thought it would be fun. So far, it has been. Writing CGI scripts (or anything, for that matter,) in Python is pretty easy, and a lot of fun. I'll post the source code eventually.

The template file is a single html file and a single css file. This makes things a lot simpler to deal with. There are no fancy statistics features, though I'm thinking about writing a simple hit counter at some point. If you want a full-featured blogging application, go get Wordpress. This is just a fun project. Also, the total file size - themes and all - is a few kilobytes, and installation is as simple as copying a few files into your cgi-bin directory.

Test Post


5/29/2012
Tags: pyBlag

What follows, dear reader, is an essay describing, in three parts, the reasons why I decided to include absolutely no content in this post. This essay, as you may be wondering, has been generated by the lovely software pyBlag, which was so kind as to fill in this blank space.

I am a silly user.

I don't check my forms before I submit them.

I don't know how to use my mouse/keyboard/eye-tracker/telekinetic-mouse-pointer/magnetized-needle properly, so I press buttons rather at random and submit things without meaning to.

In conclusion, I'm silly, and need to proof my work before I submit it. When I discover this rather embarassing post, I'm going to go back and delete it. Thank you for your time, dear reader, and I hope you wander this way again. And remember: always check your forms before submitting them.

Another Test Post


5/29/2012
Tags: pyBlag

As you may have noticed, I caught myself in my own trap. That snarky little message I embedded in my new posting code showed me that I had forgotten to name my textareas. Hopefully this post will work. If it does, I'll post about what I've been up to, and about the new extensions to pyBlag!

I'm Back


5/29/2012
Tags: pyBlag, McGill, Projects

You may have noticed that, other than my failed test post, I haven't written on this blog in a while. In fact, it's been over a year since my last post. A lot has happened in that year, which is more accurately detailed in my Personal Blog. I haven't coded much in that time, which is unusual for me, because I've been coding for most of my life! But I've decided to ease myself back into it with some more work on pyBlag.

... [Read More]