Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to pass array argument to bash file from php

I was facing this issue of passing the array from php to the bash file. To pass array to bash file write the following lines of code. Php Code: $array= $countries_array; // Countries array from database shell_exec('sh get_countries.sh '.join(' ',$

Cakephp: How to cake bake all in Ubuntu 14.04?

Cakephp's bake console is the fastest way to create models, view and controller. In order to create it first you need to create the table. In this case I am creating Users table:   CREATE TABLE users (     id INT UNSIGNED AU

How can you get all the combinations of given string in php?

We can generate all possible combinations of given string. Here I made a function get_string_combinations($str), this function will accept string as a parameter and will give you all possible combinations of that string. In this function, I have conv

How to use mocha for unit testing in node?

mocha is a javascript test framework. It works well for both node.js and browser. It makes asynchronous testing simple and easy. Mocha test run serially. mocha is open source. Installing mocha globally: npm install -g mocha With the above install

How to get the current coordinates of the element

If we want to find the current coordinates of the element then we can easily do that with the help of jQuery. jQuery have offset() method which makes us to find the coordinates of the element which you want to find in respect to the document. 

How to override create method

Create: - Create method use for creating new record with given values of the record. - Create method return created newly record with given values. Syntax: create(cr, uid, values, context=None) Ex: Here method override for version 7.0:- def c

How to get IP address of remote machine in PHP?

Hello Reader's if you want to make the tracking system of your website, then the best way is to get the records of the IP address from user. Getting the IP of remote of PC can done on various ways. PHP let you do this by using  $_S

How to symlink a file in Ubuntu ?

First of all let us know what is symlink. Symlink creates a symbolic link to the existing target with the specified name link. In PHP we passed Parameters in the following way: target: Target of the link link: The link name. I want to make a symb

Create a Singleton class in swift

Hi, To Create a Singleton class in swift follow steps below: 1- Add a Cocoa Class file subclass of NSObject named it as MySingleton and now write down the code as .   import UIKit class MySingleton: NSObject { static let sharedInstance

How to Convert a Python Code to C++ Programming language

I want to stream .dat files from a file i created in python, i wrote the python code and it worked great but i can't write it in C++, i need help to write that code in C++, Thank you.   The python code is as following :   for ix in

1 11 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: