tag:blogger.com,1999:blog-48275064813810664322024-03-05T12:07:18.922-08:00Its all abt hw u look at it....Experiences are God's Gift.. I'm just trying to do my bit in sharing them..Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.comBlogger58125tag:blogger.com,1999:blog-4827506481381066432.post-50011914906563428782017-01-26T05:56:00.002-08:002017-01-26T05:56:57.979-08:00Plan to blog on Medium going forward<div dir="ltr" style="text-align: left;" trbidi="on">
Hi all,<br />
<br />
Thank you very much for being readers of this blog so far. I also appreciate the comments that you've shared wrt my posts from time to time. Of late, I've been posting my blogs on <a href="https://medium.com/">Medium</a> and I plan to use that as a primary platform through which I'll be sharing my two cents with the world.<br />
<br />
If you'd like to continue to read my posts that have my experiences from different walks of life, please feel free to follow <a href="https://medium.com/@mohnishgj">my posts on Medium</a>.<br />
<br />
Thank you once again for your support by reading and/or commenting on the different blogs that I've posted on the Blogger platform from time to time. I would also like to take this opportunity to thank Google(and the team behind the Blogger platform in particular) for providing me with a valuable platform through which I could share my thoughts with the world.<br />
<br />
I look forward to having your continued support and encouragement for the posts that I make on Medium..<br />
<br />
Cya around :)</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-30774359188140995802016-04-10T06:55:00.001-07:002016-04-10T06:55:41.296-07:00Learnings along the way of completing the Roman Numerals Kata via Exercism<div dir="ltr" style="text-align: left;" trbidi="on">
<script src="https://gist.github.com/boddhisattva/3caeac5733afd8e59a21150ddf3ce6ba.js"></script>
<br /></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-84970505459892300802016-04-03T02:59:00.000-07:002016-04-03T03:00:42.447-07:00Learnings from solving the Hamming exercise on Exercism<div dir="ltr" style="text-align: left;" trbidi="on">
<script src="https://gist.github.com/boddhisattva/14ae1d5974c95b1d7cc293d56076d405.js"></script>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-31985262912360302492016-02-12T18:02:00.000-08:002016-02-12T23:34:53.543-08:00Learnings from using Hound and friends<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">A few months back I built a basic </span><a href="https://trackyourexpenses.herokuapp.com/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">expenses web app</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> from scratch using Rails, SCSS, Bootstrap and friends. Working single handedly on a project has it's own pros and cons. When I started work on this project, one thing that I really wished for was to get constant feedback on the code that I wrote as that would help me write better code. As a programmer, by yourself, one can identify a number of things that may be wrong with your code but sometimes that ‘AHA’ moment may only come from somebody else’s feedback on your code.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<iframe allowfullscreen="" class="giphy-embed" frameborder="0" height="282" src="//giphy.com/embed/tAorKRX1kWFIA" width="480"></iframe><br />
<a href="http://giphy.com/gifs/shaycarl-rocktard-three-tAorKRX1kWFIA">via GIPHY</a><br />
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">When I was working on this app, I didn’t explicitly have somebody out there to give me feedback but I was luckily in the company of tools like </span><a href="http://houndci.com/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Hound</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> to help me with some feedback. Hound is a tool that comments on style violations with respect to your Github pull requests, allowing oneself and their team to better review and maintain a clean codebase. This post basically highlights some of the ways through which Hound and it’s friends(</span><a href="https://github.com/bbatsov/rubocop" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">rubocop</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> etc., that hound uses internally) helped me learn new things that eventually helped me write better code .</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">My Learnings -</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">1. “</span>Do not use Date.today <span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> without zone. Use </span><span style="background-color: transparent; color: #333333; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Time.zone.today</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> instead.” - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/10#discussion_r42933415" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">From this </span><a href="http://stackoverflow.com/questions/1937161/is-time-zone-now-to-date-equivalent-to-date-today/7488362#7488362" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">SO answer</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> - Time.zone.now will use the applications time zone, while Date.today will use the servers time zone. So if the two lie on different dates then they will be different. </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Calibri; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">And as mentioned in this </span><a href="http://danilenko.org/2012/7/6/rails_timezones/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">post</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> -</span></div>
</li>
</ol>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You might notice that </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">DateTime.now</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Time.now</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> both give you the time in system time zone. And it definitely makes sense since these are Ruby standard library methods that know nothing about Rails time zone configuration. </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Time.zone.now </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">on the contrary is provided by Rails and respects </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Time.zone</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> value that we set in Rails.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2. “</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Color </span><span style="background-color: transparent; color: #333333; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">white</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> should be written in hexadecimal form as </span><span style="background-color: transparent; color: #333333; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">#ffffff</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Color literals like </span><span style="background-color: transparent; color: #333333; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">white</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> should only be used in variable declarations; they should be referred to via variable everywhere else.</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">” - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/2#discussion_r42317350" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">I learnt that one should more consciously make use of the variables feature provided by SCSS. Using variables promotes reusability.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">3. "</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Extra empty line detected at block body end" - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/1#discussion_r42315546" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This helped me to remove extra empty lines from my code. There are times when you submit a PR and you may forget about removing such things and for any person who is new to your code might find it confusing to see the presence of extra empty lines in some parts of your code and their absence in other parts. </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4. "Redundant curly braces around a hash parameter. Space inside { missing. Space inside } missing" - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/18#discussion_r43579738" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> .</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This comment talks about removing unnecessary code in the context of better code readability. Also, adding additional spaces where appropriate is any day more soothing to the eye.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">5. "Files should end with a trailing newline" - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/14" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">According to </span><a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_205" style="text-decoration: none;"><span style="background-color: transparent; color: #ad141e; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">POSIX</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, every text file (including Ruby and JavaScript source files) should end with a </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">\n</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, or “newline” (not “a new line”) character as mentioned in this </span><a href="https://robots.thoughtbot.com/no-newline-at-end-of-file" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">thoughtbot blog</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">One can read more about how this is useful by following </span><a href="http://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline#" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this Stackoverflow thread as well</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">6. "Keep a blank line before and after private" - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/10#discussion_r42867798" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">This basically helps separating one thing from another. This way, one can explicitly showcase how a particular line of code is in a way different from another.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">7. "</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." - as mentioned in </span><a href="https://github.com/boddhisattva/expenses/pull/1#discussion_r42315532" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">this comment</span></a></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Learnings - </span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">When I think about this comment. What basically comes to my mind is that I need to </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">ensure there is consistency</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> in different parts of my codebase </span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">whenever I consider using quotes</span><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. I would like to leave this at it as many people have more stronger opinions on the usage of quotes and I believe that's beyond the scope of what this post was intended for in the first place.</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Takeaways</span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">I made appropriate changes to my code based on whatever hound related suggestions were understandable to me at that given point in time. For all of those programmers out there, especially those who are code newbies, tools like these can offer you really good guidance for starters . Even if you’re a programmer with some experience, you may learn something new on the design and/or development side when you try using hound and this definitely ends up giving a person more confidence to write better code.</span></div>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">I’m thankful to Thoughtbot, all those who’ve contributed to Hound and also to those people who have contributed to tools/libraries similar to rubocop that have helped hound to give constant feedback on our pull requests. I’m also thankful to </span><a href="https://github.com/mhartl" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Michael Hartl</span></a><span style="background-color: transparent; color: black; font-family: "calibri"; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> for his Rails tutorial as that was the reference that I used when going about building the expenses app.</span></div>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com2tag:blogger.com,1999:blog-4827506481381066432.post-29668414479907775362016-02-04T17:05:00.001-08:002016-02-05T07:56:33.000-08:00How to get Elixir syntax highlighting in github markdown files<div dir="ltr" style="text-align: left;" trbidi="on">
Very recently I've started to try out the <a href="https://github.com/elixir-lang/elixir">elixir programming language</a>. As I go about exploring the language through different experiments, I was thinking of making notes of learnings along the way in markdown files. I knew how ruby syntax highlighting works(please see the screenshot below) but didn't know the exact way to do this in elixir.<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_HLP6mr_vJCcskZsNR43ioFEPHgWRqaWRBDrx8ChEY8d9e2YsGBJPkYi9LaR0_EiTTeXlhhAUY-lqPN9oDe5Aj_ilhTkB3Gbb5U3zBTYzQ8PeFqUr8pUbL93_5SKpvjAnZV7TN8znfKhO/s1600/Screen+Shot+2016-02-05+at+6.05.29+am.png" imageanchor="1"><img border="0" height="42" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_HLP6mr_vJCcskZsNR43ioFEPHgWRqaWRBDrx8ChEY8d9e2YsGBJPkYi9LaR0_EiTTeXlhhAUY-lqPN9oDe5Aj_ilhTkB3Gbb5U3zBTYzQ8PeFqUr8pUbL93_5SKpvjAnZV7TN8znfKhO/s320/Screen+Shot+2016-02-05+at+6.05.29+am.png" width="320" /></a><br />
<br />
<br />
I've subscribed to a beginners channel in the elixir-lang slack group(you can get your invite <a href="https://elixir-slackin.herokuapp.com/">here</a>) . Karmen Blake(kblake on the slack group) and Andrea Rossi(lucidstack on the slack group) from that group were quick to help me out with the right syntax for highlighting elixir code in a markdown file. Here's how you can get elixir syntax highlighting in your markdown file -<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMf5TJ7uLc0hfZCi9b5LmfHs_5lx2VcVDY1REOeL690-WR-diLYGr6uKjXET95_1L6aI1CJYSIe-EdDnMX7UqgerVpEib44auOldL1TcTkX8kU6bLS6n0T2zemU9YwHbz9wxyKTZAwJ8-/s1600/Screen+Shot+2016-02-05+at+6.26.54+am.png" imageanchor="1"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMf5TJ7uLc0hfZCi9b5LmfHs_5lx2VcVDY1REOeL690-WR-diLYGr6uKjXET95_1L6aI1CJYSIe-EdDnMX7UqgerVpEib44auOldL1TcTkX8kU6bLS6n0T2zemU9YwHbz9wxyKTZAwJ8-/s320/Screen+Shot+2016-02-05+at+6.26.54+am.png" width="320" /></a><br />
<br />
Here's a <a href="https://gist.github.com/boddhisattva/5277b6c355c885d50e09">github gist</a> of how it looks. You can look at the <a href="https://gist.githubusercontent.com/boddhisattva/5277b6c355c885d50e09/raw/d2e64bd019a12f973634daa917f70a6e1fcea9b0/elixir-syntax-highlighting-support-example.md">raw gist</a> to see the exact syntax that you may need to use. Below is a screenshot of how the highlighted syntax looks in a markdown file.<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiom0PWNPcxTWZ2I4cVgYiPi9BfJK-pJjQjJYiFIArUbYnxQAqema_as_cS7zBncT04Xm-VJFyJGbxxHpU4K5DDbVn3N38zCGhujCkYYdS3cnNOQmOZl8tp_SVIG35-r1TlZYzyVrbc5D6U/s1600/Screen+Shot+2016-02-05+at+6.31.46+am.png" imageanchor="1"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiom0PWNPcxTWZ2I4cVgYiPi9BfJK-pJjQjJYiFIArUbYnxQAqema_as_cS7zBncT04Xm-VJFyJGbxxHpU4K5DDbVn3N38zCGhujCkYYdS3cnNOQmOZl8tp_SVIG35-r1TlZYzyVrbc5D6U/s320/Screen+Shot+2016-02-05+at+6.31.46+am.png" width="320" /></a><br />
<br />
I would like to thank Karmen Blake and Andrea Rossi for helping out from the elixir community :). I think you should definitely hangout in the beginners channel of their slack group if you're just getting started with elixir.<br />
<br />
Cheers.<br />
<br />
P.S: It's been a while since I've written my last post. I had been held up with a few things in the past but I hope to write more often going forward. Thanks for your patience.</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-40564547886613245482015-10-07T21:08:00.001-07:002015-10-07T21:08:13.582-07:00Disable sorting of a column when using Datatables<div dir="ltr" style="text-align: left;" trbidi="on">
Hello,<br />
<br />
I recently wrote a <a href="http://www.cybrilla.com/blog/disable-sorting-of-a-column-when-using-datatables/">post</a>(in the <a href="http://www.cybrilla.com/blog/">company blog</a> that I currently work for - <a href="http://www.cybrilla.com/">Cybrilla</a>) on how to use a specific aspect of Datatables. The blog also has some insights on when using Datatables would be a good option. </div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-32935537432735292542015-09-27T08:38:00.000-07:002015-09-27T08:38:52.421-07:00Building the Hangman game as part of a distributed team<div dir="ltr" style="text-align: left;" trbidi="on">
Hello,<br />
<br />
I was recently involved in building a Hangman game(as a side project) to improve my Javascript skills. What was unique about this experience was that the work on this project was done in collaboration with folks from different parts of the world. I had a good experience overall and one can read more about my experience from the <a href="http://www.codenewbie.org/blogs/building-the-hangman-game">original article</a> that was published on the <a href="http://www.codenewbie.org/">Code Newbie site</a>.</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-24738624987508146482015-08-21T08:55:00.000-07:002015-08-21T08:55:18.176-07:00Fix for Bad wkhtmltopdf's path: /usr/bin/wkhtmltopdf error when using wkhtmltopdf gem<div dir="ltr" style="text-align: left;" trbidi="on">
<script src="https://gist.github.com/boddhisattva/e9e710364a0e6e822053.js"></script>
<br /></div>Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-42734264545642359632015-07-26T05:49:00.000-07:002015-07-29T20:37:13.254-07:00Sublime Text 3 shortcuts used as part of my daily workflow<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Hello there,<br />
<br />
Shortcuts are an integral part of my daily workflow as programmer. Apart from the shortcuts that I use via my <a href="https://github.com/boddhisattva/dotfiles/blob/master/.zshrc">oh my zsh dotfile</a>(the ones that come via oh my zsh plugins and the custom ones that I've added on top of those), below are the day to day programming shortcuts that I use wrt Sublime Text 3 for Mac OSX. <br />
<br />
<script src="https://gist.github.com/boddhisattva/38f7e5021f4d5f23e4ab.js"></script>
I'd be happy to know if you find any of them useful.</div>Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-20827715160638590522015-07-14T04:35:00.000-07:002015-08-05T19:01:23.751-07:00Crossed 10k blog views - a blog about how to make your blog better(reflecting back on my blogging experiences - part 3). <div dir="ltr" style="text-align: left;" trbidi="on">
<br class="Apple-interchange-newline" />
Greetings everyone,<br />
<br />
This is my last post(part 3) as part of the series - "Crossed 10k blog views - reflecting back on the experiences of being a blogger". You can read the blogs on <a href="http://boddhisattvadedicates.blogspot.in/2015/03/crossed-10000-blog-views-reflecting.html">part 1 - Why you should consider blogging</a> and <a href="http://boddhisattvadedicates.blogspot.in/2015/04/crossed-10k-blog-views-blog-about-how.html">part 2 - a blog on how to blog</a> of the series as well. I've been wanting to talk about the third part for a while now and I'm happy that I finally was able to roll it out. I know this post was expected to be published sometime earlier but somehow it just got postponed, I'm sorry for the delay from my end. Below are my two cents on how could one make their blogpost better and thereby be a better blogger.<br />
<br />
In no particular order, here goes nothing -<br />
<br />
1. <b>The title of your post matters.</b> Choose wisely here as this is the first thing that any reader would see when they visit your blog. Also, please note this is the first thing your blog subscribers would see in the subject wrt the new mails they receive(this is for those readers who've subscribed to your blogs via email updates), Keeping it concise is great and when you find that doing so is hard, try to see if you can choose alternate words to help keep your blogpost title short.<br />
<br />
2. <b>Read others blog</b> and see what you find nice about their blog and the way they've gone about writing it. Next time around you might want to embrace that one nice thing you saw in somebody else's blog to give your blog a unique flavor. Talking about flavor reminds me of food :). People make Yummy food by trying different combinations ;) . Just make sure you make an informed decision on this and don't simply go out the way when experimenting new things as part of a new blog. Take in the new ideas one at a time and see how each new addition is responded to by your valuable readers.<br />
<br />
3. <b>Break things down</b><br />
<br />
In the body section of your blog it'd be nice if you'd break each of the things you want to talk about in smaller paragraphs instead of talking about all of them in one huge para. A body can easily form 3-5 small paras(or more, just quoting an e.g., here) and that would look any day more neater than say 2 huge paras.<br />
<br />
4. <b>Label(or in other words tag) your blog appropriately</b> so that people could search(if the blogging platform that you use supports that feature) for the blog post via keywords they'd enter in the search bar once they visit your blog site.<br />
<div>
<br /></div>
5. <b>Choose a blogging platform wisely</b> where you think you'd like to regularly blog from. Personally for me, Blogger as a platform serves many of my needs very well. Below are some reasons why I think so -<br />
a. It allows me label my posts and folks can easily search from the posts that I've written so far by using appropriate labels in the search bar.<br />
b. Through their stats feature that they provide I get a better idea of which posts people like and it also helps me better understand what was good about this post when compared to say a previous one and that way I can learn by filling in some missing gaps(helping me overcome some of the mistakes I've been making in my earlier posts) instead of simply repeating the same mistake again.<br />
<div>
c. It allows me to easily integrate certain built in widgets as well some custom widgets. An e.g., widget that I use is 'Follow by Email'.</div>
<div>
<br /></div>
6. <b>Highlight things in bold</b> wherever you think it's important. This really helps to give your readers a quick summary of important takeaways from your post.<br />
<br />
7.<b> Less is more - yes and no</b><br />
<br />
As a blogger, for quite a while I wasn't sure if my blog should be of a specific length. IMHO there's no fixed rule to this, may be it just depends on what's the topic of your post. Some posts might need more information and thereby might call for them to be longer, whereas in other cases a shorter post could be just right.<br />
<br />
I'll just give you an e.g., of how I went about deciding this for two blogposts that I've written a while ago.<br />
<br />
Blog 1(The longer blog) - <span alatino="" color:="" font-family:="" georgia="" linotype="" palatino="" serif="" utopia=""><a href="http://boddhisattvadedicates.blogspot.in/2013/11/newspaper-collection-drive-at-cognizant.html">Newspaper Collection Drive at Cognizant for a Cause - An Experience till the Journey's End</a></span><br />
<br />
Blog 2(The shorter one) - <span alatino="" color:="" font-family:="" georgia="" linotype="" palatino="" serif="" utopia=""><a href="http://boddhisattvadedicates.blogspot.in/2013/06/what-are-employability-skills-required.html">What are the employability skills required for an entry level engineer in an IT Industry(atleast in India)?</a></span><br />
<br />
8. <b>A picture is worth a thousand words - use them</b>. I recently was listening to an audiobook on 'Your Brain at Work' by David Rock and there he very nicely throws light on how a picture talks not only about the multiple entities that come as part of the capture, but also about the relationships among those entities. For e.g., take a picture of somebody's graduation pic you could see a lot of things like - the graduating student, happiness, the university, other folks in the pic(like the parents or a partner etc.,). Now think about this, do you see how wonderfully these entities are connected by just one picture :). Personally, this came as a wonderful insight to me from the book.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggyFVX8TIGvw5dgLPuZ1A8MJTuHgvW9TmeqW9UZbwm9shylNYjRiRgOA_ptbDUrshHQGMMD1KrlDv5jniZeLTs0NBnJHyDswxA1bWe0ldqHQWWFzQNVSQxyIzr6HHSmU81IfrAP-VpSyR1/s1600/pic_worth_thousand_words.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggyFVX8TIGvw5dgLPuZ1A8MJTuHgvW9TmeqW9UZbwm9shylNYjRiRgOA_ptbDUrshHQGMMD1KrlDv5jniZeLTs0NBnJHyDswxA1bWe0ldqHQWWFzQNVSQxyIzr6HHSmU81IfrAP-VpSyR1/s400/pic_worth_thousand_words.png" width="400" /></a></div>
<br />
<br />
9. <b>Use appropriate widgets</b> in the blog to let readers get to know more about you(like the<b> LinkedIn widget, Stackoverflow</b> widget etc.,) and contact you(I've provided my email in the 'About' section of my blog) as a follow up on your blogpost, if they might want to. One thing about being a blogger is that you need to stay connected with your viewers, the folks who comment on your blog etc., These folks are your readers so it's a good thing if you provide them your contact in case they'd want to reach out to you urgently(This can really help if your blog has technical articles too). In the past I've contacted some bloggers through their email wherever I had a follow up question on their original post and wanted a prompt response.<br />
<br />
I would like to also add, most recently I've added this <b>widget called 'Pocket'</b> and my readers can very easily save a link to each of my blog posts through this cool widget. It really helps when one say for e.g., has figured out a post towards EOD and has say a bus to catch for the journey back home. That person can simply save a link to my blog via this handy widget and revisit the post anytime in the future. These days, even Twitter has added this to help save a link to each of the tweets that one might find handy. Convenient, isn't it :) .<br />
<br />
10. <b>The Learning goes on,</b> ask people and read books on how to blog better if you have may be detailed questions on how to blog better about specific topics. If you're techie, <a href="http://www.amazon.com/Technical-Blogging-Expertise-Remarkable-Presence/dp/1934356883">this book on Technical Blogging</a> might be of interest to you.<br />
<br />
11. <b>Spreading the word.</b><br />
<b><br /></b>Yes, you heard it right, you should spread the word about your post and trust me there is isn't any shame whatsoever in doing it. It's your wall on <u>Facebook</u> or your account on <u>Twitter</u>, you're free to talk about anything appropriate, so simply do it(reminds me of Nike's slogan - 'Just Do It' :)).<br />
<br />
The idea is pretty simple, the folks who know what you are as an individual(although the extent they know can vary from person to person) would visit your post and some might like/retweet/favorite your post and the rule is simple, anything with more likes/retweets/favorites automatically draws the attention to other viewers of your twitter feed/ facebook wall.<br />
<br />
Do this even on professional platforms like <u>LinkedIn</u>. I think this is very handy especially when you talk about blogposts related to your area of work. In my case for e.g., I sometimes go to the the extent of not only posting my technical blog on <u>Linkedin</u> but also post them in relevant technical groups within the Linkedin platform, narrowing down to what I may believe would be the ideal audience of my post.<br />
<br />
12. <b>What should I blog about</b>? Many folks have this question. I've had this question in the past too. From somebody I learnt that one way to figure out what to write about is by simply thinking about something that you wish you could easily find out in the internet but wasn't that easily available unless you actually searched by spending more time than what you'd usually do in general.<br />
<br />
13. <b>Add some humor to your posts. </b>Variety is the spice of life, adding some genuine humor in the way you interact with your audience through your post is just a nice way to connect with your audience and it makes writing even more joyful as you can may be live the thought that yeah, my post actually could get someone to smile :). I also see that speakers do this in the conference talks and audiences enjoy such talks with an element of light humor.<br />
<br />
14. <b>Timing of your blog is crucial as well.</b> I kinda relate more to this point from the perspective of the profession I'm in and you might thus find this point subjective in a way. I'm basically a developer and in the software world the technology that I use for development gets updated from time to time and as a result any tech blog that might be applicable now, might just not be that applicable if you delay posting the same blog a month later in case there is some enhancement/new feature added to that technology that helps one get the job done in a better way. Trying to push yourself to roll out tech blogs as early as you could before they lose it's relevance is really worth the effort.<br />
<br />
15. <b>Give credits to others where appropriate</b>. If a part of your blog uses something that isn't originally yours, giving credit to the original owner of that specific asset which makes your blog even more complete is probably the least you could do to appreciate their effort especially since it's adding more value to your blog.<br />
<br />
Lastly, I believe I still have more things to learn(as mentioned in one of the points above) along the journey of how to be a better blogger. I hope to update this blog as and when I learn more ways to be a better blogger along the way.<br />
<br />
Hope the above points help you become a better blogger. In case they did, I'd be happy to hear from you :)<br />
<br />
Thanks.<br />
<br />
<b>Photo credits - </b><br />
<b><br /></b>
1. http://shadowxomega5.deviantart.com/art/A-Picture-Is-Worth-A-Thousand-Words-303482041</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com1tag:blogger.com,1999:blog-4827506481381066432.post-41017792174615331122015-06-22T17:54:00.000-07:002015-06-22T17:54:06.293-07:00How to figure out Runtime Dependencies when using Bower via Rails Assets<div dir="ltr" style="text-align: left;" trbidi="on">
Hi there,<br />
<br />
The original post of this article was made in the company blog that I'm currently working for(<a href="http://www.cybrilla.com/">Cybrilla</a>). Please refer to <a href="http://www.cybrilla.com/blog/how-to-figure-out-runtime-dependencies-when-using-bower-via-rails-assets/">this link</a> for the complete blogpost.<br />
<br />
Going forward, there might be quite a few posts which I might directly be posting on the company blog that I work for and I'm planning to share links to those posts on my personal blog. I just wanted to bring this to the kind notice of the readers/subscribers of this blog.<br />
<br />
Thank you.</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-66537347780957495762015-06-07T20:22:00.001-07:002015-06-07T20:22:30.261-07:00ReactJS Bangalore June 2015 meetup experience<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Hello,<span id="docs-internal-guid-e7b7d5bb-d0e2-d94c-c3fb-bd2d9dcd40cc"></span><br />
<br />
Recently, I attended my first <a href="http://www.meetup.com/ReactJS-Bangalore/events/222105080/?a=gs1.1_l">ReactJS meetup in Bangalore.</a> The meetup was hosted at <a href="http://codemancers.com/">Codemancers</a> .<br />
<br />
<a href="https://github.com/akiran">Kiran</a>, an organizer of this meetup gave a talk titled <b>Introduction to React Native</b>. You can find the slides used as part of his talk <a href="http://www.slideshare.net/kiranabburi/react-nativemeetuptalk">on this link</a>. Below are some quick notes that were jotted down based on the discussions at the meetup around the talk and also around varying experiences of the other attendees who've tried React.<br />
<br />
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Discussion around ReactJS -</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Treat the application as small components</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We can compose those components to build large components</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">jQuery etc., is imperative whereas React is declarative</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React handles states differently</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React uses different features like composition etc.,</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Interestingly React web and native supports writing some basic CSS properties within the React JS file itself.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">In react whenever the state changes, we update the view via the Virtual DOM.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React components are tiny and manageable, one has more control over data when using React</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="line-height: 20.7000007629395px;">Discussion around </span>React Native</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React Native is mainly for iOS apps at the moment. Support for Android is something that they've planned for the future.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Development using React native can be done only on Mac at the moment because it depends on things like xcode etc.,</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-roman; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">to use in other operating systems Ubuntu → use a mac virtual box..(not officially supported by Apple)</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Has a steeper learning curve when compared to reactjs</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Learn once and write everywhere principle</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React native is mainly for the mobile apps with native experience</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Debugging can be done via chrome dev tools</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React native implements Flexbox(flexbox is a new layout module for web)</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Components like div etc., have equivalent things like View etc.,</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">They try running react with the iOS simulator</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">General discussion</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People definitely find it better than Angular. One of them even said that react is not only easier for him as a developer, but also it’s useful for other developers on the same project who may not be working on building similar JS stuff</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">React Native is better than Web in terms of the UI</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Check out </span><a href="http://todomvc.com/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">todomvc.com</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> to help decide which JS framework can be used to better suit your needs.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="line-height: 20.7000007629395px;">There is something like even the react developer tools through which you can even change the state or something on those lines.</span></span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>To get started with react</b></span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="http://www.reactstarterkit.com/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">http://www.reactstarterkit.com/</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> - It will have all the build tools that we need.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">An open source project that </span><a href="http://github.com/akiran" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Kiran</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> is working on -</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-roman; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://github.com/akiran/react-foundation-apps" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">React Foundation Apps</span></a></div>
</li>
</ol>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Things to research further about in the context of React</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">ReactJS style guide</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-roman; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Around this topic there was a discussion that folks can use Flux as their application goes bigger in size.</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">How to write tests in React
</span></div>
</li>
</ol>
</ol>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;"><br /></span></span></div>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;"><b>Photos taken at the meetup -</b></span></span><br />
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;"><b><br /></b></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg20szYeWgM2r38pH-fdtCFSZRWctHMMNd_go5ZoCA66_wePnk6m7nNz44iQfjuzaCQ85HypU5ulUjxBA8WBqousQEiJCXh15A7OVk6GsGVoKCjaiGheOiTydDRHNG595zlDuPLb9o03mz4/s1600/20150607_124924.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg20szYeWgM2r38pH-fdtCFSZRWctHMMNd_go5ZoCA66_wePnk6m7nNz44iQfjuzaCQ85HypU5ulUjxBA8WBqousQEiJCXh15A7OVk6GsGVoKCjaiGheOiTydDRHNG595zlDuPLb9o03mz4/s320/20150607_124924.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje_Iu9vF3XC04ew3GePh-bePeOXdLsJ7YkeTWb2XgL44pVu3IUi5VZJq8Cgc9xFl_Ed-ShvesIRLRjQ6wVV69LsKsxwdIn3U2wultyRd3iQiC2O9_6mJvbYMMKmU-1uhQu1q3Te_5IWfx1/s1600/20150607_124934.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje_Iu9vF3XC04ew3GePh-bePeOXdLsJ7YkeTWb2XgL44pVu3IUi5VZJq8Cgc9xFl_Ed-ShvesIRLRjQ6wVV69LsKsxwdIn3U2wultyRd3iQiC2O9_6mJvbYMMKmU-1uhQu1q3Te_5IWfx1/s320/20150607_124934.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEPb5uZVRcLdViMAuECZrMyAk_V4CYbpUPlm7_AzVY6GFLllVpjVHqt9L3C2YJtiV3FaJE-0Sr5oxGFouiwcbPGiWoKGYYNLN3dGkfZPGEL7jt8E-DF9OtjGJDPvqTdQHF-OcPmoaOGk3M/s1600/20150607_124954.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEPb5uZVRcLdViMAuECZrMyAk_V4CYbpUPlm7_AzVY6GFLllVpjVHqt9L3C2YJtiV3FaJE-0Sr5oxGFouiwcbPGiWoKGYYNLN3dGkfZPGEL7jt8E-DF9OtjGJDPvqTdQHF-OcPmoaOGk3M/s320/20150607_124954.jpg" width="320" /></a></div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;"><b><br /></b></span></span></div>
<div>
<br /></div>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;">I would like to thank Codemancers for hosting us, Kiran for sharing his experiences of using React via his talk and all the attendees for the interesting discussions we had around React.
</span></span></div>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;"><br /></span></span></div>
<div>
<div>
<span style="font-family: Arial; font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;">P.S:- </span></div>
<div>
<span style="font-family: Arial; font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;">
</span>
<br />
<div>
Since these are quick notes, please feel free to correct me if there is a typo in something or if I've incorrectly mentioned something. Also, please feel free to add more points as comments that were discussed as part of the meetup in case I missed mentioning something, I'll update the post accordingly.</div>
</div>
</div>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-87348746445372859102015-05-24T21:08:00.002-07:002015-05-24T21:08:55.369-07:00Bangalore Ruby User Group May 2015 Meetup Experience<div dir="ltr" style="text-align: left;" trbidi="on">
Hello,<br />
<br />
The May 2015 BRUG meetup was at <a href="http://www.amagi.com/">Amagi Media Labs</a>. I just thought of summarizing some quick notes from the discussions that took place as part of the meetup hoping that it could serve as a reference for those who could and couldn't make it for the meetup.<br />
<br />
To give you a background, some of these discussions were around some questions raised by a person who is running a site called <a href="https://loanmeet.com/">Loan Meet</a> using Ruby on Rails. What's unique was this person was doing Rails development on Windows! We had an interesting discussion around 'Rails on Windows' and the person using it admitted that he had to setup additional things for using certain gems in a Windows platform.<br />
<br />
<div>
Things discussed were -</div>
<div>
<br /></div>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Somebody from Amagi Labs was giving a presentation into what they're basically into, what problems their addressing and where does Ruby fit into their Tech Stack.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><a href="https://twitter.com/HashNuke">Akash Manohar</a> briefly spoke about <a href="https://github.com/HashNuke/asdf">asdf</a> an Extendable Version Manager for Ruby, Node.js, Elixir and more</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">There was a discussion around Elastic Search and <a href="https://twitter.com/avishastry">Avinasha Shastry</a> from SupportBee mentioned that they Cache Elastic Search setup for Circle CI instead of installing it as part of every build.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People were discussing different deployment options and many of them were suggesting that the Digital Ocean $5 plan is good for starters.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People were talking about <a href="https://blog.heroku.com/archives/2015/5/19/heroku_review_apps_beta">Heroku Review apps</a></span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For basic mailing options in RoR apps people were discussing the below -</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Don’t use mailgun - it's pretty costly</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Using Amazon instead is cheap</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For Transactional email on behalf of clients people can’t use amazon</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">I had a question around ways to better manage our assets. <a href="https://twitter.com/skykog">Akash</a> from Icicle and somebody else(sorry, I can't properly recall who) mentioned You can use </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"><u>multiple manifest files</u></span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. That was something I didn't know about earlier.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We were then discussing different ways to manage front end assets -</span></div>
</li>
<ol style="margin-bottom: 0pt; margin-top: 0pt;">
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: lower-alpha; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People were talking about - bower, yeoman, grunt and something called <a href="http://brunch.io/">brunch</a> (This actually reminds me of something like breakfast + lunch :)?, jokes apart, this was something which even I hadn't heard of earlier!) .</span></div>
</li>
</ol>
<li dir="ltr" style="background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People were also talking about debugging in production via pry-remote, papertrail, <a href="https://github.com/elastic/logstash">logstash</a> </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">for production related logs. Many of them agreed that using a third party service like papertrail can save you from the responsibility of managing these things by yourself.</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Encoding issues, configure git config to better manage carriage returns</span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">We could use SMS services in our Rails apps via Twilio and <a href="http://www.solutionsinfini.com/">solutionsinfini</a> . </span></div>
</li>
<li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: decimal; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">People were also talking about <a href="https://github.com/prometheus/prometheus">Prometheus by SoundCloud</a>.</span></div>
</li>
</ol>
<div>
<br /></div>
<div>
I'd like to thank Amagi Media Labs for hosting us. They've come up with a new office there and I'm just sharing a few snaps(I had asked them if I could click a few snaps) taken there as they're office setup looked interesting :)</div>
<div>
<br /></div>
<div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_C_sYrZ6Q-Q0KgortI-jP2NXeLv9YyCckhQL7L4bFeyHgPvludv2qqSQguMkk-MQa0TUNNyWM9fLZU-RcV0mcb4q9wjxFKt7xPvDT0JRWS0jb6IQlYkJugAy6j4LCUSrvAhDshqio6ARV/s1600/20150523_151543.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_C_sYrZ6Q-Q0KgortI-jP2NXeLv9YyCckhQL7L4bFeyHgPvludv2qqSQguMkk-MQa0TUNNyWM9fLZU-RcV0mcb4q9wjxFKt7xPvDT0JRWS0jb6IQlYkJugAy6j4LCUSrvAhDshqio6ARV/s320/20150523_151543.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixyAzFd1jADlaGltFI4DGOHav9ZgeH1WSKx5mzhDg8DQl7enzEtEQUQZUAbcQG_dSy91wylwkbBxrd3K9NluVMuE5CyKxVc-vi2hmqfhVBE7ybeH2rhRkYsEsq5QwWnz6SJs3od21VVWjW/s1600/20150523_151600.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixyAzFd1jADlaGltFI4DGOHav9ZgeH1WSKx5mzhDg8DQl7enzEtEQUQZUAbcQG_dSy91wylwkbBxrd3K9NluVMuE5CyKxVc-vi2hmqfhVBE7ybeH2rhRkYsEsq5QwWnz6SJs3od21VVWjW/s320/20150523_151600.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_NM62jg3J3kr_oEGt8rsFmeYesnr0ePnPBxtke4DcP7bb7Optqq4B8D5kdkYwcbWnWhqfvFowZ2gDuAzUtX9N7v9jXGOHe0eT5B7fKhgKGnlUJYkywF2c8JwOp7PPYWLOeDjcupGTbkKS/s1600/20150523_151616.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_NM62jg3J3kr_oEGt8rsFmeYesnr0ePnPBxtke4DcP7bb7Optqq4B8D5kdkYwcbWnWhqfvFowZ2gDuAzUtX9N7v9jXGOHe0eT5B7fKhgKGnlUJYkywF2c8JwOp7PPYWLOeDjcupGTbkKS/s320/20150523_151616.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjETne4exq7QEf5Chyvj_Zm95_aDo-N6bLRpHbABKzgGty-i3wGiJxI6B5zgwSEyJ4Vl7av6H0myS29P2LHZuCUmhBFca9gvNjQYVIuZKWFVn_hPpBfFIHxc8d7EqBIHNkeGkn60hCARV6E/s1600/20150523_151626.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjETne4exq7QEf5Chyvj_Zm95_aDo-N6bLRpHbABKzgGty-i3wGiJxI6B5zgwSEyJ4Vl7av6H0myS29P2LHZuCUmhBFca9gvNjQYVIuZKWFVn_hPpBfFIHxc8d7EqBIHNkeGkn60hCARV6E/s320/20150523_151626.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkHMfEIac6Ak0qYCT0nCaxhDDJI07jnUmJn1Kzlq4jdEgit_Fs5imw2rXe1GrvRfzDmLhCTXV7HArJ3oVnClSclRjo2oVTptfQq3s3KqoHY3k1je56sZT0rgYGfMmyGWWk12KvkFfvXane/s1600/20150523_151631.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkHMfEIac6Ak0qYCT0nCaxhDDJI07jnUmJn1Kzlq4jdEgit_Fs5imw2rXe1GrvRfzDmLhCTXV7HArJ3oVnClSclRjo2oVTptfQq3s3KqoHY3k1je56sZT0rgYGfMmyGWWk12KvkFfvXane/s320/20150523_151631.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-lj5D79JG-Xtgy5MKWAti3VT8nsSsipMJm7iqJC0NeGlzEaIiQT0zuwpOpduGqVLgN7UBDMo6K2srD8PlQcOXzFwpKfS4MF-CfDFNxFVav3t4zLF9YUSajeaOGLtBBjU3O340388FVvnt/s1600/20150523_151654.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-lj5D79JG-Xtgy5MKWAti3VT8nsSsipMJm7iqJC0NeGlzEaIiQT0zuwpOpduGqVLgN7UBDMo6K2srD8PlQcOXzFwpKfS4MF-CfDFNxFVav3t4zLF9YUSajeaOGLtBBjU3O340388FVvnt/s320/20150523_151654.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-f2h2BbwoLOQQbXS7vZnM8w9cxRju-DFR8wtziHskQCWP06HNyL5mFV02VZ6sXjUp5P0PzWsRXwY1UuX61_9W_KzjvpfgcxsXOtvy_WoVk64WM-TcCHsrCCM1raS2rbDld5y9URK1IDx7/s1600/20150523_151731.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-f2h2BbwoLOQQbXS7vZnM8w9cxRju-DFR8wtziHskQCWP06HNyL5mFV02VZ6sXjUp5P0PzWsRXwY1UuX61_9W_KzjvpfgcxsXOtvy_WoVk64WM-TcCHsrCCM1raS2rbDld5y9URK1IDx7/s320/20150523_151731.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JQEHotRgqqVYxrylshfnJgWN4ZRst4E34M5wml3L-6d1GMzSlnhg07H48s27mD5z3m-keT2iqIbZ4rCGIqCg_R08KoI9MR0-3jfgSLBSKOJ7HAu9Lrl8X71H4xP7RAFkzrdJXtrOti4-/s1600/20150523_151904.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JQEHotRgqqVYxrylshfnJgWN4ZRst4E34M5wml3L-6d1GMzSlnhg07H48s27mD5z3m-keT2iqIbZ4rCGIqCg_R08KoI9MR0-3jfgSLBSKOJ7HAu9Lrl8X71H4xP7RAFkzrdJXtrOti4-/s320/20150523_151904.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-FwJxwd_jx4eKLOALQDEYRWHnNrILYO206RRCKUzPi3BDOHwIWHAEJR9BUUvGJ9LgUM0pNftJkZFFW3x15VUma0YYBfmqTG2hD_kazVQsDbLdtsQdWRQOnIm7pqVWmBGRUKCheh6aELO7/s1600/20150523_151920.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-FwJxwd_jx4eKLOALQDEYRWHnNrILYO206RRCKUzPi3BDOHwIWHAEJR9BUUvGJ9LgUM0pNftJkZFFW3x15VUma0YYBfmqTG2hD_kazVQsDbLdtsQdWRQOnIm7pqVWmBGRUKCheh6aELO7/s320/20150523_151920.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Y2WR6WV7uV9YHQksrShuCXtrIbFG3doxCFjM2ZlgqxOW1uTUjKLl94RDNrvUJMyUO99bqtIoHXPxMnP_Ktae_1xxJizOE8VJLiQRSgIpozGaFJIti5JiYf7vxwb8CIyyYfsHF7V-bsk7/s1600/20150523_151927.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7Y2WR6WV7uV9YHQksrShuCXtrIbFG3doxCFjM2ZlgqxOW1uTUjKLl94RDNrvUJMyUO99bqtIoHXPxMnP_Ktae_1xxJizOE8VJLiQRSgIpozGaFJIti5JiYf7vxwb8CIyyYfsHF7V-bsk7/s320/20150523_151927.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_0H241JiUSHK3oiLGe_izz1hfrYzzvRBxV6MI-dz2cfqrOlExWqPXYtntPN4R5KIiDy0YOiurskr2VAPcabmqFQ6ZjnGrbW5rflEGiepXiYBmwaLbEJN_8qC9cpSJImsX179WvoF-Jom/s1600/20150523_151932.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_0H241JiUSHK3oiLGe_izz1hfrYzzvRBxV6MI-dz2cfqrOlExWqPXYtntPN4R5KIiDy0YOiurskr2VAPcabmqFQ6ZjnGrbW5rflEGiepXiYBmwaLbEJN_8qC9cpSJImsX179WvoF-Jom/s320/20150523_151932.jpg" width="320" /></a></div>
<br />
<br /></div>
<div>
<span style="color: #666666; font-family: Arial;"><span style="white-space: pre-wrap;">
</span></span><span style="font-family: Arial; font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;">P.S:- </span></div>
<div>
<span style="font-family: Arial; font-size: 15px; line-height: 20.7000007629395px; white-space: pre-wrap;">
</span>
<div>
Since these are quick notes, please feel free to correct me if there is a typo in something or if I've incorrectly mentioned something. Also, please feel free to add more points as comments that were discussed as part of the meetup in case I missed mentioning something, I'll update the post accordingly.</div>
<span style="color: #666666; font-family: Arial;"><span style="white-space: pre-wrap;"><br /></span></span></div>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-29140280032336560862015-04-26T01:01:00.002-07:002015-04-26T01:03:16.457-07:00Crossed 10k blog views - a blog about how to blog(reflecting back on my blogging experiences - part 2). <div dir="ltr" style="text-align: left;" trbidi="on">
In my last <a href="http://boddhisattvadedicates.blogspot.in/2015/03/crossed-10000-blog-views-reflecting.html">post</a>(Crossed 10k blog views - experiences of being a blogger part1) I made an attempt to talk about why should one consider blogging on a regular basis. The last post had many of my personal experiences in life as a blogger and how that helped me along the roadtrip of my life.<br />
<br />
In this post, I originally thought that I'd share my two cents on what might help one to be a more effective blogger but recently somebody asked me how should they go about writing a blog so I'll be talking about that in this blog first and in the part3 of this blog series(Crossed 10k blog views - sharing my blogging experiences along the way) I will share my two cents about things that I've learnt and which might help you be a better blogger.<br />
<br />
<b>The BIG Question - How should one write a blog ?</b><br />
<br />
When I started blogging, I had this question too. I remember writing long paragraphs back then without uniformly structuring my post :). One thing that I've realized is that a blog should have a structure. Something similar to say an email in the modern world and what was like a letter posted by a postman in older days. The blogpost should have an introduction to set the context, a body and a conclusion apart from the post title. Let's talk about each of these basic sections one at a time to better understand what goes into which section -<br />
<br />
<b>a. The Introduction</b><br />
<br />
This generally forms the initial paragraph(s) of your blogpost. The first thing that any reader might lay their eyes upon as soon as they might hit your blogpost is the first few paragraphs of the post. These paras talks about what's the idea behind putting up your post or what probably was your motivation behind writing it or basically things on those lines. Think of this like when your watching a movie, there's an intro, then a deep dive and then finally a climax :).<br />
<br />
<b>b. The Body</b><br />
<br />
Here's where you'd like to elaborate in more detail what your post is all about. If the details are connected you might want to consider sequencing them. This is the section where one can insert different forms of media(like pictures, videos etc) in their post to make it more meaningful. Please make sure you break down your body in multiple small(say around max 4-6 lines each) paragraphs rather than a couple big ones so that the readers can not only pause to reflect back upon the ideas you've posted in each of these paras but they can also easily find what their looking for when their searching for something specific.<br />
<br />
<b>c. The Conclusion</b><br />
<br />
This is where you as an author pen down you final thoughts around the whole idea that your post may talk about. This is a wonderful part of the passage where you can end with an inspirational quote or simply summarise the takeways wrt your post.<br />
<br />
<b>Lastly</b>, if you have an option don't forget to label/tag your blog appropriately so that the readers who visit your mail blog site can easily search for one of your specific blog through these keywords.<br />
<br />
That's basically it about how do you write a blog :)<br />
<br />
In case you have any suggestions around this post to help one get started with their blogging journey feel free to share your views in the comments section. I'll be happy to learn from others experiences of how they got started on this too :)<br />
<br />
Thank you. </div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-81490202064365137342015-03-26T09:55:00.002-07:002015-04-19T16:58:11.244-07:00Crossed 10,000 blog views - Reflecting back on the experiences I've had along the journey of being a blogger(part 1)<div dir="ltr" style="text-align: left;" trbidi="on">
Today is just not another day for me, looking back at my journey of being a blogger(which is one of the multiple hats that many people wear as part of their lives), today is a special day. I'm thankful to all the viewers who've visited my blog as if it wouldn't be for them I wouldn't have crossed the 10,000 views mark. Today, I would like to talk about blogging and how it has helped me till date in many ways both personally and professionally and also what I've learnt along the journey so far in my attempts to be a better blogger.<br />
<br />
People generally would like to know why they should do something(part 1 - here I will attempt to share experiences of how blogging has benefited me) before they would want to know how it is done better(part 2 - I will share my two cents of learnings of what might possibly help you to be a better blogger from my experience) so I will talk about things in that order in a series of posts starting from this one.<br />
<br />
The BIG question(for some may be)<b>, How has blogging personally and professionally impacted my life </b>-<br />
<br />
1. The first thing I can think of from the top of my mind is that it's the <b>freedom of speech</b> where I talk about anything(anything which is generally considered 'appropriate' in the blogging sense or in the blogging world is what I'm basically referring to here - in case you're already thinking otherwise :)) under the sky.<br />
<br />
2. It has given me <b>more confidence</b> that people find the information I've shared to be useful or else why would people revisit a blog time and again. This in itself I feel has many related benefits.<br />
<br />
<ul style="text-align: left;">
<li>It kinda gives me the sense of feeling that somewhere I can connect with people(the extent is not what really matters here, but just being able to connect is in itself a fulfilling feeling in many ways :))</li>
<li>Somewhere it tells me, that what I'm facing in terms of a problem and may be whose solution I'm blogging about, is something that others like me are seeking out too :). So this makes me reflect that , yeah, it's okay to face problems and try to figure out solutions to them via blogs. One needn't really have to consider themselves to be inferior in anyway when they face such problems. It's just you try finding a solution yourself first before you head out for seeking solutions from the world around. </li>
</ul>
<div>
3.<b> It has given me joy.</b> This joy, for me is the j<b>oy of sharing</b>, the <b>joy of giving back</b> to the community whose blogs I've referred to when I had faced some roadblocks. Joy of the feeling, yeah, that by doing my bit(it's very little compared to the number of bloggers out there in the world today who religiously blog more often then I do), I can may be tell myself that yeah, I'm atleast a drop in the mighty ocean of the community of such people around me.</div>
<div>
<br /></div>
<div>
4. <b>People around get to better understand you as a person through your blog</b>. They get to know what you care about and what you are passionate about. All this through your thoughts in your blog.</div>
<div>
<br /></div>
<div>
5. On a <b>professional front</b>, it has given me many things like -</div>
<div>
<ul style="text-align: left;">
<li>The blog has helped me get <b>a better job offer</b> as people get to know me better as a person before I get interviewed by any of them. How?</li>
<ul>
<li>It separates out any such candidate who has a blog from those who may not have one</li>
<li>People have looked at the technical blogs I've written and checked for things they'd look for when generally interviewing potential candidates for a relevant job opening</li>
<li>I don't know what exactly that is that such interviews look out for, but it could be some useful things that are unique about you on the technical lines or may be it's just the fact that you believe in the spirit of giving back to something for what you've used from that thing(in my case it's open source technologies like Ruby on rails), that one can find out through your blog.</li>
</ul>
<li>People in the professional world have recognized me my blog(to a very small extent so far, but this is still one true thing that has happened with me)</li>
<li>It has helped me be a <b>better writer</b>. I still remember one of my very senior office colleagues told me that I should even consider freelance writing. </li>
<li>On one of my blogs which was in an internal hosted platform for a company I worked for previously had a comment from <b>one of the readers who said 'I could visualize the series of events with respect to what you've written in your blog'.</b> I still very well remember this comment and today it just makes me believe more on my potential. Just think about it, how nice would you feel if you get such a comment. This is the only reason why I'm reiterating what that person told me via the comment to that post back then. Just a word of appreciation can do so much to boost one's confidence if we humans actually go to see :).</li>
<li>Others began to appreciate what I blogged about. It just simply felt nice as one generally does if you get a pat on your back for you work, don't you?. One of <a href="http://boddhisattvadedicates.blogspot.in/2013/11/newspaper-collection-drive-at-cognizant.html">my blogs</a> was listed on <a href="http://paper.li/">paper.li</a> . This <a href="https://www.facebook.com/mohnish.jadwani/posts/10201825491112340">post</a> and the picture below say it all </li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQg4Pfsox949pZejHmY8ZvAEHnu_JCGslgLvOfioT5OBEAD7se0uUwd46tkhuudSaB1dVxvHMDZzqIE4F_bvdr1IfFmlzEY3v9B6Wa9Ep2S4HNC2rxGZZNo-HNutpMSag3p9lNKDMcs_i6/s1600/memories_blog_go_green.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQg4Pfsox949pZejHmY8ZvAEHnu_JCGslgLvOfioT5OBEAD7se0uUwd46tkhuudSaB1dVxvHMDZzqIE4F_bvdr1IfFmlzEY3v9B6Wa9Ep2S4HNC2rxGZZNo-HNutpMSag3p9lNKDMcs_i6/s1600/memories_blog_go_green.jpg" height="315" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<ul style="text-align: left;">
<li>The above made me realize I have decent writing skills too :).<b> I could write more confidently in other forms of professional written communication</b>(like emails etc.,) because of the practice or the learnings I had with writing things like blogs</li>
<li><b>My vocabulary got better</b> and I could even speak more confidently . I could even comprehend things better when others spoke about stuff as some of the words they used sounded more familiar.</li>
<li><b>Blogging, I humbly believe now has come to be one of my strengths</b>. It helps me know myself better as a person and it kinda gives me more confidence as to something I can definitely categorize under the bucket of strengths. <b>I believe this will add to anybody's unique selling proposition(USP)</b> <b>as a potential candidate for an appropriate suitable position </b>which may require one to use writing skills to an extent where you could influence people by your words. This makes me remember the quote, 'The pen is mightier than the sword".</li>
</ul>
<div>
6. <b>Why am I writing about all this you may ask. Here's the answer -</b></div>
<div>
<br /></div>
<div>
I don't think this is actually a big deal that I have crossed 10,000 views, but this is just a nice feeling and I just want to live it and share it, that's basically why I'm writing this. Looking back, I kinda now feel, if somebody would have told me all of this earlier or may be even something else about blogging which I'm yet to discover :)(who knows, I'm sure there are more people out there who have experienced and learned more with blogging than I have), I would have written even more articles than what I've written up to now.</div>
<div>
<br /></div>
<div>
Also, I'm not saying all this to boast, I'm just sharing what motivates me to keep blogging and why may be you, a patient reader who has actually read what I've written so far should also consider doing this. You've read this far in itself probably shows you somewhere care about something and you're trying to find out what that thing is. Blogging may give you an audience where you could be more expressive or simply find more people who share similar interests and even talk about them through blogs :)(Hope you see the connection blogging can may be make for you by now :)) </div>
</div>
<div>
<br /></div>
<div>
What I've said in the above kinda reminds me of <a href="https://www.youtube.com/watch?v=UF8uR6Z6KLc">Steve Jobs inspirational speech at the Stanford graduation ceremony </a>where he says a couple of things which I feel I can now better relate to. Will list them below -</div>
<div>
<br /></div>
<div>
1. <b>One can connect the dots only looking backwards</b>. How true, I didn't realize I would learn so much about myself via blogging. But I can simply say I'm happy now to know learn some more about myself and I'm still exploring to know more :)</div>
<div>
<br />
<blockquote class="tr_bq">
2. Quoting Steve Jobs - "<span 16px="" 24px="" arial="" color:="" dimgrey="" font-family:="" font-size:="" line-height:="" ource="" pro="" sans-serif="" sans="">Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. <b>So keep looking until you find it. Don't settle</b>."<b> </b></span></blockquote>
<span 16px="" 24px="" arial="" color:="" dimgrey="" font-family:="" font-size:="" line-height:="" ource="" pro="" sans-serif="" sans=""><br />- For me what I found out was that I personally enjoy blogging, it took a while to figure it out but I'm glad I did eventually :). But overall, j</span>ourney of self exploration still goes on for me :)</div>
<div>
<br />
<br /></div>
<div>
Lastly, I can think of one person today on the top of my mind who had encouraged me to blog more when I first started blogging few years back. His name his<b> <a href="http://in.linkedin.com/pub/deepak-prabhu/2/413/5b6">Deepak Prabhu Matti</a> and I'm really thankful to him</b> for this. <b>I'm also grateful again to my viewers and all my friends </b>who've told me 'Hey, nice blog!' or things on those lines<b>, I wouldn't be here without you all</b>. Please forgive me if I've missed mentioning somebody. Lastly, I can definitely without any doubt say that,<b> I'm grateful to Google and the folks who've built the Blogger</b> platform because without their stats, platform I wouldn't really know today where I stand in the blogging world(I do realise I still have a long way to go).<br />
<br />
<b>All in all, I can say what goes around comes around </b>to may be summarize many things around this post :)<br />
<br />
There's a part 2 of this post that I'll be writing sometime soon about what I've learnt to help me be a better blogger. Stay tuned if you'd like to read about that..</div>
<div>
<br /></div>
<div>
Thank you.</div>
<br />
<br /></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-56483865921651840072015-03-19T20:59:00.003-07:002015-03-19T20:59:50.420-07:00The roadtrip that led to my first Rails commit and how you could make yours too<div dir="ltr" style="text-align: left;" trbidi="on">
It's been a long time since I made a post here, sorry about that.<br />
<br />
This post is kinda different, I've actually posted the content of this article on another site called <a href="http://airpair.com/">AirPair</a>. You can view the details of the actual experience that I had contributing to rails <a href="https://www.airpair.com/posts/review/550b6493d2e9580c004a400b">here</a>. I would be glad to have you reviews and rating on this post on AirPair. The way it works at AirPair is, these articles need to have some minimum number of reviews and a certain rating in order to be published.<br />
<br />
If any of you think this post has something handy for anybody who'd like to contribute to Rails or just open source in general, please don't forget to review and rate this post.<br />
<br />
<span style="background-color: white; color: #3d3c40; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; widows: auto;"><br /></span>
<br />
Thank you.</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-76487596017766972882014-12-07T05:03:00.000-08:002014-12-08T06:30:57.530-08:00Indent two spaces per tab in Sublime Text 3 <div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Indenting two spaces per tab is useful when programming in languages like Ruby. I was able to search for an easy way to do this in Sublime Text 2 but it took me sometime to figure out how to get this right for Sublime Text 3.<br />
<br />
Here's how we can set this as a default for a user in Sublime Text 3<br />
<br />
<b>Step 1</b> : Sublime Text -> Preferences -> Settings - User. (Please read the PS below if you're a linux user)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid4tjbKUPbbE2RZrgUdqo4tFyaVY8jD0p35_xxQsxRqq2JwjwrKH6wWornDG4aUZnbDU5LDFzLLLINaUQi4kpCmb9cAP69TOdgnVCc8PetEnKxoiGmXxm5V6nr-q8IsuQwNS6p_HrlKM3w/s1600/Screen+Shot+2014-12-07+at+6.23.35+pm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid4tjbKUPbbE2RZrgUdqo4tFyaVY8jD0p35_xxQsxRqq2JwjwrKH6wWornDG4aUZnbDU5LDFzLLLINaUQi4kpCmb9cAP69TOdgnVCc8PetEnKxoiGmXxm5V6nr-q8IsuQwNS6p_HrlKM3w/s1600/Screen+Shot+2014-12-07+at+6.23.35+pm.png" height="188" width="320" /></a></div>
<br />
<b><br /></b>
<b>Step 2</b> : Within the existing set of flower brackets("{}") that are specific to the user we need to add customized settings to override the default settings that one would find in Preferences -> Settings - Default. We need to add the below settings to use two space indentation - <br />
<br />
<br />
<div class="gistLoad" data-id="4132084" id="gist-38b02be051b7319d3d69">
<script src="https://gist.github.com/boddhisattva/38b02be051b7319d3d69.js"></script>
</div>
<br />Below is an example of how the user settings file would look like after
you override the default settings with the above changes. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ92-lvq44EeNH1hX2bSafNpyvfIJ7m9_GN4ixMfbnRXOt8d12o1vH5oY7YAgUVEoDPpTyvGqbrjuOA5qk1x6jzz8E8Et-daQK124km8sskKrFflx2mlJ_QoHUTvqWIOHgmtrUUva8fQdd/s1600/Screen+Shot+2014-12-07+at+6.24.21+pm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ92-lvq44EeNH1hX2bSafNpyvfIJ7m9_GN4ixMfbnRXOt8d12o1vH5oY7YAgUVEoDPpTyvGqbrjuOA5qk1x6jzz8E8Et-daQK124km8sskKrFflx2mlJ_QoHUTvqWIOHgmtrUUva8fQdd/s1600/Screen+Shot+2014-12-07+at+6.24.21+pm.png" height="137" width="400" /></a></div>
<br />
<br />
<b>Step 3</b>: Save the changes and you should be good to go. <br />
<br />
<br />
P.S: Surprisingly, I found the Preferences section for the debian package(I had it installed on Ubuntu 14.04) of Sublime Text 3 at a different location than where it is when one sets up the same through Mac OSx.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikIIVRtyPw5Qs_mRI4vVm2tPT7c3pMVxj3BaYFMwqRXTv-IEmRUrWYPpu3VuaKVcZLTUO0Z1N44FLpKjqS4v6nNQ8HTnE25lwTD7uXn8NP0l7eDUQCGvW4kPy2e1zVN74CLtv5UkeHEFSY/s1600/Screen+Shot+2014-12-07+at+6.45.57+pm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikIIVRtyPw5Qs_mRI4vVm2tPT7c3pMVxj3BaYFMwqRXTv-IEmRUrWYPpu3VuaKVcZLTUO0Z1N44FLpKjqS4v6nNQ8HTnE25lwTD7uXn8NP0l7eDUQCGvW4kPy2e1zVN74CLtv5UkeHEFSY/s1600/Screen+Shot+2014-12-07+at+6.45.57+pm.png" height="126" width="320" /></a></div>
<br />
<br /></div>
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-6717677378973331312014-11-23T08:59:00.000-08:002014-12-06T03:48:54.232-08:00Refactoring code along the lines of the DRY principle by leveraging the power of Ruby blocks and lambdas<div dir="ltr" style="text-align: left;" trbidi="on">
In my early days as a ruby programmer, I used to always look for good examples through which I could understand Blocks and lambdas in Ruby. I did understand them after some research but I guess the connectivity of a real life e.g., was somewhere missing to help me remember how can one use them always. That's how I relate to this post and here's an attempt to help drive home the concept of Ruby lambdas and blocks for beginners at least to some extent. This has been tried and tested on Ruby-1.9.3p484<br />
<br />
Here we'll try to explore how one could leverage the power of Blocks and Lambdas to make your code look more clean by refactoring one's code along the lines of better adhering to the Don't Repeat Yourself(DRY) principle.<br />
<br />
Below is the original code of a singly linked list before any refactoring is done -<br />
<br />
<br />
<div class="gistLoad" data-id="4132084" id="gist-263fd7a07200ef6cf8c5">
<script src="https://gist.github.com/boddhisattva/263fd7a07200ef6cf8c5.js"></script>
</div>
<b>Refactoring 1 - </b><br />
<br />
<b>Problem Context - </b>Methods list_count(returns the number of linked list elements) and list_elements(list the linked list elements) basically traverse through the entire linked list including the last node and both have a duplicated linked list traversal condition <i><u>@current_pointer != nil</u></i> .<br />
<br />
To do - Remove the above duplication <br />
<b> </b><br />
<b>Solution - Blocks to the Rescue! </b><br />
<br />
Adding blocks -
If you have a look at the list_elements and the list_count methods they
have duplicated for the lines 35-39(excepting line 37) and
45-49(excepting line 48). This doesn't adhere to the DRY principle and
hence requires further refactoring. <b> </b><br />
<br />
Below is a screen shot of what gets changed. You can have a look at <a href="https://github.com/boddhisattva/learnings/commit/3636b4806e7aba706cf57bbb0af231ef6221e1c2#diff-fee38723c75e1fe0415c850510453ebb">this</a> commit which shows the full modified version of the code as part of the first refactoring.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUmFnPjUfedmXvLRQGrti07SzhYwi9nKe40lY_j2qZCLfOItd8BQHflzXR9QiFqvBsdLHS6znNYGVKke289hgqoqAzqGjqQyeiqNcaL-Ha3s48ZQw5Twlq09QBJx5ZemsHVjOPSzAb7PH5/s1600/using_blks.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUmFnPjUfedmXvLRQGrti07SzhYwi9nKe40lY_j2qZCLfOItd8BQHflzXR9QiFqvBsdLHS6znNYGVKke289hgqoqAzqGjqQyeiqNcaL-Ha3s48ZQw5Twlq09QBJx5ZemsHVjOPSzAb7PH5/s320/using_blks.png" height="330" width="400" /></a> </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>End Result - </b>Lesser lines of code.<b> </b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Refactoring 2 -</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Problem Context - If you observe carefully, you'd find the other traverse_list method has the linked list traversal condition <i><u>@current_pointer,next_node != nil</u></i> and they are used to add a
new node to the linked list at the end through the add_in_end method
and the same is used in the get_tail method to get the last node.<b> </b>With the above condition, the current pointer stops at the last node but on the other hand with the condition <i><u>@current_pointer != nil</u></i> used by the list_count and list_elements method use the current pointer goes past the last node to satisfy the specific method requirement. The question now is, can we still remove any further duplication? The answer is yes.</div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Solution - Introducing Lambdas</b> because we can't use past multiple blocks to methods in Ruby 1.9 . Read this <a href="http://stackoverflow.com/questions/2463612/passing-multiple-codeblocks-as-arguments">link</a> for more info.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Below is a screen shot of what gets changed. You can have a look at <a href="https://github.com/boddhisattva/learnings/commit/e7ddcf0b48acacf938652e1eef6396127632a8b7">this</a> commit which shows the full modified version of the code as part of this refactoring. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ4SK9WmZ9Bb_ocXi-6gH9JjSHBiZDH_ejz0HcexHdPaDty7v2gM-Up2AFpyZyp-YwVCOarPUCukU6uf3dDmHFucewLH42s1NxPf9VegICbfrkXdWhTJQtTIoojHAHXFdNDRDYrXx9TPDk/s1600/Screen+Shot+2014-11-23+at+10.21.38+pm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ4SK9WmZ9Bb_ocXi-6gH9JjSHBiZDH_ejz0HcexHdPaDty7v2gM-Up2AFpyZyp-YwVCOarPUCukU6uf3dDmHFucewLH42s1NxPf9VegICbfrkXdWhTJQtTIoojHAHXFdNDRDYrXx9TPDk/s1600/Screen+Shot+2014-11-23+at+10.21.38+pm.png" height="257" width="320" /></a></div>
<br />
<b>End Result</b> - More concise solution adhering to the DRY principle.<br />
<br />
<b>Credits</b> to the <a href="https://pragprog.com/book/ruby4/programming-ruby-1-9-2-0">Pickaxe book</a> by Dave Thomas for the learnings and to <a href="https://twitter.com/avishastry">Avinasha</a> for recommending this book.<br />
<br />
P.S: This code has scope for further refactoring. I have just taken two sample use cases in an attempt to try and explain Blocks and Lambdas in Ruby. </div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-39994699002698912992014-11-22T08:24:00.000-08:002014-11-23T02:38:52.554-08:00Think simple and Look within as a way to solve problems<div dir="ltr" style="text-align: left;" trbidi="on">
There are so many times in life that we think we look outside for the solution of certain challenges we come across or certain things that we may encounter in day to day life. Looking outside helps, but not always. <br />
<br />
Solution of many problems is within. Recently, I came across two experiences that makes me echo this thought and which make realize how much I got to improve on this way of doing things as well.<br />
<br />
<b>Experience 1 -</b><br />
<br />
Problem/Concern - I always found it difficult to keep track of so many tweets from the different folks I follow on twitter on a day to day basis, I was wondering how to get around this.<br />
<br />
What I used to do - <br />
1) To some extent after some amount of exploration, I figured out the
way of doing this is using the 'lists' feature in Twitter. That helped
to some extent.<br />
2) Not satisfied, I still was experiencing the problem so I used to keep thinking 'outside' for a better way of doing this. <br />
<br />
A better solution - Although I don't have a complete solution yet, but the below point has helped me tackle this problem better at least to some extent.<br />
1) Often one might be tempted to follow new folks on twitter, it's also equally important to regularly 'unfollow' those tweeple whom you think aren't adding that much value. I know this might be 'common sense' as one would call it, but it's just the way I at least thought of it initially was - may be I need to use some external service(some third party website) or similar stuff on those lines to manage my tweets better. <br />
<br />
<u>Moral</u> - The solution was within Twitter itself. Think Simple :). Think Within..<br />
<br />
<b>Experience 2 -</b><br />
<br />
Problem/Concern - To set a context, I'm a web developer who uses Ruby on Rails, a framework that's used to make websites. I find it sometimes difficult to keep a track the development log in the terminal for any new action I perform as a end user through the web interface of the application whenever there is a background process running within the application which may be for instance is constantly polling something for real time updates that would eventually be displayed on the UI(User Interface) .<br />
<br />
What I used to do -<br />
1) So I use an editor called Sublime Text for day to day development. Their search functionality is pretty powerful, so I used to go into the development log and find may through the log to find the things executed as part of the most recent action executed on my part from the UI.<br />
2) I used to do a 'rake log:clear' to clear the log often so that my search can retrieve faster results.<br />
3) Sometimes, in the past I used to even comment out that piece of code that runs a command which triggers the functionality to regularly check for updates. I was doing this in the local box so I took this approach. I do realize now, it's not the ideal way of doing things especially when you have automated tests in place which might probably link your background process related functionality with what you'd be newly implementing. <br />
<br />
A better solution - <br />
1) Simply do a 'Ctrl + C' to stop tailing the dev log soon after you've executed your action from the UI and you'll have the most recent set of actions to explore from the terminal itself. This prevents you from digging out the solution from elsewhere. Isn't that a faster way of doing things? I didn't think of it at least.<br />
<br />
<u>Moral</u> - Don't look for something outside(looking into the editor) which involves more effort(searching, cleaning up) when things can be simply achieved within the same terminal itself.<br />
<br />
<b>Overall Moral</b> - Think Simple. The solution is within, not without :). <br />
<br />
Credits for the better solutions go to suggestions by <a href="https://twitter.com/avishastry">Avinasha Shastry</a>.<br />
<br />
P.S:- Pardon me for the technical jargon if you don't understand much from this feel free to give me a shout or use google to help you understand the problem 2 better. I've made an attempt to make problem 2 to be understandable by any lay man.<br />
<br />
Also, I'd be really happy to hear from folks who have been able to find a better solution to Problem 1, if any better solution exists.<br />
<br />
Cheers.<br />
<br />
<br />
<br /></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-61943891380270439082014-10-14T09:48:00.000-07:002014-10-14T10:00:22.540-07:00Ten Questions you'd want to consider asking when interviewed for a Ruby on Rails position<div dir="ltr" style="text-align: left;" trbidi="on">
Taking a decision to move on from your current company or may be even joining a new company in itself as a fresher out of college is not a small decision. A lots of lives can be impacted directly/indirectly by the decision you'd take on which company you'd want to join. Everybody would want to make this as right as they possibly could. Below are just some pointers that I learnt from experience about the questions one should ideally ask before embarking on a journey of exploring newer pastures. Hope asking these questions would help you better decide which company would be most suitable for you going forward. Please be noted this list is not exhaustive and has no direct/indirect bearing on any company in particular whatsoever.<br />
<br />
1. What is the version of Ruby and Rails currently being used in the project? If it is an old one, do they plan to upgrade sometime in the near future or this isn't currently on their road map?<br />
2. What is the development environment like?. This question can prove to be quite important to ask because some enterprise companies don't use dev environments like Linux/Mac directly i.e., in other words for instance they might use a Virtual Machine or connect to a remote box(like connect to a linux box via putty) for various security related reasons which they might have.<br />
3. One more question that I've learnt from experience that might be worth asking is does company allow access to blogs, social networking sites(like Twitter, Facebook etc.,) and video sharing sites like Youtube. Access to these sites can really prove handy as part of your day to day development when one is looking for some help through tutorials, guidance etc.,<br />
4. Do you have download access? This is something that'll prove pretty handy whenever as a hacker you'd want to experiment with new stuff(and thereby install the related tools, packages etc.,) and whose true value you'd want to demonstrate through a proof of concept to any stake holder of the company for which you'd be working. Sometimes getting download access to install gems in big companies can also be a challenge in itself especially if they don't have any other teams within the company who are already working on projects that use Rails.<br />
5. Can you please tell me more about the project and how much of it is rails based? Certain projects use rails but may be not completely, the core part of some projects might be some other framework or language. It's important to know how integral is rails as a part of the project as this can give you a direct or indirect idea to what extent does Rails actually bring value to the table which thereby can even give you a hint of how important could be your role or contribution to this project on an ongoing basis.<br />
6. Do you do Test Drive Development or basically is your code driven by automated test cases. Do you use Continuous Integration(CI) tools like Jenkins etc.,<br />
7. What source code management system do you use as part of day to day development(Git, SVN etc.,).<br />
8. What software development models(agile, waterfall etc.,) do use for the projects? Go a step further sometimes, if they say agile for instance ask explicitly for what software development methods(like SCRUM, Extreme Programming etc.,) in Agile do they use for their day to day projects.<br />
9. a. Are the working hours flexible?. Sometimes as a developer what you'd want most is the flexibility to work when you think you'd be most productive. Of course, in addition to this there might be a couple of times when you'd have to run some personal errands for which you'd not be able to login to office during normal working hours.<br />
b. Is there a work from home option?(This can matter a lot if you'd really want to save the time you'd otherwise lose in traveling to office and your way back). Don't be hesitant to ask this as many startups already provide this option as they value your time. You can check if this can be provided on a periodical basis(from time to time) if not on a continuous basis.<br />
10. What are my roles and responsibilities as part of this project and team? What would be the expectations from me once I join the team?<br />
<br />
These are ten main questions I can think of that really mattered at least to me based on my experience of being interviewed thus far for a Ruby on Rails opening, I'm sure there are a lot of other questions that can be added on, but I hope answers to these questions help you better decide on where to join next.<br />
<br />
<br />
P.S: Please feel free to add additional questions as comments to the blog post if you think asking these questions would prove really handy.<br />
<br /></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-1732614719018995152014-10-09T07:15:00.000-07:002014-10-21T06:42:58.007-07:00Books - your next best mentor<div dir="ltr" style="text-align: left;" trbidi="on">
For a long time I was of the opinion I have read a lot of books back in school and college days and I wouldn't probably ever have to read that much going forward, from thereon. With the advent of online tutorials(videos, blogs etc.,), sometimes, there used to be a feeling within me that one can learn faster through videos and similar media then why should I even consider reading books that much?. I thought reading books might be more time consuming compared to these alternate resources at my disposal. That's kinda true but doesn't really apply always. Below is an experience that I went through which may tell you why.. <br />
<br />
Recently, I had applied for a job to a company where their first round of interview was actually a coding assignment. The way this works is, you're given a problem statement and you have to solve it within two days(ideally this is taken up by a candidate during a weekend). After submitting the solution to the problem I had requested them for some feedback. The interviewer was kind enough to share the same and highlighted a couple of important pointers after reviewing the submitted code. Overall, out of all the points shared in the form of feedback by the interviewer, I was able to clearly comprehend only some of them.<br />
<br />
Out of the points I couldn't really understand very clearly was that my logic to the solution was procedural. I did know what procedural programming is but I couldn't really get a succinct understanding of how I was writing procedural code using an object oriented language like Ruby as part of my solution. This might seem very technical, if you're a non techie who is reading this but the basic point that I'm trying to drive home here is I was for a while lost as to how can I improve further on the quality of my code or solutions that I'd submit going forward without guidance from a physical mentor.<br />
<br />
As a work around, I took to reading this book by Sandi Metz called <a href="http://www.poodr.com/">POODR</a>. I had heard enough through people's reviews/recommendations about this book before I decided to give it a shot. It not only helped me better understand what I was missing with respect to my solution but also really opened my mind to looking at developing solutions differently at least from what I had learnt thus far. <br />
<br />
This overall experience made me reflect that sometimes, when you don't have an actual physical mentor to guide you, you can with no second thoughts rely on books. After all, people who've written books also would have their experiences and them sharing it in the form of a collection of many articles is for us learn from their experiences and broaden our ways of thinking by looking at things from another's perspective.<br />
<br />
One more thing when I look back from this experience, I realized I was actually reading some books even as part of my professional career, not that religiously but definitely I was picking up some important lessons that I could apply in my job here and there. It was just that I didn't realize the true value of those books back then.<br />
<br />
From now on, I'm going to make it a point to read more books regularly as they can really help me not only when I need guidance but also to open my mind to new ways of thinking, sometimes making me think - "Hey!, why didn't I think about that :)". Just one thing, just make sure you choose your books wisely. So what book are you going to read next ?:). <br />
<br /></div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-9422198256902511262014-05-25T22:11:00.002-07:002014-05-29T09:00:46.148-07:00Learnings from participation in my first Open Hack<div dir="ltr" style="text-align: left;" trbidi="on">
Hi there,<br />
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">I’m grateful to </span><a href="http://www.multunus.com/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">Multunus</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"> for hosting an Open Hack on 24/5/2014. Let me just start with telling you a small tale on how I made it there. Read on :)</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;">Background -</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">The day I heard about this event and by the time I registered for it, I was quite late. But nevertheless, I dropped a mail to Vaishnavi from Multunus and she promptly replied and asked me to register on the waiting list although I had faint hopes of actually making it back then. </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">Just
one day prior to the actual event I got a mail from her in
which she mentioned about a last minute drop out and I was happy I could fill in
that person’s shoes. </span></span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><br /></span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><b>Getting Started -</b></span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
</div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<br />
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">Coming
up with ideas for the open hack could be interesting as you can even
take up something inpromptu. Some of the participants did come with some plans as to what they'd want to work(which is a good thing in its own way). The way people ended up working on ideas
was after their self introduction and also after stating what they'd
like to work on with what language they'd like to use for the same. I think the best part of
this brainstorming session was that when anybody came up with an idea as to what they'd want to work on,
ideas kept coming from other participants as to what else they
can do to or how they can actually better go about better implementing the original idea. </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><br /></span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">For instance, this happened with me. I wanted to contribute to Rails documentation and I was suggested why don't I try running a spell checker on the app to get a quick fix :). I was like yeah, why didn't I think about this... Hmm.. </span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;">Learnings</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"> - </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">I've just tried to pen down some of the learnings that I had as part of my participation at the event. I'd be glad if someone finds it useful.</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">a. For contributing to the Rails documentation, you don’t really have to run your tests. When we commit any documentation back to Rails, what we need to do is add [ci-skip] as part of the commit message.</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">b. The exact path where you’d want to contribute to the rails documentation would be - </span><a href="https://github.com/boddhisattva/rails/tree/master/guides/source" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">https://github.com/rails/rails/tree/master/guides/source</span></a></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">c. I always wanted to know why so many developers these days are using Mac till date. During Lunch I had a discussion with a couple of well experienced folks(<a href="https://github.com/swanandp">Swanand</a>, <a href="https://github.com/nikhilkrishna">Nikhil</a>) who were using Mac and they gave me great insights on how Mac can help speed up your development on a day to day basis in comparison to Linux based machines. Their inputs are summarized below to what best I can recall - </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">i. One of the most important pointers that I found during the discussion was that the defaults that Mac comes with wrt Rails development help you really speed up your work.</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">ii. They also mentioned that Apple comes with great hardware. The Mac book Air for instance comes with 8-9 hours on an average with a single charge.</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">iii. Also they recommended to get it from the US in case you’d like to save some money and in case you’re buying from India, buying from an Apple Store would mostly be your best bet to get the latest products.</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">d. Couple of useful links that can help you getting started when you want to contribute to rails -</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">i. </span><a href="http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html</span></a></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">ii. </span><a href="http://www.rubyinside.com/how-to/contribute-documentation-to-rails" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">http://www.rubyinside.com/how-to/contribute-documentation-to-rails</span></a></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">iii. </span><a href="http://guides.rubyonrails.org/development_dependencies_install.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">http://guides.rubyonrails.org/development_dependencies_install.html</span></a></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">iv </span><a href="http://guides.rubyonrails.org/ruby_on_rails_guides_guidelines.html" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">http://guides.rubyonrails.org/ruby_on_rails_guides_guidelines.html</span></a></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">e. I learnt about a new rake command- rake -A -T</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">i. rake -A: gives you the list of rake tasks which have a comment about what each one does.</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">ii. rake -A -T : Not only gives you the list of those rake tasks which mention what each task could do but it also lists down those rake tasks which don’t have a comment against them as to what they can do.</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">f. Generate Raw SQL using ActiveRecord::Base.connection.execute and </span>
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">extracting a hash out of the same</span>
<br />
<br />
<div class="gistLoad" data-id="7719f628276da20dc334" id="gist-7719f628276da20dc334">
<script src="https://gist.github.com/boddhisattva/7719f628276da20dc334.js"></script></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"></span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"> </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">g. If you want to upgrade your Rails project, this link will be very project might be very helpful - </span><a href="http://railsdiff.org/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">http://railsdiff.org/</span></a></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">h. In case you want to contribute to an Open Source Project and don’t know where to get started the best thing you can do in such a case is -</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">i. Clone the project</span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">ii. Grep for to do or fix me and that should get you started...</span><br />
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><br /></span>
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"><b>Some Pics taken at the OpenHack -</b></span><br />
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiApVyPbmTH2s-ZMNvB2JOxb4K7tm2nIZHjNPO0srTvt4KQHZAJ1Be0LyQ5hcW38R1DrpJMdaYh5fqk30c-6C5DHPQvWummC9lvqLDdT5DKsOc7XeyN9OLpyqE7R-gkCFb0X3bdY2wzw1Us/s1600/20140524_170123%5B1%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiApVyPbmTH2s-ZMNvB2JOxb4K7tm2nIZHjNPO0srTvt4KQHZAJ1Be0LyQ5hcW38R1DrpJMdaYh5fqk30c-6C5DHPQvWummC9lvqLDdT5DKsOc7XeyN9OLpyqE7R-gkCFb0X3bdY2wzw1Us/s1600/20140524_170123%5B1%5D.jpg" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWe7uDdn3wFDEXsvYfFqPetHQLFY202gz2wkweTEBRgb09gMtdWvikIRWFByf4_FLsO5sOsicVHMM-ZnRnJ-q6GYUXdBdKUAgyuSjfIDmsA61Wq5FypTBjzHQWLqmJAM8y2wKotiCI4T9s/s1600/20140524_170405%5B1%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWe7uDdn3wFDEXsvYfFqPetHQLFY202gz2wkweTEBRgb09gMtdWvikIRWFByf4_FLsO5sOsicVHMM-ZnRnJ-q6GYUXdBdKUAgyuSjfIDmsA61Wq5FypTBjzHQWLqmJAM8y2wKotiCI4T9s/s1600/20140524_170405%5B1%5D.jpg" height="240" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9kdvKfjidS3c_khgUkwVtwSM2bSWgU1z8Bi2DTmYSTbfW7wrdbsG-tqzIHaQa95HssICRbqWkQr9sJpPNyQNgBy9eZpg3UHSK7S9O0QIvwNOTy3SSXjSg9q18Ejb7C-pVj4ghFk9ZMRfS/s1600/20140524_170811%5B1%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9kdvKfjidS3c_khgUkwVtwSM2bSWgU1z8Bi2DTmYSTbfW7wrdbsG-tqzIHaQa95HssICRbqWkQr9sJpPNyQNgBy9eZpg3UHSK7S9O0QIvwNOTy3SSXjSg9q18Ejb7C-pVj4ghFk9ZMRfS/s1600/20140524_170811%5B1%5D.jpg" height="240" width="320" /></a></div>
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><br /></span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">All in all, I don’t think I would have learnt this much if I wouldn’t have attended the event. I can definitely tell you that you’re being regular to such events/meetups really broadens your perspective around things and definitely helps you ending up learning more. </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">Lastly, I would once again thank Vaidy and team at <a href="http://www.multunus.com/">Multunus</a> for being such good hosts. </span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">Thank you.</span></div>
<br />
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">Credits to </span><a href="https://github.com/codepodu" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;">Dheeraj Kumar</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"> for points e. and f. </span></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;"><span id="docs-internal-guid-f9629ed5-362d-2398-c494-182ef1d83bb2" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;">P.S.: Credits to all those inputs helped learn me new things. I’m sorry if I missed mentioning anybody’s names, I'm not able to recall all of their names at the moment. Feel free to correct me/comment below in case I missed something or in case you’d like to add more pointers with respect to the above article.</span> </span></div>
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>
</div>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com2tag:blogger.com,1999:blog-4827506481381066432.post-56998433049754992982014-05-17T06:44:00.001-07:002016-04-28T22:31:21.088-07:00Useful RVM commands<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:=""><a href="http://rvm.io/">RVM</a> stands for Ruby Version Manager. A handy tool to help you manage different Rails projects(on different versions of rails) that you've setup on your system. It also help you easily switch between different Ruby versions. </span><br />
<br />
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">Below are some useful rvm commands that I use from time to time- </span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">1. <b>rvm list known</b></span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span style="font-family: "open sans" , sans-serif; font-size: 14px; line-height: 22.399999618530273px;">To list all *known* RVM installable Rubies</span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">2. <b>rvm current </b></span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">The current version of rvm you're using</span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 1.2139636386524548="" 15px="" arial="" font-family:="" font-size:="" line-height:="" pre-wrap="" white-space:="">3.<b> rvm gemset create gemset_name</b></span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">To create a new gemset. It's quite useful when you're system has multiple apps installed, each using different versions of ruby/rails</span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
4. <b>rvm get stable</b></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" arial="" baseline="" black="" color:="" font-family:="" font-size:="" font-style:="" font-variant:="" font-weight:="" none="" normal="" pre-wrap="" text-decoration:="" vertical-align:="" white-space:="">Helps you upgrade to the most stable version</span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 1.2139636386524548="" 15px="" arial="" font-family:="" font-size:="" line-height:="" pre-wrap="" white-space:="">5.<b> rvm list</b></span></div>
<div dir="ltr" style="line-height: 1.2139636386524548; margin-bottom: 11pt; margin-top: 0pt;">
<span 1.2139636386524548="" 15px="" arial="" font-family:="" font-size:="" line-height:="" pre-wrap="" white-space:="">Lists the different installed rvm rubies</span></div>
<div dir="ltr" style="margin-bottom: 11pt; margin-top: 0pt;">
<span 15px="" 18.209453582763672px="" font-size:="" line-height:="" pre-wrap="" white-space:=""><span style="font-family: "arial";">Sample Output -<br />
<br />
rvm rubies<br />
<br />
ruby-1.9.3-p327 [ i686 ]<br />
ruby-1.9.3-p374 [ i686 ]<br />
ruby-1.9.3-p392 [ i686 ]<br />
=> ruby-2.0.0-p451 [ i686 ]<br />
ruby-2.1.1 [ i686 ]<br />
* ruby-2.1.2 [ i686 ]<br />
<br />
# => - current<br />
# =* - current && default<br />
# * - default<br />
</span></span></div>
<div dir="ltr" style="margin-bottom: 11pt; margin-top: 0pt;">
6. <b>rvm install 2.1.2</b></div>
<div dir="ltr" style="margin-bottom: 11pt; margin-top: 0pt;">
To install a particular ruby version via rvm.<br />
<br />
7. <b>rvm gemset use gemset_name</b><br />
<br />
It uses a specific gemset specified by the gemset_name<br />
<br />
8. <b>rvm set default ruby</b><br />
<br />
Helps you set up a default ruby version you'd like to use as soon as you open up your terminal <br />
<br />
rvm --default use 1.9.3-p374 <br />
<br />
9. <b>Create the ruby version that your project should default to when you change directory(cd) into it</b><br />
<br />
rvm --create --ruby-version ruby-2.2.2@my_project<br />
<br />
Here, my_project stands for the gemset you'd be using for this project.<br />
<br />
10. <b>rvm info</b><br />
<b><br /></b>
It gives you information about your ruby environments.<br />
<br /></div>
<div dir="ltr" style="margin-bottom: 11pt; margin-top: 0pt;">
<br /></div>
<div>
<span 1.2139636386524548="" 15px="" arial="" font-family:="" font-size:="" line-height:="" pre-wrap="" white-space:=""><br /></span></div>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-70240131414128629222014-04-06T03:42:00.000-07:002014-10-27T19:03:20.692-07:00Increasing your productivity by using an extended desktop with your primary display<div dir="ltr" style="text-align: left;" trbidi="on">
Recently,<br />
<br />
As part of an onsite assignment I had the opportunity to be in the UK. Over there I had seen that a lot of my colleagues where using two monitors that were connected to one machine as part of their day to day work.<br />
<br />
After trying it for a while myself, I found this kinda setup is very helpful. How? Say for instance your a web developer and you've recently made some change in your application code. One of the monitor screens can help you see the front end changes that you've made on page refresh and simultaneously the other screen can be used to trace your log in case you want to debug something with respect the changes made.<br />
<br />
When doing this on a regular basis you'll find that this actually speeds up things as the number of times you need to switch tabs back and forth is comparatively reduced. Many a times people can use one of the screens to perform a specific operation whilst using the other screen to regularly check something else(like your emails for e.g.,).<br />
<br />
You can try this kinda setup in two ways atleast as far as i know -<br />
a. Connect your laptop to a monitor and use 'Extended Desktop' Option.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV39z6iTDOL-GSHL5f6P9Vy5hcoToVLztz93k1XospW5NfnzK5NORIe19wNFVGnanuxBWlxM1Nv_At-SwXmigwMbelyw0iuf2oRfPKcpI2_g85Y4xSh_rgWvO9ICFzx0WkHRZlk2Mleirk/s1600/ext_desktop.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV39z6iTDOL-GSHL5f6P9Vy5hcoToVLztz93k1XospW5NfnzK5NORIe19wNFVGnanuxBWlxM1Nv_At-SwXmigwMbelyw0iuf2oRfPKcpI2_g85Y4xSh_rgWvO9ICFzx0WkHRZlk2Mleirk/s1600/ext_desktop.jpg" /></a></div>
b. Connect two PC's with one another <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinODAqtVqqAwkGZPuG1AM9FbJY3LHWLNm7YNR-1HotReUXvun-45Lp-QuBEXG-bmkj4U4Ew0LkP9uTXS1omfytyu5XuI07-3-xTorKRwn6OObQb9MEnPJ5cLiyDg4nID38aIIrcLsiyTVw/s1600/ext_desktop2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinODAqtVqqAwkGZPuG1AM9FbJY3LHWLNm7YNR-1HotReUXvun-45Lp-QuBEXG-bmkj4U4Ew0LkP9uTXS1omfytyu5XuI07-3-xTorKRwn6OObQb9MEnPJ5cLiyDg4nID38aIIrcLsiyTVw/s1600/ext_desktop2.jpg" /></a></div>
<br />
<br />
To check more details on how can you achieve the same you can have a look at the link -- <a href="http://www.makeuseof.com/tag/monitors-extended-desktop-3-check/">http://www.makeuseof.com/tag/monitors-extended-desktop-3-check/</a><br />
or simply google for any link specific to the OS you're using.<br />
<br />
Give it a shot and see if you find the difference.. :).</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0tag:blogger.com,1999:blog-4827506481381066432.post-65337836590555472502014-02-18T22:09:00.003-08:002014-10-27T19:03:34.911-07:00Enumerables in Ruby<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Using Enumerables in Ruby - Source for the tutorial is <a href="http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177">Ruby Programming Language</a> <br />
by Yukihiro Matsumoto(<i><b>creator of Ruby</b></i>) and David Flanagan.
<br />
<br />
The blog below has a sample code with output. The sample code below with inline comments in a way summarizes the concept(refer blog title) covered as part of the book.
<br />
<br />
<div class="gistLoad" data-id="9086865" id="gist-9086865">
<script src="https://gist.github.com/boddhisattva/9086865.js"></script></div>
<br />
<br /></div>
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>
</div>
Mohnish G Jadwanihttp://www.blogger.com/profile/10134116572165388728noreply@blogger.com0