<?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: Dharshan Bharathuru</title>
    <description>The latest articles on DEV Community by Dharshan Bharathuru (@dharshann).</description>
    <link>https://dev.to/dharshann</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%2F101113%2F1963bc6d-161f-48aa-ab3d-c83f6e4dc8bc.jpg</url>
      <title>DEV Community: Dharshan Bharathuru</title>
      <link>https://dev.to/dharshann</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dharshann"/>
    <language>en</language>
    <item>
      <title>Setup for AWS centralised logging</title>
      <dc:creator>Dharshan Bharathuru</dc:creator>
      <pubDate>Tue, 05 Feb 2019 17:20:42 +0000</pubDate>
      <link>https://dev.to/dharshann/setup-for-aws-centralised-logging-4ih6</link>
      <guid>https://dev.to/dharshann/setup-for-aws-centralised-logging-4ih6</guid>
      <description>&lt;p&gt;What will be a better setup for centralised logging(application logs) for multiple instances(rails apps) running behind an AWS application load balancer?&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- ELK (manual setup)
- AWS ElasticSearch
- APN (AWS Partner Networks) like datadog, spluk
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

</description>
      <category>ruby</category>
      <category>aws</category>
      <category>logging</category>
    </item>
    <item>
      <title>Any difference in Ruby CSV library from 2.3.3/2.4.4 vs 2.5.1?</title>
      <dc:creator>Dharshan Bharathuru</dc:creator>
      <pubDate>Thu, 06 Dec 2018 07:57:47 +0000</pubDate>
      <link>https://dev.to/dharshann/any-difference-in-ruby-csv-library-from-233244-vs-251-47an</link>
      <guid>https://dev.to/dharshann/any-difference-in-ruby-csv-library-from-233244-vs-251-47an</guid>
      <description>&lt;p&gt;While migrating a small ruby app from ruby 2.3.3 to ruby 2.5.1, I am having problem parsing a &lt;code&gt;mechanize&lt;/code&gt; text csv file with CSV library. Which works just fine with ruby 2.3.3 and 2.4.4.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;csv_header = ["Rep Date", "Or No", "Qw Type", "Sett No", "Order Date", "AS Code", "ZCV", "Amount", "Qty", "BN Code", "AX Code", "User Id", "QW No", "QX Code", "WE No", "MN Code", "KL Name", "IO Id", "A AS", "DD Unit", "DD Amt", "DD Flag", "Remarks", "RRR", "KK Ref No", "TY Type", "SS Regn No", "SR Reg Date", "SU Code", "PPP", "QQQ DEC", "NM Flag", "DP Trans", "O Type"].freeze
converter = lambda { |field, _| field.strip rescue field }
response = agent.submit(form, button)

parsed = CSV.parse(response.body, col_sep: '|', write_headers: true, headers: csv_header, converters: [converter])


# in ruby 2.3.3
parsed.count # 1523

# in ruby 2.5.1
parsed.count # 0

# data in response body looks like bellow
"2018-12-05|8761|T3|9166|2018-12-03|1-R|1JF5|10000.0000|0|11|PBRANCH|88701|2030|489|2312051|4CUM|Kapoor ||41.3500|241.8380|10000.0000|Y||0.0000|66747|SP|3674|24/10/2018|||N|Y|P|NRM|\n2018-12-04|9525|T3|9166|2018-12-03|2-G|1JF5|1000.0000|0|11|BBRANCH|88701|21551|489|545481|VPA|Prasad P||41.3500|24.1840|1000.0000|Y||0.0000|78232|TP|6879|24/09/2018|||N|Y|P|NRM|\n2018-12-04.."

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>ruby</category>
      <category>rails</category>
      <category>csv</category>
      <category>mechanize</category>
    </item>
  </channel>
</rss>
