[Solved] My is bigger than my [closed]

Is this similar to what you are trying to accomplish? http://jsfiddle.net/ha7fK/1/ I changed the width to 300px for the demo at jsfiddle. Just change 300px to 900px HTML <body> <div class=”width900″> Width of 900px </div> <div class=”widthfull”> <div class=”text”> Width of 100% </div> </div> <div class=”width900″> Width of 900px </div> </body>​ CSS body {width:100%;} .width900 … Read more

[Solved] Calling a number in an array

you need to write service to check if current call is ended or not. after disconnection of one call you can dial next number from your array in onRecieve method of BroadcastReceiver. code to check call is disconnected or not. switch(state) { case TelephonyManager.CALL_STATE_IDLE: Log.d(“Call”,”Outgoing Call finished”); break; case TelephonyManager.CALL_STATE_OFFHOOK: Log.d(“Call”,”Outgoing Call Starting”); break; } … Read more

[Solved] get file content from url, then extract keywords [closed]

See this link. Don’t expect people to do your homework, study that code a little bit and you will find answer in less then 10 minutes. Basically when you decode json you will get object or array depending on what you want. So if you do this $data=json_decode($str);//$str is your json string foreach($data->items as $item){ … Read more

[Solved] Adding content of file 1 to file 2 in C [closed]

Open results[2] in append mode: FILE *fp2; fp2 = fopen(results[2], “a”); // a is for append Then you can just loop through the first file and dump to the second one.. something like: char line[100] = {0}; while (fgets(line,sizeof(line),fp) != NULL) fputs(line, fp2); EDIT: Here’s a full compiling program that takes the contents of “test.txt” … Read more

[Solved] C# Dynamic IF Else Statment [closed]

I’m going to guess you are asking how to test multiple items in a collection of unknown size. If so: bool isMatch = true; string valueToCompare = “some value”; for( int i = 0; i < allrowcol.Length; i++ ){ if( allrowcol[i] != valueToCompare ){ isMatch = false; break; } } if( isMatch ){ // do … Read more

[Solved] A knowledge quiz with several questions in Sets [closed]

You could do something like this: fragen = [‘List all the planets in our solar system!’, ‘List all countries in the European Union!’, ‘List all DAX companies!’] antwortsätze = [{‘Merkur’, ‘Venus’, ‘Erde’, ‘Mars’}, {‘Belgien’, ‘Bulgarien’, ‘Deutschland’, ‘Frankreich’}, {‘Adidas’, ‘Airbus’, ‘Allianz’, ‘BASF’}] for frage, antworten in zip(fragen, antwortsätze): antwortenx = set() richtige = 0 versuche = … Read more

[Solved] automatically centerizing text c# console [duplicate]

The following will center one or more lines. namespace CenterTextInWindow { internal partial class Program { static void Main(string[] args) { CenterLines(“Hello world”); Console.ReadLine(); } public static void CenterLines(params string[] lines) { int verticalStart = (Console.WindowHeight – lines.Length) / 2; int verticalPosition = verticalStart; foreach (var line in lines) { int horizontalStart = (Console.WindowWidth – … Read more

[Solved] clicking function in android [closed]

If you want to send something by email your best bet is to use ACTION_SEND. Then it can be picked-up by email app, Twitter app, Facebook app – depending on what apps user may have on his device private void sendBy(final String title, final String text) { Intent i = new Intent(android.content.Intent.ACTION_SEND); i.setType(“text/plain”); i.putExtra(Intent.EXTRA_SUBJECT, title); … Read more

[Solved] How to convert an NSString to id or UIView objective-c iphone [closed]

This gets you a UIViewController loaded from a xib. Class vcClass = NSClassFromString (@”myUIView”); UIViewController *detailViewController = [[vcClass alloc] initWithNibName:@”myUIView” bundle:nil]; If you just wanted a UIView object, just do: UIView* myView = [[vcClass alloc] init]; But really, as the three answers so far show it isn’t clear at all what you what. Can you … Read more