Community Blogs

Perl and World of Warcraft (WoW).

This blog will discuss how to use the Perl module Games::WoW::Armory to print both character name and current level for all members of a given guild.

The following Perl script will build a .csv file named guild.csv "," delimited  containing both character names and current level for all members of a given guild in World of Warcraft (WoW).

#!/usr/bin/perl -w

#This script will connect to the
#site and display level and name of members   #
#of a particular guild.                       #

# Load required modules.
use strict;
use Games::WoW::Armory;
use FileHandle;

#declare variables
my @name;
my @race;
my @level;
my @guild;
my @gender;
my @faction;
my @lmodified;
my @class;

# Create new Games::Wow::Armory object.
my $armory = Games::WoW::Armory->new();

$armory->search_character( { realm     => 'anvilmar',
                             character => 'draxxus',
                             country   => 'US' } );

#set characteristic to it's corresponding array
@name = $armory->character->name;
@race = $armory->character->race;
@level = $armory->character->level;
@guild = $armory->character->guildName;
@gender = $armory->character->gender;
@faction = $armory->character->faction;
@lmodified = $armory->character->lastModified;
@class = $armory->character->class;

#get guild members
my $armory2 = Games::WoW::Armory->new();
$armory2->search_guild( { realm         => 'anvilmar',
                          guild         => "@guild",
                          country       => 'US' } );

#open file handle and write character stats
my $fh = new FileHandle;
        if ($fh->open("> guild.csv")) {

# Print Character's stats.
        foreach my $member (@{$armory2->guild->members}){
        my @members = $member->name;
        print $fh $member->name;
        print $fh ",";
        print $fh $member->level;
        print $fh ",\n";

After running the script, it will create a file named guild.csv in the directory it is executed from.  Then you can open the file in spreadsheet for OpenOffice.

 Note:  The following 3 things are required to use the script:

      1.  Realm (i.e. name of server your character is on).

     2.  Guild - Name of the guild your character is a member of.

     3.  Country - The country code of the server you play on.

 Planned Improvements:  Currently, you must hard-code the realm, guild, and country code in the script.  I plan to make those command-line arguments in the future.  I also plan to be able to print more guild member stats.  As of right now, you can only print the character name and level for ALL guild members due to a limitation in the Games::WoW::Armory module.  I have an idea for a work-a-round that I think will work but haven't gotten around to coding it yet.

Disclaimer:  This blog entry comes with NO expressed warranty, guarantee, support, or maintenance of any kind!  Use at your own risk!   

Thanks for reading and happy spying on your fellow WoW guildees.


Effective way to use bash scripts to run command line applications

Effective way of using bash scripts to start command line applications

Due to the fact that I use the eee PC as my means getting Linux portable, I often had to figure out ways to minimise memory and harddisk usage, so as to speed things up even more. So in this quest, I stumbled into the world of "command line Linux". It seems a little unnerving to me at first, as I considered myself an average Linux desktop user, who never ventured into DOS even back in those days when I used Windoze. But I googled and figure out a way to use command line applications, with less repetitive typing. In short, I use bash scripts.

What I do is I write a bash scripts that run a certain simple application, and I then I put the bash script as an entry in my desktop menu ( I run icewm, by the way). Just to illustrate how to do it, for other beginners. This is how I do it.

Below is a very simple bash script to connect my pc to my home network. Of course, the details of the encryption key and ESSID is fake and arbitrary. And "ath0" is my network device.

sudo ifconfig ath0 down
sudo iwconfig ath0 essid lala key 0123456789
sudo ifconfig ath0 up
sudo dhclient ath0

So I created the bash script and store the file as /home/user/, you can of course store it anywhere. Then I have to make the script executable by going to /home/user directory and "sudo chmod +x"

Then I go to "~/.icewm/menu". That's where the icewm menu settings can be made. I save the menu after I add in this new line "prog '' icon xterm -e /home/user/". I don't need an icon for this entry so the "icon" term is just arbitrary.

So that's done. When I right-click my desktop, I'll see an entry "", and when I clicked it and it autoruns the script and connects me to my home network.

1) Command line apps will use less resources then GUI apps.
2) Learn more about bash scripts and how to use the command line more effectively.
3) Uber-geekiness factor increases. Haha.

1) It takes a certain balls to try it first for a beginner.

Of course, the bash script is too simple. I have progressed and now my script allows me to key in ESSID and encryption keys to log into other familiar networks and even lists out the networks in the area for reference. Trick is "sudo iwlist ath0 scan | grep -e ESSID -e key -e Quality".
Have fun with this howto and maybe you can share your bash scripts for other tasks that you do. =)


Like this idea

This is my first writing to the community blog, I havn't known what it will look like after published, but I like this idea. The community blog idea. A community needs to blog itself!

First, let me introduce myself. I am a young linux hacker lived in Shenzhen, China. Here is also many people love linux and get gatherings peiodically or unperiodically, there are always some  just Linux distro hackers, try a distobution for curiosity and adventure, and may choose another after months, those freshmen! And there're also some ones like me, programmers, or deep hackers, I am a linux kernel hacker, I've contributed some kernel patches and I will contribute more, I love the kernel hacking. In some gathering we just play some distros, while in others we program together. I think I should and I will report those interesting events here.

Then let's look what it will look like, Let it rip!


Is PDF icon on the blog posts working properly?

While trying to save a blog post, I clicked small PDF icon beside print icon on top of blog post, it saved a pdf file with the summary of latest blog posts.

The post I was trying to save was in the pdf file but with 2-3 unwanted posts and it was only the summary, not the whole post.

I think this should be fixed, PDF icon when clicked on a post should only save THAT post, not the summary of all the posts.

 Requesting admins to fix or correct me if I am wrong or missunderstanding something.


Excel no longer able to multiply correctly - better use OpenOffice

You know it’s bad for Microsoft’s financial department, especially with the kind of numbers they crunch, when they can’t even perform basic multiplication. Seriously, people. it’s been 20 years, figure it out.

What am I talking about?

The “Excel 2007 Multiplication Bug,” as outlined on Slashdot:

“The example that first came to light is =850*77.1 - which gives a result of 100,000 instead of the correct 65,535. It seems that any formula that should evaluate to 65,535 will act strangely. One poster in the forum noted these behaviors: ‘Suppose the formula is in A1. =A1+1 returns 100,001, which appears to show the formula is in fact 100,000… =A1*2 returns 131,070, as if A1 had 65,535 (which it should have been). =A1*1 keeps it at 100,000. =A1-1 returns 65,534. =A1/1 is still 100,000. =A1/2 returns 32767.5.’”

How many ways do I love open source? Let me count the ways. But not in Excel.

And before you get ahead of yourself, OpenOffice does this calculation properly:

Better switch to open source if you are doing any important financial spreadsheets.

 This bug was fixed by microsoft later but what will happen to those users who are still using the buggy microsoft excel... I can only imagine :)

I just love Open Source :)


Steps Forward !

I liked the way of the new As a community portal and integration of software and the news from Linux world is the the way that it should be.

I hope this aim will keep on covering linux users all around the world, and i wish will  be %100  browser and os friendly for us. We do not like more flash animations&ads heavy scripts will be not good for many users.

And this editor Rocks light and easy to use.
I have best wishes for new

And tihis is the end of my first log.

Roger that.


linux user group for east tenesssee

looking for a user group in morristown,tn or jefferson city, tn or people in this area who would like to start linux user group

LinMinTM Bare Metal Provisioning 5.4 adds Turbo-ImagingTM and Hosting, Cloud Data Center Enhancements


Hosting, Cloud and Corporate Data Center Customers Drive Extensive List of Enhancements


REDWOOD CITY, Calif. - May 20, 2009 - LinMin, maker of award-winning LinMin Bare Metal ProvisioningTM, today unveiled Release 5.4, featuring "Turbo-Imaging," a high-performance disk imaging subsystem for disaster recovery, new operating system media management, updated Linux® and Windows® Server provisioning, extensive logging and numerous other features requested by corporate, cloud and hosting company data center managers.


