QuicksearchCategoriesShow tagged entriesCalendar
Syndicate This BlogBlog Administration |
Related tags
apparmor c c++ computer science fedora gnuplot howto lucid-lynx network programming python rpm selinux ubuntuThursday, June 16. 2011Gnuplot: 'illegal month'I've recently stumbled across the following error message of Gnuplot:
Gnuplot can handle time data. With Although every column used the same format, I still got this error message. Strangely enough, if I tested the plot command within gnuplot, the error message disappeared; only when I ran the script to plot the data the error message appeared. Turns out that the reason for the error message is not a malformed data line, but a malformed command. In my case, I have used the wrong format for specifying the coordinates of
Posted by Andreas Bernauer
at
18:14
| Comments (0)
Defined tags for this entry: gnuplot, knowledgebase
Sunday, May 29. 2011Fixing vimperator on Ubuntu 10.04After upgrading to Ubuntu 10.04, vimperator could not read or write its .vimperatorrc anymore. Although all permissions were set correctly, the access to this file was denied. The access is also denied to firefox if you want to save a file as '.vimperatorrc'. Strangely, this is true for any file named '.XYZrc' in your home directory. The error message in the logs is
The access is denied by apparmor, in particular because of a rule in the privacy settings that disallows read or write access to *.rc files in the user's home directory. I don't know, why this broad apparmor rule is necessary, but I found a workaround for the .vimperatorrc problem. Reading the vimperator sources, I found that the configuration file is expected as '.vimperatorrc' (which causes the aforementioned problem) or '_vimperatorrc' (for Windows machines). It turns out that if on both GNU/Linux and Windows platforms one of the files does not exist, the other one is tried instead. So, to let vimperator read its .vimperatorrc file, just rename .vimperatorrc to _vimpeatorrc. And keep in mind that firefox cannot read or write any file named *rc in your home directory (such as .my-vimperator.rc). Alternatively you can disable apparmor (which I don't recommend) or update the apparmor rules (which I don't know how to do without removing the offending rule in the privacy profile as the manual page is incomplete here as far as I can see).
Posted by Andreas Bernauer
at
13:57
| Comments (0)
Sunday, March 20. 2011Getting Prism 2.5 working with Ubuntu 10.04I've recently upgraded my system from Ubuntu 8.02 to 10.04 (Lucid Lynx). After the reboot, my wireless PCI card with Intersil Prism 2.5 Wavelan chipset (rev 01) did not work anymore. First I thought the driver for this rather old card is missing. However, it turned out the interface was named wrong by the udev rules. To fix the issue, I edited
to
That is, I commented out the section for After a reboot, I could use my wireless network again. Update: However, a new entry was added to the udev rules file so that after the next reboot, my wireless network card did not work anymore. The culprit was the udev rules generator file at
Of course, if you add or change your network cards, you should uncomment this new line to generate new rules. Monday, March 8. 2010Zimbra Keyboard ShortcutsI'm currently evaluating Zimbra as my webmail client. It looks pretty nice and even has keyboard shortcuts. However, the listings available on the net seem to be outdated or not match with my configuration, so I copied the listing from the Preferences dialog and put them on a cheat sheet, that you can download here: Zimbra Keyboard Shortcuts (PDF). Friday, January 30. 2009g++ error message: 'non-class type'Who's designing the error messages of g++? Anyways, here is a translation:
means: in class Happy C++ coding! Tuesday, January 27. 2009Global and local variables in pythonI just stumbled over my python code, similar to the following one, which raises an UnboundLocalError in the first line of
Continue reading "Global and local variables in python"Thursday, November 6. 2008Installing Python 2.6 on Ubuntu 8.04I wanted to 'upgrade' my python from 2.5 to 2.6 on Ubuntu. Unfortunately, I could not find .deb packages for Ubuntu. Fortunately, the Python 2.6 sources (sig) are available, so I can compile it from source. Here's what I had to do to get it running. (Short version: Saturday, May 17. 2008gvim spell correction popup menuI gvim, if you set
gvim will spell-check your file and underline wrongly spelled words with a red line much like you know it from OpenOffice. If you
you can even right click on any misspelled word to get a list of suggested corrections. However, this sometimes did not work for me. I could not figure out a reason, until I read the help docs again, which clearly say:
They actually mean what they say: if I release the right mouse button too fast, the menu appears, but it does not replace the misspelled word with the corrected word. Only if keep the right mouse pressed until the menu appears, it works, for whatever reason. RTFM!
Posted by Andreas Bernauer
in computer science at
16:01
| Comment (1)
Defined tags for this entry: computer science, knowledgebase
Tuesday, May 6. 2008Lost static objects in static libraries with GNU linker `ld`If you link a static library to your executable, the GNU linker In my case, I have a factory ( The problem arises if the class is not used directly and the linker throws the static object away. The registration does not happen and thus I can't use the factory to create an object of the class. There are several possibilities to work around this feature: Use Use Use static initializers (thanks to Alex for this). This is my preferred method. I use a throw-away class, which I add to the header file:
Thursday, December 13. 2007Restricting access to directories and files in Apache's httpdI always have to look it up how to restrict access to some files or directories on my web server, so I write it down here. Two steps:
Posted by Andreas Bernauer
in computer science at
17:57
| Comments (0)
Defined tags for this entry: computer science, knowledgebase
Sunday, November 25. 2007How to get ssh server fingerprint informationWhen you connect to a host that you have not connected to before via ssh, ssh prints a message like
Usually, you say
Posted by Andreas Bernauer
in computer science at
12:49
| Comments (7)
Defined tags for this entry: computer science, knowledgebase
Tuesday, August 14. 2007Gcc inline assembler howto summaryI found the Howto on the gcc inline assembler difficult to understand, so I wrote up the major parts here and created some kind of summary. Continue reading "Gcc inline assembler howto summary"Friday, June 29. 2007selinux warning: "Multiple same specifications for ..."On my machine running Fedora 7, I saw message like
for some files or directories, especially when doing an The solutions was some stale I'm still wondering, where this Monday, June 18. 2007cfengine: "destination type is silly"Writing meaningful error message is sometimes hard. Even harder is understanding error message of someone else's program. Today I was buffeled with an error message from cfengine:
How can a destination type be silly? And what file/dir/link does not match? Looking into the sources (see second match) revealed that the destination type refers to the type of So the solution to the problem is explicitly naming the target file in the cfengine configuration files:
I wish the error message from cfengine would be a bit more verbose on this. But now I know what the error message means, and so do you.
Posted by Andreas Bernauer
in computer science at
15:15
| Comment (1)
Defined tags for this entry: computer science, knowledgebase
Friday, June 8. 2007Hints on writing (bash) shell scriptsToday a small hint that can save you a lot of debugging time when writing shell scripts. If you start your (bash) shell script with If you want to debug your shell script, you either insert echo commands throught your script, or you can just insert I thought about posting similar hints for |
Recent Entries
Quick link |
|||||||||||||||||||||||||||||||||||||||||||||||||

