-
Recent Posts
- Problems connecting to unix:///var/mysql/mysql.sock
- Using rails and respond_to to include nested data
- Handle different environments with PHP
- MySQL 5.5, Mac OS X and startup item security error
- Rails plugin development using WebMock
- Read more, continue reading, and how to easily fix it using WP
- Windows clients with CUPS and Samba
- Making a Cafe Latté without a “do it all” machine
- Using form_tag and collection_select with Rails3
- Switching coffee and PHP testing
Tags
ajax apache api authentication cakephp coffee configuration cups cxf daily365 design firebug gedit hibernate history java javascript jcs job language linux mac mvc mysql non-tech opensource paginate php plugin projects prototypejs quick tip rails ror ruby samba smashingmag snapopen spring terminal test twitter usability wordpress wpml
Tag Archives: plugin
Rails plugin development using WebMock
I had a few problems getting WebMock working with my rails 3 setup.
When I used webmock in my rails 3 app, the tests ran and all was nice.
But when I wanted to create a plugin using the exact same code as I just tested inside my rails app, I went into some problems.
To start, I created a new plugin using
rails generate plugin myclient
The files were generated and all seemed fine.
Continue reading “Rails plugin development using WebMock” »
WPML, what is the current language?
While building a wordpress theme that has multilingual support, I needed to know what the current language was for fixing some static parts of my template. After searching a bit on the WPML site, I found a code example where …
Continue reading “WPML, what is the current language?” »
(php) flash-message plugin
For a long time I’ve wanted a way to send messages from my controller to my view, when posting data. The message could be “Your update went well” or some error.
Continue reading “(php) flash-message plugin” »
Tagged opensource, php, plugin
Comments Off
(php) Paginate component
After removing CakePHP from my site, I really missed having pagination on it. So I created a small PHP component I’ve called Paginate and I’ve released it over on github: http://github.com/jimmiw/php-paginate.
It’s designed to be easy to use (only 3 lines of code!), and the output should be easy to style.
I hope you enjoy it
Continue reading “(php) Paginate component” »
Tagged opensource, paginate, php, plugin
Comments Off
Ajax Upload component
Today I created a “ajax upload” component, that mimics the behaviour google has in their gmail application, when you attach files to an email.
It’s not totally complete yet and no exambles have been added yet. They will come later though!
Head over to github.com/jimmiw and check it out
Continue reading “Ajax Upload component” »
Tagged ajax, javascript, opensource, plugin
Comments Off
Snap Open forked!
I have been using Snap open in gEdit for quite some time and I love it. It’s fast and easy to use, plus it saves me from using my mouse. However, the “fast” part seems to loose it’s grounds, when you start using it in larger projects. I even started to have problems on java projects.
After some investigation, I found out that it also looked in my target folder. The .snap_open_ignore file helped a lot here though. But still the search was slow and some times the search window stalled for longer periods.
Continue reading “Snap Open forked!” »
Tagged gedit, opensource, plugin, snapopen
Comments Off