Welcome Guest ( Log In | Register )

 

..:About
I'm Bryan Hughes, an undergrad in CS, and a Linux systems programer at the universities' computer center. Here in this blog, I'll be talking about work, development, systems administration, python, linux, and a bunch of other IT and IS stuff.

Check out my projects and portfolio at falselogik.com

My Blog Links

Search My Blog


3 Pages V  1 2 3 >
 | Category: linux/unix
entry 29 Jul, 2007 - 05:49 PM
From: http://softwarefreedomday.org
Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS). Our goal in this celebration is to educate the worldwide public about of the benefits of using high quality FOSS in education, in government, at home, and in business -- in short, everywhere!

Vision:
Our vision is to empower all people to freely connect, create and share in a digital world that is participatory, transparent, and sustainable.

Objectives
1. to celebrate software freedom and the people behind it
2. to foster a general understanding of software freedom, and encourage adoption of free software and open standards
3. to create more equal access to opportunities through the use of participatory technologies
4. to promote constructive dialogue on responsibilities and rights in the information society
5. to be inclusive of organizations and individuals that share our Vision
6. to be pragmatic, transparent, and responsible as an organisation



So whats going on is groups around the world on September 15th are going to be holding events centered Free Software. So far more than 200 teams have registered their events. check out the world map: http://maitri.ubuntu.com/~moquist/sfdworldwide/2007/

My local ACM chapter at New Mexico Tech, will be hosting a day long event of programming contests, FOSS table, and workshops.

If you are interested in hosting an event in your area, register your team by the 31st of July, and they will send you a pack with Tshirts and give away CDs.


If you are new to Free Software, Start off here: http://www.dreamincode.net/forums/showtopic11353.htm for a popular free software and what they can do for you.

 | Category: linux/unix
entry 27 Jul, 2007 - 05:21 PM
I've come across Frets on Fire several months ago, but was unable to get it to work with my setup.
However I have since upgraded, and it works fawlessly.

Frets on Fire is a Guitar Hero Clone where you pick up and rock the keyboard like the guitar. Best of all its free and open source.
So for those who have a PS and don't want to drop a butt-ton of money on getting the whole GH setup to shred, this is for you.

Extra bonus if you own the guitar hero games, pop them into the DVD rom drive, and Frets will convert all the songs into its format and let you play them.

A video of the tutorial is here:
http://video.google.com/videoplay?docid=-4385700275120314654

 | Category: linux/unix
entry 21 Jul, 2007 - 09:50 PM
I've finally came around and looked into Ruby on Rails, and man... wow.

The stuff I've been working on has been mostly python and php from the ground up, (well from the database to the client as oh so pretty html), and the
servers I've been running on haven't had an avenue to install a framework. So tough beans.

Anyway the last thing I used similar to RoR was Java Servlets and JSP using MVC pattern. And that was terrible.
The ActiveRecord stuff that abstracts all database operations is a Godsend. No more populating beans and shooting them through the tubes,
it creates the objects for you automagically.

I've also gone and wrote a tutorial on installing a production rails environment with Apache + Clustered Mongrel on Fedora 7.
Here: http://www.dreamincode.net/forums/showtopic30705.htm


 | Category: php
entry 26 Jun, 2007 - 01:23 PM
Part of my project is a service where you upload your built RPM package directly into a repository.
XMLRPC facilitated this excellently with BASE64 encodings:


on the PHP XMLRPC server:

CODE

function uploadFile($method_name, $params, $user_data) {
    $file = "/var/www/fedora/linux/tcc/testing/7/i386/" . $params[0];
    $file_data = $params[1];
    $file_data=base64_decode($file_data);
    $fh = @fopen($file, "wb");
    if ($fh) {
        if (@fwrite($fh, $file_data)) {
            $msg = "File Upload Complete";
        } else {
            $msg = "Error Uploading File";
        }
        fclose($fh);
        return $msg;
    } else {
        return "Error Uploading File";
    }    
}


and the client side in Python Xmlrpclib

CODE

def uploadFile(server,opts):
    basename=os.path.basename(opts[0])
    fin = open(opts[0])
    fout= open("/tmp/rpmupload.tmp","w")
    base64.encode(fin,fout)
    fin.close()
    fout.close()
    fin=open("/tmp/rpmupload.tmp")
    base64string=fin.read()
    fin.close()
    os.unlink("/tmp/rpmupload.tmp")
    print server.uploadFile(basename,base64string)


I have to do a little file shuffling on the client side to give the base64 libs what they want. But thats really all the code needed.

Now RPM devs don't have to scp and login and shuffle files around searching directories, and messing up file permissions.

MAGIC!

 | Category: linux/unix
entry 6 Jun, 2007 - 07:27 PM
So at work we are using Plone CMS for our documentation. Well, it sucks. No collaboration, revision control, seperate auth, bleh.

