Monday, January 18, 2016
What are Tag Management Systems, and why should developers care about them?
Wednesday, January 28, 2015
Brining the back-end to the front-end
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!!
I am trying to follow up on the order status for: myfancyprincess-xxxxxI 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.
Friday, June 15, 2012
Changing Jobs
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
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.
- 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.
- 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.
Monday, July 19, 2010
Brighthouse, yeah no....
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 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
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.
Wednesday, October 28, 2009
Monday, April 20, 2009
Monday, April 6, 2009
Cable Monopolies
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
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
var attachmentList = document.getElementById( 'attachmentList' ) // returns attachment list
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
var msg = messenger.messageServiceFromURI(uri); // get message object
var hdr = msg.messageURIToMsgHdr(uri); // get header object
var subject = hdr.mime2DecodedSubject; // get Subject
var from = hdr.mime2DecodedAuthor; // get From
var to = hdr.mime2DecodedRecipients; // get To
var msgdate = new Date( hdr.date/1000); // turn epoch into date
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.
attachments = this.getSelectedAttachments();
for( i=0;i
var attachment = attachments[i];
/* Create a file interface object */
var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
var fullfilepath = 'C:/test/' + attachment.displayName;
file.initWithPath(fullfilepath);
if(!file.exists()) {
file.create(0x00,0644);
}
messenger.saveAttachmentToFile( file, attachment.url, attachment.uri, attachment.contentType, null );
}
Sunday, February 1, 2009
Upgrading My Desktop
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
Create Your Own Sea Kitten at peta.org
Sunday, October 12, 2008
Andromeda: Give it a chance
- Mach II (ColdFusion)
- FuseBox (ColdFusion & PHP)
- Joolma (Not necessarily a framework)
- MyCMS (PHP) developed by jeff@madtasty.com
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.
Monday, June 30, 2008
ExtJS
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
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
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
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
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)
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:
There as still a couple of minor bugs which should be fixed shortly and then there will be a release.{* 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>