On the evils of software bloat

Today I found out that Gallery 2.3 was released about a week ago. It’s been a few years in the making and has some very needed upgrades and bug fixes. I had thought about this before but really realized today just how bloated a Gallery2 installation can be. The English-only installation has well over 2000 files that need to be uploaded to a server. Granted, it could all be done on the server with a tar ball, but it is easier for me to unzip it on my local machine and upload via ftp.

The full installation option (the one that comes will all of the languages pre-loaded) runs somewhere around 10000 files. Quite frankly, that’s a bit absurd. With so many files and so many subdirectories, it becomes unmanageable to even unzip the installation file.

Why does Gallery2 need so many files? I really couldn’t tell you although it looks like the vast majority of them are language files. The KISS principle doesn’t seem to be at play here. I haven’t been able to find out if this was actually created yet, but this language manager tool that was in the works a few years back sure seems like something nifty that could be very useful, especially for those of us who ended up with many large language packs cluttering up our installations. After all, I really don’t need to use the administrative interface in British English.

WordPress so far has managed to stay away from such a large bloating problem. It seems to have better management of how many files it requires on your webserver. However, I wouldn’t be surprised to see WordPress have the same fate befall it. Beware, WordPress, and take note Gallery2, it is REALLY annoying having to work with thousands upon thousands of files on my webserver.

LaTeX Graphicx Package Troubles

I’m authoring my thesis in LaTeX, a sort of scripting language similar to HTML that produces beautiful final results… that is, if you can get it to cooperate.

My current problem is with trying to use the graphicx package.  I can’t get a graphic to display correctly.  The code looks correct but it keeps throwing strange errors.  I copied the code verbatim (with changing the file i’m trying to insert) from a friend’s masters thesis.  It worked in his so I don’t see why it’s not working in mine.  We are using the same class files and whatnot and the same general format.

The problem comes (i think) in the width variable.  That textwidth doesn’t seem to be working correctly.

The Code:

\begin{figure}[h]
\begin{center}
\includegraphics[width=0.6\textwidth, keepaspectratio=true ]{figures/hofstede_onion.png}
\caption{Hofstede's Onion Model of Culture: Cultural Values are located at the core and are surrounded by Rituals, Heros, and Symbols with Practices drilling down from the outside to the Values center. Reproduced from \cite{Hofstede01}.}
\label{fig:hofstede_onion}
\end{center}
\end{figure}

The Error Message:

! LaTeX Error: Cannot determine size of graphic in figures/hofstede_onion.png (no BoundingBox).
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
1.18 ... ctratio=true ]{figures/hofstede_onion.png}
) [5]

Thoughts, insights, ideas?

UPDATE:

With the help of Alex (recommended by Anne), I was able to get the graphics files to pop out.  The key was switching from outputting into a DVI file or a PS file to outputting directly into a PDF file.  To do this in TeXnic Center, I went to Build -> Select Output File.  I then chose the PDF option.

Other problems still exist with my output, but at least some of the big ones are now addressed.  No doubt, there will be further whining for help as I progress with my thesis.