Monday, January 18, 2016

What are Tag Management Systems, and why should developers care about them?

A Tag Management System, also known as a TMS is a web based tool, that cuts down on implementation time used for analytics/marketing tools.  The amount of time the develop can be saved actually grows based on the number of tools you use.  Each tool has different data requirements and even could have the same data requirements but in different formats.  Meaning that product "A" could require product revenue sent over including the "$", and product "B" could want the same piece of information without the "$".  TMS's allow the creation of a data layer's which then can be utilized to send the revenue using the same reference in the data layer, except product "A" will have the "$" in front of the token.

What is a data layer?

A data layer is the common object you build within the TMS to simplify your life as a developer. As long as the data is accessible via a CSS select, javascript variable or even javascript function then it can be pulled into the data layer using only the TMS to define the rule/rules for getting this data.

How does this save me time?

Making changing to the TMS/Data Layer do not require releases of code. So depending on your organizations time to market on releases this is where some time savings come from, besides the shared data layer.  

What about making sure I don't introduce bugs?

Most TMS tools allow you to enable to changes only in your lower environments before requiring approval to be promoted to production.  This will give you and your analytics team the ability to test all changes/additions and then publish this changes once the appropriate parties sign off.  Typically this can be weeks faster than waiting for code promotions to get into "the wild".

Wednesday, January 28, 2015

Brining the back-end to the front-end

The latest trend in web seems to be moving the back-end forward.  JavaScript frameworks like AngularJS and a new Service called Back&  are eliminating the back-end/middleware.  Taking the pieces of code that either interactive with databases or web services and moving them client side.  This of course with the help of templating frameworks such as Mustache and Handlebars to handle page layouts and changing markup.

This movement seems to not only be pushing the evolution of ECMA script but also the tools around building these applications npm, node, grunt, bower.

From my experience though, his trend though did not start within the last 2 or even 3 years, but 8 years ago with the release of Sencha's ExtJS Version 2.0.  ExtJS is a library/framework for building web applications, ExtJS has evolved quite a long way from version 2 to its current version 5 evolving into MVC framework and in its latest incarnation a MVVC framework.  The end result for these client side frameworks are that you work with web services and data (JSON, XML).

Moving the front-end/middleware forward though can be risky, you cant just move all your backend/middleware code to the front-end, there are some security concerns that can play into this.

For example if you never thought to secure your web service because it was only accessible on a private network by your web stack well you don't want to put the security itself into the front-end as it easily discovered by view the source of your javascript files.  This is were OAuth type authentication comes into place.  An authentication request is made to the OAuth server and if successful the response contains a token that is used in your web service requests and valid for a given period of time.

But with any luck this migration to the front-end will continue evolving and reduce the layers needs for creating complex websites, services and or applications.

Friday, October 3, 2014

MyFancyPrincess.com Ruins Halloween!!

Steer clear of MyFancyPrincess.com.   On July 13, 2014 my mother placed an order for the Anna/Elsa dresses that were on pre-order as she wanted to get the Anna/Elsa dresses for my twin daughters (age 2) so we directed her there as the reviews of the company were great and it pricing was great.  We all understood that this was a pre-order item and would not be receiving it right away.  Some time went by and I wanted to follow up with www.myfancyprincess.com so I asked my mom to forward me the confirmation email so that I could get the order number and follow up with them. So she did and I sent the following email on 8/25/14 to follow up on the order:

I am trying to follow up on the order status for:  myfancyprincess-xxxxx

I know the order was for pre-order, so I just wanted to follow up on the status for the actual items.

On the same day I received the following response:
According to the date you ordered, you are in our third presale shipment which is not due to arrive here at our location until the end of August/early September.  Once we receive the shipment and check it in, then we will ship in the order received.  If there are no further delays you should see a shipping confirmation somewhere around mid to third week of September. 

Thank you for your business and your continued patience.  We sincerely appreciate it!

Excellent, a quick reply and an approximate date of when to expect the dresses.  So some more time goes by and we hadn't received the dresses yet, so I called my mom and asked her if she had heard anything, and she had not.  So on September 23, 2014 I sent a quick email:

I just wanted to follow up on this order as we still have not received anything and it is now the end of September.

Another 5 days went by without any type of response, so on 9/26/14 I sent another email as their phone system says the way to get the  quick response is to email them:
I have not received my order not a response from you this week, not quite sure what is going on.
On 10/01/14 still no response, so at this point we call and leave a voice message, as well as send another email:
I am sending yet another email to follow up on this order.  Please its getting close to halloween and it was our understanding that we would have these items by now.....

So no response  for most of the day on 10/02/14 so I send the following email, granted its definitely confrontational, but all I am looking for is a status update:
So yet another week has gone by.  Both my wife and I have called and left messages as well as sent email and NOTHING has been responded to.  This is totally UNACCEPTABLE and I will start a social media campaign soon if I don't hear back.

Also being slightly disgruntled at this point, I figured I would try another contact medium, Facebook.  So I posted a message along the same lines as my previous emails. (Which has now been deleted).  That seem to get their attention and I received the following email reply.
Any details regarding the order are released to the purchaser only.  We see we previously responded to an e-mail but that was a mistake.  Thank you.
To which I responded:

Ok please email the purchaser (my mom) with an update and I will contact her to get the details.
And they comment on my Facebook feed also that they have responded to my email as well as forwarded the information along to my Mom, great an update, we are happy.  My mom then tells me that the email states the dresses will not be shipping for another 1-2 weeks and then we'll receive them 5 days after that.  They also explained that this is not their fault and that it is the fault of their manufacturer/distributor.  So hey what are you going to do, so we just have to wait.  Well it seems that they didn't like some of the negative comments that some of my friends/family put in the thread that I had started with them.  So they deleted the post.  And sent the following email to my mom, the original purchaser:

We have gone ahead and canceled this order.  Order delays from our supplier are not our fault and we will not continue to be bashed publicly for something that is not out fault.  we just spoke to our supplier yesterday and they are the ones delaying, NOT us.  We have explained this just this morning to your husband (I think they meant son) who also tried to publicly shame us for this.  We explained it respectfully and nicely.  Yet you felt the need to once again publicly bash us for what we already explained was not our fault.  We are just as upset over this as you are and have on more then one occasion expressed out disappointment that we are the ones taking al the blame for the delays that are not our fault.  We also gave you an option to switch to other in stock dresses (Double the cost) and instead of e-mailing us to work something out you once again went on our page to publicly express your disappointment  (My mom, the actual purchaser, never posted on the page, my wife did when she saw they deleted my post to their page).  You have every right to be disappointed, but please understand that we did not cause this.  You have been refunded in full and the order is now cancelled.

Well that got me really pissed as they could have use the opportunity to shine in a customer service issue, and they chose not to.  So I looked back at some of their Facebook posts to see if anyone else was complaining on their Facebook page and found a recent one within the last day or two and commented on that posting stating to be careful what they post as if they find it "offensive" or that it is "bashing" them they would cancel your order.  Since that comment their Facebook page is now completely locked down, no commenting, no liking and no posting.

Ultimately they should have been sending status updates on these pre-order items, thats the right thing to do.  They also could have used the Facebook posts to shine in customer service but chose to hide everything in email.

I am sorry but if you are on social media you must take the good and the bad with it.  You can't just delete/hide everything that you don't like you have to use it as a tool to show everyone else how you can treat the customer with respect.

In the end who suffers, my 2 year old twin daughters, as we are really close to Halloween and no one else has these costumes in their size.  My wife just told me that she let my daughter Sarah know that she might have to be something else for Halloween and she started to cry.

Shame on you www.myfancyprincess.com!!

Friday, June 15, 2012

Changing Jobs

After working for NetBlazon for 3+ years come Monday I will be starting work with a new employer.  I will be working for Walt Disney Park & Resorts Online as a Web Developer on analytics team.


Leaving NetBlazon was a very hard decision but was something that needed to happen because now that I have a FULL family, it includes twin girls now, I need to think about my future and the future of my family.  This includes a retirement for myself, but more importantly a way to provide for my family if I should be injured or out of work for an extended period of time (Short/Long Term Disability).


I have learned many things the past 3 years at NetBlazon and I am very thankful to Pete & Susan (the owners) for giving me the opportunity to work for their company.  We have built some great solutions (AccurateTax, FeedExact & Click-2-Customer). And I look forward to seeing what they produce in the future.

Thursday, November 18, 2010

Sencha Conference 2010

WOW!  Thats the only way I can start this off.  Sencha Conference 2010 was in San Francisco at the Fairmont hotel.  The hotel was very nice and was able to accommodate the 500 conference attendees.  It was a little pricey but the quality was there.

