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 4
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 7
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 10
Disabling certificate validation in Java
Mon, Apr 28th 2014 10
Getting mail.box from Domino server
Thu, Mar 20th 2014 5
Top 10
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 14
Disabling certificate validation in Java
Mon, Apr 28th 2014 10
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 10
Domino and No trusted certificate found
Tue, Jan 28th 2014 8
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 7
Getting mail.box from Domino server
Thu, Mar 20th 2014 5
Formatting a URL link in Drupal using function l
Tue, Oct 28th 2014 5
Moved from Ukraine to Denmark
Sun, Dec 16th 2012 5
Find Orphan pages on website
Mon, Jan 5th 2015 4
What is comfort zone for Domino developers our days?
Tue, Oct 9th 2012 4




Recent Blog Posts
4
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]
7
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
10
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
10
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
5
Getting mail.box from Domino server
Thu, Mar 20th 2014 4:32a   Dmytro Pastovenskyi
Domino allows to setup up to 10 mail boxes for 1 server. By default it 1 mail box with name mail.box however if you increase number of mail boxes to 2 and more Domino will create mail1.box, mail2.box ... and you must remember about it. In order to get mail box without doing lookup to ServerConfig document, just try to initiate mail1.box first and if it does not exists go for mail.box public Database getMailBox(Session session) throws NotesException{ String server = session.getServerName(); Da




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