361 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Formatting a URL link in Drupal using function l
Tue, Oct 28th 2014 131
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 120
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 89
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 77
Disabling certificate validation in Java
Mon, Apr 28th 2014 83
Getting mail.box from Domino server
Thu, Mar 20th 2014 55
Domino and No trusted certificate found
Tue, Jan 28th 2014 108
Top 10
Formatting a URL link in Drupal using function l
Tue, Oct 28th 2014 131
Truncating a string on a word boundary in Drupal using it's api
Tue, Oct 28th 2014 120
Domino and No trusted certificate found
Tue, Jan 28th 2014 108
Exception occurred calling method NotesAgent.runWithDocumentContext(lotus.domino.local.Document) null
Fri, Aug 3rd 2012 95
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 89
Disabling certificate validation in Java
Mon, Apr 28th 2014 83
Track events using google analytics via hitCallback
Tue, Jul 8th 2014 77
Copy/Paste substitutions freezes my Lotus Notes
Tue, May 31st 2011 62
Getting mail.box from Domino server
Thu, Mar 20th 2014 55
IBM Designer Java Console effect?
Thu, Oct 3rd 2013 54


Page-layout rel = «next | prev»
   

Along with the attribute rel = «canonical» to specify a 'search robot' to duplicate content, it is now possible to use the HTML reference value rel = "next" and rel = "prev" to indicate the position of the current page with neighbors in the navigation box. F.x. you have article splitted on 10 pages and you use next/prev buttons in order to move from one page to another. If you want to be sure that most of 'score' from 'google spider' will go to main page red="next"/"prev" is the very good options.

Here is more details about our example


Now about rel="next" and rel="prev"
www.example.com/article?id=123page=1
<link rel="next" href="http://www.example.com/article?id=123&page=2" />
www.example.com/article?id=123page=2
<link rel="next" href="http://www.example.com/article?id=123&page=3" />
<link rel="prev" href="http://www.example.com/article?id=123&page=1" />
www.example.com/article?id=123page=3
<link rel="next" href="http://www.example.com/article?id=123&page=4" />
<link rel="prev" href="http://www.example.com/article?id=123&page=2" />www.example.com/article?id=123page=10
<link rel="prev" href="http://www.example.com/article?id=123&page=9" />


Few notes:

  • First page should have only rel=«next». 
  • All pages between 1-st and last usually should have both only rel=«next» and rel="prev".
  • Last page should have olny rel=«prev». 
  • Allowed to use the value rel=«previous» as an alternative to rel=”prev”. Not sure if it has sence :) 
  • In case if you fail with that Google will continue to index your content with own heuristic logic.


---------------------
http://feedproxy.google.com/~r/dpastov/~3/uiYlaycIo40/page-layout-rel-next-prev.html
Sep 20, 2011
20 hits



Recent Blog Posts
131


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] [read] Keywords:
120


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 [read] Keywords:
89


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 [read] Keywords: domino ibm lotus notes application applications java server
77


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 [read] Keywords: google
83


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 [read] Keywords: java
55


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 [read] Keywords: domino database server
108


Domino and No trusted certificate found
Tue, Jan 28th 2014 8:09a   Dmytro Pastovenskyi
We have few agents that communicate with other systems via and today at 13:00 we got such answer from Domino when we tried to set connection with external system. That was a huge problem for us since it affect our business. javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: No trusted certificate found at com.ibm.jsse2.o.a(o.java:8) at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:549) at com.ibm.jsse2.kb.a(kb.java:355) at com.ibm.jsse2.kb.a(kb.java:130) at com.ibm.jsse2.lb.a(lb. [read] Keywords: domino ibm lotus application database java password security server




52


Issues when developing IBM Domino Notes applications
Fri, Oct 18th 2013 6:11a   Dmytro Pastovenskyi
Some minor stuff about Domino Designer. Undo/'Ctrl+Z' does does not work properly when you developing in Lotus Script, if you do it few times it might mess your code 'Ctrl+C'/'Ctrl+V' sometimes does not work from first attempt, so you need to do it twice 'Ctrl+C'/'Ctrl+V' sometimes it sets focus on penultimate character so you have to do 1 extra actions to continue write code I still have crashes in Domino Designer without any reasons and I've no customization to my Designer I'm no [read] Keywords: domino ibm lotus notes applications
54


IBM Designer Java Console effect?
Thu, Oct 3rd 2013 8:09a   Dmytro Pastovenskyi
I've faced up with interesting problems. I'm doing integration between MailChimp and Domino application. MailChimp service has very good API so it was not huge problem to push/poll data to/from it and we already implemented solution based on Java. The fun started when I tried to do LS2J part. That error does not happen if I enable Java Console in IBM Domino Designer. When Console is up - everything works perfect, otherwise this error: LS2J Error: Threw java.lang.SecurityException: not a [read] Keywords: domino ibm application integration interface java security
49


How we cook GitHub, Jira and Jenkins with Domino
Fri, Aug 9th 2013 1:39a   Dmytro Pastovenskyi
Why would I use it? I'll describe briefly how we use GitHub, Jira and Jenkins together to make better development process. More details will come later when I get some desire :). OK, lets look what benefits we have from using these tools. GitHub with Jenkins GitHub has number of Service Hooks and one of them is for Jenkins. It allows to trigger build jobs when pushes are made to GitHub. You don't need to have any skill to do that, let's look on screen below. So once you made a push, Jenk [read] Keywords: domino application development




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition