You are here: Home » Development

Category Archives: Development

[jmeter] Update: jmeter-maven-plugin 1.7.0

We released a new version of the -- today. Check it out!

Changelog:

  • issue #54 – Build directory ignored – Fix applied
  • issue #57 – Jmeter version 2.8 support added.

(links)
JMeter Maven Plugin official website
JMeter Maven Plugin @ Github

Also posted in Java, Jmeter | Tagged , , , , | Leave a comment

[jmeter] Update: jmeter-maven-plugin 1.6.0

We released a new version of the -- today. Check it out!

Changelog:

  • Support for JMeter 2.7
  • #41 – Removed deprecated log scanning code.
  • #42 – Reporting disabled by default (Takes a long time to parse the logs, so you need to explicitly turn it on now).
  • #45 – Fixed intermittant test end detection bug (Major refactor using thread detection to detect test end).
  • #49 – Added jmeter:gui goal so that you can start the GUI using maven.
  • Reporting is now marked as deprecated in preparation for bringing in a new reporting module.

(links)
JMeter Maven Plugin official website
JMeter Maven Plugin @ Github

Also posted in Java, Jmeter | Tagged , , , , | Leave a comment

[jmeter] Update: jmeter-maven-plugin 1.5.0

We released a new version of the -- today. Check it out!

Changelog:

  • #41 – Removed deprecated log scanning code.
  • #42 – Reporting disabled by default (Takes a long time to parse the logs, so you need to explicitly turn it on now).
  • #45 – Fixed intermittant test end detection bug (Major refactor using thread detection to detect test end).
  • #49 – Added jmeter:gui goal so that you can start the GUI using maven.
  • Reporting is now marked as deprecated in preparation for bringing in a new reporting module.

(links)
JMeter Maven Plugin official website
JMeter Maven Plugin @ Github

Also posted in Java, Jmeter | Tagged , , , , | Leave a comment

[jmeter] Update: jmeter-maven-plugin 1.4.1

We released a new version of the -- today. Check it out!

Changelog:

  • issue #34 – plugin now uses the jmeter.exit.check.pause set in the final jmeter.properties used by the plugin and is no longer hard coded to 2000.
  • issue #37 – plugin now uses a listener instead of scanning log files to work out when test has completed.

(links)
JMeter Maven Plugin official website
JMeter Maven Plugin @ Github

Also posted in Java, Jmeter | Tagged , , , , | Leave a comment

[jmeter] Update: jmeter-maven-plugin 1.4

I joined of the unofficial -- about a year ago.

Now, we have released version 1.4 which is compatible with JMeter 2.6.
We rewrote big parts of the plugin and changed most of the configuration parameters.

Changelog:

  • New group.id com.lazerycode.jmeter
  • New artifact.id jmeter-maven-plugin
  • Depends on the official Apache JMeter 2.6 artifacts (now available at repo1.maven.org/maven2/org/apache/jmeter/)
  • Incompatible configuration element changes
    • Custom property file locations cannnot be configured directly any more, they have to be put into src/test/jmeter/
    • Renamed/moved properties:
      • includes -> testFilesIncluded
      • excludes -> testFilesExcluded
      • srcDir -> testFilesDirectory
      • enableReports -> reportConfig->enable
      • reportDir -> reportConfig->outputDirectory
      • reportPostfix -> reportConfig->postfix
      • reportXslt -> reportConfig->xsltFile
      • jmeterIgnoreFailure -> ignoreResultFailures
      • jmeterIgnoreError -> ignoreResultErrors
      • jmeterUserProperties -> propertiesUser
      • jmeterDefaultPropertiesFile -> propertiesJMeter
  • New properties
    • proxyConfig->host, proxyConfig->port, proxyConfig->username, proxyConfig->password, proxyConfig->nonProxyHosts – used to configure a proxy used by JMeter
    • suppressJMeterOutput(Default: true) – suppress JMeter output to standard out.
    • remoteConfig->start, remoteConfig->stop, remoteConfig->startAll, remoteConfig->startAndStopOnce – used to configure handling of remote testing.
    • testResultsTimestamp(Default: true) – enable/disable timestamping of the results filename(s).

