Showing articles 81 - 90 (146 total)
Posted on 03/05/2010 at 10:54 am | Viewed 11,240 times | 0 comments
I have a client that sends me newsletters in Microsoft Publisher format. I wanted to output the newsletter as a PDF, but wanted to keep the text for SEO and so users can copy and paste the text if needed. Microsoft Publisher doesn't have an export to PDF function, so usually I would just do a File > Print and select Adobe PDF as the printer. ...
Read More | Comments
Posted on 03/04/2010 at 12:01 pm | Viewed 25,175 times | 2 comments
If you want to have multiple submit buttons that make a form do different things there's a simple way to do this. The name of the submit button that was clicked by the user will be sent (via POST) with all the other POSTed data. This is very handy if you want to have a cancel button and continue button. In CakePHP the name of the button won't...
Read More | Comments
Posted on 02/25/2010 at 02:44 pm | Viewed 22,406 times | 0 comments
Let's have some fun with PHP's break command... I didn't think it was possible. I just learned (I've been programming PHP for like 7 years) that you can instruct break how many levels of nesting to break out of! I'm not surprised that break in PHP allows you to specify the number of loops (or switch statements) to break out of, but I am...
Read More | Comments
Posted on 02/25/2010 at 07:20 am | Viewed 12,354 times | 0 comments
For reasons too long to explain in this post, I have two behaviors that are run on the same pieces of data (a translate behavior and a settings import/export behavior). One behavior is attached to the model using var $actsAs, while the other behavior is attached dynamically, during runtime using $this->attachBehavior();. I needed the...
Read More | Comments
Posted on 02/23/2010 at 12:22 pm | Viewed 17,512 times | 1 comment
I ran into an interesting problem today. What I wanted to do was know if a table didn't exist in my CakePHP application. What happens- a cakeError is thrown everytime a database table doesn't exist. This is really annoying...I think it would be beneficial to be able to tell Controller::loadModel() to return false instead of an error...
Read More | Comments
Posted on 02/03/2010 at 12:17 pm | Viewed 20,601 times | 2 comments
I came across an interesting issue with web forms and CSS. Surprisingly, the end result is much better than I expected. I knew that using an image instead of a traditional form submit button (<input type="submit">; instead of <input type="image"> or <input type="button">) would be a little challenging. I like a challenge, plus I wanted to...
Read More | Comments
Posted on 02/02/2010 at 08:18 am | Viewed 15,340 times | 0 comments
This isn't a weird error in that I've never seen it (ususally when I forget to load up Pagaent before attempting Github push/pulls). It's weird because everything was working perfectly and then I couldn't do anything from remote! I upgraded msysgit recently and hadn't tried to do any remote commands until yesterday. And I kept getting the...
Read More | Comments
Posted on 01/25/2010 at 11:11 am | Viewed 37,162 times | 0 comments
Well, I finally had an opportunity to install Git on Windows yet again. It had been quite a while since my last time installing Git on Windows, so I was a little rusty and couldn't figure out how to get Git to use Plink for SSH. It's actually quite simple and dependent on a Windows system variable. Getting Git to use Plink for SSH on Windows...
Read More | Comments
Posted on 12/28/2009 at 03:27 pm | Viewed 14,487 times | 0 comments
If you like to see the little green check mark that HTML Validator shows when your HTML is 100% valid, you'll love this little trick. Thanks to badlydrawntoy.com . Target="_blank" Breaks xHTML Strict Guidelines When you include the target attribute, your HTML will break the standards guideline for xHTML strict. If you are using this...
Read More | Comments
Posted on 12/21/2009 at 05:05 pm | Viewed 11,732 times | 0 comments
I remember about 7 years ago watching my friend use Adobe Illustrator. He was a communications design major and used his keyboard more than his mouse. I was blown away when I realized how much time you could save by learning keyboard shortcuts for Adobe's products. This is my list of the best Adobe Photoshop keyboard shortcuts for web...
Read More | Comments