Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer365
viewsProblems with connection to the MS Acces bank
Staff I developed a web application whose database is MS Access, well, when the user logs in I send the data by ajax to the java class to do the login and password validation, the problem is that…
-
4
votes2
answers102
viewsProtect Class for namespace c#
I am developing a C# application for Unity 3D where it will manage several types of database (Mysql, Postgress...), the problem is that I have classes that manipulate each type of database within my…
-
4
votes3
answers4851
viewsCut string at last occurrence of a character in a string
I have a text in a column that has information separated by "-"(hyphen) and I need to remove the last and second to last information. Examples: Transform "Informacoes - Separadas - Por - Hifen" in…
mysqlasked 8 years, 5 months ago Daniel Dutra 2,283 -
4
votes1
answer167
viewsJquery - Scrollbar
I’m developing a scroll bar in JQuery for an element, a div, I need the bar to be the right size to scroll, I’m posting the code with the error to see if you help me: Codepen It gets the bar of a…
-
4
votes1
answer118
viewsError when implementing method to take photo by application
I am wanting to add the method of taking photos by the application only when running my application error: below is my form class code: Spinner option; Button btnSend; EditText Nome; EditText…
androidasked 8 years, 5 months ago Carlos Diego 683 -
4
votes1
answer68
viewsProblems to remove vector node
I have two classes: class CAlbum { private: QString Nome; /**< Nome do Álbum */ QString Descricao; /**< Descrição do Álbum */ QString Diretoria; /**< Diretoria onde se encontra o Álbum */…
-
4
votes1
answer435
viewsPOST Spring Data REST does not work with relationships
I’m with a project using Spring Boot and Spring Data Rest to serve a Rest API. When I’m serving an entity without relationships, it works smoothly. The problem is when I use an entity with…
-
4
votes1
answer123
viewsList compreension vs ciclo for
I have the following code segments: def is_even(num): if(num % 2 == 0): return True return False 1. lista = range(50) pares = [i for i in lista if is_even(i)] # pares = [0, 2, 4, 6, 8...] 2. lista =…
-
4
votes1
answer878
viewsAndroid Studio Installation: Path to JDK
A few weeks ago I installed Android Studio and was developing the project and "accidentally" I deleted some folders that I shouldn’t have (careless on my part). I couldn’t find solution to repair…
-
4
votes1
answer205
viewsClick a button through Class
I have the following button: <button class="btn btn-danger btn-lg btn-block betButton">Submit</button> And I’d like to make one click in it through a javascript event, only that is…
javascriptasked 8 years, 5 months ago MANIAMAX 653 -
4
votes3
answers7027
viewsSearch ZIP Post Office
I’m trying an implementation in php via simplexml_load_file for verification and return of data together with the Post API. In this case, it is necessary to pass variables in the url. I’m doing like…
phpasked 8 years, 5 months ago Carlos Rocha 1 -
4
votes1
answer153
viewsUnwanted texts in Bootstrap
Why does my text appear with another under it after I add the Bootstrap library to the page? (Note the Copyright and top text)…
-
4
votes1
answer577
viewsjava.lang.Numberformatexception: Invalid double: ""
While running my app appears error: java.lang.NumberFormatException: Invalid double: "" I don’t know what to do. The error happens when I leave a blank value, for example, the app makes the sum of 2…
-
4
votes3
answers13930
viewsChange color of an image by hovering the mouse over it
How do I effect CSS to move the mouse over an image it appears with colors and when removing it becomes black and white? I’d like to do with CSS or other than with the flash(R.I.P.).…
-
4
votes2
answers4608
viewsSQL - How to select or delete a column with value equal to null in a query select
I have a table in a Mysql comic that has 5 fields. This would be a model query: select * from myTable where campo1= 4 and campo2=1 and campo3 =7. However field 3 may have null value and I would need…
-
4
votes1
answer334
viewsProblems importing cx_oracle in python 3.4 64 bits
I have a problem with cx_oracle in 64 bit python. I installed this version of cx_oracle: cx_Oracle-5.2.1-11g. win-amd64-py3.4. But when importing in python import cx_Oracle, the following error…
-
4
votes2
answers730
viewsASP.NET MVC session
Staff I have a controller where Seto two session keys and that capture those key anywhere in the application. (other controller, or a view). The controller is like this: [HttpGet] public…
-
4
votes3
answers6231
viewsHow to compare the structure of two SQL Server databases?
I need to compare the structure DDL of two databases, where one is the production bank and the other is the approval of a system. What tools can be used to do this?
-
4
votes1
answer420
viewsMulti Thread Socket Server and its Clients talking to each other
I have a question that is killing me and I would like to share with you, maybe someone has the answer or a way forward to address this doubt. I have good experience with Web/Desktop development,…
-
4
votes1
answer982
viewsHow to use Laravel Facades outside of its structure?
I am trying to use some classes of the "Laravel structure" in other files, but I am not succeeding. For example: I created a file public/teste.php with the following code: require…
laravelasked 8 years, 5 months ago AndersonSouza 339 -
4
votes1
answer58
viewsField code in option value attribute
I have a table CategoriaCNH with the following fields CodCategoriaCNH and Descricao. and I have this piece of code html: <select name="categoriaCnh"> <option value="" disabled…
-
4
votes2
answers425
viewsWhat’s the difference between "require" and "require-dev"?
In the Composer, Grunt for example, has the require and the require-dev. My question is what’s the difference between them? Example phpBB "require": { "php": ">=5.3.3,<7.0",…
-
4
votes1
answer158
viewsHow to extract every umpteenth element from a list?
Considering a list composed of several vectors: lista<-list(c("1949", "1963", "45", "X2752009", "X2752013", "X2753007", "X2850009", "X2851005", "X2851008", "X2851014", "X2852002", "X2852003",…
-
4
votes1
answer1653
viewsI can’t leave Jbutton on Jlabel
I have a JPanel, and within it a JLabel of the same size. The JLabel has an icon associated with it, working like a wallpaper. When I try to put a Jbutton on top of Jlabel, Netbeans repositions the…
-
4
votes1
answer730
viewsConsuming Java Web Service
I’m a beginner in C#, my Visual Studio is 2010, my version of Windows Phone is 7. I searched the internet and this version of the "async" command only works from Visual Studio 12 to top. Is there…
-
4
votes4
answers614
viewsWriting effect using javascript, setInterval does not work
I’m trying to use the setInterval function to write 1 letter every second, but it didn’t work: partText = ""; function escrever(text) { for (i = 0; i < text.length; i++) { partText +=…
-
4
votes3
answers607
viewscheck query in 2 tables at the same time with mysql
I have two tables in my BD (mysql), where: 1st Table: CADASTROS With the following fields: ID, NOME, IDADE, CIDADE 2nd Table: FUNCIONARIO With the following fields: ID, ID_CADASTRO, PROFISSAO,…
-
4
votes2
answers1508
viewsI cannot enter the values in the table with auto_increment in the primary key
This is my table: CREATE TABLE Utilizadores( IDUtilizador INT NOT NULL AUTO_INCREMENT, PNome VARCHAR(2000) NOT NULL, UNome VARCHAR(2000) NOT NULL, Email VARCHAR(2000) NOT NULL, PalavraPasse…
-
4
votes1
answer145
viewsGenerate XML content HASH in SQL
Is there a way to generate the hash of a XML beyond the function master.sys.fn_repl_hash_binary? Currently this is my implementation, however, I do not know if it is the only way to do. --Preparação…
-
4
votes1
answer133
viewsHow to lease value without pennies down?
How to round values that have no pennies and only have numbers? Ex: 10, 20, 30, 40, 50. If person is 13, stay 10, if 25 becomes 20.
-
4
votes1
answer302
viewsProblem with left Join using Entity framework
I’m having a problem performing a left Join on Asp.net mvc. I own a view that lists all screens of the system, the same are registered in the database. I created a table of type (tab), screen and…
-
4
votes1
answer482
viewsHow to treat unusual closing of a Combobox list in VBA?
I am creating an important effect for the presentation of a Combobox in particular. This Combobox is originally produced centralized, and when opening your list I make the text left-aligned so that…
-
4
votes3
answers342
viewsHow and where to implement business rules in the Entity Framework?
I have the following example of a software that uses Entity Framework, accessing a database with only one table called Produtos with the following fields: Field int produtoid. Field string…
-
4
votes1
answer58
viewsError using Split inside Select
Why the exception below occurs when using Split within a Select in a IQueryable? The LINQ Expression Node type 'Arrayindex' is not supported in LINQ to Entities. I already managed to solve the…
-
4
votes2
answers6419
viewsRun PHP script in Windows task scheduler
I have a PHP script that I currently leave running with an open browser, with the command below: <meta HTTP-EQUIV="refresh" CONTENT="1800"> Despite the mémoria problems that the browser…
-
4
votes3
answers68
viewsUnity5 engine error in code
I was creating a code for the one game and in the end appeared some problems: Assets/Scripts/Player/PlayerMovement.cs(63,23): error CS1547: Keyword `void' cannot be used in this context…
-
4
votes1
answer115
viewsWhat is the best way to make multiple requests to an API?
I came to ask this question once again thinking that it would be beneficial for the community to have a canonical way of making several http requests to a particular API. More specifically this…
-
4
votes1
answer136
viewsIs it possible to know if a two-dimensional array is empty?
basically my doubt is already clarified in the question. That’s it, I wonder if it is possible to know if a two-dimensional array is empty? Thank you in advance!…
-
4
votes2
answers1328
viewsIs it safe to use List with Parallel.Foreach?
I’m making one by making a style method Crawler which receives a string list, makes a call on a website, inserts the return into another list and returns. My method is working, but it’s too slow, so…
-
4
votes2
answers764
viewsHow to change the value of subsequent inputs?
In a form there are N occurrences of values for the same product, to facilitate I want to apply the same value to the subsequent inputs. For example, using the structure below: <input…
-
4
votes1
answer63
viewsRegex that captures date informed by user, typed in a sentence
If I have a phrase: "melhor 01/01/2016 - 05/01/2016" How can I retrieve the dates of this phrase using regex? thus: var data1="01/01/2016" , data2="05/01/2016"
-
4
votes2
answers217
viewsInclude a digit before the phone in the BD register
I have a system where was registered 18 thousand users, but I realized that the mobile phones and fixed are missing a digit. Ex.: (21)9999-999 or (21)2222-222. Although the field is CHAR(14). Is it…
-
4
votes2
answers1117
viewsHow do I return a new instance of the python class itself dynamically inside it?
I’m giving a study in Python and for this I am building a class in Python that I had already done in PHP. For example, in a given method in PHP I needed to return the same instance of the class,…
-
4
votes1
answer190
viewsAdjust height is width of Qr Coder using Messagingtoolkit.Qrcode C#
Is there any way to adjust the height is width? thanks public void GerarQrCode(string NomeImagem,string Data) { QRCodeEncoder encoder = new QRCodeEncoder(); Bitmap img =…
-
4
votes1
answer421
viewsSend an SMS to one of the contacts
I have an app and at the end I wanted to send a msg to one of the user contacts about my application. var columnNumber = cursor.GetColumnIndex(ContactsContract.CommonDataKinds.Phone.Number);…
-
4
votes1
answer133
viewsHow do I get a scrollbar to follow the last comment on a listbox in C#?
I am creating a Chat on C#,which will serve as an interaction between a User and an Analyst,being as a means to a Service Order,so far I am managing and I have managed to make sure that there is the…
-
4
votes1
answer760
viewsHow to sort boxplots by average or median on R
How to order a series of boxplots by median or average? The command used: boxplot(base$y~base$FID) sorts charts by order of the base variable$FID, I would need the sort to be done by the average or…
rasked 8 years, 5 months ago Henrique Pizarro 659 -
4
votes1
answer1695
viewsHow to know if the video is copyrighted via youtube api
There is a way for json to find out if a particular video is copyrighted by the youtube api?
-
4
votes1
answer125
viewsWhat happens on these lines in C++?
This is an Encoder reading routine that detects which direction of Encoder rotation. The references are left and right pins appreciated as MSB and LSB bits. The Code works perfectly, but I do not…
-
4
votes3
answers4243
viewsHow to check if return from Ajax is JSON or String?
My code is like this: sendAjax(new FormData(this), function(retorno) { if(retorno.isArray) { $(".erro-login strong").text("ID: " + retorno.id + " usuário: " + retorno.usuario);…