New Projects - Fresh from the Labs
Unlike the majority of projects I review, this one actually is a set of multiple programs, presented as one suite. Whether you're into crystalline structures or designing chemical molecules, this may be the project you're looking for.
Available at the Web site are source tarballs for both the stable and development versions, and older versions are available in distro repositories. I ran into compiling problems with the development version, so I went with the stable version. Library requirements are quite extensive. According to the documentation, “to compile and use the GNOME Chemistry Utils, you need libglade-2, goffice, GtkGLExt, OpenBabel, BODR and their own dependencies. Everything except OpenBabel is available from the GNOME repository or one of its mirrors.”
I found a few more needed libraries, from both the configure and make stages. Although listed above, libgoffice, libopenbabel and libgtkglext1 all needed their development (-dev) packages installed to continue. Other needed packages were libgsf-1 and its -dev, libgcu0 and its -dbg, and chemical_mime_data.
Assuming you have the tarball, extract it and open a terminal in the new folder. From here, it's the standard fare of:
$ ./configure $ make
If your distro uses sudo:
$ sudo make install
If your distro uses root:
$ su # make install
As mentioned before, this is a suite of utilities rather than just one, so I take a brief look at each utility here. Below each utility's title, I provide the shell command to run the program. Unfortunately, partway through reviewing this suite, I managed to “break” several utilities, seemingly beyond repair. No matter which files I wiped, or how many re-installations I tried, I couldn't get the programs working again. Therefore, reviews will be brief (and possibly theoretical).
“GChemCalc is a simple calculator for chemists”, according to the About page. Below the main menu is a field for entering formulae, and GChemCalc will try to interpret the symbols you enter, either by atom or nickname. Once the formula is entered, its raw formula form will be written below, as well as its molecular weight. In the main field, the composition will be displayed according to each element along with its percentage of mass.
Click on the Isotopic Pattern tab, and you can see the monoisotopic mass as a direct number and also displayed in a line graph, which can be exported as an image.
I got far enough to realize that structures you build in this program can be used by most of the other programs. I'd just attempted to re-create an LSD molecule from the Wikipedia diagram, but the program crashed when I saved it as an .mdl file.
To start designing molecules, pick an object from the tool window, such as Add a four membered cycle, and you now can “draw” in the white workspace. Click and hold the mouse, and if you move the mouse around, the still-colored object will rotate until you release the mouse button, then the object will go black and stay in place. Although its operation seems somewhat arbitrary, moving forward and backward with the mouse will make the object larger or smaller (although you might need some perseverance to get it working).
As far as symbols and their placement, something like C or N will update its appropriate symbols as you continue to expand on the molecule, balancing itself out (as far as I can tell anyway, I'm not a chemist).
Once you have a structure you're happy with, you can open it in GChem3D, allowing you to see it as an actual 3-D structure, instead of bland 2-D lines.
Something I'd have liked to explore more was a button marked: “Export for Wikipedia publication”. I'm guessing that gets used a lot.
Unfortunately, I killed GChem3D when opening a bad file (the first of the casualties) and didn't get a chance to take it for a test run. The man file says: “gchem3d is a small chemical viewer application, which can show several chemical file formats”. From what I can tell from the other documentation, this takes place in an OpenGL 3-D window, letting you rotate and interact with each structure, as well as customize the visual atomic representation.
According to the man file, “gcrystal is a light model visualizer for crystal structures, based on the GNOME Chemistry Utils, that displays models of all sorts of crystal microscopic structures using OpenGL”. Although I didn't break this program, I couldn't make sense of it as a layman; however, the concept appears to be similar to that of GChem3D, but for viewing and editing crystalline forms rather than viewing molecular structures.
This gives you a periodic table of elements that has a great database of information available for each element. Click on an element, and you'll be given four tabs. The first, Main, consists of the element's name (which is also translated into several other languages on the right), the atomic number, atomic weight and electronic configuration. The other tabs give you the electronic properties, radii and thermodynamics.
According to the man file, “gspectrum is a simple spectrum visualizer. It is only able to display files in the JCAMP-DX format”. This was another casualty of mine, but it appears to display JCAMP spectra on a basic X-Y scale.
This was the unluckiest month I've had at LJ. I think I went through a dozen programs that wouldn't work before I came across these two projects. Although half the programs in this suite died on me (in a way I've never encountered before), I'm sure distro-stable versions will be a lot more reliable. Bad luck aside, the GNOME Chemistry Utils suite seems to provide viewing, access and editing to some file types that are used in important scientific circles. That alone is worth this project's perseverance.
John Knight is the New Projects columnist for Linux Journal.
Practical Task Scheduling Deployment
July 20, 2016 12:00 pm CDT
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.Register Now!
- SUSE LLC's SUSE Manager
- Managing Linux Using Puppet
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- My +1 Sword of Productivity
- Non-Linux FOSS: Caffeine!
- SuperTuxKart 0.9.2 Released
- Google's SwiftShader Released
- Doing for User Space What We Did for Kernel Space
- Parsing an RSS News Feed with a Bash Script
- <Watch> HD! Watch Walking On Sunshine Online Full Movie Streaming
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide