Wednesday, 29 February 2012
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+
http://techbase.kde.org/Development/Tutorials/Shell_Scripting_with_KDE_Dialogs
Development under Ubuntu Environment
http://developer.ubuntu.com/get-started/
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();
http://live.gnome.org/Seed
http://bash.cyberciti.biz/guide/Zenity:_Shell_Scripting_with_Gnome
http://developer.gnome.org/seed/3.2/
http://bash.cyberciti.biz/guide/Zenity:_Shell_Scripting_with_Gnome
http://developer.gnome.org/seed/3.2/
http://techbase.kde.org/Development/Tutorials/Shell_Scripting_with_KDE_Dialogs
Development under Ubuntu Environment
http://developer.ubuntu.com/get-started/
Installation Tips and Tricks when Installing Mongodb
Installation of Mongodb
Some of the steps that needs to be considered while installing MongoDb.
Step1:
Step2: ** Very Important
** 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/
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/
Wednesday, 15 February 2012
Thursday, 2 February 2012
How to install Apache Benchmarking tool - ab
ab(1)
Apache HTTP server benchmarking tool
sudo apt-get install apache2-utils
For example if you want to send 10000 request, type following command:
$ ab -n 10000 -c 2 http://www.example.com/
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:
$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="'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_profileFind the requirements (follow the instructions):
$ rvm requirements
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
2ality - technology, life: The power of the Asynchronous Module Definition: Update 2011-11-19: Bridging the module gap between Node.js and browsers This post explains Asynchronous Module Definition (AMD), a stan...
refer:
refer:
- http://www.slideshare.net/xMartin12/asynchronous-module-definition-amd
- http://addyosmani.com/writing-modular-js/
- http://requirejs.org/docs/whyamd.html#amd
- http://net.tutsplus.com/tutorials/javascript-ajax/next-generation-javascript-with-amd-and-requirejs-new-on-premium/
Subscribe to:
Posts (Atom)