Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer464
viewsjavascript does not load image
I’m making a game in Javascript and the images do not load. When I open the console (F12) no error. This happens in Google Chrome and Firefox. But when I put <img src="imagem.png"> she shows…
-
4
votes3
answers404
viewsGrab Preview image of a video / listFiles() does not work
I have two problems in a super simple project that I am developing in which I did not find a solution in the Forum nor in Google, the project is a video management. I’ll leave the Github link below…
-
4
votes1
answer12161
viewsHangman game with C functions
I’m trying to make a game of hanging in C to go learning better, even because I need to learn more functions such. While the game is running, I wanted when the user put a letter, it would appear…
casked 9 years ago Marcielli Oliveira 1,597 -
4
votes5
answers5371
viewsSplit a string with empty spaces
I’m trying to divide an entrance of the following kind: 1444771699,Andre Alves,SAQUE,-500.00,,200 I’m trying to use the strtok, but it ignores the empty space. Any idea of how to split the string…
-
4
votes1
answer1544
viewsHow to use the Servlet context Listener to start a Servlet so when the application is loaded?
I have the following declared Servlet on web.xml and would like it to be initialized before any of the other application Serrvlets: <servlet>…
-
4
votes4
answers257
viewsUse of setters in the builder
I wonder if there’s any difference, semantically speaking, between these two builders: public Aluno(String n, float n1, float n2) { this.nome = n; this.setNota1(n1); this.setNota2(n2); } and public…
-
4
votes3
answers1676
viewsUse HTML5 form validation next to Jquery
I need to validate a form using the browser property required. Only that there is a problem, my Submit button does not stay on the form. It has to stay out, and when I click on it I call the…
-
4
votes1
answer2303
viewsBlogger: Como exibir apenas as postagens de um marcador (label) específico na homepage do blog?
I am facing serious difficulties in solving a problem in creating a template that should be simple to solve, but is already consuming me a lot of time without reaching a solution. It turns out that…
-
4
votes1
answer1031
viewsHow to format a String with other elements using format()
I would like to know how to format a String 08041995 on 08/04/1995 using the Java format() method PrintStream ps = new PrintStream(arq); String valor = "250,35"; ps.format("R$ "+"%s", valor);…
-
4
votes1
answer341
viewsError inserting Mysql PHP data using Android Volley lib
I am developing an application that will have to send data to a server. My php source code is this: Connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = "";…
-
4
votes1
answer83
viewsImplement contact editing after saving to the database
Hello! I’m adapting a aplicativo that manages contacts with interaction banco de dados. In the aplicativo, I am inserting and deleting contacts but I’m having difficulties to implement the método to…
-
4
votes1
answer1154
viewsChained lists in C
I have two lists in C, where you should include several records in the list of customers, and then make sure that some customer can book a car that is stored in the list of cars. The part of…
-
4
votes3
answers1647
viewsTake the first and last date of an array
In PHP I have this array: $locados = array('2016-01-01', '2016-01-02', '2016-01-03', '2016-01-06', '2016-01-07', '2016-01-08'); These dates within the array represent two different rentals of an…
-
4
votes3
answers207
viewsI need a function to add <br> under certain conditions
I want a function that adds the tag <br> when the text is not spaced, I made a fiddle with the problem: https://jsfiddle.net/sc290ssn/. This function can be done in Javascript or PHP. <div…
-
4
votes1
answer389
viewsWhat is the purpose Message Queue MQ
I’ve heard a lot about Messagequeue, and I’ve never used it in practice. But before that, I would like to know what is the need and your purpose of using an MQ. Thinking about scalability and…
-
4
votes1
answer768
viewsgetUserMedia has now been discontinued on non https connections?
This morning I updated my Google Chrome, on Ubuntu. When I went to do a test on the part of the system (place) where we took a picture of the webcam, instead of displaying the authorization message…
-
4
votes1
answer3297
viewsGenerate random numbers in Java
How to generate only numbers larger than 2? How to generate only numbers larger than 2 and the generated numbers have to be multiples of 3(eg. 3, 6, 9)? How to generate only numbers smaller than 10?…
-
4
votes1
answer580
viewsError connecting php 5.5 to SQL Server
I can’t make a simple Conn work between sql server and php!! I already downloaded and left in the ext folder the drivers according to my version of php I already referenced them in php.ini restarted…
-
4
votes2
answers681
viewsHow to display a Toast inside a Thread on Android?
I’m developing an app and I needed to display a Toast at some point within a Thread, but I’m not getting it, does anyone know how it’s possible and if it’s possible to do so? Thank you in advance.…
-
4
votes3
answers1011
viewsRead a txt file by php and mysql and viewed by each user
I am a beginner programmer in PHP, I accepted a challenge of a job and right now I am in need of a help. They send me a month-round expense report of each user in a single file (a list), in txt…
-
4
votes2
answers767
viewsHow to treat exception that cannot delete as it is a Foreign key
I am not able to treat an exception that happens when I delete an address that is being used in another table. I’m using the codeigniter my code is: public function…
-
4
votes2
answers812
viewsHow to count columns of an Httppostedfilebase txt file?
In the code below, it would work perfectly if I had access to path of the file uploaded on the client side, however, it doesn’t work that way. So I’d like to ask you guys to suggest another way to…
-
4
votes3
answers1233
viewsPass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
4
votes1
answer181
viewsManifest error after Android Studio upgrade to version 1.4
I am starting on Android now and had not come across this error before, I have tried to see other projects but even so the error persists, I wonder what is causing the error and how to resolve it.…
-
4
votes1
answer21098
viewsFormdata() object for sending files via ajax Jquery
I need to send data from a form via ajax to the server (php). I used the Formdata() object but to no avail. Part of my jquery: var formdata = new FormData($("#myform")); var link = "form/insert";…
-
4
votes3
answers346
views.serialize() only lines marked with checkbox
I need to serialize() only on the lines selected with the checkbox <form id='form'> <table class='table table-bordered'> <thead> <tr> <th>Código</th>…
-
4
votes1
answer851
viewsHow to get the path of a file (Httppostedfilebase)?
I would like to get the path(path) from where my file is coming from. Model: [Required(ErrorMessage = "Selecione o arquivo a ser importado.")] [Display(Name = "Arquivo ")] public HttpPostedFileBase…
-
4
votes3
answers167
viewsAlignment of Divs
I have 3 Div, and I’d like you to be willing as follows: To Div1 is the div who "holds" the other two. I would like the DIV2 stood over the DIV1 ,superimposing the text. And that the DIV3 remained…
-
4
votes1
answer85
viewsWhat modules do I use to perform data sharing for a Python file?
I have a list of repository addresses git classified according to your accommodation location. @GitHub ('@' demonstra que a linha representa um local de hospedagem) url do repositório a (repositório…
pythonasked 9 years ago user24280 -
4
votes1
answer2084
viewsSet Laravel to Standard Level/Directory
I have an app Laravel and do the deploy from git to my server. But the problem is that the server always plays deploy inside the public folder, and the Laravel originally is to stay one level above.…
-
4
votes1
answer126
viewsProblem with Bootstrap menu
I made a menu customizing using Bootstrap, however, I am having a problem when I decrease the width to <=767px and click on the button to expand the menu. I know this problem is due to menu…
-
4
votes3
answers821
viewsProblem between C# system and Warsaw plugin (GAS Technology)
My project was built with the C#language. Everything was going smoothly, until some customers started reporting errors when opening my system. The error goes as follows: the client clicks on the…
-
4
votes3
answers2362
viewsHow to Recover User Session
I just wanted to retrieve a user’s session. I have a class called User system, that identifies which user is logging in. In this class, I take the session and play for an object. @ManagedBean(name =…
-
4
votes1
answer67
viewsInclude a. c file inside a project. c
I am developing a simple program to deliver at the end of the first semester and would like to know if it is possible to create a main project and make the menu in one menu.c separate. Then include…
casked 9 years ago Marcielli Oliveira 1,597 -
4
votes1
answer3515
viewsCreate an associative array from another foreach array?
I’m trying to create a array() from other arrays using the foreach. I have 3 arrays, and these arrays have values that repeat themselves and I want to create only 1 array with the values I need…
phpasked 9 years ago FernandoPaiva 1,562 -
4
votes1
answer2452
viewsSwap/Edit word already translated in Wordpress
I am setting up a virtual store Woocommerce (Wordpress) and recently installed a translation pt_BR. It’s all translated correctly, except for the term: QUICK VIEW which appears translated as -…
-
4
votes1
answer2273
viewsHow to avoid floating keyboard?
I’m testing my app on a tablet Samsung and the number keyboard is floating, the keyboard is on top of my application, does anyone know how to disable this in the code? Thank you in advance! Obs: The…
androidasked 9 years ago daniel12345smith 2,120 -
4
votes1
answer499
viewsPick up CSS Specific Element with Sign +
My question relates to this question: What the + sign in CSS means? I’m using the + sign to do an effect on a form I have. It works, but the point is that my form has validation. That is, when I…
-
4
votes2
answers1231
viewsChange cell color of a table by changing the backgroud and the text to be displayed
Good morning to you all! Gentlemen, I have a table where I upload information from the database, and I display it in this table. The table is already ready and loading the data right. What I need is…
-
4
votes2
answers179
viewsDoubt about using the Inner Join
I have 4 tables in my database Tabela Cadastro - idCadastro(PK) - IP Tabela Porta - idPorta(PK) - numero porta - idSwitch(FK) Tabela Porta_has_Cadastro - idCadastro(FK) - idPorta(PK) //Observação:…
-
4
votes2
answers247
viewsWith resource in Java
Hi, some time ago I discovered that some programming languages have a feature called with. For example: In JS But in Java I don’t know anything like that, someone does ??…
javaasked 9 years ago Ilario Junior 287 -
4
votes1
answer336
viewsWhat is the purpose of { } (keys) to be used to delimit PHP code?
In PHP, you can use the keys in any code snippet, for example, to separate blocks aesthetically. Example: { $a = 1; } { class X{} } { { function x() {} } } In these examples, none of them an error…
-
4
votes1
answer364
viewsHow to set Resharper to NOT add Summary comments
When using the Resharper (Stylecop) 'Remove Unused Directives in File' or 'Remove Redundant Code in File' function to delete a library from my project, Resharper removes it, but adds comments…
-
4
votes1
answer61
viewsIs there any way to make an exception when fwrite cannot write?
I usually use the class SplFileObject to be able to work with files. The same does not happen with sockets, when necessary to connect, it is necessary to use the function fsockopen or…
phpasked 9 years ago Wallace Maxters 102,340 -
4
votes2
answers630
viewsJava Fork/Join Does it work the same as C Fork?
Discussing with a friend about a matrix calculation solution that we are developing, the following question arose. Java Fork/Join Framework operation is equal to C? Reading a little I could not…
-
4
votes3
answers125
viewsSearch List(Of String) - Case insensitive
How to look for a String in a List(Of String) without considering the case? I’m using . net 2.0. Contains does not allow passing any additional parameter. I tried to use Find but it didn’t work…
-
4
votes2
answers848
viewsDesktop application audit log
Thinking about a Java application desktop that is running in a company, we may come across situations that the user may cause failures in your application, in this case could create a log error and…
-
4
votes1
answer1852
viewsHow to use @Html.Validationmessagefor to change the text box class
I bought a bootstrap template, the validation of the controls is done by a class that leaves the controls red. This would be the classes form-group has-error Only that I never used this way, I’m…
-
4
votes2
answers579
viewsHow to pass an array of php Stdclass objects to a JS variable using $.ajax() jquery
I have the structure below. I need to access each value in jquery. Array ( [0] => stdClass Object ( [post_id] => 140 ) [1] => stdClass Object ( [post_id] => 141 ) [2] => stdClass…
-
4
votes4
answers356
viewsTwo-dimensional Array
I would like to go through a two-dimensional array according to the code: var cadeiras = [[true, false, true, true, true, false, false, true, true, true, false, false], [true, false, true, true,…