Thursday, April 30, 2009

They make shit. Unbelievable, unremarkable shit.

I qoute these words from SwordFish movie

"They make shit. Unbelievable, unremarkable shit."

I like these words, and I can use the same words for microsoft products :) 

I am not enemy to microsoft products. But Microsoft's pyramids secret is how they can do that??? I think they do this by making their applications look and feel user-friendly. Also they concentrate on easiness of use and even of development.

What I want to say is 
How can we make shit undelievable?


Sunday, April 26, 2009

Views & Resultsets

If you have a view and you want to use it within your code, I mean that you want to loop on the view data to display that data, - using IdocScript- you can get a resultset from that view, then loop on that resultset to display its data.

As an example for how to do that, let us assume that we have a view called view1

<$getViewValuesResultSet("
view1", "", "")$>
<$loop SchemaData$>
<option><$dOption$></option>
<$endloop$>

PopUpCalendar component

I was creating a custom checkin page using IdocScript, and in that template I had a metadata field of type date. So I discovered that I need a pop-up calendar, where the user will not care about formating dates.

In Content Server, I found that there are a component called PopUpCalendar which adds pop-up calendars to checkin and search pages. So I said, I should use the same calendar object to give to my custom checkin page the same look and feel.

Note: This component is taken fromYahoo Developer Network, you can find there a lot of useful javascript objects, and part of the content server scripts are taken from there.

So to use that component in your template, do the following

1- If you will use it for custom checkin template, add the following include
<$include std_checkin_html_head_declarations$>

2- If you will use it for custom search template, add the following include
<$include std_query_html_head_declarations$>

3- Now I will assume that we have a metadata field called xPublishDate and we want to have a popup calendar for that field

<input id="xPublishDate" name="xPublishDate" size="20" maxlength="30" value="" type="text" READONLY>
<a href="javascript:pucToggleCalendar('xPublishDate')" style="vertical-align: middle;">
<img style="cursor: pointer; vertical-align: middle;" src="<$HttpWebRoot$>images/PopUpCalendar/calendar.png" border="0" width="20" height="19">
</a>
<script type="text/javascript">
pucCreateCalendar({ id: "xPublishDate", caption: "Publish Date"}, "xPublishDate");
</script>
<div id="puc_panel_xPublishDate_div" style="display: none;">
<div class="hd">Publish Date</div>
<div class="bd">
<div id="puc_calendar_xPublishDate_div"></div>
</div>
</div>

Saturday, April 25, 2009

Avoid ExtranetLook Component

The first time I used ExtranetLook component, I liked it, because of the log-in screen, and log-out functionality. But later I discovered that this component is not compatible with other UCM components, as an example this component sometimes you will not be allowed you to log-into the Content Server using Site Studio designer, another example you will not be able to index scanned into the content server using Dynamic Converter.

I don't know why Oracle is releasing that component, and in general why they are releasing incomplete components???

I recommend anyone to not use ExtranetLook component.

Tuesday, April 21, 2009

World Without Nuclear Weapons

An initiative for removing nuclear weapons from our world. They are collection online signatures and I gave them mine, I wish you will give them yours (http://www.globalzero.org/)

I signed on the following words

”We, the undersigned, believe that to protect our children, our grandchildren and our civilization from the threat of nuclear catastrophe, we must eliminate all nuclear weapons globally. We therefore commit to working for a legally binding verifiable agreement, including all nations, to eliminate nuclear weapons by a date certain.”



But If we removed all the nuclear weapons, and some aliens came from the space with dangerous and fatal weapons, what can we do? :D no aliens are there, just we should remove those nuclear weapons from our world.

"Oracle Buying Sun" Wow

Oracle is acquiring Sun, It is a big surprise for me, and I don't know how Oracle will manage this.

Read this

and

Watch this