I updated the windows ports of gssdp and gupnp today, did some further clean-up on the gupnp port and filed merge-requests for both on gitorious.
I also deleted the gupnp-win32 repository on github. New development will go to this repository on gitorious. There is still the gssdp-win32 repository on github since I have not yet taken care of the MSVC additions.
I also started wrapping gssdp et al into *mm (hey, I work for Openismus now 😉 but this has proven to be somewhat difficult.
Tag Archives: Programmieren
Rygel XBox support update
XBox support still has not landed in rygel master, though the branch gets more stable currently. I put together a wiki page to describe the necessary quirks together with a helper script.
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 that’s it.
(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 is pmp’s terminus for a captured app), run
pmp-create --url=<url to website> --name=<descriptivename>
You can also create a desktop icon by passing it the --desktop
parameter. If you want to use the site’s favicon, use --icon=:favicon
To run the edge, call pmp-run --name=<DescriptiveName>
Known limitations:
It does not work properly with Google’s apps. Google does some weird URL redirects. I’m working on that. Apps known to work are WordPress and TT RSS.
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:
snd_pcm_hw_params_t *m_params;
};
Thing is: It doesn’t work. Alsa behaves very strange if I use it. Even if I make the m_params
member public and access it directly. The only way it works is to not allocate from inside the class but outside like
snd_pcm_hw_params_alloca (&(hwparams.m_params));
Update: Seems replacing _alloca
with _malloc
fixes it.
Update: Duh, that is because alloca
allocates on stack and not on heap.
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