Today is a very important day of my life. I have been through a lot and gained much experience, which has brought me to where I am now in life. Today is indeed an important day for me, because it will be the beginning of a whole new experience. It is something that I have [...]
I love this site - http://xkcd.com/

Here you'll find a fantastic collection of amusing and sketchy flowcharts that will entertain you for hours. Here's a sample from XKCD. If you enjoyed this - you might want to check out more here



Well if you're not as talented as the folks at XKCD and need flowchart software to help you with your flowcharts - then you'll want to check out Create for Flowcharts.

We're about to step into the New Year and the whole world is waiting to celebrate the New Year's Eve with loads of elation. And I'm here sitting on the couch sipping on my cup of tea, trying to draw a Concept Map.

New Year's Eve is just like a monsoon that sweeps away all the negative experiences and helps us start afresh. Old Year’s Night will be celebrated on December 31, 2009, throughout the World with parties, social gatherings and firecrackers -  to cherish the beautiful moments of the year. The year that will soon be just a memory in one's life!!

Yes, it's New Year's Eve in a few days and you must want to know what's happening around the World. Check out our Concept Map. We've put together a simple diagram to capture how NYE is celebrated around the world and whats the most happening location for this New Year.

Creating this map was easy with Creately's 1- Click Connectors. You can draw Flowcharts, Business Diagrams, Infographics, Organization Charts, UML Diagrams, Sitemaps and a whole lot more. Now try Creately and mark it as your New Year's resolution to communicate visually when-ever and where-ever you can. :-)


Last week I was asked to come up with some useful diagrams to demonstrate the power of Creately. As usual I was active during my power hours of 10p.m. to 3 a.m. generating ideas. I had random ideas running through my head, but didn’t quite understand the importance of each of them. So even before I figured out the effort required to build a diagram, I spoke to a few of my online friends.

I asked them about their knowledge on Creately. I was excited to hear a few of them say, “I love it!!” They rate Creately 5 stars each time they used it, and they have recommended it to many of their friends. But on the other hand, I was quite surprised to see a few others say “What’s Creately?”

Well… that’s when I realized that a simple flowchart on Creately about Creately would be a great diagram.  Since flowcharts are easy-to-understand, they are a great tool for communicating how things work and I believed this simple diagram will help people understand what Creately is all about.

So here’s a simple flowchart for all of you who want to learn about Creately!

Flowchart about Creately

An application failing to respond is no big deal and troubleshooting is no rocket science!! But we end up cursing the application each time it fails to respond.

Not everyone is a techie; and every time we have issues we run to IT support or our friends for help. Now thanks to Thomas Boito (First Steps in Troubleshooting),  you needn’t hassle your tech-savvy friends anymore.

This flowchart by Thomas created with Creately.com illustrates the first steps in troubleshooting your PC desktop problems and is very simple yet effective. I  hope you’ll find this flowchart as useful as I did - I’ve got it up on the wall.

Drawing flowcharts on Creately is stunningly easy and convenient with Creately’s 1-click create button. You too can try Creately for a great flowcharting experience! (Don’t worry you don’t have to pay a thing)


Have you got a useful Creately diagram you’d like featured here - send us the public link to your diagram (Help Page - How to 1-Click-Publish your Flowcharts on the Internet with Creately)

Speedy

If you’re a Rails developer I hope you too hate to run ./script/server command all the time to start the application server during the development phase. Fortunately Phusion came up with a revolutionized solution to host the Rails application on Apache server using Passenger (aka mod_rails).

To deploy a web application on Apache using Passenger you should perform following initial server configurations.

  1. Create a virtual host
  2. Add an entry to the hosts file
  3. Enable the website
  4. Finally restart the Apache web server

Apparently this is a repetitive task, no doubt it sucks your valuable time for each and every application that you develop and deploy.

Before I bought my MacBookPro, I used Debian based Linux distros like Ubuntu and LinuxMint for my development. So, at that time I noticed that Mac people have a simple solution called Passenger preference pane, which allows them to drag and drop project and deploy. I really inspired by that and I always wanted to create such an automated tool which can use by all Rails developers despite of the platform. So I thought the best solution for this is to create a Ruby gem.

So, as soon after finishing my final year exams, I sat and write the specifications for the tool. First I thought to call this tool as “FireRails”. But, finally it became “Speedy”.

I’ve hosted the Speedy on GemCutter,so that you can install in the native way.

sudo gem install speedy

To deploy a web application navigate to the particular application root folder via terminal and simply type

sudo speedy deploy

(Since Speedy deals with many system level commands, you always need to run Speedy with administrator credentials.)

If you need, you can pass the desired hostname for above command.

sudo speedy deploy example.local

If not Speedy will create a hostname and deploy the site with the name of the root folder, enable the site and finally restart the Apache server. All these operations will only take less than 2 seconds, as the name implies.

In addition to that, you can use Speedy for maintain Apache-Passenger clean configurations. Play the video for the instructions.

Currently, Speedy supports Debian/Ubuntu variants only. Hopefully, next release will support both Mac and Linux, and my ultimate goal is to develop Speedy, to use it in production servers, very easily and very happily.

You can visit the official website and the documentation for more information and instructions. Also follow @speedygem in Twitter for stay up to date. If you would like to discuses about the features and suggest new features or to report a bug please visit the official Google group.

Related Articles

Uninstall Ruby Gems

First we need to find out the exact location that the Ruby installs it’s libraries. In the terminal program, You can type the following command to find out the exact location.

ruby -e 'puts $:'

You’ll get list of paths. This is the output that I got in my machine.

/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i486-linux
/usr/local/lib/site_ruby/1.8/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/vendor_ruby/1.8
/usr/lib/ruby/vendor_ruby/1.8/i486-linux
/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i486-linux
/usr/lib/ruby/1.8/i386-linux
.

Next we need to change our directory in to /usr/local/lib/site_ruby/1.8 and type following command to list the files.

ls -la
drwxr-xr-x 5 root root   4096 2009-07-15 12:15 .
drwxr-xr-x 3 root root   4096 2009-07-15 12:14 ..
-rw-r--r-- 1 root root   1415 2009-07-15 12:15 gauntlet_rubygems.rb
drwxrwsr-x 2 root staff  4096 2009-07-15 12:14 i486-linux
drwxr-xr-x 2 root root   4096 2009-07-15 12:15 rbconfig
drwxr-xr-x 6 root root   4096 2009-07-15 12:15 rubygems
-rw-r--r-- 1 root root  29116 2009-07-15 12:15 rubygems.rb
-rw-r--r-- 1 root root    268 2009-07-15 12:15 ubygems.rb

Now we are ready to remove the gems. Type,

rm -r rubygems.rb ubygems.rb rubygems

If you wish to remove all gems installed in your computer, first find out the location by executing following commands

 which gem gem1.8

Next you can remove them by using following commands. That’s it!

rm -r /usr/local/bin/gem
rm -r /usr/bin/gem1.8

Related Articles

php-iis

Are you a .NET developer? Looking forward to learn or switch to PHP (which is quit impossible. May be I’m dreaming…! :D . However if you are, you are mostly welcome to the word of light..! I mean LAMP) You can setup PHP in IIS server. I’ll walk you through step by step. So, are you ready for the journey..? Let’s go..

I’m writing this tutorial to understand even by a newbie. So bare with me for some very basics stuffs.

First of all you need to install PHP to your computer. You can download PHP at

http://www.php.net/downloads.php

PHP installation is pretty straight forward. I believe you can manage it.

Next you need to ensure whether the IIS server installed in your computer. Regular windows installation won’t install IIS server. So, to test whether it is there or not, right click on My Computer icon and select Manage. Then expand the Services and Application node.

iisphp1

If you don’t see Internet information Service, that means that you should install IIS server manually. It’s pretty simple.

Go to Control Panel and select Classic View in the left pane. Then double click on the Programs and Features icon. Now you’ll have a list of option in your right pane. Select Turn Windows features on or off.

iisphp2

Click the Internet Information Server check box and expand the node.

iisphp3

Again expand the World Wide Web Services , Application Development Features and click the ISAPI Extensions. Then click OK. It will take several minutes to installation.

iisphp4

