Archive of articles classified as' "Uncategorized"

Back home

Installing WP Super Cache with lighttpd

19/02/2009

Trying to get WP Super Cache & Wordpress working on my fast lighttpd server, I came into problems, mainly because of lighttpd’s lack of (Apache’s version of) the mod_rewrite module. The static files that were created from the cache were not statically served from wordpress. The problem is that in order to use them, the PHP fcgi was called for each request. So, why would we have to call PHP every time that a file can be completely statically provided by the web server?

Following this guideI came up with some problems trying to serve the static files. The problem with that version of the rewrite.lua script is that it does not really work the way it should. The whole point of using WP Super Cache is to avoid calling the PHP fcgi for posts that are already cached into an html file. Calling the PHP fcgi is much slower than using the “core” lighttpd static-page-serving facilities.

So, what did I do to avoid calling the PHP fcgi?

Read the rest of this article »

17 Comments

Adding -pthread to eclipse, for using posix threads

15/02/2009

Problem

Cannot compile c/c++ project with -pthread. Eclipse is complaining about things.

Solution

Eclipse is not configured to put the -pthread argument in the gcc compilation. To solve this, go to the Menu:

Project -> Properties

From the bar on the left:

c/c++ build -> GCC C Compiler -> Miscellaneous

Add the “-pthread” argument into the beginning of the “Other Flags” Also go to:

c/c++ build -> Settings -> GCC C Linker -> Libraries

And include the “pthread”library into the other libraries. Click Apply and rebuild the project. Pthreads must work now.

9 Comments

gEclipse training at University of Cyprus

13/02/2009

There is a gEclipse training on Monday 16th Feb ‘09.  We are going to demonstrate the gEclipse platform and its usage. The training will include:

  • gEclipse installation 
  • Grid jobs submission
  • Data management though gEclipse

I am going to present an introduction to Ganga and an example of the “Gridification” of an application.

More information: agenda and registration.

See you there!

No Comments