Lets Get Dugg!



Posting some perl code.

[code syntax="Perl"]
use Text::Textile;

my $tex = Text::Textile->new();
my $htm=$tex->process('*zomg*');
print $htm."\n";
[/code]

and some C code

[code syntax="CPP"]

#include

int main(void) {
printf("hello world!\n");
return 0;
}

[/code]

Some CSS

[code syntax="CSS"]
.code {
border: 1px solid;
min-height: 60px;
background-color: #eae7de;
}

.code .key1 {
color: #0000FF;
}

.code .key2 {
color: #0000FF;
}

.code .string {
color: #14a042;
}
[/code]

Some HTML

[code syntax="HTML"]




hello world



[/code]

Some SQL code

[code syntax="SQL"]
select * from people where IQ > 100;
[/code]

And here is me quoting some text.

At the moment whenever I read the news I am angry at the newspapers and the government for scaremongering, wasting my tax dollars^Wpounds on stupid ideas and not generally not being reasonable.

As you can see, syntax highlight has been added to this blog. Supports a plethora of languages thanks to Text::Highlight.


This supports posts done via XML-RPC. Multi-categories have been added as well.


Rails is the latest and greatest web development platform in most people's eyes at this time. It has really changed how people perceive web development. Rails has brought an easy to use ORM to the masses. Its two main mottos are DRY and convention over configuration. This is exactly what makes Rails so simple. However, when want utter flexibility, speed, and vast number of extensions you should look else where; enter Catalyst.

Catalyst is a Perl based web framework. It features everything you would expect from a modern web MVC framework; template engine, an ORM, and RESTful URLs. The thing that sets Catalyst apart from Rails is choice, your free to use various components. You are not limited to a single component. For example, with Rails there is only ActiveRecord and that is all you get. However, with Catalyst your free to choose from DBIx::Class,Rose::DB::Object or the older Class::DBI. The same principle is applied to the template engine where you have access to five various template engines. The down side to all this is the initial take off time. Basically the learning curve is longer than with Rails.

Let's get started on working with Catalyst. First off, you need to understand how to use CPAN. CPAN is the equivalent of rubygems. I will list some comparisons of cpan and rubygems.



Catalyst / Perl Rails / Ruby
Searching the module networks
bash$ cpan
cpan4> i /catalyst/
bash$ gem search -r rails
Installing Modules
bash$ cpan
cpan5> install Task::Catalyst
bash$ gem install -r rails
Upgrading Modules
bash$ cpan
cpan5> r
bash$ gem update
View Installed Modules
bash$ perldoc perllocal
bash$ gem list
Uninstall Modules
bash$ cpanp # Using CPANPLUS
CPAN Terminal> u Task::Catalyst
bash$ gem uninstall rails

CPAN and RubyGems are very alike. RubyGems has the better upgrade functionality and uninstall while CPAN does not even have an uninstall command! When it comes down to volume of software/modules in the repositories CPAN wins hands down. CPAN contains over 10,000 Perl modules while RubyGems only has 1,718! CPAN has been around a lot longer and there are more Perl than Ruby programmers out there.

If you want to search for perl documentation or CPAN modules check out search.cpan.org


Ya just as the title states, I ruined my OSx86 install!@# Now development of this blog software will stall while I fix up my system.

I really need to get a legit mac so I don't run into this every update. Perhaps I might consider switching back to Linux or FreeBSD. Too bad I am just so dependent on applications such as textmate and photoshop for my line of work.

-Victor