Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers3829
viewsTake AUTO_INCREMENT value from a table
I want to take the last record registered in a database table, ie the value of AUTO_INCREMENT from the table, I tried using: SELECT MAX(id) as max FROM people It works, but if I have no record in…
-
6
votes1
answer44
viewsHow many terminal instances are called for each exec() function call in PHP?
If I call a file, it contains the function exec(), on two different terminals, the second will start running only when the first one finishes, or they work independently?
-
6
votes2
answers1131
viewsHow does the (anti-)EAV (Entity Attribute Value) standard work?
I would like a functional example, because I do not understand very well this dynamic relationship of creating table of types, with table of data, a dynamic relationship, that many consider…
-
6
votes1
answer201
viewsWhy are you giving this Static variable error?
Why is giving this build error and how can I fix it? Cannot make a Static Reference to the non-static field service…
-
6
votes1
answer102
viewsDoubt Relationship Rails
I’m learning Rails still, and I’m in doubt if I’m doing it right. I have a Table Animal and a table Reproduction, each animal may have one or more reproductions and each reproduction will only have…
-
6
votes1
answer182
viewsHow to add a bookmarklet with a specific favicon?
I made a little script bookmarklet and I’m trying to add a favicon, but I can’t. It is in this bookmarklet that I want to implement a favicon - keepvid.com // Juntar a url ativa na barra de…
-
6
votes3
answers709
views -
6
votes4
answers14489
viewsInvert string in C
I’m trying to reverse a string in C but the function is clearing it: for(i = 0; i < (int)(size/2); i++) { tmp = buffer[i]; //armazena o character inicial buffer[i] = buffer[size - i]; //Troca o…
-
6
votes1
answer963
viewsRotate objects around the specific CSS axis
I would like to know how to rotate an object (div) around the axis of another object (another div). My problem is the following: I have a larger circle and 5 smaller circles located at the bottom of…
-
6
votes2
answers2348
viewsThe following database modeling is in my head?
I created this modeling (just an idea), so there are no null/white fields. I have not completely reviewed it. There may be fields that would remain blank. The matrix table was the Entities and…
-
6
votes3
answers5277
viewsWhat does "Dim" mean in Basic?
Okay, most programmers (I think most of them) of Basic (popular; Visual Basic compiler) know what the use of Dim, but I also think you don’t know what that word means... Basic Keywords are so…
-
6
votes3
answers170
viewsWhy use layout before loading information?
I see in several web applications that before displaying the content is displayed some blocks looking like an image, the blocks I speak in the image are those of the sidebar. Why use it and how to…
-
6
votes4
answers281
viewsIs there a C# feature similar to PHP __call?
I have a lot of experience with PHP and, as I’m starting now with C#, it will be common for me to want to compare one language with another to find out if I can do something similar. In PHP, I can…
-
6
votes3
answers982
viewsGIT, display of branchs in bitbucket tree
Hello! I’ve been researching for days and I haven’t found any information that helps me. my problem is with displaying the commits tree and branchs in bitbucket. I create a branch from the master…
gitasked 8 years, 4 months ago Fernando Rodrigues 61 -
6
votes1
answer2747
viewsRaw Strength Algorithm for Sudoku Game Resolution in C
I have the following code written in C: #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int…
-
6
votes3
answers1530
viewsSend file and text via jquery Asp.net mvc
Guys I managed to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {…
-
6
votes2
answers1002
viewsBogosort - what is this?
What exactly does the bogosort sorting algorithm? Because many say he’s inefficient?
-
6
votes2
answers790
viewsLinux-based c++ Qt program to run on Windows
People wanted to know if there is any way and if there is what, to basically create an executable ,of a GUI program made in Qt, for Windows being that I am using Linux.
-
6
votes1
answer45
views -
6
votes0
answers75
viewsThread in WAIT state
I am monitoring a system that was made in Java and at certain times during the day the vast majority of Threads, about 95%, enter the WAIT state and are waiting for about 50 seconds on average, and…
-
6
votes1
answer323
viewsJPA, Hibernate, Spring MVC, Maven - Definition
I’m having a lot of questions about definitions! My goal is to build a system architecture, but the definitions of JPA, HIBERNATE, SPRING MVC, MAVEN, are obscure. JPA: It is nothing more than a…
-
6
votes3
answers154
viewsDoubt Normalizer + Regex
Could someone explain me the code below? returnStr = Normalizer.normalize(returnStr, Normalizer.Form.NFD) .replaceAll("[^\\p{ASCII}]", ""); returnStr has as initial value a url.…
-
6
votes2
answers10977
viewsSDK Command Facebook Android - Key hash
I’m doing the tutorial on SDK of Facebook for Android and I didn’t understand this part, which talks about hashes key to development environments. Commando: keytool -exportcert -alias…
-
6
votes2
answers283
viewsModifying a list item shared by multiple threads
I have the following pseudo-code: public void Associar(List<Data> dados) { List<Task> tasks = new List<Task>(); foreach(dado in dados) { tasks.Add(AdicionarAsync(dado)); }…
-
6
votes1
answer3121
viewsClass and interface difference
What is the difference between class and interface and when I should use one or the other?
-
6
votes2
answers345
viewsValues that can be entered as primary key
I have a company code of the product that is formed by two letters and 4 numbers (example: XX0000), it is advisable to use this code as primary key or create another column with code field and put…
-
6
votes1
answer392
viewsHow to calculate point cards
I am developing an application that matches the calculation of total hours worked on points cards, taking into account whether it is night time reduction or not and, if it is, what is the entrance…
-
6
votes3
answers37709
viewsRemove element from a list by key (key) and by value (value)
I have the following list my_list = [1,2,3,4,5,6,7,8,9] Let’s say I want to remove num 7 by value and/or key and keep: my_list = [1,2,3,4,5,6,8,9] How do I do?…
pythonasked 8 years, 4 months ago Alberto Pimenta 169 -
6
votes1
answer2355
viewsChange the height of the div according to the screen size and adapt when adjust
Hello, I’m trying to adjust the height of my Ivs as the div that has the most text, when the page loads, works normal, but when I change the screen dimensions, it doesn’t work. HTML <div…
-
6
votes2
answers2547
viewsHow to get out of a cycle in C#?
I need to get out of the foreach when the value is equal to 1 foreach (DataGridViewRow dr in dgvValetes) if(dr.Cells["valor"].toString()=="1") //Sair aqui I don’t know how to do...…
-
6
votes1
answer480
viewsIn a C#console program, where is the main class set?
I’m doing my first console program in C#, just to do some tests. I have two classes: HelloConsole.MainClass and HelloConsole.Calc. I have the following code: using System; // Aprendendo o alias de…
-
6
votes1
answer113
viewsProblem showing received SMS
Fala galera! I’m trying to show a SMS received in a text box in a Form that I have, but instead of showing me the message that I get in my SIM, it shows something like +CMTI: "ME",33. I’ll leave the…
-
6
votes1
answer279
views3D histogram using ggplot2
I have data of a two-dimensional distribution, for example, uniform. I wish to make a histogram with this data. I tried the package plot3D, but it wasn’t very nice. teste = matrix(runif(100), ncol =…
-
6
votes1
answer1324
viewsHow to authenticate the application and authorize it to consume a restful API
In a given project, it was necessary to create a restful API that receives data from various forms spread across multiple sites hosted on different servers. The API was created to solve the…
-
6
votes2
answers1992
viewsCoordinates of selected area in image
I have the following question: I have an image and I want to make the selection of any area of this image, as in the example marked by the red square (consider this to be the selection). From this…
javascriptasked 8 years, 4 months ago gelopes 153 -
6
votes2
answers12979
viewsHow to apply scrollbar only to the tbody element in an HTML table?
How to apply the scrollbar (scrollbar) only in the element tbody, thus leaving the element caption and thead fixed on the table, without moving when the scrollbar moves. Below follows the HTML and…
-
6
votes1
answer732
viewsMapping between user Stories and use cases
When we analyze requirements to develop a system it is common to use use cases to describe the required functioning. In this case I am talking about the use cases written in full and not the…
software-architecture software-engineering use-casesasked 8 years, 4 months ago SomeDeveloper 18,074 -
6
votes2
answers1543
viewsHow to select fields in a lambda expression query?
Through the select new from LINQ I can select which fields will be displayed in the query, for example: var subCategorias = from s in db.SubCategoria join c in db.CategoriaProduto on s.id_categoria…
-
6
votes1
answer510
viewsWhat Regular Expression to parse a URL
Well, I’m asking because I don’t know, but I’m trying... Doubt http://www.meusite.com.br/busca.html?nome=louvor+a+Deus Where: ?nome=louvor+a+Deus Should be removed or better replaced with the method…
javascriptasked 8 years, 4 months ago Diego Henrique 2,916 -
6
votes3
answers688
viewsHow to do in a select html, when clicking select more than one row at a time?
I have a query that brings me the first 3 letters of a month name with the last two digits of the year for example: JAN.16 in my combobox it brings me the independent months for example: JAN.16…
-
6
votes1
answer424
viewsHow do I use a Github project as the basis for a new one?
I’m trying to use the angular-phonecat as a basis for a new project, and make modifications on top of it, because the structure is very similar to what I want to develop and so I wouldn’t have to…
-
6
votes2
answers10158
viewsHow can I center my form within my div?
I’m trying to centralize my research form in the center of my div but I’m not getting any property in css that does this without needing ganbiarra? here is the development page index.html…
-
6
votes3
answers413
viewsHow to replace dynamic chunk {{chunk}} of a string in C#?
I get a string dynamically generated example: "Dynamic text {{parametro1}} plus a piece of text {{parametro2}}". I have in C# a code similar to this: where the name is the same that is between keys…
-
6
votes1
answer1749
viewsLimit login attempts by time and quantity
I am working on a login system with php and mysql and this doubt arose, because I do not know if only this can be considered something "acceptable" as another security tool in the login process.…
-
6
votes2
answers137
viewsDevelopment in three layers
In a system developed in three layers, I must leave some consistency for the database or I must solve everything in the middle layer? Example: I have a user table, where the name should be unique.…
-
6
votes2
answers265
viewsWhat is the procedure for debugging a "runstack", Javascript or Php via the Aptana browser or IDE?
When we develop a code, it runs on a stack of instructions. Is there any way, through the browser or an IDE, where we can track step by step the processing of the code, and see to what extent it was…
-
6
votes1
answer288
viewsError using Entity Framework Bulkinsert
I have an Asp.Net MVC project in . Net Framework 4.0 with Entity Framework 5.0, where I added the Bulkinsert-ef5, but in the following excerpt error occurs: using (MeuEntities context = new…
-
6
votes2
answers519
viewsWhat is the best place to store the connection string?
There are some possible places to store the string connecting. Leave tied inside the code, app.config, Windows registry and configuration file. What is the best place to store string connection?…
-
6
votes1
answer86
viewsClass Rectangle, is there a circular class?
I know that Class Rectangle is rectangular shaped for collision of objects, there is a Circular class for this purpose?
-
6
votes2
answers1839
viewsSwitch Alternative Inside Switch
I’m making a decision structure that depends on more than one variable, but readability and maintenance using if or switch are terrible. What alternatives do I have for this case? Example of switch…