Wednesday 25 January 2012

Install ANT 1.8.2 using Ubuntu OS Apt-get

Ant is a Java based build tool, similar to make, but with better support for the cross platform issues involved with developing Java applications. Ant is the build tool of choice for all Java projects at Apache and many other Open Source Java projects.

Install ant 1.8.2 using PPA on ubuntu
Open the terminal and run the following commands
sudo add-apt-repository ppa:eclipse-team/debian-package
sudo apt-get update
sudo apt-get install ant

Thursday 19 January 2012

Steps to Enable Web Admin Login Using Ejabberd



How to enable web Interface under ejabberd? 
{5280, ejabberd_http, [
                         captcha,
                         http_poll,
                         web_admin,
                        {request_handlers, [{["users"], mod_available_user}]}
                        ]}
 
$ ejabberdctl restart 
ejabberdctl register admin localhost password 
( ex. ejabberdctl register admin localhost xyz987)
 
access url : http://localhost:5280/admin 
 
Web Interface will look something like this:
ejabberd Web Admin Interface


 
 

How to upgrade Hadoop?

How to install Ejabberd on Ubuntu

How to create Multi User Conference under Ejabberd

The ejabberd mod_muc source is under src/mod_muc in the ejabberd source code, see: https://github.com/processone/ejabberd/tree/master/src/mod_muc.

Nothing looks wrong with your example code, you may also need to call mod_muc_room:start/7 after creation.

I would recommend using ejabberdctl debug on a developemnt ejabberd server & try these functions directly.

editor for nodejs

Nide, a very nice browser-IDE

Example for Hadoop WordCount

Common Error While Formatting Hdfs

Typical Error 
ERROR namenode.NameNode: java.io.IOException: Cannot create directory /app/hadoop/tmp/dfs/name/current
    at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:297)
    at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1219)
    at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1238)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1038)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1145)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1162)

How to solve it :
sudo chown 755 /app/hadoop/tmp


Now we create the directory and set the required ownerships and permissions:

$ sudo mkdir -p /app/hadoop/tmp
$ sudo chown hduser:hadoop /app/hadoop/tmp
# ...and if you want to tighten up security, chmod from 755 to 750...
$ sudo chmod 750 /app/hadoop/tmp

If you forget to set the required ownerships and permissions, you will see a java.io.IOException when you try to format the name node in the next section).

Success Case:

*******************************************/
 INFO util.GSet: VM type       = 64-bit
 INFO util.GSet: 2% max memory = 17.77875 MB
 INFO util.GSet: capacity      = 2^21 = 2097152 entries
 INFO util.GSet: recommended=2097152, actual=2097152
 INFO namenode.FSNamesystem: fsOwner=hduser
 INFO namenode.FSNamesystem: supergroup=supergroup
 INFO namenode.FSNamesystem: isPermissionEnabled=true
 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100
 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
 INFO namenode.NameNode: Caching file names occuring more than 10 times
 INFO common.Storage: Image file of size 112 saved in 0 seconds.
 INFO common.Storage: Storage directory /app/hadoop/tmp/dfs/name has been successfully formatted.
 INFO namenode.NameNode: SHUTDOWN_MSG:



refer:

How do you configure sshd_config

Disabling IPv6

To disable IPv6 on Ubuntu 10.04 LTS, open /etc/sysctl.conf in the editor of your choice and add the following lines to the end of the file:

 
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

** Running hadoop on ubuntu linux Single Node Cluster

Yahoo Open Source Tools and Developer Documentation

Tuesday 10 January 2012

Install Xrdp to Support Rdesktop Connection on Ubuntu

sudo apt-get install build-essential libpam0g-dev libssl-dev x11vnc vncviewer fakeroot checkinstall x11vnc

Thursday 5 January 2012

Important tools while doing a Build


search a package using apt
sudo apt-cache search <application-name>

sudo apt-get install <application name >

for example during build process it says some file are missing;

Under ubuntu you have this <command>
sudo apt-get install apt-file


Additionally apt-file can be used to list all files included in a package without installing or downloading it.

so you can do

sudo apt-file search  gtk+-2.0
and this gives the package name where its located.


Note:
To display hidden file in ubuntu 11.04
crtl-h  on the viewing folder.

other useful utilities

sudo apt-get install nmap
sudo apt-get install samba swat smbclient










Man in the Middle Attacks

Wednesday 4 January 2012

Protocols - Details

Scala Must know base Understanding

  • Setting up the development environment
    • Installing the Scala distribution
    • Installing Eclipse and the Scala plugin
    • Installing sbt
  • Bootstrapping
    • Initial state of the ScalaTrain case study
    • Short recap of important basics
  • Functional programming in depth
    • By-name parameters
    • Local methods
    • Recursion and tail recursion
    • Partial functions
    • Currying
    • Partially applied functions
    • The power of folding
  • Mastering the type system
    • Type parameters
    • Variance
    • Lower and upper bounds
    • Type members
    • Path dependent types
    • Refinements and structural typing
    • Phantom types
    • Self types
  • Explicitly implicit
    • Implicit conversions
    • Implicit parameters
    • Type classes
    • View bounds
    • Context bounds
    • Manifests
  • Internal DSLs

Google JavaScript Style Guide