Archive of articles classified as' "Uncategorized"

Back home

Installing MacTex and TeXlipse on Mac OS X

25/02/2009

tex_logoTeXlipse is an Eclipse Plugin that allows you to have control of your Tex files, compile them, and convert them to PDF. It runs through Eclipse and its very easy to use. Using Eclipse as a tool for Tex is nice because you can use all the other Eclipse’s tools to be more productive(CVS, SVN, Mylin etc).

The only requirement to install Texlipse, is to have a Tex toolchain already installed on your Mac. The recommended way to have the whole toolchain, is to install MacTex. In order to install it, just visit http://www.tug.org/mactex/ and install it(the file you are about to download is about 1.2 GBs!).

After you have installed MacTex, you have to install TeXlipse.

Read the rest of this article »

68 Comments

SSH Tunneling to redirect requests from a local port to a remote one

20/02/2009

Suppose that you want to access a remote port in a machine that runs a service on port 3306. Also suppose that the remote machine has restricted access to that port only for requests coming from the host “localhost”. You will have to create a tunnel to that machine and tunnel all your requests from you local computer’s port e.g. 2000 to the remote host’s port 3306.

ssh  -L 2000:localhost:3306  root@asteriosk.gr

After doing this, every request to localhost:2000 will be redirected(tunneled) to the remote machine at port 3306 through a secure channel! The remote machine, will accept all requests coming from the tunnel like if they were coming from localhost.

For me, this was a very nice way to access my MySQL database from my computer with the Sequel Pro client that does not support SOCKS proxies. I tell Sequel to connect to 127.0.0.1:2000 and all the requests that I make, are being redirected to my host (asteriosk.gr) so that MySQL thinks I am a local user and lets me in.

Let me know if there is something not clear here!

4 Comments

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 »

35 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.

177 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!

10 Comments