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

Search In

Image Rotation by image magic

Creating image rotation using Image magic by command line. Some time image taken from iphone when uploaded on the website gets rotated .We can easily find that the image is rotated and can rotate is back by using the following code. $rotableImage

Using a dispatch semaphore with block

Blocks are a language-level feature, which allow us to create distinct segment of code. there are three way to recognize the semaphore. dispatch_semaphore_create => creates a semaphore with initial value
 dispatch_semaphore_signal => incremen

Getting the signal strength of WI-FI in percentage in android devices.

If you need to display WI-FI signal strength in percentage than you just have put this method getWifiStrengthPercentage in your utility class and call it whenever you need the Signal information. public static int getWifiStrengthPercentage(Context)

__weak and __unsafe_retained

__weak and __unsafe_unretained are the ownership qualifiers introduced by LLVM Compiler 3.0. By default all pointers are __strong under ARC which means that when an object is assigned to a pointer, it is retained for as long as that pointer refers t

Passing block as function argument in Objective C

Yes, we can pass the Block as argument in function. Here it is : let suppose i create a class Downloader First declare a Block in Downloader.h: typedef void (^DownloadComplete)(double,double,double,BOOL,id,id); then declare method as following i

How to add UIView above UIKeyBoard in Objective C

To add an UIView just above the UIKeyBoard write the below mentioned methods to achieve it. -(UIView *)getTextFieldAccessoryView{ UIButton *cancel = [UIButton buttonWithType:UIButtonTypeCustom]; [cancel setFrame:CGRectMake(0, self.view.bou

How to check if the email is valid in iOS sdk

Hi readers, Many apps require email validation in iOS. Here the function that can be used to check if email string is valid or not. It can be achieved by NSPredicate like following: -(BOOL)isValidEmail:(NSString *)checkString { long numberOfAtP

How to Disable Wordpress Updates

If you would like to disable word-press updates please follow the below process: Open your current selected Theme folder. Open under this folder function.php and put the below code at the end of this file //To Disable Theme Updates # WP Version 3.0

Archive a Snapshot in MongoDB

To archive a snapshot first you need to create a mongoDB snapshot, The same is discussed on post Creating a mongDB snapshot with LVM. Now mount the created snapshot and copy this to separated storage volume. Or you can create a block level copy of sn

Scaling of entities in ImpactJS

How to use Scale plugin in ImpactJS ? In the lib folder create a new folder named Plugins and put the "scale.js" plugin in to this folder. Include the plugin to the requires in any entity. .requires('Plugins.scale') Now if we want to resize a bu

1 504 596
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: