
Search In
NodeSource has launched N|Solid 2.0 as its leading product after the success of Node.JS. N|solid is a leading product of Node.JS which is designed to deliver a stage for the exclusive needs of various industries in order to achieve reliable and secur
Please take a look at the code below. We've got a class FightService, which implements a logic of a fight between two heroes. After the fight one of the hero may lose some health points.
Please implement a test for FightService::fight()
Android give facility to access the Wifi Network in your Application. You can access nearly every information of the connection.
Android have WifiManager API to handle all Wifi Connectivity.You can use it like this:
WifiManager wifiManagerObject;
In any project routing plays an important role.In laravel 4.x we will define our routes in routes.php which is
in app/routes.php. In laravel 4.x the basic routes consist of a URL and a clousure callback.
Example: Basic Get Route
Route::get('/', fu
Unity built in physics engine provide components that handle physical simulation.
Rigidbody2D is one of the main component among the unity physics engine that allow
sprite to be moved in a physically convincing way by applying forces from the script
Hi friends,
For Implicit intent, we don’t need to declare the name of the class but we declare the action that we are doing to perform.
Like here we make a call
Uri callUri = Uri.parse("tel:100");
Intent intent = new Intent(Intent.ACTION_DIAL, c
There are many cases where one need to extract frames from video irrespective of its length. With the given function one can retrieve the desired number of frames per second.
ArrayList<Bitmap> frameList;
String absolutePath;
If you need to change the color or appearance of the Status Bar of iOS then follow simple steps.
in your code file where you had created or initialized UINavigationController just write few line of code there.
Find similar line as mentioned below i
If you are looking to copy the text from android widgets to clipboard, you can use the below code
TextView contentTextBox=(TextView) findViewById(R.id.tv_content); //get textview from which you want to copy the content
String textToCopy = contentT
If you are looking to capture a video for particular time interval using default camera, then follow the below code to achieve the same.
Record video from camera for 60 seconds
private void captureVideoFromCamera(){
Intent intent = new Intent(
