May 2006 Archives
Wednesday May 24, 2006 [04:49:38 AM]
NanoBlogger Web Interface v0.01
I've been working on a web interface
for NanoBlogger
so that it is possible to manage one's nanoblogger through a web
browser instead of shell.
It's appropriately called "NanoBlogger Web Interface", and it was scripted in bash, like NanoBlogger. So far it allows an individual to add/delete weblog entries, add/delete categories, and force NanoBlogger to update its data files.
I've only tested it on this machine, so I don't know if there are any issues with it on other machines. If you find bugs, or have any suggestions or remarks, please leave a comment.
You can download it here, and read the enclosed README file for instructions.
Enjoy!
It's appropriately called "NanoBlogger Web Interface", and it was scripted in bash, like NanoBlogger. So far it allows an individual to add/delete weblog entries, add/delete categories, and force NanoBlogger to update its data files.
I've only tested it on this machine, so I don't know if there are any issues with it on other machines. If you find bugs, or have any suggestions or remarks, please leave a comment.
You can download it here, and read the enclosed README file for instructions.
Enjoy!

Sunday May 21, 2006 [07:14:41 PM]
Blog Comments
Enabled blog commenting by using reblogger. Was pretty simple and easy to enable in nanoblogger, and configurable to one's liking.
Sunday May 21, 2006 [07:21:44 AM]
NB update bash cgi script
Just wrote a little bash cgi script to make sure nanoblogger is kept up to date (the calendar more-or-less). Below is the code for it. You'll need to change your main_index.htm template file to have a server side include to the cgi script of course, and you will probably have to do a little tweaking to nb/lib/config.sh to produce .shtml files instead of .html files. Of course, one could just create a cron job to update all the nanoblogger data files, but if you don't have access to crontab, this would be an alternative solution.
#!/usr/bin/bash # # nbupdate.cgi by strikelight # free for use and modification # echo Content-type: text/plain echo "" # Configure the following variables first NB_PATH="/home/username/nanoblogger/nb" NB_UPDATE_ARGS="-b /blog_dir -u" NB_UPDATE_FILE="/blog_dir/data/update.log" NB_UPDATE_TIME=0 if [ -f "$NB_UPDATE_FILE" ]; then NB_UPDATE_TIME=`stat -f %m $NB_UPDATE_FILE` NB_UPDATE_TIME=`date -r $NB_UPDATE_TIME +%D` else NB_RESULT=`touch $NB_UPDATE_FILE` fi NB_CURR_TIME=`date +%D` if [ "$NB_CURR_TIME" != "$NB_UPDATE_TIME" ]; then NB_RESULT=`$NB_PATH $NB_UPDATE_ARGS` NB_RESULT=`rm $NB_UPDATE_FILE` NB_RESULT=`touch $NB_UPDATE_FILE` fi
Saturday May 20, 2006 [09:08:55 PM]
Welcome to my blog
Decided to create my own weblog.. Not
sure how much attention I'll give it, but we shall see. Went with
nanoblogger, seems interesting... Pretty small, bash based script,
which is intriguing. It's the long weekend, Victoria Day on Monday
here in Canada... Thank goodness.. It's been a heck of a week at
work, and I definitley need some down time now. Just saw Canada get
beat by Sweden in the IHWC, so no gold for Canada this year at the
world's... dang... :(