263 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Find Orphan pages on website
Mon, Jan 5th 2015 8
Formatting a URL link in Drupal using function l
Tue, Oct 28th 2014 5
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 9
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 14
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 11
Disabling certificate validation in Java
Mon, Apr 28th 2014 8
Getting mail.box from Domino server
Thu, Mar 20th 2014 8
Top 10
Domino and No trusted certificate found
Tue, Jan 28th 2014 17
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 14
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 11
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 9
Getting mail.box from Domino server
Thu, Mar 20th 2014 8
Disabling certificate validation in Java
Mon, Apr 28th 2014 8
Find Orphan pages on website
Mon, Jan 5th 2015 8
Issues when developing IBM Domino Notes applications
Fri, Oct 18th 2013 8
First couple days with IBM Domino Designer 9.0 Social Edition
Mon, Dec 17th 2012 6
How we cook GitHub, Jira and Jenkins with Domino
Fri, Aug 9th 2013 6




Recent Blog Posts
8
Find Orphan pages on website
Mon, Jan 5th 2015 5:10a   Dmytro Pastovenskyi
You have a website and want to be sure that there are no Orphan pages? Not sure how to develop it? If so - you found a right place to go :), let's talk about most important steps. I assume you have a list of all pages you want to verify (otherwise - it will be your first task) Here is a logic/snippets We need functionality that can extract HTML from a web page. Later we will scan it and get internal links. private String getPageContent(String pageurl) throws Exception { StringBuffer buf =
5
Formatting a URL link in Drupal using function l
Tue, Oct 28th 2014 6:12p   Dmytro Pastovenskyi
Another nice function in Drupal. It's called function l. It formats a URL link as an HTML anchor tag. I know it looks really easy and simple, it's just nice to use it after doing that manually many times. $option = array(); $option['attributes'] = array('title' => $label); l($label_trimmed, $uri['path'], $option));// will output [a href="$uri-path" title="$label">[/a]
9
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 8:10a   Dmytro Pastovenskyi
Typical task: "truncate a string only on a word boundary and add a some postfix to resulting string". Every developer did it many times, I'm sure. Here is a how Drupal solves it with it's api: function views_trim_text define(MAX_LENGTH, 30); $alter = array( 'max_length' => MAX_LENGTH, 'word_boundary' => TRUE, 'ellipsis' => TRUE ); $mystring = "truncate a string only on a word boundary and add a some postfix to resulting string"; $mystring = views_trim_text($alter, $mys
14
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 6:11a   Dmytro Pastovenskyi
Recently I faced up with WSDL which I couldn't import into Web Service Consumer. Our consumer worked well from last 5 years but it is a long period and during that time our Service Provider was updated a lot so we decided to update our Consumer as well. Guess everything went fine? No WSDL was returned from the URLI simply created new Consumer in Domino Designer, set URL to our WSDL, picked Java and clicked OK. Oops... --------------------------- Domino Designer --------------------------- No
11
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 6:15a   Dmytro Pastovenskyi
If you are using google analytics to track clicks/events then at some point you may want to track submits of forms. The only one way to do that is to use hitCallback function. It is easy to do it, however many people forget to verify cases when google analytics library is blocked, f.x. by extensions AdBlock or Ghostery) and it means hitCallback will not be defined and simply will not work. Google analytics classicjQuery(".form").on("submit", function(f) { var _this = this; _gaq.push(['_se
8
Disabling certificate validation in Java
Mon, Apr 28th 2014 12:11a   Dmytro Pastovenskyi
In case you need to disable validation of certificate here is Java snippet. public static void disableCertificateValidation() { // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; } public void checkClientTrusted(X509Certificate[] certs, String authType) {} public void checkServerTrusted(X509Certificate[] certs, Str




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition