Tuesday, 31 January 2012
How to add Repository to Ubuntu?
Here is the example of how to add a repository to ubuntu machine using apt-get;
sudo add-apt-repository ppa:jerome-etienne/neoip sudo apt-get update sudo apt-get install phantomjs
Maven for Javascript and Scala
Maven for Scala:
http://www.scala-lang.org/node/347
http://scala-tools.org/mvnsites/maven-scala-plugin/
Maven For Javascript:
http://mojo.codehaus.org/javascript-maven-tools/
http://blog.akquinet.de/2011/02/11/mavenizing-javascript-projects/
Continuous Integration for JavaScript
http://eriwen.com/tools/continuous-integration-for-javascript/
Useful Tools:
http://ofilabs.com/eightpack/download/
http://www.scala-lang.org/node/347
http://scala-tools.org/mvnsites/maven-scala-plugin/
Maven For Javascript:
http://mojo.codehaus.org/javascript-maven-tools/
http://blog.akquinet.de/2011/02/11/mavenizing-javascript-projects/
Continuous Integration for JavaScript
http://eriwen.com/tools/continuous-integration-for-javascript/
Useful Tools:
http://ofilabs.com/eightpack/download/
Friday, 27 January 2012
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
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
Monday, 23 January 2012
Chrome Hidden Pages - chrome://about
http://blog.bitbytebit.co.uk/6-chrome-aboutconfig-alternatives-hidden-pages/
- about:about
- about:appcache-internals
- about:blob-internals
- about:view-http-cache
- about:credits
- about:conflicts
- about:dns
- about:flags
- about:gpu
- about:histograms
- about:memory
- about:net-internals
- about:plugins
- about:stats
- about:sync-internals
- about:tcmalloc
- about:terms
- about:version
Sunday, 22 January 2012
Friday, 20 January 2012
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 create Multi User Conference under Ejabberd
The ejabberd mod_muc source is under
Nothing looks wrong with your example code, you may also need to call
I would recommend using
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.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:
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
Wednesday, 18 January 2012
Friday, 13 January 2012
Thursday, 12 January 2012
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
Monday, 9 January 2012
Oauth using Javascript
http://derek.io/blog/2010/how-to-secure-oauth-in-javascript/
http://stackoverflow.com/questions/1221371/application-that-uses-oauth-and-javascript
Learn how to create YQL openTable
http://developer.yahoo.com/yql/guide/yql-opentables-chapter.html
Refer:
https://github.com/soundcloud/SoundCloud-API-jQuery-plugin
oAuth PlayGround
http://googlecodesamples.com/oauth_playground/
https://code.google.com/oauthplayground/
Links:
http://kentbrewster.com/oauth-baby-steps/
http://blog.paulisageek.com/
http://stackoverflow.com/questions/1221371/application-that-uses-oauth-and-javascript
Oauth Authentication |
Learn how to create YQL openTable
http://developer.yahoo.com/yql/guide/yql-opentables-chapter.html
Refer:
https://github.com/soundcloud/SoundCloud-API-jQuery-plugin
oAuth PlayGround
http://googlecodesamples.com/oauth_playground/
https://code.google.com/oauthplayground/
Links:
http://kentbrewster.com/oauth-baby-steps/
http://blog.paulisageek.com/
Sunday, 8 January 2012
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
http://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
ARP cache poisoning, DNS spoofing, HTTP session hijacking, passing the has
Ubuntu : http://manpages.ubuntu.com/manpages/lucid/man8/arpon.8.html
http://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
http://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
Ubunhttp://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
ARP cache poisoning, DNS spoofing, HTTP session hijacking, passing the has
Ubuntu : http://manpages.ubuntu.com/manpages/lucid/man8/arpon.8.html
http://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
http://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
Ubunhttp://windowsecurity.com/articles/Understanding-Man-in-the-Middle-Attacks-ARP-Part1.html
Wednesday, 4 January 2012
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
Tuesday, 3 January 2012
Monday, 2 January 2012
Sunday, 1 January 2012
How to build Simple Android Applications
http://www.vogella.de/articles/Android/article.html
http://developer.android.com/resources/tutorials/hello-world.html
http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/
http://marakana.com/forums/android/general/240.html
http://developer.android.com/guide/topics/ui/declaring-layout.html
http://stackoverflow.com/questions/2992754/ui-design-tips-and-tutorials-for-android
http://mobile.tutsplus.com/tutorials/android/android-sdk_fragments/
http://www.androiduipatterns.com/2011/05/anti-pattern-tutorial-screen.html
Subscribe to:
Posts (Atom)