Posts by Leonardo • 2,528 points
69 posts
-
1
votes1
answer750
viewsQ: How to create a Splash Screen on Windows Phone
How do I create a Splash Screen in my app? I would like examples!
-
1
votes1
answer101
viewsA: How to change the image by Behind code
I got! follows the correct code: BitmapImage image = new BitmapImage(new Uri(@"Assets\Images\inativo.png", UriKind.Relative));
-
1
votes1
answer101
viewsQ: How to change the image by Behind code
I want to change the image by Behind code, but the way is wrong. How do I find my way? BitmapImage image = new BitmapImage(new Uri("/Images;Assets/Images/ativo.png", UriKind.Relative)); img.Source =…
-
2
votes1
answer3975
viewsQ: Read a JSON from a URL
I need to read a JSON file, which is generated by PHP, through the json_encode; I have no idea how to do this, you have some example? Observing: Is in Windows Phone 8 C#! The answer the url gives is…
-
-1
votes1
answer3097
viewsQ: How do I calculate Euclidean distance
I have a class Ponto: public class Ponto { public int x; public int y; public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public void setY(int y)…
-
6
votes3
answers5076
viewsQ: How to pick up the arrow keys in C/C++?
Is it possible to pick up the arrow keys (famous arrow keys) from the keyboard? if yes, how?
-
5
votes3
answers4187
views -
26
votes2
answers5355
viewsQ: Get colors from the image
There is a possibility (with plugins or not) to catch the [main] colors or the predominant colors, similar to Adobe Kuler, image? Example I have this image: And I wanted to take her main colors,…
-
2
votes2
answers2266
viewsA: Error: "Unexpected T_STRING" in PHP
I uploaded again and amazingly it worked. I think at the time of transferring the file, must have damaged. Thanks for the help!
-
2
votes2
answers2266
viewsQ: Error: "Unexpected T_STRING" in PHP
I took a function from the Internet to calculate the difference between the dates. I created a class to facilitate, because I will use this function on other screens. PHP version: 5.2.* Code calling…
-
4
votes1
answer3362
viewsQ: Ajax navigation error ("Xmlhttprequest cannot load...")
I’m trying to use a browsing without refresh on the page, but when I click on the link, give this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No…
-
21
votes6
answers14835
viewsA: Android app development: what are the tools and language to start a project?
Tools needed to start development SDK from Android A IDE: Android Studio or Eclipse (discontinued) Here, has a tutorial teaching you how to set everything up right. Have an android workbook, I…
-
1
votes8
answers4914
viewsA: Do not allow saving image of a web page
If you are going to be on the web, it will be very difficult to prohibit a user from saving the image. With a simple print, you can circumvent this. I think it is not possible to prevent the user…
-
1
votes6
answers52587
viewsA: How do I use a database on an HTML site?
Mysql is recommended for a website, but there are other banks as well. Install the XAMPP, or any other that has Mysql support, on your machine, with it you can have a localhost server, and use…
-
5
votes5
answers76380
viewsA: How to pin a "horizontal menu" to the top of the window when scrolling the page?
Not if that’s what you want, follow an example: HTML of the Page: <div class="nav-container"> <div class="nav"> <ul> <li><a href="">Home</a></li>…
-
1
votes2
answers864
viewsQ: How to get the registry ID that is populated in Listview
How do I get the Listview ID? Follow my shorthand code: UPDATE How do I get the REGISTRY ID that is populated by Sqlite in Listview. public class MainActivity extends ActionBarActivity { private…
-
4
votes7
answers43303
viewsA: How do I know if a variable is of the Javascript Number type?
The function below tests with regular expression the string passed as parameter and returns true in positive case (string is a number) or false. function isNumeric(str) { var er = /^[0-9]+$/; return…
-
0
votes4
answers702
viewsA: What are the best practices of representing SQL within PHP code?
I always use this method: $sql = " SELECT * FROM usuarios u ORDER BY u.nome"; I find it easier and less prone to error!
-
2
votes5
answers98198
viewsA: How to display the result of a query on an PHP html page?
To get all the records you need a repeat loop: include("conectar.php"); $sql = mysql_query("Select * From tb_trabalhador and tb_detalhe_trabalhador"); echo "<table>"; while($exibe =…