New Linux Server Build

This content is 7 years old. Technology changes with time. Keep that in mind as you read this article.

I finished up a new linux server build tonight. Migrated WordPress, DNS, mail, FTP and a handful of other services to this new server as well as installing LXDE GUI front-end.

width=804

LXDE

ttyrec Playback using jsttyplay and WordPress

This content is 7 years old. Technology changes with time. Keep that in mind as you read this article.

So I spent a little bit of time tonight tinkering on Linux. I got interested in tty recording/playback after seeing some nethack things. I figured if I could find something that works well for playback of tty recordings it would be helpful on my blog. Enter: jsttyplay

This is a nice little tool using Perl and JavaScript to handle playback of terminal sessions recorded using ttyrec.

Here’s a demo of how to get things setup, including making a video and editing the HTML to play it.

I plan to start work on making a WordPress plugin for this so I can embed these a bit easier.

All the demos are at https://techish.net/~rjk/:

Demo1:  https://techish.net/~rjk/select-play-demo.html
Demo2:  https://techish.net/~rjk/auto-load-demo.html

If you don’t have ttyrec, install it with your system’s package manager; in my case, I have Debian so I will use apt-get.

apt-get install ttyrec

Video

Select TTY recording to play.

Choose:

WordPress Top 10 Plugin: Place Counter in Byline

This content is 7 years old. Technology changes with time. Keep that in mind as you read this article.

I was annoyed by how the Top 10 plugin didn’t give me a better control of placement of the Visits/Visited string, so I got to work figuring out where to move things around.

First, I found that the data is printed via a PHP function called echo_tptn_post_count()

I edited my child-theme’s content.php file and modified the following (bold):

<?php if ( is_singular() ) { ?>
<?php if(function_exists('echo_tptn_post_count')) { $foo=echo_tptn_post_count(); } ?>
		<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
		<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published by [entry-author] on [entry-published]  [entry-comments-link before=" | "] '.$foo.' [entry-edit-link before=" | "]', 'live-wire' ) . '</div>'); ?>

When I viewed the post, I saw it was screwing up and echo’ing the $tptn variable above my entry title!

I went and had a look at the echo_tp_tn_post_count() function in top-10.php in the wp-content/plugins/top-10 directory and changed the following (bold):

function echo_tptn_post_count() {
global $post,$tptn_url,$tptn_path;
$id = intval($post->ID);

$output = '<script type=text/javascript src='.$tptn_url.'/top-10-counter.js.php?top_ten_id='.$id.'></script>';
#echo $output; return $output;
}

Now, it prints right in the byline after the comments (and it only does this on posts…).

width=639

This probably wasn’t the RIGHT way to do it, but I figured it out.

Social Cross Posting WordPress Plugins

This content is 7 years old. Technology changes with time. Keep that in mind as you read this article.

This is just a little tiny test.

=)

If you are here, it is because you followed a link from either Google+, Facebook, or Twitter. For some reason, the posting to Google+ doesn’t allow me to control the circle nor does it allow me to control any text input. The title of the post is the google plus post’s content plus a link. Hrm.

iptables facepalm

This content is 7 years old. Technology changes with time. Keep that in mind as you read this article.

Facepalm Friday I think!

I recently reconfigured my iptables based firewall and stupidly forgot to allow access out to Akismet for spam filtering on WordPress. No wonder I was getting hammered with spam content.

Time to go home. #*)@$%#$