↓
 

A Pipe and a Keyboard

A sort of Linux scrapbook

  • Home
  • About
  • Software
  • List of posts

Category Archives: Tech stuff

Post navigation

<< 1 2 3 4 5 6 7 8 9 … 27 28 >>

Google Earth and ia32-libs

A Pipe and a Keyboard Posted on November 14, 2013 by RichardDecember 10, 2013

I recently installed Linux Mint 16 [Petra] RC [64 bit Cinnamon edition] and came across a problem.  This may have been due to the release not being complete, but a search showed that this is quite a common problem.

[Note: since I wrote this piece the final version of Cinnamon was released and it was fixed]

When I tried to install Google Earth I was informed that a dependency – ia32.libs wasn't met, and the installation failed.

Naturally I tried installing the missing library, but apparently it has been depreciated.

Time for a workaround.

I first ensured that libc6:i386 lsb-core were both installed.

Next I downloaded the latest package from Google - google-earth-stable_current_amd64.deb into my Download folder.  I created a sub-folder "GoogleEarth" and using Archive Manager I extracted the contents of the DEB file into GoogleEarth.

I then opened the file GoogleEarth/DEBIAN/control in a text editor and removed the following line

Depends: lsb-core (>= 3.2), ia32-libs [Line 7]

I then created a new package using the command dpkg -b GoogleEarth/ [from within my Download folder].

It took a while, but that created a new file in Downloads called GoogleEarth.deb.

Install that using GDebi Package Installer, and away she goes!

 

Posted in Linux, Tech stuff | Tagged Linux | 7 Replies

Space after WordPress Media Player

A Pipe and a Keyboard Posted on September 20, 2013 by RichardSeptember 20, 2013

Since the arrival of WordPress 3.6 I have ditched the plugin Audio Player in preference to the embedded version.

One less plugin is always a good thing?

One aspect of the new Audio Player that really bugs me though is the way the spacing is wrong top and bottom.  While the player provides a full new paragraph break above, it only provides a line break below which means there is no space between the player and the following text.

After my usual fruitless searches I came up with a solution of my own which seems to work well.

I simply added the following to my theme’s CSS file:

.mejs-audio {
    margin-bottom: 1.5em !important;
}

Of course the spacing can be varied, but I chose 1.5em as it is the theme’s default line height.

Posted in Tech stuff | 1 Reply

Speeding up a WordPress site

A Pipe and a Keyboard Posted on September 13, 2013 by RichardSeptember 13, 2013

One of the top considerations of any web site owner should be speed.

In these days of broadband connections, people are used to near instantaneous results, and a slow loading front page is guaranteed to lose visitors.

There are several factors which control loading time.

One is of course server response times.  There is little that can be done about that!

Then there is the core code of the site.  WordPress is WordPress and there is little or nothing you can do to change it.

There are areas though that are well within the site owner’s control.

The Theme.

The one thing I would say about themes, from the speed perspective is that the more graphic the site, the slower it tends to be.  A graphic rich theme is going to be slow, and it is worthwhile bearing this in mind when making a choice.

Plugins.

Plugins can be a site killer.  I use a plugin on my sites – Plugin Performance Profiler (P3) – which is a good indicator of which plugins are holding the site back.  Using that plugin I have managed to shave seconds off sites’ load times, by either indicating which plugins to remove or which to replace with a slicker version.  In quite a few cases I have managed to find replacement plugins that have exactly the same functionality but are faster to load.

External links.

