Computer programming tutorials
Symfony: Fix propel-insert-sql error: Can’t connect to local MySQL server
Contributed by qmchenry on April 4, 2008 under SymfonyAfter building your model and the SQL code to represent it, symfony offers a mechanism to insert the SQL code directly into your configured database. If you are running MySQL locally, this should work for you with no additional configuration. If you are running MySQL on another server, as is common in shared web hosting and other environments, you’ll get an error. In the past, I’ve just grunted and sent the SQL code to the database manually, but there is an easy fix to make things work as they should.
CommentsPHP: Print the current year for copyright notices
Contributed by qmchenry on March 8, 2008 under PHP programmingHardcoding the year in a copyright notice is an easy way to get a blog or other website started, just placing the starting and ending years next to the copyright symbol. We have the very best of intentions to change this number right after the big ball drops in Times Square each year. We’re also human and, all too often, I see websites with copyright notices that are years behind. If your website is PHP-powered, this quick bit of code will put the current year in your copyright notice and off of your mind.
Comments
Dreamweaver CS3: Change How Text is Pasted into Design View
Contributed by shamanstears on March 6, 2008 under Web application programmingPasting the text from another application into Dreamweaver’s design view can be rather messy. This is due to the default settings, as they keep the original structure and basic formatting of the originating application. Fortunately, the defaults can be changed to better meet your main needs and using Paste Special can be used for situations that require different settings.
CommentsFix for ASP Pages That Will Not Display an ADO Recordset based on a #Temp Table
Contributed by shamanstears on January 22, 2008 under Web application programmingHere’s the problem: your asp page is designed to display the data contained in an SQL generated #temp table. When you run the page, you get an error that states that the operation is not allowed when the object is closed. If you execute the SQL command in a query window though, the data is displayed as expected.
Comments
Symfony: Add log message manually
Contributed by qmchenry on September 17, 2007 under SymfonyWhen troubleshooting a complex web application (or a simple one), there are times that sending a message to a log file will help. Two command syntaxes are required depending on if you are in an action or a template. When using the development environment of an application in Symfony, the log message will show up in the development toolbar which will make your life even easier.
Comments
Symfony: Troubleshooting file uploads
Contributed by qmchenry on August 6, 2007 under SymfonyThe Symfony framework is an amazing project which brings many best practices to the hands of mortal coders. It’s also a dauntingly vast system with many subdirectories and classes. While trekking your way up the learning curve, you may run into hurdles which seem daunting. One possible gotcha involves adding file uploading to an existing Symfony form.
CommentsVisual Web Developer: Enable AutoRecover and Set Save Interval
Contributed by shamanstears on July 16, 2007 under Web application programmingUsing AutoRecover can be a real lifesaver, especially if disaster strikes and you lose all of that great coding that you were working on. By default, Visual Web Developer has AutoRecover disabled. To enable AutoRecover and set the save and retention intervals, follow these steps:
CommentsPOPULAR RECIPES
- Windows Batch File (.bat) to get current date in MMDDYYYY format.
- AS3: How to Convert Number to String
- AS3 switch/case statement syntax
- Flash / Actionscript: Create an Array of Objects from a Unique Class
- Flash/Actionscript Basics: If - Then - Else Statement Syntax
- C++: Differences between C++ and C#
- Assembly: arrays
- Assembly: mov statment (MASM/TASM)
- View our Top Tens
TECH-RECIPES BLOGS
- My Top Android Apps for the Google Nexus One
- Use Hard Eyeglass Cases to Protect Your Gadgets and Gear
- For my fellow Nexus One Readers... seamonkey's n1 wallpaper pack
- its my first time: my google nexus one / android experience (part 2)
- Add Google Buzz to Your Firefox Sidebar
- its my first time: my google nexus one / android experience (part 1)
- Nikon (Nikkor) 55-200mm lens repair
- How to Download YouTube Videos onto your Nexus One Device








