Categories

Personal vim tip of the day

au BufRead,BufNewFile *.vala \
let g:netrw_sort_sequence = ‘[\/]$,<core \%(\.\d\+\)\=,\.[a-np-z]$,\.vala,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$’

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

XBox 360 support of rygel

Short update on the XBox360 support of rygel:
What works

Streaming of transcoded audio and video to the XBox
Browsing through your music collection by album or artist works at least for the media-export plugin. General audio playback should work for every plugin (Using Music library -> Songs)

What doesn’t work:

Seeking in transcoded media. This includes stopping and resuming. [...]

any to WMV

While trying to vamp up XBox 360 support for rygel, I also need a transcoder suitable for the XBox. While H.264 would work it is CPU consuming and hard to get right for the XBox, because it is quite picky. So I decided to go for WMV1/WMA2. Prototype gst-launch commandline:

gst-launch filesrc location=input_file ! decodebin2 name=decoder [...]

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 [...]

Rygel 0.4.6 released

Rygel 0.4.6 has been released. This is a big step forward to the XBox 360 support as it finally implements search! See the original announcement at Zeenix’ Blog

How to examine binary registry dumps in Linux

Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is:

WINEPREFIX=/tmp/dump regedit *.reg

Which gives you nice plain-text ini-style registries to examine in /tmp/dump. That obviously needs Wine installed.

Using postfix and ActiveDirectory

Quick reference for using postfix as a “shield” server to Exchange to check valid mailboxes against ActiveDirectory (SBS edition):

create a LDAP configuration file:

server_host = ad-server.your.domain
search_base = ou=MyBusiness,dc=your,dc=domain
query_filter = (&(objectClass=*) (proxyAddresses=smtp:%s))
result_attribute = sAMAccountName
bind=yes
bind_dn = dn of user account
bind_pw = pw of user

Rygel 0.4.1 is out

Due to some last-minute bugs rygel 0.4.1 has been released.

It is also available in debian unstable now