<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>apex &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/apex/</link>
	<description>Feed of posts on WordPress.com tagged "apex"</description>
	<pubDate>Sat, 26 Dec 2009 00:16:26 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Paypal integration in Apex]]></title>
<link>http://osamanasir.wordpress.com/2009/12/23/paypal-integration-in-apex/</link>
<pubDate>Wed, 23 Dec 2009 20:02:00 +0000</pubDate>
<dc:creator>osamanasir</dc:creator>
<guid>http://osamanasir.wordpress.com/2009/12/23/paypal-integration-in-apex/</guid>
<description><![CDATA[Payment gateways are parimary requiremnt in most of the business application these days. Application]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Payment gateways are parimary requiremnt in most of the business application these days. Applications building up on force.com platform require payment gateways.</p>
<p>Integration of paypal seems to be a very common issue. One of my readers asked me to write the code to integrate paypal with apex.</p>
<p>Below I am writing the code which I wrote for a project. I hope this will help many of the apex developers. This particular method is for DoDirectPayment method.</p>
<p><code>public class PayPalApi<br />
{<br />
public static String result {set;get;}<br />
public static String makeCallout(String amount, String shipToName, String shipToStreet1, String shipToStreet2, String shipToCity, String shipToState, String shipToPostalCode, String shipToCountry, String creditCardType, String creditCardNumber, String expMonth, String expYear, String payerFName, String payerLName, String payerCountry, String payerStreet1, String payerStreet2, String payerCity, String payerState, String payerPostalCode, String CVV2Number)<br />
{        // Instantiate a new http object<br />
Http h = new Http();<br />
// Instantiate a new HTTP request, specify the method (GET) as well as the endpoint<br />
HttpRequest req = new HttpRequest();<br />
// The webservice url -  Pass in the endpoint to be used using the string url<br />
String url = 'https://api-3t.sandbox.paypal.com/2.0/';<br />
String soapXML;<br />
</code></p>
<p><code>soapXML =  '&#60;soap:Envelope xmlns:soap=' + '\'' + 'http://schemas.xmlsoap.org/soap/envelope/'  + '\'' + ' xmlns:xsi=' + '\''+ 'http://www.w3.org/2001/XMLSchema-instance'  + '\'' + ' xmlns:xsd=' + '\''+ 'http://www.w3.org/2001/XMLSchema' + '\'' + '&#62;';<br />
soapXML += '&#60;soap:Header&#62;&#60;RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"&#62;&#60;Credentials xmlns="urn:ebay:apis:eBLBaseComponents"&#62;';<br />
soapXML += '&#60;Username&#62;PAYPAL_USER_NAME&#60;/Username&#62;&#60;ebl:Password xmlns:ebl="urn:ebay:apis:eBLBaseComponents"&#62;';<br />
soapXML += 'PAYPAL_PASSWORD&#60;/ebl:Password&#62;&#60;Signature&#62;PAYPAL_SIGNATURE&#60;/Signature&#62;';<br />
soapXML += '&#60;/Credentials&#62;&#60;/RequesterCredentials&#62;&#60;/soap:Header&#62;&#60;soap:Body&#62;&#60;DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI"&#62;';<br />
soapXML += '&#60;DoDirectPaymentRequest&#62;&#60;Version xmlns="urn:ebay:apis:eBLBaseComponents"&#62;1.00&#60;/Version&#62;';<br />
soapXML += '&#60;DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"&#62;';<br />
soapXML += '&#60;PaymentAction&#62;Sale&#60;/PaymentAction&#62;&#60;PaymentDetails&#62;&#60;OrderTotal currencyID="USD"&#62;' + amount + '&#60;/OrderTotal&#62;';<br />
soapXML += '&#60;ShipToAddress&#62;&#60;Name&#62;' + shipToName + '&#60;/Name&#62;&#60;Street1&#62;' + shipToStreet1 + '&#60;/Street1&#62;&#60;Street2&#62;' +shipToStreet2 + '&#60;/Street2&#62;';<br />
soapXML += '&#60;CityName&#62;' + shipToCity + '&#60;/CityName&#62;&#60;StateOrProvince&#62;' + shipToState + '&#60;/StateOrProvince&#62;&#60;PostalCode&#62;' + shipToPostalCode + '&#60;/PostalCode&#62;';<br />
soapXML += '&#60;Country&#62;' + shipToCountry + '&#60;/Country&#62;&#60;/ShipToAddress&#62;';<br />
soapXML += '&#60;/PaymentDetails&#62;&#60;CreditCard&#62;&#60;CreditCardType&#62;' + creditCardType + '&#60;/CreditCardType&#62;&#60;CreditCardNumber&#62;' + creditCardNumber + '&#60;/CreditCardNumber&#62;';<br />
soapXML += '&#60;ExpMonth&#62;' + expMonth + '&#60;/ExpMonth&#62;&#60;ExpYear&#62;' + expYear + '&#60;/ExpYear&#62;&#60;CardOwner&#62;&#60;PayerStatus&#62;verified&#60;/PayerStatus&#62;&#60;Payer&#62;bgiles@ddd.com&#60;/Payer&#62;';<br />
soapXML += '&#60;PayerName&#62;&#60;FirstName&#62;' + payerFName+ '&#60;/FirstName&#62;&#60;LastName&#62;' + payerLName + '&#60;/LastName&#62;&#60;/PayerName&#62;&#60;PayerCountry&#62;' + payerCountry + '&#60;/PayerCountry&#62;';<br />
soapXML += '&#60;Address&#62;&#60;Street1&#62;' + payerStreet1 + '&#60;/Street1&#62;&#60;Street2&#62;' + payerStreet2 + '&#60;/Street2&#62;&#60;CityName&#62;' + payerCity + '&#60;/CityName&#62;';<br />
soapXML += '&#60;StateOrProvince&#62;' + payerState + '&#60;/StateOrProvince&#62;&#60;Country&#62;' + payerCountry + '&#60;/Country&#62;&#60;PostalCode&#62;' + payerPostalCode + '&#60;/PostalCode&#62;&#60;/Address&#62;';<br />
soapXML += '&#60;/CardOwner&#62;&#60;CVV2&#62;' + CVV2Number + '&#60;/CVV2&#62;&#60;/CreditCard&#62;&#60;/DoDirectPaymentRequestDetails&#62;';<br />
soapXML += '&#60;/DoDirectPaymentRequest&#62;&#60;/DoDirectPaymentReq&#62;&#60;/soap:Body&#62;&#60;/soap:Envelope&#62;';</code></p>
<p><code>req.setBody(soapXML);</code><br />
<code>req.setEndpoint(url);</code><br />
<code>req.setMethod('POST');</code><br />
<code>req.setHeader('Content-length', '1753' );</code><br />
<code>req.setHeader('Content-Type', 'text/xml;charset=UTF-8'); </code> <code>req.setHeader('SOAPAction','');</code><br />
<code>req.setHeader('Host','api-aa.sandbox.paypal.com');</code></p>
<p><code>HttpResponse res = h.send(req);</code><br />
<code>String xml = res.getBody();</code></p>
<p><code>XmlStreamReader reader = res.getXmlStreamReader();</code><br />
<code>result = readXMLResponse(reader,'Ack');</code><br />
<code>return result;</code><br />
}<br />
<code>public static String readXMLResponse(XmlStreamReader reader, String sxmltag)</code><br />
{<br />
<code>string retValue;    // Read through the XML</code><br />
<code>while(reader.hasNext())</code><br />
{<br />
<code>if (reader.getEventType() == XmlTag.START_ELEMENT)</code><br />
{<br />
<code>if (reader.getLocalName() == sxmltag) {</code><br />
<code>reader.next();</code><br />
<code>if (reader.getEventType() == XmlTag.characters)</code><br />
{                <code>retValue = reader.getText();</code><br />
}<br />
}<br />
}      <code>reader.next();</code><br />
}<br />
<code>return retValue;</code><br />
}<br />
}</p>
<p>Other paypal methods dont require this type of coding because they are mostly redirected to paypal website. If you need further help, feel free to ask questions.</p>
<p>P.S: This code is completely working. You just have to replace with your credentials.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[North Carolina: Deported adults are leaving their citizen children behind]]></title>
<link>http://detentionwatchnetwork.wordpress.com/2009/12/23/north-carolina-deported-adults-are-leaving-their-citizen-children-behind/</link>
<pubDate>Wed, 23 Dec 2009 16:03:03 +0000</pubDate>
<dc:creator>Will Coley</dc:creator>
<guid>http://detentionwatchnetwork.wordpress.com/2009/12/23/north-carolina-deported-adults-are-leaving-their-citizen-children-behind/</guid>
<description><![CDATA[Norma Villeda, right, has dinner with her family, Carlitos Garcia, 7, and Nancy Garcia, 18, while st]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div class="wp-caption alignleft" style="width: 326px"><a href="http://www.charlotteobserver.com/local/story/1140655.html" target="_blank"><img class=" " src="http://media.charlotteobserver.com/smedia/2009/12/22/22/DEPORTEDPARENTS-1213.ART_GOS10LSSN.1+DEPORTED1.NE.120909.EDH.embedded.prod_affiliate.138.jpg" alt="" width="316" height="210" /></a><p class="wp-caption-text">Norma Villeda, right, has dinner with her family, Carlitos Garcia, 7, and Nancy Garcia, 18, while staying with Norma&#39;s sister-in-law in Apex on Dec. 9. Villeda, who immigrated illegally 20 years ago, has circled the date on the calendar (above) when she must leave the country.</p></div>
<p><strong>From the Charlotte Observer:</strong></p>
<p><em>In the five months since immigration agents knocked on her door, Norma Villeda has sold her home and furnishings and shuttered her husband&#8217;s business. She now sleeps in the living room of her sister-in-law&#8217;s trailer, what&#8217;s left of her possessions packed into three suitcases. </em></p>
<p><em>But the biggest loss has yet to come.</em></p>
<p><em>When she is returns to her native Mexico at the end of this month, at the order of U.S. immigration officials, she will leave behind her daughter, Nancy, a U.S.-born high school senior who aspires to go to college.</em></p>
<p><a href="http://www.charlotteobserver.com/local/story/1140655.html" target="_blank">[Click here to read the rest of the article]</a><em><br />
</em></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Oracle Apex 4.0 Demonstration Site Available]]></title>
<link>http://dbbulletin.wordpress.com/2009/12/23/oracle-apex-4-0-demonstration-site-available/</link>
<pubDate>Wed, 23 Dec 2009 15:19:45 +0000</pubDate>
<dc:creator>dbbulletin</dc:creator>
<guid>http://dbbulletin.wordpress.com/2009/12/23/oracle-apex-4-0-demonstration-site-available/</guid>
<description><![CDATA[Oracle has made available a demonstration site of Apex 4.0. It&#8217;s hosted in the Amazon Elastic ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Oracle has made available a demonstration site of Apex 4.0. It&#8217;s hosted in the Amazon Elastic Compute cloud, adding further credibility to Apex as a cloud computing platform. <a href="http://tryapexnow.com/apex">Sign up here</a>. </p>
<p>I signed up for an account and took a 15 minute test drive. Here a few quick things I noticed:</p>
<p>1. There are a number of screens under a new Team Development tab. These are all straightforward, but provide ready made data entry screens and reports for the information needed to track a development project. Bug lists, new feature lists, tasks, etc. It&#8217;s very handy to have these right in the product.</p>
<p>2. I was most curious to try out the new interactive report features. Compound expressions for filters are available. These were implemented as a separate choice from the existing filter feature. I imagine doing this means that existing 3.x interactive reports will run without any changes in 4.0. The new feature uses an interface similar to the 3.x one for doing computed columns. When creating an expression, one references existing fields in the report by using a letter instead of the column name. It allows one to put in complex AND and OR logic with lots of functions as well. I also tried the GROUP BY feature, which worked fine and was intuitive to deploy. Finally, I saw that under save report there is a &#8220;Public&#8221; checkbox, which would allow a user to make a saved report that is visible to other users. That is really needed.</p>
<p>3. The initial screen for editing a page now uses a tree view to navigate all the objects on a page. Once you get to an object you wish to edit, the edit pages look quite similar to the 3.x ones.</p>
<p>4. I made a few quick graphs and as promised a newer version of AnyChart is available. The graphs look great!</p>
<p>I hope to port some existing apps to the trial web site over the next few weeks. Note that Oracle will erase the whole site in order to put a phase II beta, so be prepared for your work to get erased if you try this site out!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Polymorphism driven by Apex class inheritance]]></title>
<link>http://developinthecloud.wordpress.com/2009/12/23/polymorphism-driven-by-apex-class-inheritance/</link>
<pubDate>Wed, 23 Dec 2009 13:04:23 +0000</pubDate>
<dc:creator>Wes</dc:creator>
<guid>http://developinthecloud.wordpress.com/2009/12/23/polymorphism-driven-by-apex-class-inheritance/</guid>
<description><![CDATA[Polywhatsthatnow? Polymorphism &#8221; is the ability of one type, A, to appear as and be used like ]]></description>
<content:encoded><![CDATA[Polywhatsthatnow? Polymorphism &#8221; is the ability of one type, A, to appear as and be used like ]]></content:encoded>
</item>
<item>
<title><![CDATA[Apex 4.0 Early Adopter - first shot]]></title>
<link>http://stewstools.wordpress.com/2009/12/22/apex-4-0-early-adopter-first-shot/</link>
<pubDate>Tue, 22 Dec 2009 23:31:34 +0000</pubDate>
<dc:creator>stewstryker</dc:creator>
<guid>http://stewstools.wordpress.com/2009/12/22/apex-4-0-early-adopter-first-shot/</guid>
<description><![CDATA[All I can say is Wow! That&#8217;s it.  Nothing more here&#8230; &#8230; well, okay.  Some more deta]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>All I can say is <strong>Wow!</strong></p>
<p>That&#8217;s it.  Nothing more here&#8230;</p>
<p><strong><!--more--></strong>&#8230; well, okay.  Some more details.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>These are <span style="text-decoration:underline;">not</span> in any special order.</p>
<h2>My Favorite Parts (so far)</h2>
<ol>
<li><strong>Team Development </strong>components &#8211; Looks pretty well implemented overall, though some pieces still need some work.  It&#8217;s a well-considered project mgmt application built right into Apex for tracking milestones, features, todos and bugs in your various Apex applications.  When you edit a page in your application, you see counters for ToDos and Bugs that are linked to that page.  Very cool!</li>
<li><strong>Top Applications </strong>list on the development environment home page.  So you can jump to the active app you need to work on right away.  It also shows a Top Users chart that counts development events (whatever they are?) in a selectable timeframe.  I&#8217;m not too sure that level of &#8220;friendly rivalry&#8221; will work in every shop!</li>
<li><strong>Interactive Reports throughout Application Builder</strong> &#8211; It looks like everything that was a list-style report in previous Apex versions has been changed to an interactive report.  For example, in the Application Builder, the list of applications is an IR.  I think will be very handy, since you can save your favorite flavor of view as a saved report!  So you can choose sort order, what columns to display and save to this report for re-use later.  The power and usefulness here is gonna be epic!  Monitor page activity, group by Page Name and compute the average Elapsed Time!</li>
<li><strong>Page Advizor</strong> &#8211; an integration of Patrick Wolf&#8217;s great utility right into the product.  You can have it instantly (very quick!) check a page you&#8217;re editing to make sure you haven&#8217;t violated any major development rules.  You can select which rules it checks.  No word on whether they&#8217;ll enable adding your own rules in the released product!</li>
<li><strong>Search Application!</strong> A search box on the Application Builder&#8217;s application pages (e.g. Edit Application, Edit Page, etc) that <strong>very quickly</strong> searches your application for the entered phrase!  Very very slick and fast!</li>
<li><strong>Plug-ins</strong> &#8211; Check out the <a href="http://www.inside-oracle-apex.com/oracle-apex-4-0-how-to-create-a-plug-in/" target="_blank">sample application and tips</a> that Patrick Wolf has already created.  Once you&#8217;ve installed these and learned the rules, most look straight-forward to implement in your code.</li>
</ol>
<h2>My Less-Favorite Parts so far</h2>
<ol>
<li>IRs now support a &#8220;Details&#8221; view, where you can lay out your own multi-row display by creating an HTML table and rows.  Pretty cool, but the end-user can&#8217;t determine what columns are displayed in that view.  So I&#8217;m not sure how that&#8217;s going to play out with end-users.  But I guess it&#8217;s better than having to build a separate report for them, eh?</li>
<li>I know this is an Early Adopter version, but there are lots of pieces that don&#8217;t work yet.  Such as saving your preference for the Development environment IRs doesn&#8217;t work yet.  So every time I return to the main page of the application I&#8217;m developing, it lists the pages in Icons view, which I hate, even though I&#8217;ve changed it to Reports view many times.  Yeah, it&#8217;s beta!  :-/</li>
<li>I really wanted to try out the new GANTT chart, but I keep getting an error message!  I tried to follow the sample query on the creation wizard, but no go.  I asked in the Apex forum, but so far no guidance.</li>
<li>I&#8217;m not too thrilled with the new font and design of the development environment, though maybe that&#8217;s just habit talking?  I&#8217;m looking at the Shared Components screen and the text looks really small for my 50-year-old eyes!  What do you think?</li>
</ol>
<p><img class="aligncenter" title="Apex 4.0 Shared Components snapshot" src="http://farm3.static.flickr.com/2751/4206773149_2221964f1f_o.jpg" alt="Apex 4.0 Shared Components snapshot" width="644" height="229" /></p>
<p>Anyway, it&#8217;s looking really good so far!</p>
<p>My compliments to the chefs!</p>
<p>Finally, happy holidays to all.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Revelation...]]></title>
<link>http://sharonswanderlust.wordpress.com/2009/12/20/the-revelation/</link>
<pubDate>Mon, 21 Dec 2009 05:30:04 +0000</pubDate>
<dc:creator>Sharon</dc:creator>
<guid>http://sharonswanderlust.wordpress.com/2009/12/20/the-revelation/</guid>
<description><![CDATA[It&#8217;s a new day and with every new day comes a new perspective&#8230;could it have anything to ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It&#8217;s a new day and with every new day comes a new perspective&#8230;could it have anything to do with the fact that it was 56° here in Denver??  Tomorrow&#8217;s the 1st day of winter you know!  Come to think of it why would you</p>
<div id="attachment_152" class="wp-caption alignright" style="width: 310px"><a href="http://sharonswanderlust.wordpress.com/files/2009/12/img_2624.jpg"><img class="size-medium wp-image-152" title="IMG_2624" src="http://sharonswanderlust.wordpress.com/files/2009/12/img_2624.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">Another crappy day here in Colorado...</p></div>
<p>know&#8230;the weather has been absolutely splendid here all week.  Admittedly, the warm air and bright blue sky might have played a role in today&#8217;s revelation, or maybe it had something to do with something else??</p>
<p>The boys in London are considering a date change&#8230;perhaps pushing out our start date by a few weeks in order to have a better shot at a successful summit.  Unfortunately, they are not doing a good job of communicating this information to those of us that are stateside.  I had a nice chat with Roger this morning and discovered that he is in the dark about this.  So he sent an inquisitive e-mail and yes, a date change is under review&#8230;apparently.  Just an observation, but if we are going to be a successful <em>TEAM</em> then we need to begin with open lines of communication&#8230;notice that word <em>&#8220;TEAM&#8221;</em> again??  Anyway&#8230;I&#8217;ll let you know how all that shakes out later.</p>
<div id="attachment_149" class="wp-caption alignleft" style="width: 235px"><a href="http://sharonswanderlust.wordpress.com/files/2009/12/img_2625-e1261371983499.jpg"><img class="size-medium wp-image-149" title="IMG_2625" src="http://sharonswanderlust.wordpress.com/files/2009/12/img_2625-e1261371983499.jpg?w=225" alt="" width="225" height="300" /></a><p class="wp-caption-text">Sarah on the Apex Trail</p></div>
<p>So back to my point&#8230;during my conversation with Roger I discovered that I am not alone in my anxiety!  <em>Mental Preparedness </em>is how Roger referred to it and he said that he is not there yet but he believes it will come in time.  This was a HUGE revelation to me and I take comfort in knowing that I am not alone.  So as Sarah and I did a training hike on <a href="http://www.co.jefferson.co.us/openspace/openspace_T56_R4.htm">Apex</a> today, I unloaded all of the things that have me in a twist.  She acknowledged having some anxiety as well but went on to say that she has her head around it all and is prepared for the journey&#8230;meaning everything we have to do between now and then in order to be ready&#8230;meaning all of the training hikes however big or small, the additional course work we plan on doing, buying the necessary gear that we need, tweaking everything so that our systems are solid, talking it all through&#8230;all of these things she said will help us BE READY to take on the mountain&#8230;with all of these things comes <em>Mental Preparedness. </em>Epiphany&#8230;I get it!</p>
<p>We had a great hike today.  I carried 43lbs without issue except for some discomfort around my shoulder which I think is a remnant of Friday&#8217;s hike.  I wore my plastics and got a blister on the bottom of my big toe which I attribute to wearing the wrong socks&#8230;all of the right socks are in with the dirty clothes.</p>
<p style="text-align:center;">I also got a sweet treat today compliments of my Dad&#8230;new Hestra gloves and a fab <a href="http://www.bentgate.com/">Bentgate</a> mug&#8230;THANKS DAD!!  Looking forward to toasty digits on a super cold day!!  <a href="http://sharonswanderlust.wordpress.com/files/2009/12/img_2626.jpg"><img class="size-thumbnail wp-image-150 aligncenter" title="IMG_2626" src="http://sharonswanderlust.wordpress.com/files/2009/12/img_2626.jpg?w=150" alt="" width="150" height="112" /></a></p>
<p><em><br />
</em></p>
<p><em><br />
</em></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Searching for Regular Expression in Apex]]></title>
<link>http://osamanasir.wordpress.com/2009/12/19/searching-for-regular-expression-in-apex/</link>
<pubDate>Sat, 19 Dec 2009 17:36:31 +0000</pubDate>
<dc:creator>osamanasir</dc:creator>
<guid>http://osamanasir.wordpress.com/2009/12/19/searching-for-regular-expression-in-apex/</guid>
<description><![CDATA[We can traverse a string in in order to search for a particular sort of expression. For example if w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We can traverse a string in in order to search for a particular sort of expression. For example if we want to search a date expression from a string, we can use do that. For this to be done, we have PATTERN and MATCHER classes in apex.</p>
<p>I had to parse an email message to search for a regular expression. Using PATTERN class, we can set any kind of expression we have to search for. e.g</p>
<p><code><span style="color:#000000;">Pattern cpattern = Pattern.compile('[S][O]-(\\d{0,100})-(</span><a href="//\\d{0,100})*'"><span style="color:#000000;">\\d{0,100})*'</span></a><span style="color:#000000;">);</span></code></p>
<p>The above statement sets a particular regular expression. In order to search this kind of expression in a string, we can use the following statement:</p>
<p><code>Matcher cmatcher = cpattern.matcher(myString);</code></p>
<p>We can set a Boolean variable which can return true or false if he value is found in the string or not:</p>
<p><code>myVar = cmatcher.find(); </code></p>
<p>and if we want to get the part of the string that has been found in the given string:</p>
<p><code>myName2 = cmatcher.group(); </code></p>
<p>The overall code looks like:</p>
<p><code>public class linkTestController {<br />
public String myName {set;get;}<br />
public String myName2 {set;get;}<br />
public Boolean myVar {set;get;}<br />
public Integer myVar2 {set;get;}</code></p>
<p><code>public linktestController()<br />
{<br />
myName = '1313 1231231 SO-20091217-000253   asdad   123  adasd';<br />
Pattern cpattern = Pattern.compile('[S][O]-(\\d{0,100})-(\\d{0,100})*');<br />
Matcher cmatcher = cpattern.matcher(myName );<br />
myVar = cmatcher.find();<br />
myName2 = cmatcher.group();<br />
}</code></p>
<p>}<br />
Now, if I display the value of myName2, it will return ‘SO-20091217-000253’ (without quotes) only.</p>
<p>Please feel free to ask any questions.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8d3ead96-87b4-44db-ab7e-6adaaca35db0" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/visualforce">visualforce</a>,<a rel="tag" href="http://technorati.com/tags/apex">apex</a>,<a rel="tag" href="http://technorati.com/tags/salesforce">salesforce</a>,<a rel="tag" href="http://technorati.com/tags/REGEX">REGEX</a>,<a rel="tag" href="http://technorati.com/tags/pattern">pattern</a>,<a rel="tag" href="http://technorati.com/tags/matcher">matcher</a>,<a rel="tag" href="http://technorati.com/tags/regular+expression">regular expression</a></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Review- Apex Issue Blah Blah]]></title>
<link>http://ficreviewcrew.wordpress.com/2009/12/17/review-apex-issue-blah-blah/</link>
<pubDate>Thu, 17 Dec 2009 21:19:44 +0000</pubDate>
<dc:creator>mgellington</dc:creator>
<guid>http://ficreviewcrew.wordpress.com/2009/12/17/review-apex-issue-blah-blah/</guid>
<description><![CDATA[Check out my review of the latest issue of Apex featuring this great author. http://wp.me/PKaWq-o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Check out my review of the latest issue of Apex featuring this great author. <a href="http://wp.me/PKaWq-o">http://wp.me/PKaWq-o</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[What Can I Do Now?]]></title>
<link>http://manifestare.wordpress.com/2009/12/16/what-can-i-do-now/</link>
<pubDate>Wed, 16 Dec 2009 14:17:59 +0000</pubDate>
<dc:creator>nellynumberthree</dc:creator>
<guid>http://manifestare.wordpress.com/2009/12/16/what-can-i-do-now/</guid>
<description><![CDATA[Every Christian has had an apex.  A point where they desired nothing but Christ.  This was it.  The ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Every Christian has had an apex.  A point where they desired nothing but Christ.  This was it.  The end all, be all of their relationship with God.  Everything made sense.  Birds sang, the sun shone ever so bright and the clouds parted.  Well, maybe it wasn&#8217;t so dramatic, but nonetheless, this was the point where we realized that this life was all about loving God and loving other people.</p>
<p>Then life came.  We got busy.  We got older.  We grew more concerned about stuff than God.  We grew more concerned with acquiring stuff than loving others.  And slowly, but surely it all slipped away [Not our stuff, that's okay. We made sure we didn't lose or give up that].  But, our apex was lost.  We tell ourselves that it was inevitable.  At some point, we had to leave the proverbial mountaintop and sojourn back to real life.  We say that we had to grow up and focus on more grown up things.</p>
<p>But is this what Christianity is all about?  That one magical moment where it all made sense.  Maybe after searching high and low, that apex is it for us.  And sadly, many of us are okay with that.  However, as Christians, we shouldn&#8217;t be.  We should not be okay with that &#8220;one shining moment.&#8221;  But we are because to get back to that point would require work from us.  It would require us to put on our big boy pants and do some heavy soul-searching.  It would also mean that life would never be the same for us.  We might have to give up our pursuit of stuff.  We would have to love God completely.</p>
<p>You get out what you put in.  If you are okay with the minimum, fine.  If not, do something about it.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Correction - 33Third Apologizes]]></title>
<link>http://jerseyjoeart.wordpress.com/2009/12/15/correction-33third-apologizes/</link>
<pubDate>Tue, 15 Dec 2009 03:19:26 +0000</pubDate>
<dc:creator>jerseyjoeart</dc:creator>
<guid>http://jerseyjoeart.wordpress.com/2009/12/15/correction-33third-apologizes/</guid>
<description><![CDATA[MATT OWNER OF 33THIRD APOLOGIZES TO REVOK from WWW.REVOK1.COM on Vimeo.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><BR><br />
<span style='text-align:center; display: block;'><br />
<object type="application/x-shockwave-flash" width="400" height="300" data="http://www.vimeo.com/moogaloop.swf?clip_id=8181261&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=8181261&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=01AAEA" /></object><br />
</span></p>
<p><a href="http://vimeo.com/8181261">MATT OWNER OF 33THIRD APOLOGIZES TO REVOK</a> from <a href="http://vimeo.com/user2492760">WWW.REVOK1.COM</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/RBLvrNB6c8Q&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/RBLvrNB6c8Q&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p><img src="http://revok1.com/wp-content/uploads/2009/11/montanaexhibition_v01_color_low_1257248457.jpg" alt="" /></p>
<p><BR></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The BodyBugg, a first review.]]></title>
<link>http://outfromhibernation.wordpress.com/2009/12/14/the-bodybugg-a-first-review/</link>
<pubDate>Mon, 14 Dec 2009 22:50:30 +0000</pubDate>
<dc:creator>nevadamtnbear</dc:creator>
<guid>http://outfromhibernation.wordpress.com/2009/12/14/the-bodybugg-a-first-review/</guid>
<description><![CDATA[Okay, the little bugg showed up on Friday afternoon.  I got everything all set up Friday evening and]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Okay, the little bugg showed up on Friday afternoon.  I got everything all set up Friday evening and left it to charge overnight.  Saturday morning around 7am I strapped it on and away I went.</p>
<p>First, I&#8217;m not a computer wiz, but I&#8217;m very computer literate and versed.  The set up was not a problem.  I felt as if everything was extremely easy.  Even getting the little bugg out of the armband was literally a snap.  I didn&#8217;t ready any of the instructions, but I&#8217;m mechanically minded and that was extraordinarily easy.  I&#8217;m running the bugg on a HP laptop (can&#8217;t remember what kind) with Windows Vista.  So far, so good.</p>
<p>The most difficult part of the set-up was waiting for the bugg to charge.  I was anxious to get it on and see how it worked.</p>
<p>Saturday morning I put it on as directed &#8211; left arm, on the rear/tricept with the words facing up,  and I went about my day.  My initial impression was that it was comfortable, like I&#8217;ve seen many people say.  That was good.  I did some home improvement activities.  And since I had already been tracking my food intake, that wasn&#8217;t a big deal.  I&#8217;m already being very aware of what I&#8217;m eating &#8211; to the tune of over 2#&#8217;s in my first 5 days, but granted a lot was likely water weight from cutting out alcohol and laying off the salt.</p>
<p>My initial impressions of the Apex/BodyBugg food tracking software &#8211; it&#8217;s burdensome.  It&#8217;s set up primarily in grams, ounces, etc., especially if you have to enter food that is not already in the system.  Honestly, it&#8217;s a bit of a pain in the tushie, and I&#8217;m not in love with their food tracking components.  I hear that it&#8217;s come a long way&#8230;goodness, I can&#8217;t imagine what it was like before.  *shudder*  My biggest complaint is that when trying to enter foods not already in the system you have to have grams, or some other foreign measurement (not like foreign country, just foreign to me).  I don&#8217;t think in grams, etc.  I think in tablespoons, servings, etc.  I&#8217;m adjusting to it, but it&#8217;s cumbersome to me, and not preferred.  We&#8217;ll see how things progress on this front.</p>
<p>Another food entry issue I&#8217;ve come across today is a deviation between what the nutritional information on a food item is and what Apex has it as.  Today I entered my frozen lunch, which was already in the Apex system, only to find it has 50 more calories, twice as much fat, less carbohydrates and a smidge more protein.  Does it make a HUGE difference, at the end of my day, probably not, but I&#8217;m baffled by this right now.  I&#8217;m noting this as something I want to address when I have my phone consultation with the Apex people.</p>
<p>Enough about the food part.</p>
<p>As for the actual devise.  Like I mentioned, it&#8217;s actually pretty comfortable, and I don&#8217;t necessarily notice it.  I&#8217;m sure that as time goes on, I&#8217;ll notice it less and less.  I do take it off twice a day, once in the morning while enjoying a cup of coffee and catching up on emails and once in the evening after dinner.  I upload my information both those times.</p>
<p>Like I have said, daytime comfort is good.  Nighttime is pretty good as well, but I&#8217;ve been woken up both nights so far with the velcro part of the strap.  It&#8217;s not scratching me, but I feel it in my sleep and its somewhat uncomfortable.  I don&#8217;t know if I need to switch to the smaller strap so that the velcro piece is located in a different spot.  I might try that.  Right now I&#8217;m just seeing if I&#8217;ll get used to it.</p>
<p>Overall, the device is unobtrusive.  Under tight fitting shirts, because my arms are fat, you can see where I am wearing the bugg, but it&#8217;s not obvious.  So far today I haven&#8217;t had anyone say anything in my office.</p>
<p>I haven&#8217;t &#8220;worked-out&#8221; since getting this little gem.  I&#8217;m pretty much giving myself two weeks to get used to watching what I eat and get used to the bugg, and then I&#8217;ll go from there.  I&#8217;m not saying I&#8217;m NOT going to work out.  I am just not making it a huge priority until next week.</p>
<p>So, there&#8217;s my initial impressions.  I&#8217;ll keep my feedback coming, just in case someone out there cares.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Populating html components with apex controller variables]]></title>
<link>http://osamanasir.wordpress.com/2009/12/11/populating-html-components-with-apex-controller-variables/</link>
<pubDate>Fri, 11 Dec 2009 19:21:37 +0000</pubDate>
<dc:creator>osamanasir</dc:creator>
<guid>http://osamanasir.wordpress.com/2009/12/11/populating-html-components-with-apex-controller-variables/</guid>
<description><![CDATA[I was working today and there was a requirement for a third party integration on a visual force page]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I was working today and there was a requirement for a third party integration on a visual force page. That requires a html form  which takes input and redirects to the required page by pressing submit button.</p>
<p>there were html input tags.. <code>&#60;input type="text" name="txtBox" /&#62;</code></p>
<p>I was jus thinking how to populate this textbox with the apex variable I have at the backend, I was about to try the javaScript method to populate this textbox with apex controller variable. But before that what I did was, I just called the variable name in the &#8216;value&#8217; attribute of the input component this way:</p>
<p><code>&#60;input type="text" name="txtBox" value="{!myVar}" /&#62;</code></p>
<p>this seems pretty simpler. it saved my lot of time by not getting into javaScript. I didnt know before that we can call apex controller variable for html components.</p>
<p>Feel free to ask any questions.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Batch Processing and Formulas]]></title>
<link>http://thoughtsondemand.wordpress.com/2009/12/10/batch-processing-and-formulas/</link>
<pubDate>Thu, 10 Dec 2009 17:43:46 +0000</pubDate>
<dc:creator>davoski</dc:creator>
<guid>http://thoughtsondemand.wordpress.com/2009/12/10/batch-processing-and-formulas/</guid>
<description><![CDATA[Formulas simply do not work in batch processing. I&#8217;m not talking about cross-object formulas e]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Formulas simply do not work in batch processing. I&#8217;m not talking about cross-object formulas either. And yes, yes, I&#8217;ve heard about retrieving all fields that are relevant to the formula in your SOQL statement. However&#8230;.</p>
<p>Formula fields don&#8217;t work in batch processing. Don&#8217;t rely on them, work around them, or prepare for some hair pulling!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Created Fields - The Darkside of the Moon]]></title>
<link>http://thoughtsondemand.wordpress.com/2009/12/10/created-fields-the-darkside-of-the-moon/</link>
<pubDate>Thu, 10 Dec 2009 17:25:38 +0000</pubDate>
<dc:creator>davoski</dc:creator>
<guid>http://thoughtsondemand.wordpress.com/2009/12/10/created-fields-the-darkside-of-the-moon/</guid>
<description><![CDATA[&#8220;CreatedById&#8221; and &#8220;CreatedDate&#8221;, two fields that very often we couldn&#8217;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#8220;CreatedById&#8221; and &#8220;CreatedDate&#8221;, two fields that very often we couldn&#8217;t do without for our triggers. However, the very nature of these fields in Salesforce.com can lead us to disaster.</p>
<p>Firstly these fields aren&#8217;t populated before a record is created in the Salesforce.com beefy databases. This has implications for &#8220;Before Insert&#8221; triggers. If you are relying on these fields in your program logic, you cannot use a Before Insert trigger. That is fair enough, but presents a problem for Salesforce.com in terms of load.</p>
<p>&#8220;Before Insert&#8221; triggers are &#8220;good&#8221; triggers. They are efficient, because if you are simply updating the object that is being inserted, your volume of DML statements (and thus database accesses) is reduced due to the fact that you can update the object before it ever gets to the database. The Created fields not being populated in the &#8220;Before Insert&#8221; trigger means you have to use &#8220;After Insert&#8221; triggers instead. This means you have to call an Update against the object your trigger is running against. Not an ideal situation for Salesforce in terms of their database load, nor indeed the developer who is hitting the brick wall of governor limits.</p>
<p>Secondly, these fields are non-createable and non-updateable. So what? Ask your testmethods. If your trigger logic needs the CreatedDate field to be a year ago for instance, you will have a problem getting your trigger to fire in your test methods. You will find yourself writing code just so your test method will run and you can deploy the damn code to production before your head is melted. How crazy is that?</p>
<p>The bottom line is, there are pitfalls that are unexpected when using the Created fields. Think twice about including them in your logic.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Apex Triggers and Currency - Adding the load]]></title>
<link>http://thoughtsondemand.wordpress.com/2009/12/10/apex-triggers-and-currency-adding-the-load/</link>
<pubDate>Thu, 10 Dec 2009 16:46:04 +0000</pubDate>
<dc:creator>davoski</dc:creator>
<guid>http://thoughtsondemand.wordpress.com/2009/12/10/apex-triggers-and-currency-adding-the-load/</guid>
<description><![CDATA[Currently the only EASY way to convert currency in an Apex trigger is to use a SOQL statements ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Currently the only EASY way to convert currency in an Apex trigger is to use a SOQL statements &#8220;convertCurrency&#8221; function. This is a very limited function, and it would seem counter intuitive from Salesforces perspective to force people down this road. I propose that Salesforce needs to change this to both reduce their own database load and give us developers a helping hand.</p>
<p>For the reason why this hurts Salesforce, consider this:</p>
<ul>
<li>I am writing an insert trigger to examine a currency field on my custom object &#8220;Transaction&#8221;</li>
<li>If the amount of the Transaction is greater than EUR50, then stamp that Transaction with a value</li>
<li>If I could use a &#8220;Before Insert&#8221; trigger I would just update the Transaction on the fly, i.e. update the object before it hits the database. Very efficient</li>
<li>However I can&#8217;t do this because I need to convert my currency to Euro. I cannot use a SOQL statement to do this because the Transaction is not yet in the database.</li>
<li>So I am forced to use an &#8220;After Insert&#8221; trigger, so that I can query the amount with my SOQL statement and use the convertCurrency to get the amount in Euro</li>
</ul>
<p>So clearly it introduces a huge inefficiency within our triggers.</p>
<p>The solution in my mind is to have a suite of currency conversion functions as static method on Currency class. For instance, you could have:</p>
<ul>
<li>Currency.convert(Object.objectField, TargetCurrencyISOCode, Date)</li>
</ul>
<p>where the Date is for dated exchange rates, and could be an optional parameter.  This alone would make multi-currency a breeze in triggers, rather than generating lots more dB read/writes than is necessary</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Winter's Here! Keep Riding To Keep Warm]]></title>
<link>http://team.bikeparts.com/2009/12/09/winters-here-keep-riding-to-keep-warm/</link>
<pubDate>Wed, 09 Dec 2009 19:09:56 +0000</pubDate>
<dc:creator>jpolli</dc:creator>
<guid>http://team.bikeparts.com/2009/12/09/winters-here-keep-riding-to-keep-warm/</guid>
<description><![CDATA[It may be in the single digit temperatures, but that doesn&#8217;t mean we all put our bikes away an]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It may be in the single digit temperatures, but that doesn&#8217;t mean we all put our bikes away and quit riding&#8211;  Join the team on New Years Day for a repeat of last year&#8217;s ride down Apex:</p>

</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Trends in the Triangle Real Estate Market...Q&amp;A with a Mortgage Lender]]></title>
<link>http://chrisearnhardt.wordpress.com/2009/12/09/trends-in-the-triangle-real-estate-market-qa-with-a-mortgage-lender/</link>
<pubDate>Wed, 09 Dec 2009 18:12:08 +0000</pubDate>
<dc:creator>Chris Earnhardt</dc:creator>
<guid>http://chrisearnhardt.wordpress.com/2009/12/09/trends-in-the-triangle-real-estate-market-qa-with-a-mortgage-lender/</guid>
<description><![CDATA[The end of the year is here and plenty of people who have been sitting on the fence when it comes to]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The end of the year is here and plenty of people who have been sitting on the fence when it comes to buying a home are looking. Some are just window shopping thinking that it is too difficult to get a loan. Erica McClenny, partner of ERealty, met with me recently to ask me a few questions.</p>
<p><strong>Erica:</strong> The mortgage business has been in and out of the news over the past few years. Is getting a loan as difficult as the media says?</p>
<p><strong>Me:</strong> Well our industry has gone thru a massive transformation. Four to five years ago qualifying for a home loan was like the old car ads. “Do you have a job? Do you have $99? You can own a home.” It is no longer like that and to be honest that’s a good thing. The risky investments that banks were willing to make are gone, but that doesn’t mean it is hard to get a loan. Lenders just want to make sure that someone has a stable job and good payment history. They also want to make sure that buyers have the ability to continue making their house payment.</p>
<p><strong>Erica:  </strong>Does a buyer need to have a large down payment saved before they start to look at homes?</p>
<p><strong>Me:</strong> No. That is the biggest misconception. There are still programs that require little to no money down.  Some programs, such as USDA, have property eligibility restrictions.  This is why it is important to call a Realtor or Mortgage Professional. They can help you identify these properties.</p>
<p><strong>Erica: </strong> Many people start browsing the Internet before they speak to a mortgage lender or Realtor. Do you think this is a good idea?</p>
<p><strong>Me:</strong>  I wouldn’t necessarily say it is a bad idea, however it isn’t the best way. The best place to start is to get prequalified by a mortgage professional.  The reason why this is important is that it lets someone know the range of home prices they qualify for. A Realtor can refer someone to one or more lenders for prospective buyers to talk to.   </p>
<p><strong>Erica:  </strong>Why should the Realtor and Lender be familiar with each other? Should a lender recommend a Realtor or vice versa?</p>
<p><strong>Me: </strong> Just like in any business it is important for people to form working relationships. Each must depend on each other in order to deliver a smooth transaction to their customer. With each deal the Realtor and Lender become more familiar with how each other works and build a level of trust. This trust is definitely important to the customer because buying a home can be stressful, but when the customer sees the Realtor and Lender working as a team, it definitely alleviates anxiety.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[When you're feeling low, move the Frameworkia out of the doorway...]]></title>
<link>http://munkyben.wordpress.com/2009/12/09/when-youre-feeling-low-move-the-frameworkia-out-of-the-doorway/</link>
<pubDate>Wed, 09 Dec 2009 17:10:49 +0000</pubDate>
<dc:creator>munkyben</dc:creator>
<guid>http://munkyben.wordpress.com/2009/12/09/when-youre-feeling-low-move-the-frameworkia-out-of-the-doorway/</guid>
<description><![CDATA[Everyone should have seen this but I&#8217;m going to link to it one more time as the man has come b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Everyone should have seen this but I&#8217;m going to link to it one more time as the man has come back. </p>
<p>One day- we shall all use Frameworkia&#8230;</p>
<p><a href="http://forums.oracle.com/forums/thread.jspa?threadID=575556">Frameworkia</a></p>
<p>This genuinely cheers me up when having &#8216;one of those days&#8217;!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Oracle Database XE Server dostępny dla zdalnych klientów]]></title>
<link>http://latibulum.wordpress.com/2009/12/09/oracle-database-xe-server-dostepny-dla-zdalnych-klientow/</link>
<pubDate>Wed, 09 Dec 2009 17:05:06 +0000</pubDate>
<dc:creator>latibulum</dc:creator>
<guid>http://latibulum.wordpress.com/2009/12/09/oracle-database-xe-server-dostepny-dla-zdalnych-klientow/</guid>
<description><![CDATA[Domyślnie webowy dostęp do Oracle Database XE Server ograniczony jest do localhosta. Aby umożliwić d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Domyślnie webowy dostęp do Oracle Database XE Server ograniczony jest do <em>localhosta</em>.</p>
<p>Aby umożliwić dostęp webowy do administracji dla zdalnych klientów, należy zalogować się do <em>sqlplus’a</em> jako użytkownik <em>sys</em> i wydać polecenie:</p>
<p><code>EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);</code></p>
<p>I gotowe. Teraz możemy w przeglądarce wpisać adres serwera  (pamiętając o porcie 8080).</p>
<p>Np.</p>
<p><code>http://192.168.1.10:8080/apex</code></p>
<p>i przetestować połączenie (rys. 01).</p>
<p style="text-align:center;"><a href="http://latibulum.wordpress.com/files/2009/12/apex.jpg"><img class="aligncenter size-medium wp-image-27" title="apex" src="http://latibulum.wordpress.com/files/2009/12/apex.jpg?w=300" alt="" width="300" height="165" /></a><em>rys. 01</em></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Howto: Communicate between template- and inner- pages.]]></title>
<link>http://developinthecloud.wordpress.com/2009/12/09/visualforce-template-inner-page-communications/</link>
<pubDate>Wed, 09 Dec 2009 16:30:30 +0000</pubDate>
<dc:creator>Wes</dc:creator>
<guid>http://developinthecloud.wordpress.com/2009/12/09/visualforce-template-inner-page-communications/</guid>
<description><![CDATA[This post is as much about me asking a question as it is about providing a solution, so don&#8217;t ]]></description>
<content:encoded><![CDATA[This post is as much about me asking a question as it is about providing a solution, so don&#8217;t ]]></content:encoded>
</item>
<item>
<title><![CDATA[[TRIM015] Kiro &amp; Neonlight / Neonlight &amp; Rolar - The Blackout / Epidemic (Apex Remix)]]></title>
<link>http://armandoferraz.wordpress.com/2009/12/07/trim015-kiro-neonlight-neonlight-rolar-the-blackout-epidemic-apex-remix/</link>
<pubDate>Mon, 07 Dec 2009 07:09:25 +0000</pubDate>
<dc:creator>Armando Ferraz</dc:creator>
<guid>http://armandoferraz.wordpress.com/2009/12/07/trim015-kiro-neonlight-neonlight-rolar-the-blackout-epidemic-apex-remix/</guid>
<description><![CDATA[Saiu na sequencia no final de ano dois singles no label alemão Trust In Music [TRIM]. Neonlight, Kir]]></description>
<content:encoded><![CDATA[Saiu na sequencia no final de ano dois singles no label alemão Trust In Music [TRIM]. Neonlight, Kir]]></content:encoded>
</item>
<item>
<title><![CDATA[ExtJS and cliffs...]]></title>
<link>http://munkyben.wordpress.com/2009/12/06/extjs-and-cliffs/</link>
<pubDate>Sun, 06 Dec 2009 21:13:30 +0000</pubDate>
<dc:creator>munkyben</dc:creator>
<guid>http://munkyben.wordpress.com/2009/12/06/extjs-and-cliffs/</guid>
<description><![CDATA[Okay, I haven&#8217;t posted in a very long while&#8230; So, apologies for the delay, but such is th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Okay, I haven&#8217;t posted in a very long while&#8230; </p>
<p>So, apologies for the delay, but such is the result of falling off a cliff!</p>
<p>I have mentioned a few times that I was working on some ExtJSy stuff and some people have asked me when it will be ready. Quick answer is not very soon but I would welcome you to have a look at where I&#8217;m at so far.</p>
<p>I took great inspiration from Mark Lancaster (I do hope you&#8217;ve seen his site), and Matt Nolan at e-DBA. The route I took was to use a PL/SQL package to dynamically (probably strecthing the use of the word there&#8230;) create the ExtJS scripts based on the meta data from the APEX tables and a bit of DBMS_SQL, a few application processes and a couple of standalone JS files in the header of the page template. It&#8217;s all pretty clean and generic.</p>
<p>On the home page there&#8217;s a little portal kind of thing where the positions of things are based on the region positions, columns etc. If you find <em>the</em> page with some grids on it &#8211; it uses the alignment, default sort settings etc. from the APEX data as well. So you just enter the report query and settings as normal in APEX and the PL/SQL package picks all of that up to create the grid.</p>
<p>It&#8217;s just a starting point at the moment and something I hope to work on when in finer form.</p>
<p>So sorry for the wait and sorry it&#8217;s only just started but here&#8217;s the link&#8230;</p>
<p><a href="http://apex.oracle.com/pls/otn/f?p=314159:100">Munky&#8217;s Zoo</a></p>
<p>Please e-mail me with suggestions for what to do next&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Calling a REST Web Service (XML) with Apex]]></title>
<link>http://blog.jeffdouglas.com/2009/12/04/calling-a-rest-web-service-with-apex/</link>
<pubDate>Fri, 04 Dec 2009 16:27:13 +0000</pubDate>
<dc:creator>jeffdonthemic</dc:creator>
<guid>http://blog.jeffdouglas.com/2009/12/04/calling-a-rest-web-service-with-apex/</guid>
<description><![CDATA[This is a cool little example of calling a REST web service with Apex. You enter your address and th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is a cool little example of calling a REST web service with Apex. You enter your address and the Apex code fetches the geo coordinates from Yahoo! Maps. The service returns the data as XML.</p>
<p>If you want to run this demo in your own org, you will need to do the following:</p>
<ol>
<li>Add a &#8220;Remote Site&#8221; (Setup -&#62; Security Controls -&#62; Remote Site Setting) with the URL: http://local.yahooapis.com</li>
<li>Add the XML DOM parser class to your org. It may already be present but if not you can <a href="http://developer.force.com/codeshare/projectpage?id=a0630000002ahp5AAA" target="_blank">download it from Code Share</a>. Ron Hess&#8217; class makes life much easier than using the standard XmlReader when dealing with XML files.</li>
</ol>
<p><a href="https://jeffdouglas-developer-edition.na5.force.com/examples/RestDemo"><img class="alignnone size-full wp-image-1829" title="RestDemo" src="http://jeffdonthemic.wordpress.com/files/2009/12/restdemo1.png" alt="" width="544" height="223" /></a></p>
<p><strong>You can </strong><a href="https://jeffdouglas-developer-edition.na5.force.com/examples/RestDemo" target="_blank"><strong>run this example</strong></a><strong> on my Developer Site.</strong></p>
<p>The Visualforce page above presents the user with address fields that they submit to the controller. The controller calls the REST web service and then displays the resulting geo coordinates to the user.</p>
<pre class="brush: java;">

&#60;apex:page controller=&#34;RestDemoController&#34; tabStyle=&#34;Contact&#34;&#62;
	&#60;apex:sectionHeader title=&#34;Yahoo Maps Geocoding&#34; subtitle=&#34;REST Demo&#34;/&#62;

     &#60;apex:form &#62;
     &#60;apex:pageBlock &#62;

          &#60;apex:pageBlockButtons &#62;
              &#60;apex:commandButton action=&#34;{!submit}&#34; value=&#34;Submit&#34;
                   rerender=&#34;resultsPanel&#34; status=&#34;status&#34;/&#62;
          &#60;/apex:pageBlockButtons&#62;
          &#60;apex:pageMessages /&#62;

          This example calls Yahoo! Map's geocoding REST service with the address
          you provide below.&#60;p/&#62;

          &#60;apex:pageBlockSection &#62;
               &#60;apex:pageBlockSectionItem &#62;
                    &#60;apex:outputLabel for=&#34;address&#34;&#62;Address&#60;/apex:outputLabel&#62;
                    &#60;apex:inputText id=&#34;address&#34; value=&#34;{!address}&#34;/&#62;
               &#60;/apex:pageBlockSectionItem&#62;
          &#60;/apex:pageBlockSection&#62;

          &#60;apex:pageBlockSection &#62;
               &#60;apex:pageBlockSectionItem &#62;
                    &#60;apex:outputLabel for=&#34;city&#34;&#62;City&#60;/apex:outputLabel&#62;
                    &#60;apex:inputText id=&#34;city&#34; value=&#34;{!city}&#34;/&#62;
               &#60;/apex:pageBlockSectionItem&#62;
          &#60;/apex:pageBlockSection&#62;

          &#60;apex:pageBlockSection &#62;
               &#60;apex:pageBlockSectionItem &#62;
                    &#60;apex:outputLabel for=&#34;state&#34;&#62;State&#60;/apex:outputLabel&#62;
                    &#60;apex:inputText id=&#34;state&#34; value=&#34;{!state}&#34;/&#62;
               &#60;/apex:pageBlockSectionItem&#62;
          &#60;/apex:pageBlockSection&#62;&#60;br/&#62;

          &#60;apex:actionStatus id=&#34;status&#34; startText=&#34;Fetching map...&#34;/&#62;
          &#60;apex:outputPanel id=&#34;resultsPanel&#34;&#62;
               &#60;apex:outputText value=&#34;{!geoAddress}&#34;/&#62;
          &#60;/apex:outputPanel&#62;

     &#60;/apex:pageBlock&#62;
     &#60;/apex:form&#62;

&#60;/apex:page&#62;
</pre>
<p>The submit method below is invoked from the Visualforce page when the user clicks the submit button. It passes the address info to the getMap method which does the GET call to the REST service. We use the XmlDom class to parse through the results and construct a GeoResult object (from the inner class) and then present the info as a String to the user on the Visualforce page.</p>
<pre class="brush: java;">

public class RestDemoController {

	public String geoAddress {get;set;}
	public String address {get;set;}
	public String city {get;set;}
	public String state {get;set;}

    // set the Yahoo Application Id
    private String appId {get;set { appId = 'DaqEkjjV34FCuqDUvZN92rQ9WWVQz58c0WHWo2hRGBuM310.qXefuBVwvJQaf1nnMCxSbg--'; } }

    // method called by the Visualforce page's submit button
    public PageReference submit() {
    	List&#60;GeoResult&#62; results = getMap(address,city,state);
    	geoAddress = results[0].toDisplayString();
    	return null;
    }

    // call the REST service with the address info
	public List&#60;GeoResult&#62; getMap(String street, String city, String state) {

		HttpRequest req = new HttpRequest();
		Http http = new Http();
		List&#60;GeoResult&#62; results = new List&#60;GeoResult&#62;();

		// set the request method
		req.setMethod('GET');

		// set the yahoo maps url with address
		String url = 'http://local.yahooapis.com/MapsService/V1/geocode?appid=' + appId
			+ '&#38;street=' + EncodingUtil.urlEncode(street,'UTF-8')
			+ '&#38;city=' + EncodingUtil.urlEncode(city,'UTF-8')
			+ '&#38;state=' + EncodingUtil.urlEncode(state,'UTF-8');

		// add the endpoint to the request
		req.setEndpoint(url);

		// create the response object
		HTTPResponse resp = http.send(req);

		// create the xml doc that will contain the results of the REST operation
		XmlDom doc = new XmlDom(resp.getBody());

		// process the results
		XmlDom.Element[] elements = doc.getElementsByTagName('Result');
		if (elements != null) {
			for (XmlDom.Element element : elements)
				results.add(toGeoResult(element));
		}

		return results;
	}

	// utility method to convert the xml element to the inner class
	private GeoResult toGeoResult(XmlDom.Element element) {

		GeoResult geo = new GeoResult();
		geo.latitude = element.getValue('Latitude');
		geo.longitude = element.getValue('Longitude');
		geo.address = element.getValue('Address');
		geo.city = element.getValue('City');
		geo.state = element.getValue('State');
		geo.zip = element.getValue('Zip');
		return geo;
	}

	// inner class
	private class GeoResult {

		public String latitude;
		public String longitude;
		public String address;
		public String city;
		public String state;
		public String zip;
		public String toDisplayString() {
			return address + ', '
			+ city + ', '
			+ state + ', '
			+ zip + ' ['
			+ latitude + ', '
			+ longitude + ']';
		}

	}

}
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Peak of Good Festivals]]></title>
<link>http://salestherapist.wordpress.com/2009/12/03/the-peak-of-good-festivals/</link>
<pubDate>Thu, 03 Dec 2009 17:13:32 +0000</pubDate>
<dc:creator>salestherapist</dc:creator>
<guid>http://salestherapist.wordpress.com/2009/12/03/the-peak-of-good-festivals/</guid>
<description><![CDATA[12-03-09 Apex NC WOW! What a Festival we had.  Historic Downtown Apex rocked for 72 hours as events,]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>12-03-09 Apex NC</strong></p>
<p><strong>WOW! </strong>What a Festival we had. </p>
<p>Historic Downtown Apex rocked for 72 hours as events, gatherings, awards, films and VIP’s became vogue along Salem Street and in the Halle Cultural Arts Center.  We declare the Peak City Film Festival – Family Style a wonderful success.</p>
<p>Jerry Mathers and Charlie Gaddy have quickly become the famous faces of the Festival. These two dynamic individuals, stars in their own right, and who have both set numerous longevity records in the field of news and entertainment, brought their “everyman” appeal to each event they attended.  What a pair of true gentlemen.   What do you say about well known individuals who are also extremely friendly and giving? It is rare to see as we read the daily headlines.  It is simply refreshing to have celebrities who are not self-evolved. Down the road when the Festival commits to a Hall of Fame, the first two plaques are easy. And the wall space is well worth it.</p>
<p>It is exciting to announce that both Jerry and Charlie will again be the faces you will see in 2010 as the second Peak City Film Festival – Family Style comes back to the town of Apex on November 20. It is not that far away.</p>
<p>Although a famous face is critical to the longevity of this effort, John Demers of Studio in the Woods is quite honestly, the heart. His festival vision to bring edutainment and increased family values to this community was central to its success.  It continues to need his leadership and energy as year two fast approaches.</p>
<p>With the face smiling and the heart beating, the hands and feet of the festival this year were the senior committee and the simply awesome volunteers who worked BEYOND hard, long and cheap to make things happen. We put you away dirty and wet… And we love you so much for your efforts!</p>
<p>The life’s blood of our festival was the array of film producers whose efforts were the quite the show! You created awesome and wholesome entertainment that brought passion to the screen. Thank you so much.</p>
<p>The body of this year’s Festival is a no-brainer. It is you. The community came out in droves, selling out night one and bringing excitement to the historic street of Salem for three days!</p>
<p>Finally, the soul of the festival is never ending. It continues to be the generous and committed local, regional and national businesses who opened their up pocketbooks or gave “in-kind” donations in this crazy economy to make this unknown initial event an over- the- top success!</p>
<p>When you look deep and think about it, it is the soul that drives the opportunity. <strong>The Peak City Film Festival, the Rusty Bucket Kids Club, and the Studio in the Woods are more than committed to being in the business of creating business for our businesses</strong>. The Mission of the Festival as it evolves over time is exactly this. If we helped sell one more pizza, one more book, one more oil change, one more bottle of soda or one more dinner, we did it to keep our local community and our local businesses growing in the toughest of times. </p>
<p><strong>Merry Christmas</strong> from all of us in the Peak City Film Festival – Family Style, to you and your family, and a Happy New Year!! Godspeed in 2010! Success every day!</p>
<p> <a href="http://salestherapist.wordpress.com/files/2009/12/pcff-poster.jpg"><img class="alignnone size-medium wp-image-185" title="PCFF 2009" src="http://salestherapist.wordpress.com/files/2009/12/pcff-poster.jpg?w=201" alt="" width="201" height="300" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[2009 Triangle Holiday Happenings]]></title>
<link>http://lindatrevor.wordpress.com/2009/12/02/2009-triangle-holiday-happenings/</link>
<pubDate>Wed, 02 Dec 2009 17:14:38 +0000</pubDate>
<dc:creator>lindatrevor</dc:creator>
<guid>http://lindatrevor.wordpress.com/2009/12/02/2009-triangle-holiday-happenings/</guid>
<description><![CDATA[Hello Friends, The holiday season is now among us and the Triangle area has tons of fun events!  Bel]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hello Friends,</p>
<p>The holiday season is now among us and the Triangle area has tons of fun events!  Below is a helpful list of city links to find out what’s happening in your area:</p>
<h5><span style="text-decoration:underline;"><em>Christmas Parades:</em></span></h5>
<p><a href="http://www.apexrotary.org/">Apex</a> (Saturday, December 5 at 5:00 PM)</p>
<p><a href="http://www.caryjaycees.org/special/christmas_parade.htm">Cary</a> (Saturday, December 5 at 2:00 PM)</p>
<p><a href="http://www.chapelhilljaycees.org/Parade2009/Parade2009.htm">Chapel Hill</a> (Saturday, December 12 at 10:00 AM)</p>
<p><a href="http://www.durhamnc.gov/departments/parks/holiday_parade.cfm">Durham</a> (Saturday, December 5 at 4:00 PM)</p>
<p><a href="http://www.fuquay-varina.com/">Fuquay-Varina</a> (Sunday, December 6 at 3:00 PM)</p>
<p><a href="http://www.garnerparks.org/SpecialEvents/ChristmasinGarner/tabid/151/Default.aspx">Garner</a> (Saturday, December 5 at 10:00 AM)</p>
<p><a href="http://www.hollyspringsnc.us/about/parade.htm">Holly Springs</a> (Saturday, December 12 at 11:00 AM)</p>
<p><a href="http://knightdalechamber.chambermaster.com/directory/jsp/events/EventPage.jsp?ccid=277&#38;eventid=2116&#38;qs=ccid=277&#124;visibility=2&#124;context=month">Knightdale</a> (Saturday, December 5 at 2:00 PM)</p>
<p><a href="http://www.ci.rolesville.nc.us/events/default.htm">Rolesville</a> (Sunday, December 6 at 2:00 PM)</p>
<p><a href="http://www.wakeforestdowntown.com/drc/special_notice.asp?id=52">Wake Forest</a> (Saturday, December 12 at 1:00 PM)</p>
<p><a href="http://www.zebulonchamber.org/events_calendaritem.asp?id=439">Zebulon</a> (Sunday, December 6 at 2:00 PM)</p>
<h5><span style="text-decoration:underline;"><em>Holiday Events &#38; Happenings:</em></span></h5>
<p><a href="http://apexnativity.org/">Apex Christmas Nativity Christmas Celebration</a></p>
<p><a href="http://www.godowntownraleigh.com/raleighwinterfest/index.htm">AT&#38;T Raleigh Winterfest</a></p>
<p><a href="http://www.townofcary.org/Departments/Parks__Recreation___Cultural_Resources/events/holiday/heartofholidays.htm">Cary: Heart of the Holidays Celebration</a></p>
<p><a href="http://www.visitraleigh.com/holiday/">City of Raleigh – Numerous Holiday Events!!!</a></p>
<p><a href="http://www.historicoakwood.org/candlelighttour2009.php">Historic Oakwood Candlelight Tour</a></p>
<p><a href="http://www.apexchamber.com/documents/NewMicrosoftOfficePublisherDocument_000.pdf">Holiday Festivities on Salem Street in Apex</a></p>
<p><a href="http://knightdalechamber.chambermaster.com/directory/jsp/events/EventPage.jsp?ccid=277&#38;eventid=2115&#38;qs=ccid=277&#124;visibility=2&#124;context=month">Knightdale Christmas Tree Lighting</a></p>
<p><a href="http://www.garnerparks.org/SpecialEvents/ChristmasinGarner/tabid/151/Default.aspx">Light Up Main in Garner</a></p>
<p><a href="http://www.ci.rolesville.nc.us/events/default.htm">Rolesville: The Lighting of the Town Christmas Tree</a></p>
<p><a href="http://www.zebulonchamber.org/events_calendaritem.asp?id=552">Zebulon: Children&#8217;s Gift Shop at Sycamore Crossing Gifts</a></p>
<h5><span style="text-decoration:underline;"><em>Area Shopping Holiday Events:</em></span></h5>
<p><a href="http://www.shopcarytownecentermall.com/shop/carytowne.nsf/holiday_santa">Cary Towne Center</a></p>
<p><a href="http://www.northhillsraleigh.com/news/events/?p=685">Christmas at North Hills</a></p>
<p><a href="http://www.crabtree-valley-mall.com/events.cfm">Crabtree Valley Mall</a></p>
<p><a href="http://www.streetsatsouthpoint.com/events">Streets at SouthPoint</a></p>
<p><a href="http://www.triangletowncenter.com/shop/triangle.nsf/holiday_santa">Triangle Town Center</a></p>
<h5><span style="text-decoration:underline;"><em>Volunteer Opportunities:</em></span></h5>
<p>It’s never too late to start a new tradition. Here is a list of organizations looking for help this Holiday season.</p>
<p><strong><span style="text-decoration:underline;">Western Wake Crisis Ministry</span></strong><br />
<a href="http://www.wwcm.org/HolidayPrograms/HolidayFoodProgram/tabid/75/Default.aspx" target="_self"></a><a href="http://www.wwcm.org/HolidayPrograms/ChristmasToyProgram/tabid/74/Default.aspx">Christmas Toy Program</a></p>
<p><strong><span style="text-decoration:underline;">Thank you cards for our Troops in Iraq<br />
</span></strong>If you go to <a href="http://www.letssaythanks.com/" target="_self">LetsSayThanks.com </a>you can pick out a thank you card and Xerox will print it and it will be sent to a soldier that is currently serving in Iraq.<br />
<strong><span style="text-decoration:underline;"><br />
<a href="http://raleigh-nc.toysfortots.org/local-coordinator-sites/lco-sites/donate-toys.asp">Toys for Tots 2009</a><br />
</span></strong>Supported by the U.S. Marines, this program collects new un-wrapped toys to distribute to needy children while bringing a message of hope.</p>
<p><a href="http://helpangeltree.org/index.jsp" target="_self"><strong>Angel Tree Toy Program</strong></a><br />
A program developed to bring Christmas gifts to children whose parents are in prison.</p>
<p><strong><a href="http://www.foodbankcenc.org/site/PageServer?pagename=FBCENCHome">NC Food Bank</a></strong><br />
No food donation is too small. Click on link above for more information.</p>
<p>And from all of us at Linda Trevor and Company, we wish you a Merry Christmas and a Happy New Year!!</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
