After long time later, I am writing my programming blog again. Today, I downloaded glassfish-3.1.2.2-unix.sh. I am running Fedora 16. After successful installation of the glassfish, I was getting error when I ran the the following command: asadmin>start-domain "There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command start-domain failed." Then I checked my hostname of the machine: hostname I got my hostname is nix-domain Now, nix-domain is not listed in the /etc/hosts file. Therefore, I added nix-domain in the file. 127.0.0.1 localhost nix-domain Now, I tried to run the start-domain again. It started perfectly without any error. Therefore, I understood that my machine assigned hostname 'nix-domain' is not listed in the hosts file, glassfish generated the error. I am hoping, it is not only the solution, there must be...
Homebrew setup guide This guide describes how to install Homebrew and few ferequently used Homebrew commands. Using Homebrew you can install software very easily. It is like linux "yum" command. Install Homebrew (The missing package manager for OS X): $/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" $brew doctor (You should see "Your system is ready to brew." on the console output. Do not move forward unless you see this.) Common commands: Check version of brew: $brew --version Search Homebrew repo: $brew search %app name% (i.e: I want to check "wget" is available or not. $brew search wget) Check app information: $brew info %app name% (i.e: $brew info wget) Install software package: $brew install %app name% (brew install tree) Uninstall software package: $brew uninstall %app name% (brew uninstall tree) Check installed packages in your system: $brew list Ins...
It is an old post based on old idea, it is not so relevant anymore. I have just encountered an article about JavaScript module pattern. As a Java developer, it blows my thinking about JavaScript. So far, it is the excellent article about JavaScript module pattern, according to my point of view. I added the link of the article for me and who wants to learn module pattern. https://toddmotto.com/mastering-the-module-pattern/ However, the self invoked function creates only one object in the memory. As a Java developer, it looks like Java singleton or static method kind of thing. You cannot create multiple objects using self invoked function. In this post, I am trying to demonstrate the situation step by step using simple example and potential solution of this issue. For example: var Name = (function(){ var firstName = "Ted"; var lastName = "Bid"; var nameObject = {}; nameObject.setFirstName = function(fn){ ...
Comments
Post a Comment