SVG Scaling Text to fit container

If you really don’t care that the text gets ugly, here’s how to fit unknown length text into a known width. <svg width=”436″ height=”180″ style=”border:solid 6px” xmlns=”http://www.w3.org/2000/svg”> <g> <text y=”50%” textLength=”436″ lengthAdjust=”spacingAndGlyphs”>UGLY TEXT</text> </g> </svg>

How to run a specific phpunit xml testsuite?

Here’s the code as if PHPUnit 3.7.13 $ phpunit –configuration config.xml –testsuite Library $ phpunit –configuration config.xml –testsuite XXX_Form If you want to run a group of the test suites then you can do this <testsuites> <testsuite name=”Library”> <directory>library</directory> </testsuite> <testsuite name=”XXX_Form”> <file>library/XXX/FormTest.php</file> <directory>library/XXX/Form</directory> </testsuite> <testsuite name=”Both”> <directory>library</directory> <file>library/XXX/FormTest.php</file> <directory>library/XXX/Form</directory> </testsuite> </testsuites> Then $ phpunit … Read more

Eclipse: Referencing log4j.dtd in log4j.xml

I know this question has been answered, but I’d like to provide my slightly different alternative: <!DOCTYPE log4j:configuration PUBLIC “-//APACHE//DTD LOG4J 1.2//EN” “http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd”> It is similar to @FrVaBe’s response, but on the plus side, does not require any further Eclipse configuration (i.e., if you’re sharing your project with others, or have a large team, it’s … Read more