Wesley Almeida

PHP, Zend, Actionscript, Web development, and other interesting things.

How to Reset a WordPress Password When Nothing Else Can

So I have a local installation of WordPress which was not configured to send outgoing mail. This has never been a problem until I messed up the administrator password and was unable log in and make any changes.
Read More

Zend Studio 7.2 Autocomplete Not Working – No Default Proposals

If you can’t get autocompletion to work, or if you get “No Default Proposals” in the code-assist window in Zend Studio 7.2, the problem is likely to be a file located in your workspace.

The fix below fixes this problem most of the time.

  1. Go to [workspace location]/.metadata/.plugins/org.eclipse.core.runtime/.settings
  2. Delete or rename org.eclipse.dltk.ui.prefs file
  3. Restart Zend Studio 7.2

I hope this helps!

Tera Technologies Turns 5

Tera Technologies turns 5 years old today.

Over the past 5 years my company has struggled through many things. We’ve barely survived a deployment to the Middle East, we’ve had a change in ownership and staff, and we’ve fought through a severe outage that crippled the company for over a day. Read More

Decorative Painting Bid

Decorative Painting Bid Home Page

The welcome page


I was asked to build this application by a company in the Lansing, MI area called Dreamscape Multimedia. This application was an estimator for professional painters to calculate how much a particular project was going to cost them while utilizing materials purchased from Chicago’s Premier School of Decorative Arts, Faux Design Studio in Addison, IL. Read More

How to decorate a radio element in Zend

One of the most frustrating things I’ve ran into lately, was the making of a radio form element look the way I wanted to in Zend. As usual, the Zend documentation is laughable, and unless you understand several other more complicated concepts, this seemingly easy task is a nightmare.

As you know, due to the segmented MVC nature of Zend, it is very hard to add examples into a tutorial. It would require an entire Zend application to be set up in order to show every principle. Because of this, I am going to use pictures, and some HTML to show you what I was trying to do, and what I finally did to get the proper results.
Read More

Zend application urls except index.php return File 404 error

If any url in your Zend application is returning a file 404 error, chances are that you are probably working with cPanel (yuck) and probably have a misconfigured .htaccess file.

A normal .htaccess file looks like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

But if you’re working in a user directory where the URL looks much like this: “http://theirdomain.com/~johnny/”, then your .htaccess file has to be configured to have this line:

RewriteBase /~johnny/

OR

RewriteBase /~johnny/public/

Play around with this directory setting until it works. This caused me so much pain and anguish…

I hope this helps!

Cannot embed local font as CFF. The CSS @font-face ‘local()’ syntax is not supported

The error message:
“Cannot embed local font as CFF. The CSS @font-face ‘local()’ syntax is not supported. Please specify a path directly to a font file using the ‘url()’ syntax. For [Embed] syntax the ‘systemFont’ attribute is not supported. Please specify a path directly to a font file using the ‘source’ attribute.”

This is a very annoying problem when embedding fonts with Flash Builder.

In order to get this to work you have to disable “embedAsCFF”. To do this, simply type “embedAsCFF=”false” somewhere in your [Embed] statement and you should be good to go.

Below is an example of an Embed statement that works:

[Embed(systemFont="Arial", embedAsCFF="false", fontName="embeddedFont",
 fontWeight="normal", advancedAntiAliasing="true", mimeType="application/x-font")]
private var EmbeddedFontClass:Class;

Good luck! I hope this helps!

Server Outages – Again

I apologize once again for the server outage. I was experiencing DNS problems and it took me and a technician a long time to resolve.

Let’s hope it does not happen again!
Wes

Server Outage

I apologize for the server outage on 05-Oct-2010. We were upgrading our internet connection and it took longer than expected. I’m glad to have you back!

How to give Zend_AMF a service browser using AMFPHP

This tutorial will show you how to use Zend_AMF with the service browser AMFPHP.

If you’ve worked with AMFPHP you know how awesome of a program it is and how we just wish it could do more. If you’re like me and have ever tried to do more, you have come across Zend_AMF, and, like me, can’t stand how it lacks a service browser, and how difficult it is to troubleshoot problems due to this limitation.
Read More