<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Postgres OnLine Journal - application development</title>
    <link>http://www.postgresonline.com/journal/</link>
    <description>an In depth look at the PostgreSQL open source database</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 15 Feb 2013 04:37:09 GMT</pubDate>

    <image>
        <url>http://www.postgresonline.com/journal/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Postgres OnLine Journal - application development - an In depth look at the PostgreSQL open source database</title>
        <link>http://www.postgresonline.com/journal/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Saying Happy Valentine in PostGIS</title>
    <link>http://www.postgresonline.com/journal/archives/293-Saying-Happy-Valentine-in-PostGIS.html</link>
            <category>advanced</category>
            <category>application development</category>
            <category>cte</category>
            <category>postgis</category>
            <category>window functions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/293-Saying-Happy-Valentine-in-PostGIS.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=293</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=293</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;A while back I mentioned to Bborie (aka dustymugs) and Sandro (aka strk): &lt;em&gt;We&#039;re missing ability to label our images with text. 
Picture this: What if someone has got a road or a parcel of land and they want to stamp
the parcel id or the road name on it and they don&#039;t want to have to depend on some piece of mapping software.&lt;/em&gt;  Many report writers and databases can talk to each other directly 
such as we demonstrated in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/244-Rendering-PostGIS-Raster-graphics-with-LibreOffice-Base-Reports.html&quot; target=&quot;_blank&quot;&gt;Rendering PostGIS raster graphics with LibreOffice&lt;/a&gt;
and we&#039;ve got raster functionality in the database already. Can we cut out the middleman?
Some ideas came to mind. One we could embed a font lib into PostGIS thus having the ultimate bloatware minus the built-in coffee maker.  
&lt;em&gt;strk screeched&lt;/em&gt;. He&#039;s still recovering from my constant demands of having him upgrade his PostgreSQL version.  Okay fair enough. &lt;/p&gt;
&lt;p&gt;Bborie suggested &lt;em&gt;why don&#039;t you import your letters as rasters and then vectorize them&lt;/em&gt;.  So that&#039;s exactly what we are going to demonstrate in this article
and in doing so we will combine some of the new features coming in PostGIS 2.1 we&#039;ve been talking about in &lt;a href=&quot;http://www.bostongis.com/blog/index.php?/categories/21-waiting_postgis_21&quot; target=&quot;_blank&quot;&gt;Waiting for PostGIS 2.1 series&lt;/a&gt;.&lt;/p&gt;
&lt;div style=&#039;background-color:yellow&#039;&gt;Warning this article will have a hint of &lt;a href=&quot;http://www.rubegoldberg.com/&quot; target=&quot;_blank&quot;&gt;Rube Goldbergishness&lt;/a&gt; in it.
If you are easily offended by seeing stupid tricks done with SQL, stop reading now.
We are going to take a natural vector product and rasterize it just so 
we can vectorize it again so we can then rasterize it again.  Don&#039;t think about it too much.  It may trigger activity in parts of your brain you didn&#039;t know were there
thus resulting in stabbing pains similar to what you experience by quickly guplping down a handful of Wasabi peas.&lt;/div&gt; 
So here are the steps for creating your own font set you can 
overlay on your geometries and rasters.&lt;/p&gt;
&lt;p&gt;See if you can spot the use of window functions and CTEs in these examples.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/293-Saying-Happy-Valentine-in-PostGIS.html#extended&quot;&gt;Continue reading &quot;Saying Happy Valentine in PostGIS&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 14 Feb 2013 02:44:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/293-guid.html</guid>
    <category>ansi sql</category>
<category>common table expressions</category>
<category>row_number</category>
<category>window functions</category>

</item>
<item>
    <title>Creating GeoJSON Feature Collections with JSON and PostGIS functions</title>
    <link>http://www.postgresonline.com/journal/archives/267-Creating-GeoJSON-Feature-Collections-with-JSON-and-PostGIS-functions.html</link>
            <category>9.2</category>
            <category>application development</category>
            <category>json</category>
            <category>postgis</category>
            <category>postgresql versions</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/267-Creating-GeoJSON-Feature-Collections-with-JSON-and-PostGIS-functions.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=267</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=267</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;If you do a lot of web-based GIS applications, a common desire is to allow a user to 
