Posts by Paulo • 550 points
16 posts
-
0
votes2
answers855
viewsA: Distance calculation in C
In the stretch: float newDist = sqrt(pow((cidade2->coord_x[l] - cidade1->coord_x[k] ),2) + pow((cidade2->coord_y[l] - cidade1->coord_y[k]),2)); The coord variables are all integer but…
-
1
votes1
answer179
viewsA: Is Asp.net MVC better working with Areas or Projects within a Solution?
From the technical point of view, placing in other projects generates positive and negative points. Plus: Put in different projects you will modularize more your system. As an advantage of this, you…
-
3
votes1
answer351
viewsQ: How to use inheritance and polymorphism when passing a JSON to a MVC C#Controller?
I have a MVC method that takes a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } Turns out this class has two kids, a class called a person. and…
-
1
votes3
answers3438
viewsA: Select with color palettes
Well I thought of two possibilities: 1 - You use images in select with the colors you want (or background-color): <select> <option…
-
0
votes1
answer54
viewsA: Problems in Javascript date conversion
Javascript has its own standard of dates, so you need to convert them. See here, this answer solves your problem: /a/6535/5126
-
0
votes3
answers163
viewsA: How can I pass php data to javascript in this case?
You can use in php above where your Javascript is declared: echo "var varJS = ".variavelPHP; And normally use the varJS variable in Javascript. Obs.: You need to do this on an HTML page, obviously,…
-
-1
votes3
answers4539
viewsA: Force client-side update after site update
One method to force the browser to clear the cache is the HTML5 cache app. You create a Manifest file where you write what should be cached and what should not be cached. ALWAYS that the manifest…
-
-1
votes2
answers541
viewsA: How to reduce space between Bullet and text in a centralized <ul>?
I’m afraid the only solution is for you to do it manually: ul { list-style-type: none; /*Remove o bullet*/ } li { background-position: 0px 50%; background-image: url(bullet.jpg); /*adiciona uma…
-
1
votes1
answer1508
viewsQ: View an image with Java Swing Jlabel
I’m trying to display an image in an app using Swing Java. I take some frames from a video and display them as an image private void updateView(){ Image tempCurrent =…
-
3
votes1
answer615
viewsQ: Error creating Xamarin cross Plataform project in Visual Studio. "The project requires a Platform SDK (UAP, version=10.0.10.586.0)"
When trying to create a project Cross Platform App with the template Master Detail I get this mistake: The SDK he claims to be absent is installed. I’ve reinstalled it several times. When I try to…
-
3
votes1
answer2250
viewsA: How to access external network folders with c# Asp.net?
Good, I saw a solution here (in English): https://social.msdn.microsoft.com/Forums/en-US/ba0c7204-f102-4218-a503-1f4a304aa633/logon-failure-unknown-user-name-or-bad-password?forum=winformssetup…
-
0
votes2
answers56
viewsA: Build error
You wrote the name of the printf function wrongly. The correct is: printf("Algum texto"); Try to pay more attention to the errors that the compiler shows you. He’s saying "Undefined Reference to…
-
0
votes1
answer125
viewsA: Error while compiling project
Well, the error message itself already says. You cannot enter variables or methods outside a class, it hurts the object orientation principle. Probably your class is too big and you don’t realize…
-
1
votes3
answers649
viewsA: Limit characters in div with contenteditable
Well, your question is very general, but I would do it this way: <div><p id="meuParagrafo" onkeydown="validarTexto()"> Meu texto que quero transformar aqui</p></div> In the…
-
9
votes3
answers5129
viewsA: What is the difference between using single and double quotes in C#?
Single quotes represent a char, so should be used SOLELY to assign characters. Ex: char sexo = 'M'; Double quotes represent a string ( a collection of char ). Ex: string sexo = "masculino"; Note…
-
22
votes1
answer311
viewsQ: Click on Loginbutton facebook on android using Xamarin with Facebooksdk nothing happens
I’m using Xamarin to try to log in with facebook, I already generated the Hash and appid. ( Apparently correct, because previously the app returned me an msg saying that the HASH was invalid ).…