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

Search In

How to make Toast in android ?

Here I have created Toast function in android. Toast function can be used to display information or message for the very short period of time. In the below code I have explain how to make Toast function. lvList.setOnItemClickListener(new AdapterVie

Save data to Parse DB table in iOS app

To save data in parse DB table, create one PFObject and write the information that you want to save to table. For example - I have a table name "Post" with column names : title, message, postTime. Lets save one record to this table. PFObject *newObj

Laravel 5.0 Getting Old Values In the form

Many times we need to show our old values in a form after an error or validation stops our form from submitting. Laravel has a very nice way of retaining old values and populating it back into our form. I myself used it in a drop down, where I want

Variable Number of Parameters

If you declare a method that takes two parameters, on This method call , you need to pass two parameters along with it. But, Ruby facilitates to declare methods that can work with a variable number of parameters. Example def evon (*t) puts "

How to disable user interaction of an iOS app

In iOS application there are only few ways to disable user interaction for the whole screen or UI. Some developers use property (User Interaction Enabled) for a specific control, some uses MBProgressHud class by displaying spinner or some uses user i

How to create zip folder on server with linux terminal or putty

If you are looking to create zip folder on your server with terminal or putty, please follow the step below: 1) Get connected with server ssh -i "/pemfilepath/my_server.pem" username@serverIP 2) Replace your pem file path and username with your s

Caputre Screen Shot in IPhone

if you want to capture the screen shot of the screen in swift use the code below. this function will return an image that can be used as background image of a view The size of the captured image is same as the size of device. func caputreScreenShot

Hiding all the URL in a text except a particular one

There was a requirement of hiding all the wesite URL in a message except for a particular one. While looking for a solution I came across a particular solution which I think might help other . params[:meal_note] = params[:meal_note].gsub(/(?!\S+me

Using reject in ruby to delete elements selectively from an array

1> To delete an element from an array, use reject as shown below: arr = ['a','b','c','d','e'] arr.reject! { |i| i.match('d')} Result :=> ["a", "b", "c", "e"] 2> To delete particular keys from the array whose elements are also arrays,

How to check user current notification setting in objective C

hello friends , You can check user's current notification setting by following line of codes. // this method is deprecated in iOS 8.0 UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (type ==

1 139 720
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: