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

Search In

How to get date of past days in java?

To get the date of the past day you can use the below code. You can pass any number of day for which you want to get date instead of 7, I'm getting date of past 7 days in the below example: /** * Get date before past 7 days * * @return string

Crop Image in iOS

To crop image in iOS use the following method. it will crop the image from the visible frame of the imageView. -(UIImage *)imageFromImageView:(UIImageView *)imageView rectFrame:(CGRect)frame{ UIGraphicsBeginImageContextWithOptions(frame.size, im

How to capture screenshot in Appium ?

There are many times when we run our testcases there might be the possibility that testcases may fail and when the testcase may fail then the screenshot of the screen should be captured. We should use the following code to capture the screenshot: Sy

array_fill_keys() in PHP

Hello Readers , The array_fill_keys() function fills an array with values, specifying keys. For Example we have an array array("a","b","c","d"); and we want to put "blue" in all values of a key. See the below example. <!DOCTYPE html> <htm

How to interchange values and keys of an array in PHP

Hello Readers , The array_flip() function exchanges all keys with their associated values in an array. Say we have array array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); and we want to interchange key and values of an array .

How to convert hexadecimal values to ASCII characters?

To convert hexadecimal values to ASCII characters we will use a PHP function hex2bin(). Syntax: hex2bin(string); In above line we have a passed a parameter string in the function which is basically the hexadecimal value that we need to convert t

HEX mysql function

HEX(str), HEX(N) A hexadecimal string is returened by HEX(), it is a representation of str for a string argument str, where each byte of each character in str is converted to two hexadecimal digits ans multibyte characters are converted more than t

How to create A Simple Server in python

In python simple server is Internet servers, we use the socket function available in socket module to create a socket object. After then a socket object is used to call other functions to setup a socket server. after this call bind(hostname, port) fu

Answer for this question in C/C++

Given an array of numbers I, write a program to find the sum of remaining in the array and display the new array. the first line specifies the no of elements in the array followed by the elements in the array in the second line. Sample input: 4 1 2

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 20 319
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: