Planet der Usergroup Dortmund
Aggregierte Feeds der Groupies der Usergroup Dortmund.
Getting Sony Vaio X WWAN to work under Ubuntu Linux
By Jakob Westhoff at 1265491707
Three month ago I bought a Sony Vaio X netbook. The Windows 7 which was preinstalled on the system was no option for me. I installed Ubuntu on it and got mostly all of the hardware working. Read my Ubuntu Installation experience article for more details. One piece of hardware did however refuse to work: The WWAN modem. Finally the offline times are over. The modem is now working like a charm.
Mehr lesen...Talk about "Software Metrics" at PHPUG Cologne
By mapi at 1265269680
This friday I will give my software metrics introduction talk at the PHP User Group Cologne. The talk covers several aspects of static code analysis. Starting with classic count and complexity metrics, up to modern metrics, which are used for tracking the dependencies and coupling in a modern OO-systems.
In den letzten Jahren findet das Thema Qualitätsicherung immer stärkere Beachtung. Softwaremetriken spielen hierbei eine wichtige Rolle, denn diese statischen Kennzahlen helfen ein Projekt zu überschauen und Schwachstellen frühzeitig aufzudecken. Diese Session gibt einen Überblick über existierende Metriken, Kombinationen und deren Verwendung als Werkzeug zur Qualitätsicherung.
I hope this talk will inspire some of the listerners, how software metrics can be used to improve the quality of their software projects.
Mehr lesen...phpUnderControl 0.5.1 released
By mapi at 1264968995
Today I have released phpUnderControl version 0.5.1. It's a bug fix release that closes several issues open since a long time. First of all I would like to thank Sebastian Marek who was the main contributor to this releases, so a big thankyou to you.
- Now phpUnderControl should work with CruiseControl 2.8.3. Thanks to Mike van Riel who provided some hints on this issue in a blog comment.
- Fixed #983: Graph unitests throw fatal error when ezComponents not available.
- Fixed #966: phpcs-details.xsl not showing file name.
- Closed #863: Destination option is now deprecated.
- Fixed #862: Command line switches without parameter don't work.
- Fixed #861: Password is used as username in check outs. This patch was supplied by Thorsten Daners via e-mail.
- Fixed #734: Now the build dropdown redirects to the correct build uri.
- Implemented #703: PHPUnit test results are now the first entry on the project overview page.
- Fixed #700: Throw an exception when the specified project does not exist.
- Implemented #675: Use "php -l" for lint checking and not PHPUnit.
- Implemented #625: Integrate PHP_Depend results.
Beside the new release some more things have changed. From now on the phpUnderControl development is hosted on github. This means that from now on the latest version of phpUnderControl can be obtained with the following command:
mapi@arwen ~ $ git clone \
git://github.com/manuelpichler/phpUnderControl.git
Additionally we have moved the phpUnderControl's PEAR Channel Server from pear.phpunit.de to its own server pear.phpundercontrol.org. At this point I would like to thank Sebastian for providing phpUnderControl's infrastructure under the PHPUnit umbrella for the last three years.
mapi@arwen ~ $ pear uninstall phpunit/phpUnderControl mapi@arwen ~ $ pear channel-discover pear.phpundercontrol.org mapi@arwen ~ $ pear install --alldeps phpuc/phpUnderControl-beta Starting to download phpUnderControl-0.5.1.tgz (539,717 bytes) ..........................................done: 539,717 bytes install ok: channel://pear.phpundercontrol.org/phpUnderControl-0.5.1Mehr lesen...
PHPMD wednesday... PHPMD 0.2.2, PHPMD Ant Task, PHPMD on GitHub
By mapi at 1264018316
Today I have released PHPMD 0.2.2, a minor bug fix release that solves some exit code issues in the previous version. Beside this, I am proud to announce the first release of the PHPMD Ant Task. It allows a seamless integration of PHPMD into your Ant build.xml file. So, please download the PHPMD Ant Task, test it and file bug reports or feature requests in PHPMD's issue tracker.
You can get the latest PHPMD version from its PEAR channel: pear.phpmd.org
mapi@arwen ~ $ pear channel-discover pear.pdepend.org mapi@arwen ~ $ pear channel-discover pear.phpmd.org mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alpha
Beside this two releases there is an additional news. From now on you can find an up-2-date mirror of PHPMD's subversion repository on github, so that you can fork PHPMD and participate on in development on these days social coding plattform.
mapi@arwen ~ $ git clone git://github.com/manuelpichler/phpmd.gitMehr lesen...
PHP Mess Detector 0.2.1 released
By mapi at 1262727060
This is just a small bugfix release of PHPMD. It introduces a small new feature that enables PHPMD's command line tool to handle multiple input files. This feature was required for some upcoming external features and extensions. Since version 0.2.1 you can call the command line tool of PHPMD with multiple input files and/or directories, separated by comma.
mapi@arwen ~ $ phpmd phpmd,systemDaemon text unusedcode
You can get the latest PHPMD version from its PEAR channel: pear.phpmd.org
mapi@arwen ~ $ pear channel-discover pear.pdepend.org mapi@arwen ~ $ pear channel-discover pear.phpmd.org mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alphaMehr lesen...
Pdf Presenter Console 1.1 released
By Jakob Westhoff at 1262546563
After a lot of feedback, bugfixes and minor improvements it is time to release version 1.1 of the Pdf Presenter Console. Furthermore I migrated the project over to github.
Mehr lesen...staticReflection 0.1.4 released
By mapi at 1262471886
Today I have released version 0.1.4 of the staticReflection component. This release contains two critical bug fixes.
- Fixed #5: Filenames not normalized from relative to absolute paths. Fixed in svn revision #259.
- Fixed #6: Queries do not hold references to previous parsed classes and interfaces. Fixed in svn revision #269.
You can get the latest stable version of the staticReflection component through its PHP_Depend's PEAR channel:
mapi@arwen ~ $ pear channel-discover pear.pdepend.org mapi@arwen ~ $ pear install pdepend/staticReflection-alpha
or you can download the latest version from the staticReflection svn respository:
mapi@arwen ~ $ svn co http://svn.reflection.pdepend.org/trunk \
staticReflection
Mehr lesen...
PHP Mess Detector 0.2 released.
By mapi at 1262126400
Today I have released version 0.2.0 of the PHP Mess Detector or short PHPMD. PHPMD is a simple, customizable and user friendly frontend application for PHP_Depend. It takes the raw metrics measured by PHP_Depend, compares them with appropriate thresholds and generates a report that lists those software artifacts with potential problems. Such a report can be taken as a basis for human code audits or you can use it as input for an automated build/reporting tool.
Most concepts behind PHPMD are based on those of the well known Java Tool PMD. It uses so called rule set files to organize different sets of rules. There are two purposes that are accomplished by these xml files. The first is to create custom sets of rules which fulfills the projects requirements. The second purpose is the configuration of each rule with thresholds, warning messages and other things. The format of these files is totally borrowed from PMD, so that the reuse existing rule sets in multi language environments should be easy. At the moment PHPMD has two build-in rule sets. One that detects software artifacts with high code size, and the second one detects unused code in your software.
Now lets start with a small How to use it. PHPMD can be called from the command line by typing phpmd, which prints a general help text.
mapi@arwen ~ $ phpmd Mandatory arguments: 1) A php source code filename or directory 2) A report format 3) A ruleset filename or a comma-separated string of ... Optional arguments that may be put after the mandato... --minimumpriority: rule priority threshold; rules with ... --reportfile: send report output to a file; default to ... --extensions: comma-separated string of valid source ... --ignore: comma-separated string of patterns that are ...
Now let's call PHPMD on its own source, with a simple text report on STDOUT and the codesize ruleset:
mapi@arwen ~ $ phpmd ~/phpmd/source text codesize /home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:66 \ This class has too many methods, consider refactoring it. /home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:267 \ The method _parseSingleRuleNode() has a Cyclomatic \ Complexity of 11. /home/mapi/phpmd/source/PHP/PMD/RuleSetFactory.php:326 \ The method _parseRuleReferenceNode() has a Cyclomatic \ Complexity of 10.
The --reportfile option can be used, to redirect the report output into a file. So let us repeat the previous example that writes the report into a file, additionally uses the unusedcode rule and changes the format from text to xml.
mapi@arwen ~ $ phpmd ~/phpmd/source xml codesize,unusedcode \ --reportfile ~/pmd.xml mapi@arwen ~ $ cat ~/pmd.xmlPMD and PHPUnit's deprecated --log-pmdoption. So that it should be no problem to use this files in existing environments like Hudson, CruiseControl or Sonar.Currently PHPMD supports the following three different report formats: Text, HTML and XML. And it has the build-in rule sets:
codesizeandunusedcode.You can get the latest PHPMD version from its PEAR channel: pear.phpmd.org
mapi@arwen ~ $ pear channel-discover pear.pdepend.org mapi@arwen ~ $ pear channel-discover pear.phpmd.org mapi@arwen ~ $ pear install --alldeps phpmd/PHP_PMD-alphaMehr lesen...
Building Vala projects with CMake
By Jakob Westhoff at 1262035666
Recently I wrote an application in Vala. Vala is a great language positioned around the GObject system, which is used a lot in the GTK/Gnome world. Vala is a very feature rich object-oriented high-level language, which incorporates modern language concepts known from C# or current versions of Java. In contrast to Java and C# Vala programs do not need any memory consuming runtime to be executed. They are compiled to plain C code, which is then compiled using your favorite compiler chain into good old machine code. Most likely this will be GCC. To be able to build my Vala project I wanted to use CMake, which I like much better than the autotools. This blogpost gives a practical demonstration on how to integrate Vala with CMake to build your Vala based projects.
Mehr lesen...PHP_Depend-0.9.9 released
By mapi at 1261866397
I have just released the bug fix version 0.9.9 of PHP_Depend.
- Fixed #108: Parser doesn't set start/end line/column on variables, fixed in svn revision #1015.
- Implemented #104: Add isStatic() method on ASTMemberPrimaryPrefix node, implemented in svn revision #1013.
You can get the latest PHP_Depend version from its PEAR channel: pear.pdepend.org
mapi@arwen ~ $ pear channel-discover pear.pdepend.org mapi@arwen ~ $ pear install pdepend/PHP_Depend-betaMehr lesen...