Now you can check whether the server working properly. Open up your internet browser and type http://localhost/ . You’ll get a page as follows

iisphp5

Now you need to configure the server for PHP. Go to the Computer Management window again (Right click on My Computer and select Manage) and expand the Services and Applications node and click the Internet Information Services link. Then in the connection area select Default Web Site.

iisphp6

Click on Handler Mappings.

iisphp7

On the right side of the window, click on “Add Script Map…”

iisphp8

Once you clicked a pop up window will appear. Fill up the fields with following values.

iisphp9

Click OK. Then a Dialog box will appear. Say Yes! to that. Thats it!

Now you need to check whether the server working with PHP. Open up your favorite text editor and type

1
2
3
<?php
    phpinfo();
?>

Save the file as phpinfo.php under “C:\inetpub\wwwroot”.

Then open up your browser and navigate to http://localhost/phpinfo.php
If you get following page.., you are done..!

PHP info page

Related Articles

install_ror_on_ubuntu
Few of my friends have started to learn Ruby on Rails recently. According to my point of view, Windows is not a suitable and enjoyable  environment for RoR development. So, I recommended them to start with Ubuntu. Most of them have installed Ubuntu 8.10 and 9.04. So, I wish to write a small guide to setup the Ruby on Rails environment on Ubuntu 8.10 and 9.04

If you like to watch the screencast of this title, rather than reading whole post, you can find my screencast here.

http://mohamedaslam.com/screencast-how-to-install-ruby-on-rails-on-ubuntu/

Ruby installation

First we need to update the repositories.

sudo apt-get update

It’s always a best practice to upgrade the system.

sudo apt-get dist-upgrade

This installation will take few minutes and also require approximately 100 MB disk space.

Now that we are up to date. Let’s start install the RoR recipices. We need following Rails prerequisites.

ruby = An interpreter of object-oriented scripting language Ruby
ri = Ruby Interactive reference
rdoc = Generate documentation from ruby source files
irb = Interactive Ruby

sudo apt-get install ruby ri rdoc irb libopenssl-ruby ruby-dev

Ruby Gem installation

Next we need to install the Ruby gem package manager. You can download the latest Ruby gems by following link.

http://rubyforge.org/projects/rubygems/

Download and extract the files. (By the time I’m writing this tutorial the latest version is 1.3.1)

tar xvzf  rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo ruby setup.rb

Once it’s done you can delete the .tgz file and rubygems directory.

cd ..
rm -r rubygems-1.3.1 rubygems-1.3.1.tgz

Next we need to create a set of simlinks. Otherwise it will be a tedious task to type commands with the version (1.8).  For an example if we need to call the gem command we’ve to type gem1.8. I don’t prefer that. Hope you too. So, let’s create the necessary simlinks.

sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem
sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri
sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb

Rails Installation

Now we can install Rails using gem.

sudo gem install rails

Server Installation

Rails by default comes with the WEBrick server. But most Rails developers prefer the Mongrel server. If you satisfied with WEBrick you can skip this step, else type the following command to install Mongrel server.

sudo gem install mongrel

If you got any error while installing the Mongrel server, install the ruby-dev / ruby1.8-dev and try again.

sudo apt-get install ruby-dev

Database Installation

Rails 2.3 shipped with  SQLite3 as it’s default database instead of  MySQL. You can install SQLite3 libraries by following commands.

 sudo apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev
sudo gem install sqlite3-ruby

If you prefer MySQL,

sudo apt-get install mysql-client libmysqlclient15-dev
sudo gem install mysql

Create Ruby on Rails App

Now that we have completed everything successfully. You can create your new Ruby on Rail applicaion by following command.

rails test_app

If you need MySQL supported applicaion you need to specify as follows

 rails test_app -d mysql

Run the app

cd test_app
script/server

navigate you browser to http://localhost:3000

ubu

Wola.. you have done it…!

Happy Rails…!

Related Articles

Latest Activity

added a new blog entry.
24 months ago
added a new blog entry.
24 months ago
added a new blog entry.
24 months ago
added a new blog entry.
24 months ago

Top Contributors

aslamnajeem (7)
charan (3)
Indu (1)

Share

Powered by