Blogs

Adding XFS Support to RHEL5

RedHat's enterprise operating system doesn't provide support for XFS out of the box, due to support limitations. XFS is a mature and stable file system however, and has benefits in a number of areas, including file streaming, snapshotting, growing, and online defragmentation. In this brief article, I'll walk you through the process of adding XFS support to your RHEL5 (or CentOS) boxes.

XFS comes in two parts: userland tools (xfsprogs) for creating/checking/etc XFS partitions and xfs-kmod, the kernel module required to support XFS.

FreeBSD on the Intel Atom

Yesterday, my Intel BOXD945GCLF Atom mini-itx motherboard arrived. This silent, low power motherboard combo is perfect for a variety of applications, ranging from network firewalls to car PCs. There is a lot of excitement surrounding this motherboard and the future of small form factor computing in general. Since I wish to exploit this in a variety of areas, I turned to FreeBSD 7.0-RELEASE. Read more to find out more information about the new Intel Atom processor, the D945GCLF motherboard that it comes with, and it's initial reaction to FreeBSD.

Day 1: A Windows and Linux User's First Mac Pro

I'm a long time Linux user, but a much longer Windows user. While I've used a Mac before, I've never used as my primary desktop. Yesterday, my Mac Pro arrived, and I've been getting used to the 'Apple way' of doing things. Read more to see some of my notes and road bumps as I discover more about Apple's UNIX certified operating system on Day 1!

Get RSS updates to your Instant Messenger

IM Feeds

As a technology and politics addict, I like staying informed about the latest news. Eventually, I got tired of refreshing pages to find out when new content was available (or having to check my RSS reader) so I decided to write a small service that delivers RSS/ Atom updates to my instant messenger. And since I'm sure I'm not the only person craving such a thing, I figure I'd make it publicly available:

http://www.imfeeds.com

Sending mail in python

A quick Python function that shows how to send an email.

def send_mail(destination, source, subject, text, smtp_addr='localhost'):
    """Simple function to send an email.
   
    destination
        The email address that the message should be sent to.
    source
        The 'From' address that will be used for the email.
    subject
        The subject/ title of the email.
    text
        The actual message/ content of the email.
    smtp_addr
        The hostname or IP address of the SMTP server that will deliver the
        email.
   
    Example usage:
        send_mail('my_friend@test.com', 'bgates@microsoft.com',
                'Hi!', 'Just checking in.')
   
    "
""
    import email.Message
    import smtplib
    mail = email.Message.Message()
    mail['To'] = destination
    mail['From'] = source
    mail['Subject'] = subject
    mail.set_payload(text)
    server = smtplib.SMTP(smtp_addr)
    server.sendmail(source, destination, mail.as_string())
    server.quit()

Installing Finch on OpenBSD without X11

Since my OpenBSD install doesn't use X11 I couldn't use the official Pidgin package and had to install by source instead. To start out, I used the following configure command:

./configure --enable-consoleui --disable-gtkui --without-x --with-python

Which resulted in the following error:

...
checking for initscr in -lncursesw... no
checking for update_panels in -lpanelw... no
checking for initscr in -lncurses... yes
checking for update_panels in -lpanel... no
configure: error:

Finch will not be built. You need to install ncursesw (or ncurses) and its development headers.

Accessing ext2/ext3 Volumes from Windows

A useful utility called Ext2 IFS allows you to mount ext2 and ext3 filesystems from inside Microsoft Windows. It allows you to mount your Linux partitions as drive letters in Windows Explorer, giving you full (journaled!) read/write support. If you dual boot Windows and Linux or work in a mixed Windows/Linux environment, Ext2 IFS can be a godsend.

Python Tips and Guidelines

This is a must-read for any Python developer:

http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html

Web 2.0 Bubble Flash Video

This hilarious video pretty much sums up my thoughts on the latest craze out of silicon valley.


Scalable Web Architecture

Just wanted to share (and archive) an interesting presentation given a few years ago at ApacheCon: http://www.codemass.com/presentations/apachecon2005/ac2005scalablewebarc... . Should be a good read for anybody that plans on designing a larger web architecture.

Syndicate content