Friday, July 31, 2015

Sitecore and Coveo

Sitecore and Coveo have partnered up to offer a free version of the Coveo search.

I downloaded this to create a POV for a client and here are my thoughts. Alternatively, you can download the new Jetstream demo from the partner portal which comes preconfigured with Coveo.

To configure a search page after installing the Coveo component just select a page in the content editor and insert a Coveo Seach page

 
Once you Publish the page you have default search results page. To limit and control what shows up in the results page you can modify the properties of the search results.



You can use the Sitecore rules editor to select specific templates in the system.


The front end display is separated from the logic allowing front end developers to modify the JS layer to control elements and styles.


Pro - quick, easy to install and had a working search control and search results pages in a matter of minutes. Separation of logic and presentation.

Con - Customizing anything outside of the available options is just as painful as SOLR and Lucene.

 

Monday, March 9, 2015

Sitecore and Glassmapper - Part One - Installing

I am a big proponent of making things as easy as possible for developers. That accounts for about 30%-40% of my time. That is why when Mike Edwards' Glassmapper came out with a MVC version using Razor syntax, I had to download it and try it out.

Below, I've detailed out some of the steps I took to create a rudimentary understanding of how it works so that I could explain it both to developers as well as explain to executives
What is Glass Mapper?GlassMapper is an object mapping framework for mapping Sitecore items directly onto an object model, this allows you to model your entire Sitecore solution in code . The framework handles reading and writing to fields, creating relationships (parent, child, etc) and much more. It takes away the 30% of a developers time that they use just to create simple models.

What is Glass Mapper Razor?



Glass.Mapper.Sc.Razor is a rendering type for Sitecore that allows you to use the Razor syntax with web forms. It makes use of the RazorEngine project to parse Razor markup. It uses the CastleWindsor  Inversion of Control methodology (taking sequentially written code and turning it into an delegation structure).


Using strongly types model Razor is a more natural choice (meaning more efficient) for rendering content when compared to either XSLT or Web Forms.





Installation of Glass Mapper



1. Glass Mapper is installed via nuget package. You will need at least version 3.0.7 search for Glass.Mapper.Sc.Razor.CastleWindsor

2. In the data/sitecore folder it creates in your solution it will have a glass mapper sitecore package. This should be installed via the Sitecore Desktop>Development Tools>Installation Wizard



This will create a folder in your Sitecore installation under layouts called Glass Mapper


GlassMapper within Sitecore



Within Sitecore under /layouts/GlassMapper you will now see a folder that has a couple of different insert options.



Glass Dynamic Razor : Using this mean that you sill not have your Models available in intellisense editing

Glass Typed Razor : Using this means your Models are available in intellisense by typing @Model.

Glass Code Behind Razor : Using this allows you to use traditional razor syntax and create objects on the code behind page



AutoGenerating Classes with TDS



Once you have everything installed and have added your project to TDS open up the properties panel and make sure the following are filled in



Friday, March 6, 2015

Chrome popup issues with Sitecore 7.1

Was noticing that after a particular update on Chrome (number 37) that my popup windows from the Sitecore Content editor admin were not working.

Examined the js being called and tracked it down to Chrome depreciating showModelDialog API in July 2014. Mind you, this is a good thing and addresses one of my pet peeves with Sitecore (and not just Chrome). That being, when you open some modal windows, you loose access to other tabs in your browser as Sitecore uses the poorly implemented  showModalDialog API to freeze everything.

{Note}Once I passed update 39 on Chrome the following did not work.

To fix this you can enable EnableDeprecatedWebPlatformFeatures . 

In updated versions of Sitecore this is no longer an issue but for someone stuck on a 7.1 it looks like the only optionwould be to use a browser that still allows showModaliDialog

Wednesday, February 16, 2011

Tuesday, February 1, 2011

Advertising and 3D

Audiences in the '50's
I had the good fortune to attend an Advertising week session with James Stewart, founder, producer and director from Gemini Films Co. This is a write up of that session and some background research.


James Stewart, Ad Week
3D movies and images have existed since the 1950’s but until the advent of digital projection these movies were plagued with poor user acceptance.


Once simple reason is found on the projectionist’s floor. 3D media is dependent on two images being displayed simultaneously – if an edit is made to one reel but not another than the timing is off and can easily cause nausea.



creating 3D images in Photoshop
It costs upwards of 200K to outfit a theatre for 3D viewing but new players in the market are offering 35mm Film projectors a 20-25K conversion kit- but that does not include the cost of the glasses.


Content Success

IMAX Digital films are one of the primary reasons for the resurgence in renovating theatres to accomodate 3D content delivery but Avatar still holds the lead at 2.4 billion in global sales.


Other than the Avatar blockbuster, one of the more successful genre of 3D films in the past couple of years have been concert movies. Hanna Montana: Best of Both Worlds and Jonas Brothers took in 3 5million and 19 million receptively.

65% of the profit for Alice in Wonderland and How to Train Your Dragon came from 3D screens. According to the International 3D Society, 33% of 2010's box office take was from 3D media.

All directors will be forced to move to 3D - or else leave millions on the table. Even Scorsese, one of the last hollywood holdouts is making the leap with his upcoming Hugo Cabret.

Sky TV in the UK has outfitted many of the pubs in London with 3D TV to push the adoption.

ESPN has a full time channel and the BBC has announced that they will be broadcasting the 2012 Olympic games in 3D.

YouTube has a 3D channel


Advertising Campaigns - Print


It seems that every advertiser is jumping on the 3D print bandwagon. Even advertisers with no 3D content. A recent car advertisement told viewers to come to their showroom to experience the new model in 3D.


Wonderbra Campaign
Wonderbra put up a 6ft billboard outside Waterloo station and handed out 3D glasses to people passing by.

Crest Whitestrips released their "Kiss Me in 3D" print campaign.






Advertising Campaigns - TV and Theatre

As expected, the biggest advertiser for 3D content so far are the equipment manufacturers themselves. Sony, Toshiba, Hitachi and LG have all launched campaigns in theatres to promote their 3D technology.

Other campaigns include the 2009 Superbowl which feature 3D advertisements from Dreamworks (Monster vs Aliens) and Pepsi's SoBe Lizard.


Costs 


According to Stewart, the cost for producing a commercial in 3D approaches approximately 10-25% more than the equivalent 2D commercial.

Creating CG in 3D only increased the costs by 10%. The costs for converting from 2D to 3D run from about 5k-100k per minute of footage. In Toronto, the choices of editing suite availability is limited to Deluxe.

Impact

There are only a few studies that have been completed looking at the effectiveness of 3D over 2D but the results are impressive.

One study was completed by ESPN during the 3D delivery of world cup soccer series. Cued recall and purchase intent for an ad increased - 68% for the 2D ad and 83% for the 3D ad. Ad liking increased from 67% to 84%.

A DLP study looked at 1000 students in Chicago who viewed content in 3D saw their test scores rise by 29-35%.


How 3D works


Visual fields converging
Modern 3D systems try to replicate the functions of human vision. Our vision is referred to as stereoscopic or binocular vision – evolutionally, this gives us an advantage determining depth and distance of objects. Our eyes, working as a team gives us two slightly different views of the same image. You can test these different images by holding your finger at arms length and viewing it with both eyes open and then closing first one eye and then the other. One of the images will be slightly offset from the other. This is refereed to as eye dominance. The brain, receiving both of these images at the same time, automatically combines them by matching up the similarities and adding the small differences in viewpoint.


Our eyes will converge at a close object and will diverge (to parallel) at images further away. Children have a much smaller ocular distance, which is why equipment manufactures have issued warnings on their use in the young reporting that it may cause nausea or imped the development of regular vision.


This is exactly how modern 3D systems work. There are two lenses that converge and diverge mechanically to five the illusion that objects are moving towards or away from the viewer.


Anaglyph images


Moon Landing
This is the more familiar of the systems to North American audiences- everyone recognizes the traditional red and blue lenses - and has been used since the 1950’s. Two images are captured by the camera and displayed as two colour layers superimposed on e each other. The brain itself performs the colour correction. Unlike the eighties, technology has evolved to use polarized glass to selectively screen out the colour channel rather than the traditional red and blue gels.



These type of glasses are cheap to mass produce and some prominent makers of regular polarized sunglasses will be embedding this technology in upcoming models.


This technology has some drawbacks – images are somewhat degraded and fine detail is lost.


Active Shutter


3D TV with AS
The alternate system to the Anaglyph method is called Active Shutter display. Going back to the example of above of holding out your finger and first closing one eye and then closing the other, active shutter displays mimic this behavior albeit at a much higher rate of 60 frames per second mechanically. This is the technology that is finding it’s way into the new breed of 3D televisions. With each frame duplicated and the glasses mechanically closing a shutter at 60 frames a second, the minimum refresh rates of the television have to be at 120 mhz.






3D TV and Monitors


With almost 6.5 million 3D TV sets sold in the first year, it is easy to figure out where this is going. Equipment manufacturers are not making the investment in 2D sets anymore. Most 3D televisions have the capability to disaply 2D content as well – and in most cases the 3D TV doing 2D content is displayed better than the 2D sets still on the market.

Autostereoscopic 3D TV 

Toshiba is offering a 65inch 3D television that does not require the use of special glasses - similar to Philips lenticolor prototype. There are two competing methods for glasses-less viewing. The less popular method uses cylindrical plastic lenses pasted on a transparent sheet which is in turn stuck to the surface of the LCD screen. The second method, called parallax barrier, shows the most promise for consumers and is being actively pursued by Sharp and LG. This method, instead of using lenses, has a liquid crystal surface with slots that correspond to the columns of pixels. These columns correspond to the alternating images which shutter based on a small electrical charge.

Other 3D devices LG has announced that in 2011 they will be releasing a 3D phone based on Nvidia's new dual core Tegra 3D chipset. A rumoured tablet will follow. Rumours are circulating that the iPhone 5 will be 3D enabled. Fuji, among others have launched a line of 3D digital cameras aimed at the consumer market

Wednesday, January 5, 2011

NAT Pinning Security Concerns

There is an old attack method that was first published in 2001 that now is gaining more notoriety with the adoption of HTML 5. The method was dubbed "The HTML Form Protocol Attack" or Cross Protocol Scripting.  Some of the vulnerabilities described in the paper have been addressed by the browser makers themselves but others are still open.
 
The premise of the vulnerability is that a browser can be tricked into communicating on a non standard port (i.e SMTP, POP, NNTP) from a hidden form on a web page. This can be used by spammers for instance by setting up a page with a hidden form that submits a request to a mail server and turns your client into a spam bot.

Tuesday, December 7, 2010

JQuery for Mobile Web Development

In 2009, Neilson estimates that 21% of Canadian mobile subscribers use their phones to surf online and check their email. There are 3.9 Million unique mobile internet users in Canada

Juniper estimates that worldwide users of mobile web services will increase from 577 million in 2008 to more than 1.7 billion in 2013.

Clearly, mobile web development is going to become more prevalent and a part of integrated campaigns.

Developing for the multiple handsets with their myriad of standards can be a frustrating experience -- and explaining the intricate nature of those differences to a designer who has to design an interface or an account manager who has to explain to the client can be a lesson in futility.

That is why I love when someone comes up with a clear, tested standard - with visuals and handy charts. It makes the job of Sherpa tech translator much easier.

JQuery, one of my favorite libraries has done such a job. JQuery mobile is a subset of the popular library that does an incredible job of standardizing interface elements across all the supported mobile browsers.

JQuery mobile even comes with a handy chart for Account Managers to show very clearly what browsers are supported.

They have rated browsers as the following

A High Quality.
A browser that’s capable of, at minimum, utilizing media queries (a requirement for jQuery Mobile). These browsers will be actively tested against but may not receive the full capabilities of jQuery Mobile.

B Medium Quality.
A capable browser that doesn’t have enough market share to warrant day-to-day testing. Bug fixes will still be applied to help these browsers.

C Low Quality.
A browser that is not capable of utilizing media queries. They won’t be provided any jQuery Mobile scripting or CSS (falling back to plain HTML and simple CSS).