Archive | October 2013

BugZilla || Trac

For my SBR600 project, I will attempt to decrease the number of spam for the Pidora Bug Tracker. Currently it is employing Trac, and has some anti spam modules in place. However, spam is still getting through. I have the option of staying with Trac or moving the system to another bug tracking system. After some discussion with Mr. Oatly-Willis, it seems it may be best to switch to BugZilla. Fedora/Red Hat uses Bugzilla for their bug tracking, which means we will be able to link bugs, that are common on both Fedora and Pidora, together so efforts are not split for no reason.

As always, I am open to debate, if you feel that the current system of using Trac would be more beneficial, let me know in a response.

-Richard K.

Pi-thon

The most recent scripting language I have been using is PowerShell (it is pretty powerful when it comes to controlling Microsoft Windows machines; and the fact you can use Linux commands in PowerShell makes it that much more attractive).

Any ways, python proved to be interesting. I have always had an interest in python, having been told it is very similar to C/C++. Accustomed to programming in C/C++, the feature where you do not have to have ending statements (such as closing braces or fi in bash) threw me off. When I write code, I normally write the statement, and anything I need to close the statement. Most programmers, one time or another, has had to go through their code line by line, trying to find that elusive missing closing braces.

Besides having to cope with the above, I did not have much issue getting the python script up and running. The indenting structure of python is what I have always used when coding, so there was no issue there. Below is the python code I created; as an overachiever, I decided I would go for the bonus marks and also include how many turns it took for the user to get the correct answer.

Guess python script

What would you RISC?

Suppository or Repository

I don’t know if it was from the lack of caffine or from having to wake up at 6am, but I had a mental block while trying to accomplish this lab. The following has all the swearing and violence have been removed to keep a friendly ESRB rating.

Beginning with rpm -q createrepo returned createrepo-0.9.9-21.fc19.noarch showing the package is already installed.

I moved both packages (which and bc) into a directory and executed the command createrepo .. This created the following output:

Spawning worker 0 with 1 pkgs
Spawning worker 1 with 1 pkgs
Spawning worker 2 with 0 pkgs
Spawning worker 3 with 0 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete

The directory now included the two rpms and a directory. Within the directory I found 7 files:

  • 110930580d74bdc33926f944ac2d2489989fe34d2468a132c04a7be32073baf7-other.sqlite.bz2
  • 8bd504630cd34e26327b6e904fc7070e45fe64e32679e97fa7164a4b061aeece-primary.xml.gz
  • 9a2b389d94950df4eb24d849d678ae09ca24e732845a660faf090937f1870b5a-other.xml.gz
  • 9d5d872b2bd4c82a2e2c242e80d4f8e1840746475fb2d955e2be30b0ce90f3ef-filelists.xml.gz
  • adc33ead0c772cdd29dc8d2d32c2afa3eebeef9e24dda41402c6aa51b3a752f3-primary.sqlite.bz2
  • b24a749feacf36780b5a7665901f9ab61656af8002b02e7ea36afebda366fba5-filelists.sqlite.bz2
  • repomd.xml

Following the instructions in the lab, I copied a pre-existing .repo file, renaming it shkim33.repo.
cp /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/shkim33.repo
and began editing the file; the end result being thus:

[shkim33]
name=shkim33 Repo
failovermethod=priority
baseurl=http://http://matrix.senecac.on.ca/~shkim33/sbr600/sbr600repo/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/emailgpgkey.public

yum repolist results in:


Loaded plugins: langpacks, refresh-packagekit
shkim33 | 2.9 kB 00:00:00
shkim33/primary_db | 2.3 kB 00:00:00
repo id repo name status
fedora/19/x86_64 Fedora 19 - x86_64 36,253
rpmfusion-free/19/x86_64 RPM Fusion for Fedora 19 - Free 462
rpmfusion-free-updates/19/x86_64 RPM Fusion for Fedora 19 - Free - Updates 185
rpmfusion-nonfree/19/x86_64 RPM Fusion for Fedora 19 - Nonfree 219
rpmfusion-nonfree-updates/19/x86_64 RPM Fusion for Fedora 19 - Nonfree - Updates 212
shkim33 shkim33 Repo 2
updates/19/x86_64 Fedora 19 - x86_64 - Updates 14,285
repolist: 51,618

I have no idea why I found this lab difficult, in retrospec, it should have been pretty straight forward. WTB caffeine.

-Richard K.

What would you RISC?