Interesting questions
-
-4
votes1
answer64
viewsWhy doesn’t the program recognize the "N"?
class primao: from random import randrange def __init__(self, N=randrange(2,100), divisor=0, pontos=0, laco=True, prova_cabal= N%divisor): self.N= N self.divisor=…
-
0
votes1
answer40
viewsRadio Button from Ajax does not work
Hello I have a radio button q comes from ajax for calculation of front not it not worked to take the . attr({disabled: true}) from a button. If I put it right on the page it works, but when it loads…
-
0
votes1
answer93
viewsHow to ignore a specific file in directory?
The code below counts all files in my directory, but I want to ignore the file index.php $i=0; foreach (glob ("*.*") as $file){ $a[$i] = $file; $i++; } echo count($a);…
-
0
votes0
answers98
viewsNo return with shell_exec in PHP
Recently the need arose to take advantage of some functions of a program with pascal language compiled with "fpc" in PHP, the same runs perfectly by the terminal in Debian, the program is very…
phpasked 7 years ago Carlos Andrade 727 -
9
votes1
answer219
viewsHow to read a file in Prism?
I was trying to read a file in Prisma but I can’t find the correct function: local arquivo = 'arquivo.txt' imprima(arquivo) On the moon, it would be something like local file = 'file.txt';…
prismaasked 8 years, 7 months ago Rafael Lemos 551 -
4
votes2
answers109
viewsUnix and linux are reserved words?
Even if the variables are not declared unix and linux and even without including anything in my teste.c compiling with the GCC on Linux have: Compilation gcc teste.c -o teste Execution ./teste Exit…
-
-1
votes1
answer58
viewsHow to start Select based on an Angularjs Scope Model
I have the following code (with the listing working OK): <select ng-model="elementoAtivo.tipo" ng-init="elementoAtivo.tipo = elementoAtivo.tipo" ng-options="a.valor as a.opcao for a in…
-
4
votes2
answers231
viewsQuick search for a string or part of it in an Array
I have the following array: images = %W( droido 7midias vigilantes sebrae_mei dpe_saed websat ferpamweb dpe_chronus dpe_plantao promocast lolitaface dpe_intranet cha_bar clinica_sorriso…
rubyasked 9 years, 7 months ago Luiz Carvalho 3,644 -
1
votes1
answer344
viewsHow to put a footer as a footer without using css or javascript?
I am learning HTML5 and I have this doubt, it is possible to leave the tag footer in the footer of the pages without using CSS or javascript?
html5asked 10 years, 11 months ago Thiago Oliveira 138 -
0
votes1
answer220
viewsHow to mark an X in part of an image when firing a function in Javascript?
I mapped an image, and with the coordinates of some parts, I made sure that by clicking on a selected part, a function is executed. But I would like to know how to mark an X or make some visual…
-
1
votes1
answer600
viewsUse the Laravel diff in two Collections
I am trying to fetch items that are not in a particular product. I therefore have a model Produto, each product has several items, and another model Item. I’m trying to use Collections of Laravel,…
-
10
votes4
answers14893
viewsAdvantage and advantage between onClick and setOnClickListener
I have a certain situation where we see that it is possible to create in the XML file a property called onClick: onClick: XML: <Button android:layout_height="@dimen/edittext_min_height"…
-
0
votes1
answer414
viewsScrapy Web Data Extraction
Up.. Next guys... I’m writing code with scrapy framework to search and extract some data. I’m new at this! The code to follow theoretically would have to search and extract, but it does not extract…
-
0
votes2
answers59
viewsCreate Dataframe from lists with different sizes, keeping the data matching
I have lists of different lengths with data extracted from a PDF. Each value and code is part (is inside) of a respective note: cliente = ['12345','15432'] nota = ['21/0576750-3', '20/063859-1']…
-
1
votes3
answers1193
viewsPython 3 number rounding
I am developing a project to calculate the wear of certain parts of a vehicle. However, I am still new to the Python language. My problem, for example, is this:: The liter of fuel costs R $ 5,83,…
python-3.xasked 7 years ago Silvano Junior 41 -
0
votes2
answers66
viewsWhat’s wrong with this query?
Okay, I’m trying to select a database through ajax using jQuery. Below are excerpts of the code I’m using and more explanations: Ajax function function carregaRegistros(dia, mes, ano) { dia =…
-
8
votes1
answer125
viewsWhat is the best way to get out of a C#app?
The most common way is to go out with a return in the Main(). But I saw that there is Environment.Exit() and the Application.Exit(). When should we use each?…
-
1
votes1
answer407
viewsJquery animation in toggle style
By clicking a button one div appears with the effect going up to the top, with Jquery. I need that when clicking again it goes away with the opposite animation - going down. As I know little about…
-
4
votes1
answer723
viewsApply a function using some columns of all rows of a Dataframe (r)
I have the following Dataframe : AVG_VOLUME AVG_RETURN VOL PRICE SPX Index 500000 0.01 0.08 2082 KR7000270009 6000 0.02 0.09 102 KR7005930003 7000 0.02 0.08 103 JP3266400005 8000 0.03 0.08 104…
-
18
votes1
answer289
viewsBuild C++ using Gradle
The Gradle and a great ally in java and android development. I was looking at the site and realized that it can also manage projects in c++. How can I use it to compile a super simple project (hello…