Posts

Showing posts with the label windows

Learn Rails on Windows, part 1

Background Ruby on Rails is a very well known framework, inspiring many frameworks created following Rails ways of organizing a web application. The frameworks I have used that are similar to Rails are : In PHP : CakePHP, CodeIgniter, Yii Framework  In Java : Spring Roo And it seems also being used in Openshift Origin for the implementation of Origin's web console and broker API. That and combined with our need to run Openshift Origin in our private cloud seems a good reason to learn Rails,  The tutorial Currently I am following the Ruby on Rails tutorial by Michael Hartl ( link ). The book strongly encourages using Linux based environment for development, but I am used to work from my Windows machine, so I tried to do development from my Windows Laptop. Preparation I installed the x64 version of Ruby 2.0.0 installer in  http://rubyinstaller.org/downloads/ for my Windows 8.1 system. I have cases that the 32 bit installer doesn't work for 32-bit Wi...

Port Forwarding using your Windows Server or Laptop

Sometimes we just need to forward a port from one host, to another host. A few years back I built a java NIO-based port forwarder to learn about java NIO socket communication. The java source codes since has been lost and there is a different need for port forwarding, the first is that a server having failure connecting to services in another server, and I think that the server's IP  might be translated to another IP while it were connecting to another network. So the port forwarding need to be able to log the IPs of the incoming  connection. The second, is to temporarily circumvent strange network problems that prevent the first server connecting to another server. Step 1 - Decide which incoming port to use First we need to decide what port we are going to use to accept connections in the first host. Check first that the port is not already occupied in the host (try opening http://127.0.0.1:xx in your favorite browser where xx is the chosen port) Step 2 - Open windows...