• ReverbNation WordPress plugin not working

    reverbnation

    Ok, so you want to merge your bands Reverbnation profile with your wordpress website and you have installed the official WP plugin (v0.1 at the time) but it’s not working when you put the shortcode into a text widget? There are two possible reasons for this:

    1. Your WP theme does not support executing shortcode from widgets – find a fix here.

    2. ReverbNation server sources are commented out in reverbnation-widgets.php – find this file via FTP or through Dashboard and comment out ‘Development’ sources and enable the ‘Production’ ones. It should look like this:

    1
    2
    3
    4
    define("RN_WIDGETS_CACHE_SERVER", 'http://cache.reverbnation.com');
    define("RN_WIDGETS_WEB_SERVER", 'http://www.reverbnation.com');
    define("RN_WIDGETS_AUDIOLIFE_CACHE_SERVER", 'http://cache.audiolife.com//');
    define("RN_WIDGETS_AUDIOLIFE_WEB_SERVER", 'http://ws.audiolife.com/');

    That should do it.

    One more thing – you should probably use HTML source-code ReverbNation provides if you have an account there instead of this plugin because it’s much more versatile and provides you with more options to manipulate the appearance of ReverbNation widgets looks (v0.1).

  • Sometimes no sound in browser / video player on Arch Linux

    Sometimes no sound in browser / video player on Arch Linux

    Sometimes after booting the machine up I would just get no sound in my browser / video player and sometimes it would be there working just perfectly. The only way to get the sound if it wasn’t there was to reboot the computer. A strange issue I ignored at first thinking it would go away after a few full system updates, but after a while the problem was still there and I got annoyed by it and thankfully found a cure.

    The problem was the usb webcam. Turns out ALSA isn’t very smart when it comes to device assignment so sometimes it would make the snd_usb_audio (webcam) the first sound device instead of the soundcard. A workaround is just putting your soundcard module name before the snd_usb_audio in your /etc/rc.conf. In my case it was like this:

    1
    MODULES=( ... snd_hda_intel snd_usb_audio ... )

    edit: I think there is one more situation when sound does not work – it’s when your skype autostarts on startup. It starts webcam of course and sometimes skype starts before you can hear the welcoming sound of entering into your WM.

  • Thomson SpeedTouch 780WL – port forwarding to broadcast address

    For your home network to be able to wake-on-lan a computer from the Internet so that you could later remotely access it, you need to forward a port to your broadcast address. This way you can broadcast a magic packet to all the computers in your network and then wake only one of them using its MAC address.

    If you are reading this, you probably already tried forwarding a port to 255.255.255.255 but to no avail. That is because ST780 just drops anything forwarded to the broadcast address.

    So, what you should do is choose one unused IP address in your subnet and make it appear like it’s a broadcast address, and later do the port forwarding to that IP. How to do that? Telnet into your router, and assign a hardware (MAC) address of FF:FF:FF:FF:FF:FF (when translated to IP, that MAC address makes 255.255.255.255) to the chosen IP address. This is the basic idea behind this tutorial and a way to trick the router into doing the port forwardng to a (fake) broadcast address. So, do the following:

    1
    telnet <router_ip_address>

    enter your superadmin username and password and execute the following two commands:

    1
    2
    :ip arpadd intf=LocalNetwork ip=192.168.1.xxx hwaddr=FF:FF:FF:FF:FF:FF
    :saveall

    where xxx is the last octet of your chosen IP address (make sure that the chosen IP is not already in use, and that it’s not 192.168.1.255).

    Now go to your routers webinterface and create an application with UDP port 9 (to make it a little bit more secure, I recommend you choose a port above 1024, and then translate it into 9). Assign the created application to a newly created IP address (192.168.1.xxx) and voila, you got it.

    Now you can try and use wol (for Linux) or this one (for Windows) to remotely turn on your computer. For this you will need your routers public address (I recommend using DynDns for that), and the MAC address of the computer you want to wake up.

    cheers =)

  • GDM keyboard layout change

    GNOME
    Here’s a solution on how to use a different keyboard layout in GDM (different then the default en). The problem was that if you wanted to use any special character (that i.e. needs alt gr) or any other character specific to your keyboard layout (in my example čćžšđ), you couldn’t do it even though you already set locales globaly on your machine. I did this on arch distro but my guess is that it will work on any other too.

    Execute the following in your terminal as root:

    1
    2
    cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
    /etc/hal/fdi/policy/10-keymap.fdi

    and then replace “en” layout with the one you need (in my example hr):

    1
    <merge key="input.xkb.layout" type="string">en</merge>
  • Nautilus – left pane missing

    tux

    I couldn’t find the option in nautilus preferences to get the left pane appear. I also couldn’t find the solution through google, but somehow managed to get it working. So, here is it:

    1. Run gconf-editor
    2. Go to: /apps/nautilus/preferences
    3. Check the "always_use_browser" option

    There you go, happy browsing.

  • Places -> Home = opens Amarok?! O.o

    amarok

    I got this wired bug after I updated my arch linux. Each time I would click on “Places -> Home”, it would run Amarok and start playing music… Some kind of a bug I guess… To solve this problem type the following into your terminal (works for other distros as well I guess):

    1
    $ sudo nano ~/.local/share/applications/mimeapps.list

    and then edit the line contaning “inode/directory=” into:

    1
    inode/directory=nautilus-folder-handler.desktop;

    So, enjoy your favorite music player… =)

Back to top