SaveFileDialog Error When Debugging Silverlight Applications

June 9, 2010
Tags: , ,

If you’re having difficulties debugging a section of code that uses the SafeFileDialog.ShowDialog() method, the reason is that Silverlight requires that the ShowDialog() method be called from a user-generated action. For whatever reason, entering into debug mode makes Silverlight think that you are not responding to a user-action, even when you are. To work around [...]

0

Change Default Layout when Using Zend Framework

June 3, 2010
Tags: , ,

Quick Tip: If you want to change the default layout script in your Zend Framework MVC application, you can do one of the following: // Within controller $this->_helper_layout->setLayout(‘other-layout’) //other-layout.phtml //Within view script layout()->setLayout(‘other-layout’); ?> Thanks to Andrew at the StackOverflow forums. –Adam

0

Setting Document Root to Point to a Network Share With Windows/Apache

May 30, 2010
Tags: , ,

Quick tip: If you’re wanting to have your Apache document root point to a network share in Windows, here’s what you have to do: Change your DocumentRoot to the network share (drive remapping doesn’t seem to work).  Example: DocumentRoot “//path/to/share” Make sure to update the DocumentRoot path in your <Directory> config Edit the Apache service [...]

0

PHP 5.3 and MySQL: A connection attempt failed because the connected party did not properly respond after a period of time…

February 10, 2010

Having difficulty connecting to MySQL through PHP 5.3.x? Know that MySQL and PHP are properly configured? Using Windows Vista / 7? The problem may very well be that you’re connecting to ‘localhost.’ According to Joe Bedan, simply changing ‘localhost’ to ’127.0.0.7′ will fix the problem, and he’s right! According to another forum post, this is [...]

0

Canceling AutoPostBack for Asp.Net DropDownList

January 25, 2010
Tags: ,

In my most recent project, I decided to prompt the user before doing a post back when a DropDownList changed. In order to do so, you need to add an “onchange” event to your DropDownList. It should look something like: onclick=”if(!SomeFunction(this)) return false;” Some Notes: “SomeFunction” is a javascript function that returns true or false [...]

0