Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer330
viewsClassify a text array using regular expressions using R
Let’s say I have the following array of texts (character): d <- data.frame(id=1:3, txt=c('Um gato e um cachorro', 'Cachorros jogam bola usando alpargatas', 'gatinhos cospem bolas de pêlos'),…
-
4
votes1
answer3999
viewsHow to execute a pagination with PDO?
I am developing an application in PHP but I just started in PDO and I have no idea how to make a pagination using the same. I managed to put together a little query with example of the information…
-
4
votes3
answers4578
viewsCreate a comic balloon-like div
How can I create a div with the appearance of a comic balloon (I don’t know if this is the best expression). Goal: Reality: *Please ignore fonts and colors in question, the focus is tip of the div.…
-
4
votes2
answers5399
viewsMaximum number of characters in a String and Stringbuffer in Java
What is the maximum limit of characters that the types String and StringBuffer support in Java?
-
4
votes2
answers1201
viewsHow to store information when leaving an application and recover in next use?
I would like to know how to store information, such as this variable: int t = 0; Let’s say that during the use of the application, the user did some operation that added + 5 in this variable. How do…
-
4
votes1
answer204
viewsHow to make editable template in ASP.Net MVC?
I see in many systems, (e-commerce mainly) the possibility of editing the system template by changing the CSS and HTML documents. There is some engine or similar in Asp.net MVC? These codes (CSS,…
asp.net-mvc-5asked 10 years, 1 month ago Rod 9,412 -
4
votes5
answers57768
viewsCount equal records with SELECT DISTINCT and COUNT
How do I count the equal results and add the amount in front? For example: Currently the records of my table are like this: Id | Nome ------------ 0 | Teste 1 | Teste 2 | Teste I want to give a…
-
4
votes3
answers152
viewsViewdata error in controller
What could be wrong in this example? I can’t do it: var pessoa = new Pessoa ( PessoaId = 1, Nome = "teste teste", twitter = "@teste" ); Error message: 'Name' does not exist in the Current context…
-
4
votes2
answers3308
viewsProject C in Visual Studio
I’m learning C in college and will have to program in C. I tested with Visual Studio 2013 and 2019 Community Edition I can create projects in C++, but I couldn’t find anything like a "Visual C". Is…
-
4
votes1
answer1434
viewsProcedure with IF NOT EXISTS
Hello stackoverflow developers, I started to delve into sql commands a little while ago, I have some stupid error of syntax of this project, but for countless attempts, I could not Scan it, follow…
-
4
votes3
answers1909
viewsError creating a Mysqli database via PHP on Wampserver
I’m having trouble creating the database, on the net I found little content on, I only find how to build database by phpMyAdmin, but it is via script that I want to create. I have the following…
-
4
votes1
answer657
viewsHow to determine the direction of the touchmove
How in javascript/jquery to know which direction is the touchmove ? Example: var ts; $(document).bind('touchstart', function(e) { ts = e.originalEvent.touches[0].clientY; });…
-
4
votes1
answer1812
viewsHow to consume an "asmx" Webservice via Jquery Ajax
I created a button that calls the search method Ajax to consume a Web Service Asxm. Because the Ajax does not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"…
-
4
votes1
answer1498
viewsHow to replace characters from a String?
I have a small problem. My application receives a numeric string representing a value from the server. But the server sends, for example "100.00" and I need to put a comma in place of that point.…
-
4
votes2
answers2789
viewsDisplay Mysql PHP errors correctly
Hello, I have a simple registration form, where there can be no repeated records in the field cpf and also in the field resposta(cupom). The validation of cpf is ok and the data does not duplicate…
-
4
votes1
answer4598
viewsHow to list a sample of all tables in a Mysql database?
I need to sample all tables in a Mysql database, for example through a SELECT * ... LIMIT 10. I already have the code that returns all tables of the current database: select table_name from…
-
4
votes3
answers688
views -
4
votes1
answer617
viewsValidating start date and end date for the same Model attribute
Description of the problem: I need to create a form with an initial date and end date to list sales of a product per period. Let’s take this model as an example: public class Produto { [Display(Name…
-
4
votes2
answers141
viewsDisplaying massive amount of data
From the moment we work with a very large amount of data(eg: more than 3 million records), and we need to display this data on the screen while the user uses the page, always having the best…
-
4
votes1
answer394
viewsCode First Table Migration - N to N using Fluent API
I have the following classes: [Table("Area_Cursos_Turma")] public class Turma { public int TurmaID { get; set; } public virtual ICollection<Aluno> Alunos { get; set; } }…
-
4
votes4
answers11127
viewsHow to hide the Scrollbar, but without deactivating it
I wonder if you can disable the Scrollbar without deactivating it, IE, hide the Scrollbar but leave it working normally, as if he had the show.
-
4
votes2
answers1789
viewsA: What objects does the Names() attribute apply to?
I’m a little confused by the role of attribute names() on different objects. In addition to normal use, in data.frames, I see in the examples of help(names) which can also be used for vectors (both…
rasked 10 years, 1 month ago LucasMation 411 -
4
votes3
answers1368
viewsWhat better way to save a Group object that has Items lists?
I have a record and in it there are several links, for example: public class Grupo { public string Nome {get;set;} public List<GrupoItemA> ItensA {get;set;} public List<GrupoItemB>…
-
4
votes1
answer347
viewsGroup tables into a single
We are updating a system developed in Delphi q stored the data in access tables for Postgresql. So far so good, however, I have come across the following situation:: In the old bank we had the…
-
4
votes1
answer153
viewsHttpmodule: How to handle Httpapplication errors without Httpcontext?
I have been finding a particularly interesting situation. I have a generic error handling routine implemented within a HttpModule, and recently I noticed a strange behavior: The event…
-
4
votes8
answers481
viewsI can’t learn syntax for
I can learn subjectively for a few seconds, but I can’t fix it no matter how hard I try. I’ve already repeated classes, I’ve done exercises and everything, but the syntax and its variations just…
-
4
votes1
answer69
viewsHow is an integer pointer variable stored?
When we declare : int* x; How the compiler compiles this and how the computer (it would be better to say operating system because it manages memory) performs this ? I mean, the O.R. reserves a space…
casked 10 years, 1 month ago ViniciusArruda 549 -
4
votes1
answer1671
viewsAlignment drop down menu
I have a horizontal navigation bar, which has submenus. Currently the submenu is aligned to the left of the menu to which it belongs. As in this image: I would like the submenu to be aligned to the…
-
4
votes1
answer162
viewsProblems with logic to bring data from a list or table
I did several posts here and solved almost all problems. However I understood that the problem was in the logic that I set up to bring the result. I know I’m asking a lot, but I’m trying and I…
-
4
votes1
answer292
viewsJtable does not save information when focusing on the cell
My JTable does not save information when there is focus on the cell. To effectively save the information I need to focus manually and then click on the "Register". How can I make this process…
-
4
votes1
answer3736
viewsHow do I give an echo without breaking line?
I have this line in the file .bat for /L %%a in (1,1,3)DO echo %%a Printing: 1 2 3 but I want you to print on the same line, this way: 1 2 3…
batchasked 10 years, 1 month ago Jazz Magnago 41 -
4
votes2
answers2111
viewsI can’t install Ibgepesq in R to read the Pnads
I just downloaded the 2013 PNAD of IBGE -- and I tried to open it with the package for R that IBGE itself elaborated, the Ibgepesq. It is available as . zip archive at this address:…
-
4
votes3
answers95
viewsHow to use this!
I need each button when clicked yellow and the others back to normal...: $( "#botoes" ).each(function() { $(this).click(function() { $(".botaoativo").removeClass('botaoativo');…
-
4
votes2
answers2453
viewsIs it possible to do multiplications only with operators &, |, + and -?
I have to create a program with the Assembly language K & S Model 2 that multiplies one number by another, the problem is that this language does not provide a multiplication operation. So I…
-
4
votes1
answer946
viewsArray size
How do I get the size of an array with this structure: A = { ["b"] = {c=1, d=2}, ["e"] = {f=1, g=2}, } I want to take the size of A, in this case, 2.
-
4
votes2
answers466
viewsMulti Banks / Cache / Client Layer
We are studying ways to develop some features for a system, which will be in C# . Net. I’d like to hear opinions on how we can do this, if we can use some frameworks or something else. Access to…
-
4
votes1
answer764
viewsHow to allow my app to be moved to memory card?
All the applications I’m developing of tests do not allow me to move them to the memory card. Is there any way to do this? You have to ask for some permission on Manifest.xml? I put the property…
androidasked 10 years, 1 month ago AndersonSouza 339 -
4
votes1
answer3184
viewsSize of a Java + Hibernate String
Is there any way to persist a string with no size limit for the bank using Hibernate? If I map my class and don’t limit the field, Hibernate automatically creates a limit of 255 characters. I could…
-
4
votes1
answer900
viewsChrome error decoding accents posted via HTTP POST
I have a form that makes an HTTP POST request to update the BD. During the request I noticed that the following message appeared for a field filled with accent in Chrome Dev Tool. For example, the…
-
4
votes1
answer2075
viewsHow to use Tfdjsondatasets in Delphi XE4?
Explanation Today I was seeing an example called FireDACJSONReflect in the Samples folder of Delphi XE6 and I saw that it was very interesting how the server communicated with the client and I would…
-
4
votes1
answer287
viewsloop objects
I need to make several regatta . for example: 2012ocup10 <- aggregate(PNAD2012[c("peso_pes")], by=PNAD2012["klems"], FUN=sum,na.rm=T) but I need to perform the same procedure to…
rasked 10 years, 1 month ago Ennio Ferreira 43 -
4
votes1
answer802
viewsHow to model product categories?
I am about to start the development of an e-commerce, but I am focused on the issue of modeling, especially regarding categories and subcategories of products. For example. A category can have…
-
4
votes2
answers699
viewsDelphixe5 X Permission Administrator
I need to run a program in Delphi as Administrator, I already put the manifest file, and even then it does not work, follow my manifest file. <?xml version="1.0" encoding="UTF-8"…
-
4
votes2
answers14235
viewsHow to check if there is an element inside a list?
I need to check if there’s a status on my list.. I am passing a parameter (a state code) and the method will see in the list if that state exists...something of this kind in C#: if…
-
4
votes2
answers1410
viewsHow to effectively test and locate application security holes?
I am facing a serious problem with hackers and/ or crackers on the site developed for a city hall. I did tests with SQL MAP on every page of the website. I tested the ftp lock, searched for injected…
-
4
votes1
answer1076
viewsFacebook share button displaying wrong information in "box_count"
In a wordpress-based project that I’m working on, I have a modal that dynamically receives various information coming from a post-loop. This modal serves as a kind of "Preview" the full post. Within…
-
4
votes3
answers1705
viewsFileupload without refresh on the page?
I realized it takes one refresh on the full page to get the file from the server side. I would have some way without refresh to perform this operation? I know it’s possible with Ajax, as it would…
-
4
votes1
answer147
viewsHow to import data from clibboard to a data-frame in R
One of the advantages of using spreadsheet is that we can import data from the Clipboard. Is there any way to do it in R?
rasked 10 years, 1 month ago Guilherme Duarte 918 -
4
votes2
answers1096
viewsInterest rate formula
I have to do this little work in PHP structured below, but I have a problem there in the formula of interest rate, I didn’t understand how to apply, I did so: /* Calcula os Juros…
phpasked 10 years, 1 month ago André Machado 155 -
4
votes1
answer102
viewsExceptions.py file
I program in python about a year ago, and I’ve always seen in some projects that I see on the web, an archive called exceptions.py. I can handle exceptions within my codes, this is not my doubt. I…