Category Archives: Fixes - Page 2

IE Fix on Fieldset Background Color

Useful information to patch the problem that your background in the fieldset starts before the content in IE, example:

Community MX - Fix on Fieldset Background Color on IE

Link: The IE Fieldset Background Color Bleed Bug

Share

Flex 2 Debug with Flash 9.0.47.0

I had some troubles debugging Flex 2 since I installed some updates for CS3 suite.
The error show it cannot use this file:
C:\Windows\System32\Macromed\Flash\Flash9d.ocx

But you can fix this if you download and install the files from:
http://www.adobe.com/support/flashplayer/downloads.html#fp9 

in the part: Adobe Flash Player 9 — Debugger Versions (aka debug players or content debuggers) for Flex and Flash Developers

Share

coLinux on Windows Vista

I’m testing Windows Vista Ultimate, as I’m working hard with coLinux I need this to work on Vista.

The stable version (0.6) will make crash your Windows Vista. Checking on internet I found posts about how to install coLinux on Vista, fortunately the latest snapshots of 0.8 have incorporated all the fixes to install coLinux on Vista without crashing or making more steps.

You can download from:
http://www.henrynestler.com/colinux/testing/devel-0.8.0/20070708-Snapshot/

But I strongly suggest to check the base dir:
http://www.henrynestler.com/colinux/testing/devel-0.8.0

Since the snapshot dir name will change according date.

The next step is to install as service, in Vista you don’t have much control of your programs (emulating a Mac os X behavior and loosely a Linux behavior). So you cannot install the service if you start the console as “normal user” (even you are in the administrator group). Searching I got here:
http://forums.techarena.in/showthread.php?t=617133

There you will know how to start the cmd in administrator mode and you will be allowed to install the service of coLinux, copying from the site the way to do is:

  1. Click Start
  2. Type: cmd
  3. Press the right-ctrl, right-shift, and enter at the same time

After that you need to install your service as:

colinux-daemon.exe @config.cfg --install-service "coLinux"

And you will have it installed as service. Everything now seems to be working fine but I need to test if 0.8 is really development version =)

Share

PHP 5.2 and Upload Progress Monitor

In PHP 5.2.0 (and newer) version there is a new feature labeled as:

“Added RFC1867 fileupload processing hook. (Stefan E.)”

in changelog; browsing other documents they refer as “allow the developers to create progress monitors (for AJAX) without patch PHP”.

The normal way to see a progress bar was patching your PHP, but first I though there was some functions added to PHP, this is not the case; PHP defines now a callback (hook) for any new module that wans to implement this code; you need to compile either:

APC (haven’t tested) or
PECL UploadProgress

You can see some examples and code here:
http://www.whenpenguinsattack.com/2006/12/12/how-to-create-a-php-upload-progress-meter/ (for APC)
http://blog.joshuaeichorn.com/archives/2005/05/01/ajax-file-upload-progress/ (for UploadProgress, good php code but not HTML code, please check the comments to see how write your HTML).

And restart your apache server; the fact is that under dotdeb and debian etch I wasn’t able to get work this, I even modify a bit the code of uploadprogress to write a file when the module was inited and when was called for updating the progress of the upload.
The init was ok, but updating was never done.

My solution? Just recompile PHP 5.2.1 (the same version dotdeb and debian etch was providing me), I’m not aware why that versions doesn’t work under dotdeb and debian etch.

Share