Witch Bag

Category: Computing

How to remove <p> tags added by WordPress

WordPress automatically converts your double line breaks into paragraphs. Here is how to disable this feature for all your posts.

Open these 3 files:

/wp-content/themes/yourtheme/index.php
/wp-content/themes/yourtheme/single.php
/wp-content/themes/yourtheme/archive.php

Insert the following below the line get_header();

// remove <p> tags automatically inserted by WordPress
remove_filter('the_content', 'wpautop');

For reference, see:

WordPress documentation on wpautop()
WordPress documentation on remove_filter()
WordPress documentation on the_content()

How to merge Full Tilt player notes

There’s an old program FTP Player Notes Manager which may not work currently. Merging player notes manually isn’t too cumbersome:

  1. Close Full Tilt Poker.
  2. Your player notes are located in
    C:/Program Files/Full Tilt Poker/username.xml

    (adjust for your install directory). Backup these files and put them in the same computer.

  3. Each player note takes up a line that looks like this:
    <NOTE PlayerId=”Valikoski” ColourIx=”7″ Text=”idiot from Northern Europe” />

    These are the lines that matter to us, and we will leave the other lines at the top and bottom of each file alone. We want to avoid having duplicate players notes in the same file. If you know there are no duplicates, then just copy and paste all the <NOTE /> lines from one file to the other. Otherwise, see Wikipedia’s list of file comparison tools and use one of those programs to compare your player notes files. Copy and paste the extra notes from one file to the other.

  4. I found that one of my files had its player notes in reverse order, so I had to use reverse the file before comparison. You can find another program to do this, or use the Linux command
    tac username.xml > reverse.xml
  5. Save the merged file as
    C:/Program Files/Full Tilt Poker/username.xml

    and you are done.

How to dual boot Fedora (under LVM) and Windows

I had Fedora 12 in a logical volume taking up all the space in my hard drive. Here is what I did to shrink the Fedora partition and create a new partition for Windows 7. I am not an expert so I had to google for solutions to each problem, and I did not find any guide that covers all the steps.

Continue reading…