External links within plugins or extra coding (such as advertising or analysis0 are frequently the cause of sluggish sites, as the server has to wait to connect to those sites before continuing to serve up the rest of the main site.  If your traffic analysis site is having an off day then your site will too.  

As an example, I had a plugin on this site which displayed my blogroll on the sidebar along with their latest posts and date of posting.  Before the page could load, the server had to contact each linked site in turn to retrieve information.  I ditched the plugin and reverted to standard links and shaved 32 requests and several seconds off the load time.

Images.

These are probably the biggest contributors to “gross tonnage” of any site.  Always reduce images in physical size and compression before uploading.  A photograph that is say 3,500 by 2,000 pixels may look stunning but it will weigh many megabytes.  Setting its display size may reduce the visible size but it will still weigh all those megabytes.  If you only want it to appear at say 600 x 400, then reduce it before uploading.  Also compress it as much as possible as many kilobytes can be shaved off an image that way.

Caching.

Caching can have an enormous impact on page load times.  It does so by generating static pages from the normal dynamic ones and therefore cuts way back on database requests, code requests and file loads.  There are several excellent caching plugins which can be found on the WordPress site.  While I haven’t tried all of them, the ones I have tried give facilities to allow code compression and browser caching which help greatly with load times.

A word of warning about caching plugins – I have noticed that Plugin Performance Profiler (see above) tends to give very poor responses for caching plugins.  On closer examination though, the poor response times are almost exclusively within the Admin pages of the site.  One would assume that not many outside visitors are going to reach in there?!

Posted in Blogging, Tech stuff | Leave a reply

No buttons on WordPress Media Player

A Pipe and a Keyboard Posted on August 16, 2013 by RichardSeptember 20, 2013

One of the big changes that came with WordPress 3.6 was the introduction of an embedded media player.

I have had occasion to embedd audio files in the past and I used a plugin for the purpose.  However, if I can avoid plugins then all the better, so I ran some tests with the new version.

The first trial showed the player all right, but there were no buttons.

MediaPlayer1

I tried clicking on the left-hand end of the graphic and the player worked.  However I wanted a “Play” button.

I searched the Internet and once again discovered that I wasn’t the only one with this problem  Apparently the breakdown is because of the use of the SVG mime-type, and not all sites support this.

The main solution given was to add the mime-type to the site’s .htaccess file –

AddType image/svg+xml svg svgz
AddEncoding gzip svgz

This solves the problem, but not every site owner has access to the .htaccess file, and some may just be nervous about meddling in that area.  I devised an alternative method.

The button graphic in question is stored in two formats – .SVG and .PNG so a simple tweak to the CSS file changing the file from .SVG to PNG will also work.  However, finding the references is not easy, and anyway any modification will be overwritten by any upgrade to WordPress.  The solution is to add the following to your theme’s “style.css” file –

.mejs-overlay-button {
    background:url("/wp-includes/js/mediaelement/bigplay.png") no-repeat !important;
}
.mejs-controls .mejs-button button {
    background:transparent url("/wp-includes/js/mediaelement/controls.png") no-repeat !important;
}

The “!important” directive will ensure that the code takes precedent over any WordPress CSS.

Either method will have the required result –

/audio/911.mp3
Posted in Blogging, Tech stuff | 11 Replies

Thunderbird links not working

A Pipe and a Keyboard Posted on June 17, 2013 by RichardSeptember 13, 2013

For some time now I have been having a bit of a problem with Thunderbird.  Whenever I clicked on a link within a mail, it opened a new Firefox window but defaulted to the home page.

I got tired of copying and pasting links so searched for a solution.  As usual, my search returned loads of solutions, none of which worked.  The main cure given was to force both Firefox and Thunderbird to declare themselves as the default.  No good.

The solution is (as always) simple.

In Thunderbird, open Preferences –> Advanced.  Select the General tab and click on “Config Editor..”.  You will get a warning which you accept.  This brings up the “About:config” window.

Scroll down to (or search for) “network.protocol-handler.warn-external.http”.  Right click and select “Toggle” (i.e. set the value to “True”).  Do the same for ““network.protocol-handler.warn-external.https”.

about-config
Click to enlarge

Next time you click on a link within a mail you will be asked to choose an application.  Select Firefox (default location – /usr/bin/firefox ).  Select “Remember my choice…” and the problem is solved.

Posted in Linux, Tech stuff | 2 Replies

Post navigation

<< 1 2 3 4 5 6 7 8 9 … 27 28 >>

Recent Posts

  • GRUB problems
  • Tab bar broken again in Firefox 133
  • WP phpMyAdmin Session mismatch
  • When Linux slows down
  • Firefox broken again

Categories

  • Blogging
  • General
  • Linux
  • Media
  • Tech stuff
  • Writing

Blogroll

  • Head Rambles
  • Kirk M's Just Thinkin'
  • Wordpress Beginner
  • Wordpress Development

Archives

©2025 - A Pipe and a Keyboard - Weaver Xtreme Theme
↑