
Search In
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
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
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
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
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
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
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
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
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
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