draw out an area on the map and then do searches against that area and return back a FeatureCollection
where each feature is composed of a geometry and attributes about that feature. In the past the format
was GML or KML, but the world seems to be moving to prefer JSON/GeoJSON.  Normally you&#039;d throw
a mapping server that talks Web Feature Service 
, do more or less with a webscripting glue, or use a Webservice
such as &lt;a href=&quot;http://cartodb.com/maps&quot; target=&quot;_blank&quot;&gt;CartoDb&lt;/a&gt; that lets you pass along raw SQL.&lt;/p&gt;
&lt;p&gt;In this article we&#039;ll demonstrate how to build GeoJSON feature collections that can be consumed by web mapping apps.
 using
the built in JSON functions in PostgreSQL 9.2 and some PostGIS hugging.  
Even if you
don&#039;t use PostGIS, we hope you&#039;ll come away with some techniques for working with 
PostgreSQL extended types and also how to morph relational data into JSON buckets.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/267-Creating-GeoJSON-Feature-Collections-with-JSON-and-PostGIS-functions.html#extended&quot;&gt;Continue reading &quot;Creating GeoJSON Feature Collections with JSON and PostGIS functions&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 24 Aug 2012 02:55:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/267-guid.html</guid>
    <category>geojson</category>
<category>json</category>
<category>plv8</category>
<category>postgis</category>
<category>postgresql 9.2</category>

</item>
<item>
    <title>PLV8JS and PLCoffee Part 2B: PHP JQuery App</title>
    <link>http://www.postgresonline.com/journal/archives/264-PLV8JS-and-PLCoffee-Part-2B-PHP-JQuery-App.html</link>
            <category>application development</category>
            <category>intermediate</category>
    
    <comments>http://www.postgresonline.com/journal/archives/264-PLV8JS-and-PLCoffee-Part-2B-PHP-JQuery-App.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=264</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=264</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;In our last article, &lt;a href=&quot;http://www.postgresonline.com/journal/archives/263-PLV8JS-and-PLCoffee-Part-2-JSON-search-requests.html&quot; target=&quot;_blank&quot;&gt;PL/V8JS and PL/Coffee JSON search requests&lt;/a&gt;
we demonstrated how to create a PostgreSQL PL/Javascript stored function that takes as input, a json wrapped search request. We generated the search request using PostgreSQL.
As mentioned, in practice, the json search request would be generated by a client side javascript API such as &lt;a href=&quot;http://jquery.org/&quot; target=&quot;_blank&quot;&gt;JQuery&lt;/a&gt;.  This time we&#039;ll put our stored function to use in  a real web app built using
PHP and JQuery.  The PHP part is fairly minimalistic just involving a call to the database and return a single row back.  Normally we use a database abstraction layer such as ADODB or PearDB, but this is so 
simple that we are just going to use the raw PHP PostgreSQL connection library directly.  This example requires PHP 5.1+ since it uses the &lt;a href=&quot;http://php.net/manual/en/function.pg-query-params.php&quot; target=&quot;_blank&quot;&gt;pg_query_param&lt;/a&gt; function introduced in PHP 5.1.
Most of the work is happening in the JQuery client side tier and the database part we already saw. That said the PHP part is fairly trivial to swap out with something like
ASP.NET and most other web server side languages.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/264-PLV8JS-and-PLCoffee-Part-2B-PHP-JQuery-App.html#extended&quot;&gt;Continue reading &quot;PLV8JS and PLCoffee Part 2B: PHP JQuery App&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 10 Aug 2012 13:32:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/264-guid.html</guid>
    <category>jquery</category>
<category>pljavascript</category>
<category>plv8</category>
<category>postgresql 9.2</category>

</item>
<item>
    <title>Rendering PostGIS Raster graphics with LibreOffice Base Reports</title>
    <link>http://www.postgresonline.com/journal/archives/244-Rendering-PostGIS-Raster-graphics-with-LibreOffice-Base-Reports.html</link>
            <category>application development</category>
            <category>intermediate</category>
            <category>oobase</category>
            <category>postgis</category>
    
    <comments>http://www.postgresonline.com/journal/archives/244-Rendering-PostGIS-Raster-graphics-with-LibreOffice-Base-Reports.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=244</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=244</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;I was excited to learn from Pasha Golub&#039;s blog &lt;a href=&quot;http://pgolub.wordpress.com/2012/02/15/libreoffice-announces-native-support-for-postgresql&quot;&gt;LibreOffice Base 3.5 now comes packaged with native PostgreSQL driver&lt;/a&gt; so no separate configuration is required.
The connection string syntax follows the old SBC native driver of prior OpenOffice versions we itemized in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/8-Using-OpenOffice-Base-2.3.1-with-PostgreSQL.html&quot;&gt;Using OpenOffice Base with PostgeSQL&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What I really wanted to do with it is experiment with its graphical rendering capabilities.  As discussed in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/243-PSQL-needs-a-better-way-of-outputting-bytea-to-binary-files.html&quot; target=&quot;_blank&quot;&gt;PSQL needs a better way of outputting bytea&lt;/a&gt;
one of the frequently asked questions on the PostGIS list by folks using the new not yet officially released (alpha5 recently released) functionality in &lt;a href=&quot;http://www.postgis.org/documentation/manual-svn/&quot;  target=&quot;blank&quot;&gt;PostGIS 2.0&lt;/a&gt; is how to render rasters 
with common variety tools.  I suspected Base was a capable option, but had never tested it to confirm.  Since I was installing new LibreOffice 3.5, I thought this might be a good test of its metal.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/244-Rendering-PostGIS-Raster-graphics-with-LibreOffice-Base-Reports.html#extended&quot;&gt;Continue reading &quot;Rendering PostGIS Raster graphics with LibreOffice Base Reports&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 17 Feb 2012 18:21:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/244-guid.html</guid>
    <category>libre office</category>
<category>oobase</category>
<category>openoffice</category>

</item>
<item>
    <title>PostGIS as a graphical engine</title>
    <link>http://www.postgresonline.com/journal/archives/218-PostGIS-as-a-graphical-engine.html</link>
            <category>application development</category>
            <category>gis</category>
            <category>postgis</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/218-PostGIS-as-a-graphical-engine.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=218</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=218</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;A while back in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/208-New-Additions-and-Promotions-in-PostGIS-Development-Team.html&quot; target=&quot;_blank&quot;&gt;New Additions and Promotions in PostGIS Development Team&lt;/a&gt;, I mentioned that the new addition to our team Bborie Park was working on image output functions for raster support, among other things.  His last addition was ST_AsRaster which allows a PostGIS geometry to cross the line to the raster world, all in the database.  This new addition almost completes the basic cycle of making PostGIS not only a spatial analytical tool, but also a rendering engine.&lt;/p&gt;

&lt;p&gt;To test out these new functions, I whipped up a quick ASP.NET/JQuery app as described in &lt;a href=&quot;http://www.bostongis.com/blog/index.php?/archives/174-Minimalist-Web-based-ASP.NET-PostGIS-2.0-Spatial-GeometryRaster-Viewer.html&quot; target=&quot;_blank&quot;&gt;Minimalist Web-based ASP.NET PostGIS 2.0 Spatial Geometry/Raster Viewer&lt;/a&gt;, and Bborie followed up with the PHP version which you can download from &lt;a href=&quot;http://www.postgis.us/downloads/postgis_webviewer_php.zip&quot; target=&quot;_blank&quot;&gt;http://www.postgis.us/downloads/postgis_webviewer_php.zip&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There is still much room for improvement, e.g. intersection of 2 rasters, faster response, etc,  but I can see all the lights flickering and the connections coming together like a self-orchestrating organism.  From chaos comes order.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 26 Aug 2011 18:50:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/218-guid.html</guid>
    <category>postgis raster viewer</category>

</item>
<item>
    <title>Explain Plans PostgreSQL 9.0 - Part 2: JSON and JQuery Plan Viewer</title>
    <link>http://www.postgresonline.com/journal/archives/174-Explain-Plans-PostgreSQL-9.0-Part-2-JSON-and-JQuery-Plan-Viewer.html</link>
            <category>9.0</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>jquery</category>
            <category>pgadmin</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/174-Explain-Plans-PostgreSQL-9.0-Part-2-JSON-and-JQuery-Plan-Viewer.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=174</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=174</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;In &lt;a href=&quot;http://www.postgresonline.com/journal/archives/171-pgexplain90formats_part1.html&quot; target=&quot;_blank&quot;&gt;part 1 of this series&lt;/a&gt; on PostgreSQL 9.0 planner outputs, we demonstrated how to render explain plans in YAML, JSON, and XML using the new explain features in PostgreSQL 9.0. In this second part,
