
Search In
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
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
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
This error generally comes when we want to delete child table row. To solve this problem we have to disable the
foreign key checks.
SET FOREIGN_KEY_CHECKS=0;
Now you can fire your query.
DELETE FROM TABLE WHERE ID = 'Somthing';
You can enable forei
Welcome to FindNerd. Today we are going to tell the way how we can reverse a string without using array_reverse function in php. Please have a look.
$string = "FINDNERD";
$count=array_sum(count_chars($string));
for($i=$count -1 ;$i>=0;$i--){
Hi Readers,
Customizing search bar can be easily done with UISearchBar. All you need to check view hierarchy of search bar subviews for that as with latest iOS SDK hierarchy can get changed. Customizing can be done by changing these views color, fon
#include <iostream>
using namespace std;
// Returns true if x is in range [low..high], else false
bool inRange(int low, int high, int x)
{
return ((x-high)*(x-low) <= 0);
}
int main()
{
inRange(10, 100, 25)? cout << "Yes\n":
Here is my Code:
class Account:
  def __init__(self, owner, balance, deposit, withdraw):
    self.owner=owner
    self.balance=balance
    self.deposit=deposit
    self.withdraw=withdraw
    Â
  def __str__(self):
  Â
Adding a button on an OpenERP view is very easy and calling a function on it too. For example I created a function to add cartage amount on the sales order, I created a field to add cartage amount on it and then on button click it will be added to th
To **delete the test sales/Order data from magento** run the below queries in your magento database --
SET FOREIGN_KEY_CHECKS=0;
##############################
# SALES RELATED TABLES
##############################
TRUNCATE `sales_flat_creditmemo`;
