Dark Revival

March 16, 2010

As of late . . .

Filed under: coding — Tags: — klaborda @ 2:19 pm

I’ve been surprisingly busy lately.  C’est la vie.

I’ve been reading about clojure lately.  So far it is pretty interesting.  I’m particularly intrigued about its roots in lisp considering I’ve never learned lisp beforehand.

Interesting things about clojure:

  • Supports java class calls (+)
  • Uses Lisp-like syntax (+ for the most part)
  • Functional language (+ considering it’s the reason I’m learning it)

I’ve yet to delve into it so much that I have a reason to hate it, so until then… I guess I have no complaints.

December 27, 2009

New Home Page – kevinlaborda.com

Filed under: drivel — klaborda @ 8:12 pm

Yay!

After an apparent eternity, I finally reacquired and redesigned kevinlaborda.com.  Check it out

To be frank, the original design itself came from what.cd. I loved its simplistic look and easy to read text.  Using the general scheme, I did some tweaks with text, icons, and general feel to get the overall look.  At least I finally did something for myself!

And yes, I’m actually alive!

September 9, 2009

So begins the year

Filed under: Uncategorized — klaborda @ 3:09 pm

Fall 2009 has started for me. Hooray?

Classes are pretty typical at the moment. ChBE, BCHM, and IME being the highlights. So far, so good.

On a work note, I’ll be helping a bit in the College of Agriculture. I think the experience will be good, especially considering their emphasis on Windows-based systems.

Otherwise, I’ve made some delicious food lately–Cherry-pie-filling Bars and Banana Bread! Recipes coming soon…

May 22, 2009

Setup a Jabber/XMPP Server on Ubuntu 8.10

Filed under: coding — Tags: — klaborda @ 1:17 pm

This was performed on a Ubuntu 8.10 Intrepid Ibex install; however, it should be pretty portable.

The first step is to install the ejabberd package

sudo apt-get install ejabberd

The next thing is to download, build, and copy over the Erlang MySQL drivers.

 svn co https://svn.process-one.net/ejabberd-modules/mysql/trunk mysql
cd mysql
./build.sh
sudo cp ebin/*.beam /usr/lib/ejabberd/ebin

Then, create the MySQL user for ejabberd.

mysql -u root -p
GRANT ALL ON ejabberd.* TO 'ejabberd'@'localhost' IDENTIFIED by 'password';

After creating the user, the database is created and then the table schema can be downloaded and imported.

wget http://svn.process-one.net/ejabberd/trunk/src/odbc/mysql.sql
mysql -u ejabberd -p
CREATE DATABASE ejabberd;
mysql -D ejabberd -p -u ejabberd < mysql.sql

Finally, use the following script to modify ejabberd.cfg to use MySQL (ODBC).
Script: mysqlify.sed

#!/bin/sed -f
# Modify the config for some MySQL support

# Disable internal DB
s/{auth_method, internal}/%{auth_method, internal}/

# Add DB information
/auth_method, internal/a\
\{auth_method, odbc}.\
\{odbc_server, \{mysql, "localhost", "ejabberd", "ejabberd", "password"}}.

# Replace several mods with the database equivalent
s/mod_last/mod_last_odbc/g
s/mod_offline/mod_offline_odbc/g
s/mod_roster/mod_roster_odbc/g
s/mod_vcard/mod_vcard_odbc/g

After replacing the host, database name, username, and password in the above script, run the following to modify the ejabberd config.

sudo ./mysqlify.sed /etc/ejabberd/ejabberd.cfg

Afterwards, modify ejabberd.cfg to change the default admin in the acl, admin line towards the top.

Users can be added via the following command:

sudo ejabberdctl register username server password

Make sure to restart the server when all is said and done,

sudo /etc/init.d/ejabberd restart

References:
http://sysmonblog.co.uk/2008/06/ot-installing-ejabberd-on-debian-ubuntu.html
https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver

May 20, 2009

Hak5

Filed under: coding — Tags: , — klaborda @ 2:56 pm

I like to horde media for later viewings, and I am sad to say that hak5 does not offer torrents for its episodes.  Nevertheless, I love to hack scripts together for simple things, so I made a Python script which will parse their XviD RSS feed for the file paths.  I then write the paths to a file which can be parsed by aria2, a HTTP/FTP download manager that can be used on Ubuntu.

The Script: hak5.py


#!/usr/bin/env python
import feedparser
import sys

FEED_URL = "http://feeds2.feedburner.com/Hak5largeXvid?format=xml"
if not sys.argv[1:]:
FEED_TARGET = "hak5.lst"
else:
FEED_TARGET = sys.argv[1]

outfile = open(FEED_TARGET, "w+")

feed = feedparser.parse(FEED_URL)
for e in feed.entries:
outfile.write("%s\n" % e.enclosures[0].href)
outfile.close()

I run the above with no arguments which will simply write to a file in the current directory called hak5.lst.

Next, I run aria2 in a screen session which I can detach (Ctrl+A+D) and reattach (screen -r dl) later.


screen -S dl aria2c -i hak5.lst -j 2

May 12, 2009

WiFi Heartache

Filed under: Uncategorized — Tags: — klaborda @ 5:12 pm

Wi-Fi is being a pain for me. I recently flashed a WRT54G2 to DD-WRT v24 in hopes of building a wireless bridge. Apparently, the configuration for a wireless bridge is harder than it looks. Damn. Hopefully, sufficient perseverance will solve the issue.

Hello…

Filed under: Uncategorized — klaborda @ 1:49 pm

So, I am pretty much a noob at blogging.  Still, I figure that I might as well bite the bullet.  I hope to start posting interesting things in the near future.  Hopefully

Powered by WordPress