[Solved] Combining two exe files [closed]

The only good solution is to port the oldest code (2006) to VS2010 (or both project to newer compilers), and compile a new executable from a fresh solution where you combine both projects as you wish. As commented, merging two executables makes little sense in general (what is the entry point ? What about conflicting … Read more

[Solved] how to get the items base in json objects

It seems like this should work for you: $.ajax({ type: “POST”, contentType: “application/json”, url: “ManualOfferEx.aspx/OnSubmit”, data: JSON.stringify(data), dataType: “json”, success: function (result) { console.log(result); var data = result.d; var success = data.Success; var message = data.Message; console.log(message); }, error: function (xhr, err) { console.log(“readyState: ” + xhr.readyState + “\nstatus: ” + xhr.status + “\nresponseText: ” … Read more

[Solved] Javascript On hover

Hope this helps: http://jsbin.com/podip/2/edit // IE6 does not support getElementsByClassName so… function getElementsByClassName(className) { // http://stackoverflow.com/questions/6584635/getelementsbyclassname-doesnt-work-in-ie6 var elz = []; var elements = document.getElementsByTagName(“*”); for (var i = 0; i < elements.length; i++) { var names = elements[i].className.split(‘ ‘); for (var j = 0; j < names.length; j++) { if (names[j] == className) elz.push(elements[i]); } … Read more

[Solved] Matrix Scale down using MATLAB [closed]

You cannot have non-integer sized matrices. 22,5 is not a valid dimension of a matrix. If you are talking about images you can resize the matrix in Matlab using imresize. . A = rand(254, 128); A = imresize(A, [45, 23]); 5 solved Matrix Scale down using MATLAB [closed]

[Solved] PHP custom regroup array [closed]

Simple foreach loop should suffice. Consider this example: $new_values = array(); $values = array( array(‘1393/03’, 5666562, 5), array(‘1393/03’, 491380, 6), array(‘1393/03’, 4210423, 30), array(‘1393/03’, 351000, 55), array(‘1393/03’, 53000, 60), array(‘1393/02’, 15799573, 5), array(‘1393/02’, 1144313, 6), array(‘1393/02’, 12131004, 30), array(‘1393/02’, 39000, 55),); foreach($values as $key => $value) { $new_values[$value[0]][‘Date’] = $value[0]; $new_values[$value[0]][$value[2]] = $value[1]; } $new_values … Read more

[Solved] How to read google returned data object in PHP [closed]

If you have an object like this. Follow this example: // THIS IS A SAMPLE, JUST TO SIMULATE how to access values inside class Google_Service_Oauth2_Userinfoplus { public $email=”[email protected]”; public $familyName=”Janorkar”; public $gender = null; public $givenName=”Mona”; public $hd = null; public $id = ‘11018813453254107047543’; public $name=”Mona Janorkar”; public $verifiedEmail = 1; protected $data = array( … Read more

[Solved] C# How to modify text file [closed]

Add this reference first System.IO Then: For reading: string[] accounts= File.ReadAllLines(“accounts.txt”); //each item of array will be your account For modifying : accounts[0] += “|1”;//this adds “|1” near password accounts[0].Replace(“|1″,”|0”); this will change the “|0” text to “|1” And For writing: File.WriteAllLines(“accounts.txt”,accounts); 4 solved C# How to modify text file [closed]

[Solved] Merging arrays of dictionaries

How about the following: //define data1 and Data2 var data1 = new[]{ new {id = 1, name = “Oneeee”, version = 2}, new {id = 2, name = “Two”, version = 1}, new {id = 3, name = “Three”, version = 2}, new {id = 4, name = “Four”, version = 1}, new {id = … Read more

[Solved] In C#, is there any more elegant way to take a DateTime and calculate how many months until the “next” Quarter? [closed]

This should do it: int untilNextQuarter = 4 – (currentMonth % 3); Or a slightly clearer but slightly less efficient approach: int[] remainingMonths = new[] { 3, 2, 4 }; int untilNextQuarter = remainingMonths[(currentMonth – 1) % 3]; solved In C#, is there any more elegant way to take a DateTime and calculate how many … Read more

[Solved] How to echo url and database variable [closed]

You need to use dot to concate constant string with variables: echo ‘<a href=”‘.$url.'”>’.$name.'</a>’; for security reason you need to take care about propper variable escaping. Check php.net doc for htmlspecialchars and htmlentities 1 solved How to echo url and database variable [closed]

[Solved] Objective C: How to read from saved files? [closed]

Using NSURLs NSString *fileName = [NSString stringWithFormat:@”%f.mp4″,[[NSDate date] timeIntervalSince1970]]; NSFileManager *fileManager = [NSFileManager defaultManager]; NSURL *documentsDirectoryURL = NSURL *URLForDirectory = [[fileManager URLsForDirectory: NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; NSURL *fileURL = [NSURL URLWithString:fileName relativeToURL:URLForDirectory]; solved Objective C: How to read from saved files? [closed]