Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: https://notes-jj.blogspot.com/feeds/posts/default?alt=rss

  1. <?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7638063200500640961</atom:id><lastBuildDate>Fri, 08 Mar 2024 05:31:48 +0000</lastBuildDate><category>Docker</category><category>IBM Domino</category><category>InfluxDB</category><category>LotusScript</category><title>notes-jj</title><description></description><link>https://notes-jj.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7638063200500640961.post-4956066306598939707</guid><pubDate>Sun, 29 May 2016 22:17:00 +0000</pubDate><atom:updated>2016-05-30T00:19:03.953+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Docker</category><category domain="http://www.blogger.com/atom/ns#">InfluxDB</category><title>Docker InfluxDB: Create Container with HTTP Authentictation</title><description>The official Docker &lt;a href=&quot;https://hub.docker.com/_/influxdb/&quot;&gt;InfluxDB&lt;/a&gt; container will not start with authentication. In InfluxDB 0.13.0 the ability to control the config via &lt;a href=&quot;https://github.com/influxdata/influxdb/pull/6444&quot;&gt;Environment Variables&lt;/a&gt; was added. The easiest way to create a container with http authentication and creating an admin user is:
  2. &lt;br /&gt;
  3. &lt;br /&gt;
  4. &lt;h4&gt;
  5. Create Container and set Admin User and Password&lt;/h4&gt;
  6. &lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;# Create temp Container
  7. docker run -d \
  8. --name test-influx \
  9. -p 8083:8083 -p 8086:8086 \
  10. -e INFLUXDB_HTTP_AUTH_ENABLED=&quot;true&quot; \
  11. influxdb:0.13.0-alpine
  12.  
  13. # Create admin user in InfluxDB
  14. docker exec -ti test-influx \
  15. /usr/bin/influx -execute &quot;CREATE USER admin WITH PASSWORD &#39;pass&#39; WITH ALL PRIVILEGES; SHOW USERS&quot;
  16. &lt;/code&gt;&lt;/pre&gt;
  17. &lt;h4&gt;Accessing the InfluxDB Console from Shell&lt;/h4&gt;
  18. The influx console has to be accessed with username and password from now on.
  19. &lt;br /&gt;
  20. &lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;docker exec -ti test-influx \
  21. /usr/bin/influx -username &#39;admin&#39; -password &#39;pass&#39;
  22. &lt;/code&gt;&lt;/pre&gt;
  23.  
  24. &lt;h4&gt;Bug: Empty password&lt;/h4&gt;
  25. There is a bug right now with leaving the password empty, to ge a prompt:
  26. &lt;a href=&quot;https://github.com/influxdata/influxdb/issues/6746&quot;&gt;[Bug] Empty Password for Prompt not working (/usr/bin/influx) #6746&lt;/a&gt;</description><link>https://notes-jj.blogspot.com/2016/05/docker-influxdb-create-container-with.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7638063200500640961.post-330172548107521705</guid><pubDate>Sun, 29 May 2016 12:37:00 +0000</pubDate><atom:updated>2016-05-29T14:37:46.782+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">IBM Domino</category><category domain="http://www.blogger.com/atom/ns#">LotusScript</category><title>LotusScript: Easy and Fast @ReplaceSubstring Alternative</title><description>On the first glimpse, there is no direct way to do a replace substring in LotusScript like in formula using @ReplaceSubstring. Even the &lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg21102507&quot;&gt;IBM Technote #1102507&lt;/a&gt; suggests using &quot;instr&quot;, &quot;left&quot; and &quot;mid&quot;.&lt;br /&gt;
  27. &lt;br /&gt;
  28. There is a much faster and easy way to use accomplish this task by using the function replace:&lt;br /&gt;
  29. &lt;blockquote class=&quot;tr_bq&quot;&gt;
  30. Replace(sourceArray, findArray, replacementArray [, start [, count [, compMethod]]])&lt;/blockquote&gt;
  31. &lt;b&gt;This function also works for strings.&lt;br /&gt;&lt;/b&gt;
  32. &lt;br /&gt;
  33. &amp;nbsp;The code is even faster too:
  34. &lt;br /&gt;
  35. &lt;ul&gt;
  36. &lt;li&gt;3773 ms - FindReplace_IBM&lt;/li&gt;
  37. &lt;li&gt;2719 ms - FindReplace_Tuned&lt;/li&gt;
  38. &lt;li&gt;&lt;b&gt;539 ms - Replace&lt;/b&gt;&lt;/li&gt;
  39. &lt;li&gt;1469 ms - Replace on Array&lt;/li&gt;
  40. &lt;li&gt;7473 ms - FindReplace_IBM &amp;nbsp;- 2 Values&lt;/li&gt;
  41. &lt;li&gt;6688 ms - FindReplace_Tuned &amp;nbsp;- 2 Values&lt;/li&gt;
  42. &lt;li&gt;&lt;b&gt;1102 ms - Replace &amp;nbsp;- 2 Values&lt;/b&gt;&lt;/li&gt;
  43. &lt;li&gt;1871 ms - Replace on Array &amp;nbsp;- 2 Values&lt;/li&gt;
  44. &lt;/ul&gt;
  45. &lt;br /&gt;
  46.  
  47. &lt;h4&gt;Demo Code: Usage Replace&lt;/h4&gt;
  48. &lt;pre&gt;&lt;code class=&quot;VBScript&quot;&gt;Sub Initialize
  49.   Dim result As Variant
  50.  
  51.   &#39; Replace single Value
  52.   result = Replace (&quot;alice bar alicebar&quot;, &quot;alice&quot;, &quot;foo&quot;)
  53.   Print &quot;1: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  54.  
  55.   &#39; Replace two Values
  56.   result = Replace (&quot;alice bob alicebob&quot;, _
  57.   Split(&quot;alice bob&quot;), Split(&quot;foo bar&quot;))
  58.   Print &quot;2: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  59.  
  60.   &#39; Replace two Values, with one
  61.   result = Replace (&quot;alice bar bobbar&quot;, Split(&quot;alice bob&quot;), &quot;foo&quot;)
  62.   Print &quot;3: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  63.  
  64.   &#39; If replacmentArray is larger than findArray,
  65.   &#39; the Values will be ignored
  66.   result = Replace (&quot;alice bar bobbar&quot;, _
  67.      Split(&quot;alice bob&quot;), Split(&quot;foo foo bar&quot;))
  68.   Print &quot;4: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  69.  
  70.   &#39; For Replacing Blank use Delimiter in Split
  71.   result = Replace (&quot;alice   bar alice  bar&quot;, _
  72.      Split(&quot;alice:  &quot;,&quot;:&quot;), Split(&quot;foo:&quot;,&quot;:&quot;))
  73.   Print &quot;5: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  74.  
  75.   &#39; Multi Level Replacments
  76.   &#39; &quot;alicebob bar bobbobbar&quot; -&amp;gt; &quot;bobbob bar bobbobbar&quot;
  77.   &#39; &quot;bobbob bar bobbobbar&quot;   -&amp;gt; &quot;foo bar foobar&quot;
  78.   result = Replace (&quot;alicebob bar bobbobbar&quot;, _
  79.      Split(&quot;alice bobbob&quot;), Split(&quot;bob foo&quot;))
  80.   Print &quot;6: &quot; + result &#39; result = &quot;foo bar foobar&quot;
  81.  
  82.   Dim resultArray As Variant
  83.  
  84.   &#39; Replace Array Substring
  85.   resultArray =  Replace(Split(&quot;alice bob alicebob&quot;), _
  86.      Split(&quot;alice bob&quot;), Split(&quot;foo bar&quot;))
  87.   Print &quot;6: &quot; + &quot;[&quot;&quot;&quot; + Join(resultArray,&quot;&quot;&quot;, &quot;&quot;&quot;) + &quot;&quot;&quot;]&quot;
  88.   &#39; resultArray = &quot;[&quot;foo&quot;, &quot;bar&quot;, &quot;foobar&quot;]&quot;
  89. End Sub
  90. &lt;/code&gt;&lt;/pre&gt;
  91. &lt;h4&gt;Demo Code: Perfomance&lt;/h4&gt;
  92. &lt;pre&gt;&lt;code class=&quot;VBScript&quot;&gt;Option Public
  93. Option Declare
  94.  
  95. Sub Initialize
  96. Const LOOP_MAX = 100000
  97. Dim i As Long
  98. Dim timerStart As Single
  99. Dim timerResult As Single
  100. Dim result As Variant
  101. Dim resultArray As Variant
  102.  
  103. &#39; Classic IBM Method
  104. TimerStart = Timer
  105. For i = 1 To LOOP_MAX
  106.  result =  FindReplace_IBM(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, &quot;aa&quot;, &quot;oo&quot;)
  107. Next
  108. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  109. print Format$(timerResult, &quot;###0&quot;) + &quot; ms - FindReplace_IBM &quot; + &quot; - Result: &quot; + result
  110.  
  111. &#39; IBM Method tuned
  112. TimerStart = Timer
  113. For i = 1 To LOOP_MAX
  114.  result =  FindReplace_Tuned(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, &quot;aa&quot;, &quot;oo&quot;)
  115. Next
  116. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  117. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - FindReplace_Tuned &quot; + &quot; - Result: &quot; + result
  118.  
  119. &#39; Replace
  120. TimerStart = Timer
  121. For i = 1 To LOOP_MAX
  122.  result =  Replace(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, &quot;aa&quot;, &quot;oo&quot;)
  123. Next
  124. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  125. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - Replace &quot; + &quot; - Result: &quot; + result
  126.  
  127. &#39; Replace on Array
  128. TimerStart = Timer
  129. For i = 1 To LOOP_MAX
  130.  resultArray =  Replace(Split(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;), &quot;aa&quot;, &quot;oo&quot;)
  131. Next
  132. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  133. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - Replace on Array &quot; + &quot; - Result: [&quot;&quot;&quot; + Join(resultArray,&quot;&quot;&quot;, &quot;&quot;&quot;) + &quot;&quot;&quot;]&quot;
  134.  
  135. &#39; Classic IBM Method - 2 Values
  136. TimerStart = Timer
  137. For i = 1 To LOOP_MAX
  138.  result =  FindReplace_IBM(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, &quot;aa&quot;, &quot;oo&quot;)
  139.  result =  FindReplace_IBM(result, &quot;oo&quot;, &quot;uu&quot;)
  140. Next
  141. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  142. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - FindReplace_IBM - 2 Values &quot; + &quot; - Result: &quot; + result
  143.  
  144. &#39; IBM Method tuned - 2 Values
  145. TimerStart = Timer
  146. For i = 1 To LOOP_MAX
  147.  result =  FindReplace_Tuned(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, &quot;aa&quot;, &quot;oo&quot;)
  148.  result =  FindReplace_IBM(result, &quot;oo&quot;, &quot;uu&quot;)
  149. Next
  150. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  151. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - FindReplace_Tuned - 2 Values &quot; + &quot; - Result: &quot; + result
  152.  
  153. &#39; Replace - 2 Values
  154. TimerStart = Timer
  155. For i = 1 To LOOP_MAX
  156.  result =  Replace(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;, Split(&quot;aa oo&quot;), Split(&quot;oo uu&quot;))
  157. Next
  158. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  159. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - Replace - 2 Values &quot; + &quot; - Result: &quot; + result
  160.  
  161.  
  162. &#39; Replace on Array - 2 Values
  163. TimerStart = Timer
  164. For i = 1 To LOOP_MAX
  165.  resultArray =  Replace(Split(&quot;faa bar faabar faa bar faabar faa bar faabar&quot;), Split(&quot;aa oo&quot;), Split(&quot;oo uu&quot;))
  166. Next
  167. timerResult = (Timer - timerStart) * 1000 &#39; milliseconds
  168. print  Format$(timerResult, &quot;###0&quot;) + &quot; ms - Replace on Array - 2 Values &quot; + &quot; - Result: [&quot;&quot;&quot; + Join(resultArray,&quot;&quot;&quot;, &quot;&quot;&quot;) + &quot;&quot;&quot;]&quot;
  169. End Sub
  170.  
  171. Function FindReplace_IBM (ByVal wholestring As Variant, find As String, ireplace As String) As String
  172. &#39; Source http://www-01.ibm.com/support/docview.wss?uid=swg21102507
  173. Dim checkstring, saveleft, leftstring, rightstring As String
  174. Dim n As Integer
  175. checkstring=wholestring
  176. saveleft=&quot;&quot;
  177. While InStr(1, checkstring, find) &amp;lt;&amp;gt; 0
  178.  n=InStr(1, checkstring, find)
  179.  leftstring = Left(checkstring, n-1)
  180.  rightstring=Right(checkstring, Len(checkstring)-n-Len(find)+1)
  181.  saveleft=saveleft+leftstring+ireplace
  182.  checkstring=rightstring
  183. Wend
  184. FindReplace_IBM = saveleft+checkstring
  185. End Function
  186.  
  187. Function FindReplace_Tuned (paraString As String, paraFrom As String, paraTo As String) As String
  188. &#39; IBM Method tuned
  189. Dim result As String
  190. result = paraString
  191. While InStr(result, paraFrom) &amp;lt;&amp;gt; 0
  192.  result = Left(result, InStr(result, paraFrom) - 1) &amp;amp; paraTo &amp;amp; Mid(result, InStr(result, paraFrom) + Len(paraFrom))
  193. Wend
  194. FindReplace_Tuned = result
  195. End Function
  196. &lt;/code&gt;&lt;/pre&gt;</description><link>https://notes-jj.blogspot.com/2016/05/lotusscript-easy-and-fast.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item></channel></rss>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=https%3A//notes-jj.blogspot.com/feeds/posts/default%3Falt%3Drss

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda