Wednesday, July 25, 2012

Google Maps API multiple markers and infowindows

I was having trouble with binding InfoWindows to markers. No matter which marker was clicked, the InfoWindow for the last marker to be created was displayed.  I found the answer to the problem here:
http://stackoverflow.com/questions/2357323/trying-to-bind-multiple-infowindows-to-multiple-markers-on-a-lgoogle-map-and-fail

Simply creating a separate function to add the event listener solved the problem.

Wednesday, July 18, 2012

January Drupal frustration solved.

I posted on January 16 about problems integrating Drupal 7 with an external website. I had to set it aside and work on other things until this week. I finally located the cause of the problem today. As are most time-consuming problems, this had a simple solution. I just had to step away from it long enough to reset, then look through the code with a fresh outlook.

The culprit in this case was running the Drupal login function targeted at http://www.mydomain.com, but then trying to retrieve the Drupal node from http://mydomain.com. Since the domain didn't match, my session auth failed.

Sunday, May 27, 2012

Quotes from James Dyson

I recently read an interview with Sir James Dyson. There were two quotes from him in it that really struck a chord with me.

"I don't care how long things take. Failure is to be celebrated - that is how we learn ... We invest in and rejoice in failure, and we stick at it. I learned from each of my mistakes. That's how I came up with a solution."

Many people think I am a perfectionist, but I don't see myself that way. Things must be as good as possible - but that doesn't require perfection at stage one. This quote states my thoughts about software development and programming very well:

"'Perfect' is in fact the completely wrong word to use. You start with a goal and you make the best possible version you can make at that moment. You give the customer the best available at that moment, and then you set another goal and start working on it again." 

He may invent and engineer vacuums and other mechanical devices, but his words make good sense for software architecture as well.




Wednesday, May 16, 2012

JavaScript references

I just found Chris Shiflett's April 26 posting with a great list of references for JavaScript. The first one I have started reading is "JavaScript for PHP Developers" by Stoyan Stefanov. It is one of the most clear and concise descriptions I have found to date as I try to apply my knowledge of other programming languages to JavaScript.

Thursday, April 19, 2012

Avian neighbors

I was able to telecommute today. The weather was perfect and the birds were active. I kept the window open and enjoyed the fresh air and bird songs drifting in.

I kept my camera by my computer and got a few photos of my avian neighbors on the feeder outside my window and in the tree.





Saturday, April 7, 2012

Opinions

Thought for the day: "Opinions have caused more ills than the plague or earthquakes on this little globe of ours." - François-Marie Arouet de Voltaire, 1694 – 1778.

How true.  One of the things I enjoy about writing software is that it involves solely logic and math, in a highly creative manner.

The effectiveness of a UI is certainly subject to opinion, and the methodology used in coding could be debated as well. However, the inner workings of a program are immune to such problems. It either works, or it doesn't.

My work, in a way, is an escape from the pressures of society, in which ignorant prejudices frequently trump reality.