QuicksearchCategoriesShow tagged entriesCalendar
Syndicate This BlogBlog Administration |
Thursday, 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. Saturday, December 25. 2010Merry Grav-mass!Merry Grav-mass to you all! Let's celebrate the birthday of Isaac Newton today, or even better, the ten days of Isaac Newton as suggested by Olivia Judson in the New York Times. Tuesday, October 5. 2010Thank you, Richard StallmanThank you Richard Stallman for 25 years of free software. And for the GNU/Linux system. That is all.
Posted by Andreas Bernauer
in meinung at
09:49
| Comments (0)
Defined tags for this entry: computer science, meinung
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). Sunday, November 29. 2009Plotting data with gnuplot in real-timeI needed to plot data from a program in real-time for a demo, that is, as the program generates the data, I wanted it to show in some nice diagram. A friend pointed me to Visualize real-time data streams with Gnuplot by Thanassis Tsiodras, which is very nice: you specify the number of streams to plot and where to plot them, and feed it with lines like '0:1.23', '1:2.3', etc. defining the data points for the individual streams (here: first point on stream 0 is 1.23, first point on stream 1 is 2.3, etc.). However, I needed to plot several streams in a single window, which that version lacked. So I extended that program with the ability to plot several streams into a single window (download). For this, you specify both the number of streams you want to plot and the number of windows you want to show. Furthermore, you specify in which window each stream is plotted. I kept as much as possible of the original command line interface to ease the transition to this new version. The result looks like this: Continue reading "Plotting data with gnuplot in real-time"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"Wednesday, January 21. 2009Updated SystemC 2.2.0 docsI've just updated the documentation of SystemC 2.2.0. It includes more graphs, the source code of the .cpp files, and I turned the comments of some functions to doxygen comments which now show up in the docs. I plan to update the docs with more documented functions (the original source contains only simple comments instead of doxygen comments). 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
Thursday, May 8. 2008CCTV does not help against crime [The Guardian]There's an interesting discussion at slashdot over an article in The Guardian concerning the effectiveness of CCTV cameras. In short, The Guardian cites a police man that only 3% of street robberies were solved using CCTV images. While this seems to argue against installation of CCTV cameras, there are several interesting points brought up in the discussion on slashdot, though.
Thank you, slashdot, for your great discussion system. On a personal note, I don't think CCTV is a cure for everything. It may help in some cases (say banks), but most often it will only invade people's privacy and satisfy the curiosity of some (unknown) security people while pushing crime to other, non-monitored areas. More intelligent software, as the Guardian article suggests, won't help here. 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:
Friday, February 22. 2008Realistic 3D experience with Wii remoteJohnny Lee strikes again. After using the Wii remote to create a low cost multi-touch whiteboard he uses the Wii remote to implement head tracking and 3D virtual reality. He coupled the Wii remote with a PC and a monitor which displays the 3D world. Thanks to the 3D processors in our brain (and the normal processors in Lees computer), we get an impressive illusion of three dimensionality with objects sticking out of the TV. You can even look into a football stadium as if you look through a window: lean to the right and you see more of the field, lean to the left and you see more of the audience. However, it works only for a single person (and I guess you need a pretty big TV screen such as the one Lee owns to enjoy this 3D experience. |
Recent Entries
Quick link |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||

