dev-tools phalcon

Standard

Sample command:

$ phalcon commands

Phalcon DevTools (1.2.3)

Available commands:
  commands (alias of: list, enumerate)
  controller (alias of: create-controller)
  model (alias of: create-model)
  all-models (alias of: create-all-models)
  project (alias of: create-project)
  scaffold
  migration
  webtools
$ phalcon create-project store

Continue reading

Drop MongoDb

Standard

The drop() Method

MongoDB’s db.collection.drop() is used to drop a collection from the database.

SYNTAX:

Basic syntax of drop() command is as follows

db.COLLECTION_NAME.drop()

EXAMPLE:

Continue reading

Create Collactions

Standard

definisi

db.createCollection (nama, pilihan)
Menciptakan koleksi baru secara eksplisit.

Karena MongoDB menciptakan koleksi secara implisit ketika koleksi pertama dirujuk dalam perintah, metode ini digunakan terutama untuk menciptakan koleksi capped baru. Ini juga digunakan untuk pra-mengalokasikan ruang untuk koleksi biasa.

The db.createCollection () metode memiliki bentuk prototipe berikut:

Continue reading

Drop Database MongoDb

Standard

The dropDatabase() Method

MongoDB db.dropDatabase() command is used to drop a existing database.

SYNTAX:

Basic syntax of dropDatabase() command is as follows:

db.dropDatabase()

This will delete the selected database. If you have not selected any database, then it will delete default ‘test’ database

EXAMPLE:

Continue reading

Create Database MongoDb

Standard

The use Command

MongoDB use DATABASE_NAME is used to create database. The command will create a new database, if it doesn’t exist otherwise it will return the existing database.

SYNTAX:

Basic syntax of use DATABASE statement is as follows:

use DATABASE_NAME

EXAMPLE:

Continue reading

Install MongoDb di Ubuntu

Standard

Install MongoDB

1
Import the public key used by the package management system.

The Ubuntu package management tools (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import the MongoDB public GPG Key:

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10

Create a list file for MongoDB:

Continue reading

Grand Permision to group www-data

Standard
  1. Add your user to www-data group:

CREDIT Granting write permissions to www-data group

You want to call usermod on your user. So that would be:

sudo usermod -aG www-data yourUserName

** Assuming www-data group exists

  1. Check your user is in www-data group:groups yourUserName

You should get something like:

youUserName : youUserGroupName www-data

** youUserGroupName is usually similar to you user name

Continue reading

Install Active MQ

Standard

Apache ActiveMQ is the powerful, open source messaging and Integration Patterns server. Its support many Cross Language Clients and Protocols, from Java, C, C++, C#, Ruby, Perl, Python, PHP. Ajax to support web streaming support to web browsers using pure DHTML

This article will guide you to Install Apache ActiveMQ 5.8.0 on Centos, Redhat and Fedora.

Step 1: Install JAVA

First we need to check if JAVA is installed on our system or not. Use following command to check if you have java installed already on your system.

Continue reading

Installing Java 7 on Ubuntu

Standard
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

It’ll keep your java 7 installation up to date.

To automatically set up the Java 7 environment variables JAVA_HOME and PATH:

 

sudo apt-get install oracle-java7-set-default