Code Samples

Create Drupal 6 Modules with New Book

Submitted by DuaneMoraes on Tue, 06/17/2008 - 1:37am.

Learning Drupal 6 Module Development is a new book from Packt, which acts as a practical tutorial for creating Drupal 6 modules with PHP. Written by Matt Butcher, this book will help users to walk through the development of complete Drupal 6 Modules.

( categories: general | PHP )

Learn to develop web applications with new book on the Yahoo User Interface JavaScript library

Submitted by DuaneMoraes on Fri, 06/13/2008 - 1:10am.

Learning the Yahoo! User Interface Library is a new book from Packt that teaches users to develop next generation web applications with the YUI JavaScript development library. Written by Dan Wellman, this book introduces the popular open-source YUI JavaScript library and takes users through each of the fully released components in detail looking at the classes that make up each component and the properties and methods that can be used.

( categories: general | JavaScript )

Create custom Applications for Facebook with New Book from Packt

Submitted by DuaneMoraes on Fri, 06/13/2008 - 1:01am.

Packt is pleased to announce a new book based on one of the most popular websites in the world: Facebook. Written by Hasin Hayder and Dr. Mark A. Bain, Learning Facebook Application Development will help developers create new features and applications using the Facebook Platform and PHP.

( categories: general | PHP )

Create and manage a social networking site with new book on Elgg

Submitted by DuaneMoraes on Thu, 06/05/2008 - 4:43am.

Packt is pleased to announce the availability of its new book on Elgg, the free open-source tool used to create social networks. Written by Mayank Sharma, the book teaches users to create their own fully customized, hosted social network for their business, organization, or group of friends.

( categories: PHP )

Explore the core elements of Enterprise JavaBeans 3 with new book from Packt.

Submitted by DuaneMoraes on Thu, 06/05/2008 - 4:36am.

A new book on the Enterprise JavaBeans server-side component architecture for modular construction of enterprise applications has been published by Packt. Written by Michael Sikora, the book EJB 3 Developers Guide is a practical guide for developers and architects to the Enterprise Java Beans Standard.

( categories: Java )

Some introductory AutoIT code to create a backup batch file and schedule it (mybackup_src.zip v0.4 by Ben Chapman)

Submitted by bchapman on Wed, 05/28/2008 - 11:33am.

Recently, some of our older desktops' hard drives have started failing. We've discovered that a lot of our users do not backup their valuable desktop data to our server. There are lots of ways to deal with this: folder redirection, backup-pc, Dantz/EMC Retrospect, etc. However, I wanted something that would be a stop-gap until we could implement a better solution.

Our users use Windows XP and are admins on their local machines. We have a file server; user home directories on the server are mapped to drive H:\ . A reasonable solution to the backup issue is to use a batch file with xcopy commands combined with Windows task scheduler. The difficulty is in teaching users how to install the batch file and configure the Windows task scheduler.

The result was this AutoIT v. 3 script. It might be useful as a example of an approach to writing a simple AutoIT script. It demonstrates some GUI menu functionality, along with reading stdout and stderr, running DOS programs.

( categories: Code Samples )

Python script for updating list of approved posters in mailman list from ldap (ldap_addposters.py v0.1 by Ben Chapman)

Submitted by bchapman on Wed, 03/29/2006 - 11:42am.

Imagine that you run a mailman (http://www.list.org) mailing list called "2006-announce". Everyone on your faculty and staff should be able to post to this list; however, not everyone wants to subscribe to the list. All members of your faculty and staff are members of an LDAP group called "contactlist". Because your faculty and staff come and go, you want an automated method for making sure that current members of contactlist have permissions to send mails out to the announcement lists. You'd like to have something that you could run from cron that would make sure that people can post to the appropriate lists.

( categories: Code Samples | Python )

Seating Chart Code (seatingchart.zip by Jamie Butler, Matthew Kurpiewski, and Luis Torrefranca)

Submitted by butler on Wed, 02/22/2006 - 2:31pm.

This is our first version of a seating chart program using PHP and MySQL. Many ideas have come up to improve this code, but this is at least a start. I hope this may benefit a few of you. Ideally if you make any improvements you will share them back with us. I plan to add the ability to output PDF documents and a GUI to create the room layouts, perhaps this will get done over the summer.

( categories: Code Samples )

Samples for CALI WebAPI (xmlrpc.zip by Tom Bruce, Ben Chapman, Elmer Masters)

Submitted by elmer on Mon, 02/06/2006 - 5:07pm.

This is a set of sample implementations of the CALI Web API.  This archive includes PHP, Python, and Ruby reference code.  Please see the README files in each sub directory of more details if available.For general inmformation on the Web API, visit the FAQ.Elmer Masters 2005 CALI presentation on the subject is here.

( categories: PHP | Python | Ruby )

access2mysql (access2mysql.zip by unknown)

Submitted by tdivito on Mon, 12/05/2005 - 10:53am.

2 templates for converting exisiting Access databases to other formats including MySQL.  Features include conversion of dates to MySQL friendly formats.

( categories: Code Samples | Templates )

Python script to create faculty staff facebook from an LDAP directory (makefacebook.py v0.1 by Ben Chapman)

Submitted by bchapman on Thu, 12/01/2005 - 11:02am.

We are using this to generate a faculty-staff facebook in PDF form.  Elmer adds:  The facebook is generated from a query to a Novell eDirectory LDAP server.   The last argument can be a URL holding a JPG file or it can be "nophoto.jpg".  Please try it with other LDAP servers and let us know what works.

( categories: Python )

A dirty little browser checker (browsercheck.php by Elmer Masters)

Submitted by elmer on Thu, 06/02/2005 - 6:41pm.

This tidbit just grabs the raw browser ID string from the $_SERVER variable. It looks for a couple of strings that identify IE, Opera, Mozilla, and Netscape 7.x. If it doesn't find one of these it assumes an old browser that can't deal with things like CSS and alerts the user. Finally, it sets a $_SESSION variable that can be checked later. Quick and dirty, but works for me :)

( categories: Code Samples | PHP )

AutoAccount (998.zip by Brian McFarlane)

Submitted by elmer on Thu, 06/02/2005 - 6:39pm.

(This is VB6)

( categories: .NET )
XML feed