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

Search In

Structures in C++

Structures in C++ is a collection of dissimilar data types .Structures is denoted by struct keyword .In structures we can access different data in a single block.It is usually used to keep the track of different kinds of records in a single block.Now

How to get time intervals in hours between start time and end time in objective C

If we want to get the time intervals between the start time and end time then use the following code- it will return the array of hours according to the start time and end time. + (NSMutableArray *)getTimeIntervals:(NSString *)startTime andEndTime

CHAR(N,....) string function MySQL

If the length of results is greater then the value if the max_allowed_packet system variable then the String-valued functions will return NULL The first position of a string (for those functions which operate on string), is numbered 1. Non-integer

JQuery Simple Scroll To Top

In this tutorial, you will learn that how to add scroll to top in any of the page. As we see in many websites the scroll top function. Its very helpful for users to go to the top of the page automatically without scrolling. It appears when the person

How to convert query string to json object in javascript?

You need to parse an URL and return all the parameters from the URL, you can use the below javascript function:- var getURLParameters = function(url) { var result = {}; var searchIndex = url.indexOf("?"); if (searchIndex == -1 ) re

Restore a Snapshot

As explained on post how to archive a snapshot, Now to restore a snapshot from created archive, use the following sequence of commands: lvcreate --size 1G --name mdb-new vg0 gzip -d -c snap_db-01.gz | dd of=/dev/vg0/mdb-new mount /dev/vg0/mdb-new /s

puts vs p in rails

While writing the code, we often need to print a particular object and see the result. In rails we use puts and p for that. Both will display the result but there is a difference between them.puts prints the result by applying to_s on an object where

Convert UIImage to NSData or NSData to UIImage

Hi all , To convert UIImage to NSData Objective C NSData *data = UIImagePNGRepresentation(self.MyImageView.image); Swift let imageData: NSData = UIImagePNGRepresentation(self.MyImageView.image) To convert NSData to UIImage Objective C UIImag

How to extract website tittle using the given URL

Hello Reader's! If you having a set of given url's you need just the title of them, then you can use the PHP code below to extract title <?php function TitleURL($YourURL){ $str = file_get_contents($YourURL); if(strlen($str)>0){ $str

low sound when recorded audio is played

Sometimes we record audio from AudioRecorder and when we play the same audio, it runs with a quite low volume even if volume is set to 1.0 i.e maximum. Use below lines of code to avoid such issues: AVAudioSession* audioSession = [AVAudioSession shar

1 459 481
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: