In the past, I've done a fair bit of work with government departments. Here are three things I learned from that experience:
- government workers love meetings
- government workers also love jargon
- when you combine meetings and jargon, you have excellent conditions for a quick game of Buzzword Bingo*
If you've yet to play Buzzword Bingo, you're missing out on great fun! It's a game in which you collect buzzwords, clichés, and weasel words, then arrange them in a grid and check them off as you hear them during a particularly wordy meeting. When you've checked off a row, column, or diagonal line -- bingo!
With just a little bit of beginner PHP and a good collection of jargon words, you can make your own buzzword bingo card that's randomly generated every time you load the page. Let's take a look.
(*Buzzword Bingo has a less than worksafe name too, but because we want this newsletter to pass by unimpeded by any cursing filters, I can't repeat it here.)
Step 1: Create a Function Shell
We'll be creating a function called Bingo to generate a random buzzword bingo card, which we can then include within a document. Let's start out by creating a document shell with the Bingo function inside (I've called mine bingo.php):
function Bingo() {
}
?>
Step 2: Compile Some Buzzwords
Grab a list of the jargon words or phrases you'd like to see in your bingo cards. You'll need at least 25 to fill a bingo card, so be sure you have a good collection. I've just spent an amusing few minutes strolling around Weasel Words, a site devoted to collecting some horrible examples of managerial speak, and I've plucked a bagful of my favorites.
Let's pop these in an array inside our PHP function:
$buzzwords = array(
"leverage",
"synergy",
"stakeholder",
"touch-points",
"knowledge initiatives",
"cross-organizational collaboration",
"strategic planning",
"dynamics",
"catalyst",
"values-driven",
"evangelize",
"incentivize",
"loop back",
"let's take this offline",
"360 degree thinking",
"in the pipeline",
"actioning",
"paradigm",
"2.0",
"going forward",
"game plan",
"the end of the day",
"thought leading",
"on board",
"monetize"
);
Step 3: Do the Shuffle
We want to make sure our card has a random arrangement of buzzwords, so we'll use PHP's shuffle function to jumble up the items in the array:
shuffle($buzzwords);
Step 4: Prepare a Table
Bingo is all about filling up rows or columns in a grid, so we'll use a table to arrange the items.
Let's create a new variable called $bingocard and start preparing the table markup. You can see I've left a gap in the middle -- this is where we'll later put the code that creates the cells and rows.
$bingocard = "summary='A random selection of 25 buzzwords
arranged in a bingo card'>";
$bingocard .= "";
$bingocard .= "B |
I | N |
G | O | ";
$bingocard .= "
";
$bingocard .= "";
$bingocard .= "";
// here's the gap
$bingocard .= "
";
$bingocard .= "";
$bingocard .= "";
Step 5: Create Cells and Rows
We now need to create 25 cells from the items in our buzzwords array. We'll use a for loop to iterate through the items in our shuffled array 25 times, and create a table cell for each. That for loop goes in the gap we left in the previous step.
Our table will be a 5x5 grid, so we'll also need to create five rows, each with five cells. We already prepared the start of our first row and the end of our last row, so we'll also need to double-check to make sure we don't do this on the last cell.
To work that out, I've used a variable $rowend, which is the remainder of $cell + 1, divided by five. After we create each cell, there's a small if statement to check whether a $rowend is zero, and that it isn't the 25th cell. If that's the case, we'll close and open a table row element.
Here's the for loop:
for($cell=0; $cell<25; $cell++)
{
$rowend = ($cell + 1) % 5;
$bingocard .= "" . $buzzwords[$cell] . " | ";
if($rowend == 0 && $cell < 24) {
$bingocard .= "n";
}
} Step 6: Echo the Table
We've built an array, shuffled it, and made it into a table. All that's left to do now is print it:
echo $bingocard;
… and we're nearly done! You should now have a PHP file that looks similar to Example 1.
Step 7: Drop It in a document
Let's now use this function in a web page. Include the bingo.php file at the start of the document:
Now call on the Bingo function wherever you need to put your card:
Use some CSS to style the buzzword bingo table how you'd like. You can see a very plain example of a bingo card in Example 2, and the results in Example 3. You might even like to layer on some JavaScript to let players check off each cell by clicking on it, or cause an amusing effect when the player achieves bingo.
Step 8: Play!
When you're happy with how your card looks, it's time to pass on the URL of the bingo card to your co-workers. Next time there's a meeting, print a copy for every player, and see who can call bingo first!
Read the blog entry:

Joomla (TM) is among the most popular Open Source content management systems that exist today, in the company of Drupal and WordPress. If you just need to build a web site for yourself and are unfamiliar with all this HTML stuff, or you develop web sites for other people, or if you’re at the pointy end of developing web-based applications, then Joomla really should be on your evaluation list. It’s easy to install, use, and extend.
Installation
The server requirements for Joomla are fairly minimal. You need a host that supports PHP and MySQL, and an account with at least 50MB of disk space. This allows for the Joomla install, the database, and room for a bit of media. While Joomla can run on earlier versions of PHP, for security reasons your host should be running on the latest version of PHP4 (4.4.9 was the final version of PHP4 after development was halted) or PHP5. Joomla does run better on PHP5 but watch out for buggy versions like 5.0.4. The most desirable version of MySQL to use is version 4. It’s also wise to choose a host that runs PHP in CGI mode as this takes care of a great many annoying problems caused by file permissions. More information on the technical requirements is available on the Joomla web site.
You can download the latest version of Joomla from the Joomla site as well. When a new version comes out you’re able to download incremental patch packages that only contain the changed files between versions, thus saving you a little upload time and bandwidth.
Transfer the files to your server in the normal fashion, either by uploading the package and unpacking on your server, or unpacking first and then uploading all individual files (the latter takes a while). Once that’s done, that’s generally the last time you need to touch your FTP Client; the rest of the set up is done in your browser.
Point your browser to the URL of your site—including any subfolder path if required—where you unpacked all the Joomla files, http://www.example.com/joomla/. You will be taken to the Joomla installation wizard, as shown in the following screen:
On this screen you can select the language for the installation process (there are over 40 to choose from). Click Next and you come to the Pre-Installation Check screen.
This screen gives you an indication of whether your host has all of the required or desired settings for the Joomla site to run. Assuming all is well, click Next and you will come to the License Information screen. This screen presents you with a copy of the GNU General Public License under which the Joomla source code is released. Peruse at your leisure and click Next. This brings you to the Database Configuration screen.
This is probably the most complicated part of the process because you have to know your database credentials for the site to work properly. Often this is done using Plesk, Cpanel, phpMyAdmin, or the command line if you are a true geek. But if you’re unsure you need to ask your hosting service. I’m going to assume that you already know how to create your database and user account:
- The database type is likely to be “mysql” (if you know what “mysqli” is then you probably know if you should select it).
- The hostname is likely to be “localhost” but check with your hosting service or IT department.
- The username and password will either have been created by you or given to you by your hosting service.
- The database name is either one you have created, or if the database user account you have has permissions to create a database, then you can enter a new name.
If this is a first-time install, don’t worry about the Advanced Settings slider. It’s only needed if you are installing over the top of an existing database.
Click Next. There might be a short delay while the database scripts are run and, if no errors were encountered, you will be presented with the FTP Configuration screen. Unless you know you’re going to have problems with file permissions (from previous experience), then you can skip past this screen. Joomla’s “FTP Layer” attempts to address some file permission issues but, as stated before, if the host is running PHP in CGI mode, you’re quite safe to omit this step.
Live on the wild side and just click Next; this will bring you to the Main Configuration screen.
On this screen we set the Site Name and then the Super Administrator email address and password. We can also optionally install some sample data that will produce a fully fledged web site—to give you an example of what you can do—or your can load a migration script from the previous version of Joomla. In this example we’ll bypass loading any sample data because we want a clean site to work with.
Click Next and you’ll be taken to the Finish screen. Now, I told a lie before. You’ll have to use your FTP Client or File Manager to remove the folder called installation. This is really important because the site will fail to work otherwise. Besides, there are some unscrupulous people out there and, armed with a strong knowledge of Joomla, they could well do some nasty things to your site if you leave it there.
Opting to be lazy and just renaming the folder is unwise—make sure you delete it completely. When you have done that click the Site button. You will be presented with a fairly bland site and a Home link. We need to fix this!
For more information on installing Joomla, see the Joomla Documentation site.
Using Joomla
Well, the entire scope of what you can do with Joomla is far too much for a single article. The Absolute Beginner’s Guide to Joomla is a reference that gently leads you through what you need to know to become a seasoned Joomla master. For now though, we’ll look at how to place a few articles on the site.
Joomla is one of the few content management systems that completely separates administrative duties from the actual web site that your visitors see. We reach the Administrator by adding “/administrator/” to the URL path in your browser, for example: http://www.example.com/joomla/administator/.
You’ll be asked for a login Username and Password. The Username is “admin” by default and the password is what you set during the installation process. Once you’re in, you’ll see what is called the Control Panel, a screen that will become very familiar to you over time.
To see the fruits of your labor, click the Preview link that resides just above the Toolbar (or use whatever key or mouse-click combination you need to open it as a new tab).
Viola! You have content.
That’s about all we can cover in this introductory overview. Next time (if they’ll have me back) we’ll look at making the site sizzle with a new template (honestly, the stock one we ship is nice, but really boring) and adding a cool Ajax-driven comments system so that we can start a blog happening.
Useful Links
In the meantime, there are a number of links you absolutely have to know about when beginning your journey into the Joomla-sphere.
www.joomla.org is the main site. The homepage is useful as it aggregates feeds from various locations, and there is some information about the project if you’re interested in that kind of stuff.
community.joomla.org is the hub of the Joomla information universe. It hosts all of the official blogs that come from various working groups in the project, as well as a really cool aggregator of Joomla-related sites (take a look at JoomlaConnect—it will connect you with the highflyers in the Joomla community ).
You'll need to bring your shopping bag to extensions.joomla.org because it's the place where you find out what’s available to add on to Joomla. There are literally thousands of different bits to add—some free, some commercial.
If you really want to be in the mood you can buy a T-shirt, but your main focus will probably be all the books available about Joomla.
Perhaps less exciting than the other sites but useful nonetheless, the documentation wiki site holds a wealth of community-contributed information about using and extending Joomla.
Joomla® is the trademark of Open Source Matters, Inc. in the United States and other countries.
About the author : Andrew Eddie
Andrew Eddie is the owner of a small web consultancy based near Toowoomba, Australia and co-owner of the product solutions company JXtended which makes several free and commercial extensions for Joomla!, the award winning Content Management System and a project he co-founded. Andrew has been involved in the Open Source Software movement in professional, volunteer and leadership capacities since 2002, and he currently serves as one of the Development Coordinators of Joomla!. He also speaks regularly in Australia and internationally, advocating the cost effectiveness of Open Source software and generally sharing his knowledge about how individuals and business can be empowered by using Joomla!.
Thanks to sitepoint.com
Source : http://www.sitepoint.com/article/introducing-joomla/