Skip to content

Protected: Day 17 – Third Interview

This content is password protected. To view it please enter your password below:

Protected: Day 16 – Interview first test

This content is password protected. To view it please enter your password below:

Day 15 – Java!

Well, today I decided to start straight forward with Java, I heard about Vaadin framework and got interested as it lets you build a cool user interface with no effort.

As they state on the page, is easier to start if you use Eclipse, you just need to install the plugin and that’s all.

At first it doesn’t looks straight forward as I thought, I created a new Vaadin Project, but I don’t see how to build a war file to publish on my Glassfish server. Then I decided to use other approach, in this case, use maven to create the project as explained on the Vaadin wiki.
Read more…

Day 14 – Publish scripts

I had created a couple of scripts in Perl in order to achieve two different things:

  1. Start/stop servers without having to remember how the commands
  2. On AWS, once I updated files from git repository, move them to the Apache respective directory

As they were easy to create I didn’t mention them before, but today I wanted to create a script for publishing my java files, I still don’t have the project ready, but I wanted to have a modified configuration file for Glassfish in order to disable unused services.

Last week I week to a short workshop for playing around with data using Python, I got interested and now I’m trying to use Python instead of Perl just for the sake of learning it.

Then, I created the publish script for Java:
Read more…

Day 13 – Creating views on Catalyst

Now that I have everything configured, I’m going to start making the application what is supposed to do.

At first I’m going to create a home page for the application and replace the current Catalyst’s Welcome page. To start with this, I decided to make a wireframe of what I want, I used moqups web application with a free account, so far, so good, it even let me export a png image (Actually it exports the entire project).

Home (1)

Hands on work: Read more…

Day 12 – Configuring Catalyst and Apache

Well, now that I’m satisfy with my code base, I’m going to enable access to my Catalyst application through Apache server.

First thing I realize is that it uses FastCGI instead of mod_perl, the problem is that it doesn’t comes by default with Apache, then, need to install it.

  1. Install required packages
    • yum install libtool httpd-devel apr-devel apr
  2. Download and uncompress source code from http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
  3. Compile Read more…

Day 11 – Git pre-commit hook

Well, it took me some time, but finally I finished my own pre-commit hook for Git.

I decided to code my own version after found on day 10 two scripts:

  1. One written by Alexis Sukrieh 3 years ago using bash
    • What I liked:
      • Tidy
      • PerlCritic
      • Critical unit testing
      • Test coverage
      • Loved the idea of recording testing coverage to compare with the next commit and deny to commit if coverage is lower than previous commit.
    • What I disliked: Read more…

Day 10 – Perl Catalyst and some more testing

Well, I spent a lot of time configuring my Apache server running my brand new website http://mydevjoy.com, it is running on an Amazon Web Service instance, not only Apache is running but Glassfish, Jenkins, awStats, Git, and Gitolite are in there.

But now, that I have them running, I plan to continue writing the JobFilter on Perl, in this case, I want to use Catalyst as web framework just because I read good things about it, also, because I want to make JobFilter web-ready from the beginning along with multi-language support.

Lets start: Read more…

Day 9 – Configuring AWS

Today I want to setup my Amazon Web Service account, I want to run my perl and java applications on the same instance. So, lets start.

It looks like I have to use Amazon EC2 (Elastic Compute Cloud) and install an AMI (Amazon Machine Image), following the instructions on this page, I selected EC2 on the list of available services and then:

  • Selected the Amazon Linux AMI 2013.03 32-bit version image as it fits into the free tier usage.
  • Changed firewall setting according to the guide page I mentioned early and also added the rule to open the ports 80 (HTTP), 443 (HTTPS) and 4848 the latter in order to access the Glassfish console.
  • After created the instance, I connected to it using ssh.
    >ssh -i yourkey.pem ec2-user@your-public-dns-address.com

Read more…

Day 8 – Perl Critic

I had heard many times about Perl Critic, just used once or twice, but now I want to run on my code every time I run the tests.

SEVERITY LEVEL

There are five severity levels from gentle to brutal, the latter sounds, well, brutal, but I found it annoying, it complains even of spaces at the end of the line, that includes the empty lines with tab and white spaces left by my text editor.

Gentle, is good when you have a lot of code and you want to start implementing Perl Critic, in my case I have not much code, and I’ll stay with the harsh level; cruel and brutal, are like moaner and whinger brothers, so I’ll stay away from them.  Read more…