Interesting questions
-
6
votes4
answers274
viewsProblem checking prime numbers
I have to create a random number array in a range from 0 to 250, and show which are the primes. This is my code: #include <stdio.h> #include <stdlib.h> #include <time.h> int…
-
1
votes1
answer804
viewsHow to install PHP7 in *Unix
I decided to test a Unix-like system (Linux Mint) to learn more, and I need to install PHP7, because the Phptherightway sent. I already installed apache2 via Terminal and Mysql. I know there is a…
-
0
votes0
answers191
viewsHow to use 4 boxes after the comma in Python 3
I need to calculate the circumference area being: area = π . radius². Considering for this problem that π = 3.14159 (is my n) raio = float(input('insira o raio: ')) n = 3.14159 area = round…
-
0
votes0
answers283
viewsIs it possible to "inflate" a layout within a View or Framelayout?
It is possible to inflate a layout (I will call A) that has its full xml inside a View or Framelayout that is contained in another layout (xml)? For example, the screen mounted through the layout A…
-
5
votes2
answers200
viewsWhat’s the opposite of . equals in C#?
I’m doing a left Join where I want to pick up just what’s on the left table and there’s no right one. I’m using LINQ and Entityframework. I made a code that takes the similarities, follows below:…
database .net entity-framework entity-framework-6 ormasked 6 years, 8 months ago Garota de Programas 57 -
-1
votes1
answer59
viewsProgram not the first scanf and skip the second scanf of the script
I try to create an algorithm, but when I read the contents of the first scanf, it only prints the first letter of the name. The second scanf that should read a number is ignored and automatically…
casked 6 years, 2 months ago Jorge Gabriel 1 -
2
votes3
answers1053
viewsHow to update with SQL Server count?
I have the following table: Nome | Posicao Item1 | NULL Item2 | NULL Item3 | NULL I’d like her to be like this: Nome | Posicao Item1 | 1 Item2 | 2 Item3 | 3 The ordering criterion is Name…
-
0
votes2
answers495
viewsPython takes the first column value instead of the last one
I’m trying to get the last record of a column in Mysql but Python only returns "1", is an ID record with auto_incriment. I tried several ways, in some I was returned the whole column, in other era…
-
1
votes1
answer374
viewsEffect on input type="date"
Good night, you guys! I’m having a little trouble getting an effect on input type="date". I can do it normally in the input type="text" (first print shows without the effect and the second shows…
-
0
votes1
answer11006
viewsJSON request: CORS Access-Control-Allow-Origin header error
I need to make a JSON request to Payu, but show me the message: Blocked cross-origin request: Same origin policy (Same Origin Policy) prevents reading the remote resource on…
-
-1
votes1
answer54
viewsHTML5 datepicker onchange event
Can anyone tell me how to use datepicker onchange event to do a check on selected date? in my cshtml is like this: @Html.EditorFor(model => model.Dat_emissao, "{0:dd/MM/yyyy}", new {…
-
0
votes3
answers231
viewsDo require_once within the classes. Is it possible?
I’m trying to create a architecture new based on a need and I’m having some difficulty. So I decided to create an example minimum, complete and verifiable of the application. It is a architecture…
-
1
votes2
answers1206
viewsClick event not working
<html> <head> <title>Notícia</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body>…
-
6
votes3
answers1328
viewsReturns Json of object in C# with Entity Framework
I’m having a problem returning a Json using Entity Framework. The code I’m using is: [AcceptVerbs(HttpVerbs.Get)] public JsonResult Item(int agendaHorarioID) { using (var db = new ERPContext()) {…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
0
votes1
answer870
viewsDouble chained list - C
People this code is giving error in libraries, someone can help me? # include<stdio.h> # include<stdlib.h> # include<string.h> # include<ncurses.h> # include<curses.h>…
casked 8 years, 2 months ago Cristian Kirsch Foesch 1 -
-2
votes1
answer17
viewsERROR C++ IVALID OPERANDS TYPES 'FLOAT' and 'FLOAT' to Binary 'Operator+'
#include <iostream> #include<stdio.h> #include <stdlib.h> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */…
c++asked 4 years, 10 months ago Henrique Ianni Silva 1 -
-1
votes1
answer35
viewsI need help, I am using Node and Request Form to do Scraping
I’m trying to develop an application to take data from a particular site and send it to the database. It would be simple if you didn’t have to request to access this data. As I’m beginning, I may be…
-
1
votes2
answers91
viewsPHP reads two Txts files differently
I have two txts files, I used Notepad++ to do the text. PHP reads a normal file with the word TITLE, but the other appears T?ULO. Does anyone know the reason, or how to fix this problem?…
phpasked 11 years, 2 months ago Alê Moraes 883 -
2
votes1
answer278
viewsHow to go to the top of an Activity on Android
I am developing a Java project for Android that is a Quiz and every time I go to the next question I visualize the radio Buttons and would like to position the screen at the top, so that the user…