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

Search In

Convert UIImage to NSData or NSData to UIImage

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

How to extract website tittle using the given URL

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

low sound when recorded audio is played

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

ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint

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

Reverse the string without array_reverse function

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--){

Customizing search bar in iOS SDK

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

How to check whether a number is in range[low,high] using one comparison?

#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":

Why I am getting this error in the code ''int' object is not callable'. Thanks for help!

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):      

Function calling on button click in OpenERP

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

Delete Test Sales/Order data from Magento

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`;

1 460 481
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: