GD Library Error: Imagecreatetruecolor Does Not Exist

Well the simplest way of solving this is to run sudo apt-get install php5-gd That will install the necessary libraries that you need to keep continuing. If you are in windows then you need to go to your php.ini and uncomment the following lines ;extension=php_gd.dll ;extension=php_gd2.dll [just remove the ; to uncomment them] Hope that solves your image issues.

April 3, 2010 · 1 min · 59 words · Me

Cron issues on drupal

Well here are some quick ways of solving your “cron not working properly issues in drupal” It has a semaphore which blocks the cron running, in my case the PHP script ran for too long and ate up too much memory. I needed to modify my php.ini to ensure that it could take up more memory. Another issue was that you needed to delete a certain variable in the Drupal database, use the following for a quick resolution to the problem....

March 31, 2010 · 1 min · 117 words · Me

Installing Solr + Tomcat on RHEL5

Installing JDK Download the latest Sun JDK RPM. Go to java.sun.com and navigate to the downloads page. As of this writing it is http://java.sun.com/javase/downloads/index.jsp If you are on a text console, you may want to use the “links” text browser rather than wget or curl. The Sun site requires you to accept a license agreement before it will allow you to access the download. Navigate to the downloads for a recent version of the JDK (e....

March 31, 2010 · 4 min · 649 words · Me

Listing all your blogposts

So here is a quick snapshot at how to get all your wordpress blogposts using python [or wordpresslib to be specific] – #!/usr/bin/env python import wordpresslib import tinyurl wordpress = raw_input(‘‘Wordpress URL:’’) user = raw_input(‘‘Username:’’) password = raw_input(‘‘Password:’’) prepare client object wp = wordpresslib.WordPressClient(wordpress, user, password) select blog id wp.selectBlog(0) posts = wp.getRecentPosts(100) for p in posts: if p.title.find(“p=”)<0: print p.title," - “,tinyurl.create_one(p.link) – Now that is real easy to use IMHO, i just started using this in one of my scripts....

March 30, 2010 · 1 min · 100 words · Me

Chuck : Season 3 episode 10

Well, chuck with his flashing is good fun … but his kung fu is not funny. I was okay with flashing about intelligence, but all this new flashing shit is irritating ! This episode revolved around the much in the background John Casey [good man blah blah] who at the end is relegated to civilian life [how tragic]. It finally goes into the machine he is, his patriotism and all that which we all already knew about....

March 18, 2010 · 1 min · 98 words · Me