How USB drives formatted in El Capitan to work in Windows 10

How USB drives formatted in El Capitan to work in Windows 10


El Capitan (Mac OS 10.11) rejiggered the stock Disk Utility programme to be more visually pleasing.

However, form no longer meets function because USB drives formatted in El Capitan may not be recognised in Windows 10 even if you use the exFAT file format.

I discovered this when trying to create thumb drives that worked across both operating systems. I had no trouble doing this in previous versions of Mac OS, only in El Capitan.

That’s worked for me.

  1. If open, quit Disk Utility
  2. Start the Terminal utility
  3. Run the following Command: defaults write advanced-image-options 1
  4. Relaunch Disk Utility
  5. Format your USB device with MBR Partition (Master Boot Record) and exFAT file system

The command in step 3 seems to activate a function that was previously on by default in previous versions. With Disk Utility put in this state, exFAT-formatted USB devices will now work with OSX and Windows.

how to convert string to float in ios

your_float = [your_string floatValue];

NSLog(@"float value is: %f", your_float);

Get the Client IP-Address using PHP

Get the Client IP-Address using PHP

if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
} else {

Import Excel Data into MySQL in 5 Easy Steps

This is probably nothing new to many, but I spent quite some time to figure it out so I thought I’d post my notes on it.

To import data from Excel (or any other program that can produce a text file) is very simple using the LOAD DATA command from the MySQL Command prompt.

Save your Excel data as a csv file (In Excel 2007 using Save As)
Check the saved file using a text editor such as Notepad to see what it actually looks like, i.e. what delimiter was used etc.
Start the MySQL Command Prompt (I’m lazy so I usually do this from the MySQL Query Browser – Tools – MySQL Command Line Client to avoid having to enter username and password etc.)
Enter this command:
LOAD DATA LOCAL INFILE 'C:\\temp\\yourfile.csv' INTO TABLE database.table FIELDS TERMINATED BY ';' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' (field1, field2);


Very quick and simple once you know it 🙂

Some notes from my own import – may not apply to you if you run a different language version, MySQL version, Excel version etc…

TERMINATED BY – this is why I included step 2. I thought a csv would default to comma separated but at least in my case semicolon was the deafult
ENCLOSED BY – my data was not enclosed by anything so I left this as empty string ”
LINES TERMINATED BY – at first I tried with only ‘\n’ but had to add the ‘\r’ to get rid of a carriage return character being imported into the database
Also make sure that if you do not import into the primary key field/column that it has auto increment on, otherwhise only the first row will be imported

[Update: I had some trouble getting double quotation marks etc when exporting some Excel data and found a few old but useful Excel export macros in VBA]

[Update: To change the list separator in Excel:
1. First search your Excel file for the character you plan to use so it does not exist somewhere in your data.
2. Go into Windows Control Panel + Regional and Language + Formats Tab click Additional Settings + List separator (Windows 7)]

POD & cocoapods Error in OSX Yosemite – Resolved

Following are the tutorial that will resolve POD & cocoapods issue in OSX Yosemite step by step. Follow eight (8) step by step tutorial it will work 100%.

Step # 1:

Just resolve the error following those steps:

  1. Open Xcode 6
  2. Open Preferences
  3. Click the Locations tab
  4. Change the Command Line Tools version to last Xcode 6.x
  5. Uninstall all Cocoapods (you can not remove executables)

Step  # 2:

Open Terminal

Step # 3:

sudo gem uninstall cocoapods

Step # 4:
If xcode is not installed installed xcodeproject then run the following command in terminal

sudo gem install cocoapods

Step # 5:

pod setup

Step # 6:
goto project directory


Step # 7:

POD init

Step # 7:
Sample POD File

source ''
platform :ios, '8.0'

pod 'AFNetworking'
pod 'Facebook-iOS-SDK'
pod 'MD5Digest'
pod 'SDWebImage'
pod 'SDWebImage-ProgressView'
pod 'SSKeychain'
pod 'SVProgressHUD'

Step # 8:

pod install

Please share your opinion and experiences. Thanks for visiting. Follow me over twitter:

Get the Best iOS Image Quality and smallest in size

Get the Best iOS Image Quality and smallest in size

Using Image Alpha Lossy on as many images as you can; because it greatly reduces there size and image quality.

If you want to optimize all the images then goto Image Optim, It will remove all the invisible junk and re-compress the data.

ImageOptim is a free app that makes images take up less disk space and load faster.

Following are the methods which is do to get the iOS best Image Quality and Smallest in use:

Step # 1:
Download Image Option.

Step # 2:
Simple drag and drop images or image folder into the ImageOptim Window. They will optimize in place.

Step # 3:
Disable Xcode Conversion:

Xcode for iOS by default converts all PNG images to a non-standard iOS-specific PNG derivative. This format saves iOS devices a trivial conversion step during loading, because it uses premultiplied BGRA instead of RGBA color space. It doesn’t affect rendering speed at all.

If size of assets or loading time is your priority (e.g. you want quicker application startup time and quicker AppStore download), disable Xcode’s conversion:

xcode no-compress

Reset Auto Increment in mysql

How to reset auto increment column in mysql

Simple Query:


Redirecting in PHP

$url = "";
header('Location: '.$url);


die(); / exit(); is must

If you redirect but you don’t die() / exit() the code is always executed and displayed.

Its soo easy enjoy !!

How to secure UITextField

How to secure UITextField which is mostly used in password field.

- (void) initiateLoginView{

UIView *loginView = [[UIView alloc]init];

//Username TextField
UITextField *username = [[UITextField alloc]init];
[username setTag:1];
[username setDelegate:self];
[username setKeyboardType:UIKeyboardTypeAlphabet];
[username setReturnKeyType:UIReturnKeyNext];
[username setPlaceholder:@"Please enter username"];

//Password Textfield
UITextField *password = [[UITextField alloc]init];
[password setTag:2];
[password setDelegate:self];
[password setKeyboardType:UIKeyboardTypeAlphabet];
[password setReturnKeyType:UIReturnKeyNext];
[password setPlaceholder:@"Please enter password"];
[password setSecureTextEntry:YES];

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {

if ([[UIScreen mainScreen] bounds].size.height == 568) {
// For iPhone 5 Frame
[loginView setFrame:CGRectMake(0.0, 0.0, 640.0, 1136.0)];
// Here you can set the username and password frame as well.

// for iPhone 4 and later on...
[loginView setFrame:CGRectMake(0.0, 0.0, 640.0, 960.0)];
// Here you can set the username and password frame as well.


//for iPad
[loginView setFrame:CGRectMake(0.0, 0.0, 1024.0, 768.0)];
// Here you can set the username and password frame as well.

[loginView addSubview:username];
[loginView addSubview:password];
[self.view addSubview:loginView];


Goto next in UITextField shouldreturn


Welcome back !!

If you have multiple UITextField and you have set the property of every UITextField

[self.myFirstTextField setReturnKeyType:UIReturnKeyNext];

[self.myFirstTextField setDelegate:self];

[self.myFirstTextField setTag: 1];

one more thing don’t forget to add those UITextField Delegate as well which is also mentioned on the above code.

I did my custom code to solve this problem if you know the number of UITextField

here is my code i have done this by UITextField tags which is also set in the above code Suppose i have 4 UITextField which i do this in the below mentioned code I want to hide the UIKeyboard when the fourthtextfield is done:

- (BOOL)textFieldShouldReturn:(UITextField *)textField{


switch (textField.tag) {
case 1:
[self.myFirstTextField becomeFirstResponder];
case 2:
[self.mySecondTextField becomeFirstResponder];
case 3:
[self.myThirdTextField becomeFirstResponder];
case 4:
[self.myFourthTextField resignFirstResponder];
[textField resignFirstResponder];
return true;

you can also do this by selecting unlimited textfield or do this by dynamic as well by selecting subclass as well.. If you want let me know i will post it.

If you need any problem or get some problem let me ask by write on the comments.