You are not logged in.

#1 2012-03-12 18:17:09

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

bazinga - a perl driven free blogging tool with nice features

hi guys,

maybe it's a little bit rude, to write the first topic on this forum just to tell you this, but I wrote a little piece of software called bazinga which acts as a small blog management and editoring tool.
It's finished now after some months of coding and testing (my own blog is created with it). It has a commandline interface and is configured in one config file in your home-dir. I even created a AUR-package, which can be found here: http://aur.archlinux.org/packages.php?ID=53154

The config files and example files come with the package and need to be placed in your ~/.bazinga

I just copy and paste some of the features from the readme:

- automatically generated rss-feed for your articles
- history and reset function for version control of your blog (powered by git)
- automatic conversion of LaTeX formulae to images which then are inserted
- automatic conversion of gnuplot functions to images which then are inserted
- push function to update your remote blog via FTP
- exporting specific articles or pages
- completely command-line driven, you never have to leave your terminal
- (quite) intuitive usage (bzg add, bzg delete, bzg update, ...)
- page output in search-engine friendly page structure
- central configuration (bazinga.conf)
- easy backup (just copy bazinga.dat anywhere you want)

Basically, it's similar to nanoblogger, but as far as I know, much faster.
If someone would like to give it a try and give me some feedback, that would be very nice smile

Thanks for reading!

Last edited by ap0calypse (2012-03-12 18:20:51)


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#2 2012-03-13 21:13:45

asdf-chan
Member
Registered: 2011-10-23
Posts: 31

Re: bazinga - a perl driven free blogging tool with nice features

loving it~

Not sure if it's a bug or something, but @ the menu _below_ articles, it loads the tags "cloud", right? When it should be below "Tags", not sure if I'm misunderstanding something, haha. I thought below "Articles" it shall show the title of the latest articles or something. smile

And, in the script itself, could you add some method to change the _default_ FTP port? In the conf file I guess~

Thank you for everything! <3

Offline

#3 2012-03-13 21:41:16

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

nice to hear, that you like it smile

1. you are right ... "articles" is a little bit misleading here, should be "tags" ... i'll fix that.

2. i'll add this to the config file and push it to github as soon as i'm finished, good point with the port smile

thanks for the feedback!


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#4 2012-03-13 22:02:31

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

so .. faster than i thought ... it's fixed.  wink

https://github.com/ap0calypse/bazinga/c … f4bcb2f2e1

if there is anything else, let me know wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#5 2012-03-13 22:37:59

asdf-chan
Member
Registered: 2011-10-23
Posts: 31

Re: bazinga - a perl driven free blogging tool with nice features

Cool! But I think you made a mistake, which was leading me to errors, hehe.

" -p $password " . $CONF_HASH{'push_host'} . " -P " .  $CONF_HASH{'push_port'} . " > /dev/null 2> /dev/null;");

The "-P" option must be before the host. smile

Regards, <3

Offline

#6 2012-03-13 22:42:26

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

oops ... fixed wink

sorry! smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#7 2012-03-13 22:46:56

asdf-chan
Member
Registered: 2011-10-23
Posts: 31

Re: bazinga - a perl driven free blogging tool with nice features

Thank you! Working flawlessly now <3

Now, I'm gonna mod the template ww, I love the way it's made~ Right now I've done this: http://i.dont.wannasub.it/ smile

Some credits at the bottom, "like" wordpress 'd be cool, there're people who maybe 'd want to know 'bout bazinga, hehe.

Offline

#8 2012-03-13 22:54:22

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

hehe, I'm happy that you like it.

I didn't put that info thing "created by bazinga" into the template, because personally I always hated blog-systems that did that. But maybe I will add some very small info in the template in a future version.


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#9 2012-03-14 17:56:31

asdf-chan
Member
Registered: 2011-10-23
Posts: 31

Re: bazinga - a perl driven free blogging tool with nice features

So, when I was writing some pages, I noticed every page 'd be added in the _menu_. That's not cool, hehe~

Would be possible to add some option so when you generate a page (bzg generate page>randompage), you can set if it _must_ show it in the menu or not? And obviously it should be parsed~

Something like:

category: "pages"
***menu: "show/hidden"***
title: "random page"
author: "asdf"
website: "http://i.dont.wannasub.it"
email: "asdf@xxx"
date: "2012-03-14"
time: "17:52"
START_TEXT

END_TEXT

Offline

#10 2012-03-14 18:01:58

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

why would you want a page that's not seen? don't get why that should be useful.


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#11 2012-03-14 18:03:12

asdf-chan
Member
Registered: 2011-10-23
Posts: 31

Re: bazinga - a perl driven free blogging tool with nice features

Because "child pages". smile

Offline

#12 2012-03-14 18:06:58

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

ah ok .... i see ... well ... yeah that shouldn't be too hard to implement ...

i will let you know!


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#13 2012-03-15 06:14:52

Ari'osika
Member
From: Your computer, okay?
Registered: 2010-06-22
Posts: 175

Re: bazinga - a perl driven free blogging tool with nice features

FYI; it's better to use chomp() instead of chop() because chop() always removes the last character regardless of what it is. In addition, you should probably place some quote marks around the $password variable for those of us who seed our passwords with non-alphanumeric characters. Finally, some perl hackers consider the use of any system() commands to be downright dangerous, but I leave that for you to decide wink.

sub push_bazinga {
    die " !! Please specify PUSH_HOST in config first!\n" unless $CONF_HASH{'push_host'};
    die " !! Please specify PUSH_LOGIN in config first!\n" unless $CONF_HASH{'push_login'};
    die " !! Please specify PUSH_PATH in config first!\n" unless $CONF_HASH{'push_path'};
    my $port = 21 unless $CONF_HASH{'push_port'};
    print " >> Pushing to: " . $CONF_HASH{'push_host'} . " into directory " .
          $CONF_HASH{'push_path'} . "\n";
    print "Please enter your password (won't be echoed): ";
    system('stty','-echo');
    chomp(my $password=<STDIN>);
    system('stty','echo');
    print "\n";
    system("echo 'lcd " . $CONF_HASH{'blog_directory'} . "; cd " . 
            $CONF_HASH{'push_path'} . "; rm -rf articles tags pages css index.html feed.xml' | ncftp -u " .  $CONF_HASH{'push_login'} .
            " -p '$password' " . " -P " .  $CONF_HASH{'push_port'} . " " .  $CONF_HASH{'push_host'} . " > /dev/null 2> /dev/null;");
    system("echo 'lcd " . $CONF_HASH{'blog_directory'} . "; cd " . 
            $CONF_HASH{'push_path'} . "; mput -R *' | ncftp -u " .  $CONF_HASH{'push_login'} .
            " -p '$password' " . " -P " .  $CONF_HASH{'push_port'} . " " .  $CONF_HASH{'push_host'} . " > /dev/null 2> /dev/null;");
    print " >> Push done!\n";
}

If you're reading this; you're awesome.

Offline

#14 2012-03-18 19:26:27

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: bazinga - a perl driven free blogging tool with nice features

thanks for the heads up, i'll fix this soon smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

Board footer

Powered by FluxBB