iPad layout scales up when rotating from portrait to landscape

—— Update —— This is not an issue anymore in iOS7. And there is better fix by Scott Jehl on github scottjehl/iOS-Orientationchange-Fix that works for iOS6. —— Original answer —— Jeremy Keith (@adactio) has a good solution for this on his blog Orientation and scale Keep the Markup scalable <meta name=”viewport” content=”width=device-width, initial-scale=1″> Then disable … Read more

How can I update meta tags in AngularJS?

<html ng-app=”app”> <title ng-bind=”metaservice.metaTitle()”>Test</title> <meta name=”description” content=”{{ metaservice.metaDescription() }}” /> <meta name=”keywords” content=”{{ metaservice.metaKeywords() }}” /> <script> var app = angular.module(‘app’,[]); app.service(‘MetaService’, function() { var title=”Web App”; var metaDescription = ”; var metaKeywords=””; return { set: function(newTitle, newMetaDescription, newKeywords) { metaKeywords = newKeywords; metaDescription = newMetaDescription; title = newTitle; }, metaTitle: function(){ return title; }, … Read more

Disabling android’s chrome pull-down-to-refresh feature

The default action of the pull-to-refresh effect can be effectively prevented by doing any of the following : preventDefault’ing some portion of the touch sequence, including any of the following (in order of most disruptive to least disruptive): a. The entire touch stream (not ideal). b. All top overscrolling touchmoves. c. The first top overscrolling … Read more

CodeIgniter: A Class/Library to help get meta tags from a web page?

You should have a look at this class: PHP Simple HTML DOM it works this way: include(‘simple_html_dom.php’); $html = file_get_html(‘http://www.codeigniter.com/’); echo $html->find(‘title’, 0)->innertext; // get <title> echo “<pre>”; foreach($html->find(‘meta’) as $element) echo $element->name . ” : ” . $element->content . ‘<br>’; //prints every META tag echo “</pre>”;