Latest stories

Weird movment of character in Unity3D

W

Question:I imported a simple 3d model from which I construtected a terain. For a test I use box(mesh), but movment is really weird like that models would be realy bumpy. Because of that I also tryed to switch my models with unity meshes but it’s same   Answer:In ur game select cube in that u have added rigidbody. In Rigidbody select the constraints in that u will see freeze rotation...

CActive Object in Symbian C++

C

Active Object provides a support for asynchronous process. let’s see example of Timer using CActive :- Active Object can be implemented by deriving from the CActive class void CTestTimerAO::RunL()//RunL-The handler function to be invoked by the active scheduler when the request completes { iTimeString = _L(“”); iMs = iMs + 1; TUint64 minute; TUint64 second; TUint64 millisecond;...

How to dial phone number programatically in iPhone / xCode?

H

UIDevice *device = [UIDevice currentDevice]; if ([[device model] isEqualToString:@”iPhone”] ) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@”tel:130-032-2837″]]]; } else { UIAlertView *Notpermitted=[[UIAlertView alloc] initWithTitle:@”Alert” message:@”Your device doesn’t support this feature.”...

“how to find Image size for a url in iPhone”

&

float size =  [UIImageJPEGRepresentation(Image,0.9) length]/1024.0/1024.0;
//in above line  Image is your image name
//NSLog(@”File Size : %f”, size);
 
if (size == 0)
{
UIImage *imagenew = [UIImage imageNamed”img-not-available.jpg”];
[ImageButton setImage:imagenew forState:UIControlStateNormal];
}
else
[ImageButton setImage:Image forState:UIControlStateNormal];
 

Charset in php

C

For Example to support Chinese Language web site <meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ /> //Inserting & Retrieving data from database mysql_query (“set character_set_results=’gb2312′”);  or mysql_set_charset(“gb2312”); or mysql_query(“SET NAMES gb2312”); Please follow below link you...

Category