Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer368
viewsOverflow by multiplying two integers in Biginteger
I am starting studies in Java and have a task: generate two random integers and store their multiplication. For this, I tried to use long and BigInteger. But the result of this multiplication is…
-
4
votes1
answer177
viewsHow to calculate the download time of a website using wget?
I am working on a project where I need to calculate the loading time of a webpage for optimization purposes. I’m using this command: $ time wget -H -p --delete-after melga.com.br 2&>…
-
4
votes1
answer1210
viewsHow to decrease byte array size that represents an image
I have an array of bytes in Base64 that is in a string in C#. It represents an image. The size of the string is between 50 and 80 thousand characters. I wanted to know if it has how to decrease this…
-
4
votes1
answer2526
viewsRecover view value for controller
Goal: Retrieve view value for controller [Httppost] I created a Generic class with gets and sets public int ListarDadosCarteira_Resultado { get; set; } public string ListarDadosCarteira_Descricao {…
-
4
votes1
answer105
viewsASP.NET shares resources in the same pool?
I have today on my IIS 8 sites on ASP.NET using the same pool. On average they consume 800mb of RAM. I ended up dismembering them (separate pools) and it seems to be consuming 1,5GB in total. I…
-
4
votes1
answer460
viewsHow to check if a polygon is regular or convex
Is there a function in R that checks whether a polygon is regular or not and some that checks whether it is convex or not? If either answer is no, any idea? As I thought: #Por exemplo um…
-
4
votes1
answer235
viewscity state Jquery error in selection
Jquery: $(function() { $(document).delegate('#estado', 'change', function() { var valor = $('#estado').val(); $('#cidade').load('_requires/cidades.php?estado=' + valor ); });…
-
4
votes5
answers7927
viewsTake name and surname of a string
I need to take the name and surname of a string. For example, if the full name is: Renan Rodrigues Moraes I just need to take Renan Rodrigues. I know what to do but I don’t know how to do it. In…
javascriptasked 8 years, 6 months ago Renan Rodrigues 3,709 -
4
votes1
answer274
viewsSQL return in different columns, not rows
I am testing a query, where I would need the returns to come in separate columns, but the way below it returns in rows. I tried to use LEFT JOIN but the syntax didn’t work. select u.nome_completo AS…
-
4
votes2
answers3375
viewsIn Nodejs, the global variable in my app.js file is undefined in another file
I am in a project using Nodejs, and its Express framework. In the main archive app js. i call a function in order to read a file, and assign to a global variable: global.google_sheet_credentials =…
-
4
votes1
answer114
viewsarray 1D for Bitmap
I’ve been working on an FPGA project that sends an array (1D) of Bytes from a grayscale image to the PC. Well, I wrote a simple code with some image to simulate sending and receiving an array and…
-
4
votes2
answers2013
viewsHtaccess - redirecting the domain
I had Ubdomain "B2b".dominio.com.br and now I switched the files to "catalogo".dominio.com.br I want an htaccess rule That when you enter the http://b2b.dominio.com.br/etcqlqr-coisa/qualquercoisa No…
-
4
votes1
answer132
viewsHow to create foreach (PHP/SQL)
I’m trying to send from a form html, a table, with two fields with Array[]. These two fields are Service and Value, I want to add more than one product on form, and he insert into different records…
-
4
votes1
answer96
viewsWhy not give Segmentation fault when writing to a "char *" without allocating memory?
My question is whether the compiler automatically allocates memory to the variable s1 char *s1; char s2[20]; //s1=(char*)malloc (sizeof(char)*20); s1="palavra1"; strcpy (s2,"palavra2");…
-
4
votes1
answer1504
viewsHow to resolve memory size error for large files generated with Dompdf?
What happens is that when the HTML (dynamically generated) gets too large, the pdf is not created, and returns this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to…
-
4
votes2
answers142
viewsHow can I format this array to the way I want it?
I’m creating a Seeder to the Laravel insert values into a table N para N. I am riding the array in one way, but I need it to "become" in another. This is because I want to avoid repeating constant…
-
4
votes1
answer4186
viewsXML with Javascript
I am in the last days searching in Google something that serves to read a simple XML file and display in an HTML page using pure javascript, do not want to use Jquery, just javascript. I would like…
-
4
votes1
answer1023
viewsWhy is the size of a struct not the sum of the sizes of its variables?
For example, the following code: #include <stdio.h> struct exemplo{ char letra; int numero; float flutuante; }; int main() { printf("Tamanho do char: %u\n", sizeof(char)); printf("Tamanho do…
-
4
votes2
answers1226
viewsHow to override one HTML page
Hello, I’d like to know if I could get a page to overlap ("raid") the other, like this model here:…
htmlasked 8 years, 6 months ago R. Ribeiro 71 -
4
votes1
answer84
viewsWhat good is C-EPERM?
What is the purpose of the -EPERM, after comparing the pointer p is null if(p == NULL) return -EPERM ; And I have to put these two libraries. #include <errno.h> #include <stddef.h>…
-
4
votes1
answer117
viewsWhy do some libraries start with version "0.6" or "0.2" instead of using "1.2" or "1.6"?
Well, here at Stackoverlow I could learn about Versioning. When incrementing the version using Semantic Versioning? Versioning scheme I was able to understand perfectly the versioning scheme, and…
versioningasked 8 years, 6 months ago Wallace Maxters 102,340 -
4
votes2
answers305
viewsTurn positive values into negative values in a data.frame based on one condition in another column (R)
I have the following date. :: df <- data.frame(Qtd=c(100,200,300,400,500), op=c('V','C','C','V','V'), stringsAsFactors=F) How I can turn the values in the Qtd column to negative if the op column…
-
4
votes1
answer344
viewsDifferences in constructors using property vs field (field)
namespace WMB.CieloB { internal class FuncoesCielo { internal FuncoesCielo(int iDC, Boleto boleto) { IDCliente = iDC; this.boleto = boleto; } public int IDCliente { get; set; } internal Transaction…
-
4
votes3
answers1686
viewsIs saving the user ID in COOKIES safe?
Guard the ID of the user in Cookies is safe as it is easy to see it from the browser. My questions are as follows:: Guard the ID of the user in Cookies is safe? If it’s not safe, what method seguro…
-
4
votes1
answer5243
viewsHow to apply filters to a data.frame?
I have a database in Excel with 12135 data and not all fields are filled and some individuals have negative age and others are older than 17 years and others older than 70 years. I need to know…
rasked 8 years, 6 months ago Evandro Lopes 41 -
4
votes1
answer86
viewsHow to get an end list for the start?
Opening lists: B_I = ['Cab', 'Bou', 'Bou', 'RFF', 'RF1', 'Rf2', 'Cor'] Ba_F = ['Bou', 'Zez1', 'Zez2', 'Praca', 'Sro', 'Sro', 'Falag'] Then I did ........ Final=[] #lista com todos os barramentos sem…
-
4
votes2
answers3669
viewsDecoding of file in Python
I have a file that is completely written like this after my Crawler also written in Python has saved the data in it: b'N\xc3\xa3o n\xc3\xa3o n\xc3\xa3o, n\xc3\xb3s iremos sim!' I wonder if there is…
-
4
votes2
answers720
viewsclear input with event onchange javascript
Guys I have 2 input: <input name='nome1'> <input name='nome2'> I need to create a javascript that clears Nome2 when the value of name1 is modified. Can someone help me make it very…
-
4
votes1
answer614
viewsSeeking Active Threads
I have the following problem, where I have one for() that opens 17 threads and needs to recover, in another thread ( 18ª ) the active threads that I opened earlier and verify which of the 17 are…
-
4
votes1
answer1601
viewsGps or antenna triangulation - How to know the accuracy of the location?
I have an app that uses the Location api and works right on most devices, but has one that even on the gps does not work with adequate accuracy( goes over the house and not on the street). By the…
-
4
votes1
answer61
viewsPartial for separation of events and methods
I saw in a system a separation of methods in a partial and the events in another in UserControl and Window as the example below: "Pessoa.xaml.cs" public partial class Pessoa: UserControl {…
-
4
votes2
answers2528
viewsTo undo the mouse scroll (zoom) action on a google map Iframe
How to undo the mouse scroll (zoom) action on google map in this Iframe? Is it possible to do this directly in this code or do I have to use Java Script? If you have to use js, how do I get this…
-
4
votes1
answer220
viewsWhere to implement Facade in the MVC?
I’m developing a C# project using MVC, but the teacher wants all students' projects to have Facade, the doubt is as follows ! Where I implement Facade, Model, View or Controller ?
-
4
votes1
answer717
viewsLogin system with permission levels
I am developing a login system with permission levels, however, at the time of logging in as administrator, on a page that Adm would be allowed to enter, permission is denied. It’s like my SESSION…
-
4
votes1
answer31
viewsSVN externals in Git. Is there?
I have a common layer in my project that will serve two or more companies. I know that in the SVN there is the option Externals in which I refer an external repository to the repository of the…
-
4
votes1
answer1339
viewsHow to get attribute of a generic type object?
I’m having difficulties p/ retrieve an object to get a specific attribute. I want to overwrite the method Equals in my class, to compare whether the title of objects are identical. In this case, it…
-
4
votes1
answer153
viewsn does not work in IE8 - Javascript
Hello. I’m having problems with IE8, only in it, other browsers and different versions have been tested and worked, only in IE8 does not work. I have a question page in YES/NO as I choose in radio…
-
4
votes2
answers2008
viewsSave multiple instances of a class to a List in Java
I have a college job that I need to create several instances of an object Pessoa and save these instances in a listing to show the user when needed (this will work as a database). Since we haven’t…
-
4
votes3
answers1358
viewsNodemailer sends email but recipient does not receive it (hostgator server)
I have an e-mail server at the hostgator and an account at the same. I need to use the nodemailer to send messages to my clients from this account. For this I need to configure manually with these…
-
4
votes2
answers2872
viewsClick on button effect
I wonder if it is possible, in a Button, to have that click effect, that is, it "sink" and "return to normal". Is that a property or should I use an Imagebutton with the images of this "effect"?…
-
4
votes1
answer810
viewsHow to add a folder via Maven to build path
I have an application using Jhipster, to make queries I added querydsl, configured in Maven to generate Q classes, these classes are being generated in the path: target/generated-sources Except that…
-
4
votes2
answers12937
viewsValidate CPF with Javascript Regular Expression
Guys, I’m trying to validate CPF only with regular expressions.. I’ve already been able to validate the format... 000,000,000-10 ^([0-9]){3}\.([0-9]){3}\.([0-9]){3}-([0-9]){2}$ Now, is there a way…
-
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…
-
4
votes1
answer6938
viewsHow to pick up mouse position relative to page?
I have a menu that opens when I right click on the table. The problem is that I could not get the mouse position when the page has scroll. I noticed that you’re taking the Y X based on my monitor,…
-
4
votes4
answers8025
viewsSearching dates through BETWEEN AND
I have the following situation, where when trying to query a date by another date using BETWEEN, the specified deadline does not return, only "the previous day". Is there an outline to address this…
-
4
votes1
answer329
viewsSend multiple values from my Checkbox to an Ajax call
I have a button that when I click calls my ajax function. I want to send the values that were selected in my checkbox.But what comes to my controller is only the first value of my Checkbox., Domingo…
-
4
votes2
answers2263
viewsModeling for comprehensive entity registration
I am creating a registration modeling in the most comprehensive way possible. Entities are Person, Natural Person, Legal Entity, Supplier and Customer Below the entity person. I add the person the…
-
4
votes3
answers1322
viewsAdd "name" to a JSON object
My JSON currently returns this low code: {"2":"aluno","8":"barbara_cristina","13":"carolina_deus"} Is there a way in places of numbers 2, 8 and 13 I could add a "header"? I wanted it to be like…
-
4
votes3
answers910
viewsClose the Bootstrap dropdown by clicking on another dropdown in the same menu?
The menu needs to remain open while I click anywhere on the document or screen, however, when I click on the dropdown of a second menu, it should close the previous one, and also need to open and…
-
4
votes1
answer141
viewsOverlay words on the R software graph
Hello, I made a chart in R, but the words were overlaid, I would like help to fix it. Follow the chart to see how it looked. Hug.…