vote up
0
vote down

Setting Up Global Cache in Zend Framework

In a large scale web application, especially based on Zend Framework, there are lot’s of components that support built in cache support. Such are Zend_Db, Zend_Translate, Zend_Date, etc. Also you may need cache support wherever in the app, so my
 
Stoimen
Jul 22 2010 03:27 AM
vote up
0
vote down

Zend Framework: Cache Database Table Schemes

If you’re familiar with Zend Framework, you should know how to turn your database tables into models. Simply extend the Zend_Db_Table class. This is the very general example. There are lots of variations how to name the model classes and what
 
Stoimen
Jul 20 2010 03:52 AM
vote up
0
vote down

PHP: preg_match Give Names to the Matches

So Called – Subpatterns In PHP 5.2.2+ you can name the sub patterns returned from preg_match with a specific syntax. Named subpatterns now accept the syntax (?<name>) and (?’name’) as well as (?P<name>). Previous
 
Stoimen
Jul 06 2010 12:58 AM
vote up
0
vote down

Zend_View_Helper_InlineScript Appends Scripts Twice

Double Trouble This is a well known problem, which is well described as a bug in Zend Framework’s issue tracker. Once you add some scripts with the inlineScript helper you’ll receive them twice in the code. This makes the page slower and
 
Stoimen
Jun 30 2010 11:12 PM
vote up
0
vote down

Four Things to Know when Writing Comments

Every developer has been learned from his teachers how important is to comment his source code. You should comment the classes, the methods, the logic, etc. However nobody explained how exactly to code with comments between the lines. Have you ever seen
 
Stoimen
Jun 27 2010 12:42 PM
vote up
0
vote down

jQuery: Get the Selected Option Text

What’s the Task? First of all let me explain what is the task. If there’s a select menu with several options, each of which are with a given value attribute, the task is to get the text into the option tag, and not that of the value
 
Stoimen
Jun 22 2010 08:58 PM
vote up
0
vote down

Build a List Tree with the Beauty of jQuery

This is nothing useful, but let me show the beauty of jQuery. This snippet just adds more and more nodes on a simple UL based tree. Here’s the HTML: <ul> <li><a href="#">Node 1</a></li>
 
Stoimen
Jun 17 2010 06:58 PM
vote up
0
vote down

JavaScript array.pop() – Get The Last Item

Let’s assume there’s a little, simple JavaScript array: var a = [3,2,4,5,2,4,5,8]; If you pop() an element from it – what element will be taken? The answer is a bit frustrating, but logical – the last one: var b =
 
Stoimen
Jun 14 2010 04:56 PM
vote up
0
vote down

Flowplayer and Captions (Subtitles)

Actually I couldn’t mange to make it work with a non-javascript approach, but however with the .js help it works. I’ll paste here this code, hopefully this will help. Note that you’ve to change plugins/javascripts/videos/captions path!
 
Stoimen
Jun 09 2010 05:56 PM
vote up
0
vote down

Detecting Pressed Key with e.which in JavaScript

You have definitely decided to get which key has been pressed with JavaScript? This is very common when it comes to an Enter key press over a form element. Actually this should be automatically done by the browser, but when it comes to a default
 
Stoimen
Jun 02 2010 09:51 PM
vote up
0
vote down

PHP Coding Style: Large IF Statements