The sessions were great and Sencha Team presented were very well rehearsed and looked that like had been giving large presentations for years!! In my opinion the best presenter was Ed Spencer, I think his accent helps him come off as a better presenter. :)

The conference started off with two major announcements from Abe Elias.

  1. Sencha Touch is now free for commercial use.  In a later session it was revealed that there will be a charts package.  Available for purchase separately.
  2. ExtJS 4 Beta will be released in approximately 6 weeks. (Of course no one should help them to exact date, things happen).  If they make a 6 week beta released I will ecstatic.
Amongst the attendees of the conference in my opinion and probably many others were some of the greatest minds in the JavaScript community, of course this also includes the Sencha team.

On the ExtJS 4 front, one of the last session I was able to attend was one that previewed some improvements that are coming in ExtJS 4.  One of these things included Jamie Avins showing a speed test of how long it took ExtJS 2, which is speedier in some aspects to ExtJS 3, to resize a window with 500 textfields, it took aprox 2-3 seconds...after consulting the community and doing some research of their with help from google speed tracer they were able to get the time down to millisecons.  Thats right milliseconds!!!

Theming ExtJS 4 will be sooooo much easier. With the help of compass (http://compass-style.org/).  changing the base color of the theme will be a simple single line of code.  Even stylizing buttons will be simple using compass.  I am looking forward to seeing themes that make ExtJS not look like ExtJS.  And I have a feeling with the new system we will all start seeing this.

I am not the greatest of writers so I will stop here.  But will make another blog post once the ExtJS Beta is released.

Monday, July 19, 2010

Brighthouse, yeah no....

Well after my last blog post you'll notice that I had a comment from someone at BrightHouse asking for information to see if they could be of help.  I sent them my information and within a couple of days received a phone call form a customer service supervisor.  She followed up with me a couple times to let me know what was going on but I only spoke with her once on the phone,  and the other times she left a voicemail.

Now the last voicemail I received from her said that they they found the issue and were replacing a hub in the area to fix said issue.  She stated that the replacement would be done by the end of the week and that I would receive a phone call form the area supervisor Bill Harris by sunday when the hub was supposed to be replaced.  I was also told that I would receive a phone call from Bill Harris early on last week but never received a phone call from him.  I was also told that the woman who I was speaking with was going on vacation until this past Sunday and would follow up with me on Sunday.  It is no 6:15 Eastern Time and I have yet top receive a phone call from anyone, and guess what my internet speeds are still not what they should be.

Being that I was told things would be fixed by the end of the week and come saturday they weren't I called BrightHouse and was told there was work done in the area so they cannot confirm that this is an ongoing issue, so they would have to send a service tech out yet AGAIN to check the signal levels.  While on the phone I mentioned I was supposed to get a phone call from Bill Harris to let me know where things were at..they looked at the account and told me that Bill Harris had called me on tuesday and told me he would follow up with me on Sunday......The only person from brighthouse I received a phone call from on tuesday was the customer service supervisor.  So I asked the support person on the phone are they sure it says Bill Harris & they confirmed thats what it said. So not sure whats going on there.

So the service tech comes out  Saturday afternoon and checks the levels and of course they are fine.  While he is here I was commenting how this was an on going issue now for almost 4 months and that every time I call they want to classify it as a separate and new problem, the service tech states "Yeah we;ve been getting alot of calls for this area, and some of them we just ignore".  WOW!  I didnt say anything to him about that because I wasnt about to start any other trouble than I already have.

So once the signal level check was complete and no problems were found the service tech went out to the tab and checked the connections there, which were fine.  Well since he couldnt find any issues and had his next service call one block over in my subdivision he calls someone and they told him it was an ongoing issue in the neighborhood.  So the service tech gets told after and unnecessary documented issue in the area that he really shouldnt have been dispatched out here......WOW 

I AM STILL NOT GETTING WHAT I PAYED FOR AND BRIGHTHOUSE IS NOTHING BUT A HOUSE WITH ITS LIGHTS OUT AT THIS POINT EVERYONE IS WALKING AROUND IN THE DARK AND HAS NO CLUE WHAT ANYONE ELSE IS DOING.  SO NOW I AM GOING TO TRY AND GO UP THE CORPORATE LADDER.

If anyone reading this has a phone number or an email address of someone other than a customer service supervisor or call center please send it my way.  Myself as well as the other in my subdivision would really appreciate it.

Sunday, July 11, 2010

Bright House FAIL!!

So I am going into month 4 of slow internet speeds.  He is my most recent test.  Granted its not a bright house speed test but they dont allow for a direct image output of the results....I wonder why.  But the speedtest on http://speedtest.cfl.rr.com   show pretty much the same thing.


So yeah month 4 of my neighborhood having slow speeds, numerous tech's  have been made, and they come to the houses in the neighborhood and say none of the tests they run show any issues, so they put in what they are referring to as a "maintenance call"  basically this is a way for them to leave without fixing the problem.  Supposedly a part has been on order now for over 3 weeks.  Yet most of the tech guys that have come out say any part that needs to be replaced should  already be in stock.  so who knows what is going on.

Wednesday, February 17, 2010

Been doing some heavy ExtJS development

So for the past couple of months I have been doing some heavy ExtJS work. Nothing too fancy, no extension development....but some real heavy use of Ext and some 3rd party extensions.

The backend of the application I am working on is PHP, and I have come up with a psuedo framework for the application itself. By using the __autoload() functions in PHP and passing a couple of standardized arguments for every ajax call whether it be a submitting of a form or loading a data store for a grid/combo Ext component. Through Ext lovely use of the xtype property I am able to create arrays in my PHP Objects json_encode() them and pass them back to the front end where they become full fledged objects....this is not a standard practice for the interface but it is used in a specific element of the application that is very dynamic and very custom. Now I am sure if I found some Ext developers in my area and could sit down with them and show them the application they could do away with PHP generating the code and come up with a couple of extensions to do exactly what I want, but for now PHP is filling in the gaps and doing exactly what I want.

I originally started looking at ExtJS when version 1 was released, then version 2 came out and I started on a project at my former location, but never really was given the time to actually fully develop an application using Ext...then a couple of months ago I started on the current project I am working on and presented the idea of using Ext to my boss, he said I could proceed and I think overall everyone has been very happy with it.

Somethings I have seen improve for each release of Ext. I am going to start with the items that I have seen the biggest change in and work down to those that have changed but maybe not that much. Of course these are just my opinions

* Documentation
* Speed
* Overall Community Support
* UI Reliability


Documentation- The documentation has GREATLY improved and since the release of 3.0 I have started to see more and more examples of code in documentation itself. One thing that is still lacking just a little is an overall explanation of the properties/config options/methods/etc... for an object....some of these have a great amount of explanation and others not so much. Of course you can likely find someone to give a little bit more information on #extjs on irc.freenode.net but I think such details should be in the documentation. One thing I would love to see in the documentation along with the curret code example, is an actual working element produced from the code example, I know there are examples, but having everything in one place is a great thing to have and not all classes that have code in the documentation have samples...although most of them do.

Speed- The speed of Ext overall has increased SIGNIFICANTLY and I dont think there is anyone out there that is using Ext that could ask for more speed improvements although I am sure the team is working on them.

Overall Community Support- I have see the community grow in leaps and bounds for Ext, this past year was the first Ext Conference, and although I moved to Florida just in time for it, unfortunately I was getting married later that month and with starting the new job and having to take time off for the wedding/honeymoon I as unable to attend. I believe this years conference, if there is going to be one, will be in California as that is where the new Ext office is located (figures I come to town and everyone leaves!) Going with community tow books have come out recently The "Ext JS 3.0 Cookbook" and a not yet released in paper back form but available but available through Manning Publishing's MEAP program "Ext JS in Action" these has both bean great reads so far and I would highly suggest for anyone involved in Ext development to purchase them.

UI Reliability-  This one really isnt an improvement but something negative that I am starting to see I have noticed a couple of UI bugs creaping in and out of the 3.x releases such as, tabs not having the site images, a form having trouble placing buttons correctly and having them cut off on the left hand side.  Now  the tabs issue was corrected with the release of 3.2 but the 3.2 release introduced the buttons issue, which I believe is my fault in that I have not set the proper config options for my objects but it was working correctly in 3.1 and now is showing up in 3.2


But overall Ext is great and the changes they have been/are making to the release cycle are going to help the overall package shine like no other.

Monday, April 6, 2009

Cable Monopolies

Part1

It really seems like Brighthouse is not will to work with the customer AT ALL.

I recently moved down to Cocoa, FL from New York and prices are generally higher up there and I was paying around $140.00 a month for the following:

1 HD Multi Room DVR
1 SD Cable Box
HBO Package

10 MB Down / 2MB Up

Unlimited Nation Wide...

and paid a total of around $150 a month including taxes and the occasional on-demand rental.

Now Brighthouse wants to charge me $119 a month for the following:

1 HD DVR (Not Multiroom)
1 SD Box
10 MB Down / ??? Up
No HBO

$161.73 a month!!!!

Then I asked if there was anything they could do and possible provide the DVR box free of charge and try to work with the customer or if there was anything else they could do and they told me absolutely not.

Something is wrong here.

When I was switching from Cablevision to Fios up in New York Cable vision was willing to make each service 29.95 a month.

Part2
WOW BrightHouse Networks Customer Service is horrible.

So I finally decided to go online last night after all the phone call fun, and signed up for the double pack...For Internet Service and TV Service, including the extras I wanted.

I never got a confirmation email and no one called me this morning, so I called them and the lady told me there was nothing in the system so I went ahead and put the order in and got an install appointment for wednesday(good). Cable/Internet is the only thing holding me back from moving into my house right now.

Not 10 minutes after I get off the phone does the BrightHouse Promotions department call me and start to go into a speech about brighthouse and then i guess he looks at his screen and says "oooo, I was calling to offer $50 off your first month, for setting up your order online. but I see that you went ahead and called prematurely." So I responded with well cant you give me the $50 off I just signed up today. He said "Well, you would have to cancel the order..." so I said OK cancel the order. His response was..."Well I cant cancel the order you would have to call back and cancel the order"...I said oh ok well this is strike 2 for customer service, and then he started to tell me how he disagrees...thats when i hung up...unfortunately this is the only cable broadband provider in the this area and I guess they could give a rats ass about making any of their customers happy.

So 2 strikes for BrightHouse Cable before they even get into my house.

Wednesday, February 11, 2009

Thunderbird Extension Development

I've spent the last two weeks developing a thunderbird(tb) extension and I must say trying to find information specific to tb development is very hard to come by. Firefox plugin development information is all over the place. But tb resources are hard to come by. I have put together a quick reference that will hopefull get crawled by google and maybe give some help to others that are trying to do the same thing. Please not that this is just a qucik reference, of things I foudn to get the job done...they might not be the best method of doing things but it gets the job done.

Thunderbird Extension Development


Overlay Reference:

  • chrome://messenger/content/messenger.xul- statusbar

  • chrome://messenger/content/mailWindowOverlay.xul- Toolbar Menu (taskPopup), Message Context Menu (threadPaneContext)

  • chrome://messenger/content/msgHdrViewOverlay.xul- Attachment Context Menu (attachmentListContext)

Accessing Attachments

  1. var attachmentList = document.getElementById( 'attachmentList' ) // returns attachment list

  2. var selectedAttachments = attachmentList.selectedItems; //Get selected attachments


Getting Message Information

var MessageUri = GetFirstSelectedMessage(); // Get Message URI


/* Get message body as it appears in preview window */

body = document.getElementById("messagepane").contentDocument.body.innerHTML;


Accessing Limited Message Header information

  1. var msg = messenger.messageServiceFromURI(uri); // get message object

  2. var hdr = msg.messageURIToMsgHdr(uri); // get header object

  3. var subject = hdr.mime2DecodedSubject; // get Subject

  4. var from = hdr.mime2DecodedAuthor; // get From

  5. var to = hdr.mime2DecodedRecipients; // get To

  6. var msgdate = new Date( hdr.date/1000); // turn epoch into date

  7. var messageid = hdr.messageId; // get message ID



Downloading Attachments

This piece of code will take all selected attachments and download them to C:\ with their original filenames.


  1. attachments = this.getSelectedAttachments();

  2. for( i=0;i

  3. var attachment = attachments[i];


  4. /* Create a file interface object */

  5. var file = Components.classes["@mozilla.org/file/local;1"].

  6. createInstance(Components.interfaces.nsILocalFile);

  7. var fullfilepath = 'C:/test/' + attachment.displayName;

  8. file.initWithPath(fullfilepath);

  9. if(!file.exists()) {

  10. file.create(0x00,0644);

  11. }

  12. messenger.saveAttachmentToFile( file, attachment.url, attachment.uri, attachment.contentType, null );

  13. }

Sunday, February 1, 2009

Upgrading My Desktop

So I am going to upgrade my computer....here is what i am going with:

Intel BOXDP35DPM LGA 775 Intel P35 ATX Intel Motherboard

ASUS EN9800GT HB/HTDI/512M GeForce 9800 GT 512MB 256-bit GDDR3 PCI Express 2.0 x16 HDCP Ready SLI Supported

hec X-Power Pro 600 600W Continuous @ 40°C ATX12V V2.2 SLI Ready CrossFire Ready Power Supply

Intel Core 2 Quad Q8200 2.33GHz LGA 775 95W Quad-Core Processor Model BX80580Q8200

I am also going with 8GB of ram.

Only thing let to decide on it CPU cooling.

Linux will rock and I will be dual booting XP(maybe Vista) so that I can play StarCraft 2 when it comes out.


Comments/ Suggestions??

Thursday, January 15, 2009

PETA Wow I want some of what your all taking

So PETA has decided that fish should now be called sea kittens. and they let you create a "sea kitten" on their site. Well you let me know when you see something in the ocean that looks like this.


Create Your Own Sea Kitten at peta.org

Sunday, October 12, 2008

Andromeda: Give it a chance

I have been working with Andromeda for well over a year now and I can honestly say that I love this framework! I have tried many other frameworks including the following:
  • Mach II (ColdFusion)
  • FuseBox (ColdFusion & PHP)
  • Joolma (Not necessarily a framework)
  • MyCMS (PHP) developed by jeff@madtasty.com
And I have always found a reason that I could not use the framework in the fashion it was intended. I guess this is because alot of framework take the MVC approach and try to separate the business logic from the display logic. The MVC approach can cause a very large headache when you are picking up somebody elses' project and they are no longer around to answer questions. It also can cause a little bit of a headache because in my option it tries to be too organized. So I have never really used a framework for any given project because once I have started on these projects I have found the need to modify the framework in such a way that now what I have made exists outside the framework.

Now going back to the MVC approach, its definetly a good idea on paper however in the site/application is still just file based. So in the end instead of looking in say one object file you are looking in about 2,3,4 or even more places just to add a field to the page.

In my opinion Andromeda takes an MVC type approach and separates the business logic from the code completely, and puts it in the database. All your business rules go into the database and now the database does the validation, so you can never have invalid data.

Andromeda uses YAML to define the database and the rules. An example of this would be:

table contacts:
module: addressbook
column name:
primary_key:"Y"
description: Name
tooltip: Persons Name
uisearch: "Y"
column add1:
primary_key: "Y"
column add2:
column city:
column state:
column zip9:

The above creates a table called contacts with 6 column: name, add1, add2, city, state, zip.
Andromeda has predefined columns. I have used only predefined columns in the table above, but sya you wanted to create another field to store the contacts favorite food, you could achieve this in the following way:

column favorite_food:
type_id: vchar
description: Favorite Food
table contacts:
module: addressbook
column name:
primary_key:"Y"
description: Name
tooltip: Persons Name
uisearch: "Y"
column add1:
primary_key: "Y"
column add2:
column city:
column state:
column zip9:
column favorite_food:



You now have defined a column "favorite_food" that can be used in any other table in your application. Now once we build our application this table will exist in our application and can be edited right away with 0 code. One of the things I love the most about Andromeda is that it created the CRUD (CReate, Update, Delete) screens for you, with 0 code so any time you might have spent creating these screens is no longer needed and if you go back and look at my table definition you'll see there is a property called "module". This allows us to assign permissions groups for each of these modules. This is done in the following way:



group editors:
description: Address Book Editors
module addressbook:
permsel: "Y"
permdel: "Y"
permins: "Y"
permupd: "Y"


This defines a group called "editors" and gives it SELECT(permsel), DELETE(permdel),INSERT(permins), and UPDATE(permupd) permissions to any table in the module address booke. OK I am sure by now you are asking "but how does this put the business logic in the database?" OK lets say we now want to be able to assign phone number to these contacts we can now add a couple more tables to allow for this.



group editors:
description: Address Book Editors
module addressbook:
permsel: "Y"
permdel: "Y"
permins: "Y"
permupd: "Y"
column favorite_food:
type_id: vchar
description: Favorite Food
table contacts:
module: addressbook
column name:
primary_key:"Y"
description: Name
tooltip: Persons Name
uisearch: "Y"
column add1:
primary_key: "Y"
column add2:
column city:
column state:
column zip9:
column favorite_food:

table phonetypes:
module: addressbook
column name:
primary_key: "Y"
uisearch: "Y"
description: Phone Type
tooltip: Phone type eg. Cell, Home, Work

table contactnumbers:
description: Contacts Phone Numbers
foreign_key contacts:
uisearch: "Y"
primary_key: "Y"
foreign_key phonetypes:
primary_key: "Y"
uisearch: "Y"
column phone:



We've now added two tables(phonetypes & contactnumbers). The phonetypes table is extremely simple and allows us to add phone types such as Cell, Work, Home, etc...

The contactnumbers table has foreign_keys to the two previous tables contacts & phonetypes and that will tell the system that the primary_key fields from those tables need to be included in this table and to also make the primary_keys for this table. Our CRUD screens we will also have a drop down list for the foreign_key entries and this is done again with 0 code. What these primary_keys do is restrict each contact to having one phone type for each contact. If you try to insert more than one phone number for each phone type for a given contact, whether it be through the CRUD screens or even the SQL command line you will get an error telling you that the record already exists. So you don't have to make sure the record exists before you try inserting it, its done for you...yes of course you can still do this just so that your application wont have a DB error thrown back but the benefit of this is you can never get more than one phone type for a given contact into the system.

Now say for instance you wanted to have the number of phone number for each contact included in the contact record, you can have this done in the database for free with what Andromeda calls AUTOMATIONS. Here is how this is achieved:



column num_phones:
type_id: int
description: Number of Phone Numbers
table contacts:
module: addressbook
column name:
primary_key:"Y"
description: Name
tooltip: Persons Name
uisearch: "Y"
column add1:
primary_key: "Y"
column add2:
column city:
column state:
column zip9:
column favorite_food:
column num_phones:
automation_id: COUNT
auto_formula: contactnumbers.phone



Once again we've added another column definition(num_phones) and now you'll notice the automation_id property of COUNT and the auto_formula of contactnumbers.phone this tells Andromeda to do a count of records in the contactnumbers table that reference this table as a parent table(foreign_key). This is only a tip of the iceberg when it comes to Andromeda. There are many other useful automations and features such as ranged primary keys and dominant records.


This entire article is my opinion and probably not that well organized but I highly suggest taking a look at this "Database Development System/Framework". My basic examples above do not even compare to what is possible with Andromeda. It does sometimes take changing the way you approach certain things but in the end you will have drank the coolaid realized why you will never use another framework again.

I would highly suggest joining the mailing list and sending an email if you think something cannot be approached in the way you like. I have found more than once that the way that I like isn't the best way.

**Comments are welcomed and appreciated, even if you don't agree**

Monday, June 30, 2008

ExtJS

I've been working with ExtJS lately, and I must say I am highly impressed. For those of you not familiar with ExtJS (Ext), Ext is a crossbrowser javascript framework that allows for the creation of RIA (Rich Internet Applications).

Ext uses the latest and greatest web 2.0 methods, such as ajax, which has built in parsers for JSON, XML, text and possibly some other formats. Ext allows for the creation of desktop looking interfaces with just som simple notation(Ext is probably not the first project to do this)...this in my opinion is one of the greatest things Ext has to offer. The simple notation way of creating these interfaces allows for rapid deployment of interfaces, and takes the GUI creation out of the hands of the developer, and allows the developer to focus on getting the data to the front end.

Alot of chatter has been generated in the past couple of months on the decision to change the licensing model. The most current version of Ext uses the GPL 3.0 model in my opinion it may have not been the greatest of choices for a license however it still allows you to create open source applications. And if you want to build an application that you will be selling for $ you can purchase a license which will ultimately help support the project and only make it better.

There is one negative aspect to Ext, the documentation....yes all the information you need is there and they even give some basic code in the documentation however in my opinion the examples of interfaces/widgets are all given in the notation format of creating objects however the examples in the docs all give examples of referencing things or adding eventlisteners via old sytle javascript. This i think determs alot of people, they do have a community support forums but that can also at times be discouraging, as it may take a couple of bumps to get a question answered.

In my opinion the Ext documentation could take a lesson from the PHP documentation and add common examples in this notation style format, for the various things you may want to do with an object/widget/datastore.

In the end Ext is a great product with a bright future and just needs to polish its documentation as well as it has its interface objects.

Wednesday, April 30, 2008

jQuery

Well I've been using jQuery from quite some time now, and I must say they have a great product. It is a extremely easy to use as well as makes things such as alternating row colors in a table so easy, with two lines of code you can have alternating row colors on a table. The plugin support is great and pretty much anything you can think of you can find a plugin for.

Andromeda is rocking along and from what I here from Ken there may be some news coming in the next couple of weeks or so.

Thursday, February 21, 2008

Andromeda SVN

Well now that Andromeda has had SVN support built in for about two weeks I must say it makes pushing updates from dev to staging ALOT easier also has allowed for cooperative development of Andromeda even more possible.

I would say keep your eye on the Andromeda site in the coming weeks for more exciting news.

And for those of you who have yet to try it...just do it already!! It will change your world.

Sunday, February 10, 2008

Busy Week

Well this past week has been extremely busy both @ work and after work with Andromeda. Which is funny because both are connected. The e-commerce project I have been working on for the past ~5 months now uses Andromeda, so a lot of the bugs, most in my custom code not so much Andromeda lately, that I find keep Ken a little busy.

But besides that Ken has been busy this week getting SVN(subversion) working for upgrades of Andromeda, and also deploying Andromeda applications. We will hopefully be announcing the AndroPage feature this week, it is currently available in the most recent releases of this week we just haven't announced it. I am working on getting the LIPHP site wrapped up so we can get that out there.

I have a couple of extra that I am going to work on this coming week for Andromeda which include report back features this way we can start to see how people are using Andromeda as well as where in the world people are using it.

I can actually say that I finally have used a framework that I would use for anything. And it does try to separate the code into all sort of sections and folders, my worst experience with something like that was fusebox(Coldfusion) or Mach-II also coldfusion. Drupal and Joomla both have way too much stuff to sort through to find anything, and then when you have found it, you havent it's something that just has the title that you were looking for.

Andromeda makes creating an application with logic easy, and even just a website is easy to throw together with Andromeda and is even easier since the introduction of AndroPages. I am going to also start working out my idea of creating a google chart plugin for AndroPage which will bring reports to the next level.

Well that also for now, happy programming everyone.

Wednesday, January 30, 2008

Upcoming Andromeda Feature

About three weeks ago I was working on a project for work, that is using Andromeda and for some reason got to thinking about reports. And I thought to myself why couldn't we use YAML to define reports. So I sent an email to Ken Downs and suggested that we should get together and hash this idea out. So we got together about two weekends ago, and I presented this idea to him, and then showed him Smarty and showed him a couple of things that could be done with it.

Basically the whole "concept" comes down to the following
  • We already have our tables defined in the application YAML file
  • A report is just how to display the data
  • Smarty Gives us a way to have some logic (Looping, Alternating Row Color)
  • WE just need a filter for the data to display (WHERE CLAUSE)
So over the course of the rest of the weekend Ken coded up the concept of an AndroPage, which literally passes off the data to a another class that handles either turning the data into a Report(PDF) or a page(Smarty). After he was done with that I put into place the code that loops through the sections, and assigned the row(s) to the appropriate Smarty Variables named after the section they are in.

The definition of page looks like this:
options:
title: Reviews

section review:
onerow: "Y"
table reviews:
column name_book:
compare: = @book
column review:
column ts_ins:
column ts_upd:
column uid_ins:
column uid_upd:

uifilter book:
description: Book Title
type_id: vchar
colprec: 50

template: p_review.tpl

options: Allows us to set things such as page title.

section: Allows us to litterally pull as much data as we want and place it in different sections around the page, such as maybe client information in one area and then ads pertaining to this clients industry in another area.

onerow: Specified that we only expect one row back for this page(This is done so that we do not need a foreach loop in the smarty template)

table: Refer to tables that are specified in the application YAML file. Multiple tables can be specified and Andromeda will attempt to join the tables based on primary_keys

column: The columns to be used for display from the tables.

uifilter: Tells Andromeda that we need to filter on something, and if its not specified display a page so the user can enter it.

template: Tells Andromeda that this is a Smarty Page and to use the specified template.

Each section get assigned to a Smarty variable with the same name, then you just have to create the Smarty template.

An example of a Smarty template is this:

{* Smarty *}
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><h3>{$review.name_book}</h3></td>
</tr>
<tr>
<td>Review:</td>
</tr>
<tr>
<td>{$review.review}</td>
</tr>
<tr>
<td>Reviewed by: {$review.uid_ins} on {$review.ts_ins}</td>
</tr>
</tbody>
</table>
There as still a couple of minor bugs which should be fixed shortly and then there will be a release.