Today a couple of co-workers of mine discovered the best website ever created:
That is all.
Oh and this.
Today a couple of co-workers of mine discovered the best website ever created:
That is all.
Oh and this.
Well I guess I can finally feel good about buying a blackberry and spending $29.99 a month for an unlimited data plan.
Slacker Mobile is a great FREE streaming radio service for the blackberry. Simply type in an artist / band of your choice and you are instantly taken to your own personalized radio station where your chosen band will be played as well as several similar bands (a great way to discover new music). You can also choose from hundreds of ‘expert programmed’ stations. Better yet, you are given instant access to album info and band bios.
Perhaps the best feature is the ability to cache radio stations to your device’s memory card. This way you can listen to music pretty much anywhere… as long as your device’s battery isn’t dead.
Open up your device browser and go to http://www.slacker.com/mobile/blackberry/ to download and install.
If you try to use the logical AND operator inside of an MXML attribute to determine its value, the compiler will throw this error:
The entity name must immediately follow the ‘&’ in the entity reference
The error message is sketchy, especially given the fact that the logical OR operator is allowed.
The ampersand needs to be html-encoded (after all, MXML is an XML-based markup language!)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
[Bindable] private var arg1:Boolean;
[Bindable] private var arg2:Boolean;
private function validate():Boolean {
return (this.arg1 && this.arg2);
}
]]>
</mx:Script>
<!-- bad -->
<mx:Button enabled="{(this.arg1) && (this.arg2)}" />
<!-- good -->
<mx:Button enabled="{(this.arg1) && (this.arg2)}" />
<!-- also good, but more code -->
<mx:Button enabled="{this.validate()}" />
</mx:Application>