<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Antonio's blog]]></title>
  <link href="http://amunizmartin.com/atom.xml" rel="self"/>
  <link href="http://amunizmartin.com/"/>
  <updated>2016-01-30T14:09:27+01:00</updated>
  <id>http://amunizmartin.com/</id>
  <author>
    <name><![CDATA[Antonio Muñiz]]></name>
    <email><![CDATA[amunizmartin@gmail.com]]></email>
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Talk about Jenkins Pipeline in Seville JAM]]></title>
    <link href="http://amunizmartin.com/blog/2016/01/30/talk-about-jenkins-pipeline-in-seville-jam/"/>
    <updated>2016-01-30T13:32:24+01:00</updated>
    <id>http://amunizmartin.com/blog/2016/01/30/talk-about-jenkins-pipeline-in-seville-jam</id>
    <content type="html"><![CDATA[<p>I was talking about <a href="https://github.com/jenkinsci/workflow-plugin#introduction">Jenkins Pipeline</a> in the Seville JAM (Jenkins Area Meetup).
Thanks to everyone that attended the meeting and feel free to ping me in <a href="https://twitter.com/amunizmartin">twitter</a> if want to ask something!
These are the slides.</p>

<iframe src="http://www.slideshare.net/slideshow/embed_code/key/bb5GeqFHI9kkAW" width="750" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"</iframe>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Unix processes memory usage]]></title>
    <link href="http://amunizmartin.com/blog/2014/07/14/unix-processes-memory-usage/"/>
    <updated>2014-07-14T13:36:58+02:00</updated>
    <id>http://amunizmartin.com/blog/2014/07/14/unix-processes-memory-usage</id>
    <content type="html"><![CDATA[<p>I&rsquo;m not a sys admin, but sometimes I need to profile applications in development or production environments. When
this happens I realize that I don&rsquo;t remember those large -very large- commands using awk and prints everywhere.</p>

<p>Today was one of that days, so I decided to write this post as a reference for myself.</p>

<br />


<p><strong>Total memory usage</strong>:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$> ps aux |  awk '{print $6/1024}' | awk '{sum += $1}; END {print sum " MB"}'</span></code></pre></td></tr></table></div></figure>




<br />


<p><strong>Total memory usage by process, for example Apache</strong>:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$> ps aux | grep apache2 | awk '{print $6/1024}' | awk '{sum += $1}; END {print sum " MB"}'</span></code></pre></td></tr></table></div></figure>




<br />


<p><strong>Average memory used by a process (if it uses childs)</strong>:</p>

<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$> ps aux | grep apache2 | awk '{print $6/1024;}' | awk '{avg += ($1 - avg) / NR;} END {print avg " MB";}'</span></code></pre></td></tr></table></div></figure>




<br />


<p>All of them use process&rsquo;s resident memory (not virtual memory).</p>

<p>That&rsquo;s all.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Talking about ExtJS in SevillaJS meetup]]></title>
    <link href="http://amunizmartin.com/blog/2014/03/14/talking-about-extjs-in-sevillajs-meetup/"/>
    <updated>2014-03-14T19:19:17+01:00</updated>
    <id>http://amunizmartin.com/blog/2014/03/14/talking-about-extjs-in-sevillajs-meetup</id>
    <content type="html"><![CDATA[<p>I was talking about ExtJS in the <a href="http://www.meetup.com/SevillaJS/events/169441972/">SevillaJS meetup</a> yesterday.</p>

<p>The talk was not really a talk but a 2 hours live coding session. I used this slides as an introduction to the coding. They are not self-contained, but I put them here only for the last slide&hellip; I love it :&ndash;)</p>

<p>After 15 minutes with the slides I started to code an ExtJS app from scratch:</p>

<ul>
<li>Create the basic project layout using Sencha CMD.</li>
<li>Add a view component with two buttons.</li>
<li>Apply hbox layout.</li>
<li>Add a controller to manage the click event in one of the buttons.</li>
<li>Add a grid to load a JSON from server (people.json).</li>
<li>Add a Person model.</li>
<li>Add a People store.</li>
<li>And finally add a more complex action to reload the grid on click the sencond button.</li>
</ul>


<p>In the last 20 minutes I showed how we are using ExtJS at <a href="http://clinkerhq.com">ClinkerHQ</a>, on Clinker Desktop to be precise.</p>

<p>The code I wrote during the session is in <a href="https://github.com/amuniz/sevillajs-extjs">GitHub</a>, if you want to take a look. It&rsquo;s not runnable as is, you&rsquo;ll have to copy the ExtJS distribution to a directory named &ldquo;ext&rdquo; in order to get it running. It&rsquo;s a very simple example, but it could be useful for someone who is starting with ExtJS.</p>

<iframe src="http://www.slideshare.net/slideshow/embed_code/32324390" width="750" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

]]></content>
  </entry>
  
</feed>
