w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
slidify layouts: title-only, title-and-body, title-and-two-cols, title caption, and blank
Slide layouts are mustache templates that can make use of objects returned by the parser. You can find a list of objects returned by the parser here. Coming to the question raised, here is how one would go about building the layouts for the slides. Title Only <slide class="segue nobackground {{ slide.class }}" id="{{ slide.id }}"> <hgroup> {{{ slide.header }}} </hgroup> </slide> The two column layout inherits from the parent layout, and the column widths are configurable. Two Columns --- layout: slide replace: slide.content --- {{{ slide.content }}} <div class='left' style='float:left;width:{{{ slide.left.w }}}'> {{{ slide.left.html }}} </div> <div class='right' style='float:right;width:{{{ slide.right.w }}}'> {{{ slide.right

Categories : R

(javascript / google scripts) How to get the title of a page encoded with iso-8859-1 so that the title will display correctly in my utf-8 website?
Where are you displaying the content is more important. If you are writing it to a spreadsheet, then you have to change the settings of the spreadsheet to the correct language (French). In addition, you can use the advanced parameters to specify what charset the original content is in. For example, var result = UrlFetchApp.fetch( url , {contentType : 'text/html; charset=utf-8'}); var wholePage = result.getContentText(); var scrap = wholePage.match( /<title>(.*?)</title>/ ); var title = scrap[1];

Categories : Javascript

Part of my HTML code is loading inside the element for some reason</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You messed up your title tag: it should be <title>SiteNetSoft</title> and not <title>SiteNetSoft</h1> Notice that you closed the tag with an h1 instead of a title.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17513113/webview-not-displaying-dynamic-part-of-website"><b>WebView not displaying dynamic part of website</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You can enable JavaScript for you webview with: webview.getSettings().setJavaScriptEnabled(true); and see if any difference. If the problems persist, then most probably that page isn't optimized for mobile and there's little you can do about.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17282827/adding-static-part-of-url-before-and-after-the-dynamic-refer"><b>Adding static part of URL before and after the dynamic reference</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Very simple example: $ref = $imageId; $url = "http://www.test.com/".$ref.".png"; So you might do this: (if $this->model_tool_total_import->fetchImage($raw_prod[$image], $settings['image_subfolder']) currently is returning the reference you're talking about) //remote images. if ($settings['remote_images']) { foreach (array_merge($settings['field_names']['product_image'], array($settings['field_names']['image'])) as $image) { if (!empty($raw_prod[$image])) { if (empty($settings['image_subfolder'])) { $settings['image_subfolder'] = '/'; } $tmp_image = $this->model_tool_total_import->fetchImage($raw_prod[$image], $settings['image_subfolder']); $raw_prod[$image] = "http://www.t</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/xml/15649/1'>Xml</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18470133/-htaccess-301-redirect-of-a-dynamic-url-with-defined-first-p"><b>.htaccess 301 redirect of a dynamic url with defined first part and random last part</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Try adding these rules to the htaccess file in your document root: RewriteEngine On RewriteCond %{QUERY_STRING} (^|&)man=32($|&) RewriteRule ^ /brand/8_brand-name? [L,R=301] The condition's regex pattern, (^|&)man=32($|&), matches a specific query string parameter, and will match it no matter where in the query string it is.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/dothtaccess/4/1'>Htaccess</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17003194/how-create-some-variable-with-dynamic-and-static-elements-in"><b>How create some variable with dynamic and static elements in one part in python3?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Use setattr: for da in range(10): setattr(self, 'var_li_{}'.format(da), da) </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/python/11169/1'>Python</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18466303/is-it-possible-to-make-a-picture-of-a-specific-part-of-your-"><b>Is it possible to make a picture of a specific part of your website?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Not sure how this plays out, but you may be able to take advantage of the <canvas> element and draw the <div> there. Then canvas has export options to convert to jpg, png, etc.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18423532/how-do-i-show-a-background-image-in-the-first-part-of-a-page"><b>How do I show a background image in the first part of a page and make it cover 100% of the visible part of the screen?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>CSS: .part1 { background: url(bkgd.jpg) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; width: 100%; } JS: using jquery $(window).resize(function () { $(".part1").css("min-height", $(window).height()); }); $(document).ready(function () { $(".part1").css("min-height", $(window).height()); }); See demo updated Upadted: Adjust .part background size using background-size set to the cover keyword and center the background view. Also using jquery to set the minimum height of .part equal to window height to fit the view port dynamically.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/jquery/7249/1'>Jquery</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17475409/make-twitter-s-bootstrap-2-x-popover-use-the-default-popover"><b>Make Twitter's Bootstrap 2.x Popover use the default Popover title instead of that in the html title attribute?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>As http://twitter.github.io/bootstrap/javascript.html#popovers (default title value if title attribute isn't present) tells you: you can only set the title if your element has an empty or none title attribute. When the title option is set to a string it is evaluated on document ready. Using a function here (evaluate on trigger) still won't work. Popovers is an extension of the tooltip class. It's constructor calls fixTitle(). fixTitle() moves the content from the title-attribute to the data-orginal-title attribute. Cause this is done before the call to setTitle() you can't use the title function. To solve your problem overrule the fixTitle() of the popover class: $.fn.popover.Constructor.prototype.fixTitle = function () { return; } Now popover will ignore (your title attribute) and u</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/twitter/14307/1'>Twitter</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17550641/dynamically-apply-title-of-html-document-into-the-title-fiel"><b>dynamically apply title of html document into the title fields of images</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>var title = document.title; $('.sth').attr('title',title); Edit, but I don't really see the point of doing this. The title of the site has little to do with the images, if it's added to all of them, what is the point anyways?</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18040168/javascript-slider-title-replace-html-for-title-just-working-"><b>Javascript Slider title replace html for title just working on 1st item</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>I found a couple of issues with your script, but first you have invalid markup in your page since you have multiple <div> elements with the same ids of tbtit and tbdescp. Id attributes should be unique in a HTML page so should change those to classes instead. Now in your script you need to change the part where you retrieve the values of the title and the description of the image that is hovered to reference the sibling elements: //THIS var tbtit = $("#tbtit").html(); var tbdesc = $("#tbdescp").html(); //SHOULD NOW BE THIS var tbtit = $(this).siblings('.tbtit').text(); var tbdesc = $(this).siblings('.tbdescp').text(); Finally when you update the text for your main image you want to set the content for your <h4> and <p> tags and not replace them completely, so use .t</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17147215/responsive-menu-with-title-have-a-resizing-title-that-takes-"><b>Responsive menu with title: have a resizing title that takes up all available space</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Unfortunately, this is not possible with CSS only — not if you want to work with IE8. You have to calculate the available space to fill the divs within, and the calc()'s function just work on modern browsers. I created two topics to search a responsive solution to percentage containers, and the results are here and here. The JavaScript's final solution is this: /** Centralize the main container **/ function calculateMainContainerWidth() { $realWidth = $(".main-container").width() - $(".right").outerWidth(), $containerContent = $(".left"); $containerContent.css("width", $realWidth); }; $(window).on("resize", function() { calculateMainContainerWidth(); }); calculateMainContainerWidth(); Also available in FiddleJS. I hope it helps.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/jquery/7249/1'>Jquery</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17230935/view-pager-title-strip-to-show-one-title-only"><b>View Pager Title Strip to show one title Only</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote> get pagerTitleStripe (pagerTitleStripe=(PagerTitleStrip) findViewById(R.id.pager_title_strip);) set alpha to 0 in secondary views (pagerTitleStripe.setNonPrimaryAlpha(0);) y listo! </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/android/430/1'>Android</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17850726/sql-ignore-part-of-where-if-paramter-is-null"><b>SQL ignore part of WHERE if paramter is null</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>How about something like SELECT Id, col1, col2, col3, col4 FROM myTable WHERE col1 LIKE @Param1+'%' OR @Param1 IS NULL in this specific case you could have also used SELECT Id, col1, col2, col3, col4 FROM myTable WHERE col1 LIKE ISNULL(@Param1,'')+'%' But in general you can try something like SELECT Id, col1, col2, col3, col4 FROM myTable WHERE (condition1 OR @Param1 IS NULL) AND (condition2 OR @Param2 IS NULL) AND (condition3 OR @Param3 IS NULL) ... AND (conditionN OR @ParamN IS NULL) </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/sql/13128/1'>SQL</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17181624/difference-between-window-title-and-document-title"><b>Difference between window.title and document.title</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>The window object doesn't have a title property. http://www.w3schools.com/jsref/obj_window.asp Hope this helps! Cheers, LC</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/16995132/page-title-and-site-title-configuration-dnn-7"><b>Page Title and Site Title Configuration DNN 7</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>The default behavior is automatic if you leave the "Page Title" setting blank within the settings for the individual page. To accomplish what you desire you will need to customize the settings on a page-by-page basis.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/asp-net/1051/1'>Asp Net</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17556394/why-server-could-not-fetch-title-of-website-"><b>why server could not fetch title of website?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>It appears that the fopen wrappers aren't enabled. As you can see in the notes section of the php docs for file_get_contents, allow_url_fopen must be set to true in order to open a url with file_get_contents. Try running the following on the server to see if you can use file_get_contents with a url. echo "urls "; echo (ini_get('allow_url_include')) ? "allowed" : "not allowed"; echo " in file_get_contents."; If that says 'urls not allowed in file_get_contents' then you'll need to update the setting via the php.ini, a .htaccess file, apache config, or some such equivalent. That is, if you would like to continue using file_get_contents to access the url. Another option is to use curl if you have the php curl extension installed. P.S. I know this is a problem with the call to file_get_cont</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17183330/i-need-to-check-if-the-keywords-exists-in-the-title-of-a-web"><b>I need to check if the keywords exists in the title of a website PHP</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>To check if a word is found in a string: function found_keyword($keyword, $title) { return preg_match('/' . $keyword . '/', $title); } (I used preg_match because you had that tag in your question, but I guess there are simpler functions to just check the occurence of a substring in a string) To check if at least one word in an array of words is found in a string: function found_keywords($keywords, $title) { return array_reduce($keywords, function ($match_found, $keyword) use ($title) { return $match_found || found_keyword($keyword, $title); }, FALSE); } To create an array of keywords from a string of comma-separated words: $keywords = split(',', $comma_separated_string); </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17820259/php-dynamic-title"><b>PHP dynamic title</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Looks like you have your variable websitetitle in $_REQUEST wrong ??? As I don't "believe" you can pass the value of a "submit". <fieldset> <legend style='width:500px;'><h3>Website Title</h3></legend> <label><h4> Change Website Title </h4></label> <form action='Config.php' method='POST'> <input type='text' name='websitetitle' placeholder='Website Title'/> <br /> <input type='submit' value='Update' class='btn btn-small btn-primary' name='update'> </form> </fieldset> Then <?php if(isset($_REQUEST['websitetitle'])) { $title=strip_tags(stripslashes($_REQUEST['websitetitle'])); } Then <title><?php include 'Config.php'; echo $title; ?> </title> </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17011735/python-dateutil-parser-ignore-non-date-part-of-string"><b>Python dateutil parser, ignore non-date part of string</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You can try to "reduce" the string as long as you can't decode it: from dateutil import parser def reduce_string(string): i = len(string) - 1 while string[i] >= '0' and string[i] < '9': i -= 1 while string[i] < '0' or string[i] > '9': i -= 1 return string[:i + 1] def find_date(string): while string: try: dateString = parser.parse(string, fuzzy=True) year = dateString.year month = dateString.month day = dateString.day return (year, month, day) except ValueError: pass string = reduce_string(string) return None date = find_date('2007-09-10_00005') if date: print date else: print "can't decode" The idea is to removing the end of the</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/python/11169/1'>Python</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18432640/combine-two-integers-one-containing-the-integer-part-the-oth"><b>Combine two integers (one containing the integer part, the other the decimal part) into a floating point number</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Cheating solution goes like this: string number = wholeNumber + "." + decimal double doubleNumber = Double.Parse(number); Clean solution would involve checking how many values you have in the 'decimal', dividing by 10^amount and adding them As was pointed out - decimal seperator is cultural-specific - so the completly correct version is string number = wholeNumber + System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSepar‌​ator + decimal double doubleNumber = Double.Parse(number); (I kept the top one because its easier to understand)</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/csharp/1915/1'>C#</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17386365/getting-php-s-imap-fetchbody-correct-part-number-index-body-"><b>Getting PHP's imap_fetchbody correct part number/index body part list</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Before migrating emails to the database I append everything to an $email array. Here is how the iteration over various parts of the email works. There MAY be some older bits in here that I no longer use though this works just fine. Missing functions are what I use to prepare different parts before they are written to the database. $message = imap_body($mbox,$i); $structure = imap_fetchstructure($mbox,$i); $f = array('!'); $r = array(''); $message = str_ireplace($f,$r,$message); $find = array('=00'); $replace = array(''); $message = str_ireplace($find,$replace,$message); $message = mb_convert_encoding($message,'us-ascii','UTF-8'); $message = utf8_encode($message); $dontattach = array('alternative','html','plain','related'); $ii = 1; $j = 1; $k =</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17647239/my-wordpress-website-is-showing-all-the-languages-in-the-bro"><b>My wordpress website is showing all the languages in the browser title bar instead of the selected one</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>First check what is your system language if it is English it should be show all the posts and content in English language. if this thing is not useful use this plugin to switch the language and make it default English http://wordpress.org/plugins/simple-language-switcher/</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/wordpress/15407/1'>Wordpress</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17346344/how-do-i-toggle-my-website-title-when-my-users-have-unread-m"><b>How do I toggle my website title when my users have unread messages from their friend?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You can do it using the setInterval function: var cont = 0; setInterval(function () { if (cont % 2) { var myText = 'Text 1'; } else { var myText = 'Another text'; } document.title = myText; cont++; },1000); http://jsfiddle.net/7bMjN/ I made use of jQuery but it is not needed. </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18618123/capturing-just-a-part-of-the-website"><b>Capturing just a part of the website</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>I can go with this non-regex approach :- require 'uri' str = <<-eot http://google.com https://www.simplecms.com www.facebook.com gmail.com eot str.split.map{|u| uri=URI(u); uri.scheme ? uri.host : u} # => ["google.com", "www.simplecms.com", "www.facebook.com", "gmail.com"] </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/ruby/12030/1'>Ruby</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18008056/is-it-possible-to-have-a-dynamic-linkto-title-attribute-"><b>Is it possible to have a dynamic linkTo title attribute?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Based on @guleria's comment and for the sake of having this question answered I'll provide an answer. {{#linkTo "route" model titleBinding=model.title}}model.title{{/linkTo}} Providing Binding as a suffix to your properties will enable bindings. As for where this is documented, here an extract of the documentation: Properties ending in a Binding suffix will be converted to Ember.Binding instances. The value of this property should be a string representing a path to another object or a custom binding instanced created using Binding helpers. Hope it helps.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/ember-js/4176/1'>Ember Js</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17988827/separate-chinese-part-and-english-part-from-a-text-document"><b>separate chinese part and english part from a text document</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You can do with regex, the part that validate the pattern with alphabetic english character go to a part, and the part that dont validate to the other part. I supose that the two parts are in different parts (not mixing both partd), perhaps if they are mixed you could have the problem of the common characters (, . ? etc...), perhaps for this characters you could see the before and the next character. I think that this can be a possibility probably there are best ways to do that. Edit: I supose that is a txt, but in another format only pass to txt before.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/java/6928/1'>Java</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18098424/php-exploding-first-part-of-a-string-into-array-elements-and"><b>PHP Exploding first part of a string into array elements and the second part into one element</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Use limit parameter here. From explode() documentation: If limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. Code: $string = 'This is a string that needs to be split into elements'; $splitarray = explode(' ',$string, 7); print_r($splitarray); Output: Array ( [0] => This [1] => is [2] => a [3] => string [4] => that [5] => needs [6] => to be split into elements ) </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17141312/how-to-hide-title-in-eclipse-title-bar-"><b>how to hide title in Eclipse Title bar?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Depending on exactly what you want, this might not be possible. For the Eclipse IDE and all the Eclipse editions you can find on the Eclipse.org download site, this is not possible. For you own RCP based application, this is easy, as you just need to set the title in the ApplicationWorkbenchAdvisor</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/eclipse/4002/1'>Eclipse</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17421674/add-link-title-if-title-is-empty-on-a-tag"><b>add link title, if title is empty on <a> tag</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>This should do what you need... $("a[data-original-title=' ']").data("original-title", "default title"); or... $("a[title='']").attr("title", "default title"); depending on whether it's the title attribute, or data-original-title. Just add that line of code after you have dynamically created the links.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/javascript/6985/1'>Javascript</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17122916/show-only-a-part-of-a-website-in-webview"><b>Show only a part of a website in webview</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Lets try this... public class WebClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } @Override public void onPageFinished(WebView view, String url) { view.loadUrl("javascript:document.getElementByClassName('example')"); } } have a look at thisLink</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/java/6928/1'>Java</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18097662/how-to-show-only-part-of-other-website-in-my-site-using-c-"><b>how to show only part of other website in my site using c#</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Possible solution: make an ajax call (of other technique), and only take part of the content you have retrieved on your site. if only the map, then i think you need div tag mainCenter Or ask if the have an API (like google maps)</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/csharp/1915/1'>C#</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17570506/lua-understanding-table-array-part-and-hash-part"><b>Lua: understanding table array part and hash part</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Contiguous integer keys starting from 1 always go in the array part. Keys that are not positive integers always go in the hash part. Other than that, it is unspecified, so you cannot predict where t[5] will be stored according to the spec (and it may or may not move between the two, for example if you create then delete t[4].) LuaJIT 2 is slightly different - it will also store t[0] in the array part. If you need it to be predictable (which is probably a design smell), stick to pure-array tables (contiguous integer keys starting from 1 - if you want to leave gap use a value of false instead of nil) or pure hash tables (avoid non-negative integer keys.)</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/lua/8122/1'>Lua</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17435432/writing-large-binary-file-part-by-part"><b>Writing large binary file part by part</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You are writing more bytes than can be represented by a 32-bit int (about 2 billion = 2 GB). Use a long to store the results of ftell(): long endSize = ftell(fout); printf("endSize - %ld ", endSize); </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/c/1914/1'>C</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18472526/regex-for-finding-matching-on-one-part-of-a-string-and-not-a"><b>Regex for finding matching on one part of a String and not another part</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>Using ^ for negation only works in character classes. You need a lookahead. The easiest way is to look from the beginning of the string (^) all the way through for appendCsrfToken with a negated lookahead. If that works, then go ahead and match the do?: ^(?!.*appendCsrfToken).*(.do?w) Demo.</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/java/6928/1'>Java</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18767931/trying-to-display-a-title-based-on-the-url-in-php"><b>Trying to display a title based on the url in PHP</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You should use $_GET['offer'] == "foo" instead of $_GET == "foo" Better yet, use strict comparison in the future to make sure you are comparing the same types (in this case strings): ===. This is because PHP has the tendency to cast types around, which can be both useful and annoying (see http://php.net/manual/en/language.types.type-juggling.php): $foo = "0"; // $foo is string (ASCII 48) $foo += 2; // $foo is now an integer (2) $foo = $foo + 1.3; // $foo is now a float (3.3) $foo = 5 + "10 Little Piggies"; // $foo is integer (15) $foo = 5 + "10 Small Pigs"; // $foo is integer (15) $_GET: http://php.net/manual/en/reserved.variables.get.php comparison operators: http://php.net/manual/en/language.operators.comparison.php</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/17789430/dynamic-title-of-page-php-include-links-"><b>Dynamic Title of page? PHP include links?</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>To output the return value of your function in the title tags just put it this way : <title><?php echo findCurrentPageURL(); ?></title> in a php page. Also to split it as you want, see Orangepill comment to the question, linking your question to Split camelCase word into words with php preg_match (Regular Expression) .</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/php/10505/1'>PHP</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18557516/dynamic-title-with-submit-form-wordpress-"><b>Dynamic title with submit form (wordpress)</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>You can get the current page title by using post_title and can put it in a hidden field. Something like below <input type="hidden" id="job_title" name="job_title" value="<?php echo $post->post_title; ?>"/> On the submitted page: $jobtitle = $_REQUEST['job_title']; // and you can mail this by using mail() function </blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/wordpress/15407/1'>Wordpress</a> </div> <br> </td> </tr> <tr> <td bgcolor=E7EBED style='padding:5px;' ><a href="/questions/18066215/highcharts-title-text-with-two-dynamic-dates"><b>Highcharts title text with two dynamic dates</b></a></td></tr> <tr> <td style='padding:16px;border-bottom:2px solid #C2C2C2;' align=left valign=middle> <div ><blockquote>I made a fiddle for you: http://jsfiddle.net/96AhK/ $(function () { var valdt1 = 'T1'; //<%=request.getParameter("T1") %> var valdt2 = 'T2'; //<%=request.getParameter("T2") %> chart = new Highcharts.Chart( { chart: { renderTo: 'PIE', plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: 'pie'}, title: { text: 'Database Status From ' + valdt1 +' To ' + valdt2, style: {fontSize: '10px'} }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 21</blockquote> </div> <br><div class=country2 style="float:right;display:inline-block;padding-left:1px" align=right> <font size=2><b>Categories :</b> <a class=country1 href='/category/jsp/7397/1'>Jsp</a> </div> <br> </td> </tr> </table> <!----------------------------------end body----------------------------------> </TD> <td bgcolor=ffffff width=250 align=center valign=top> <a href="http://w3hello.com/"><img src="/images/160-600.jpg"></a><br><br> </td> </TR> </table> <TABLE width=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD align=center WIDTH=100% > <table bgcolor=ffffff width=990 cellpadding=0 cellspacing=0 border="0"><tr><td align=center width=990 height=25 > <img width=990 src="/images/bg-categories2.png"></td></tr></table> <TABLE dir=ltr width=990 CELLPADDING=0 CELLSPACING=0 > <tr> <td width=990 dir=ltr bgcolor=113660 height=5 align=center class=cb></td></tr> <tr> <td width=990 dir=ltr bgcolor=034B81 height=80 align=center class=cw> <div style="display:inline;float:left;padding-left:30px;"><font color=white> © Copyright 2017 <a href="http://w3hello.com" target=_blank>w3hello.com</a> Publishing Limited. All rights reserved. </font></div> <div style="display:inline;float:right;padding-right:30px;"><A href="/privacy-policy.php">Privacy Policy</A> - <A href="/copyrights.php">Copyrights</A> - <A href="/contact.php">Contact us</b></A> - </font></div> </td> </tr> </TABLE> </TD> </TR> </TABLE> </BODY> </HTML>