we&#039;ll demonstrate how to build a user interface that allows you input a JSON formatted explain plan and have it render into a printable, navigateable display using JQuery, javascript and a little bit of HTML coding.  
In part 3 we&#039;ll do something similar using XML and XSLT programming.
&lt;/p&gt;
&lt;p&gt;For those who aren&#039;t familiar with JQuery, it is an MIT licensed javascript library that is fairly light weight and allows you to inspect and change html elements with fairly intuitive syntax, has some nice ajax methods and tools for converting xml/json to native objects that can be manipulated. 
You can check it out at &lt;a href=&quot;http://jquery.com/&quot; target=&quot;_blank&quot;&gt;JQUERY&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We are not experts in JQuery, but from what we have used of it, we really like it and the fact the base package is MIT licensed, fairly light weight and lots of plugins available for it are real pluses.&lt;/p&gt;


&lt;p&gt;The most difficult thing I think most people find about reading explain plans is that they are upside down; it starts with a conclusion and backtracks how to arrive at it.  Humans by nature think about planning steps from start to finish.
In order to make an explain plan understandable to mere mortals, we generally display them upside down or having the child-nodes shown left most.  We shall follow that approach.&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/174-Explain-Plans-PostgreSQL-9.0-Part-2-JSON-and-JQuery-Plan-Viewer.html#extended&quot;&gt;Continue reading &quot;Explain Plans PostgreSQL 9.0 - Part 2: JSON and JQuery Plan Viewer&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 26 Aug 2010 04:13:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/174-guid.html</guid>
    <category>explain plan</category>
<category>imagemagick</category>
<category>jquery</category>
<category>json</category>
<category>pgadmin</category>
<category>postgresql 9.0</category>

</item>
<item>
    <title>Loading and Processing GPX XML files  using PostgreSQL</title>
    <link>http://www.postgresonline.com/journal/archives/116-Loading-and-Processing-GPX-XML-files-using-PostgreSQL.html</link>
            <category>8.3</category>
            <category>8.4</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>oracle</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/116-Loading-and-Processing-GPX-XML-files-using-PostgreSQL.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=116</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=116</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;&lt;a href=&quot;http://www.spatialdbadvisor.com/biography&quot; target=&quot;_blank&quot;&gt;Simon Greener&lt;/a&gt;, wrote an article on &lt;a href=&quot;http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/119/loading-and-processing-gpx-11-files-using-oracle-xmldb&quot; target=&quot;_blank&quot;&gt;how to load GPX xml files into Oracle XMLDB&lt;/a&gt;.  That
got me thinking that I haven&#039;t really explored all the XML features that PostgreSQL has to offer
and to some extent I&#039;ve been reticent about XML processed in any database for that matter. &lt;/p&gt;
&lt;p&gt;In this article we shall attempt to perform the same feats that Simon did, but with PostgreSQL instead of
Oracle XMLDB.  Note while we are demonstrating this with a GPX file, the same XPath approach can be used to process any XML file.
&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/116-Loading-and-Processing-GPX-XML-files-using-PostgreSQL.html#extended&quot;&gt;Continue reading &quot;Loading and Processing GPX XML files  using PostgreSQL&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 29 Apr 2009 00:28:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/116-guid.html</guid>
    <category>xml</category>
<category>xpath</category>

</item>
<item>
    <title>Fusion Charts and PostgreSQL Part 3: PHP Dashboard</title>
    <link>http://www.postgresonline.com/journal/archives/95-Fusion-Charts-and-PostgreSQL-Part-3-PHP-Dashboard.html</link>
            <category>8.2</category>
            <category>8.3</category>
            <category>8.4</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>usda</category>
    
    <comments>http://www.postgresonline.com/journal/archives/95-Fusion-Charts-and-PostgreSQL-Part-3-PHP-Dashboard.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=95</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=95</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
     &lt;p&gt;In the first part of this series &lt;a href=&quot;http://www.postgresonline.com/journal/archives/88-Fusion-Charts-and-PostgreSQL-Part-1-Database-Analysis-of-USDA-DB.html&quot;&gt;Fusion Charts and PostgreSQL Part 1: Database Analysis of USDA DB&lt;/a&gt; in our November/December 2008 issue, we did
