Porting to the Qt C++ Framework :: Part 1

In this post we’ll start the process of porting a simple command line C++ application to the Nokia Qt framework. Well take a quick look at the code in question, then talk about how we’ll port it.

The application in question is a simple tool for cleaning up the export of a Print Publishing CMS system for eventual use in a Web-based CMS. By simple I mean we open a folder and loop through it, diving into sub-folders as needed to:

  1. Remove all images tagged with a _bw_
  2. Open XML ’story’ files and remove extra line breaks from headline elements, and clean up content HTML.

The application started as an Apple Xcode project, and has now moved into NetBeans 6.8 on Linux. In the end I hope to learn a good deal about the Qt framework, as well as proper C++ application development.

Read More

Multi-Threaded JavaScript — A Quick Look.

The strange thing about this post is that this isn’t exactly news–ever since FireFox 3.5 came out in June of ‘09, and along with Safari 4 and Google Chrome using a slightly different mechanism, these browsers all support OS Level multi-threading.

The question is, should you care?

Read More

Posix Threads In C++

It’s sometimes hard to find a good example of working with threads in C++. Thus, in the course of implementing a very simple working example I decided it wouldn’t hurt to post what I came up with.

Read More

HipHop PHP Benchmark

hip-hop

What are we looking at?

The chart above shows Ubuntu in a 2 and 8 core configuration (the x2 and x8), along with a Server 2008 instance.

What does it mean? The good folks over at FaceBook recently released a custom tool called HopHop that rewrites PHP into native C++ code. The upshot to this, as you can see, is bare-bones PHP code, that is, code which relies on math and loops and such, is much, much faster. Of course other code should be faster as well, though I have yet to benchmark more complex scripts.

Read More

JW Player Playlist Editor GUI

Here’s a simple script for managing/editing playlists in the popular JW Player.

It’s called [ Media Manager For JW Player ], and is the first GNU General Public License software I’ve ever released—e.g., it’s free and anyone can edit it.

That means I hope that this little manager will be of use to someone, but more importantly, may grow into something larger if others want it pick it up and run with it.

The Media Manager For JW Player Interface

The Media Manager For JW Player Interface

Read More

Hosting PHP: Linux vs. Windows Benchmarks

* Benchmarks current as as of 2.17.10

Who’s the fastest: Apache on Windows or Apache on Linux?. In the course of deploying a new web server I thought I’d find out. I play around with APC, Database tuning, and so on. Among other things, in the end we see how with a few simple settings we can increase our servers capacity 2 times over.

Read More

b2Evo to WordPress Export Script

We recentlly had to convert a few b2Evolution blogs to WordPress 2.8, something that is apparentlly common but not very standardized. Thus, after some digging I found a script, but it did not work with the newest versions of each component.

After a few tweaks I was able to get it working again, and now I would like to share the result with this slightly modified b2Evo to Wordpress Import Script:

import-b2evolution-wp2

If you are trying to import from another system, this codex link may be of use.

Install Apache, MySQL, and PHP On Fedora

I recently decided to try something new and perform a custom install of an AMP stack on my Fedora 10 box. I configure, build, and install everything by hand. It was an extremely rewarding experience (because it works and you learn a ton about your Linux box), but it took a while.

Read More