Categories

Fake rpm database in ubuntu

At work I’m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here’s a quick setup how to create a fake local RPM database:

echo "%_dbpath /home/user/rpmdb" >> ~/.rpmmacros
mkdir /home/user/rpmdb
rpm -i –nodeps –justdb –force-debian *.rpm

And [...]

(Gnu-)Tar option of the day

–exclude-vcs

pmp 0.1 released

I just uploaded pmp 0.1 – Poor man’s prism desktop web application creator to github: http://github.com/phako/pmp

A release tarball can be found here: pmp-0.1.tar.gz

What is pmp?

pmp shares some similarities to Mozilla’s Prism. It creates a “standalone” app from a web application. Pmp uses Webkit as its rendering backend.

How do I use it?

To create an edge (that [...]

Location-dependant IGMP

Could someone please enlighten me?

I spent a third of my work today wondering why

a modified QUdpSocket only leads to IGMPv1 membership reports
a self-written plain old socket multicast client only leads to IGMPv2 joins, but very seldom leaves

Now being at home, I tried both programs and both reliably send IGMPv3 joins and leaves…

Smart pointers...

Can someone explain me the following behaviour:

I have the following smart pointer:

class AlsaHwParams
{
public:
AlsaHwParams() : m_params(0)
{ snd_pcm_hw_params_alloca (&m_params); }
 
~AlsaHwParams()
{ if (m_params != 0) snd_pcm_hw_params_free (m_params); }
 
operator snd_pcm_hw_params_t*() { return m_params; }
private:
[...]

Mono vs. COM

Please. I have nothing against C# in general or Mono. But please, please do not encourage the use of something as broken as COM, even if it’s to ease the bridging between C# and C++.

Thank you for your attention.

Concerning gnupg…

I wrote earlier about compiling libgpgme for use with Visual Studio. Forgot to mention that this is an useless effort because the filedescriptor passing does not work and as such you can only encrypt decrypt from or to memory.

Butter

While developing with Vala I found myself writing some stuff over and over again. So I decided to make a library out of it: Libbutter. Currently only available via git on http://github.com/phako/butter

GUPnP on windows howto

I threw together some instructions on how to build the GUPnP stack on windows:

gupnp on win32

Small demo showing the effort of porting GUPnP on windows:

WPFP(document).ready(function() {
//load player
$f(“saiweb_d3718e117d5665bc5bf98404c9ecaee4″, “http://jensge.org/wp-content/plugins/word-press-flow-player/flowplayer/gpl/flowplayer-3.1.1.swf”, {
plugins: {
controls: {
buttonOverColor: ”,
sliderColor: ”,
bufferColor: ”,
sliderGradient: ‘none’,
[...]