duckranger.com
  • About

Fancybox problems? Make sure you validate!

by Duck Ranger on January 18, 2012 · No Comments

Not-So-Easy Like Friday Morning

Creative Commons License photo credit: Or Hiltch

This took a whole day for me. Hopefully I can save you the pain. I added quite a few possible search terms here for maximum coverage, so the text may get a bit repetitive. I mean – when I tried to look for a solution, I didn’t even know what to look for – so I tried googling for every symptom I saw, to no avail.
The deal was this: my page has a very large …

Continue Reading →

Double Submit Prevention, Disabled buttons, Firefox and the Back Button

by Duck Ranger on January 9, 2012 · No Comments

Ainara portafotos

Creative Commons License photo credit: Mr. Theklan

Double submit is when a user submits a form on your web page twice (well, technically they can do it more than twice, but you can’t call it a double submit…)
It usually happens when your user double-clicks your Submit button instead of clicking it, but may also happen in two other popular scenarios: your buttons do not provide the user with a visual feedback of being clicked (e.g. when you use an image as your …

Continue Reading →

Dynamically select a database with CakePHP 1.3

by Duck Ranger on December 16, 2011 · No Comments

phew,that bread gave me wind?

Creative Commons License photo credit: johnb/Derbys/uk

In one of my projects, I have several customers all served from the same CakePHP application. This is by no means unique, and is a very well understood pattern of maintaining co-exiting websites. In my set up, each of the customers has their own website, with their own data and design, but there is only one copy of the actual application behind all those websites. This is, of course, a fundamental attribute of selling SaaS.

From a …

Continue Reading →

Google appengine and maps tutorial with Java – Part III

by Duck Ranger on July 25, 2011 · 3 Comments

Cane en vol

Creative Commons License photo credit: Free114

If you followed part 2 of this tutorial, you have an appengine application that displays a Google map in your browser, and lets you click the map to add markers to it.
While extremely useful on long, cold Winter nights, you probably want more from your application. For example, you’d probably like to be able to save those markers somewhere, so you can share them with your users.
This part of the tutorial will focus on this …

Continue Reading →

Spring MVC 3.0 with STS Tutorial – Part I

by Duck Ranger on July 21, 2011 · 8 Comments

Leadership

Creative Commons License photo credit: pedrosimoes7

In this part, I’ll show how to get started with STS (SpringSource Tool Suite) and Spring MVC. We’ll only use the default project that STS generates, but it’s a good start to any development effort with Spring MVC you might get into.
STS is the easiest IDE to use when developing Spring, mainly because it bundles together almost everything you need to get started, and knows where to get the rest.
If you don’t have STS installed, …

Continue Reading →

Google appengine and maps tutorial with Java – Part II

by Duck Ranger on June 14, 2011 · 1 Comment

The ugly duckling

Creative Commons License photo credit: pasma

Google’s appengine is the Google cloud offering. It is highly scalable, and provides a free entry level cloud application platform. However, it is not very trivial to develop for and deploy on.
Google maps API version 3 is the current (June 2011) officially supported version of integrating with Google maps. The API allows you to display and manipulate maps in may ways.

The full tutorial provides an introduction to developing and deploying a simple maps application to …

Continue Reading →

Google appengine and maps tutorial with Java – Part I

by Duck Ranger on June 13, 2011 · No Comments

03/365 Splishy splashy *Explored*

Creative Commons License photo credit: -mrsraggle-

Google’s appengine is the Google cloud offering. It is highly scalable, and provides a free entry level cloud application platform. However, it is not very trivial to develop for and deploy on.
Google maps API version 3 is the current (June 2011) officially supported version of integrating with Google maps. The API allows you to display and manipulate maps in many ways.

The full tutorial provides an introduction to developing and deploying a simple maps application to …

Continue Reading →

Android login with actionGo

by Duck Ranger on June 7, 2011 · 1 Comment

Disney - Three Caballero Donald Duck (Explored)

Creative Commons License photo credit: Express Monorail

Coding a login screen is pretty simple in Android, and there’s quite extensive documentation on how to do screen development. However, there’s one neat little trick I wanted to use: the ‘next’ and ‘go’ buttons on the soft keyboard. These buttons are actions that let you move automatically from the login text input to the password text input, and then from the password text input, you can ‘click the login button’.
This is documented, but it …

Continue Reading →

JAXB without a schema

by Duck Ranger on June 1, 2011 · 1 Comment

~ Duck Talk ~

Creative Commons License photo credit: ViaMoi

Working on a new project, I had a few chats to people and realized that many developers assume that to work with JAXB you need to have an XML schema.
This is not true. If you have the schema, go ahead and use it, but if you only have the XML files you want to parse, JAXB is perfectly capable of unmarshalling your XML into objects without the schema and the binding.
The only problem is – …

Continue Reading →

CakePHP: Keeping login information on error pages

by Duck Ranger on May 3, 2011 · 3 Comments

make way for ducklings

Creative Commons License photo credit: shoothead

This teknoid blog post describes an excellent method of refining Cake’s default error handling.
Quick reminder: by default, if your debug level is set to 0, cake will always redirect your user to the error404.ctp under app/views/errors).…

Continue Reading →
← Previous Entries
  • Recent Comments

    • Medovarszki: This post saved my hair from falling out but yeah, I beat my head against the wall now too :)
    • Shehryar: Probably the ebst spring web mvc tutorial I have read, explain everything in great detail. i loved it, this...
    • armand: You do not resize the image. You just display it smaller using html tag attributes. It would be nice to...
    • COTP: ** Just to clarify, in CakeErrorController.php (the copy in app/Controller/) public function beforeRender() {...
    • COTP: For CakePHP 2.0+, you can copy lib/Cake/Controller/CakeErrorC ontroller.php to app/Controller/CakeErrorCon...
  • Categories

    • Android (1)
    • appengine (3)
    • Be nice to your users (6)
    • CakePHP (13)
    • General (5)
    • Googlemaps (3)
    • Java (11)
    • javaScript (4)
    • jQuery (11)
    • Seam (2)
    • Security (4)
    • Spring MVC (1)
    • Spring Webflow (2)
    • User Interface (5)
    • Wordpress (2)
  • Most popular

    1. 100% FullCalendar and CakePHP part 2 - Create events source
    2. 90% FullCalendar and CakePHP part 1 - Set Up
    3. 70% FullCalendar and CakePHP part 3 - Adding Events
    4. 57% How to submit a form with an image in CakePHP
    5. 55% FullCalendar and CakePHP part 4 - Editing Events
  • Archives

    • January 2012 (2)
    • December 2011 (1)
    • July 2011 (2)
    • June 2011 (4)
    • May 2011 (1)
    • December 2010 (3)
    • November 2010 (1)
    • August 2010 (2)
    • July 2010 (2)
    • June 2010 (4)
    • May 2010 (4)
    • April 2010 (5)
    • March 2010 (3)

duckranger.com

Pages

  • About

The Latest

  • Fancybox problems? Make sure you validate!
    photo credit: Or Hiltch This took a whole day for me. Hopefully […]

More

RSS?.
© 2010 duckranger.com
Platform by PageLines