1. Start a FTP program and connect to your wordpress website
  2. Locate your funtions.php (wp-content\themes\theme_name\functions.php)
  3. Edit the file and put the following code in your functions.php file:
  4. 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');
    
  5. Modify the client, slot, width and height values
  6. Safe the file and overwrite the current

Now you can use the [banner] tag in your post to publish the banner:

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.

You can find the software here: http://pinta-project.com/

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 <code> and </code> tags to your post.

Example with <code>:


mailq | tail -n +2 | grep -v '^ *(' | awk  'BEGIN { RS = "" } { if ($7 == "user@example.com") print $1 } ' | tr -d '*!' | postsuper -d -

Example withoute <code>:

mailq | tail -n +2 | grep -v ‘^ *(‘ | awk  ‘BEGIN { RS = “” } { if ($7 == “user@example.com”) print $1 } ‘ | tr -d ‘*!’ | postsuper -d -

You will see that some characters won’t display correctly if you don’t use the code tag.

Another/better way to publish code is using the “SyntaxHighlighter Evolved” plugin.

Example:

mailq | tail -n +2 | grep -v '^ *(' | awk  'BEGIN { RS = "" } { if ($7 == "user@example.com") print $1 } ' | tr -d '*!' | postsuper -d -

And if you need special characters in your post try these:

< = &lt;
> = &gt;
/ = &#47;
] = &#93;
[ = &#91;
" = &#34;
' = &#39;

And if you want to use a code language try these

[code language="sql"]
your code here
[/code]

The following languages are supported:

actionscript3
bash
clojure
coldfusion
cpp
csharp
css
delphi
erlang
fsharp
diff
groovy
html
javascript
java
javafx
matlab (keywords only)
objc
perl
php
text
powershell
python
r
ruby
scala
sql
vb
xml

SQL script Example:

USE database;
SELECT * FROM Persons
WHERE City='Sandnes'

Last but not least. DO NOT USE THE VISUAL VIEW :) Visual will scramble your code.

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 -

Tnx to: i8n1

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 :)

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.

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

Custopack tools @ http://www.custopack.com/

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:

mount -o remount,rw /flash

This allows read/write access to the configuration file we need to access.

Next, type:

nano /flash/extlinux.conf

This will open up a terminal-based text editor called nano. It’s very easy to use, so move your cursor to the end of the following line:

APPEND boot=LABEL=System disk=LABEL=Storage quiet

and add the following text:

for NVIDIA:

vga=792

for ATI:

vga=0x323

If you are using NVIDIA your line should read:

APPEND boot=LABEL=System disk=LABEL=Storage quiet vga=792

If you are using ATI your line should read:

APPEND boot=LABEL=System disk=LABEL=Storage quiet vga=0x323

Now, type [CTRL] and X to exit. You’ll be prompted to save the file – just hit [ENTER] to save the file.

You should be back at the prompt now, so just type exit to close the prompt

exit

Reboot your OpenELEC box and you should now see the splash screen.

1. Connect to your box with SSH or SAMBA.

2. Type the following:

cp ~/.config/asound.conf.sample/asound.conf_double-xs35gt.sample ~/.config/asound.conf

3. In XBMC, go to System > Audio and make the following configuration:

Audio output = HDMISpeaker configuration = 7.1 (or the what your receiver is capable of)Audio output device = custom
Custom audio device = plughw:1,7

Passthrough output device = custom
Custom passthrough device = plughw:1,7

4. Reboot the system

The easiest way to stream audio to your XBMC is with the Apple protocol Airplay. Since XBMC Eden (version 11) it is possible to activate Airplay via: System/Settings -> Network -> Services  -> enable AirPlay

Requirements:

  • Linux/Ubuntu users will need to install avahi-daemon:
    sudo apt-get install avahi-daemon #(on Ubuntu)
  • Mac OS X needs no additional set-up.

If you have spotify and you want to sent a music stream to your XBMC you can use Airfoil for Windows and OSX ($25).

With I tunes you can switch to XBMC with the option in the right bottom:

With Iphone and Ipad you can use the “sent to”  option since IOS version 4.

Switch to our mobile site