Turbo-Imaging brings disaster recovery to a new level with automatic file system detection, intelligent compression and other capabilities that make it easy for data center managers to quickly roll systems back to a known-good state in case of software corruption, malicious attack or other failure. Combining server provisioning (remote, unattended operating system installation) and disk imaging in a single product makes LinMin an indispensable solution in deploying, repurposing and recovering the commodity hardware infrastructure layer used in hosting, corporate, cloud and other data center environments.


"We use LinMin extensively in our three hosting data centers for provisioning and imaging our Linux and Windows servers," said Andrew Cartwright, CTO of FiberHosting. "We are now implementing LinMin's application programming interface (API) to enable FiberHosting customers with dedicated servers to control their systems from the bare metal up. This increases customer satisfaction and reduces our own operating expenses."


"The positive feedback we're getting from customers is most gratifying," said Laurent Gharda, CEO and founder of LinMin Corp. "There is no substitute for hosting, cloud and corporate data center staff feedback to drive LinMin's roadmap for solving real world problems. As new vendors and solutions emerge to manage already-deployed physical and virtual systems, the forgotten piece of the data center cost equation remains the labor-intensive deployment, re-purposing and recovery of the hardware layer itself. LinMin helps customers optimize exactly that."



LinMin Bare Metal Provisioning 5.4 is available immediately and is available for purchase and download at  LinMin Bare Metal Provisioning for Linux and Windows is priced at $249 for up to 10 client systems, $999 for up to 100 client systems, $1,999 for up to 250 client systems, $3,499 for up to 500 client systems and $5,999 for up to 1,000 client systems.


About LinMin:

LinMin provides software that remotely provisions and images Linux and Windows on servers, blades, PCs, appliances and virtual machines. LinMin Bare Metal Provisioning (LBMP) is the industry's only truly affordable system provisioning and imaging solution that can be implemented by IT organizations of any size with very limited budgets. LinMin is based in Redwood City, Calif. with development and QA offices in Menlo Park and San Rafael, Calif. For more information, please visit




Hello Linux World!!

Hello from Turkey. 


Experiences with KDE 3 and 4

I have been using KDE 3 for a number of years now, and I have been testing KDE 4 on and off for about two years.  Over the past two years, I have had test systems containing KDE 4, but about a month ago I replaced KDE 3.5.10 on my main system with KDE 4.2.2 (on sidux, which uses Debian Sid packages).

There were a few issues at first, but the desktop continues to improve, and it is usable enough for me to use on a regular basis.  I do have other desktop and window environments available in the now unlikely event that I run across a serious problem, but I've had the system running continually this session for 2 1/2 days, and I've run it for a couple of days in a row before - now to run it with some longevity and make sure it still holds up.

I was also curious to see how well KDE 4 can do on older hardware.  I have a Dell Dimension 4100, containing a 1 GHz Pentium 3 processor and 256 MB of RAM.  I started it up last night, updated one distribution on it with the latest KDE 3.5.10 software and noticed that while it was not fast and it had some swapping, it was not terrible and it actually worked fine, just not as fast as my most current Duo Core systems with 2 GB of memory.  I wanted to see if KDE 4.2.2 would do as well, so I upgraded my sidux instance on that system and started KDE.  It still works fine, so a Pentium 3 with 256 MB RAM remains a viable platform for using the current implementation of KDE.


Order By Date in MySQL

Suppose you write a query to sort a table by date field.

SELECT aDate FROM aTable ORDER BY aDate 

The above query should sort aDate column in ascending order. But it doesnt work the way it should.
To sort date field in MySQL use following query:

SELECT DATE_FORMAT(aDate, '%d-%M-%Y'AS aDate, aDate AS sDate FROM aTable ORDER BY sDate 


Page 115 of 139

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    16 Feb » 20 Feb - Atlanta - GA
  2. LFD331 Developing Linux Device Drivers
    16 Feb » 20 Feb - San Jose - CA
  3. LFS220 Linux System Administration
    16 Feb » 19 Feb - Virtual

View All Upcoming Courses

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board