Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer4116
viewsuse excel spreadsheet to fill web form
I have a spreadsheet in Excel, it was generated from a form of a system and then some data were selected. After that I have to put this data in another web form, this form is in another system other…
-
5
votes2
answers1986
viewsDiagonal matrix in java
First, I would like to inform you that I am new here on the site, and if by chance my question was left without information or badly organized please speak. I was trying to solve that question: I…
-
5
votes1
answer489
viewsError installing mongodb 3.0 on Ubuntu 15.10 Linux?
I’m trying to install the MongoDB in the Ubuntu 15.10, but, I cannot install Mongo always returning the following error when starting the service. Failed to start mongod.service: Unit mongod.service…
-
5
votes1
answer486
viewsjavax.persistence.Persistenceexception (no security manager: RMI class Loader disabled)
I created a policy file that gives permission for my machine to run both the client and the server, I also passed the ports to them. Inside the server I prompt RMI Security (since if I remove it the…
-
5
votes2
answers879
viewsAvoid more than one register in the database
I’m having problems because I’m making a community system where the user registers and shares stories. More when I went to test clicked on register 2 times and 2 times it went to the database even…
-
5
votes1
answer2733
viewsCalculating a magic square
I’m trying to make a magic square: A magic square is one divided into rows and columns, with a number in each position and in which the sum of the rows, columns and diagonals is the same. Example…
-
5
votes3
answers66
viewsClass attribute does not generate error when commented
I had a question that I could not solve. Follow the codes of 3 files Php user. class Usuario{ //protected $nome; public function getNome() { return $this->nome; } public function setNome($nome){…
-
5
votes1
answer468
viewsProblem with JSF 2 redirection
In a JSF project the pages are organized like this: admin/pages admin/main admin/template. My web.xml is like this: <?xml version="1.0" encoding="UTF-8"?> <web-app…
-
5
votes1
answer248
viewsWhat is the most appropriate way to store a reference in an object?
Suppose I want to create a library, where an object should receive another object added by the user and store it for later use. Ex: //header.h class Caixa{ private: Botao botoes[5]; public: void…
-
5
votes2
answers1939
viewsHow do I convert an RGB image to Python grayscale?
I need to convert several images (in format .png) RGB colored for grayscale.
pythonasked 8 years, 11 months ago Leo Ribeiro 581 -
5
votes2
answers1831
viewsHow to recover the description of an enumerator?
I have the following enumerator public enum MeuEnumerador { [Description("Descrição do item do enumerador")] Enumerador1 = 1, [Description("Outra descrição")] Enumerador2 = 2 } How do I get the…
-
5
votes1
answer902
viewsHow to use Javascript to manipulate data from a database?
I am now beginning to deal with web development in PHP. We know that to have an efficient and dynamic system, we recommend using Javascript, such as, Jquery, Angularjs, Backbone.js and others. But…
-
5
votes2
answers2638
viewsUpdate Div HTML PHP Javascript
I’m having some problems updating a div without updating the full page. Follows the code: <div class="main" align="justify"> <div id="mensagens"> <?php echo…
-
5
votes2
answers309
viewsMysql does not use Input in query (Inner Join)
I have a query that is taking time to be executed, analyzing the explain I see that Mysql is not using the Word in one of the tables. Tables: CREATE TABLE `rel_financeiro` ( `protocolo` char(13) NOT…
-
5
votes2
answers606
viewsDetermine specific size for console in C
It is possible to set a specific size for the codeblock console (In C language) to open when I run the program? I need it to open at a certain size because I won’t use the whole screen. I saw…
-
5
votes3
answers6678
viewsEquivalent to PHP LIKE
How to compare two PHP strings in the same way as LIKE in mysql. For example: "PARA" would equal "PARALLEL", "PARALLAX", "PARALLELEPIPED", "PARAMETER" ... because it has the same beginning. But…
phpasked 8 years, 11 months ago Pedro Augusto 2,392 -
5
votes1
answer1942
viewsError when running test project
I added a test project to my Solution to test the methods of my MVC application. I created a base class, for the other classes with tests to inherit from it, which contains context creation…
-
5
votes3
answers1009
viewsEncryption security in php
I know there are other things that help keep a system secure, but I would like to know specifically about one: information encryption. For example, the password is information that in my projects I…
-
5
votes6
answers1100
viewsSame number of characters in password after md5
I’m doing a process of opening a modal and registering a user. User password is modified to md5(); After this the password is with 32 caracteres. When user will load user data to make an update. If…
-
5
votes1
answer49
viewsIs it possible to enable light Bulbs in Visual Studio?
It is possible to use light Bulbs no Visual Studio 2013 Ultimate Update 5 ? How to enable the resource?…
visual-studioasked 8 years, 11 months ago Jedaias Rodrigues 6,718 -
5
votes2
answers923
viewsReport error while performing UPDATE with SQL
I have a project, in which the administrator can change registered data of tables, but if the query is executed, but no change occurs, I would like to return a message or error, here’s what I have…
-
5
votes3
answers4049
viewsHow to check if my current time is in an hour interval?
I would like to know if my current schedule is in an hour interval. $hora1 = "08:25:00"; $hora2 = "12:25:00"; $horaAtual = date('h:i:s'); How to know if $horaAtual is among $hora1 and $hora2?…
phpasked 8 years, 11 months ago Fabio Soares 51 -
5
votes2
answers23393
viewsHow to install numpy and other modules?
I need help installing numpy. I tried to install pygame using Pip but it didn’t work and I was confused on how to install modules or Packages. Use python 3.5.0 in Windows 10 pro
-
5
votes1
answer254
viewsSending an object through Session
I have the following object $compra = new Compra($usuario, $produto_comprado, $cep['cep'], $soma_produtos); When I try to add it into one $_SESSION[] and I try to get it on another page, it returns…
-
5
votes1
answer245
viewsHow to know the name of an image with JS?
I wrote a code in which he creates a slide of images in a div, I wonder if with Javascript it is possible to know the name of the image you are passing on the slide, because when the image appears,…
-
5
votes2
answers949
viewsHow to find the height and width of window WITHOUT JQUERY?
I’ve been asking myself that for some time. I’ve tried somehow to figure out the size of window (browser window) but could not get it. With jQuery I already know it’s just doing: $(window).height()…
javascriptasked 8 years, 11 months ago Wallace Maxters 102,340 -
5
votes5
answers3375
viewsConsole Application without showing console window
I have a Console Application in which I use to run routines of my system. I am running this console from the Task Scheduler, every time it runs it flashes on the screen. It opens, executes the…
-
5
votes2
answers4705
viewsLaravel database connection error
Use Mamp and configure the database.php file like this 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost:8889'), 'database' => env('DB_DATABASE', 'estoque_laravel'),…
-
5
votes4
answers3932
viewsHow to align 7 elements on the same line?
I’m developing this site in bootstrap http://raissafigueiredo.com.br/masterclinic/ However, downstairs in the specials section, I have 7 elements in the same line. I had to use a "technical…
-
5
votes2
answers351
viewsIs it possible to use $this with static methods?
Before questions or criticisms arise about not being able to do this simply because the methods static not having access to variables and public methods, private and protected, because they are…
-
5
votes1
answer544
viewsEncryption using java stacks
In an encrypted message using stack to invert each word of a String and using the chatAt(int) to pick up specific characters from it, I had the following problem, when placing a character on the…
-
5
votes1
answer354
viewsJSON output in a table
Good afternoon, And I put a search field, and as soon as the search is done, I popular a table with the users found.. The part of the query I managed to do, but now I’m not getting popular(actually…
-
5
votes2
answers1763
viewsComparing user typed variable with file variable
Inside of my file arquivo.txt I keep two strings "nome" and "senha", They lay one on the other. I need to take the name and password entered by the user and compare it with the name and password I…
-
5
votes1
answer3351
viewsMACRO in Excel - printing with sequential numbers
I have a macro from a few years ago that still works, when I click to print the production orders of my company, I put the start and end number, and the macro prints the Ops with the numbers in…
-
5
votes5
answers269
viewsChanging text in several different places of the HTML page
I’m thinking of developing a i18n for an application. My idea is: there is a text #i18n_label_name at a certain place on the page and #i18n_label_contact elsewhere. Question: What is the most…
-
5
votes2
answers135
viewsWhile with incomprehensible format
My knowledge in java is very basic, before that I came across a question to which I have not found answer. The code snippet below is used in some of my applications: File arquivo = new…
-
5
votes3
answers4269
viewsDetect browser language and redirect
I am using Wordpress and wanted to redirect my page to the "/br/","/es/" versions, when the browser language is one of these and when it is not it stay in the default page, that is the ". with". I…
-
5
votes2
answers168
viewsjava desktop "ajax" exists?
I wonder if there is any way to return the value to my java desktop application every time a value is added to a table. Something like ajax for browser. For example. We have the requested table and…
-
5
votes4
answers788
viewsGenerate random values from a distribution in Python
Hello! I’m trying to generate random values of a distribution (Gamma, normal and etc) in python, but I’m having trouble importing the library. I am using the following library "import scipy.special…
-
5
votes1
answer7203
viewsHow do I resolve the "No appenders could be found for logger" warning?
I am trying to configure Log4j in my project with JSF. I followed all the steps of a tutorial I found on Youtube. However, the following message is being sent: log4j:WARN No appenders could be found…
-
5
votes4
answers201
viewsSimplify IF instructions in PHP
Staff I am creating a PHP language raffle system here an excerpt of the code I started programming but the problem is that there are 19 different combinations This down here is just the first! there…
phpasked 8 years, 11 months ago Fabio Martins 109 -
5
votes2
answers1913
viewsQuery to pick text after a certain character
Good morning, I need a way to get all the rest of a string after a certain character, for example, I have the following database I always need to find what’s left of the string after the last "»"…
-
5
votes4
answers1603
viewsDoubt about "encrypted code" (obfuscated) in Javascript
I was wondering if this code is encrypted:…
javascriptasked 8 years, 11 months ago Josimara 1,965 -
5
votes2
answers1792
viewsJson output with json_encode()
json_encode() - Returns the JSON representation of a value If I do: $foo = array('a', 'b', 'c', 'd', 'e'); echo json_encode($foo); I’ll get: ["a","b","c","d","e"] So far so good, I’m taking an array…
-
5
votes2
answers393
viewsFirefox claims code after Return
Situation It was performing some maintenance functions on JS. And a certain function I placed a return in the midst of it, for the rest was no longer necessary. On seeing from the comment the rest…
-
5
votes2
answers19521
viewsVBA - Counting the number of filled cells in the row
Hey there, guys. I’m trying to create a code responsible for reading the number of filled cells in the lines.. I tried this way but I was unsuccessful. For b = 1 To rMaior contador =…
-
5
votes1
answer2438
viewsA break within two for actually works as a continue?
If I happen to have one break within two for, as in the example below: for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { break; } { The break won’t make the show come out of both for,…
-
5
votes1
answer876
viewsHow to build an executable/installer from a routine written in R?
I have several routines written in R, simple tools, which I would like to share with my colleagues. However, some of them do not have any knowledge in programming. So I want to facilitate the use of…
-
5
votes1
answer1118
viewsRead file in C
I am doing a project in C, which is necessary to create and read a file. I am having difficulty implementing the reading. In reading I tried to apply fgets(), fscanf() and the fread(). But none…
-
5
votes4
answers1466
viewsCamelcase conversion function
I already have a function where it performs the conversion of strings for Slug. Below I will give examples for facilitation in understanding my question. 3 examples before conversion: link para uma…