(links)
JMeter Maven Plugin official website
JMeter Maven Plugin @ Github

Also posted in Java, Jmeter | Tagged , , , , | Leave a comment

[How To] (De-)register a Style Sheet in WordPress

How do register styles

Just like JavaScript, CSS files shouldn’t be added to directly, but by using the API.

If you want to add your own CSS file to WordPress, there are two method calls you should be aware of:

wp_register_style
wp_enqueue_style

the usage is pretty simple:

wp_register_style('css-name', 'location-to-your-css-file', __FILE__), array(), 'version-number', 'screen');
wp_enqueue_style('css-name');

this will register your CSS file and add it to the site header.

How to deregister styles

Now, if you want to get rid of a Style Sheet that is added by your theme or a you use, there is also a simple way to do that (given that the methods mentioned above are used to add the Style Sheet):

wp_deregister_style (unfortunately, no description is available on the WordPress site)

You will have to know the name with which the Style Sheet is registered. For example, if you use my Colorbox plugin and choose the first theme, the Style Sheet will be registered with the name “colorbox-theme1″.

Now, in order to deregister the Style Sheet, you’ll have to add the following lines to your functions.php:

add_action( 'wp_print_styles', 'custom_deregister_styles', 100 );
function custom_deregister_styles() {
  wp_deregister_style( 'colorbox-theme1' );
}

(links)
wp_register_style @ WordPress Codex
wp_enqueue_style @ WordPress Codex

Also posted in Plugins, WordPress | Tagged , , , , | Leave a comment

[How To] Load Javascript in WordPress

If your or theme uses , it is essential to know how to include it so that you don’t break other libraries or plugins/ that use .

The straight forward way to load JavaScript is of course to embed a script tag with the JS file as a src attribute:

<script src="my-plugin/js/.js"></script>

Of course you can load your own custom JavaScript that way, but don’t do that if you are loading a JavaScript library! Check the list of JavaScript libraries supplied by WordPress. Do not include a library with your theme/plugin if WordPress already brings it along!!!

WordPress offers a nice and easy way to load JavaScript libraries, the wp_enqueue_script() function. If you are including a JavaScript file that depends on e.g. jQuery, you can just tell WordPress and it will load jQuery for you!

Example from my jQuery Colorbox plugin:

wp_enqueue_script('colorbox', plugins_url('js/jquery.colorbox-min.js', __FILE__), array('jquery'), '1.3.6');

I tell WordPress to load the Colorbox JavaScript library that depends on jQuery. WordPress makes sure that the jQuery library is loaded before my JavaScript is loaded so everything will work as expected.

(links)
wp_enqueue_script description @ WordPress
JavaScript libraries supplied by WordPress

Also posted in JavaScript, WordPress | Tagged , , , , , , | Leave a comment

[development] WordPress cheat sheets

I have compiled a list of four cheat sheets for .

Woorkup WordPress cheat sheet

Woorkup WordPress cheat sheet

(by Woorkup)

Graphicrating WordPress cheatsheet

Graphicrating WordPress

(by Graphicrating)

An extensive list, available online. A reader of that blog uploaded the cheat sheet as a PDF here.

WP TOY Theme development checklist

WP TOY Theme development checklist

(by WP TOY)

Tekka SEO cheat sheet

Tekka SEO cheat sheet

(by Tekka)

Also posted in WordPress | Tagged , , , | 1 Comment

[development] jQuery cheat sheets

It is always difficult to remember the syntax of APIs. This is where cheat sheets come in handy.

These are three cheat sheets that I found on the web:

Future Colors.ru jQuery cheatsheet

Future Colors.ru jQuery 1.4

(by Future-Colors.ru)

Impulsestudios.ca jQuery cheatsheet

Impulsestudios.ca jQuery 1.4 cheatsheet

(by Impulsestudios.ca)

Woorkup.com jQuery 1.3 cheatsheet

Woorkup.com jQuery 1.3 cheatsheet

(by Woorkup.com)

Also posted in JavaScript | Tagged , , , | Leave a comment

[development] Increase your jQuery performance

Giulio Bai took the time to sum up ten things to do to speed up performance.

Read the post here.

Also posted in JavaScript | Tagged , , | Leave a comment