CherryPy is one of many Python web frameworks designed to simplify the development of web applications. A big problem in web apps is maintaining state. The web client doesn't stay connected to the server so neither side know about changes in the other until a new connection is made. This is a well-known problem and whichever system you choose will explain how it solves the problem. It will most likely be through a special session cookie or a modification to the URL to store a session name. Another problem is what to do when multiple requests occur at the same time. CherryPy and many other systems use threads, though there are other approaches. The two requests might make conflicting changes in the server. The prototypical example is a counter tracking the number of requests. The solution is to use a system that can handle conflicts, like a SQL database or a server that uses internal locking. Using the raw filesystem, while easy to do at the start, may lead to problems because file locking under unix is shaky at best. I could go on but there's nothing here specific to chemistry. Again, all these problems are both all well-known and solved. It's just a matter of understanding the approach used by the framework you chose. Andrew Dalke is an independent consultant focusing on software development for computational chemistry and biology. Need contract programming, help, or training?
Have you ever wanted to try out a new personality? Since we're stuck with ourselves, day-in and day-out, our own personalities might sometimes feel a little tired from time to time. So what can we do about this? There are, of course, costumes, which are probably the reason so many people look forward to Halloween -- they can be their favorite superhero for a night and revel in a little creativity. But not all of us are willing to play dress up throughout the calendar year, mainly because doing so violates generally held social norms. After all, most Web sites that offer some kind of online community allow their users to create avatars, an electronic image that represents the person controlling it. Generally, members can be as creative as they like with their avatar, either fashioning it as close to their appearance and personality as possible or creating an entirely different personality.
One of these social networking services is Zwinky, a service launched in 2006 and owned by InterActiveCorp (IAC). Zwinky lets its members create their own cartoonish, large-headed and big-eyed avatars, which they can use in several different ways. One thing to keep in mind: Zwinky is open to anyone age 13 and older. If you're younger than 13, you won't be allowed to make your own account, not even with parental permission. Zwinky profiles can also be set to "private" if you're 18 or older, but profiles of Zwinky users younger than 18 are automatically set to private. So how does Zwinky work? What can someone with a Zwinky avatar do? And what kind of place is Zwinktopia, anyway? This may be a slightly unfamiliar approach for members of other social networking sites -- most simply request that you create a username and password and fill in some personal information, including e-mail addresses and phone numbers.
Zwinky, however, requires you to download a Zwinky icon onto your Web browser, which users click on to access the program's interface. When you've successfully installed the Zwinky program and opened up the program window, it's time to customize your Zwinky character. Every Zwinky has a personal wardrobe, which users can access by clicking on the "Open Wardrobe" button near the bottom of the screen. You can manipulate a Zwinky's appearance to make it look however you want, and users choose traits including gender, skin tone, hair style and color, and more. To move a Zwinky from one place to the next in a specific area, members simply use the mouse to point and click. You can make new friends or see a list of the ones you already have by clicking on the "View/Add Friends" button at the bottom of the interface. This button allows you to either send an e-mail to a fellow Zwinky requesting friendship or to see where in Zwinky's world your friends are.
If a friend is online, clicking on your friend can bring you straight to him or her, call up that person's profile or let you send that person a Znote. Of course, if another Zwinky bothers you or makes you uncomfortable, you have the option of blocking him or her from chatting with you. After choosing outfits, accessories and physical features for your Zwinky, you'd embed the avatar into other social networking sites like MySpace. However, on the previous page we talked about moving your Zwinky avatar around. If you embed your Zwinky into a Web page, isn't it just stuck there, with nowhere to go? The name of the location is, of course, Zwinktopia. Similar to other virtual worlds like Second Life and Club Penguin, Zwinktopia allows you to take your personal Zwinky avatar into an animated, video-game-like realm to roam, chat and play games. Many of the locations are based on real-life establishments -- everything including arcades, coffee shops and dance halls are fair game in Zwinktopia.
|