RSS - Latest posts Archive for 2008

Home » Archive for 2008
14Oct
2008

How to convert PDT projects into PHPEclipse projects

If for some reason you decide to swap from one Eclipse based PHP IDE to another, rather than recreate the projects you can change their association, so that the project builders work correctly.

This is basically what you need to do if you get the following error when trying to ctrl clicka function:

“The resource is not on the build path of a PHP project”

To convert to a PHPEclipse compatible project you basically need to replace the buildSpec and natures sections of the .project file with the following:

<buildSpec>
	<buildCommand>
		<name>net.sourceforge.phpeclipse.parserbuilder</name>
		<arguments>
		</arguments>
	</buildCommand>
</buildSpec>
<natures>
	<nature>net.sourceforge.phpeclipse.phpnature</nature>
</natures>

If you need to convert the other way, or to something else, simply grab the appropriate section from a working project and paste it into the .project file you need to fix.

Categories:

24Sep
2008

How to use special characters in FPDF

FPDF is a nice little library for php that allows you to create PDFs on the fly. It’s great for all sorts of document, amongs them invoices. Until you try to use say a pound (£) or euro (€) sign. Basically the library itself does not support utf-8, so the moment you need to insert anything extra into your document a conversion needs to be done.

To save you some searching and a masive panic attack here is the easy way to do it:

iconv("UTF-8", "ISO-8859-1", "£");

You could also use the same command to do the whole text rather than just the pound sign itself. Example below:
(more…)

Categories:

29Aug
2008

openSUSE 11 on Lenovo Thinkpad X61 (tablet pc)

I have this weird ability to fall in love with gadgets that are not yet on the market… Twice in a row when choosing my laptop tablet pcs I went for something that will be available *soon*. This has the unfortunate disadvantage of being firstly very pricey, and secondly not very well supported on Linux. Both times the hardware gave me countless hours of trouble. Obviously now the Thinkpad X61 isn’t such a novelty, so life is a bit easier.

I have been recently converted to openSUSE, and after eagerly waiting for version 11 I finally got a chance to install it.

(more…)

Categories:

28Aug
2008

Server Error 500 - htaccess require valid-user

I just spent a good couple of minutes hitting my head against the wall, trying to figure out why a perfectly good .htaccess file suddenly stopped working.

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /YOUR_PATH/www/.htpasswd
AuthGroupFile /dev/null
require valid-user

After commenting things out it seemed that it was the last line that was causing the problems. However do not be fooled. Careful inspection and a bit of Google searching led me back to the AuthUserFile declaration.

But what could be wrong with it? The file exists on the server. The passwords are properly encrypted. The problem was the “www” folder. Or should I rather say symlink. Changing “www” to the original folder: “public_html” solved the issue.

Moral for today: .htaccess does not like symlink folders when it comes to .htpasswd…

Categories:

1Jun
2008

@media - London, 2008

The 2008 @media black bag with the white logo in the middle

@media bag 2008

This years @media conference took place during the London Web Week on 29th and 30th of May, at the Southbank Centre in London. And it is not a coincidence this post opens our ThinkRobot blog. Inspired by the Hot Topics Panel suggestion for establishing your identity five years prior to hitting the market, we have decided it’s about time for us to do just that. (more…)

Categories: