title
Change PDF title in browser window
Ok, So I found out how to change the meta-data in a .pdf form here: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c63.w.html (dead link; archived version here) Sure enough the Title in the Meta Data within the .pdf was “Coury And…” Once I changed this the Tab and the Title in Firefox web browser changed to have the title that I … Read more
In , which comes first: or ?
As all of the other answers have already indicated, it usually doesn’t matter. Here’s a bit more about when it matters and why. First of all, since you asked about standards, you might like to know that the text you are quoting comes from the W3C recommendations for HTML 4: http://www.w3.org/TR/html4/charset.html#h-5.2.2 There is a similar … Read more
How to set a custom font to the title in toolbar android
Since android.support.v7.appcompat 24.2 Toolbar has method setTitleTextAppearance and you can set its font without external textview. create new style in styles.xml <style name=”RobotoBoldTextAppearance”> <item name=”android:fontFamily”>@font/roboto_condensed_bold</item> </style> and use it mToolbar.setTitleTextAppearance(this, R.style.RobotoBoldTextAppearance);
Set screen-title from shellscript
You can set the screen / xterm title using the following lines: #!/bin/bash mytitle=”Some title” echo -e ‘\033k’$mytitle’\033\\’ [UPDATE] – by request I’m also including the solution proposed by @Espo below: Depending on your xterm version or your linux distribution the line above may or may not work and you can try the xterm-defaults: #!/bin/bash … Read more
UINavigationBar multi-line title
Set the titleView property of the UINavigationItem. For example, in the view controller’s viewDidLoad method you could do something like: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 480, 44)]; label.backgroundColor = [UIColor clearColor]; label.numberOfLines = 2; label.font = [UIFont boldSystemFontOfSize: 14.0f]; label.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5]; label.textAlignment = UITextAlignmentCenter; label.textColor = [UIColor whiteColor]; label.text = … Read more
Change UISearchBar/Keyboard Search Button Title
For a searchbar named tablesearchbar: // Set the return key and keyboard appearance of the search bar for (UIView *searchBarSubview in [tableSearchBar subviews]) { if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) { @try { [(UITextField *)searchBarSubview setReturnKeyType:UIReturnKeyDone]; [(UITextField *)searchBarSubview setKeyboardAppearance:UIKeyboardAppearanceAlert]; } @catch (NSException * e) { // ignore exception } } }
How to get current html page title with javascript
One option from DOM directly: $(document).find(“title”).text(); Tested only on chrome & IE9, but logically should work on all browsers. Or more generic var title = document.getElementsByTagName(“title”)[0].innerHTML;
Getting title and meta tags from external website
This is the way it should be: function file_get_contents_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $data = curl_exec($ch); curl_close($ch); return $data; } $html = file_get_contents_curl(“http://example.com/”); //parsing begins here: $doc = new DOMDocument(); @$doc->loadHTML($html); $nodes = $doc->getElementsByTagName(‘title’); //get and display what you need: $title = $nodes->item(0)->nodeValue; … Read more
add title to collection of pandas hist plots
With newer Pandas versions, if someone is interested, here a slightly different solution with Pandas only: ax = data.plot(kind=’hist’,subplots=True,sharex=True,sharey=True,title=”My title”)