<?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-4522766360256712792</atom:id><lastBuildDate>Fri, 06 Sep 2024 04:44:08 +0000</lastBuildDate><category>Java</category><category>Performance</category><category>Core</category><category>linux</category><category>Design</category><category>Reflection</category><category>GC</category><category>unix</category><category>Android</category><category>Exception</category><category>Logging</category><category>Maven</category><category>wso2</category><category>Generics</category><category>Swings</category><category>Threads</category><category>shell</category><category>Annotations</category><category>Design Patterns</category><category>Hibernate</category><category>Innovation</category><category>Networking</category><category>Patterns</category><category>finder</category><category>mac</category><category>mysql</category><category>script</category><category>.Net</category><category>AM</category><category>Algorithm</category><category>ClassLoader</category><category>Docs</category><category>Eclipse</category><category>Firefox</category><category>IO</category><category>JIRA</category><category>JSP</category><category>JavaLowLevel</category><category>Json</category><category>Maths</category><category>NoSQL</category><category>NuGet</category><category>REST</category><category>RMI</category><category>Regex</category><category>SSH</category><category>Uml</category><category>ant</category><category>api</category><category>awk</category><category>aws</category><category>bash</category><category>c#</category><category>calendar</category><category>cloud</category><category>db</category><category>find</category><category>free-websites</category><category>ftp</category><category>git</category><category>git-repo</category><category>history</category><category>idea</category><category>intellij</category><category>ip</category><category>jboss</category><category>ms-office</category><category>mvn</category><category>oracle</category><category>sql</category><category>ssl</category><category>stdout</category><category>svn</category><category>terminal</category><category>tomcat</category><category>web</category><category>windows</category><category>wsdl</category><title>LOYOLITE</title><description>If you&#39;re gonna shoot, shoot!, Don&#39;t talk.!</description><link>http://varra.blogspot.com/</link><managingEditor>noreply@blogger.com (LOYOLITE ..!)</managingEditor><generator>Blogger</generator><openSearch:totalResults>295</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-2439943085834588676</guid><pubDate>Sat, 12 Nov 2022 08:23:00 +0000</pubDate><atom:updated>2022-11-12T00:24:32.998-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">unix</category><title> How do we kill the processes in linux/unix with a process name?</title><description>&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Below is the command to kill all the processes running based on a process name:&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;ps -ef | grep {process_name} | grep -v grep | awk &#39;{print $2}&#39; | xargs kill&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Eg: Kill all the processes that have chrome as part of the process name:&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;i&gt;ps -ef | grep chrome | grep -v grep | awk &#39;{print $2}&#39; | xargs kill&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;</description><link>http://varra.blogspot.com/2022/11/blog-post.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-4977024335768973743</guid><pubDate>Mon, 09 Mar 2020 07:18:00 +0000</pubDate><atom:updated>2020-03-09T00:18:21.574-07:00</atom:updated><title>Calculate Network Subnet Range efficiently!</title><description>&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  &lt;pre style=&quot;background-color:#282c34; color:#abb2bf; font-family:&#39;Consolas&#39;; font-size:10.5pt&quot;&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;lombok.AccessLevel&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;lombok.Builder&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;lombok.Data&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;lombok.experimental.Accessors&lt;/span&gt;;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.util.List&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.util.regex.Pattern&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.util.stream.IntStream&lt;/span&gt;;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;com.varra.auth.utils.CommonUtils&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;ipStringToLong&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.lang.Integer&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;parseInt&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.lang.Math&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;pow&lt;/span&gt;;&lt;br&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;import static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;java.util.stream.Collectors&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;toList&lt;/span&gt;;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;/**&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;color:#ff8c00&quot;&gt;TODO Description go here.&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff8c00&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;*&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;@author &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;Rajakrishna V. Reddy&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;@version &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;1.0&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt; */&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;public class &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;SubnetCalculator &lt;/span&gt;{&lt;br&gt;&lt;br&gt;    &lt;span style=&quot;color:#c678dd&quot;&gt;private static final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Pattern &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;CIDR_PATTERN &lt;/span&gt;= &lt;span style=&quot;color:#e5c07b&quot;&gt;Pattern&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;compile&lt;/span&gt;(&lt;span style=&quot;color:#98c379&quot;&gt;&amp;quot;/&amp;quot;&lt;/span&gt;);&lt;br&gt;&lt;br&gt;    &lt;span style=&quot;color:#e5c07b&quot;&gt;@Accessors&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;chain &lt;/span&gt;= &lt;span style=&quot;color:#c678dd&quot;&gt;true&lt;/span&gt;, &lt;span style=&quot;color:#d19a66&quot;&gt;fluent &lt;/span&gt;= &lt;span style=&quot;color:#c678dd&quot;&gt;true&lt;/span&gt;)&lt;br&gt;    &lt;span style=&quot;color:#e5c07b&quot;&gt;@Data&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;    @Builder&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;access &lt;/span&gt;= &lt;span style=&quot;color:#e5c07b&quot;&gt;AccessLevel&lt;/span&gt;.&lt;span style=&quot;color:#d19a66&quot;&gt;PRIVATE&lt;/span&gt;)&lt;br&gt;    &lt;span style=&quot;color:#c678dd&quot;&gt;public static class &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet &lt;/span&gt;{&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;private final int &lt;/span&gt;&lt;span style=&quot;color:#e06c75&quot;&gt;cidr&lt;/span&gt;;&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;private final int &lt;/span&gt;&lt;span style=&quot;color:#e06c75&quot;&gt;ipCount&lt;/span&gt;;&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;private final int &lt;/span&gt;&lt;span style=&quot;color:#e06c75&quot;&gt;startIp&lt;/span&gt;;&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;private final int &lt;/span&gt;&lt;span style=&quot;color:#e06c75&quot;&gt;endIp&lt;/span&gt;;&lt;br&gt;&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;public static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet &lt;/span&gt;&lt;span style=&quot;color:#61afef&quot;&gt;of&lt;/span&gt;(&lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;)&lt;br&gt;        {&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String&lt;/span&gt;[] ipWithCIDRTokens = &lt;span style=&quot;color:#d19a66&quot;&gt;CIDR_PATTERN&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;split&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;);&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;final int &lt;/span&gt;numericCIDR = &lt;span style=&quot;color:#61afef&quot;&gt;parseInt&lt;/span&gt;(ipWithCIDRTokens[&lt;span style=&quot;color:#d19a66&quot;&gt;1&lt;/span&gt;]);&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;final int &lt;/span&gt;netmaskNumeric = &lt;span style=&quot;color:#d19a66&quot;&gt;0xffffffff &lt;/span&gt;&amp;lt;&amp;lt; (&lt;span style=&quot;color:#d19a66&quot;&gt;32 &lt;/span&gt;- numericCIDR);&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;final int &lt;/span&gt;numberOfIPs = (&lt;span style=&quot;color:#c678dd&quot;&gt;int&lt;/span&gt;) &lt;span style=&quot;color:#61afef&quot;&gt;pow&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color:#d19a66&quot;&gt;32 &lt;/span&gt;- numericCIDR) - &lt;span style=&quot;color:#d19a66&quot;&gt;1&lt;/span&gt;;&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;final int &lt;/span&gt;baseIP = (&lt;span style=&quot;color:#c678dd&quot;&gt;int&lt;/span&gt;)&lt;span style=&quot;color:#61afef&quot;&gt;ipStringToLong&lt;/span&gt;(ipWithCIDRTokens[&lt;span style=&quot;color:#d19a66&quot;&gt;0&lt;/span&gt;]) &amp;amp; netmaskNumeric;&lt;br&gt;            &lt;span style=&quot;color:#c678dd&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;builder&lt;/span&gt;().&lt;span style=&quot;color:#61afef&quot;&gt;cidr&lt;/span&gt;(numericCIDR).&lt;span style=&quot;color:#61afef&quot;&gt;ipCount&lt;/span&gt;(numberOfIPs).&lt;span style=&quot;color:#61afef&quot;&gt;startIp&lt;/span&gt;(baseIP).&lt;span style=&quot;color:#61afef&quot;&gt;endIp&lt;/span&gt;(baseIP &amp;#43; numberOfIPs -&lt;span style=&quot;color:#d19a66&quot;&gt;1&lt;/span&gt;).&lt;span style=&quot;color:#61afef&quot;&gt;build&lt;/span&gt;();&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    &lt;span style=&quot;color:#5c6370&quot;&gt;/**&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     * Specify IP in CIDR format like: new IPv4(&amp;quot;10.1.0.25/16&amp;quot;);&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     *&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     * &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;@param &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;&amp;quot;&amp;quot;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     */&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;public static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String&lt;/span&gt;&amp;gt; &lt;span style=&quot;color:#61afef&quot;&gt;getAvailableIps&lt;/span&gt;(&lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;) &lt;span style=&quot;color:#c678dd&quot;&gt;throws &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;NumberFormatException &lt;/span&gt;{&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color:#61afef&quot;&gt;getAvailableIpsAsIntegers&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;).&lt;span style=&quot;color:#61afef&quot;&gt;mapToObj&lt;/span&gt;(&lt;span style=&quot;color:#e5c07b&quot;&gt;CommonUtils&lt;/span&gt;::&lt;span style=&quot;color:#61afef&quot;&gt;ipLongToString&lt;/span&gt;).&lt;span style=&quot;color:#61afef&quot;&gt;collect&lt;/span&gt;(&lt;span style=&quot;color:#61afef&quot;&gt;toList&lt;/span&gt;());&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    &lt;span style=&quot;color:#5c6370&quot;&gt;/**&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     * Specify IP in CIDR format like: new IPv4(&amp;quot;10.1.0.25/16&amp;quot;);&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     *&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     * &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;@param &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;&amp;quot;&amp;quot;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     * &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;@return &lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;IntStream Stream of ips as integers&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;     */&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color:#5c6370&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color:#c678dd&quot;&gt;public static &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;IntStream &lt;/span&gt;&lt;span style=&quot;color:#61afef&quot;&gt;getAvailableIpsAsIntegers&lt;/span&gt;(&lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;) &lt;span style=&quot;color:#c678dd&quot;&gt;throws &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;NumberFormatException &lt;/span&gt;{&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet &lt;/span&gt;subnet = &lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;of&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;);&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;IntStream&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;range&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;1&lt;/span&gt;, subnet.&lt;span style=&quot;color:#61afef&quot;&gt;ipCount&lt;/span&gt;()).&lt;span style=&quot;color:#61afef&quot;&gt;map&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;i &lt;/span&gt;-&amp;gt; &lt;span style=&quot;color:#d19a66&quot;&gt;i &lt;/span&gt;&amp;#43; subnet.&lt;span style=&quot;color:#61afef&quot;&gt;startIp&lt;/span&gt;());&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    &lt;span style=&quot;color:#c678dd&quot;&gt;public static boolean &lt;/span&gt;&lt;span style=&quot;color:#61afef&quot;&gt;isIpWithInSubnet&lt;/span&gt;(&lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;, &lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;String &lt;/span&gt;&lt;span style=&quot;color:#d19a66&quot;&gt;ip&lt;/span&gt;) &lt;span style=&quot;color:#c678dd&quot;&gt;throws &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;NumberFormatException &lt;/span&gt;{&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;final &lt;/span&gt;&lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet &lt;/span&gt;subnet = &lt;span style=&quot;color:#e5c07b&quot;&gt;Subnet&lt;/span&gt;.&lt;span style=&quot;color:#61afef&quot;&gt;of&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;ipWithCIDR&lt;/span&gt;);&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;final int &lt;/span&gt;ipAsInt = (&lt;span style=&quot;color:#c678dd&quot;&gt;int&lt;/span&gt;) &lt;span style=&quot;color:#61afef&quot;&gt;ipStringToLong&lt;/span&gt;(&lt;span style=&quot;color:#d19a66&quot;&gt;ip&lt;/span&gt;);&lt;br&gt;        &lt;span style=&quot;color:#c678dd&quot;&gt;return &lt;/span&gt;subnet.&lt;span style=&quot;color:#61afef&quot;&gt;startIp&lt;/span&gt;() &amp;lt;= ipAsInt &amp;amp;&amp;amp; ipAsInt &amp;lt;= subnet.&lt;span style=&quot;color:#61afef&quot;&gt;endIp&lt;/span&gt;();&lt;br&gt;    }&lt;br&gt;}&lt;/pre&gt;  &lt;/div&gt;  &lt;div id=&quot;Signature&quot;&gt;  &lt;div&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;br&gt;  &lt;/font&gt;&lt;/div&gt;  &lt;/div&gt;  </description><link>http://varra.blogspot.com/2020/03/calculate-network-subnet-range.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-5967569065566762293</guid><pubDate>Fri, 07 Feb 2020 09:42:00 +0000</pubDate><atom:updated>2020-02-07T01:42:59.139-08:00</atom:updated><title>Problem with github: permission denied to your own repo In Windows!! ??</title><description>&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  &lt;p style=&quot;margin: 0.95em 0px 1.2em; padding: 0.2em; color: rgb(10, 10, 10); font-family: Palatino, &amp;quot;Palatino Linotype&amp;quot;, &amp;quot;Palatino LT STD&amp;quot;, &amp;quot;Book Antiqua&amp;quot;, Georgia, serif; font-size: 21px; text-align: left&quot;&gt;  Using multiple GitHub Accounts on Windows sucks by default. If you are tired of Window&#39;s Credential Manager storing only one account&#39;s credential for git:&lt;a href=&quot;https://github.com/&quot; style=&quot;color: var(--theme-anchor-color, #557de8)&quot;&gt;https://github.com&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;then   here is a 1-minute fix for you.&lt;/p&gt;  &lt;h2 style=&quot;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 1.7em; line-height: 1.14em; padding-left: 6px; padding-right: 6px; margin-bottom: 0.5em; color: rgb(10, 10, 10); text-align: left&quot;&gt;  &lt;a href=&quot;https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad#tldr&quot; style=&quot;color: var(--theme-anchor-color, #557de8); margin-top: 0px; top: -50px; display: block; visibility: hidden&quot;&gt;&lt;/a&gt;TL;DR&lt;/h2&gt;  &lt;p style=&quot;margin: 0.95em 0px 1.2em; padding: 0.2em; color: rgb(10, 10, 10); font-family: Palatino, &amp;quot;Palatino Linotype&amp;quot;, &amp;quot;Palatino LT STD&amp;quot;, &amp;quot;Book Antiqua&amp;quot;, Georgia, serif; font-size: 21px; text-align: left&quot;&gt;  If you know what you&#39;re doing just:&lt;/p&gt;  &lt;ul style=&quot;padding-left: 6px; margin: 0.8em 0.7em 0.8em 1.9em; list-style-type: square; color: rgb(10, 10, 10); font-family: Palatino, &amp;quot;Palatino Linotype&amp;quot;, &amp;quot;Palatino LT STD&amp;quot;, &amp;quot;Book Antiqua&amp;quot;, Georgia, serif; font-size: 21px; text-align: left&quot;&gt;  &lt;li style=&quot;margin: 0.3em auto&quot;&gt;delete your GitHub credentials from Windows Credential Manager&lt;/li&gt;&lt;li style=&quot;margin: 0.3em auto&quot;&gt;run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;margin: auto; background: var(--theme-code-background, #f9f9fa); padding: 0.1em 0.3em 0px; border-radius: 2px; color: var(--theme-code-color, #333842); font-size: 0.84em; vertical-align: 0px; max-width: 100%; line-height: 1.6em&quot;&gt;git   config --global credential.github.com.useHttpPath true&lt;/code&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0.3em auto&quot;&gt;continue coding&lt;/li&gt;&lt;/ul&gt;  &lt;p style=&quot;margin: 0.95em 0px 1.2em; padding: 0.2em; color: rgb(10, 10, 10); font-family: Palatino, &amp;quot;Palatino Linotype&amp;quot;, &amp;quot;Palatino LT STD&amp;quot;, &amp;quot;Book Antiqua&amp;quot;, Georgia, serif; font-size: 21px; text-align: left&quot;&gt;  If you need more detailed instructions and learn about the background just read on here:&amp;nbsp;&lt;a href=&quot;https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad&quot; id=&quot;LPlnk570385&quot;&gt;https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad&lt;/a&gt;&lt;/p&gt;  &lt;div id=&quot;LPBorder_GTaHR0cHM6Ly9kZXYudG8vY29uZmlnY2F0L2xhenktbWFuLXMtZ3VpZGUtbXVsdGlwbGUtZ2l0aHViLWh0dHBzLWFjY291bnRzLW9uLXdpbmRvd3MtMm1hZA..&quot; class=&quot;LPBorder908184&quot; contenteditable=&quot;false&quot; style=&quot;width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;&quot;&gt;  &lt;table id=&quot;LPContainer908184&quot; role=&quot;presentation&quot; style=&quot;padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;&quot;&gt;  &lt;tbody&gt;  &lt;tr valign=&quot;top&quot; style=&quot;border-spacing: 0px;&quot;&gt;  &lt;td&gt;  &lt;div id=&quot;LPImageContainer908184&quot; style=&quot;position: relative; margin-right: 12px; height: 127.66px; overflow: hidden; width: 240px;&quot;&gt;  &lt;a target=&quot;_blank&quot; id=&quot;LPImageAnchor908184&quot; href=&quot;https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad&quot;&gt;&lt;img id=&quot;LPThumbnailImageId908184&quot; alt=&quot;&quot; height=&quot;127&quot; style=&quot;display: block;&quot; width=&quot;240&quot; src=&quot;https://dev.to/social_previews/article/154823.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;  &lt;/td&gt;  &lt;td style=&quot;width: 100%;&quot;&gt;  &lt;div id=&quot;LPTitle908184&quot; style=&quot;font-size: 21px; font-weight: 300; margin-right: 8px; font-family: wf_segoe-ui_light, &amp;quot;Segoe UI Light&amp;quot;, &amp;quot;Segoe WP Light&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe WP&amp;quot;, Tahoma, Arial, sans-serif; margin-bottom: 12px;&quot;&gt;  &lt;a target=&quot;_blank&quot; id=&quot;LPUrlAnchor908184&quot; href=&quot;https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad&quot; style=&quot;text-decoration: none; color: var(--themePrimary);&quot;&gt;Lazy man&#39;s guide: multiple GitHub HTTPS accounts on Windows   - DEV Community&lt;/a&gt;&lt;/div&gt;  &lt;div id=&quot;LPDescription908184&quot; style=&quot;font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe WP&amp;quot;, Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;&quot;&gt;  Git is definitely one of those things that gets painful on Windows. Especially if you&#39;re using some GUI client as well. Not sure how I feel about using SSH config vs git config to select the right key, but I&#39;ve mostly phased out HTTPS because of the headaches   (other than for the occasional quick clone).&lt;/div&gt;  &lt;div id=&quot;LPMetadata908184&quot; style=&quot;font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe WP&amp;quot;, Tahoma, Arial, sans-serif;&quot;&gt;  dev.to&lt;/div&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;/tbody&gt;  &lt;/table&gt;  &lt;/div&gt;  &lt;br&gt;  &lt;br&gt;  &lt;/div&gt;  </description><link>http://varra.blogspot.com/2020/02/problem-with-github-permission-denied.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-2485353538669254329</guid><pubDate>Thu, 05 Dec 2019 09:57:00 +0000</pubDate><atom:updated>2019-12-05T01:57:30.579-08:00</atom:updated><title>Problem with github: permission denied to your own repo?</title><description>&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  &lt;span&gt;&amp;nbsp;I had this problem too but managed to solve it, the error is that ur computer has saved a git username and password so if you shift to another account the error 403 will appear. Below is the solution&lt;br&gt;  &lt;/span&gt;  &lt;div&gt;&lt;u&gt;&lt;br&gt;  &lt;/u&gt;&lt;/div&gt;  &lt;div&gt;&lt;u&gt;For Windows you can find the keys here:&lt;/u&gt;&lt;br&gt;  &lt;/div&gt;  &lt;div&gt;&lt;br&gt;  &lt;/div&gt;  &lt;div&gt;&lt;b&gt;control panel &amp;gt; user accounts &amp;gt; credential manager &amp;gt; Windows credentials &amp;gt; Generic credentials&lt;br&gt;  &lt;/b&gt;&lt;/div&gt;  &lt;div&gt;&lt;br&gt;  &lt;/div&gt;  &lt;span&gt;Next -&amp;gt; remove the Github keys.&lt;/span&gt;&lt;br&gt;  &lt;/div&gt;  </description><link>http://varra.blogspot.com/2019/12/problem-with-github-permission-denied.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-673919169168437170</guid><pubDate>Tue, 13 Aug 2019 06:38:00 +0000</pubDate><atom:updated>2019-08-12T23:38:55.415-07:00</atom:updated><title>How to replace all the entries in a string in Javascript? like replaceAll?</title><description>&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  This should do the trick by adding a new method (&lt;b&gt;replaceAll)&lt;/b&gt; to the String prototype.&lt;/div&gt;  &lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  &lt;br&gt;  &lt;/div&gt;  &lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  &lt;span&gt;&lt;i&gt;String.prototype.replaceAll = function(search, replacement){&lt;/i&gt;&lt;/span&gt;  &lt;div&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return this.replace(new RegExp(search, &#39;g&#39;), replacement);&lt;br&gt;  &lt;/i&gt;&lt;/div&gt;  &lt;span&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;  &lt;div id=&quot;Signature&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;i&gt;&lt;/i&gt;  &lt;div&gt;&lt;br&gt;  &lt;/div&gt;  &lt;/font&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2019/08/how-to-replace-all-entries-in-string-in.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-2610569002356991404</guid><pubDate>Tue, 07 Aug 2018 09:16:00 +0000</pubDate><atom:updated>2018-08-07T02:17:00.725-07:00</atom:updated><title>How to increase the number of processes in Oracle DB</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)&quot;&gt;The solution to this question is to increase the number of processes :&lt;/p&gt;&lt;ol style=&quot;margin:0px 0px 1em 30px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;vertical-align:baseline;list-style-position:initial;box-sizing:inherit;color:rgb(36,39,41)&quot;&gt;&lt;li style=&quot;margin:0px 0px 0.5em;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;word-wrap:break-word&quot;&gt;&lt;font size=&quot;4&quot;&gt;Open command prompt&lt;/font&gt;&lt;/li&gt;&lt;li style=&quot;margin:0px 0px 0.5em;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;word-wrap:break-word&quot;&gt;&lt;code style=&quot;margin:0px;padding:1px 5px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap&quot;&gt;&lt;font size=&quot;4&quot;&gt;sqlplus / as sysdba&lt;/font&gt;&lt;/code&gt;&lt;/li&gt;&lt;li style=&quot;margin:0px 0px 0.5em;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;word-wrap:break-word&quot;&gt;&lt;code style=&quot;margin:0px;padding:1px 5px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap&quot;&gt;&lt;font size=&quot;4&quot;&gt;startup force;&lt;/font&gt;&lt;/code&gt;&lt;/li&gt;&lt;li style=&quot;margin:0px 0px 0.5em;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;word-wrap:break-word&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;code style=&quot;margin:0px;padding:1px 5px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap&quot;&gt;show parameter processes;&lt;/code&gt; &lt;em style=&quot;margin:0px;padding:0px;border:0px;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit&quot;&gt;-- This shows 150 processes allocated, i will increase the count to 800 now&lt;/em&gt;&lt;/font&gt;&lt;/li&gt;&lt;li style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit;word-wrap:break-word&quot;&gt;&lt;code style=&quot;margin:0px;padding:1px 5px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:rgb(239,240,241);white-space:pre-wrap&quot;&gt;&lt;font size=&quot;4&quot;&gt;alter system set processes=800 scope=spfile;&lt;/font&gt;&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,&amp;quot;Helvetica Neue&amp;quot;,Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)&quot;&gt;Tried and tested.&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/08/how-to-increase-number-of-processes-in.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-3430783462958444787</guid><pubDate>Mon, 02 Jul 2018 11:55:00 +0000</pubDate><atom:updated>2018-07-02T04:55:35.645-07:00</atom:updated><title>How to setup a beyond compare as git mergetool?</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;How to set up a beyond compare as git mergetool?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;git config --global diff.tool bc3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;git config --global difftool.bc3.path &amp;quot;c:/program files/beyond compare 4/bcomp.exe&amp;quot;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;git config --global merge.tool bc3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;git config --global mergetool.bc3.path &amp;quot;c:/program files/beyond compare 4/bcomp.exe&amp;quot;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If the above instructions aren&amp;#39;t working on your system, it&amp;#39;s possible repository local settings are overriding the global settings.&lt;/div&gt;&lt;div&gt;The contents of the global git config file (c:\users\username\.gitconfig) from my working test system:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;[diff]&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;        tool = bc3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;[difftool &amp;quot;bc3&amp;quot;]&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;        path = c:/program files/beyond compare 4/bcomp.exe&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;[merge]&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;        tool = bc3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;[mergetool &amp;quot;bc3&amp;quot;]&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;        path = c:/program files/beyond compare 4/bcomp.exe&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/07/how-to-setup-beyond-compare-as-git.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-3964636338307200819</guid><pubDate>Mon, 28 May 2018 08:54:00 +0000</pubDate><atom:updated>2018-05-28T01:54:14.317-07:00</atom:updated><title>How to merge a branch in git</title><description>&lt;div dir=&quot;ltr&quot;&gt;Follow the commands below to do the auto merge the branch in git:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;$ git checkout -b &lt;b&gt;{new-branch-name}&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;$ git merge --no-ff &lt;span style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline&quot;&gt;&lt;b&gt;{old-branch-name}&lt;/b&gt;&lt;/span&gt;    &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline&quot;&gt;$ git push -u origin &lt;b&gt;{new-branch-name}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/how-to-merge-branch-in-git.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-6371718937192294673</guid><pubDate>Fri, 25 May 2018 20:17:00 +0000</pubDate><atom:updated>2018-05-25T13:17:26.183-07:00</atom:updated><title>Concatenating and combining lists in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;u&gt;&lt;b&gt;CODE:&lt;/b&gt;&lt;/u&gt;&lt;div&gt;[4, None, &amp;#39;foo&amp;#39;] + [7, 8, (2, 3)]&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;or&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;x = [4, None, &amp;#39;foo&amp;#39;]&lt;br&gt;&lt;/div&gt;&lt;div&gt;x.extend([7, 8, (2, 3)])&lt;br&gt;&lt;/div&gt;&lt;div&gt;print(x)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;[4, None, &amp;#39;foo&amp;#39;, 7, 8, (2, 3)]&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/concatenating-and-combining-lists-in.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-6564928751094623608</guid><pubDate>Fri, 25 May 2018 20:03:00 +0000</pubDate><atom:updated>2018-05-25T13:04:08.466-07:00</atom:updated><title>Ternary expressions in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;A ternary expression in Python allows you to combine an if-else block that produces&lt;/div&gt;&lt;div&gt;a value into a single line or expression. The syntax for this in Python is:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;value = &lt;b&gt;true-expr if condition else false-expr&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here, true-expr and false-expr can be any Python expressions. It has the identical&lt;/div&gt;&lt;div&gt;effect as the more verbose:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;if condition:&lt;/div&gt;&lt;div&gt;    value = true-expr&lt;/div&gt;&lt;div&gt;else:&lt;/div&gt;&lt;div&gt;    value = false-expr&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is a more concrete example:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;CODE:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;x = 5&lt;/div&gt;&lt;div&gt;&amp;#39;Non-negative&amp;#39; if x &amp;gt;= 0 else &amp;#39;Negative&amp;#39;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;#39;Non-negative&amp;#39;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/ternary-expressions-in-python.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-213916133725374771</guid><pubDate>Fri, 25 May 2018 20:00:00 +0000</pubDate><atom:updated>2018-05-25T13:00:15.583-07:00</atom:updated><title>What is pass in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;&lt;b&gt;pass &lt;/b&gt;is the &quot;no-op&quot; statement in Python. It can be used in blocks where no action is to&lt;/div&gt;&lt;div&gt;be taken (or as a placeholder for code not yet implemented); it is only required&lt;/div&gt;&lt;div&gt;because Python uses whitespace to delimit blocks:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;Eg:&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;if x &amp;lt; 0:&lt;/div&gt;&lt;div&gt;    print(&amp;#39;negative!&amp;#39;)&lt;/div&gt;&lt;div&gt;elif x == 0:&lt;/div&gt;&lt;div&gt;    # TODO: put something smart here&lt;/div&gt;&lt;div&gt;    pass&lt;/div&gt;&lt;div&gt;else:&lt;/div&gt;&lt;div&gt;    print(&amp;#39;positive!&amp;#39;)&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/what-is-pass-in-python.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-7166893824906439880</guid><pubDate>Fri, 25 May 2018 19:57:00 +0000</pubDate><atom:updated>2018-05-25T12:57:59.121-07:00</atom:updated><title>How to chain comparisons in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;u&gt;&lt;b&gt;CODE:&lt;/b&gt;&lt;/u&gt;&lt;div&gt;print(4 &amp;gt; 3 &amp;gt; 2 &amp;gt; 1)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;True&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;u&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/how-to-chain-comparisons-in-python.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-483818471323307367</guid><pubDate>Fri, 25 May 2018 19:52:00 +0000</pubDate><atom:updated>2018-05-25T12:53:13.759-07:00</atom:updated><title>What are the datetime format specifications (ISO C89 compatible) in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;Below are the Datetime format specification (ISO C89 compatible) in Python:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS9EMFhtUr9o_sHmU_BWkufdhIVW9uetaf8H0WSb5hpDU7oGBOhnnbEAKurY5YETXJ6r9bfD7K5C3zXxAmVG0_4vm2WGbwCQc0tjoqyqTGpxXmqvuJAXFt0ZIHmImMFP-JFIOYQLqvFw0/s1600/image-793791.png&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS9EMFhtUr9o_sHmU_BWkufdhIVW9uetaf8H0WSb5hpDU7oGBOhnnbEAKurY5YETXJ6r9bfD7K5C3zXxAmVG0_4vm2WGbwCQc0tjoqyqTGpxXmqvuJAXFt0ZIHmImMFP-JFIOYQLqvFw0/s320/image-793791.png&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_6559609033182485410&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsnKKcJAjsD9sTzsaYkjgn9AzMctd-VG_0hnFaUQzZmdL8wlDyhuT8E5jzgy_uTFs1O-6ECCym-9yVR6azUALRUgs5XazSJ28MZ_ewulklVVAFA-moEc7jx4deE7h7-N5iTqIrZBw4KgQ/s1600/image-795839.png&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsnKKcJAjsD9sTzsaYkjgn9AzMctd-VG_0hnFaUQzZmdL8wlDyhuT8E5jzgy_uTFs1O-6ECCym-9yVR6azUALRUgs5XazSJ28MZ_ewulklVVAFA-moEc7jx4deE7h7-N5iTqIrZBw4KgQ/s320/image-795839.png&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_6559609045662155106&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/what-are-datetime-format-specifications.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS9EMFhtUr9o_sHmU_BWkufdhIVW9uetaf8H0WSb5hpDU7oGBOhnnbEAKurY5YETXJ6r9bfD7K5C3zXxAmVG0_4vm2WGbwCQc0tjoqyqTGpxXmqvuJAXFt0ZIHmImMFP-JFIOYQLqvFw0/s72-c/image-793791.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-7634714558216889747</guid><pubDate>Fri, 25 May 2018 19:47:00 +0000</pubDate><atom:updated>2018-05-25T12:47:22.529-07:00</atom:updated><title>Why triple quotes (&quot; &quot; &quot;) are used in Python</title><description>&lt;div dir=&quot;ltr&quot;&gt;For multiline strings with line breaks, you can use triple quotes, either &amp;#39;&amp;#39;&amp;#39; or &amp;quot; &amp;quot; &amp;quot;:&lt;br clear=&quot;all&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;c = &amp;quot;&amp;quot;&amp;quot;&lt;/div&gt;&lt;div&gt;This is a long string that&lt;/div&gt;&lt;div&gt;spans multiple lines&lt;/div&gt;&lt;div&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/why-triple-quotes-are-used-in-python.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-8660363897677147134</guid><pubDate>Fri, 25 May 2018 19:45:00 +0000</pubDate><atom:updated>2018-05-25T12:45:25.416-07:00</atom:updated><title>Standard Python scalar types</title><description>&lt;div dir=&quot;ltr&quot;&gt;Below are the standard Python scalar types:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;Type: Description&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;None:&lt;/b&gt; The Python &quot;null&quot; value (only one instance of the None object exists)&lt;/div&gt;&lt;div&gt;&lt;b&gt;str:&lt;/b&gt; String type; holds Unicode (UTF-8 encoded) strings&lt;/div&gt;&lt;div&gt;&lt;b&gt;bytes:&lt;/b&gt; Raw ASCII bytes (or Unicode encoded as bytes)&lt;/div&gt;&lt;div&gt;&lt;b&gt;float:&lt;/b&gt; Double-precision (64-bit) floating-point number (note there is no separate double type)&lt;/div&gt;&lt;div&gt;&lt;b&gt;bool:&lt;/b&gt; A True or False value&lt;/div&gt;&lt;div&gt;&lt;b&gt;int:&lt;/b&gt; Arbitrary precision signed integer&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqHCHIS6D24TILcys10BfTBDkvxgpiX-N6zw2k7eHHq7tCF_XG-tU_s9I-3KZ19vZVPHjovWC04tO4C79dyrjs1z7rB6B9joiNXiN3kL6Cbu_JeITLknRvIcaeGMQdCuze7_K9WjBBPTI/s1600/image-725417.png&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqHCHIS6D24TILcys10BfTBDkvxgpiX-N6zw2k7eHHq7tCF_XG-tU_s9I-3KZ19vZVPHjovWC04tO4C79dyrjs1z7rB6B9joiNXiN3kL6Cbu_JeITLknRvIcaeGMQdCuze7_K9WjBBPTI/s320/image-725417.png&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_6559607022090091698&quot; /&gt;&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/standard-python-scalar-types.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqHCHIS6D24TILcys10BfTBDkvxgpiX-N6zw2k7eHHq7tCF_XG-tU_s9I-3KZ19vZVPHjovWC04tO4C79dyrjs1z7rB6B9joiNXiN3kL6Cbu_JeITLknRvIcaeGMQdCuze7_K9WjBBPTI/s72-c/image-725417.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-60694710730284269</guid><pubDate>Fri, 25 May 2018 19:33:00 +0000</pubDate><atom:updated>2018-05-25T12:33:56.028-07:00</atom:updated><title>How to check/get/set an attribute or a method in Python (Reflection)</title><description>&lt;div dir=&quot;ltr&quot;&gt;Python allows an easy way to check whether an object contains/has an attribute or method with the specified name as follows:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1) &lt;b&gt;getattr:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Gets the attribute/method with the specified name, usage as follows:&lt;/b&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;usage: getattr(obj, &amp;#39;method/attribute name&amp;#39;)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;eg: &lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;a=&amp;#39;RK&amp;#39;; &lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;getattr(a, &amp;#39;split&amp;#39;)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;2) hasattr:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div style=&quot;font-weight:400;display:inline!important&quot;&gt;&lt;b&gt;Checks whether object has the attribute/method with the specified name, usage as follows:&lt;/b&gt;&lt;/div&gt;&lt;/b&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial&quot;&gt;&lt;b&gt;usage:&lt;span&gt; has&lt;/span&gt;&lt;span class=&quot;gmail-gr_ gmail-gr_282 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling&quot; id=&quot;gmail-282&quot; style=&quot;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit&quot;&gt;attr&lt;/span&gt;(obj, &amp;#39;method/attribute name&amp;#39;)&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial&quot;&gt;&lt;b&gt;eg: &lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial&quot;&gt;&lt;b&gt;a=&amp;#39;RK&amp;#39;; &lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial&quot;&gt;&lt;b&gt;&lt;span class=&quot;gmail-gr_ gmail-gr_357 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling&quot; id=&quot;gmail-357&quot; style=&quot;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit&quot;&gt;&lt;span class=&quot;gmail-gr_ gmail-gr_402 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling&quot; id=&quot;gmail-402&quot; style=&quot;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit&quot;&gt;&lt;span class=&quot;gmail-gr_ gmail-gr_425 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling&quot; id=&quot;gmail-425&quot; style=&quot;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit&quot;&gt;&lt;span class=&quot;gmail-gr_ gmail-gr_442 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling&quot; id=&quot;gmail-442&quot; style=&quot;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit&quot;&gt;hasattr&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;(a, &amp;#39;split&amp;#39;)&lt;/b&gt;&lt;/div&gt;&lt;br class=&quot;gmail-Apple-interchange-newline&quot;&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;3) setattr:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Sets the attribute/method with the specified name, usage as follows:&lt;/b&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;usage: setattr(obj, &amp;#39;method/attribute name&amp;#39;, value)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;eg: &lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;a=Employee(23)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;setattr(a, &amp;#39;id&amp;#39;, 45)&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/how-to-checkgetset-attribute-or-method.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-7505053136732546036</guid><pubDate>Fri, 25 May 2018 19:22:00 +0000</pubDate><atom:updated>2018-05-25T12:23:26.634-07:00</atom:updated><title>Python assignments are by references</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When assigning a variable (or name) in Python, you are creating a reference, have a look at below:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;CODE:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
a=[1,2]&lt;/div&gt;
&lt;div&gt;
b=a&lt;/div&gt;
&lt;div&gt;
print(&quot;Before append: &quot;, b)&lt;/div&gt;
&lt;div&gt;
b.append(3)&lt;/div&gt;
&lt;div&gt;
print(&quot;Shows a &amp;amp; b are same references, after append to b, a: &quot;, a)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;border-radius: 0px; border: 0px; box-sizing: border-box; color: rgb(0 , 0 , 0); display: block; font-family: monospace; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px; overflow: auto; padding: 1px 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;b&gt;Before append:  [1, 2]&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;border-radius: 0px; border: 0px; box-sizing: border-box; color: rgb(0 , 0 , 0); display: block; font-family: monospace; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px; overflow: auto; padding: 1px 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;b&gt;Shows a &amp;amp; b are same references, after append to b, a:  [1, 2, 3]&lt;/b&gt;&lt;/pre&gt;
&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://varra.blogspot.com/2018/05/python-assignments-are-by-references.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-5226716614821111218</guid><pubDate>Fri, 25 May 2018 19:09:00 +0000</pubDate><atom:updated>2018-05-25T12:10:06.751-07:00</atom:updated><title>How to get rid of `grep: warning: GREP_OPTIONS is deprecated; please use an alias or script`?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Need to have an alias for grep to make the output colored as follows and unset the &lt;b&gt;GREP_OPTIONS&lt;/b&gt;.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;strong style=&quot;color: rgb(51 , 51 , 51); font-family: sans-serif; font-size: 13px; font-style: normal; font-weight: bold; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;alias grep=&quot;grep --color=auto&quot;&lt;br style=&quot;font-family: sans-serif;&quot; /&gt;unset GREP_OPTIONS&lt;/strong&gt; &lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://varra.blogspot.com/2018/05/how-to-get-rid-of-grep-warning.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-6664176062881968369</guid><pubDate>Mon, 21 May 2018 09:15:00 +0000</pubDate><atom:updated>2018-05-21T02:15:53.005-07:00</atom:updated><title>How to create a self signed certificate, and how to validate the JWT token using Nimbus</title><description>&lt;div dir=&quot;ltr&quot;&gt;This post will help you to generate a self-signed certificate and show you how to validate the JWT token using Nimbus Jose JWT library.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;package com.varra.samples;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;import java.io.IOException;&lt;/div&gt;&lt;div&gt;import java.math.BigInteger;&lt;/div&gt;&lt;div&gt;import java.security.GeneralSecurityException;&lt;/div&gt;&lt;div&gt;import java.security.KeyFactory;&lt;/div&gt;&lt;div&gt;import java.security.KeyPair;&lt;/div&gt;&lt;div&gt;import java.security.KeyPairGenerator;&lt;/div&gt;&lt;div&gt;import java.security.PrivateKey;&lt;/div&gt;&lt;div&gt;import java.security.SecureRandom;&lt;/div&gt;&lt;div&gt;import java.security.cert.X509Certificate;&lt;/div&gt;&lt;div&gt;import java.security.interfaces.RSAPrivateKey;&lt;/div&gt;&lt;div&gt;import java.security.interfaces.RSAPublicKey;&lt;/div&gt;&lt;div&gt;import java.security.spec.X509EncodedKeySpec;&lt;/div&gt;&lt;div&gt;import java.util.Base64;&lt;/div&gt;&lt;div&gt;import java.util.Date;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jose.JWSAlgorithm;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jose.JWSHeader;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jose.JWSSigner;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jose.crypto.RSASSASigner;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jose.crypto.RSASSAVerifier;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jwt.JWTClaimsSet;&lt;/div&gt;&lt;div&gt;import com.nimbusds.jwt.SignedJWT;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;import sun.security.rsa.RSAPublicKeyImpl;&lt;/div&gt;&lt;div&gt;import sun.security.x509.AlgorithmId;&lt;/div&gt;&lt;div&gt;import sun.security.x509.CertificateAlgorithmId;&lt;/div&gt;&lt;div&gt;import sun.security.x509.CertificateSerialNumber;&lt;/div&gt;&lt;div&gt;import sun.security.x509.CertificateValidity;&lt;/div&gt;&lt;div&gt;import sun.security.x509.CertificateVersion;&lt;/div&gt;&lt;div&gt;import sun.security.x509.CertificateX509Key;&lt;/div&gt;&lt;div&gt;import sun.security.x509.X500Name;&lt;/div&gt;&lt;div&gt;import sun.security.x509.X509CertImpl;&lt;/div&gt;&lt;div&gt;import sun.security.x509.X509CertInfo;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;public class JWTTokenUtils {&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;/** &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * Create a self-signed X.509 Certificate&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * @param dn the X.509 Distinguished Name, eg &amp;quot;CN=RK, L=Hyderabad, C=Hyderabad&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * @param pair the KeyPair&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * @param days how many days from now the Certificate is valid for&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * @param algorithm the signing algorithm, eg &amp;quot;SHA1withRSA&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; */ &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;public static X509Certificate generateCertificate(String dn, KeyPair pair, int days, String algorithm)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  throws GeneralSecurityException, IOException&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  PrivateKey privkey = pair.getPrivate();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  X509CertInfo info = new X509CertInfo();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  Date from = new Date();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  Date to = new Date(from.getTime() + days * 86400000l);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  CertificateValidity interval = new CertificateValidity(from, to);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  BigInteger sn = new BigInteger(64, new SecureRandom());&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  X500Name owner = new X500Name(dn);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.VALIDITY, interval);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.SERIAL_NUMBER, new CertificateSerialNumber(sn));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  //info.set(X509CertInfo.SUBJECT, new CertificateSubjectName(owner));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.SUBJECT, owner);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.ISSUER, owner);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.KEY, new CertificateX509Key(pair.getPublic()));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.VERSION, new CertificateVersion(CertificateVersion.V3));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  AlgorithmId algo = new AlgorithmId(AlgorithmId.md5WithRSAEncryption_oid);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(X509CertInfo.ALGORITHM_ID, new CertificateAlgorithmId(algo));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  // Sign the cert to identify the algorithm that&amp;#39;s used.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  X509CertImpl cert = new X509CertImpl(info);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  cert.sign(privkey, algorithm);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  // Update the algorith, and resign.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  algo = (AlgorithmId)cert.get(X509CertImpl.SIG_ALG);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  info.set(CertificateAlgorithmId.NAME + &amp;quot;.&amp;quot; + CertificateAlgorithmId.ALGORITHM, algo);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  cert = new X509CertImpl(info);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  cert.sign(privkey, algorithm);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  return cert;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;public static String generateToken(RSAPrivateKey privateKey) throws Exception&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;// Create RSA-signer with the private key&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final JWSSigner signer = new RSASSASigner(privateKey);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;// Prepare JWT with claims set&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final JWTClaimsSet claimsSet = new JWTClaimsSet.Builder()&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .subject(&amp;quot;alice&amp;quot;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .issuer(&amp;quot;Rajakrishna Reddy&amp;quot;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .claim(&amp;quot;user&amp;quot;, &amp;quot;Rajakrishna Reddy&amp;quot;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .claim(&amp;quot;email&amp;quot;, &amp;quot;&lt;a href=&quot;mailto:abc@xyz.com&quot;&gt;abc@xyz.com&lt;/a&gt;&amp;quot;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .claim(&amp;quot;tenantId&amp;quot;, &amp;quot;123&amp;quot;)&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .expirationTime(new Date(new Date().getTime() + 60 * 1000))&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;    .build();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final SignedJWT signedJWT = new SignedJWT(new JWSHeader(JWSAlgorithm.RS256), claimsSet);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;signedJWT.sign(signer);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;return signedJWT.serialize();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;public static boolean isValidToken(String token, RSAPublicKey publicKey) throws Exception&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;return SignedJWT.parse(token).verify(new RSASSAVerifier(publicKey));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;public static boolean isValidToken(String token, String publicKey) throws Exception&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;byte[] decoded = Base64.getDecoder().decode(publicKey);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    X509EncodedKeySpec spec = new X509EncodedKeySpec(decoded);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    KeyFactory kf = KeyFactory.getInstance(&amp;quot;RSA&amp;quot;);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    RSAPublicKey generatePublic = (RSAPublicKey) kf.generatePublic(spec);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    BigInteger modulus = generatePublic.getModulus();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    BigInteger exponent = generatePublic.getPublicExponent();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    return SignedJWT.parse(token).verify(new RSASSAVerifier(new RSAPublicKeyImpl(modulus, exponent)));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;//return SignedJWT.parse(token).verify(new RSASSAVerifier(publicKey));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;public static void main(String[] args) throws Exception {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final String algorithmType = &amp;quot;RSA&amp;quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final String algorithm = &amp;quot;SHA256withRSA&amp;quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final String dn = &amp;quot;CN=Rajakrishna Reddy, OU=OU, O=varra, L=Hyderabad, ST=TL, C=IN&amp;quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final int days = 365;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance(algorithmType);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;keyGenerator.initialize(2048);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final KeyPair kp = keyGenerator.genKeyPair();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final X509Certificate certificate = generateCertificate(dn, kp, days, algorithm);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.out.println(&amp;quot;X09.Certificate: &amp;quot;+certificate);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;//final String token = generateToken((RSAPrivateKey) kp.getPrivate());&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final String token = &amp;quot;eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1MjUyNDUyMDAsInN1YiI6IkpXVCIsInVzZXJfbWV0YWRhdGEiOiJ7XCJVc2VybmFtZVwiOlwibWNzYVwifSIsImlhdCI6MTUyNTE1ODgwMH0.wbroKZfrdGPGnk3OaPWbRr56rRzkg4DFO999jmSsut8IYAthKU0f26CIjWfrNPXD5asV74JYIS49VFNkFwbWfnIFETY1CaLIIm6F6NP5cFE7LW5G-y0qNRaCJgOLaFV4z4lsQOi0KAfuFVckiL5EHxhyBks-MCQEXMWO2JIBBZjAxhIH7fmhMHsYQQUxvm8Tx1dpnbvyh9E6x5F9BNZeS2DcBCqvzCuSUAz2DbgsJ-gVyrDRJgcItiCnscZy2u3sZq3XBTK2qBiSIpS4zVZupVS0f-5v57y7BvdVX2siuu-StN5614zvON_MJRgNLdo1yA1Y5F8eJ9IZrelMWB5GZw&amp;quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;final String publiKey = &amp;quot;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2hg1nqteEY12r5AO/enYD14aXEUaoqgvhtcHDwEPQwf9KqGpwoeC8jQE1qHfb2K1Wm/o4ug60Kv02f7AEJiNrUuKe9MYJdTr/DhekVrE0ttJkGCjLoNiVgMZHKH557Ouf6RsWJc5QjUiqxg6azwYUuHu2U199MZzFXvAVVUQR+hh8YqQM4KIQytOpj1JhxH7hQehth9vF5kIhA+K8htIIO04UF9+8ScrBHMQgj9q0RLperVQLxGsYT8cEZIn9tv1r47jynrTS0z/Vq2uVMGRg/bRPuo598++XUIglM92Ehbih87j//ATcHtsabefzBAVQuN4OaqLTT375JRAWpoWmQIDAQAB&amp;quot;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.out.println(&amp;quot;Token: &amp;quot;+token);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;//System.out.println(&amp;quot;Is valid?: &amp;quot;+isValidToken(token, (RSAPublicKey) kp.getPublic()));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.out.println(&amp;quot;Is valid?: &amp;quot;+isValidToken(token, publiKey));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;//System.out.println(isValidToken(token, CertificateUtil.parseRSAPublicKey()));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2018/05/how-to-create-self-signed-certificate.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-5525538891854650620</guid><pubDate>Tue, 19 Dec 2017 07:30:00 +0000</pubDate><atom:updated>2017-12-18T23:34:49.832-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><category domain="http://www.blogger.com/atom/ns#">git-repo</category><title>How to remove untracked/ignored files and directories from git local repository</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
There is always be a need to remove the&amp;nbsp;unwanted files and directories from the git to clean the git local repo, but sometimes it&#39;s a tedious job to do if we are not aware of some simple cool features that are offered by git, such as git clean, there is a wonderful and informative article available in git docs.&lt;br /&gt;
&lt;br /&gt;
Here I wanted to give you some useful commands that do the required job of cleaning the untracked or ignored files and directories from the git repo.&lt;br /&gt;
&lt;br /&gt;
This is written according to the git documentation provided &lt;a href=&quot;https://git-scm.com/docs/git-clean&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. This should not be considered as a complete guide to &lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run this command to see what are&amp;nbsp;the files or dirs going be removed:&amp;nbsp;&lt;b style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;git clean -&lt;/span&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;n&lt;/span&gt;&amp;nbsp; &lt;/b&gt;or&amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;b&gt;&lt;i&gt;git clean&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #4e443c; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: 14px; font-weight: 700;&quot;&gt;--dry-run&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So it doesn&#39;t a&lt;b&gt;ctually remove anything, just show what would be done.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Run this command to delete the files or directories actually:&amp;nbsp;&lt;b style=&quot;background-color: #cccccc; font-style: italic;&quot;&gt;git clean&lt;/b&gt;&lt;u&gt;&lt;b&gt;Beware that it removes the files and directories permanently!!&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;If you want to remove directories, run &lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -f -d&lt;/i&gt;&lt;/b&gt; or &lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -fd&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;If you want to remove ignored files, run&amp;nbsp;&lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -f -X&lt;/i&gt;&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -fX&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;If you want to remove ignored and non-ignored files, run&amp;nbsp;&lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -f -x&lt;/i&gt;&lt;/b&gt;&amp;nbsp;or&amp;nbsp;&lt;b&gt;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;git clean -fx&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
It is always advisable to have a glance at the complete documentation at git! Have a look at&amp;nbsp;&lt;i style=&quot;background-color: #cccccc;&quot;&gt;&lt;a href=&quot;https://git-scm.com/docs/git-clean&quot; target=&quot;_blank&quot;&gt;git&amp;nbsp;clean&lt;/a&gt;&lt;/i&gt;&amp;nbsp;documentation for a clear understanding.&lt;/div&gt;
</description><link>http://varra.blogspot.com/2017/12/how-to-remove-untrackedignored-files.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-8831279146581892243</guid><pubDate>Mon, 04 Dec 2017 11:32:00 +0000</pubDate><atom:updated>2017-12-04T03:32:42.836-08:00</atom:updated><title>How to add line numbers attributes to java class files</title><description>&lt;div dir=&quot;ltr&quot;&gt;Add this info to your javac command to add line number attributes to the generated class files: &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;javac &lt;b&gt;debug=&amp;quot;true&amp;quot; debuglevel=&amp;quot;lines,vars,source&amp;quot; includeantruntime=&amp;quot;true&amp;quot;&lt;/b&gt;&lt;br clear=&quot;all&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;  &lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2017/12/how-to-add-line-numbers-attributes-to.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-674915046281264652</guid><pubDate>Tue, 07 Nov 2017 09:22:00 +0000</pubDate><atom:updated>2017-11-07T01:22:24.002-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">oracle</category><title>[Solved] ORA-01034: ORACLE not available</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Have you got stuck up with this error in Oracle DB startup?? Here is the solution:&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
D:\oracle\code&amp;gt;sqlplus system/Admin123@xe&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 7 14:44:36 2017&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2014, Oracle.&amp;nbsp; All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ERROR:&lt;/div&gt;
&lt;div&gt;
ORA-01034: ORACLE not available&lt;/div&gt;
&lt;div&gt;
ORA-27101: shared memory realm does not exist&lt;/div&gt;
&lt;div&gt;
Process ID: 0&lt;/div&gt;
&lt;div&gt;
Session ID: 0 Serial number: 0&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enter user-name: system&lt;/div&gt;
&lt;div&gt;
Enter password:&lt;/div&gt;
&lt;div&gt;
ERROR:&lt;/div&gt;
&lt;div&gt;
ORA-01034: ORACLE not available&lt;/div&gt;
&lt;div&gt;
ORA-27101: shared memory realm does not exist&lt;/div&gt;
&lt;div&gt;
Process ID: 0&lt;/div&gt;
&lt;div&gt;
Session ID: 0 Serial number: 0&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enter user-name:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;D:\oracle\code&amp;gt;sqlplus / as sysdba&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 7 14:45:00 2017&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2014, Oracle.&amp;nbsp; All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Connected to an idle instance.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;SQL&amp;gt; startup&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
ORACLE instance started.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Total System Global Area 1068937216 bytes&lt;/div&gt;
&lt;div&gt;
Fixed Size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2260048 bytes&lt;/div&gt;
&lt;div&gt;
Variable Size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;637535152 bytes&lt;/div&gt;
&lt;div&gt;
Database Buffers&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 423624704 bytes&lt;/div&gt;
&lt;div&gt;
Redo Buffers&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5517312 bytes&lt;/div&gt;
&lt;div&gt;
Database mounted.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;SQL&amp;gt; exit&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
D:\oracle\code&amp;gt;sqlplus system/Admin123@xe&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 7 14:47:02 2017&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2014, Oracle.&amp;nbsp; All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Connected to:&lt;/div&gt;
&lt;div&gt;
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; exit&lt;/div&gt;
&lt;div&gt;
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
D:\oracle\code&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://varra.blogspot.com/2017/11/solved-ora-01034-oracle-not-available.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-3247311849054626469</guid><pubDate>Thu, 03 Aug 2017 12:33:00 +0000</pubDate><atom:updated>2017-08-03T05:33:25.737-07:00</atom:updated><title>How can we add colors and format the text in console in python 3</title><description>&lt;div dir=&quot;ltr&quot;&gt;&lt;pre class=&quot;gmail-lang-py gmail-prettyprint gmail-prettyprinted&quot; style=&quot;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);color:rgb(57,51,24);word-wrap:normal&quot;&gt;&lt;code style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&amp;quot;Lucida Console&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,&amp;quot;DejaVu Sans Mono&amp;quot;,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,monospace,sans-serif;vertical-align:baseline;white-space:inherit&quot;&gt;&lt;span class=&quot;gmail-kwd&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(16,16,148)&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; color&lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     PURPLE &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[95m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     CYAN &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[96m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     DARKCYAN &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[36m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     BLUE &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[94m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     GREEN &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[92m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     YELLOW &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[93m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     RED &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[91m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     BOLD &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[1m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     UNDERLINE &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[4m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;     END &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;\033[0m&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;gmail-kwd&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(16,16,148)&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; color&lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;BOLD &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-str&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)&quot;&gt;&amp;#39;Hello World !&amp;#39;&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; &lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt; color&lt;/span&gt;&lt;span class=&quot;gmail-pun&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;gmail-pln&quot; style=&quot;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)&quot;&gt;END&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;  &lt;/div&gt;  </description><link>http://varra.blogspot.com/2017/08/how-can-we-add-colors-and-format-text.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-7960994655623040420</guid><pubDate>Tue, 14 Feb 2017 22:34:00 +0000</pubDate><atom:updated>2017-02-14T14:34:31.697-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">c#</category><category domain="http://www.blogger.com/atom/ns#">NuGet</category><title>How to push NuGet package to NuGet server with ApiKey</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;These are the simple 3 steps that you can run to achieve this:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;v:\krishna\nuget.exe sources Add -Name TPaaS-Snapshot-nuget&amp;nbsp; -Source https://artifactory.trimble.tools/artifactory/TPaaS-Snapshot-nuget/ -username {{username}} -password {{ApiKey}}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;v:\krishna\nuget.exe setapikey {{username}}:{{ApiKey}}
 -source 
https://artifactory.trimble.tools/artifactory/TPaaS-Snapshot-nuget/&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;v:\krishna\nuget.exe push {{package-path}}.nupkg -Source TPaaS-Snapshot-nuget&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description><link>http://varra.blogspot.com/2017/02/how-to-push-nuget-package-to-nuget.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4522766360256712792.post-4544518613564141305</guid><pubDate>Sat, 26 Nov 2016 15:01:00 +0000</pubDate><atom:updated>2016-11-26T07:02:10.320-08:00</atom:updated><title>Installing a custom color theme in WEBSTORM.</title><description>&lt;div dir=&quot;ltr&quot;&gt;Installing a custom color theme in WEBSTORM:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1) First goto &lt;b&gt;/Users/rk/Library/&lt;wbr&gt;Preferences/WebStorm2016.3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;2) Add the color theme xml file under the &lt;b&gt;colors&lt;/b&gt; dir.&lt;/div&gt;&lt;div&gt;3) Update the color theme name in &lt;b&gt;options/color.sheme.xml&lt;/b&gt; file&lt;span style=&quot;color:rgb(0,0,0);font-family:times;font-size:medium&quot;&gt; &lt;/span&gt;&lt;div&gt;&lt;div class=&quot;m_7046290674118830876gmail_signature&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;p style=&quot;color:rgb(0,0,0);font-family:times;font-size:medium&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;/div&gt;&lt;/div&gt;  </description><link>http://varra.blogspot.com/2016/11/installing-custom-color-theme-in.html</link><author>noreply@blogger.com (Rajakrishna Reddy)</author><thr:total>0</thr:total></item></channel></rss>