Archive for July, 2011

SelectList 0.4.2

Sunday, July 31st, 2011

I have released a new minor version of selectList. It introduces a small feature that was requested by a few people, and that is the ability to easily remove all selected items. Before this release, this was possible, but unnecessarily complicated. Now, it’s just a matter of calling the remove() API method with no arguments:

$('select').selectList({ instance: true }).remove();

As always, thanks for everyone’s feedback.

Dancer::Plugin::DebugToolbar

Friday, July 29th, 2011

As you might remember, I recently got interested in Dancer, the fabulous micro web framework for Perl. That interest led me to rewrite my website to Dancer, but that wasn’t enough — I found the framework really fun and wanted to play with it a bit more. So I started a small project to develop a plugin that adds a debugging toolbar to Dancer web applications.

I have now made the plugin available on GitHub, and I will be releasing it on CPAN shortly. It’s still in an early stage of development — at this point, it only allows you to inspect your application’s routes and basic data structures. I hope to eventually turn it into a decent development tool, which would also be easy to use to help new Dancer users get familiar with the framework.

Here’s a screenshot of the toolbar displayed at the top of the browser viewport:

Dancer debugging toolbar

And this is how the data inspection window looks:

Debugging toolbar data window

As usual, I’m looking forward to feedback, especially from you fellow dancers out there.

MonkeyConfig

Sunday, July 17th, 2011

Here’s a slightly late announcement — a few days back, I added a new project to the projects page. It’s called MonkeyConfig and it’s a configuration dialog builder for Greasemonkey scripts.

As with most of my projects, it was born out of necessity. I wanted to add a user-friendly configuration screen to another script of mine, View as Source. I knew about the de-facto standard configuration library GM_config, but I had trouble getting it to do what I wanted — I couldn’t find an easy way to create a form field combined of two drop-down lists, and the generated configuration screen looked ugly for whatever reason (like some styles were missing). I finally gave up on it and decided to develop my own solution.

The just-released version is still pretty immature, but it’s already functional enough to be useful, especially for simple scripts with just a few configuration parameters. Here’s an example of a configuration dialog generated by MonkeyConfig for the View as Source script:

View as Source configuration dialogIf you’re a Greasemonkey script author and would like to give it a try, you’ll find some basic usage instructions on the project page and in the documentation (it’s pretty minimal at this moment, I’ll be expanding it).

The script is also on Userscripts.org and GitHub.

  • Archives

  • Categories

  • Meta

  • Latest Tweets


    Warning: Illegal string offset 'last_access' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 334

    Warning: Illegal string offset 'time_limit' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 334

    Warning: Illegal string offset 'last_access' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 336

    Warning: Illegal string offset 'twitter_api' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 234

    Warning: Illegal string offset 'user_token' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 262

    Warning: Illegal string offset 'user_secret' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 263

    Warning: Illegal string offset 'consumer_key' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 264

    Warning: Illegal string offset 'consumer_secret' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 265

    Warning: Illegal string offset 'twitter_username' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 270

    Warning: Illegal string offset 'show_retweets' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 272

    Warning: Illegal string offset 'exclude_replies' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 275

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 282

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 350

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 351
    Twitter outputted an error:
    .
    Warning: Illegal string offset 'time_format' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 484
  • Follow odyniec on Twitter