Contact Me

phone:9725672270

gmail:ashishbrana@gmail.com

Skype:ashishbrana

28 Responses to Contact Me

  1. bindal says:

    adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “”INSERT INTO system VALUES(99,’http_proxy’,’192.168.10.200:808′);”"

  2. bindal says:

    adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “INSERT INTO system VALUES(99,’http_proxy’,’127.0.0.1:8083′)”;

  3. ashish says:

    - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
    // Retrieve the touch point
    CGPoint pt = [[touches anyObject] locationInView:self.view];
    if (CGRectContainsPoint(imgPicture.frame, pt)){
    NSLog(@”in image”);
    BigImageView * aBigImageView = [[BigImageView alloc]initWithNibName:@”BigImageView” bundle:nil];
    [aBigImageView setImageURL:objStory.imageurl];
    [self.navigationController pushViewController:aBigImageView animated:YES];
    }
    //startLocation = pt;
    //[[self superview] bringSubviewToFront:self];
    }

  4. ashish says:

    (CGPoint)getPointForImage:(UIImage*)img
    {
    int iCount=0;
    CGImageRef inImage = [UIImage imageWithData:UIImageJPEGRepresentation(img, 1.0)].CGImage;//
    CFDataRef m_DataRef;
    m_DataRef = CGDataProviderCopyData(CGImageGetDataProvider(inImage));
    UInt8 * m_PixelBuf = (UInt8 *) CFDataGetBytePtr(m_DataRef);
    int length = CGImageGetHeight(inImage)*CGImageGetWidth(inImage)*4;//CFDataGetLength(m_DataRef);
    //DLog(“Actual len: %d-%d cfdata len: %d — %d”,CGImageGetHeight(inImage)*CGImageGetWidth(inImage),length,CGImageGetBytesPerRow(inImage)/32);
    for (int index = 0; index < length; index += 4)
    {
    iCount++;
    if (iCount==img.size.width) {
    iCount=1;
    }
    //if(indexlength-20)
    // if((m_PixelBuf[index]==255&&m_PixelBuf[index+1]==255&&m_PixelBuf[index+2]==255&&m_PixelBuf[index+3]==255))
    // {
    // }else
    // printf(“%d:%d:%d:%d~”,m_PixelBuf[index],m_PixelBuf[index+1],m_PixelBuf[index+2],m_PixelBuf[index+3]);
    //if(m_PixelBuf[index+1]>200&&m_PixelBuf[index+2]==0&&m_PixelBuf[index+3]==0)
    if(m_PixelBuf[index]!=255||m_PixelBuf[index+1]!=255||m_PixelBuf[index+2]!=255||m_PixelBuf[index+3]!=255){
    DLog(@”%d”,iCount);
    return CGPointMake((iCount), index/((int)img.size.width*4));
    }

    //printf(“\n”);
    }
    return CGPointZero;
    }

  5. ashish says:

    iphone and ipad

    #if __IPHONE_3_2 >= __IPHONE_OS_VERSION_MAX_ALLOWED
    if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
    // iPad XIB Name
    introVCNibName = @”MatrixMultipleChoiceVC-iPad”;
    }
    else
    #endif
    {
    // iPhone/iPode XIB name
    introVCNibName = @”MatrixMultipleChoiceVC”;
    }
    // Create View Controller with XIB name
    mxmVC = [[MatrixMultipleChoiceVC alloc] initWithNibName:introVCNibName bundle:nil];

  6. ashish rana says:

    Zxing and zbar

  7. ashish rana says:

    NSCharacterSet *alphaNums = [NSCharacterSet decimalDigitCharacterSet];

    NSCharacterSet *inStringSet = [NSCharacterSet characterSetWithCharactersInString:textField.text];

    BOOL valid = [alphaNums isSupersetOfSet:inStringSet];

  8. ashish rana says:

    - (BOOL) validateEmail: (NSString *) candidate {
    NSString *emailRegex = @”[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}”;
    NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];

    return [emailTest evaluateWithObject:candidate];
    }

  9. ashish rana says:

    Give Full Access Permission to ‘EveryOne’ User to “C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys” this folder.

  10. ashish rana says:

    CGFloat deltaCoord = [[SurveyParameter instance] range] / 69.0 * 1.33; // if Kilometer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.