Monday, March 19, 2007

Adobe.com is just Unacceptably TOO SLOW

As a matter of fact, this site doesn't even load.



Today I received an email from adobe to download the alpha release for the highly anticipated Apollo SDK for building desktop apps that will run on Windows & Mac. But unfortunaly for the last 10 minutes, the site still hasn't loaded.
Adobe.com is notoriously slow especially when compared to other tech company sites such as Yahoo.com and Microsoft.com.

Adobe, I have 2 questions.
1. Why should I even bother about your software when your site would load?
2. Is your site running on ColdFusion?
Bonus
3. Add I hear you want to put Photoshop on the web, good luck.

Sunday, March 18, 2007

Yande's Home Coming

Yande and mother (Philo) finally came home on Thursday (3/15/2007). I will be putting up hist first home pictures later.
Apart from the Wheel Chair incident I still give Prince George's Hospital Center a solid “A” for their service. PG Hospital Center currently is run by Dimensions Healthcare System and I salute them for the excellent experience we had with their services. KUTGW.

Wednesday, March 14, 2007

Yande Franklin Anyangwe - First Pictures

...more...

Since blogger does not provide a way to upload or manage a simple photo gallery, I have uploaded the pictures to my personal website at http://www.cityjams.com/yande

Tuesday, March 13, 2007

Yande Franklin Anyangwe 03/12/07


Philo and I hereby welcome Yande F. Anyangwe into our family who arrived yesterday March 12th 2007 at 8lbs. 10oz.

Monday, January 08, 2007

Best Comparism: Ruby vs Java et al

This is probably the best analogy I've seen comparing dynamic languages (like Ruby & JavaScript) to static object oriented languages (like C# & Java) by Joel on Software.

Also a good start to understand how to map (ConvertAll) and reduce (Fold) your code - MapReduce
http://www.joelonsoftware.com/items/2006/08/01.html

Wednesday, December 27, 2006

Serialize JavaScript objects to XML (for use with Ajax)

The following 3 functions can be added to any JavaScript library to serialize objects to XML for use with Ajax.

--- serialize.js ---

Array.prototype.toXml = function(t){
var s = new Array(), i, l = this.length, v;
var t2 = (t.charAt(t.length-1)=='s')?t.substring(0,t.length-1):t;

for(i=0;i<l;i++){
v = this[i];
switch (typeof v) {
case 'undefined':
case 'function':
case 'unknown':break;
case 'object':if(v!=null){s.push(v.toXml(t2));}break;
case 'string':v = v.toXml();
default:s.push('<'+t2+'>'+v+'');
}
}
if(s.length>1)return '<'+t+'>'+s.join('')+'';
return s;
};

Object.prototype.toXml = function(t){
var sa = new Array(''), se = new Array('');
if(!t) t=this._tagName||'object';

for(var i in this){
if (this.hasOwnProperty(i) && i.charAt(0)!='_') {
var v = this[i];
switch (typeof v) {
case 'undefined':
case 'function':
case 'unknown':break;
case 'object':if(v!=null){se.push(v.toXml(i));}break;
case 'string':v = v.toXml();
default: sa.push(' '+i+'="'+v+'"');
}
}
}
var s = se.join('');
return '<'+t+sa.join('')+((s!='')?'>'+s+'':'/>');
};

String.prototype.toXml = function(){
return this.replace('&','&amp;').
replace('<','&lt;').replace('>','&gt;').
replace('\'','&apos;').replace('"','&quot;');
};


Sample Usage

<script language="javascript" src="serialize.js"></script>
<script language="javascript">

function Car(make,model,color){
this.make = make;
this.model = model;
this.color = color;
}

var cars = new Array();
cars.push(new Car('BMW','545i','Silver'));
cars.push(new Car('Toyota','Corrola','Red'));
cars.push(new Car('Honda','Accord','Black'));

//serialize to xml
alert(cars.toXml());
</script>


Note:
1. Private properties are prefixed with an underscore
2. You can add a default TagName for an object using the this._tagName property. For example in the Cars object above, you can add:
this._tagName = 'car';
...

Thursday, October 12, 2006

Why use FireFox when you can use Opera?

For the past couple of days I've been getting increasingly frustrated with FireFox because it eats up all of my memory. The tabbed browsing feature is a neccessity for me (I dare not install IE7). So I switched a couple of days ago to Opera which has all the features I need and a very small footprint. After two day, I can say nothing but wonder, Why use FireFox when you can use Opera?