<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: bhagvan kommadi</title>
    <description>The latest articles on DEV Community by bhagvan kommadi (@bhaggu).</description>
    <link>https://dev.to/bhaggu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F701678%2F18778d16-2fe2-4e24-b9b0-665bc1f451a4.jpg</url>
      <title>DEV Community: bhagvan kommadi</title>
      <link>https://dev.to/bhaggu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhaggu"/>
    <language>en</language>
    <item>
      <title>Python For Fintech Solutions</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Tue, 21 Jan 2025 05:21:14 +0000</pubDate>
      <link>https://dev.to/bhaggu/python-for-fintech-solutions-34fm</link>
      <guid>https://dev.to/bhaggu/python-for-fintech-solutions-34fm</guid>
      <description>&lt;p&gt;Please check out my latest book : Python For Fintech&lt;br&gt;
&lt;a href="https://www.amazon.in/Ultimate-Python-Fintech-Solutions-Applications/dp/8197256209" rel="noopener noreferrer"&gt;https://www.amazon.in/Ultimate-Python-Fintech-Solutions-Applications/dp/8197256209&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsp1ls4zn01cu6jqpcmlf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsp1ls4zn01cu6jqpcmlf.jpg" alt=" " width="800" height="986"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>fintech</category>
      <category>books</category>
    </item>
    <item>
      <title>Go Lang in Depth</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Mon, 20 Jan 2025 08:54:51 +0000</pubDate>
      <link>https://dev.to/bhaggu/go-lang-in-depth-3223</link>
      <guid>https://dev.to/bhaggu/go-lang-in-depth-3223</guid>
      <description>&lt;p&gt;Please check out:&lt;/p&gt;

&lt;p&gt;My latest book is on Amazon: Go Lang in Depth&lt;br&gt;
lnkd.in/ge8d9Px7&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1l4iaujwib1orgbpwzm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1l4iaujwib1orgbpwzm.jpg" alt=" " width="392" height="522"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>books</category>
    </item>
    <item>
      <title>4G -&gt; 5G -&gt; 6G</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 20 Nov 2022 09:27:31 +0000</pubDate>
      <link>https://dev.to/bhaggu/4g-5g-6g-3fjo</link>
      <guid>https://dev.to/bhaggu/4g-5g-6g-3fjo</guid>
      <description>&lt;p&gt;Applications which existed in 4g will become 10 times faster in 5g and  100 faster in 6g in terms of handling uploads and downloads. The key reason is the communication infrastructure which is going to change in the internet backbone. The devices will be upgraded to 5g and 6g soon. In some of the countries it is happening now. This will change how the locational intelligence and real time streaming applications perform and how they are being used.  Roadside traffic and wealth management applications will have new use cases as features.  The other AI applications related to NLP, NLU, Clustering, Supervised and Unsupervised learning ML algorithms will work in real time by using the historic data available on the cloud. Scalability and reliability of the AI applications and solutions will improve with 5g and 6g implementations. Conversational AI solutions which helped to automate customer service will work more efficiently and substituting human for monotonous and frequently asked queries.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CCW presentation - AI Adaptive network for smart cities - 5g</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Mon, 27 Jun 2022 18:41:55 +0000</pubDate>
      <link>https://dev.to/bhaggu/ccw-presentation-ai-adaptive-network-for-smart-cities-5g-14hd</link>
      <guid>https://dev.to/bhaggu/ccw-presentation-ai-adaptive-network-for-smart-cities-5g-14hd</guid>
      <description>&lt;p&gt;please check out my presentation on AI adaptive network for smart cities - 5g&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bit.ly/3u7ktaW" rel="noopener noreferrer"&gt;https://bit.ly/3u7ktaW&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>smartcities</category>
      <category>telecom</category>
    </item>
    <item>
      <title>Agile Sprint improvements</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 19 Jun 2022 17:54:53 +0000</pubDate>
      <link>https://dev.to/bhaggu/agile-sprint-improvements-1kfm</link>
      <guid>https://dev.to/bhaggu/agile-sprint-improvements-1kfm</guid>
      <description>&lt;p&gt;I found this good sprint improvements/achievements which can be used as goals for improving productivity in agile process.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Decrease number of High priority Bugs in production from 2 to 0 KPI&lt;/li&gt;
&lt;li&gt;Increase Automation test coverage from 80% to 90%&lt;/li&gt;
&lt;li&gt;Reduce the average number of new bug reports from 72 per month to 60 per month&lt;/li&gt;
&lt;li&gt;Increase the crash-free ratio from 96% to 99% for the new release&lt;/li&gt;
&lt;li&gt;Reduce average QA rejections per-feature from 1.7 to 1.0&lt;/li&gt;
&lt;li&gt;Increase code coverage from 35% to 50%&lt;/li&gt;
&lt;li&gt;Increase Sprint velocity from 42 to 60 points&lt;/li&gt;
&lt;li&gt;Reduce the average number of bugs per feature from 1.7 to 1&lt;/li&gt;
&lt;li&gt;Reduce average code review time by 30%&lt;/li&gt;
&lt;li&gt;Reduce "design-blocked" flag to &amp;lt;2% of planned features&lt;/li&gt;
&lt;li&gt;Set up and implement automatic CI and CD with CloudBees&lt;/li&gt;
&lt;li&gt;100% of logged errors reported to Sentry&lt;/li&gt;
&lt;li&gt;Reduce Travis build times &amp;lt;5m for all projects&lt;/li&gt;
&lt;li&gt;Reduce "design-blocked" flag to &amp;lt;2% of planned features&lt;/li&gt;
&lt;li&gt;Create the refactoring plan&lt;/li&gt;
&lt;li&gt;80% of components ported from AngularJS to React&lt;/li&gt;
&lt;li&gt;100% of reporting routes (/api) migrated to new paths&lt;/li&gt;
&lt;li&gt;Reduce the response time for old APIs from 890 ms to 300 ms (on average)&lt;/li&gt;
&lt;li&gt;Proactively find &amp;gt;20 bugs&lt;/li&gt;
&lt;li&gt;Implement the new QA automation tool and run new process on 50% of code base&lt;/li&gt;
&lt;li&gt;Reduce critical bugs reported from 5 to 2&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>productivity</category>
      <category>agile</category>
      <category>product</category>
    </item>
    <item>
      <title>HTML tips</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 12 Jun 2022 17:00:25 +0000</pubDate>
      <link>https://dev.to/bhaggu/html-tips-3o0o</link>
      <guid>https://dev.to/bhaggu/html-tips-3o0o</guid>
      <description>&lt;p&gt;Following are the html tips:&lt;/p&gt;

&lt;p&gt;Change the menu&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function showHide(anchor)&lt;br&gt;
{&lt;br&gt;
    if(anchor.innerHTML.startsWith("Show"))&lt;br&gt;
    {&lt;br&gt;
        anchor.innerHTML = anchor.innerHTML.replace("Show","Hide");&lt;br&gt;
    }&lt;br&gt;
    else&lt;br&gt;
    {&lt;br&gt;
        anchor.innerHTML = anchor.innerHTML.replace("Hide","Show");&lt;br&gt;
    }&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Checking if the div with id exists&lt;br&gt;
ength property will return zero if element does not exists.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if ($("#mydiv").length &amp;gt; 0){&lt;br&gt;
  // do something here&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Getting the child element from the parent element&lt;/p&gt;

&lt;p&gt;&lt;code&gt;var parent = document.getElementById('disptable');&lt;br&gt;
parent.querySelector("#boardc");&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Setting CSS to the element&lt;/p&gt;

&lt;p&gt;&lt;code&gt;function setCSS(eleID) {&lt;br&gt;
    var currTabElem = document.getElementById(eleID);&lt;br&gt;
    currTabElem.setAttribute("class", "some_class_name");&lt;br&gt;
    currTabElem.setAttribute("className", "some_class_name");&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Show and Hide div element&lt;/p&gt;

&lt;p&gt;`Click Me&lt;/p&gt;

&lt;p&gt;This is my DIV element.&lt;/p&gt;

&lt;p&gt;function myFunction() {&lt;br&gt;
  var x = document.getElementById("myDIV");&lt;br&gt;
  if (x.style.display === "none") {&lt;br&gt;
    x.style.display = "block";&lt;br&gt;
  } else {&lt;br&gt;
    x.style.display = "none";&lt;br&gt;
  }&lt;br&gt;
}`&lt;/p&gt;

&lt;p&gt;Creating Text Node&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let docs = document.getElementByID('#freelancer');&lt;br&gt;
let elements = freelancer.getElementsByClassName('item');&lt;br&gt;
var td1 = document.getElementById('td1');&lt;br&gt;
var text = document.createTextNode("some text");&lt;br&gt;
td1.appendChild(text);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;removing the highlighted marked text&lt;/p&gt;

&lt;p&gt;&lt;code&gt;targets = document.querySelectorAll("mark");&lt;br&gt;
for (let target of targets) {  &lt;br&gt;
  target.outerHTML=target.innerHTML;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Getting the table column cell text&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$('#td1').html('hello world');&lt;br&gt;
    $(tbl).find('tr').each(function(){&lt;br&gt;
        var currentRow=$(this);&lt;br&gt;
        var column_count = 0;&lt;br&gt;
        currentRow.find("td").each(function() {&lt;br&gt;
            var currentColumn = $(this);&lt;br&gt;
            var col_value = currentColumn.text();&lt;br&gt;
            });&lt;br&gt;
            });&lt;/code&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>Pandas Tips</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 05 Jun 2022 10:38:13 +0000</pubDate>
      <link>https://dev.to/bhaggu/pandas-tips-2lkf</link>
      <guid>https://dev.to/bhaggu/pandas-tips-2lkf</guid>
      <description>&lt;p&gt;Below are some tips for pandas developers&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dropping a column&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;df.drop(df.columns[idx], axis=1, inplace=True)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setting the index column to the dataframe&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;df = pd.DataFrame.from_dict({&lt;br&gt;
    'Name': ['Jane', 'Nik', 'Kate', 'Melissa', 'Evan', 'Doug', 'Joe'],&lt;br&gt;
    'Age': [10, 35, 34, 23, 70, 55, 89],&lt;br&gt;
    'Height': [130, 178, 155, 133, 195, 150, 205],&lt;br&gt;
    'Weight': [80, 200, 220, 150, 140, 95, 180]&lt;br&gt;
}).set_index('Name')&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Group By in data frame&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;grouped = df.groupby("Age", axis="columns")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selecting multiple columns&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;df2 = df[["Courses","Fee","Duration"]]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using loc[] to take column slices&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;df2 = df.loc[:, ["Courses","Fee","Duration"]] &lt;br&gt;
df2 = df.loc[:, ["Courses","Fee","Discount"]] &lt;br&gt;
df2 = df.loc[:,'Fee':'Discount'] &lt;br&gt;
df2 = df.loc[:,'Duration':]  &lt;br&gt;
df2 = df.loc[:,:'Duration']  &lt;br&gt;
df2 = df.loc[:,::2]&lt;/code&gt;          &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Using iloc[] to select column by Index&lt;/code&gt;&lt;br&gt;
&lt;code&gt;df2 = df.iloc[:,[1,3,4]] # Select columns by Index&lt;br&gt;
df2 = df.iloc[:,1:4] # Select between indexes 1 and 4 (2,3,4)&lt;br&gt;
df2 = df.iloc[:,2:] # Select From 3rd to end&lt;br&gt;
df2 = df.iloc[:,:2] # Select First Two Colum&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DataFrame to a list&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;df = pd.DataFrame(data_dict)&lt;br&gt;
print(f"DataFrame:\n{df}\n")&lt;br&gt;
print(f"column types:\n{df.dtypes}")&lt;br&gt;
col_one_list = df['one'].tolist()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DataFrame to an array&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;col_one_arr = df['one'].to_numpy()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Replacing all values in a dataframe based on condition&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;df.loc[df['First Season'] &amp;gt; 1990, 'First Season'] = 1&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Changing the series data type to numeric&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;s = pd.Series(['1.0', '2', -3])&lt;br&gt;
pd.to_numeric(s)&lt;/code&gt;&lt;/p&gt;

</description>
      <category>pandas</category>
      <category>programming</category>
      <category>analytics</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Java Tips</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 29 May 2022 10:37:04 +0000</pubDate>
      <link>https://dev.to/bhaggu/java-tips-3d4</link>
      <guid>https://dev.to/bhaggu/java-tips-3d4</guid>
      <description>&lt;p&gt;Below are the tips in Java:&lt;/p&gt;

&lt;p&gt;Parsing a string into integer&lt;/p&gt;

&lt;p&gt;&lt;code&gt;int i=Integer.parseInt("200");&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;boolean variables&lt;br&gt;
&lt;code&gt;boolean isJavaFun = true;&lt;br&gt;
boolean isFishTasty = false;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;JSON parsing in java&lt;/p&gt;

&lt;p&gt;&lt;code&gt;import org.json.JSONArray;&lt;br&gt;
import org.json.JSONObject;&lt;br&gt;
public class JSONParsing&lt;br&gt;
{&lt;br&gt;
  public static void main(String[] args) throws Exception&lt;br&gt;
  {&lt;br&gt;
    String jsonInput = "{ 'name': 'thomas','empid':'3',[ {'name': 'Lord','empid':'4'},{'name': 'Sam','empid':'5'}]";&lt;br&gt;
    JSONObject outerObject = new JSONObject(jsonInput);&lt;br&gt;
    JSONObject innerObject = outerObject.getJSONObject("JObjects");&lt;br&gt;
    JSONArray jsonArray = innerObject.getJSONArray("JArray1");&lt;br&gt;
    for (int i = 0, size = jsonArray.length(); i &amp;lt; size; i++)&lt;br&gt;
    {&lt;br&gt;
      JSONObject objectInArray = jsonArray.getJSONObject(i);&lt;br&gt;
      String[] elementNames = JSONObject.getNames(objectInArray);&lt;br&gt;
      System.out.printf("%d ELEMENTS IN CURRENT OBJECT:\n", elementNames.length);&lt;br&gt;
      for (String elementName : elementNames)&lt;br&gt;
      {&lt;br&gt;
        String value = objectInArray.getString(elementName);&lt;br&gt;
        System.out.printf("name=%s, value=%s\n", elementName, value);&lt;br&gt;
      }&lt;br&gt;
      System.out.println();&lt;br&gt;
    }&lt;br&gt;
  }}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Comparing String&lt;/p&gt;

&lt;p&gt;&lt;code&gt;class StringComparison{  &lt;br&gt;
 public static void main(String args[]){  &lt;br&gt;
   String s1="Sachin";  &lt;br&gt;
   String s2="Sachin";  &lt;br&gt;
   String s3="Ratan";  &lt;br&gt;
   System.out.println(s1.compareTo(s2));//0  &lt;br&gt;
   System.out.println(s1.compareTo(s3));//1(because s1&amp;gt;s3)  &lt;br&gt;
   System.out.println(s3.compareTo(s1));//-1(because s3 &amp;lt; s1 )&lt;br&gt;
}}&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;Array List Generics, Lambda and ForEach&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ArrayList&amp;lt;String&amp;gt; languages = new ArrayList&amp;lt;&amp;gt;();&lt;br&gt;
    languages.add("Java");&lt;br&gt;
    languages.add("Python");&lt;br&gt;
    languages.add("JavaScript");&lt;br&gt;
    System.out.print("ArrayList: ");&lt;br&gt;
    languages.forEach((e) -&amp;gt; {System.out.print(e + ", ") }&lt;br&gt;
      for (String element : list){&lt;br&gt;
               if (element.contains("Java")){&lt;br&gt;
                     System.out.println(element);&lt;br&gt;
               }&lt;br&gt;
            }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;String splitting, and tokens        &lt;/p&gt;

&lt;p&gt;&lt;code&gt;String str = "token@thisplace@end";&lt;br&gt;
      String[] arrOfStr = str.split("@", 2);&lt;br&gt;
      for (String a : arrOfStr)&lt;br&gt;
          System.out.println(a)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Handling Spark Data Streams&lt;br&gt;&lt;br&gt;
        &lt;code&gt;public static void main(String[] args) {&lt;br&gt;
              SparkConf conf = new SparkConf().setMaster("local[2]").setAppName("sparkStreamIng");&lt;br&gt;
              JavaStreamingContext javaStreamingContext = new JavaStreamingContext(conf, Durations.seconds(1));&lt;br&gt;
              JavaReceiverInputDStream&amp;lt;String&amp;gt; dStream = javaStreamingContext.socketTextStream("localhost", 8080);&lt;br&gt;
              JavaDStream&amp;lt;String&amp;gt; errorLine = dStream.filter(new Function&amp;lt;String, Boolean&amp;gt;() {&lt;br&gt;
                  @Override&lt;br&gt;
                  public Boolean call(String v1) throws Exception {&lt;br&gt;
                      return v1.contains("error");&lt;br&gt;
                  }&lt;br&gt;
              });&lt;br&gt;
              errorLine.print();&lt;br&gt;
              try {   &lt;br&gt;
                  javaStreamingContext.start();&lt;br&gt;
              javaStreamingContext.awaitTermination();&lt;br&gt;
              } catch (InterruptedException e) {&lt;br&gt;
                  e.printStackTrace();&lt;br&gt;
              }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Randomizing integer between a range&lt;br&gt;&lt;br&gt;
             &lt;code&gt;public static int randInt(int min, int max) {&lt;br&gt;
                  Random rand;&lt;br&gt;
                  int randomNum = rand.nextInt((max - min) + 1) + min;&lt;br&gt;
                  return randomNum;&lt;br&gt;
              }&lt;/code&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Javascript tips</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 22 May 2022 09:05:08 +0000</pubDate>
      <link>https://dev.to/bhaggu/javascript-tips-11gp</link>
      <guid>https://dev.to/bhaggu/javascript-tips-11gp</guid>
      <description>&lt;p&gt;Below are some of the tips in javascript and html.&lt;/p&gt;

&lt;p&gt;html select&lt;br&gt;
&lt;code&gt;&amp;lt;select&amp;gt;&lt;br&gt;
  &amp;lt;option value="" selected disabled hidden&amp;gt;Choose here&amp;lt;/option&amp;gt;&lt;br&gt;
  &amp;lt;option value="1"&amp;gt;One&amp;lt;/option&amp;gt;&lt;br&gt;
  &amp;lt;option value="2"&amp;gt;Two&amp;lt;/option&amp;gt;&lt;br&gt;
  &amp;lt;option value="3"&amp;gt;Three&amp;lt;/option&amp;gt;&lt;br&gt;
  &amp;lt;option value="4"&amp;gt;Four&amp;lt;/option&amp;gt;&lt;br&gt;
  &amp;lt;option value="5"&amp;gt;Five&amp;lt;/option&amp;gt;&lt;br&gt;
&amp;lt;/select&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;String functions&lt;br&gt;
&lt;code&gt;key = chart_id.split("_");&lt;br&gt;
chart_name = key[1];&lt;br&gt;
if(char_name.includes("val_"))&lt;br&gt;
{&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For loop - alternate elements (even and odd)&lt;br&gt;
&lt;code&gt;for(var i=0; i&amp;lt; arr.length; i++)&lt;br&gt;
{&lt;br&gt;
   if(i%2 == 0)&lt;br&gt;
   {&lt;br&gt;
   }&lt;br&gt;
   else if(i%2 != 0)&lt;br&gt;
   {&lt;br&gt;
   }&lt;br&gt;
   else&lt;br&gt;
   {&lt;br&gt;
   }&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
Slice function&lt;br&gt;
&lt;code&gt;coars.slice(0,val_count);  // not inclusive of the end&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;div updates and removal&lt;br&gt;
&lt;code&gt;$('#myCharr').update()&lt;br&gt;
$('#myCharr').remove();&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;lambda function&lt;br&gt;
&lt;code&gt;keys = key.map((x) =&amp;gt; x);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Handling Data tables and wildcard query selector&lt;br&gt;
&lt;code&gt;$(document).ready(function() {&lt;br&gt;
    $('#example').dataTable();&lt;br&gt;
} );&lt;br&gt;
$("table[id^='Table_']")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Object.keys iterating through dictionary keys and values&lt;br&gt;
&lt;code&gt;for (var i = 0; i &amp;lt; Object.keys(params).length; i++) {&lt;br&gt;
    count_params[Object.keys(params)[i]] = 0;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Query selector for event listener and accessing value&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$('button[id^="charts_"]').on('click', function (event) {&lt;br&gt;
});&lt;br&gt;
document.getElementById('dataframess').value;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Sort the array with the index to find out the sorted order&lt;br&gt;
 &lt;code&gt;function sort_with_index(test)&lt;br&gt;
{&lt;br&gt;
var test_with_index = [];&lt;br&gt;
for (var i in test) {&lt;br&gt;
    var y = test[i];&lt;br&gt;
    if(y=="")&lt;br&gt;
    {&lt;br&gt;
        y="100";&lt;br&gt;
    }&lt;br&gt;
    else&lt;br&gt;
    {&lt;br&gt;
        y= String(y);&lt;br&gt;
        y = y.substring(0, y.length - 1);;&lt;br&gt;
    }&lt;br&gt;
    ////alert("y"+y);&lt;br&gt;
    test_with_index.push([parseInt(y), i]);&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;dynamic url href and clicking on it&lt;br&gt;
&lt;code&gt;var a = document.createElement('a');&lt;br&gt;
a.download = 'roles_org.png';&lt;br&gt;
a.href = base64_url;&lt;br&gt;
a.click();&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;highlighting the text in a table&lt;br&gt;
                           &lt;code&gt;$("#display_table").mousedown(function (event) {&lt;br&gt;
mouseXPosition = event.pageX; //register the mouse down position&lt;br&gt;
                           });&lt;br&gt;
$("#display_table").mouseup(function (event)&lt;br&gt;
 {                 &lt;br&gt;
target = event.target.id;                              &lt;br&gt;
var highlighted = false;&lt;br&gt;
var selection = window.getSelection();&lt;br&gt;
 var selectedText = selection.toString();                  alert("selectedText"+selectedText);&lt;br&gt;
                               }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;mark for highlighting&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;mark style='color: white; background-color: "+colored+";'&amp;gt;" + selectedTexts + "&amp;lt;/mark&amp;gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>css</category>
    </item>
    <item>
      <title>Django Template - Tips</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 15 May 2022 08:01:27 +0000</pubDate>
      <link>https://dev.to/bhaggu/django-template-tips-392j</link>
      <guid>https://dev.to/bhaggu/django-template-tips-392j</guid>
      <description>&lt;p&gt;Found these helpful :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Iterating dictionary&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;{% for key, values in data.items %}&lt;br&gt;
    &amp;lt;tr&amp;gt;&lt;br&gt;
        &amp;lt;td&amp;gt;{{key}}&amp;lt;/td&amp;gt;&lt;br&gt;
        {% for v in values[0] %}&lt;br&gt;
        &amp;lt;td&amp;gt;{{v}}&amp;lt;/td&amp;gt;&lt;br&gt;
        {% endfor %}&lt;br&gt;
    &amp;lt;/tr&amp;gt;&lt;br&gt;
    {% endfor %}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_Loop counter _&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;{% for item in item_list %}&lt;br&gt;
    {{ forloop.counter }} #  index 1 start&lt;br&gt;
    {{ forloop.counter0 }} #  index 0 start&lt;br&gt;
{% endfor %}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mathematical operations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;`{% load mathfilters %}&lt;/p&gt;

&lt;h1&gt;Basic math filters&lt;/h1&gt;

&lt;ul&gt;
    &lt;li&gt;8 + 3 = {{ 8|add:3 }}&lt;/li&gt;

    &lt;li&gt;13 - 17 = {{ 13|sub:17 }}&lt;/li&gt;

    {% with answer=42 %}
    &lt;li&gt;42 * 0.5 = {{ answer|mul:0.5 }}&lt;/li&gt;
    {% endwith %}

    {% with numerator=12 denominator=3 %}
    &lt;li&gt;12 / 3 = {{ numerator|div:denominator }}&lt;/li&gt;
    {% endwith %}

    &lt;li&gt;|-13| = {{ -13|abs }}&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;`&lt;br&gt;
String expressions&lt;/p&gt;

&lt;h4&gt;Skills&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;{% with form.instance.skills|split:"," as skills %}&lt;br&gt;
    {% for skill in skills %}&lt;br&gt;
        {{ skill }}&amp;lt;br&amp;gt;&lt;br&gt;
    {% endfor %}&lt;br&gt;
{% endwith %}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;extracting character&lt;br&gt;
&lt;code&gt;&amp;lt;a href="tel://+1{{ phone|cut:'-' }}"&amp;gt;Phone&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
      <category>expressions</category>
      <category>programming</category>
    </item>
    <item>
      <title>QKD as a service</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 08 May 2022 09:47:40 +0000</pubDate>
      <link>https://dev.to/bhaggu/qkd-as-a-service-h7d</link>
      <guid>https://dev.to/bhaggu/qkd-as-a-service-h7d</guid>
      <description>&lt;p&gt;QKD as a service is based on key agreement protocols, McEliece Cryptosystem, and encrypted OTP.  Quantum key distribution algorithms will be quantum-resistant.  Quantum Key distribution as a service will cater to multiple users and generate keys in parallel. Quantum key distribution signals can be generated simultaneously and sent using an optical channel. This is using the key management service pattern which is available in Google, Amazon, and Microsoft cloud. The key states are managed through the key management services. The states are generated, used, rotated, and destroyed. QKD as a service helps in avoiding attacks and errors. Qubits cannot be replicated because of the law of physics. The secret key is not saved in the Quantum key distribution data stores. The key security is improved because of not saving the quantum keys.&lt;/p&gt;

&lt;p&gt;Quantum keys are based on the photon properties for sharing bits between source and destination. The quantum information is used for the generation of the keys.  The interception of the key is identified as there is a change in the quantum state. The keys which are corrupted will be rejected. The randomness of the keys will be real and hackproof.&lt;/p&gt;

&lt;p&gt;Many countries are doing research into developing post-quantum public key cryptography to tackle and  defend real-world communications systems from the threat of a future quantum computer&lt;br&gt;
The  limitations of the existing QKD systems are because of the short effective range of transmission, and the fact that BB84* and similar proposals are fundamentally point-to-point protocols . Some of them are trying to integrating QKDwith classical network devices. This approach invalidates any claimed guarantee of security. Since this is based  on the laws of quantum mechanics, and creates an array of new concerns about the security properties of the ancillary network devices.&lt;/p&gt;

&lt;p&gt;The the hardware-based approach is expensive for maintenance. The software can be patched remotely and at a lesser cost. The software can be replaced when it degrades and vulnerabilities are discovered. We are creating a device-independent QKD  which will be a key differentiator in the QKD market space. We plan to constantly work on adding features to tackle quantum resistance. We are working on making QKD handle Denial of Service attacks that are not supported by other QKD systems.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cryptography</category>
      <category>xaas</category>
    </item>
    <item>
      <title>Best books to read</title>
      <dc:creator>bhagvan kommadi</dc:creator>
      <pubDate>Sun, 01 May 2022 20:20:51 +0000</pubDate>
      <link>https://dev.to/bhaggu/best-books-to-read-hlk</link>
      <guid>https://dev.to/bhaggu/best-books-to-read-hlk</guid>
      <description>&lt;p&gt;Traction by Gino Wickman&lt;/p&gt;

&lt;p&gt;Entrepreneur Operating System (EOS)&lt;/p&gt;

&lt;p&gt;Extreme Ownership by retired US Navy Seal Jocko Willink&lt;/p&gt;

&lt;p&gt;“Start With Why” by Simon Sinek&lt;/p&gt;

&lt;p&gt;modern SaaS environments is "An Elegant Puzzle - Systems of Engineering Management" by Will Larson.&lt;/p&gt;

&lt;p&gt;"Andy Grove's High Output Management”.&lt;/p&gt;

&lt;p&gt;“Just Listen” by Mark Goulston&lt;/p&gt;

</description>
      <category>leadership</category>
      <category>books</category>
    </item>
  </channel>
</rss>
