<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.5">Jekyll</generator><link href="https://aram.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://aram.io/" rel="alternate" type="text/html" /><updated>2024-06-27T11:46:02+00:00</updated><id>https://aram.io/feed.xml</id><title type="html">Aram Bhusal (@phoenixwizard)</title><subtitle>Aram here. Welcome to my world. I am an Engineering leader who loves to build things.</subtitle><author><name>Aram Bhusal</name></author><entry><title type="html">The spinning Arrow in WP Contact Form 7</title><link href="https://aram.io/blog/spinning-button/" rel="alternate" type="text/html" title="The spinning Arrow in WP Contact Form 7" /><published>2014-06-02T19:34:30+00:00</published><updated>2014-06-02T19:34:30+00:00</updated><id>https://aram.io/blog/spinning-button</id><content type="html" xml:base="https://aram.io/blog/spinning-button/"><![CDATA[<p>So I was using the <a href="http://themeforest.net/item/hickory-a-wordpress-magazine-theme/5437524">Hickory</a> for a project along with <a href="http://wordpress.org/plugins/contact-form-7/">Contact Form 7 Plugin</a> and <a href="http://wordpress.org/support/view/plugin-reviews/easy-wp-smtp">Easy WP SMTP</a>. I used this setup for contact form and a couple of forms in the blog.</p>

<p>Now comes the interesting part !! When I submitted the form, the arrows in the bottom would keep on spinning !! The mail was sent in backend but the user saw the infinitely spinning arrows.
<img src="/assets/images/spinning.png" alt="The spinning Image" />
If you go to the support forum, you will see maaaannnnyyyy posts about the same. Everyone has their hacky solutions !! Finally a gentleman pointed out where to look the error !! I looked into the ajax call the form was making and realised that the response was NOT a JSON. But an amalgation of errors and a JSON.</p>

<p>I was getting :</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>SMTP -&gt; FROM SERVER:220 mx.google.com ESMTP ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;SMTP -&gt; FROM SERVER: 250-mx.google.com at your service, [128.199.209.28]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
250-ENHANCEDSTATUSCODES
250 CHUNKING

&lt;br /&gt;SMTP -&gt; FROM SERVER:250 2.1.0 OK ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;SMTP -&gt; FROM SERVER:250 2.1.5 OK ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;SMTP -&gt; FROM SERVER:354  Go ahead ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;SMTP -&gt; FROM SERVER:250 2.0.0 OK 1401650231 ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;SMTP -&gt; FROM SERVER:221 2.0.0 closing connection ko10sm16651579pbd.52 - gsmtp

&lt;br /&gt;{"mailSent":true,"into":"#wpcf7-blah-blah","captcha":{"captcha-blah blah":"http:\/\/blahblah.com\/wp-content\/uploads\/wpcf7_captcha\/blah blah.png"},"message":"Your message was sent successfully. Thanks."}
</code></pre></div></div>

<p>And What I needed was just</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>{"mailSent":true,"into":"#wpcf7-blah-blah","captcha":{"captcha-blah blah":"http:\/\/blahblah.com\/wp-content\/uploads\/wpcf7_captcha\/blah blah.png"},"message":"Your message was sent successfully. Thanks."}
</code></pre></div></div>

<p>Then somebody pointed out that Easy WP SMTP has an <em>Enable SMTP Debug</em> option !! Voila !! So this was causing the errors getting printed in response to the ajax call and rendering the response unreadable to Contact Form !!</p>

<p><img src="/assets/images/Screenshot.png" alt="The perfect Image" /></p>

<p>I spent quiet some time debuging this !! Hope this saves someone some time in the future !!</p>

<p>Peace !!</p>]]></content><author><name>Aram Bhusal</name></author><category term="blog" /><category term="Wordpress" /><category term="SMTP" /><category term="Contact Form" /><summary type="html"><![CDATA[So I was using the Hickory for a project along with Contact Form 7 Plugin and Easy WP SMTP. I used this setup for contact form and a couple of forms in the blog.]]></summary></entry><entry><title type="html">Mentorship: The presence and lack of it</title><link href="https://aram.io/blog/mentorship/" rel="alternate" type="text/html" title="Mentorship: The presence and lack of it" /><published>2013-05-23T00:00:00+00:00</published><updated>2013-05-24T21:20:02+00:00</updated><id>https://aram.io/blog/mentorship</id><content type="html" xml:base="https://aram.io/blog/mentorship/"><![CDATA[<p>Originally posted on <a href="https://medium.com/@phoenixwizard/mentorship-c1da3e72eefb">medium here</a>.</p>

<p>When was the last time you were in the cross-roads of life and wondered which is the path to take? Is it the Frostian path (Road less taken) or is it the tried and tested path which will make you go with the herd? If you go the road less taken how do you tread ahead? If you go with the herd how will you stand out?</p>

<p>These questions must have struck you like a lightening at some point in life or is going to confront you very soon. The important question here is what stand are you taking? Which path are you choosing? I have had many crossroads and I have made many decisions. When I look back to connect the dots, I see one big persona staring back at me, warmly, with a smile, “A Mentor” (rather many mentors).</p>

<p>One of my first mentors was a teacher. He taught us the “Hindi” language and told me to write not the standard answers taught, but my take on what I learnt. That opened me up to the concept of being more than a reproduce-what-you-read student to write-what-you-understood. That in turn led me to blogging and poetry.</p>

<p>The next mentor was another teacher who introduced me to what it means to have values and be a person of integrity. He introduced me to Ayn Rand and many other books which have deeply guided my thought process to be more rational.</p>

<p>And then came other mentors, who were not the traditional teachers. They were my friends/seniors who would help me make small decisions, which today seem path breaking when I look back. My senior who encouraged me to try my hands on Semantic Web / Natural Language Processing, had with a simple advice helped me realise what I loved. A friend who pushed me to participate into a debate competition made me realise I can win any oratory competition. The list goes on and on.</p>

<p>From all these experiences I realised I needed a mentor when I needed to join my university, but unfortunately had none. I had to find my own way and make my own mistakes. No regrets on that but having a mentor would sure have boosted my confidence and helped me have a more clear outlook. The importance of mentorship is not about being spoonfed. It is about making new mistakes rather than making the “already known mistakes”. I would love to mentor people who want to join a startup or decide their career or any of the decisions I made, so that they do not make my mistakes. They have the time to go beyond where I reached and make new mistakes which we call “experience” and scale new heights.</p>

<p>I see myself surrounded by many mentors, take @nitin_pande who runs @AskMentii which is a mentoring platform. He has mentored me in every project I take up or every decision I make. @kshitiz has mentored me to have a more design powered approach and encouraged me taking risks. @apnerve has inspired me to respect front end engineering and see the minute details that make a difference.</p>

<p>Appreciate the people who mentor you, be open to be mentored and also give back by mentoring someone else. Who knows, you might help someone be the next Elon Musk or someone might help you build your billion dollar idea !!</p>

<p>Find a mentor, find your future self (taken from mentii.com)</p>

<p>OR</p>

<p>Be a mentor, let someone see their future self !!</p>]]></content><author><name>Aram Bhusal</name></author><category term="Blog" /><category term="Mentorship" /><category term="Career" /><summary type="html"><![CDATA[Originally posted on medium here.]]></summary></entry></feed>