Sunday, April 22, 2012

Using Oracle Views with Mapguide / FDO

Using views in Oracle is a good way to access data via Mapguide/FDO,
but in order to be able to select a feature, it must have a primary key,
otherwise, selection will fail.

This is the SQL syntax to add a primary key on an Oracle View
alter view add constraint primary key () disable novalidate;

Once the view has a primary key, selection becomes available.

Bruno

From the Mapguide Users Mailing list

Friday, April 20, 2012

Performance Tip for Mapguide Tiled layers with Fusion

Internally, Fusion uses OpenLayers to display maps. By default, titled maps use a buffer factor of 2

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Grid-js.html#OpenLayers.Layer.Grid.buffer

This buffer setting determines how many off screen tiles are loaded, you can tweak this option using the following syntax in your ApplicationDefinition.xml

<Map>
               <Type>MapGuide</Type>
                <SingleTile>false</SingleTile>
                <Extension>
                        <ResourceId>Library:// .....</ResourceId>
                        <Options>
                            <buffer>0</buffer>                               
                        </Options>                       
                </Extension>
</Map>

Setting buffer:0 means that only the initially visible tiles are loaded, which means as you pan, the tiles are loaded as required

Monday, April 09, 2012

Some Quick Carbon Pricing Info

Just a quick link to some important information for both Consumers and Business with regards to introduction of Carbon Pricing in Australia .

Carbon price claims – FAQs for business

BTW: The Australian tax free threshold rises to over $18k as of July 1, meaning one million low income earners no longer pay income tax.

Friday, December 02, 2011

Nexus S echo problem - a dead simple solution

The Nexus S can have a slightly annoying echo problem during calls.

It's really easy to fix, I'm kicking myself I didn't try this earlier...

  1. take the back off your phone
  2. grab some printer paper, (a slightly heavier weight is better)
  3. cut out a piece which is big enough to wrap around the battery
  4. fold this piece over three times
  5. place on top of the battery
  6. replace the cover
  7. enjoy!
I used the same trick with my N95 when the battery used to come loose


Saturday, October 01, 2011

There's so much Astroturfing Down Under, it's un-australian

Just a quick post, my friend Tom who is a passionate anti-pokies blogger and campaigner wrote a great piece
over on ABC's The Drum about how Poker machine reforms won't work? Don't bet on it

Reading his piece, I was reminded of this video which puts it all in perspective


Monday, August 01, 2011

How I got started in ColdFusion

Just a quick post, on today's Coldfusion meme - How I got started in ColdFusion

I first started with Coldfusion 2.0 back in 1996 whilst working in my first IT job
at a recruitment agency. I had been playing with assembler, basic, html and C on all sorts
of platforms from CP/M, SunOS, Linux and PC's.

I was tasked with developing a website for the company, to post available jobs and allow
candidates to upload resumes. I had started working with Perl, but soon was getting
annoyed at Perl as it wasn't a great solution for building websites.

One night I was at home, surfing on dialup and I found a link to Allaire Coldfusion 2.0
on a shareware website. It was amazing stuff compared to Perl. Wanna send an email,
wrap it in CFMAIL, wanna do a query, wrap the SQL in CFQUERY. I was sold.


After I left that company, I signed up for an Advanced Coldfusion course which turned
out to be more like a Coldfusion 101. I filled out the feedback form afterwards with some
pretty strong but expletive free language.

About a week later, the Australian Distributor for Allaire, called me up while I was at a friends
place and told me I had been given a full refund and the offered me the Job as the Australian
ColdFusion Trainer. I contemplated it for a while and decided I'd rather cut code and build
apps than train people.

I'm still using it all these years later! 

Update: I just remembered, Google even evaluated CF back in the day,
but didn't like the <CFELSE> tag coz you couldn't parse CFML with an XML parser...







Saturday, June 04, 2011

Tony Abbott supports a Carbon Tax!



Say Yes Rally 5 June 2011

Sydney: Prince Alfred Park, 11 am
Melb: Outside the State Library, 11 am
Adelaide: Victoria Square, 11 am
Brisbane: Riverstage, 1pm
Perth: Perth Cultural centre - Wetlands stage, 11am
Hobart: Franklin Square, 11am
Canberra: Regatta Point
(near the bridge), 1.30pm

Thursday, May 26, 2011

Coldfusion: Slow ImageResize problem SOLVED

Sometimes, the built in Coldfusion Image functions can take a very long time to resize a jpeg image, like 20-30 minutes.

This is caused by ICC colour profiles, which really should be supported by an Adobe Product.

The quick solution is to use Imagemagick to strip out the ICC colour profile.

It's also a good idea to force the RGB colour space, as CMYK is also not handled.

C:\Program Files (x86)\ImageMagick-6.7.0-Q16\convert.exe
src_with_icc_profile.jpeg -colorspace rgb +profile 'icc' icc_stripped.jpeg

You can also use identify.exe with the -verbose option to detect ICC profiles, although it is a bit slow, 2-3s.

Related Posts Widget for Blogs by LinkWithin