-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
942 lines (527 loc) · 38.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Programming Rambling</title>
<meta name="author" content="Gonzalo Míguez">
<meta name="description" content="So… this is awkward… It’s been almost two years without any new content on
this blog. I will do something useful in this 4 hour …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://mrzard.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Programming Rambling" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">Programming Rambling</a></h1>
<h2>mrzard's ramblings in the wild</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:mrzard.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/about-me">About me</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/03/01/becoming-a-dadveloper/">Becoming a Dadveloper</a></h1>
<p class="meta">
<time datetime="2017-03-01T18:54:00+01:00" pubdate data-updated="true">Mar 1<span>st</span>, 2017</time>
| <a href="/blog/2017/03/01/becoming-a-dadveloper/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>So… this is awkward… It’s been almost two years without any new content on
this blog. I will do something useful in this 4 hour flight from Helsinki to
Barcelona, and I will try to write some things about what has been going on
with me for those two years.</p>
<p>2015-2016 at <a href="http://www.billymob.com">Billy Mobile</a> were intense and
exciting years . I had the immense luck to start working with some amazing
people like <a href="https://es.linkedin.com/in/diego-frison-715279b1">Diego Frisón</a>,
<a href="https://es.linkedin.com/in/joanviladrosa">Joan Viladrosa</a>,
<a href="https://es.linkedin.com/in/rogerrafanell">Roger Rafanell</a>,
<a href="https://es.linkedin.com/in/adayrobaina">Aday Robaina</a>,
<a href="https://es.linkedin.com/in/ibruque">Ivan Bruque</a>,
<a href="https://es.linkedin.com/in/davideferrari">Davide Ferrari</a>,
<a href="https://es.linkedin.com/in/enric-sardina-marti-97717217">Enric Sardina</a>,
<a href="https://es.linkedin.com/in/ginesortiz">Ginés Ortiz</a>,
<a href="https://es.linkedin.com/in/oriolblanc">Oriol Blanc</a>,
<a href="https://es.linkedin.com/in/marc-rubia-criado-94a9a458">Marc Rubia</a>,
<a href="https://es.linkedin.com/in/david-llorente-garrido-001552a1">David Llorente</a>,
<a href="https://es.linkedin.com/in/slissner">Sam Lissner</a>,
<a href="https://es.linkedin.com/in/jonatan-fernandez-389aa271">Jonatan Fernández</a> or
<a href="https://es.linkedin.com/in/aserrabl">Alex Serra</a>,
as well as keep working with other great people like Oriol Orellana or
Horacio Herrera, whom I have talked about in the past. And that is only
counting people on the Tech Team at Billy. They are all top notch talent,
and only great things are ahead of them.</p>
<p>With Joan’s leadership, the PHP-MySQL-Redis-ElasticSearch Billy adserver
prototype was ported to Java-Kafka-HBase-Spark-Redis-HDFS which made a lot more
sense as to deal with the concurrency and speed needed. He even introduced some
very cool and cutting edge technology like Apache Kylin. At the same time all
of these cool changes were happening, I started realizing that my daughter
needed for me to devote more time to her. And I also started realizing that <em>I</em>
needed to devote more time to her. The fine people at Billy Mobile tried to
work out a semi-remote schedule with me, but it was not the best fit to have
one of the Tech Leads away for a big part of the day, which shifted a lot of
work onto Joan’s shoulders, and ended up making obvious that a change had to
be made. So after having the luck of being contacted by
<a href="http://www.dealdash.com">DealDash</a>, it was a golden opportunity for me and
I decided to say goodbye to Billy. I will always be grateful for their support
and effort to help me out, and for the chance to work and learn with so many
amazing people.</p>
<p><a href="http://www.dealdash.com">DealDash</a> offered me the opportunity to get back into
a developer position and also start working remotely. The company is based in
Helsinki, and the remote philosophy allows me to do these kinds of things:</p>
<ul>
<li><p>Take a couple of hours off to bring Ada to the park, or dancing, or to the
toy library. Then either wake up early and work before the daily meeting, or
do it before going to bed at night.</p></li>
<li><p>Stop worrying about the added commute time to and from the office, specially
if I also happened to have to bring Ada to the doctor’s. That used to mean
almost a “lost” day when I was working in the office, now it’s just a minor
adjustment and no work is lost.</p></li>
<li><p>When I sit to work I just check Slack and the GitHub issues to see what
progress has been made so I can pick up like I were there when it happened.</p></li>
<li><p>If Ada’s mom needs to go to the doctor or run any errands, it’s a lot easier
for her as she can just leave Ada with me. I just pick up smaller stuff or
bring her to a cafe that has toys where she can play in a new environment
while I keep working.</p></li>
</ul>
<p>I think I break most of the ‘rules’ of working remotely, as other than fixed
meetings (Grooming, Retrospectives, Sprint Planning, Daily standup), I tend to
bend my hours to whichever happens that day. It’s working out for me, and at
the same time I can see that it’s not for everyone.
But there is a method to my chaos.</p>
<p>At DealDash I have found another amazing team and while I am still learning a
lot about the business of penny auctions, we have already started on the path
of improving and refactoring a lot of functionality. I have been with them for
a little bit over 4 months now and I already have had the chance to try some
new things (for me) like Docker, provisioning machines with Salt, some NodeJS,
using Gherkin to describe the behavior of functionalities and couple that with
unit and/or functional tests and also pick up Symfony again.</p>
<p>DealDash is also teaching me a great deal on how to make a remote team work,
how to keep your team in touch with your users’ needs and how to encourage and
foster an open communication style where everyone knows their voices matter.</p>
<p>So what more can I ask for? I am working with once again on an amazing team, on
interesting problems, I am learning new stuff AND I have all the time I need to
devote to my daughter: right now I am heading back to Barcelona from the first
team offsite with DealDash, which I had to cut short because Ada had an
accident. And they were again supportive and understanding.</p>
<p>So this is my new life. I have become a <em>dadveloper</em>.</p>
<p><em>And I could not be happier</em>.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2015/03/25/elasticsearch-enable-mlockall-in-centos-7/">ElasticSearch: Enable Mlockall in CentOS 7</a></h1>
<p class="meta">
<time datetime="2015-03-25T10:52:00+01:00" pubdate data-updated="true">Mar 25<span>th</span>, 2015</time>
| <a href="/blog/2015/03/25/elasticsearch-enable-mlockall-in-centos-7/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>I have recently been wrestling with ElasticSearch/Elastic and how to finally enable mlockall under CentOS 7. You usually will get the “Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT_MEMLOCK (ulimit)`.”</p>
<p>These are all the places I made changes to get it to work. Now, I don’t know if some of these steps are skippable (my guess is some of them are), but I got it working i nthe end, and my nodes are now happily showing `mlockall: true“</p>
<ul>
<li><p>Make sure <code>bootstrap.mlockall: true</code> is uncommented in <code>/etc/elasticsearch/elasticsearch.yml</code> or the appropiate config file for your configuration.</p></li>
<li><p>Edit <code>/etc/security/limits.conf</code> and add these lines (or edit them if applicable). You usually will want to add them at the very end of the file.</p></li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>elasticsearch - nofile 65535
</span><span class='line'>elasticsearch - memlock unlimited
</span><span class='line'>root - memlock unlimited</span></code></pre></td></tr></table></div></figure>
<ul>
<li>Edit <code>/etc/sysconfig/elasticsearch</code>. You will find these values commented, and possibly without values. Change them to these:</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
</pre></td><td class='code'><pre><code class=''><span class='line'># ES_HEAP_SIZE; 30g for my nodes - look up a good value for yours
</span><span class='line'>ES_HEAP_SIZE=30g
</span><span class='line'>
</span><span class='line'>MAX_OPEN_FILES=65535
</span><span class='line'>MAX_LOCKED_MEMORY=unlimited
</span><span class='line'>...
</span><span class='line'># WORK_DIR: Make sure /tmp is not mounted as
</span><span class='line'># noexec OR put a regular directory here
</span><span class='line'>WORK_DIR=/tmp/elasticsearch</span></code></pre></td></tr></table></div></figure>
<ul>
<li>Edit <code>/usr/lib/systemd/system/elasticsearch.service</code> and make sure <code>LimitMEMLOCK</code> is uncommented and set to infinity</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class=''><span class='line'># See MAX_LOCKED_MEMORY in sysconfig, use "infinity"
</span><span class='line'># when MAX_LOCKED_MEMORY=unlimited
</span><span class='line'># and using bootstrap.mlockall: true
</span><span class='line'>LimitMEMLOCK=infinity</span></code></pre></td></tr></table></div></figure>
<ul>
<li>Edit <code>/etc/init.d/elasticsearch</code> and add <code>su $ES_USER --shell /bin/bash -c "ulimit -l unlimited"</code> before the actual start of ES, this is more or less how it looks in mine:</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>echo -n $"Starting $prog: "
</span><span class='line'># if not running, start it up here, usually something like "daemon $exec"
</span><span class='line'>su $ES_USER --shell /bin/bash -c "ulimit -l unlimited"
</span><span class='line'>daemon --user $ES_USER --pidfile $pidfile $exec -p $pidfile -d -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR</span></code></pre></td></tr></table></div></figure>
<p>After I had everything in place, I restared my nodes and now they all show <code>mlockall: true</code> when checked with <code>curl http://localhost:9200/_nodes/process?pretty</code></p>
<p>Hope this helps someone!</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/12/30/farewell-2014-welcome-2015/">Farewell 2014, Welcome 2015</a></h1>
<p class="meta">
<time datetime="2014-12-30T10:52:00+01:00" pubdate data-updated="true">Dec 30<span>th</span>, 2014</time>
| <a href="/blog/2014/12/30/farewell-2014-welcome-2015/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>So we are closing another year… And I see this is just my fourth post of the year. Pretty bad, but at least is a good starting point, because it’s easy to improve on it.</p>
<p>This will be a long post, so let’s stop it here, and you can proceed to the full wall of text if you feel like it :)</p>
<p>2014 has been a ver eventful year for me. I started the year as the CTO of <a href="http://www.chicplace.com">ChicPlace.com</a>. I had already been there from October 2012, building a custom e-commerce platform over PrestaShop as a prototype. The idea worked pretty well, so, with the help of Denys Pasishnyi and Aldo Chiecchia, we set our sights into building a ‘real’ app in 2013. We started looking for someone dynamic who would help us deliver a full Symfony2 e-commerce website in little to no time. After some search we found <a href="http://mmoreram.com">Marc Morera</a> and enlisted him. We worked our asses off (Aldo, Denys, Marc, Nadal Soler and myself) and we put out a complete solution in August 2013. From then on we tried to build the business and keep improving.</p>
<p>In 2014, ChicPlace was facing interesting challenges (growth, opening a branch in Latin America…), but we had already lost Marc due to budget cuts (luckily he stayed close, in the incubator) and I was growing tired of the non-technical dynamics in ChicPlace, so I in April I came to the conclusion that I had to move forward and wish my pals at ChicPlace good luck. Before I left, though, I was fortunate enough to be around for the birth of <a href="http://www.elcodi.io">ElCodi</a> which came into beign by giving steroids and improving a lot over the idea I had of building an e-commerce web app for the incubator. Marc took the idea to the next level by envisioning an e-commerce components system that is being built now, and not only for the incubator, but for everyone. ElCodi is OSS, and always happy to welcome contributors, so if you have the time, <a href="http://www.github.com/elcodi">go take a look</a> and help some very nice people out!</p>
<p>As I said, in April I announced that I would be leaving ChicPlace on May 30th, and started weighing my options. Came to the conclusion that there are some very nice projects out there. I had some interviews with <a href="http://www.skyscanner.es">SkyScanner</a>, <a href="http://www.schibsted.com">Schibsted</a> and <a href="http://www.adsmurai.com">Adsmurai</a>. Adsmurai is a very interesting project with an awesome team behind and I really wanted to be a part of it, but there were some personal issues I could not resolve and had to recommend them a great programmer (<a href="https://www.linkedin.com/in/monitotxi">Jordi Creus</a>) and keep looking myself. I am happy to say that Jordi is still with Adsmurai and it looks like they are growing very quickly! SkyScanner had a very long selection process, and while I made close to 10 hours of technical tests with them, and a Skype interview, they were still trying to piece the team together and took more than a month to give me feedback. I guess they were trying to make sure they were getting the right people, but the process became too long for me, for reasons I will detail now.</p>
<p>I was still in the processes with Schibsted and SkyScanner when I landed an interview with <a href="http://www.billymob.com">Billy Mobile</a> through ex-teammate and Frontend Developer <a href="https://www.linkedin.com/in/hherrerag">Horacio Herrera</a>. I had a very nice chat with <a href="https://twitter.com/_ascandroli">Alejandro Scandroli</a>, <a href="https://www.linkedin.com/in/jorditamargo">Jordi Tamargo</a> and <a href="https://www.linkedin.com/in/gemmallobet">Gemma Llobet</a> and they made an offer that was very much aligned with what I was looking for both in a business and personally. So, with some doubts in my head about the ‘lost’ opportunities with Schibsted and SkyScanner, both established and strong companies, I took the MVAS IT Manager spot at Billy, yet another startup in my resume (since 2008 I’ve almost exclusively worked for startups, except for consulting and training).</p>
<p>At first, Billy was just what I expected. We were shooting from the hip, pushing code to the live servers like maniacs and generally doing tons of work to keep a working business model working. But as the weeks went by, we started to refine ourselves. We introduced the use of composer, some process that resembles a deployment tool, we started using the Symfony components, made a development VM ready with Vagrant, started using ElasticSearch and Symfony2 for some of the projects, started using Redis beyond GET / SET… So basically, while the core business in Billy was (and should be) technically easier than the challenges I had at ChicPlace, we were starting to make it look like a decent technical challenge too. So in this vein, in August we started looking for a developer to join me, as the amount of work surpassed the hours I could put in. The search was very difficult, and made me realize that there are a LOT of outdated developers out there. One thing is not knowing something, but to me, it’s very important that you know that you don’t know it. Let me explain it better. If I am looking for a junior developer, I don’t give a rat’s ass that you cannot explain to me Factory pattern. That’s in a book, you can go look at it anytime you need it. But it’s VERY important that you know it exists, and that you know that you can go look at it anytime you need it. Basically, I need you to be able to find an answer to my questions with 5 minutes and access to Google and StackOverflow. You won’t be able to do that if you do not know what you do not know.</p>
<p>I interviewed people with 4, 5, 6 years of experience that had no idea what Dependency Injection was. They had never used any of the ‘new features’ - I put that in quotes as some of these features are more than some years old - of PHP (no namespaces, no closures, no traits), they had never TRIED to use composer. But after a lot of searching we found <a href="https://www.linkedin.com/in/oriolorellana">Oriol Orellana</a>, a senior developer who had a very good background and was a very good fit for us. We were lucky that he was open to join Billy and he has been with use since November. Oriol has brought with him a lot of order and process to the chaos put in place by beign in a one-man band. And I really hope we can build on that to keep making our technical processes and outputs better, and hopefully keep growing the team.</p>
<p>So, in the professional side, that brings us to December! It has been a very very good year for me professionally. There have been ups and lows, but I am very happy that I have the opportunity to keep working with awesome people and interesting problems.</p>
<p>On the personal side, it’s been pretty eventful too! Not only changing jobs, but I started 2014 with a very BIG news headline: My girlfriend was pregnant! She had a very nice pregnancy and delivered a healthy, beautiful and smiling baby girl on September 21st. Her name is Ada, and all the sleepless nights, the smelly diapers… are more than worth it. My girlfriend and I like challenges so, when Ada was about 5 weeks old we went to Sabadell to check a flat to rent… And we loved it. So my girlfriend organized the moving of a complete family by herself while I kept working and since December 1st we are living in Sabadell.</p>
<p>All in all, as always I have to be grateful to all of the awesome people I keep finding in my path. I am very fortunate to have the family I have, to be in the industry I am in and to have had the opportunities I have had. I hope 2015 is at least as awesome as 2014. And also hope I will be putting some more content here too!</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/08/20/billy-is-hiring-middleweight-php-developer-needed/">Billy Is Hiring! Middleweight PHP Developer Needed</a></h1>
<p class="meta">
<time datetime="2014-08-20T10:52:00+02:00" pubdate data-updated="true">Aug 20<span>th</span>, 2014</time>
| <a href="/blog/2014/08/20/billy-is-hiring-middleweight-php-developer-needed/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>As most of you know, since June 2nd I’ve taken the position of MVAS IT Manager at <a href="http://www.billymob.com">Billy Mobile</a>.</p>
<p>Well, the family is growing, and I need a pair of hands on my side.</p>
<p>Right now we are using some Symfony components (HttpFoundation, DependencyInjection, Configuration, Router, EventDispatcher, Console and Templating) and we are creating a lot of libraries for our own use which we control with Composer / Satis. We also are going to possibly include node.js in some of our apps.</p>
<p>Your job will be connecting our apps with 3rd party APIs, creating new libraries that connect us to different services, thinking of how to improve our metrics and having fun while doing so. We have three different areas were you can make impact (mobile web apps, a very custom adserver and a REST-ish API for native mobile apps).</p>
<p>We are looking for:</p>
<ul>
<li><p> A fun person to be around</p></li>
<li><p> All-around nice person</p></li>
<li><p> Middleweight PHP developer. You have some experience, but want to improve and / or take on new challenges. Or maybe you have a ton of experience, and you like this job posting!</p></li>
<li><p> Comfortable with MySQL (queries, indexes, joins…)</p></li>
<li><p> Comfortable with the Mediator pattern and design patterns in general</p></li>
<li><p> Comfortable with git and composer</p></li>
<li><p> Understands Dependency Injection</p></li>
<li><p> Can document code, or writes code so beautiful it’s auto-commented (if this is you please teach me).</p></li>
<li><p> Maybe has a bit (or a lot) of experience with testing.</p></li>
<li><p> Maybe has experience with key-value stores (Redis, Memcached or other), and NoSQL solutions (MongoDB, CouchDB, ElasticSearch or other…)</p></li>
<li><p> <em>Strong english skills required</em> - this a must, as we are an international company that need to communicate clearly in English with both coworkers and partners.</p></li>
</ul>
<p>We are offering:</p>
<ul>
<li><p> Good salary and company perks</p></li>
<li><p> An environment were prototyping, putting your ideas out there and trying new stuff is encouraged</p></li>
<li><p> Lots of growth opportunities</p></li>
<li><p> The chance to impact a working business model</p></li>
<li><p> Working with yours truly which is AWESOME</p></li>
<li><p> Free coffee and soft drinks</p></li>
<li><p> Great coworkers</p></li>
</ul>
<p>Do you think you want this job? Then drop me an email at my name at billymob.com or <a href="https://www.linkedin.com/jobs2/view/11081010?trk=biz-overview-job-post">apply on LinkedIn</a>.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/05/06/what-i-have-learnt-as-a-cto/">What I Have Learnt as a CTO</a></h1>
<p class="meta">
<time datetime="2014-05-06T16:45:00+02:00" pubdate data-updated="true">May 6<span>th</span>, 2014</time>
| <a href="/blog/2014/05/06/what-i-have-learnt-as-a-cto/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>When May comes to and end, I will end my one and a half years journey as
a CTO for <a href="http://www.chicplace.com">ChicPlace.com</a>.</p>
<p>The reasons for my depature are diverse, and possibly this is not the
best place to discuss them, but I am very grateful for the opportunity
to grow and learn while developing a project that has the potential to
be something special.</p>
<p>During this time I have gained a lot of experience managing teams, and
learnt a lot about myself, specially when it comes to working with
non-technical people, and how to manage expectations, deadlines and
organisation when working in a very fast-paced and very improvisational
startup.</p>
<p>I will write a list of things that I have learnt, in the form of:</p>
<ul>
<li>List item.
<ul>
<li>How it has affected me personally.</li>
</ul>
</li>
</ul>
</div>
<footer>
<a rel="full-article" href="/blog/2014/05/06/what-i-have-learnt-as-a-cto/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/30/customize-form-prototype-for-collections-in-symfony2/">Customize Form Prototype for Collections in Symfony2</a></h1>
<p class="meta">
<time datetime="2013-10-30T15:45:00+01:00" pubdate data-updated="true">Oct 30<span>th</span>, 2013</time>
| <a href="/blog/2013/10/30/customize-form-prototype-for-collections-in-symfony2/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>When working with complex forms, sometimes you will be in need of
creating a collection field type to manage relations. When this is the
case, you may find yourself in the need of tweaking how the ‘add’ form
shows.</p>
<p>It’s pretty simple. In twig the protoype can be found under
form.collection.vars.prototype and can be used as a regular form (i.e.
if your form.collection member form has a ‘name’, it will also be
available in form.collection.vars.protoype.name).</p>
<p>With this information now you can create a twig that recieves an ‘item’,
which can be either a form.collection member or a prototype, and it will
be rendered the same.</p>
<p>Finally, wherever you hold the collection html, you will have to output
something like this:</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'>data-prototype="{% filter escape %}{% include 'prototype.twig' with { 'item': form.collection.vars.prototype } %}{% endfilter %}"</span></code></pre></td></tr></table></div></figure>
<p>And your <code>prototype.twig</code> should look like</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>{{ form_row(item.field0) }}
</span><span class='line'> {{ form_row(item.field1) }}
</span><span class='line'> {{ form_row(item.field2) }}</span></code></pre></td></tr></table></div></figure>
<p>This way, you will have access to the prototype as if it were a regular
form, and you can apply all the customization you want (you can user
form_widget and the other functions, or access the vars directly, etc…)</p>
<p>Creating the helper twig is optional though, but handy because you have
to use the escape filter to the twig so you can put it in the correct
data-attribute.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/10/10/flushing-only-desired-entities-with-doctrine/">Fluhsing Only Desired Entities With Doctrine</a></h1>
<p class="meta">
<time datetime="2013-10-10T16:45:00+02:00" pubdate data-updated="true">Oct 10<span>th</span>, 2013</time>
| <a href="/blog/2013/10/10/flushing-only-desired-entities-with-doctrine/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>Sometimes, you may be working with several entities at the same time. If
this entities are managed by Doctrine, you may find yourself in the
situation where you want to flush only some of them. If you want to do
so, you can pass an array of entities to the flush(), so it only affects
the entities you explicitly pass to the function.</p>
<p>This is very useful to avoid side-effects in some instances.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/03/28/loading-cross-domain-fonts-from-firefox/">Loading Cross-domain Fonts From Firefox</a></h1>
<p class="meta">
<time datetime="2013-03-28T15:45:00+01:00" pubdate data-updated="true">Mar 28<span>th</span>, 2013</time>
| <a href="/blog/2013/03/28/loading-cross-domain-fonts-from-firefox/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>When requiring a font from an external CSS file (assets domain, CDN,
etc), you may see that Firefox refuses to display the font. This is
because Firefox, by default, disables cross-domain fonts. To solve this
you have to add a header to the response with the font file. The header
is <code>Access-Control-Allow-Origin: *</code></p>
<p>In a typical <code>nginx</code> setup, this is achieved with this snippet:</p>
<p>nginx add header</p>
<figure class='code'><figcaption><span>nginx add header</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>location ~* \.(eot|ttf|woff)$ {
</span><span class='line'> add_header Access-Control-Allow-Origin *;
</span><span class='line'>} </span></code></pre></td></tr></table></div></figure>
<p>Once you have that in place, the fonts will be loaded correctly from
Firefox.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/03/26/my-experience-with-paymill/">My Experience With Paymill</a></h1>
<p class="meta">
<time datetime="2013-03-26T12:30:00+01:00" pubdate data-updated="true">Mar 26<span>th</span>, 2013</time>
| <a href="/blog/2013/03/26/my-experience-with-paymill/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>I have been using <a href="https://www.paymill.com">Paymill</a> at work for some time now, and this is what I think of it thus far:</p>
<p>PROS:</p>
<ul>
<li>Easy to implement. As in dumb-proof easy.</li>
<li>Commission (2.95% + 0.28€) is reasonable against time of implementation.</li>
<li>No other fees. No setup fee, no base usage fee, nothing, only their commission.</li>
<li>They only charge for successful transactions.</li>
<li>Pays every 7 days, directly to your bank account.</li>
<li>Removes lots of man-hours in payment-gateway related stuff.</li>
<li>Removes the need to be PCI-compliant.</li>
<li>They have <a href="https://github.com/Paymill">libraries</a> for lots of languages and software packages.</li>
</ul>
<p>CONS:</p>
<ul>
<li>Test mode and live mode do <em>not</em> behave the same in some instances.
<ul>
<li>Have not checked recently, but at a point the test mode worked with a deprecated parameter that resulted in an error if used in live mode.</li>
<li>As of now, the amount sent to the bridge and the backend do NOT have to match in test mode for a successful transaction</li>
</ul>
</li>
<li>Error messages are not that clear, although they have improved in that area.
<ul>
<li><code>40000 RESPONSE_DATA: general problem with data</code> or <code>40100 RESPONSE_DATA_CARD: problem with creditcard data</code> are not very telling. I got a 40100 for a client who did not have 3D-Secure enabled.</li>
</ul>
</li>
<li>Sometimes they take a long time to answer to support tickets.</li>
</ul>
<p>BOTTOMLINE:</p>
<p>Paymill is a great tool and I recommend it if you need a payment gateway FAST and cannot / do not want to spend time going PCI-compliant. Only thing that worries me is the discrepancy in behaviour between test mode and live mode which makes it necessary to run some ‘live’ tests that would not be necessary otherwise. Anyway, once you have detected these little things you can work around them with your own tests and assertions.</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/03/25/mrzard-now-octopress-github-pages/">MrZarD, Now on Octopress on GitHub Pages</a></h1>
<p class="meta">
<time datetime="2013-03-25T15:45:00+01:00" pubdate data-updated="true">Mar 25<span>th</span>, 2013</time>
| <a href="/blog/2013/03/25/mrzard-now-octopress-github-pages/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>Due to <a href="http://www.posterous.com/">Posterous</a> closing soon I had to look for another place to host my (seldomly updated) blog. After 10 minutes, I saw GitHub Pages and then saw <a href="http://octopress.org/">Octopress</a>. The combination of both is awesome and really feels great for a developer instead of a classic web interface.</p>
<p>So, now you can find me here, at GitHub. Same content, same guy, same few updates!</p>
</div>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2017/03/01/becoming-a-dadveloper/">Becoming a dadveloper</a>
</li>
<li class="post">
<a href="/blog/2015/03/25/elasticsearch-enable-mlockall-in-centos-7/">ElasticSearch: Enable Mlockall in CentOS 7</a>
</li>
<li class="post">
<a href="/blog/2014/12/30/farewell-2014-welcome-2015/">Farewell 2014, Welcome 2015</a>
</li>
<li class="post">
<a href="/blog/2014/08/20/billy-is-hiring-middleweight-php-developer-needed/">Billy is hiring! Middleweight PHP developer needed</a>
</li>
<li class="post">
<a href="/blog/2014/05/06/what-i-have-learnt-as-a-cto/">What I Have Learnt as a CTO </a>
</li>
</ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating…</li>
</ul>
<a href="https://github.com/mrzard">@mrzard</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'mrzard',
count: 0,
skip_forks: false,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section>
<h1>Twitter</h1>
<a class="twitter-timeline" href="https://twitter.com/mrzard_dev" data-widget-id="316573872377970688">@mrzard_dev</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2017 - Gonzalo Míguez -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'mrzardblog';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>