KDevelop project stuck

After building an application in Debug configuration, switching to optimized has corrupted the project so that it will no longer build.

SUSE 10.1, KDevelop 3.3.3, KDE 3.5.1

RESOLVED: A reply in a forum indicated that there is a known bug with the default configuration that leaves a config.status around that sabotages the entire project. The recovery is to delete all the config.status files in the project and then avoid use of the default configuration.

Developed the program under the debug configuration and then tried to switch to default or optimized configuration. Tried many combinations to try to get it working again, but all BUILD options give errors ending with makedistclean.
Continue reading “KDevelop project stuck”

php5 and MySQL 5 – Access Denied

Permissions problem kept php5 and mysql 5 from talking….

When setting up a test website using Apache 2, php5 and mysql5, the connection to the database failed with AccessDenied. If the password were removed, then the failure looked different. The resolution to the problem is to include localhost explicitly in the host list and set database privileges for localhost. The default is @% which is wildcard, but apparently wildcard does not include localhost.
For a complete description, screen shots and the whole story:
Continue reading “php5 and MySQL 5 – Access Denied”

First Linux C++ Program Works

My first real linux program using KDevelop and QT works.

Using KDevelop 3.3.3 on SUSE 10.1 I’ve ported one of my WinMFC programs to Linux. The GUI is written with the QT3 tool kit and QTdesigner in KDevelop.

Screenshot-SiteProbe-2

When the program is running the appropriate buttons are disabled and the program saves and restores the configuration [interval and Watch on Start] and the site list.

Update: You can find the modern version of the program here.

Installling Linux for the First Time

Experiences installing SUSE Linux 10.1 for the first time.

While I’ve been a software engineer for years and have used *nix systems for some of those years, I’ve never installed or used Linux before. I started my foray into this subject by installing SUSE 10.1 on a DELL WS 410:

  • Dual 400MHz PII with 768MB of memory
  • 9 GB SCSI hard drive
  • NVidia GFX4200 Graphics

This system has been running Win XP Pro quite nicely. Performance has actually been quite good and this system is very usable under windows for document prep, C++ programming using Visual Studio 6 and web browsing.
Continue reading “Installling Linux for the First Time”

Coppermine RSS feeder

RSS 2.0 feed for Coppermine…

I didn’t write this. Credits are in the file.
I tried to contact the author, but his site is down.

RSS 2.0 feed for Coppermine…

I didn’t write this. Credits are in the file.
I tried to contact the author, but his site is down.
And he is greek.

I have tested this with CM 1.4.3 and it works.
To install, copy it to the coppermine base directory.

You can choose various types of feeds by using the following:

http://www.yoursite.com/coppermine/rss.php?album=xxx

where xxx is:

  • lastcom – last comments
  • lastup – last uploaded
  • topn – most viewed
  • toprated – top rated
  • lasthits – recent hits
  • if http://www.yoursite.com/coppermine/rss.php alone is used, then some random pictures are presented.

Edit the file to change the number of thumbs in the feed.

The script is RSS 2.0 compliant and works with feedreader.

Apologies to the author if he doesn’t like me passing this on.
I found it in his coppermine integration for joomla.

Cheers,

Coppermine RSS feeder

Fix to SMF 1.1 convert.php

I’ve converted the phpBB2 forums on my site to Simple Machines Forums. Along the way I ran into some problems.

The convert.php module for conversion from other boards to SMF has at least two problems:

  • A field in the board table called lastUpdated is referenced. No such field exists in RC2 versions of the table.
  • A last step attempts to set the image width/height of attachment and avatar images. However, this code does not correctly set the full file path and the step fails in an infinite loop at the end of the process if there are missing avatar images.

As far as I know this is a complete fix for the problems. After running this version, the attachments correctly display as images in the posts. Missing images have width/height set to [20,20] to avoid the loop.
Fixed Convert 1.1RC2

Here’s the link back to the SMF boards: 1.1Converters

djd

Fix to phpBB2 to SMF converter

OBSOLETE
See the new version

Here’s a fix that I’ve made to the phpBB2_to_smf.php converter.
I’ve done a conversion from phpBB2 2.0.18 with attachments to SMF 1.1RC2 and it appears to work. I would not say that it was thoroughly tested.
The memberlist failed without the fixes that I’ve included.

  • There were field name changes in the SMF members table. im_xxx changed to pm_xxx and this caused a silent failure in the INSERT’s.
  • Also the version number needed to be changed from 1.0.5 to 1.1.99 [maybe , but this works.].

You can download it here: Fix to phpBB2 to SMF converter

enjoy,
djd