
Search In
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
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
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
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 "
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
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
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
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
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,
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 ==
