Wednesday, September 23, 2015

Setting up infrastructure for a new development

When I setup a new software system, I will need the following:

  1. Database Server
  2. Application Server
  3. Code Repository Server
  4. A laptop / desktop for development
  5. Build System
    1. Build System Host Server
    2. Build System Test Server


Which means, at a minimum, we will need 5 servers. For a new developer with very limited requirements, this is probably too much cost.

So, how can we reduce cost?

1. Combine Database Server and Application Server into one.

2. Use Github (git) or Sourceforge (SVN) for Code Repository.

3. Use your laptop to run Build Host and Test.

This would be a good starting point. As you go along, you can divide your servers into different machines.

If you don't have heavy requirement, it is a good idea to use cheap CPUs - like Raspberry Pi.

Thursday, February 26, 2015

Apache Tomcat in AWS Ubuntu instance

I am trying to setup a new website for myself.


  1. Decided to use aws Free-tier. I still have not figured out the domain name and where to register it. I am thinking GoDaddy for this.
  2. Created a Ubuntu linux instance in free-tier. I created a new key pair and downloaded it while creating the Ubuntu EC2 instance.
  3. Configured Seucrity Groups in http://aws.amazon.com to allow SSH from computers that I usually use.
  4. Putty-ed into the instance and installed apache. sudo apt-get install apache2
  5. Changed Security Group to allow HTTP connection from "Anywhere". Anywhere was one of the options - other options was to restrict it to my IP, and use Subnet mask.
  6. Apache was running while the installation was complete. In case, I had to start it, I would have used sudo apache2 start.
  7. Gave the Public DNS of my instance in my browser, I got the apache's index.html. This index.html is located in this directory /var/www/html/. /var/www/html/ is the default Document Root. If you need to change the Document Root, use /etc/apache2/sites-available/000-default.conf file. 


Thursday, January 22, 2015

US T Shirt sizes for references

I found a great guide on deciding the T-shirt sizes and pant sizes. Hope that helps you too:

For men

 
 
XXS
 
XS
 
S
 
M
 
L
 
XL
 
2XL
 
3XL
 
Chest (inches)
 
29-31
 
30-32
 
34-36
 
38-40
 
42-44
 
46-48
 
48-50
 
50-52
 
Waist (inches)
 
27-29
 
28-30
 
30-32
 
32-33
 
33-34
 
36-38
 
40-42
 
44-48
 

Source: https://www.americanapparel.net/sizing/default.asp?chart=mu.shirts&c=

For Women:

 
 
XXS
 
XS
 
S
 
M
 
L
 
XL
 
2XL
 
 
 
Size
 
00
 
0
 
0-2
 
4-6
 
8-10
 
12-14
 
16-18
 
 
 
Chest (inches)
 
26-28
 
28-30
 
30-32
 
32-34
 
36-38
 
40-42
 
44-46
 
 
 
Waist (inches)
 
20-22
 
23-24
 
25-26
 
27-28
 
30-32
 
33-35
 
36-38
 
 
 

https://www.americanapparel.net/sizing/default.asp?chart=womens.shirts