After running Mac OS X for some years I encountered that the “Open With…” popup menu had multiple entries of one program listed, which was kind of annoying. I tried to find solutions for this, but couldn’t find one, until I eventually ask Dr. Google the right question and found a blog post about it. Anyway, all you have to do is to start the Terminal.app and run
LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\
-domain system -domain user
Then restart the Finder.app or restart the computer. Worked well with Mountain Lion!
In of my former research projects I wrote a Single Scatter Cluster code (called YaSC) where I made use of “The Greens library”. I found it quite useful to test my own routines against functions of this library as well as the Gnu Scientific Library. While the latter is still around and alive is the Greens library not to be found in the net anymore. Since I found it quite useful and I’m sure it’s useful to others as well I’m publishing the code again.
Continue reading The Greens library by Peter Koval and Stephan Fritzsche
There is no official FindGSL.cmake module in the cmake distribution to “automagically” find the Gnu Scientific Library on Windows, Linux and Mac OS X. I have written such a module which works for my configurations, but might not cover all GSL installation on all OS. But you can modify it to fit your needs.
Continue reading cmake module to find Gnu Scientific Library, FindGSL.cmake
Sometimes one wants to download a source package or similar from sourceforge with curl and not with the browser, e.g. in a script where one wants to download a package automatically. It turns out, that due the latest changes in the download system of sourceforge this is not straightforward. Continue reading Use curl to download a file from sourceforge (mirror)
This problem regularly comes up at the wxWidgets mailing list: You write an application for Mac OS X which utilizes a GUI and when you start the program, you can see the user interface, but the window doesn’t have the focus and also you can’t click it. So the window is not reactive in any way. Usually the answer is, that you should put your program in an application bundle, which is basically a folder which is called “something.app” (the executable needs to be copied to “Contents/MacOS” and you also might need to add an Info.plist file) and run the application bundle with “open something.app”. But there are situations where this is not really possible, e.g. you have some command line tool (PLplot program) and then you run some code which opens a GUI (wxWidgets driver for PLplot). If you write some easy program to calculate something and show a plot with the help of PLplot you don’t want to create an application bundle for that. Continue reading Solution for “My Mac OS X GUI program doesn’t get focus if it’s outside an application bundle”
In a former post I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn’t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals (libgd is not easily installed due it’s dependencies) and the old pdf terminal (which depends on the not-very-free pdflib). Since gif and jpeg (libgd terminal) shouldn’t be used for plots anyways, this is no loss. Since these formats are the ones which I need mainly, I show in this post how we could compile and install Gnuplot with little effort, providing X11, png and pdf terminal (and others which are compiled in anyway). Continue reading Install Gnuplot 4.4.0 on Mac OS X
SciTE is a great text editor – in fact I tested a lot of text editors on Linux, Windows and Mac OS X, but always come back to SciTE since it is comfortable but still fast and small. Everytime I install SciTE on a machine I change the settings so that they fit my need. It’s time to post them somewhere, so that I modify SciTE the next time faster ;). Continue reading My User options file for SciTE
In order to prepare Linux executables for distribution, it’s a good idea to compile the executable in an old Linux distribution. Thus it depends only on “old” versions of libraries and the executable should work on most distributions out there (which provide newer but backward compatible libraries). E.g. Dialogblocks, a RAD for wxWidgets, is built in Debian Etch. If you don’t have a spare computer lying around it’s a good idea to install Debian Etch in a virtual machine like VirtualBox. Continue reading Install Debian Etch as guest in Virtualbox
The most frequented blog entries here are about installing Gnuplot on Ubuntu Linux or Mac OS X. These entries are still valid for the newer Ubuntu versions. But Gnuplot newest version 4.4.0 was already released, and in this release there are cairo based pdf and png terminals provided. So you don’t need the pdflib anymore. Below you’ll find updated instructions to compile and install Gnuplot 4.4.0 with wxt and pdfcairo terminal. These instructions were tested on Ubuntu 8.04 (Hardy Heron) and Ubuntu 9.10 (Karmic Koala) and should also work on 8.10 (Intrepid Ibex) and 9.04 (Jaunty Jackalop). Continue reading Install Gnuplot 4.4.0 on Ubuntu Linux
There is no official GTK framework for Mac OS X available. They are working hard on it, but in the moment you are forced to compile the framework on your own, though the instructions don’t look that complicated. You could also use macports or fink, but when I use them I always encounter some problems, if a package doesn’t compile. I found an easy and fast solution to install the GTK framework for Mac OS X (using X11) and you also get cairo, pango and other libraries of the GTK project. Continue reading GTK-Framework for Mac OS X (as well as cairo, pango, ….)