[Solved] Does the Windows 8 app works on iPad [closed]

No, a Windows 8 application won’t work on iPad or an Android device without any modifications by default. If you want to code native applications, you need to use Objective-C for iPad development and Java for Android development. But, here are some options. You could have a modification of your Windows 8 app in HTML5 … Read more

[Solved] What is a javascript MVC framework [closed]

The MVC pattern can be used in an n-tier architecture to design the presentation tier, with the new JavaScript-based UI, the presentation tier can now be implemented exclusively in JavaScript so that’s an example of why one would need a MVC JavaScript framework. In this article from Microsoft pattern & practices, they talk about using … Read more

[Solved] Error inserting date and time in SQL Server 2005 datetime c#? [closed]

You should ALWAYS use parametrized queries – this prevents SQL injection attacks, is better for performance, and avoids unnecessary conversions of data to strings just to insert it into the database. Try somethnig like this: // define your INSERT query as string *WITH PARAMETERS* string insertStmt = “INSERT into survey_Request1(sur_no, sur_custname, sur_address, sur_emp, sur_date, sur_time, … Read more

[Solved] Undefined index (PHP)

It’s ternary. The syntax is var = (true) ? trueValue : falseValue; It’s the same as this: if ( empty($_POST[‘code’]) ) { $code = null; } else { $code = $_POST[‘code’]; } solved Undefined index (PHP)

[Solved] Take screenshot via PHP and Javascript

Lots of such screen capture web service here: What’s the best website screenshot capture API? But instead of doing that by yourself, I think you should go with those many public link-shortening service, like t.co, because anti-malicious is already one of their purpose: Having a link shortener protects users from malicious sites that engage in … Read more

[Solved] C# method rollDice

EDIT: Changed the while to a do-while, as this will always execute once, regardless of the initial value of a or b. It’s up to your preferences if you want to do it like this or with a while. Next to that, I have changed the parameters of the while from while (a == 6 … Read more

[Solved] Weird behavior of a counter inside the for loop

1) The array index start from 0, as per your code it will access matrice[2][2] which will cause undefined behavior. 2) matrice[a][b]=scanf(“%d”,&i); will store the return value of scanf in matrice[a][b]. #include <stdio.h> int main() { int a,b,matrice[2][2]; printf(“Put inside the matrix some numbers..\n”); for (a=1;a>=0;a–) { for (b=1;b>=0;b–) { scanf(“%d”,&matrice[a][b]); } } //Then print … Read more

[Solved] C++ code malfunctioning

This is your search function correctly formatted: int linearsearch (int A[] , int z, int n, int srchElement) { for (int z = 0; z < n; z++) { if(A[z] == srchElement) {return z;} } return -1; } and here is how you call it: index=linearsearch(A, n, srchElement, z); You pass a value z in … Read more

[Solved] Updating text not working [closed]

You need to put bar inside quotes. document.getElementById(“bar”).innerHTML= “hey”; In the fiddle, you should set the dropdown at “Frameworks & Extensions” to “No wrap – in <head>“. This does the same as having the UpdateText() function in your <head> tag, and then it works. 7 solved Updating text not working [closed]