Monday, January 3, 2011

How to fix phpmyadmin error: "Connection for controluser as defined in your configuration failed"

"Connection for controluser as defined in your configuration failed" It's one of those small, annoying messages that appear out of the way on your screen, but still catches your eye once in a while especially when you're deep in thought about how to building a multi-join query in the SQL tab of phpmyadmin.

Well, it annoyed me today so much that I finally decided to do something about it and finally take a look. I opened up the PHPMyAdmin config file located at /etc/phpmyadmin/config-db.php on Ubuntu Maverick Meerkat. There's a default username and password in $dbuser and $dbpass

Fix "Connection for controluser as defined in your configuration failed" in PHPMyAdmin on Ubuntu.

Thursday, December 16, 2010

ContentPane in dojo not loading scripts? This is how you fix it.

I was planning on writing my first enquiry on how to do something in dojo, but just before I pressed the submit button, I thought I'd look into one more thing and as the saying goes - "it's always in the last place you look" (probably because you stop looking after you find whatever it is you're looking for).

So the problem I had was that I wanted to load a datagrid inside a contentPane in a pet project my newbie friends and I are using to sharpen our Zend Framework skillz.

I've been idle (and will continue to be for the rest of the year) so all my tickets are pretty much at a stand

ContentPane in dojo not loading scripts or dijits in zend framework

Friday, December 10, 2010

Happy Holidays everyone -- Winding down to hiatus mode.

Well, as fast as my wheels were turning for the past few weeks, I've decided to slow down for the holiday season and spend some time with the family.

To me, there is nothing better than _quality_ time with family - big emphasis on "quality" because when I'm in work mode, I'm always half thinking about work even when I'm sitting on the couch watching TV.

For me, now is the time to not think about work and spend time with, and think about what I'm really working for. This is also a good time to reflect on my goals for next year.

On a final note for 2010, I'd like to wish you all a Merry

more info on rvdavid.net

Saturday, December 4, 2010

Analysis Paralysis: In a quest for perfection, I manage to achieve nothing

This was supposed to be a live coding note, but it just turned into something else. No ground breaking news, no new concept which will make you go "hmmm", just a guy kicking himself - you can safely ignore this frustrated post if you aren't in the mood to read about how much an idiot I think I am :P

It's been a mixture of Tunnel Vision, NIH Syndrom and Analysis paralysis that had me living in a haze of trying to implement DataMappers ala Zend Quickstart Guide on and off, for the past 4 weeks.

I even wrote the Unit Tests and everything for this project I've taken part in called

I found ZF doctrine provider at the end of Analysis Paralysis

Tuesday, November 30, 2010

Unit testing with Live Databases and/or How do I use Mock Objects?

This is another live coding note. I've found my rhythm with TDD and currently bashing away at some unit tests for the Models and Service layers for a project I'm working on.

In tonights post, I'm going to write about how I get around with Unit Testing live databases.
Unit Testing with Live Databases
For my unit tests, I'm currently working with a live test database since I don't fully understand the "power" of mock objects. If you have any links out there that's worth noting, please be a friend and "link me". I'm not going to pretend that I know everything and anything about Web

unit testing with mysql test database, mock objects

Unit testing with Live Databases and/or How do I use Mock Objects?

This is another live coding note. I've found my rhythm with TDD and currently bashing away at some unit tests for the Models and Service layers for a project I'm working on.

In tonights post, I'm going to write about how I get around with Unit Testing live databases.
Unit Testing with Live Databases
For my unit tests, I'm currently working with a live test database since I don't fully understand the "power" of mock objects. If you have any links out there that's worth noting, please be a friend and "link me". I'm not going to pretend that I know everything and anything about Web

more info on rvdavid.net

Saturday, November 27, 2010

How to Get Gigabit Speeds from RTL8111/8168B PCI Express Gigabit Ethernet controller on Ubuntu Linux

Do a quick lspci. Now do you see: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02) for your Ethernet controller?

If so and your network connection information is reporting that your speed is 100 Mb/s rather than 1000 Mb/s, then you MIGHT be using the r8619 driver rather than the CORRECT r8168!

This is what I experienced when I had recently hooked my network up at home. I bought a ReadyNas Duo and updated my network switches to gigabit speeds with two D-Link Gigabit switches.

The expected Gigabit speeds 30 - 40 MB/s did not come. Instead I

gigabit speeds fixing r8168 and r8169 realtek NIC

How I refactored my Service Class to be "Separation of Concerns" Compliant.

I'm developing this web application where a users actions is logged at certain places. I initially wrote the logging features into the Main Users Service. I'm currently looking at it now and will be refactoring out the functionality to separate concerns. While to me, at the time, logging a Users action is from a natural standpoint looked like it belonged to the Users service, a more thorough look at it made it clear that the Logging functionality should be it's own Service.
Don't see where the mix up of concerns is?
Here's a list of functionality my Users Service class

php model service class layer refactoring

Dojo's IndirectSelection plugin for the Enhanced Datagrid is deceptively unuseful.

One of the requirements for a project I'm working on is the ability to send emails to selected rows in the datagid. I thought no problem, the IndirectSelection plugin of the EnhancedGrid should be able to handle that semantically! Reading the API and when I initially tried it out I saw the neat little checkboxes as the first column. "Phoar! Checkboxes!" I swear those CBs had a glow around it and I could hear a choir singing in the background ("haaaaaaaaaaaaaa, easy fix for a requiremeeeeeeeeeeennnnnnnnnnnnnnt").

Then I tried submitting with a bunch of rows selected. It was then clear to me

Dojo IndirectSelection Javascript datagrid plugin

Ubuntu CD Burning: Brassero is OUT; GnomeBaker is IN

I am using Ubuntu 10.10 Maverick Meerkat as my desktop OS and enjoying all the wonderful stability and great hardware support that has been steadily built by the Ubuntu Development team and Linux in general up to this point.

So when I tried to burn a Data CD of pictures to give to give to one of my colleagues who was on his way out, I was irritated by Brassero's buggyness. Brassero, the default burning program used in Ubuntu 10.10 (perhaps other distributions before) was good before. I don't know why all of a sudden it would burn the entire CD and then report in the end that it could not

Ubuntu Linux CD Burning Software