Thursday 16 February 2012

Seed Programming - Linux Shell Based Development using Javscript

http://en.wikipedia.org/wiki/Seed_(programming)

http://live.gnome.org/Seed
What is seed Programming
sudo apt-get install seed

A program using GTK+

This code shows an empty window named "Example".
#!/usr/bin/env seed
 
Gtk = imports.gi.Gtk;
Gtk.init(Seed.argv);
 
var window = new Gtk.Window({title: "Example"});
 
window.signal.hide.connect(Gtk.main_quit);
window.show_all();
 
Gtk.main();

Installation Tips and Tricks when Installing Mongodb

Installation of Mongodb 


Some of the steps that needs to be considered while installing MongoDb.


Step1:

64-bit Linux binaries
$ # replace "2.0.2" in the url below with the version you want
$ curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz > mongo.tgz
$ tar xzf mongo.tgz



Step2: ** Very Important

Create a data directory

By default MongoDB will store data in /data/db, but it won't automatically create that directory. To create it, do:
$ sudo mkdir -p /data/db/
$ sudo chown `id -u` /data/db
You can also tell MongoDB to use a different data directory, with the --dbpath option.

** Please note without Step 2; you can not run mongod under Linux or ubuntu environment.


Its very essential to create the data/db, since the current version of mongodb does'nt create a database directory.


if your are home directory


$ cd /usr/local 
$ sudo ln -s /home/username/mongo mongodb


$ vim .bashrc 
export PATH="$PATH":/usr/local/mongodb/bin


$source .bashrc


Execute the mongodb server 
$mongod








Run mongodb server with REST enabled.

$mongod --rest 


Access Web Admin Interface:
http://localhost:28017/



How memcached works

Wednesday 1 February 2012

How to delete recently used files under ubuntu

Under your ububtu home directory  type
$locate recently


/home/username/.icedtea/cache/recently_used
/home/username/.local/share/recently-used.xbel
$vim /home/username/.local/share/recently-used.xbel

search  the string and delete the  contained <bookmark> tag  

means start and end tag.
<bookmark > ... </bookmark>


ex:


<bookmark href="file:///home/username/eclipses" added="2012-01-19T07:4
4:34Z" modified="2012-01-19T07:44:34Z" visited="2012-01-19T07:44:35Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="inode/directory"/>
        <bookmark:applications>
          <bookmark:application name="File Roller" exec="&apos;file-roller %u&ap
os;" modified="2012-01-19T07:44:34Z" count="1"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>




How to install RVM on Ubuntu


Install RVM:
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Reload your shell environment:
$ source ~/.bash_profile
Find the requirements (follow the instructions):
$ rvm requirements

Javascript Conference Videos

Find Alternative Applications ex. for rsync

Typical Pixmap Error during Installation dartLang


Unable to locate theme engine in module_path: "pixmap",
(DartEditor:9771): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(DartEditor:9771): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(DartEditor:9771): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",


sudo apt-get install gtk2-engines-pixbuf

The power of the Asynchronous Module Definition