ArchiveDecember 2014

Remove index.php from codeigniter framework

R

Hi all, Today I am going to show you, how to remove the index.php part from your codeigniter URL. There are many ways to do it, but based on my previous experience, I got it is the best way to do so. To do so, create a .htaccess file in your directory and copy the following code in your created file.   RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d...

How to combine two images?

H

UIImageView *certImgView; – (IBAction)combineimages:(id)sender { UIImage *combinedImg=[self combineTwoImagesFirst:self.certImgView.image andSecond:[UIImage imageNamed:@”1.jpeg”]]; certImgView.image=combinedImg; } -(UIImage *)combineTwoImagesFirst:(UIImage *)cardImg andSecond:(UIImage *)faceImg { UIImage *bottomImage = faceImg; //background image UIImage *image       = cardImg;...

Mixed DML Exception in salesforce

M

Hi All, Many times we face this “Mixed DML Exception” in salesforce error while updating records. This error means you are updating setup and non-setup objects simultaneously. Here you will get details about all setup objects which cannot be inserted/updated with non-setup objects. How can you avoid this? To Avoid this type of error you use @future methods. Since future methods runs...

Rotate the Activity.

R

To rotate Activity around it’s X-axis use Activity Switcher class. For Animation Out: ActivitySwitcher.animationOut(findViewById(R.id.rootLayoutIdOfActivity), getWindowManager(), new ActivitySwitcher.AnimationFinishedListener() { @Override public void onAnimationFinished() { startActivity(intent); } });   For Animation In: ActivitySwitcher.animationIn(findViewById(R.id...

How to install laravel on windows wamp server

H

Following are the steps to install laravel on windows local wampserver Steps Before installing laravel please check following services are on or not ? a.Enable openssl b.Click on wamp icon->Apache->Apache Modules and enable ssl_module c.check php_sockets is enable wamp icon->PHP->Extension->php_socket Restart all services. 1.For installing laravel on windows PHP >= 5.4  required...

Communication between Bluetooth devices

C

I had used this communication to get the surrounding temperature, but we can also use this to develop chat room which will be offline. BluetoothSPP bt; //Bluetooth Socket bt = new BluetoothSPP(this); //initilisation // check weather Bluetooth is on/off   if (!bt.isBluetoothEnabled()) { Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(intent...

Easy loading image in UIImageView.

E

Replace – SelectedThemesController— (replace your class name) [SelectedThemesController processImageDataWithURLString:imgUrl andBlock:^(NSData *imageData) { if (self.view.window) { UIImage *image = [UIImage imageWithData:imageData]; if (!image) //not found show default image { pofferimg.image=[UIImage imageNamed:@”11_240X240.png”]; } else //found { NSArray *subviewArray =...

Integrating Force.com with Microsoft .NET

I

Methodologies and Delivery Platforms As with other code bases written in .NET, an integrated Force.com application can be tailored to run on any .NET support platform. The Microsoft .NET Framework is included with all major Microsoft operating systems, desktop and server, as well as Microsoft’s 3 major application platforms: SQL Server, Internet Information Services, and SharePoint Services...

Change color of image to transparent

C

CGImageRef rawImageRef = image.CGImage; const double colorMasking[6] = { 0, 0, 0, 0, 0, 0 }; UIGraphicsBeginImageContext(image.size);   CGImageRef maskedImageRef =  CGImageCreateWithMaskingColors(rawImageRef, colorMasking); { CGContextTranslateCTM(UIGraphicsGetCurrentContext(), 0.0, image.size.height); CGContextScaleCTM(UIGraphicsGetCurrentContext(), 1.0, -1.0); }  ...

Merge two images by retaining opacity of Image

M

UIGraphicsBeginImageContext(topImage.size);   CGContextRef context = UIGraphicsGetCurrentContext(); CGContextTranslateCTM(context, 0, topImage.size.height); CGContextScaleCTM(context, 1.0, -1.0); CGRect rect = CGRectMake(0, 0, topImage.size.width, topImage.size.height); // draw black background to preserve color of transparent pixels CGContextSetBlendMode(context, kCGBlendModeNormal);...

Category