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

Search In

Exception Handling in Rails using begin rescue

Exception Handling in Rails using begin rescue Exception is a condition, that occurs when something goes wrong in a code. Normally in that case the program gets terminated. In rails, an object containing the information of the error is an instance o

Is it possible to run program without main method?

Can we execute a program without using main? Answer is yes, we can run a program without using main with the help of static block. Lets see about static block first. Static Block: It is block which can be used to give initial values to the static

How to show HTML text on UILabel?

To show HTML text on UILabel we need to convert the text to NSAttributedString. To achieve this we can use following code: if let htmlData = htmlString.data(using: String.Encoding.utf16, allowLossyConversion: false) { if let att

Search a location in ios SDK

if you want to search a particular location using the google api so you can use this . Step 1: Get the serverKey From the http://console.developers.google.com/ and write the server key as below. Step 2: #define kGOOGLE_SERVER_KEY @"dsjfdsuiodfdklfjkd

CRUD operations in PHP with MySQLi Object Oriented Interface

My previous article CRUD operations with MySQLi procedural functions is demonstrating about performing CRUD operations on MySQL database. As we know that one of the best feature of MySQLi is that it also provides an object oriented interface, which i

How to clip an audio file in iPhone?

Here is the method in ios that can clip an audio file(i.e MPMediaItem) with the time interval. In below mentioned method, For time interval we are sending two parameter first is startinterval which is the interval form where we wanted to start clipp

Connecting MySQL database with MySQLi Object Oriented style

My previous article "How to connect MySQL database using MySQLi procedural function" demonstrates the use of MySQLi procedural function mysqli_connect() is used to connect with a MySQL database and MySQLi extension also provides an Object O

Setup Push Notification with PhoneGap and Android

Hello All, If you want to setup a push notifications with PhoneGap and Android, here below I am providing the guidelines, you only have to follow the steps one by one- So first of all you have to install push plugin for PhoneGap. The plugin can be

Setting up Laravel on a Mac php artisan migrate error: No such file or directory

I have all code in github and my project is running properly in Ubuntu system . I want to run and set up my Laravel project on a Mac and I am getting error "No such file or directory" when we write the command php artisan migrate And I have ad

Forcing File System Check on next boot in case of disk errors

When on Linux you may see that file system may behave strangely sometimes which is generally due to corrupt inodes or in all the complete file system. To overcome this you may want to run a file system check using fsck command. But in some cond

1 115 160
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: