WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.21.1' for table 'wp_options']
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714934473.3921449184417724609375', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)


Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372
{"id":1401,"date":"2013-05-17T16:13:49","date_gmt":"2013-05-17T14:13:49","guid":{"rendered":"http:\/\/www.jonathanantoine.com\/?p=1401"},"modified":"2013-05-17T16:37:22","modified_gmt":"2013-05-17T14:37:22","slug":"winjs-use-the-same-data-in-the-zoomed-out-and-zoomed-in-view","status":"publish","type":"post","link":"http:\/\/www.jonathanantoine.com\/2013\/05\/17\/winjs-use-the-same-data-in-the-zoomed-out-and-zoomed-in-view\/","title":{"rendered":"WinJS : use the same data in the zoomed out and zoomed in view."},"content":{"rendered":"

The Semantic zoom let you display your data in a zoomed out and zoomed in way. It’s really fine when your data is grouped but sometimes you need to display a non-grouped data just in a different way with a different template<\/strong>.<\/p>\n

For example, we did it in the Larousse Illustr\u00e9 Windows 8<\/a> app to display media in a different way when zoomed in than zoomed out :\"zoomedInOut\"<\/p>\n

This is exactly the same data but shown in a different fashion. The user choose the one it prefers.<\/p>\n

But, if you try to set the same data source to the both listview in your semantic zoom, your app will crash.
\n<\/strong><\/p>\n

An exception is raised because a method “itemFromDescription” is not defined.<\/p>\n

The solution to make everything works is to define this method as below :
\n[js]
\nvar zoomedInListView = document.getElementById("zoomedInListView").winControl;
\nvar zoomedOutListView = document.getElementById("zoomedOutListView").winControl;<\/p>\n

zoomedInListView.itemDataSource = myList.dataSource;
\nzoomedInListView.itemDataSource.itemFromDescription
\n = function (it) { return WinJS.Promise.wrap({ index: 0 }); };<\/p>\n

zoomedOutListView.itemDataSource = myList.dataSource;
\nzoomedOutListView.itemDataSource.itemFromDescription
\n = function (it) { return WinJS.Promise.wrap({ index: 0 }); };<\/p>\n

[\/js]<\/p>\n

I hope this will help you \ud83d\ude42<\/p>\n

A sample is available (scenario 2) on my Dropbox<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

The Semantic zoom let you display your data in a zoomed out and zoomed in way. It’s really fine when your data is grouped but sometimes you need to display a non-grouped data just in…<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[14,15,30,34,25,53],"_links":{"self":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1401"}],"collection":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/comments?post=1401"}],"version-history":[{"count":12,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1401\/revisions"}],"predecessor-version":[{"id":1415,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1401\/revisions\/1415"}],"wp:attachment":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media?parent=1401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/categories?post=1401"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/tags?post=1401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}