some back-seat analysis of a database we had never seen before and formulated some thoughts of things that would be useful to
see in a dashboard as well as starting to develop some views to support our Dashboard. In the second part of our Fusion Charts series, 
we covered creating a &lt;a href=&quot;http://www.postgresonline.com/journal/archives/92-Fusion-Charts-and-PostgreSQL-Part-2-ASP.NET-Dashboard.html&quot; target=&quot;_blank&quot;&gt;Dashboard application in ASP.NET that demonstrated both VB.NET and C# variants&lt;/a&gt; using the database we loaded and prepped in Part 1.
&lt;/p&gt;
&lt;p&gt;In this part three of our series, we shall conclude by demonstrating the same application we did in ASP.NET in PHP.&lt;/p&gt;

&lt;P&gt;We are going to create a simple dashboard that has the following features: &lt;/P&gt;

&lt;OL&gt;&lt;LI&gt;A drop-down list to allow the user to pick the kind of chart to display the data in (Bar, column, funnel etc)&lt;/LI&gt;
	&lt;LI&gt;A drop-down list that allows the user to pick the metric to explore -- e.g. Cholestrol, Vitamin K, Caffeine etc.&lt;/LI&gt;
	&lt;LI&gt;2 charts -- one chart showing the top 5 food groups for our metric and another showing the top 5 foods for our metric&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Our final product will look like this: &lt;/P&gt;
&lt;img src=&quot;/images/journal/fcharts_dashboard.png&quot; alt=&quot;Fusion Charts Dashboard&quot; /&gt;

&lt;p&gt;You can see the app in action - &lt;a href=&quot;/demos/FCharts/view_charts.php&quot; target=&quot;_blank&quot;&gt;USDA Food Stats&lt;/a&gt; and discover some interesting things about the food you eat or were considering eating.&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/95-Fusion-Charts-and-PostgreSQL-Part-3-PHP-Dashboard.html#extended&quot;&gt;Continue reading &quot;Fusion Charts and PostgreSQL Part 3: PHP Dashboard&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 03 Jan 2009 15:19:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/95-guid.html</guid>
    
</item>
<item>
    <title>Fusion Charts and PostgreSQL Part 2: ASP.NET Dashboard</title>
    <link>http://www.postgresonline.com/journal/archives/92-Fusion-Charts-and-PostgreSQL-Part-2-ASP.NET-Dashboard.html</link>
            <category>8.2</category>
            <category>8.3</category>
            <category>8.4</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>mono .NET</category>
            <category>usda</category>
    
    <comments>http://www.postgresonline.com/journal/archives/92-Fusion-Charts-and-PostgreSQL-Part-2-ASP.NET-Dashboard.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=92</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=92</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;In the first part of this series &lt;a href=&quot;http://www.postgresonline.com/journal/archives/88-Fusion-Charts-and-PostgreSQL-Part-1-Database-Analysis-USDA-DB.html&quot;&gt;Fusion Charts and PostgreSQL Part 1: Database Analysis of USDA DB&lt;/a&gt; in our November/December 2008 issue, we did
some back-seat analysis of a database we had never seen before and formulated some thoughts of things that would be useful to
see in a dashboard as well as starting to develop some views to support our Dashboard.
&lt;/p&gt;
&lt;p&gt;In this part, we start the fun off by building an ASP.NET app in both VB and C#. In the next part of
this series, we shall perform the same feat with PHP.&lt;/p&gt;

&lt;P&gt;We are going to create a simple dashboard that has the following features: &lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;A drop downlist to allow the user to pick the kind of chart to display the data in (Bar, column, funnel etc)&lt;/LI&gt;
	&lt;LI&gt;A drop downlist that allows the user to pick the metric to explore -- e.g. Cholestrol, Vitamin K, Caffeine etc.&lt;/LI&gt;
	&lt;LI&gt;2 charts -- one chart showing the top 5 food groups for our metric and another showing the top 5 foods for our metric&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Our final product will look like this: &lt;/P&gt;
&lt;img src=&quot;/images/journal/fcharts_dashboard.png&quot; alt=&quot;Fusion Charts Dashboard&quot; /&gt;

&lt;p&gt;You can see the app in action - &lt;a href=&quot;/demos/FCharts/ViewChartsCS.aspx&quot; target=&quot;_blank&quot;&gt;USDA Food Stats&lt;/a&gt; and discover some interesting things about the food you eat or were considering eating.&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/92-Fusion-Charts-and-PostgreSQL-Part-2-ASP.NET-Dashboard.html#extended&quot;&gt;Continue reading &quot;Fusion Charts and PostgreSQL Part 2: ASP.NET Dashboard&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 19 Dec 2008 17:19:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/92-guid.html</guid>
    
</item>
<item>
    <title>Fusion Charts and PostgreSQL Part 1: Database Analysis of USDA DB</title>
    <link>http://www.postgresonline.com/journal/archives/88-Fusion-Charts-and-PostgreSQL-Part-1-Database-Analysis-of-USDA-DB.html</link>
            <category>application development</category>
            <category>beginner</category>
            <category>demo dbs</category>
            <category>oobase</category>
            <category>usda</category>
    
    <comments>http://www.postgresonline.com/journal/archives/88-Fusion-Charts-and-PostgreSQL-Part-1-Database-Analysis-of-USDA-DB.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=88</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=88</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;In our Product Showcase section of this issue, we introduced Fusion Charts which is a flash-based
charting product that makes beautiful flash charts.  It comes in both a free and a non-free more bells and whistles
version. &lt;/p&gt;

&lt;p&gt;In this 3-part series article we shall demonstrate using this with a PostgreSQL database, building a simple dashboard
with ASP.NET and PHP.  We shall demonstrate both C# and VB.NET both using the PostgreSQL NPGSQL driver.&lt;/p&gt;

&lt;p&gt;For this first part we shall simply load the database, do a quick analysis of what we&#039;ve got to report on and create some views to help
us with our PHP and ASP.NET apps that will follow in parts 2 and 3.&lt;/p&gt;

&lt;p&gt;We will be testing this on 8.3, but since the database is an old one, it should work just fine on older versions of 
PostgreSQL.  We&#039;ll try to refrain from using new features of PostgreSQL.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/88-Fusion-Charts-and-PostgreSQL-Part-1-Database-Analysis-of-USDA-DB.html#extended&quot;&gt;Continue reading &quot;Fusion Charts and PostgreSQL Part 1: Database Analysis of USDA DB&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 16 Dec 2008 14:33:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/88-guid.html</guid>
    
</item>
<item>
    <title>REST in PostgreSQL Part 3 B - The REST Client in Adobe Flex 3 with Paging</title>
    <link>http://www.postgresonline.com/journal/archives/52-REST-in-PostgreSQL-Part-3-B-The-REST-Client-in-Adobe-Flex-3-with-Paging.html</link>
            <category>adobe flex</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>pagila</category>
            <category>tsearch</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/52-REST-in-PostgreSQL-Part-3-B-The-REST-Client-in-Adobe-Flex-3-with-Paging.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=52</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=52</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;P&gt;In prior articles of this series, we covered the following:
&lt;OL&gt;&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/32-Showcasing-REST-in-PostgreSQL---The-PreQuel.html&quot; target=_blank&gt;Showcasing REST in PostgreSQL - The PreQuel&lt;/a&gt; we went over what REST is and isn&#039;t&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html&quot; target=_blank&gt;REST in PostgreSQL Part 1 - The DB components&lt;/a&gt; we loaded the Pagila database and created a db plpgsql search function to support our rest server service&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html&quot; target=_blank&gt;REST in PostgreSQL Part 2 A - The REST Server service with ASP.NET&lt;/a&gt; we demonstrated a REST web service using Mono.NET, MS.NET both in C#, VB.Net/Monobasic&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html&quot; target=_blank&gt;REST in PostgreSQL Part 2 B - The REST Server service with PHP 5&lt;/a&gt; we demonstrated a REST web service using PHP 5&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/49-REST-in-PostgreSQL-Part-3-A---Simple-REST-Client-in-Adobe-Flex-3.html&quot; target=_blank&gt;REST in PostgreSQL Part 3 A - Simple REST Client in Adobe Flex 3&lt;/a&gt; we demonstrated a basic REST client in Adobe Flex&lt;/LI&gt;
&lt;/OL&gt;
&lt;/P&gt;

&lt;P&gt;In this article we shall continue where we left off by adding paging functionality to our Adobe Flex REST grid client.&lt;/P&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/52-REST-in-PostgreSQL-Part-3-B-The-REST-Client-in-Adobe-Flex-3-with-Paging.html#extended&quot;&gt;Continue reading &quot;REST in PostgreSQL Part 3 B - The REST Client in Adobe Flex 3 with Paging&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 19 May 2008 15:06:23 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/52-guid.html</guid>
    
</item>
<item>
    <title>REST in PostgreSQL Part 3 A - Simple REST Client in Adobe Flex 3</title>
    <link>http://www.postgresonline.com/journal/archives/49-REST-in-PostgreSQL-Part-3-A-Simple-REST-Client-in-Adobe-Flex-3.html</link>
            <category>adobe flex</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>mono .NET</category>
            <category>pagila</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/49-REST-in-PostgreSQL-Part-3-A-Simple-REST-Client-in-Adobe-Flex-3.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=49</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=49</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;P&gt;In prior articles of this series, we covered the following:
&lt;OL&gt;&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/32-Showcasing-REST-in-PostgreSQL---The-PreQuel.html&quot; target=_blank&gt;Showcasing REST in PostgreSQL - The PreQuel&lt;/a&gt; we went over what REST is and isn&#039;t&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html&quot; target=_blank&gt;REST in PostgreSQL Part 1 - The DB components&lt;/a&gt; we loaded the Pagila database and created a db plpgsql search function to support our rest server service&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html&quot; target=_blank&gt;REST in PostgreSQL Part 2 A - The REST Server service with ASP.NET&lt;/a&gt; we demonstrated a REST web service using Mono.NET, MS.NET both in C#, VB.Net/Monobasic&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html&quot; target=_blank&gt;REST in PostgreSQL Part 2 B - The REST Server service with PHP 5&lt;/a&gt; we demonstrated a REST web service using PHP 5&lt;/LI&gt;
&lt;/OL&gt;
&lt;/P&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/49-REST-in-PostgreSQL-Part-3-A-Simple-REST-Client-in-Adobe-Flex-3.html#extended&quot;&gt;Continue reading &quot;REST in PostgreSQL Part 3 A - Simple REST Client in Adobe Flex 3&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 07 May 2008 15:45:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/49-guid.html</guid>
    
</item>
<item>
    <title>REST in PostgreSQL Part 2 B - The REST Server service with PHP 5</title>
    <link>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html</link>
            <category>adodb</category>
            <category>application development</category>
            <category>intermediate</category>
            <category>pagila</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=42</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=42</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;P&gt;This is a continuation of our REST series.  The following topics have already been covered &lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/32-Showcasing-REST-in-PostgreSQL---The-PreQuel.html&quot; target=_blank&gt;Showcasing REST in PostgreSQL - The PreQuel&lt;/a&gt; we went over what REST is and isn&#039;t&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html&quot; target=_blank&gt;REST in PostgreSQL Part 1 - The DB components&lt;/a&gt; we loaded the Pagila database and created a db plpgsql search function that spits out XML to support our rest server service&lt;/LI&gt;
	&lt;LI&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html&quot; target=_blank&gt;REST in PostgreSQL Part 2 A - The REST Server service with ASP.NET&lt;/a&gt; we demonstrated a REST web service using Mono.NET, MS.NET both in C#, VB.Net/Monobasic&lt;/LI&gt;
&lt;/OL&gt;
&lt;br /&lt;br /&gt;
Now in this Part 2B series, we shall demonstrate the same REST server service using PHP 
&lt;/P&gt;

&lt;h4&gt;Setting up the PHP application&lt;/h4&gt;
&lt;OL&gt;
	&lt;LI&gt;
		&lt;P&gt;PHP already has the PostgreSQL drivers available as a .so (on Linux) or .dll on Windows.  For windows users if you
			are running PHP under IIS and in ISAPI mode, you will not be able to dynamically load libraries, so you need to enable &lt;b&gt;php_pgsql&lt;/b&gt; in your PHP.ini file.
		&lt;/P&gt;
	&lt;/LI&gt;
	&lt;LI&gt;We tend to keep it enabled regardless of which platform we are on since a lot of our PHP development involves PostgreSQL.   The extension is &lt;i&gt;php_pgsql&lt;/i&gt; in the php.ini file&lt;/LI&gt;
	&lt;LI&gt;PHP has numerous database abstraction libraries to choose from.  We are using the adodb abstraction library for PHP which can be downloaded from &lt;a href=&quot;http://adodb.sourceforge.net/&quot; target=_blank&gt;http://adodb.sourceforge.net/&lt;/a&gt;.
&lt;/OL&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#extended&quot;&gt;Continue reading &quot;REST in PostgreSQL Part 2 B - The REST Server service with PHP 5&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 09 Apr 2008 22:28:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/42-guid.html</guid>
    
</item>
<item>
    <title>REST in PostgreSQL Part 2 A - The REST Server service with ASP.NET</title>
    <link>http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html</link>
            <category>application development</category>
            <category>intermediate</category>
            <category>mono .NET</category>
            <category>pagila</category>
            <category>tsearch</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=37</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=37</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;h4&gt;Setting up the .NET application&lt;/h4&gt;
&lt;OL&gt;
	&lt;LI&gt;
		&lt;P&gt;Download the npgsql 1.01 driver from pgfoundary - 
		&lt;a href=&quot;http://pgfoundry.org/projects/npgsql&quot; target=_blank&gt;http://pgfoundry.org/projects/npgsql&lt;/a&gt;.
		For ASP.NET 2.0 you&#039;ll want - Npgsql1.0.1-bin-ms2.0.zip and for Mono.NET you&#039;ll want Npgsql1.0.1-bin-mono-2.0.zip.  Unzip and place the files in bin folder of your web app project.
		&lt;/P&gt;
	&lt;/LI&gt;
	&lt;LI&gt;Since we are just creating a simple REST web service and don&#039;t need any plumming of the standard SOAP like webservice, we will be using
	a .NET handler class (ashx) instead of an asmx. We have two versions listed below.  One for C# and one for VB.NET/Mono Basic&lt;/LI&gt;
&lt;/OL&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/37-REST-in-PostgreSQL-Part-2-A-The-REST-Server-service-with-ASP.NET.html#extended&quot;&gt;Continue reading &quot;REST in PostgreSQL Part 2 A - The REST Server service with ASP.NET&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 18 Mar 2008 22:33:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/37-guid.html</guid>
    
</item>
<item>
    <title>REST in PostgreSQL Part 1 - The DB components</title>
    <link>http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html</link>
            <category>application development</category>
            <category>intermediate</category>
            <category>pagila</category>
            <category>plpgsql</category>
            <category>tsearch</category>
            <category>webservices</category>
    
    <comments>http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=36</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=36</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;P&gt;In this section we&#039;ll go over creating the views and stored functions that our REST Server service will rely on.&lt;/P&gt;
&lt;P&gt;Our REST service will be a thin wrapper around a pgsql function that accepts film queries and returns results in XML.&lt;/P&gt;

&lt;h4&gt;Loading the database&lt;/h4&gt;
&lt;P&gt;&lt;b&gt;Step 1:&lt;/b&gt; Download the Pagila 0.10.0 database from 
&lt;a href=&quot;http://pgfoundry.org/frs/?group_id=1000150&amp;release_id=570&quot; target=&quot;_blank&quot;&gt;http://pgfoundry.org/frs/?group_id=1000150&amp;release_id=570&lt;/a&gt;
and load the Pagila database using the following commands: &lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt;For windows users - psql is usually located at &lt;em&gt;&quot;C:\Program Files\PostgreSQL\8.3\bin\psql&quot;&lt;/em&gt;&lt;br /&gt;
&lt;PRE&gt;
&lt;CODE&gt;
psql -h localhost -p 5433 -U postgres -c &quot;CREATE DATABASE pagila ENCODING &#039;UTF8&#039;&quot;
psql -h localhost -p 5433 -U postgres -c &quot;CREATE ROLE pagila_app LOGIN PASSWORD &#039;pg@123&#039;&quot;
psql -h localhost -p 5433 -U postgres -d pagila -f &quot;pagila-schema.sql&quot;
psql -h localhost -p 5433 -U postgres -d pagila -f &quot;pagila-data.sql&quot;
&lt;/CODE&gt;
&lt;/PRE&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html#extended&quot;&gt;Continue reading &quot;REST in PostgreSQL Part 1 - The DB components&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 16 Mar 2008 18:33:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/36-guid.html</guid>
    
</item>

</channel>
</rss>