public static bool StartsWithAndContains(this string toSearch, string startsWith, string contains) { return toSearch.StartsWithIgnoreCase(startsWith) && toSearch.ContainsIgnoreCase(contains); }public static bool EqualsIgnoreCase(this string toSearch, string equals) { return string.Equals(toSearch, equals, StringComparison.OrdinalIgnoreCase); } public static bool StartsWithIgnoreCase(this string toSearch, string startsWith) { return toSearch.StartsWith(startsWith, StringComparison.OrdinalIgnoreCase); } public static bool ContainsIgnoreCase(this string toSearch, string contains) { return (contains == string.Empty || toSearch.IndexOf(contains, StringComparison.OrdinalIgnoreCase) != -1); }Share on Facebook
Yearly Archives: 2016
Some of the new Attendant type SDK’s from Microsoft – Cortana and BOT.
For Cortana!
Cortana Devices SDK:
Cortana Skills Kit:
https://blogs.windows.com/buildingapps/2016/12/13/cortana-skills-kit-cortana-devices-sdk-announcement/#PJwh3kkso647IhgB.97
For Chat Bots.
Microsoft Bot Framework:
Bot Framework SDK
New Azure BOT service!
Azure Bot Services
Breaking your WordPress.
Problem: After adding Plugin “Share to Facebook”, the entire site crashes. Works ok in PHP 5.5 but not 7.
Fatal error: ‘break’ not in the ‘loop’ or ‘switch’ context in
like-box.php on line 84
Change break to return Like so:
try {
$page_info = Facebook_WP_Extend::graph_api_with_app_access_token( '/fql', 'GET', array( 'q' => 'SELECT page_url FROM page WHERE ' . $where ) );
} catch ( WP_FacebookApiException $e ) {
return;
}