Electrotek

From programming to day dreaming

Monthly Archives: October 2010

Find out generic type at runtime

With Hibernate and generic DAO it has now become a common practice to figure out the class of generic type at runtime (please note that the code is a bit simplified): Then we can do things like: This approach is very nice, since we don’t have to pass an entity class during initialization. But it [...]

NetworkManager’s OpenVPN plugin problems on Ubuntu

After trying to connect to OpenVPN using NetworkManager on Ubuntu 10.04 LTS (Lucid Lynx) I got an error: The VPN connection “XXX” failed because there were no valid VPN secrets Nothing seemed to help, but after some google’ing I have found a fix that worked for me: 1. Edit /etc/dbus-1/system.d/nm-openvpn-service.conf and add additional policy: 2. [...]

Follow

Get every new post delivered to your Inbox.