So we've been fussing for a wiki for a while and today I threw up a test one.

Moin Moin is in the Fedora Linux and EPEL repositories and is what Fedora project, gnome live, apache, and xen use for their wikis.

I installed from yum and within 10 minutes had it completely installed doing secure auth from our ldap server. Sweet.

It is incredible how software has evolved in the last 3 years since I started here. Apache was a scary monster who ate web pages. Now its yum install webapp
and its running. Totally Crazy.


We've been fussing with some of the more percurlar aspects trying to get other markup working as input. It needs better docbook support, and html input. Then we'll be cookin

entry 1 Jun, 2007 - 10:22 AM
Currently I'm working on setting up a spam processing custer of computers.

All was going well untill I get to the point to test the content filter (amavis-new).
The user prefs for everyone's spam settings are stored in our openldap server.

When I give the filter the rcpt to line and it tried to do a look up, crash! the child process died a horrible death.

I get to looking around and a simple Perl Net::Ldap script dies on TLS authentication.

what I found out that there is appently a bug in openldap and to get perl to work with it, you will need to speicify the cipher to use explicitly.

Use this to find out the cipher being used by the server:
CODE

use IO::Socket::SSL;
my $ssl = new IO::Socket::SSL("ldapserver.intenet.com:636");
print "SSL Cipher: " . $ssl->get_cipher() . "\n";



my cipher was AES256-SHA


then place that in the start_tls() method call in a Net::LDAP script:
Also dont forget to requite verify and explicity point out the server cert, just to be safe.
CODE

use Net::LDAP;
$ldap = Net::LDAP->new( "ldapserver.internet.com ) or die "$@";
#$mesg = $ldap->start_tls( verify => 'none', );

$mesg=$ldap->start_tls(verify => 'require', cafile => '/etc/pki/tls/certs/tccCA.pem', ciphers=> 'AES256-SHA');
$mesg->code && die $mesg->error;

$mesg = $ldap->bind;
$mesg->code && die $mesg->error;
$mesg = $ldap->search ( base   => "ou=accounts,dc=tcc,dc=nmt,dc=edu", filter =>
"(uid=khan)");
$mesg->code && die $mesg->error;
foreach $entry ($mesg->entries) { $entry->dump; }
$mesg = $ldap->unbind;



This had me running around for over an hour. Stupid Perl, Stupid Ldap.

 | Category: linux/unix
entry 31 May, 2007 - 07:14 PM
Wow its been a whole Fedora version since I last blogged, coincidently about the same thing.


Anyways Fedora 7, (no more core, its all merged) was released today, and I've been following it all the way since test 2.
To go with their new version they've also released a new version of their website fedoraproject.org snazy.

So some cool things in Fedora 7:

Spins: These are specific variations of Fedora built with different packages. For instance a KDE spin if you want to directly by pass gnome as your desktop environment.
Since they full set of packages is just huge, this alows you to customise a set you want to use and put it all on one install cd and run with it.

Appenently the yum package updating system and its frontends have gone through a large speed increase. I haven't experienced it yet, as I've just reinstalled from the DVD today. However the box I was running off the dev stream did seem to go faster.

Updated python (2.5), and firefox (2.0)

Also introduced is Fast User Switching.


I'll be working on preparing it for installation on all 250+ client computers at the TCC. And making a management system to back it and build packages, and the like.
I'll be blogging the whole project just like last year.


Also I've joined the Fedora Project as a contributor. I think I will be starting on the Docs project, and see where that goes so keep an eye out for that.

 | Category: linux/unix
entry 24 Oct, 2006 - 09:50 AM
Fedora Core 6 has just been released.

You can check it out at:
http://fedora.redhat.com/


New Features are:
Compiz and AIGLX Framework for the Desktop
Dynanmic Linking preformance enhancements
Better performance for package managers, yum, pirut, and pup
IPv6 in Anaconda
Graphical XEN manager
Smartcard capabilities
INTEL MAC SUPPORT

 | Category: python
entry 19 Sep, 2006 - 09:59 AM
http://www.python.org/download/releases/2.5/

Highlights include:
New Optimizations for faster exception handleing and string ops.
New language features like, with operator, new conditional expressions,
and new packages: ctypes, ElementTree, hashlib, sqllite3 and more

http://www.python.org/download/releases/2.5/highlights/



Looks like a lot of the stuff has to do with exection handleing

Go check it out

 | Category: linux/unix
entry 11 Sep, 2006 - 12:27 PM
I found a pretty good article/rant that I thought was a pretty good read here, talking about FreeBSD, what it is, how it works, and how it is fundamentally different that linux, and other unixies.

Go take a look and get educated.

3 Pages V  1 2 3 >  
Last entries

Categories

Last Comments
Guest on Frets on Fire

0 user(s) viewing
0 guest(s)
0 member(s)
0 anonymous member(s)