Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer1821
viewsExtract index for repeated elements in Python lists
In case I have a list x that contains several values, and some repeated, and I want to have the index for each element, as I can do? I tried to do using the method .index() but it only returns the…
-
4
votes3
answers163
views"Carry" variables between functions, appears strange character in place?
In function main when I print a char, it appears a strange code like a hexa: But when I print the same char in another function it appears normal. char tempA[100] = "1111"; int main () {…
-
4
votes3
answers451
viewsIs the Std::map structure in C++ a tree?
I know that every element of the structure is represented by a key and a datum, but I don’t see it as a tree, and I read somewhere that it’s a tree.
c++asked 8 years, 1 month ago Andrey França 2,313 -
4
votes0
answers116
viewsStages of Development
1 - What is the first technical document about the system (I think the vision document?!). How to write it, which software to use? 2 - To each stage that is delivering, how to do it? It may seem a…
-
4
votes2
answers483
viewsValidation of two fields with jQuery.validate and Dataannotations
Good afternoon, you guys, Next, I need to validate if one of two fields is filled, I tried to create an Attribute function with Validationattribute but not correctly validated, I think…
-
4
votes2
answers2123
viewsLaravel checkbox checked or not checked according to Database
I need some help on Laravel on how to "check checkboxes" on a form. I have a table colors, today with 12 different colors but can be as many as I want. And a table corproduto. The colors.id =…
-
4
votes1
answer77
viewsList being modified without implementation
I’m having a problem where the list I’m working on is being modified even though there’s no value passing to it. from random import * from numpy import * m=2 lista_inicial=[[1, 2], [0, 2], [0, 1]]…
-
4
votes1
answer153
viewsImages are repeating in Imageviews
I have 54 images need to show only 8, but have to have a random selection and can not repeat, I am programming on the platform of Android Studio. I use this code it works smoothly, shows the results…
-
4
votes1
answer1316
viewsJoin 3 graphs using Plot
I want to join the three graphs below using the function plot. I do the basics starting with the command par(mfrow=c(1,3)) but I can’t get them together. The problem I believe is the fact that I’m…
-
4
votes2
answers708
viewsHow do I use nested repetitions to make this example?
* ** *** **** ***** ****** ******* ******** ********* ********** How do I do this with nested repetitions using the for Javascript, or in Visualg? to give you an idea of what the code would be like…
-
4
votes2
answers184
viewsHow to use the IN clause in Lambda?
A doubt arose that I thought would be easy, but the content I found could not understand. Well, here’s the thing: I have the tables "Client" and "Errosproducao_client" where they relate form 1 to N,…
-
4
votes1
answer287
viewsSave latitude and longitude in Swift
I have this code in my Viewcontroller to capture the current location of users: @IBOutlet weak var userMapView: MKMapView! var locationManager = CLLocationManager() override func viewDidLoad() {…
-
4
votes1
answer135
viewsCheck click position on a Listview
I have a screen that has a ListView inside it, I need to identify which line was clicked to direct to the correct location. How can I do this?
-
4
votes1
answer121
viewsHow to use '.each()' in a variable to get multiple '.attr()' from a list?
I’m starting to develop a video gallery that I’m going to do upload for Github for anyone who wants to download and use it. I have a list as follows: <ul> <li><span class="everyVideo…
-
4
votes1
answer497
viewsStore content / variables in Model - PHP MVC
Hello, I’m starting to study the MVC standard for PHP. I’ve read several questions here at Stackoverflow, I’ve studied the Laravel documentation and read several articles. I chose the concept…
-
4
votes3
answers3733
viewsSet width and height in text box
To expand knowledge, I decided to start a new programming language, Python, and locked in the following situation, I have a screen with some elements and a text box of type Entry. To define the text…
-
4
votes1
answer151
viewsProblems to display cookies
I have a Cookie set with the name 68 and value 68, it appears in the settings of cookies in the browser, but in pages it works and in others it simply does not exist $id_imovel =…
-
4
votes2
answers1297
viewsRetrieve data from another mysql table and quantity
I’m having a lot of doubts about Mysql when I have to use INNER JOIN to retrieve data from other tables. I have 3 tables: MEDIA id, user_id, title, Description COMMENTS id, user_id, media_id,…
-
4
votes2
answers13627
viewsPython second degree equation
The following code calculates roots, vertices and delta of second-degree equations. The code runs clean the first time, but when I loop to restart it gives an error: Traceback (most recent call…
-
4
votes1
answer2227
viewsRelationship problems one for many
I’m trying to create a CRUD simple category and subcategory registration where a category may have several subcategories but a subcategory may have only one category. On my migrátion I made my…
laravel-5asked 8 years, 1 month ago Renan Rodrigues 3,709 -
4
votes1
answer6033
viewsShow/Hide div using a radio button
Well I need to check the state of mine radio button to make sure that if he is active in "Yes", he opens the <div class="camposExtras">, click on "Not" he closes the div, and this should be…
-
4
votes0
answers107
viewsDifficulties in the Scilab
I am communicating via USB -> Arduino Serial and receiving values from a sensor. But sometimes values have different sizes and the function used to receive the serial bytes needs a defined amount…
-
4
votes2
answers382
viewsFormat value with explode and implode PHP
I have a dhEmi tag that has this value 2016-09-09T08:10:52-03:00 To return me a datetime I did the following. $dtemis = $item->infNFe->ide->dhEmi; $res = explode("T", $dtemis); $res1 =…
-
4
votes1
answer61
viewsCheck if a "String Resource" is being used in the project
Situation When we do not use a variable in the file, the Eclipse has a feature that is to inform the developer by sending the following message: The value of the field Class.Clienteid is not used.…
-
4
votes3
answers197
viewsAccount with PHP in the order it is in the string
I need an order of reckoning to be in string be done in the order it is in. For example: $string = '(10*10)+(30-5)/2'; I need PHP to interpret this not as a string, but rather as a calculation and…
-
4
votes1
answer165
viewsI can’t save the information to a local database!
I’m having trouble saving the information typed by the user in the Postgresql database, I developed an application in Android Studio and I’m using an external local database with Postgresql to store…
-
4
votes1
answer731
viewsQuestions in Python (Try and except)
I’m doing a program that calculates the grade of a simulated ENEM style of my school, I ask how many questions of each area the person hit, however, I want to make sure that if the person type an…
-
4
votes1
answer201
viewsBest ways to use Module Pattern in javascript
I am working on a project and using the standard Module Pattern javascript. But during the implementation of the project I had some doubts. First doubt: Is there any difference between the two ways…
javascriptasked 8 years, 2 months ago alan 1,908 -
4
votes1
answer706
viewsHow to create a module in npm?
The idea is to get this module down npm install and be able to run this package: npm install nome-do-modulo --save Once downloading could be run in my shape design below: nomeDoModulo =…
-
4
votes2
answers3931
viewsCreate dll in C# and use in Delphi 7
I need to create a dll in C# so I can use it in Delphi. I tried the following: I created a basic dll with a sum method, but when calling it in Delphi does not return anything, it would be like the…
-
4
votes4
answers188
viewsSQL Embedded in C#
I have a C# application that uses a Mysql database with Entity Framework. However, the size of the database is ridiculously small, so I don’t think it’s worth having a Mysql database server just to…
-
4
votes1
answer260
viewsHow to install Python 3
I’m new to Ubuntu and I’m learning Python. I have installed on my pc Pyhton 2.7.12 and would like to know how I do to upgrade to version 3. I’m taking a course where I need to use a lib. import…
-
4
votes2
answers525
viewsNullpointerexception in java. Save image in bin folder for the software to run error-free?
I’m developing a project in java and placing images in jLabels, however, every time I run the program, it appears a message "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"…
-
4
votes1
answer120
viewsLoop duplicating entire table
I’m not getting to make a loop in the table, it’s making loop to every bank search. $dbc = mysqli_connect('senha_adm'); $query = "select carro, barco, aviao, moto, triciclo, velotrou, dataCadastro…
-
4
votes5
answers498
viewsCapture Enter in IE using jQuery
Guys I have the following code in jQuery: $(document).keypress(function(e) { if(e.which === 13) $('.button_ok').click(); }); When I click the enter key, it causes the user to have clicked the class…
-
4
votes4
answers2661
viewsWhen creating folder inside the folder /res it is not visible in the left panel
When I put the name of the new folder and press Enter, that same folder does not appear on the left side of the Project nor can I reference its path. The strange thing is that if I put the folder…
-
4
votes1
answer1553
viewsProblem with Vue-cli
Good afternoon, I did the global Vue-cli installation npm install -g Vue-cli When trying to start a project with the command Vue init webpack my-project the following error is shown Vue-cli…
-
4
votes2
answers992
viewsIs it possible to pass a method as a parameter to run on a thread?
I have an application where each process is called by a single method and this process needs to run in a thread. The code of the threads is identical in all, changing only the content of the method…
-
4
votes3
answers1915
viewsWhat are [ ] bash for?
I’m starting shell script now, and often, reading other people’s programs, I see the use of [] associated with if. For example: if [condition]; then fi I have often seen the use as follows: if…
-
4
votes1
answer9644
viewsHow to copy a Python file?
How to copy a file fonte to an archive destino in Python?
-
4
votes1
answer1107
viewsA3 Certificate in ASP.NET MVC and IIS
I have an ASP.NET MVC4 application and use the following code to read the A3 certificate (reader or USB stick) of the user: var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);…
-
4
votes4
answers13213
viewsTextbox accept numbers and commas
I need that one textBox accept only numbers and commas. To accept numbers I’m doing so: private void textbox11_num(object sender, KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled =…
-
4
votes2
answers1012
viewsValidation of Time
Guys I’m doing an hour validation on Javascript. I can’t type the following hours 14:00, 15:00, 16:00 until 20:00, but other hours I can get. I’m doing like this: var mask = "HH:MM", pattern = {…
-
4
votes3
answers788
viewsHide description with ''Display: None " bad for SEO?
I have some links on the site and I will add a description to each of them, and hide the description, but I doubt if hide with display: none is bad for SEO. See how I intend to do <li><a…
-
4
votes2
answers812
viewsPegar sql Hibernate
Good morning. I have the following problem, I need to take sql executed by Hibernate and save in a string. But I have no idea how to do that, someone could help?
-
4
votes2
answers443
viewsWhat happens when we assign a float value to a double variable?
class Test { public static void main (String[] args){ double pi = 3.1415f; System.out.println(pi); } } When compiling and executing the above code, I got the return: 3.1414999961853027 This is not a…
javaasked 8 years, 2 months ago Igor Santos 63 -
4
votes2
answers874
viewsConfirm before submitting javascript function
When I submit a form, by onsubmit(checkFormIsCorrect()), call this javascript function that will validate various situations and submit or not the form. In this capacity: function…
-
4
votes2
answers37
viewsContenteditable attribute does not work
<input type="email" name="email-empresa" id="email-empresa" placeholder="ex: seuemail@domínio.com" class="txt-input" contenteditable="false" value="[email protected]"> I’m having trouble…
-
4
votes1
answer628
viewsHow to prevent a new instance of Activity from being created every Intent
In my application I have a BroadCastwho receives push notifications in background, that pushcurrently opens an Activity with the information of a request to be accepted, what happens is that if at…
-
4
votes1
answer56
viewsSet a standard comment for every new project
I need to define a standard comment, so that in every project that is created it appears, without having to type it every time. Ex.: Author: Pedro H.
c# visual-studio visual-studio-2013 visual-studio-2015 commentsasked 8 years, 2 months ago Pedro Henrique 43