XBMC (XBMCBuntu) ContextMenu option Logitech Harmony

With my Logitech Harmony 300 I didn’t have the ContextMenu (right click or c keyboard) option. This action is essential when you want to change some movie information. If I use my XBMC Android app I had the title (= ContextMenu) option so I thought that it must be possible do the same with my logitech harmony. After some searching and debugging I find a solution. The steps: login to your xbmc with ssh xbmc@IPXBMC cp /usr/share/xbmc/system/keymaps/keyboard.xml /home/xbmc/.xbmc/userdata/keymaps/keyboard.xml(never hack the original file, that can be overwritten when you do an update) nano /home/xbmc/.xbmc/userdata/keymaps/keyboard.xml Add this line between the other keyboard shurtcuts ContextMenu Save the file (CTRL + W) and restart your xbmc to reload the keyboard.xml config ...

June 19, 2012 · 2 min · thomasf

IPTables SNMP

See bold lines (192.168.1.9/32 is my monitor): nano /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Thu Jun 14 14:51:55 2012 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1842:173072] -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state –state NEW -m tcp –dport 22 -j ACCEPT -A INPUT -p udp -m udp -s 192.168.1.9/32 –dport 161:162 -j ACCEPT -A INPUT -j REJECT –reject-with icmp-host-prohibited -A FORWARD -j REJECT –reject-with icmp-host-prohibited COMMIT # Completed on Thu Jun 14 14:51:55 2012 ...

June 14, 2012 · 1 min · thomasf

Add an Adsense banner to your wordpess site without plugin

Start a FTP program and connect to your wordpress website Locate your funtions.php (wp-content\themes\theme_name\functions.php) Edit the file and put the following code in your functions.php file: function showads() { return ' <script type="text/javascript"><!-- google_ad_client = "ca-pub-3134535021136249"; google_ad_slot = "3483719222"; google_ad_width = 468; google_ad_height = 60; // --> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> ';} add_shortcode('banner', 'showads'); Modify the client, slot, width and height values Safe the file and overwrite the current Now you can use the [banner] tag in your post to publish the banner: ...

May 17, 2012 · 1 min · thomasf

[Pinta] Crossplatform Paint.NET alternative

Today I found a very nice cross platform Paint.NET program clone with the name Pinta. Now I can edit images on every platform (OSX, Linux & Windows) and use always the same interface and hotkeys for the few times a year I need a simple paint prgram. When you install the software under windows do not forget to install the “Gtk# for Windows”. Without the GTK the program don’t start and don’t give any error. ...

May 16, 2012 · 1 min · thomasf

Write code in your wordpress page

[banner] Sometimes you want to put code in your wordpress blog. The beste way to write code is switch to switch to HTML and put the and tags to your post. Example with : mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "user@example.com") print $1 } ' | tr -d '*!' | postsuper -d - Example withoute : ...

April 27, 2012 · 2 min · thomasf

Delete mail from postfix queue

The old command won’t work anymore on my ubuntu server because of the error: tail: cannot open `+2’ for reading: No such file or directory OLD Command: ` mailq | tail +2 | grep -v ‘^ (’ | awk ‘BEGIN { RS = "" } { if ($8 == “user@example.com” && $9 == “") print $1 } ’ | tr -d ‘!’ | postsuper -d - ` NEW Command: ` mailq | tail -n +2 | grep -v ‘^ (’ | awk ‘BEGIN { RS = "” } { if ($7 == “user@example.com”) print $1 } ’ | tr -d ‘!’ | postsuper -d - ` ...

April 27, 2012 · 2 min · thomasf

virtual ethernet card network adapter 1 is not supported

I had the “error virtual ethernet card network adapter 1 is not supported” on a 64 bit Linux (ubuntu) virtual machine. To fix this problem I shutdown the virtual machine, removed the NIC and add a new E1000 network card. Then I boot the server even everything was fine :)

April 24, 2012 · 1 min · thomasf

SQL Reporting Services slow with Internet Explorer

When you access the reporting services over SSL you can have the problem that the reporting services GUI under IE is very slow. The solution is quite simple: Login with the servername or domain name. E.g: SERVERNAME\username This problem exist under IE 8 and IE9 under Server 2008, 2008r2, Vista and Windows 7.

April 11, 2012 · 1 min · thomasf

Two nice windows transformation packs (themes)

OSX Lion Transformation Pack @ http://www.winxsoft.com/ltp/ Custopack tools @ http://www.custopack.com/

April 7, 2012 · 1 min · thomasf

OpenElec XBMC Fix the splash screen ATI and NVidia

If your OpenELEC machine says “could not open framebuffer no such file or directory” when you turn it on, follow this to get the splash screen working. The splash screen is much prettier than some plain text in the corner of the screen, so follow this to get your splash working. You’ll need: SSH access to your OpenELEC machine Nano installed; for versions 0.7 and above, you’ll need to install the nano add-on from System > Addons > Get Addons > OpenELEC.tv > Programs > nano and click install. OK, let’s begin. Open an SSH session to your OpenELEC machine then at the prompt, type: ...

April 7, 2012 · 2 min · thomasf