Have you ever seen some PHP code like that: 1 2 3 if ($condition1 && $condition2 && $string1 == $string2 . $string3 && $string4 != $string5 . $string6) { // write some code here!? } It is ugly, isn’t
 
Stoimen
May 25 2010 02:47 PM
vote up
0
vote down

PHP: The Array Element Doesn’t Exist – Suppress the Warnings

What’s the problem? If you code PHP from couple of hours you are probably familiar with the following problem: 1 2 3 4 5 6 7 8 9 <?php   error_reporting(E_ALL);   $arr = array();   echo
 
Stoimen
May 17 2010 07:24 PM
vote up
0
vote down

Managed Extensibility Framework (MEF) - Microsoft's Official Inversion of Control Container

This new Microsoft feature in .NET Framework 4 is a programming model for reusing components, very similar to those Inversion of Control container frameworks out there that we all know and love (Castle Windsor, Structured Map, their own Unity from the
 
Eric A. Duncan
Feb 20 2010 12:52 PM
vote up
0
vote down

Managed Extensibility Framework (MEF) - Microsoft's Official Inversion of Control Container

This new Microsoft feature in .NET Framework 4 is a programming model for reusing components, very similar to those Inversion of Control container frameworks out there that we all know and love (Castle Windsor, Structured Map, their own Unity from the
 
Eric A. Duncan
Feb 16 2010 08:58 AM
vote up
0
vote down

Registering MSpec runners for TestDriven.NET on Windows x64

EDIT: MSpec v0.3 now supports TestDriven.Net's v2.24 XCopy Deployable Test Runners.  So this blog post is legacy information at this time.  Machine.Specifications (MSpec) is my preferred Behavior-Driven Design (BDD) framework for
 
Eric A. Duncan
Jan 21 2010 01:23 PM
vote up
0
vote down

Registering MSpec runners for TestDriven.NET on Windows x64

EDIT: MSpec v0.3 now supports TestDriven.Net's v2.24 XCopy Deployable Test Runners.  So this blog post is legacy information at this time.  Machine.Specifications (MSpec) is my preferred Behavior-Driven Design (BDD) framework for
 
Eric A. Duncan
Jan 20 2010 10:29 PM
vote up
0
vote down

Windows Azure SDK for Microsoft Visual Studio November 2009

Over this past weekend, Microsoft released an updated Windows Azure SDK dated November 2009 for Visual Studio 2008 and 2010 Beta 2.  It is great to hear this since my tinkering with with the old CTP release was a bit buggy (had to download a few
 
Eric A. Duncan
Nov 30 2009 03:43 PM
vote up
0
vote down

Windows Azure SDK for Microsoft Visual Studio November 2009

Over this past weekend, Microsoft released an updated Windows Azure SDK dated November 2009 for Visual Studio 2008 and 2010 Beta 2.  It is great to hear this since my tinkering with with the old CTP release was a bit buggy (had to download a few
 
Eric A. Duncan
Nov 16 2009 11:08 PM
vote up
0
vote down

Support Ticket Severity vs Priority

All too often, I get involved with ticketing systems that have these set incorrectly.  Or, they utilize them in a different manner than what they were intended for.  Tonight, I am setting up another system and thought I would document the
 
Eric A. Duncan
Oct 05 2009 07:46 AM
vote up
0
vote down

Support Ticket Severity vs Priority

All too often, I get involved with ticketing systems that have these set incorrectly.  Or, they utilize them in a different manner than what they were intended for.  Tonight, I am setting up another system and thought I would document the
 
Eric A. Duncan
Oct 05 2009 07:46 AM
vote up
0
vote down

Html.RenderAction for ASP.NET MVC 1.0

The ASP.NET MVC 1.0 Futures assembly (that is not included with ASP.NET MVC 1.0) has a powerful HtmlHelper extension method called RenderAction().   It sounds similar to the Html extension method called RenderPartial() for a good reason. 
 
Eric A. Duncan
Sep 24 2009 09:34 PM
vote up
0
vote down

Html.RenderAction for ASP.NET MVC 1.0

The ASP.NET MVC 1.0 Futures assembly (that is not included with ASP.NET MVC 1.0) has a powerful HtmlHelper extension method called RenderAction().   It sounds similar to the Html extension method called RenderPartial() for a good reason. 
 
Eric A. Duncan
Sep 24 2009 09:34 PM
vote up
0
vote down

Microsoft announces WebsiteSpark

For the first time, Microsoft is licensing a number of software and servers to startups, small businesses, and actual independent web developers - for free.  And, it lasts for three years.  Scott Guthrie tweeted today about the new WebsiteSpark
 
Eric A. Duncan
Sep 24 2009 08:01 PM
vote up
0
vote down

Microsoft announces WebsiteSpark

For the first time, Microsoft is licensing a number of software and servers to startups, small businesses, and actual independent web developers - for free.  And, it lasts for three years.  Scott Guthrie tweeted today about the new WebsiteSpark
 
Eric A. Duncan
Sep 24 2009 08:01 PM
vote up
0
vote down

Type Safety with ASP.NET MVC Futures

In this post, I will show you how to strongly type some parts of MVC to get rid of those “magic strings.”  I will also publish a few extension methods that expand upon this concept later on.  So, this is a continuation of my Mvc series that you
 
Eric A. Duncan
Sep 22 2009 10:32 PM
vote up
0
vote down

Type Safety with ASP.NET MVC Futures

In this post, I will show you how to strongly type some parts of MVC to get rid of those "magic strings."  I will also publish a few extension methods that expand upon this concept later on.  So, this is a continuation of my Mvc series that you
 
Eric A. Duncan
Sep 22 2009 10:32 PM
vote up
0
vote down

ASP.NET MVC

I am starting a new series that will be focusing on ASP.NET MVC design patterns.  What I will be focusing on is enterprise-ready patterns and practices that scales across cloud computing, coding with type safety, and abstractions of WebForms-like
 
Eric A. Duncan
Sep 22 2009 10:32 PM
vote up
0
vote down

ASP.NET MVC

I am starting a new series that will be focusing on ASP.NET MVC design patterns.  What I will be focusing on is enterprise-ready patterns and practices that scales across cloud computing, coding with type safety, and abstractions of WebForms-like
 
Eric A. Duncan
Sep 22 2009 10:32 PM
vote up
0
vote down

HiPE’s voice-operated Drive-N car PC w/Vista

This old Engadget post reminds me of my Dell mini-pc I hacked up to fit in a block of foam and fans to run my XP on 12V with 80GB of MP3s and videos, with wireless (to sync from outside in the car).  Too bad I never finished the project; but, I did
 
Eric A. Duncan
Sep 21 2009 12:25 PM
vote up
0
vote down

HiPE's voice-operated Drive-N car PC w/Vista

This old Engadget post reminds me of my Dell mini-pc I hacked up to fit in a block of foam and fans to run my XP on 12V with 80GB of MP3s and videos, with wireless (to sync from outside in the car).  Too bad I never finished the project; but, I did
 
Eric A. Duncan
Sep 21 2009 12:25 PM
vote up
0
vote down

8 Steps to SEO Quickly

SEO stands for Search Engine Optimizations.  It is a term used to reference a website's HTML source code and related metadata and url for search engine rankings.  I recently was involved with interviewing and working with a number of SEO firms
 
Eric A. Duncan
Sep 20 2009 10:41 AM
vote up
0
vote down

8 Steps to SEO Quickly

SEO stands for Search Engine Optimizations.  It is a term used to reference a website’s HTML source code and related metadata and url for search engine rankings.  I recently was involved with interviewing and working with a number of SEO firms
 
Eric A. Duncan
Sep 20 2009 10:41 AM
vote up
0
vote down

Google Chrome popups gets jiggy with it

There are dozens of reviews for Google Chrome out there. So I will not bore you with any (except I am really liking the isolated tabs, besides the alpha issues). But, as I am doing Google Chrome testing today I noticed something interesting on
 
Eric A. Duncan
Sep 16 2008 01:45 AM
vote up
0
vote down

Google Chrome popups gets jiggy with it

There are dozens of reviews for Google Chrome out there. So I will not bore you with any (except I am really liking the isolated tabs, besides the alpha issues). But, as I am doing Google Chrome testing today I noticed something interesting on
 
Eric A. Duncan
Sep 16 2008 01:45 AM
vote up
0
vote down

Getting GoDaddy SSLs working in Firefox on IIS

Upon installing your SSL certificate purchased through GoDaddy, and your Firefox users get prompted with a certificate warning of "Unauthorized Authority", read on for a fix using Windows 2003 Server (and R2).  This also works for any other
 
Eric A. Duncan
May 09 2008 10:45 AM
vote up
0
vote down

Getting GoDaddy SSLs working in Firefox on IIS

Upon installing your SSL certificate purchased through GoDaddy, and your Firefox users get prompted with a certificate warning of "Unauthorized Authority", read on for a fix using Windows 2003 Server (and R2).  This also works for any other
 
Eric A. Duncan
May 09 2008 10:45 AM
vote up
0
vote down

PostIcon CS Bug Fix

With the previous release of The MiXX Collection, it was updated to work with CS 2007.  Well there is a bug in CS 2007's CSModule that no longer allows updating the ExtendedAttributes after a post is created.  In other words, the bug in
 
Eric A. Duncan
Sep 04 2007 12:29 AM
vote up
0
vote down

PostIcon CS Bug Fix

With the previous release of The MiXX Collection, it was updated to work with CS 2007.  Well there is a bug in CS 2007's CSModule that no longer allows updating the ExtendedAttributes after a post is created.  In other words, the bug in
 
Eric A. Duncan
Sep 04 2007 12:29 AM
vote up
0
vote down

Living with Subversion (Part 4)

In the forth and final part of my series, Living with Subversion, I cover a number of performance tips and some Dos and Don'ts. Improving performance of TortoiseSVN The performance improvement aspect of this article targets those mainly on laptops that
 
Eric A. Duncan
Jul 14 2007 11:44 PM
vote up
0
vote down

Living with Subversion (Part 4)

In the forth and final part of my series, Living with Subversion, I cover a number of performance tips and some Dos and Don'ts. Improving performance of TortoiseSVN The performance improvement aspect of this article targets those mainly on laptops that
 
Eric A. Duncan
Jul 14 2007 11:44 PM