Pages

Monday, March 12, 2012

Flex Maven Issue - Error: unable to resolve 'assets/*.png'


Solution

One of the Flex projects that I manage for a company uses maven build environment. I added couple of icon images to the assets folder so that it can be used in the code using @Embed notation. The code compiled and work fine on my Macbook pro, however failed to build on the Hudson (now Jenkins) build server. After digging through many online rat holes, I finally figured out the problem was a missing "/" in the begining of the url. 

Bad URL

<mx:Style>
 #previousButton {
  skin: Embed(source="assets/icon/up_22x22.png");
  disabled-skin: Embed(source="assets/icon/up_disabled_22x22.png");
 }
 #nextButton {
  skin: Embed(source="assets/icon/down_22x22.png");
  disabled-skin: Embed(source="assets/icon/down_disabled_22x22.png");
 }
</mx:Style>

Correct URL

<mx:Style>
 #previousButton {
  skin: Embed(source="/assets/icon/up_22x22.png");
  disabled-skin: Embed(source="/assets/icon/up_disabled_22x22.png");
 }
 #nextButton {
  skin: Embed(source="/assets/icon/down_22x22.png");
  disabled-skin: Embed(source="/assets/icon/down_disabled_22x22.png");
 }
</mx:Style>

Tuesday, September 20, 2005

Content Management System

What is CMS?
CMS stands for Content Management System. Simply put it is a set of webpages written in PHP, Java or any other scripted webpage. CMS is layer that installed on top of a webserver that seperates the content of a web site from the framework of linking pages together and controlling how the pages appear, making it easier to maintain a website.

Why hand-code?
Given its popularity and considering the fact that many popular websites today are powered by a CMS engine of one kind or another, you would think that CMS is the first thing a web-programmer would be think of. On the contrary, I am surprised to see that even experienced programmers jump into hand-coding each page using HTML, PHP or ASP. I have even come across corporate Intranets that are built with plain HTML pages with hundreds of links. I sometimes wonder whether these are the kind of people who still pay $20 or more for a dial-up connection from AOL or CompuServe when you can get powerful high-speed Internet connection for couple of bucks more.

Why CMS?
At core all CMS engines provide an easy way to change the look an feel using themes, create content using Word like editor, manage links. The best part of using a CMS is the rich set of addons that can installed to customize the website the way you want. Using a CMS is analogous to using a broadband connection. You will only realize the wonderful possibilities lying ahead of you once start using it.

Friday, September 02, 2005

Can you Send a Smile?

Yes you can through Moomli. Moomli sells real greeting cards made by charity organizations and minority run operations in India. Next time when you wish to greet a friend or beloved one, send a real greeting card made with love and hope. Send a message of hope to all those children and women, who work very hard to lift their life from poverty.

Please visit http://www.moomli.com to learn how to "Send a Smile".