Archive for category Open Source Apps

avidemux compile or I just wanted to rotate some video…

Ubuntu 9.10… avidemux is crashing everytime I try to run the rotate filter with a partial frame range.

So I’m trying to compile it from source to see if I can get it running.

What they don’t tell you in the online install instructions is you have to compile both the application…

apt-get build-dep avidemux
cd /home/jimmy/avidemux/avidemux_2.5.1
mkdir build
cd build
cmake ..
sudo make install

and you also have to compile the plugins separately as-well…

cd /home/jimmy/avidemux/avidemux_2.5.1/plugins
cmake -DAVIDEMUX_SOURCE_DIR=/home/jimmy/avidemux/avidemux_2.5.1  -DAVIDEMUX_INSTALL_PREFIX=/usr/local -DAVIDEMUX_CORECONFIG_DIR=/home/jimmy/avidemux/avidemux_2.5.1/build/config/ ..
sudo make install

And after all the above I still get a crash when trying to rotate a partial segment of video:

AVIDemux Crash

AVIDemux Crash

Text of crash:

Assert failed :0
 at line 380, file /home/jimmy/avidemux/avidemux_2.5.1/avidemux/ADM_filter/filter.cpp/usr/local/lib/libADM_core.so(ADM_backTrack+0x6d) [0x8f8b6d]
avidemux2_gtk [0x80c0b9e]
avidemux2_gtk(_Z19getFirstVideoFilterv+0x31) [0x80c0cb1]
avidemux2_gtk [0x81add64]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c) [0x2689fc]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2) [0x25b072]
/usr/lib/libgobject-2.0.so.0 [0x2707a8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd) [0x271b2d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0x271fb6]
/usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0x6d1388a]
/usr/lib/libgtk-x11-2.0.so.0 [0x6d14ea8]
/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c) [0x2689fc]
/usr/lib/libgobject-2.0.so.0 [0x2596f9]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0xd8) [0x25af98]
/usr/lib/libgobject-2.0.so.0 [0x2700b0]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd) [0x271b2d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0x

In fact with my compiled version I can get it to crash more frequently now… Excellent!

A rather long and painful process when all I wanted to do was rotate some video…

This is going to be the year of Linux on the desktop. No this is the year of Linux on the desktop. No this is…

Ubuntu… sexy but unstable. Maybe it’s time to have a gander at Fedora 12… Hopefully they have the Intel Video driver sorted for this release.

No Comments

Sweet Home 3D

Check out the 3D drawing I did from a cool Java application Sweet Home 3D

This is approximately an hours work after following the tutorial and using an imported 2D floorplan. This isn’t using the best quality rendering setting and I found my old P4 was struggling a little but still the result is OK.

Medium render quality 1024 pixels wide (Looks like a corrupted thumbnail… Will fix later.)
Sweet Home 3D House Plan Rendering

Sweet Home 3D House Plan Rendering

Best render quality 2048 pixels wide
Best render quality

Best render quality

Sweet Home 3D has a cool virtual walk-through feature. So if you’re having trouble envisaging a plan and how furniture affects a space Sweet Home 3D really brings it alive.

1 Comment

Create a WordPress Page Tab that leads to a non WordPress URL

I have my WordPress setup to display all the blog posts on the front page and the WordPress “Pages” as tabs on the navigation at the top of the page.

However I also would like the navigation to point to other non WordPress areas of my domain and go straight there. For example my Gallery2 Gallery or a long URL somewhere else:
Wordpress Page Navigation Tabs pointing to non WordPress URL

Wordpress Page Navigation Tabs pointing to non WordPress URL

You have several options of adding tabs and getting them to redirect to non – WordPress parts of your site:
A wordpress plugin that does the job
http://txfx.net/wordpress-plugins/page-links-to/

The Header.php Hack Method
Edit the template you are using and change the PHP code to add another navigation element which will appear as a tab. The problem with this approach is some WordPress templates have a mix of PHP, jQuery and CSS making up the navigation tabs so it becomes confusing as to what to add to the template to get yourself a new tab. Not only can it be confusing you also lose your tabs when you change templates. Read on for a solution:

Note: The following works on sites which use Apache web server and have .htaccess and mod_rewrite working.

WordPress Page with the Permalink Pointing to a Top Level Web Directory
If you have a gallery located at http://yourdomain.com/gallery it’s simple
Firstly Create a new blank page with a title and edit the permalink to simply be /gallery as shown here:
Create Blank Page & Edit Permalink

Create Blank Page & Edit PermaLink
When you click the “Gallery” tab it will take you directly to the /gallery URL

WordPress Page with a Unique Permalink using .htaccess to Redirect to a Complicated URL
If you have a more complex URL you want to redirect to such as http://yourdomain/gallery/v/house_progress. You then need one more thing to get it working.
Again you create a new blank WordPress Page with a unique arbritrary permalink:
Create WordPress Page with Arbritrary Uniq Permalink

Create WordPress Page with Arbritrary Uniq Permalink

Then you need to edit your .htacess file (I will let you discover the location of this on your web site) and put a Redirect in. In the example I am using the WordPress page permalink points to /renos and that redirects to the /gallery/v/house_progress URL. Of course you could redirect to an external URL too.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Redirect 301 /renos /gallery/v/house_progress
# you can also use something like
# Redirect 301 /mypermalink http://anotherdomain.com/pathtocontent/mypage.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 
# END WordPress

This list is just other ways of saying the title of this blog.

  • WordPress Page Tab Leading to External Weblink
  • Navigation Page Navigation Tabs pointing to External Pages
  • Create a wordpress page to an external resource or URL
  • Embed an external link in your wordpress page tabs
  • Create links to external content on the WordPress Page Tab Navigation without editing the template

,

No Comments

KDE4

So I have haunted the linux-users mailing list for about um (1999-2009) 10 years.

And the discussion turned to KDE4 and well frankly there wasn’t many people saying it ‘completes me’. Quite the opposite.

So seeing I’m running Ubuntu 9.04 I though I would install it…. and well to coin a phrase: “KDE4 is to KDE what Vista is to Microsoft”.

Immediate problems:
PrtScn and ALT+PrtScn don’t
The KDE menu allows you to go down a limb but there is no obvious way to get back to the trunk…

Usually I Google the problem and get a Ubuntu forums work-a-round or fix almost immediately. Nada.

It’s sad really… KDE traditionally has provided a nice balance to the Gnome over-simplicity, but now, it’s well, hundreds of knobs and levers not connected to the functionality it’s supposed to control.

I don’t normally do ‘opinion’ blogging. I prefer posting the Problem, Cause, Resolution style of blogs because they are the most helpful. But in this case. Come on KDE what happened?

One hopes that, like Microsoft, the KDE4 roadmap committee hears the criticism, and gets out of the sand dunes and back onto the pavement for the next major release.

No Comments

svn working copy inside ecryptfs file name gotcha

So encrypting your stuff is wise from a security standpoint. Yes?

Here is a little problem I ran into when I copied my svn working copy into an ecryptfs directory. The actual copy operation gave an error message about “file name too long” which I ignored. But then I tried to do an svn update and the error as below appeared

user@linuxbox:~/Private/svn/work/company/docs$ svn update
A DR
svn: Can't check path 'DR/Disaster recovery of a Local Windows 2000 or Windows 2003 computer (includes non-authoritative restore of Active Directory for a domain controller).mht': File name too long

Tried all sorts of things to fix this ended up moving the working copy out of the encrypted directory and then running svn to rename, commit, update before moving it back into the encrypted directory

svn mv "Disaster recovery of a Local Windows 2000 or Windows 2003 computer (includes non-authoritative restore of Active Directory for a domain controller).mht" ashortnamehere.mht
svn commit -m "renamed too long a file name"

It appears ecryptfs has a file name length limit. I don’t know the exact restriction but the above file name is 151 characters long and it’s too long.

No Comments

Ubuntu – PuTTY GTK2 Package

I wrote some stuff on compiling PuTTY with GTK2.

Here is a deb for Ubuntu (I compiled it on 8.04 and have tried it on 9.04)

putty_20090326-1_i386

md5sum: 2f0926105d949dcb7fc7ce0c818b2088

I think I did it with checkinstall and if it’s broken you get to keep both peices however if it’s useful then knock yourself out.

The package puts plink, pscp, psftp, pterm, putty, puttygen & puttytel in /usr/local/bin

And here’s a picture:
screenshot-putty-configuration

screenshot-putty-configuration

1 Comment

GtkPod Fails to Convert ogg to MP3

Just tried to install some oggs onto my wife’s iPod Shuffle 1G and using the add Files button from within GTKPod I get an error similar to:

/usr/share/gtkpod-aac/scripts/convert-2mp3.sh exit status 5

I had to install the following to make it work.

sudo apt-get install id3v2 lame vorbis-tools

3 Comments

Gallery Upload to Dreamhost

So I just finished transferring my Gallery 2.3 installation from my old server to Dreamhost.

gFTP has been replaced by FileZilla

In the past on Linux I have used GFTP to do FTP uploads but have found it buggy.

This time I used FileZilla and I must say it performed very well 15,000+ files totalling 5GiB. It took almost 2 days to complete the transfer my connection was 384kbps upload. I did speed it up a bit when I discovered FileZilla has a “maximum simultaneous transfers” setting, bumping it up to about 8 helped 10 was too far and I got failed transfers.

FileZilla Preferences

FileZilla Preferences

Delete Gallery Caches Before Doing A Gallery 2.3 Server to Server Transfer

One problem with the Gallery 2.3 to Gallery 2.3 transfer was I didn’t think to delete the cached templates and files before I uploaded I’m sure that would have helped.

Comparing the Gallery Photo Data directory size on the old server and on the new after I finally finished the transfer 4.7G and 4.4G respectively proves I should have deleted the cached files before I uploaded.

So it’s all good Gallery is now safely ensconced in it’s new locale

No Comments

Migrating the WordPress MYSQL Database to a New Table Prefix the Hard Way.

So I have moved my domain to dreamhost.com

Why?

  • Got sick of my home computer being a VMWare Server. Couldn’t reboot or upgrade when I wanted
  • Computers are evil time suckers. Moving my website means I don’t have to worry if it’s up, down or sideways. dreamhost.com can do the worrying
  • I had heard good things regarding dreamhost from my Sister whose websites flourish like the fleas on a mangy dog (I mean she has a lot of Websites)
  • They are heavily open source
  • They have a one click install for packages I use (wordpress, gallery, joomla)

To start I dived into the dreamhost.com control panel and did a one click WordPress install, then copied my wp-content folder over the new install. (As a side point the guys at dreamhost are obviously high end propeller heads to be able to provide so many features, I wonder if they wear Bow Ties and Cummberbunds to parties?)

Dumping your database from the command line

I dumped my old WordPress DB using the command

mysqldump --tables wordpress -p -u root > wordpress.sql

Notice the use of the --tables command line option that stops the sql file from containing any USE dbname or DROP dbname statement and just exports the tables alone.

Dreamhost.com has a per customer instance of phpmyadmin so changes and updates to the mysql database can be done with ease.

WordPress Table Prefix Change

Dreamhost uses a random seeming table prefix for wordpress db tables something like wp_xjsirsl_tablename (e.g. wp_xjsirsl_comments) and this mean’t I couldn’t just load the DB up through phpmyadmin because my table prefix was wrong wp_tablename (e.g. wp_comments)

I thought of opening my DB dump file (wordpress.sql) and changing all the table names but … when I opened it in gedit it froze (I think gedit was spending wayyy too much time trying to syntax highlight the file) so I canned that and loaded the file using phpmyadmin which loaded the old tables with the wrong wp_ prefix.

I ended up doing a labourious table rename procedure. Dropping each table with the wp_xjsirsl_ prefix and then rename my uploaded table to be correct wp_xjsirsl_tablename

Dropping Tables Using PHPMyAdmin
Dropping Tables Using PHPMyAdmin
Renaming Tables Using PHPMyAdmin
Renaming Tables Using PHPMyAdmin

This caused some issues when trying to log into the wordpress admin console something like “you don’t have permission to access this page” or similar (can’t remember now). However searching on the error message in Google turned up some sql updates that I did manually in phpmyadmin

Anyway it’s all installed and seems to be functioning properly.

Perhaps now I can leave it alone for a while and get to the important things, like my rear deck renovation.

2 Comments

Changing Mozilla Thunderbird Forward as Attachment to Forward Inline

When I forward a message I like to have the option of scrolling through the content and commenting in between the paragraphs of the forwarded message.

Thunderbirds default behaviour is to forward messages as attachments:

Thunderbird Compose Email Window

Thunderbird Compose Window

However to be able to edit the forwarded email you need to Go to Tools ==> Options ==> Composition ==> General Tab and change the Forwarded Messages: field from As Attachment to Inline as shown in the next screen shot:

Thunderbird Options Panel

Thunderbird Forward As Options

,

3 Comments