Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers315
viewsWrite Fileupload Path inside an ASP.NET Updatepanel
Expensive, The question of my doubt is very simple. How do I save the path of my Fileupload file to some control or Viewstate, with this Fileupload being inside an Updatepanel? I’m actually using…
-
4
votes1
answer214
viewsWhy does javascript "{} + []" equal 0?
I was watching a video that was shown to me by the user @CiganoMorrisonMendez, called WAT. There were some examples where they showed some bizarre things present in some languages. In particular…
-
4
votes1
answer347
viewsTwo __Construct() Functions in the Same Project
I can’t have two functions __Construct() in my project Laravel ? There is one in Controller.php and wanted to build one __Construct in another Controller. Just give me variable errors on the…
laravelasked 8 years, 5 months ago Diego Souza 16,524 -
4
votes1
answer451
viewsBlock fields in Subforms in MS Access
I have the following form with a Subform: And I need to enable Check in "Approve3" and lock the other fields, but I can only get "LOCK" all or none, how can I go around? Maybe by flying in? I…
-
4
votes1
answer1018
viewsCodeigniter 3 - HMVC - Problem with routes, Not Found or Failed to Load Session.php
My scenario is this:: I am using Codeigniter 3 with HMVC, while doing only local development, I had no problems with XAMPP with Windows, I went up to my test server which is an Ubuntu Server and…
-
4
votes1
answer630
viewsHow to use a counter inside a Hashmap?
It is possible to do this? public static void main(String[] args) { Scanner in = new Scanner (System.in); Map <String,Integer> mapa = new HashMap <String,Integer>(); mapa.put("45 - Jose"…
-
4
votes2
answers87
viewsHow to draw items from a Listbox using quicksort
I am carrying out a project for the University that consists in carrying out a software that makes the 'Sort' of a listbox using quicksort , Blubblesort etc... In VB.NET I made an array to generate…
-
4
votes1
answer5086
viewsHow to "Copy and Paste" a VBA form?
I have a form ready that I want to take advantage of everything I did for him but in another form, it would be the case to do something similar to "Copy and Paste", has how to do?
-
4
votes1
answer1572
viewsHow to chart profiles in R?
I’m trying to create a profile chart for this data frame that I titled "Femi": This is the data code: structure(list(oito = c(21, 21, 20.5, 23.5, 21.5, 20, 21.5, 23, 20, 16.5, 24.5), dez = c(20,…
rasked 8 years, 5 months ago Cloves Paiva 369 -
4
votes1
answer2735
viewsCalculate with select output
How can I make a calculation in select below? I made the sums of quantities and values, now I need to take these sums and make a balance. Would that be: qtd_type_0 - qtd_type_1 - qtd_type_2 and…
-
4
votes2
answers5070
viewsHow to display a certain position of an associative array?
This is my array associative: $vetor = array( "Nome"=> "posicao1", "Telefone"=> "posicao2", "Idade"=> "posicao3", "Sexo"=> "posicao4" ); To display its contents I can use the foreach();…
-
4
votes3
answers1114
viewsError on line 0 (zero)? How can this?
In PHP, when an error occurs, usually the line of the script where it occurred is informed: Undefined index 'a' in line 5 But there are times when error is returned on line 0 (zero). Example: Fatal…
phpasked 8 years, 5 months ago Wallace Maxters 102,340 -
4
votes1
answer124
views -
4
votes1
answer220
viewsWhy does the expression "$a->b->c->d->e->f->g->h->i->j =& $null;" return several objects within each other, and it doesn’t even exist?
I was doing some tests with value assignments by PHP references and came across a curious example. $a->b->c->d->e->f->g->h->i->j =& $null; Both the variables $a and…
-
4
votes2
answers569
viewsReturn Datareader to bool field
I need to return a field that is of the type bool: public List<TB_USUARIO> ListarTodos() { var strQuery = "select * from tb_usuario"; using (contexto = new Contexto()) { var retornoDataReader…
-
4
votes1
answer979
viewsFunction that converts hexadecimal to binary
Is there any function equivalent to bin2hex() from PHP to C#? I need to convert a hexadecimal to binary. I tried to use the TryParse but it hasn’t worked out.
-
4
votes2
answers282
viewsFilter string REGEX C#
I have a string that returns all the content of an html page. On this page, you have the following line: <input style="width: 2.3em;" id="nacional" value="3,48" type="text"> I need only the…
-
4
votes2
answers805
viewsHow to define a global alias in BASH?
I’m using the Terminal in the Linux and I’m tired of repeating the same commands all the time. For example, I use a command practically all day, then I create an alias to make things easier.…
-
4
votes1
answer799
viewsUML - Use Case Specification
I have to specify a use case 'Register Company (CRUD)', which is used by 3 actors: Employee (Who can only change the temperature registered in the company) Attendant (Which is employee…
-
4
votes1
answer1187
viewsTomcat 8 + Mysql + Hibernate > Name [jdbc/toca_data] is not bound in this Context. Unable to find [jdbc]
I’m having serious problems with an application, I’m trying to set up and nothing. As I am beginner in the web part, I will say first what I understood: Tomcat needs settings (xml) to work with…
-
4
votes0
answers52
viewsObject and Procedural Oriented Programming in PHP at the same time
Guys I have a PHP system that I have been developing for over a year. It was written practically procedural, because I adapted better, and I find it simpler to work. My question is the following:…
-
4
votes2
answers961
viewsBest practice for empty folders in . gitignore
Some people told me that the correct thing is to create an empty file and put inside each folder and set one .gitignore thus: /pasta/subpasta/* !/pasta/subpasta/.arquivovazio And other people told…
-
4
votes1
answer3028
viewsHow to create more than one graph in matplotlib?
I need to create graphs of histograms in python with lists resulting from transformations. My doubt is that whenever I run the program, the next image only appears after I close the previous one.…
-
4
votes1
answer1202
viewsHow to ignore elements escaped in a rule in regular expression?
I’m wanting to do with regex (regular expression), for example (if it’s javascript): var str = '[abc\[0123\]] [efg\[987\]h] [olá \[mundo\]!] [foo [baz]]'; str.match(/\[(.*?)\]/g); Exit:…
-
4
votes2
answers3351
viewsHow do I create a Checkbox using the Html.Checkboxfor Helper for a Nullable field?
My field is as follows in my class: public bool? meuCampo { get; set; } And in my view it’s like this: @Html.CheckBoxFor(m => m.meuCampo) Only that way it’s not allowed, because I can’t…
-
4
votes1
answer605
viewsProblem Recovering User Geolocation
I’m having trouble retrieving user geolocation on the site. Localhost works, but not on the network. I’m guessing the problem is that it has no SSL certificate and the site is accessed by HTTP and…
javascriptasked 8 years, 6 months ago Diego Souza 16,524 -
4
votes2
answers245
viewsHow to toggle between List and Gallery
What I intend to create is similar to Grid view used in systems of the type Mercado Livre. It would be a function done in javascript that switches between a List or Gallery, using the same data in…
-
4
votes1
answer105
viewsVector reading in C is wrong
struct cadastro{ int codigo; char nome[200]; char cpf[11]; char rg[10]; char tel[12]; char end[100]; }cadastro;//struct do tipo cadastro. struct cadastro cd[max];//vetor da funcao cadastro de…
-
4
votes2
answers109
viewsWhy is 8 showing up and not the number referring to i?
<style> .menu > li:hover .sub-menu{ display:block; } </style> <ul class="menu"> <li>li 1</li> <li>li 2</li> <li>li 3 <ul class="sub-menu">…
-
4
votes1
answer270
viewsA: Insert date difference in a time difference function
I found a function made by J.Ahumada and found it super interesting, everything to do with my work. The function is to separate photographic records of a species into a given sample unit(ua) from a…
-
4
votes1
answer122
viewsRead elements from a file
Hi, I have a big problem! I have to read two very large numbers of a file and save each position in a list. I’m using fgetc to pick up each element, the two numbers are separated by a blank space,…
-
4
votes1
answer563
viewsAlgorithm to find common word sequence
I’m looking for a logic where I can find in an exorbitant amount of data, phrases that are common. Phrase in this context is word sequence. For example in these prayers: I’m traveling to South…
-
4
votes3
answers195
viewsCan you do a + or - value operation in a Mysql query?
Example: select quantidade from tabela where quantidade é mais ou menos = '5'; Does anyone know any way to do this in Mysql? I have an approximate value of 5 and I would like to bring it from the…
mysqlasked 8 years, 6 months ago eduardo belini 79 -
4
votes1
answer117
viewsDate and Time and Weekend
I have a script, which makes automatic scheduling of tasks. Through the line below, I take the current date/time, add another 5 minutes, and the script is scheduled. $timeStamp = strtotime("+5…
-
4
votes1
answer664
viewsUse 'WHERE' if value is different from 'NULL' in a search system
I’m trying to make a simple search system with some text fields: $nome = $request->nome; $email = $request->email; $bairro = $request->bairro; $request = Contato::where('nome', 'like',…
-
4
votes2
answers70
views$. GET Jquery Dùvida
I have the method: RepoApi.prototype.getContributors = function() { var returnList = []; $.get(this.url).done(function(response) { console.log(response); returnList = response;…
-
4
votes1
answer126
viewsError in JSF converter
I’m having trouble converting JSF, always returns null. Convert Project: @FacesConverter("projetoConverter") public class ProjetoConverter implements Converter { @Override public Object…
-
4
votes1
answer7212
viewsPass Array as a function parameter
Make a program in C that reads a value x, dynamically create a vector of x elements and pass this vector to a function that will read the elements of this vector. Then, in the main program, the…
-
4
votes3
answers113
viewsHow to implement custom features in a model on . NET?
I needed to implement some features in the model users but as you can see early on this class is automatically generated by Entity, so whenever I upgrade or recreate the model the custom…
-
4
votes1
answer3305
viewsChange the icons from the Navigation Drawer menu
I would like to know how to exchange these icons: I found the screen, but when I click it does not show me the way to make the change but only colors in RGBA :…
androidasked 8 years, 6 months ago Artur Mafezzoli Júnior 441 -
4
votes1
answer234
viewsRecover css with jQuery
Galera set up a table where I click with the right button and the line turns yellow, and displays a menu. Everything works 100%. The problem is that when I click elsewhere and the menu closes and…
-
4
votes1
answer574
viewsHow to redirect to the login page after a certain idle PHP time?
As the title of the question says I would like at a certain time where the user is idle, and so the system destroys the session and automatically redirects to the login page. I know php has the…
-
4
votes3
answers2971
viewsGenerate an xml in c#
I need to create an application, where the data will be saved in a local xml and then sent to a server using wcf. However I am with the following doubts what I do in the client and what I do in the…
-
4
votes2
answers2566
viewsLogin with Windows Authentication on IIS
I have a base Sqlserver 2008 where all users can connect to it via Windows domain, this works properly via SQL Management Studio. I am making a C# Application in MVC, and I wanted that when the user…
-
4
votes3
answers3650
viewsScanf function with variable amount of parameters, how to implement?
I have a text file (txt) that contains the following values: 12 90 These two values I keep and my variables a and b, that is to say a is equal 12 and b is equal 90, and I’m using the function…
-
4
votes2
answers4673
viewsHow to simulate a keystroke with jQuery?
I wonder if there is any way to simulate pressing keys with jQuery. For example, when clicking a button, simulate that the "down" and "left" keys were pressed, as if the user had a keyboard.…
-
4
votes0
answers69
viewsError when compiling Phalcon on AWS Amazon
I tried to install phalcon php on Amazon AWS, I had the error below libtool: compile: gcc -I. -I/home/ec2-user/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/ec2-user/cphalcon/build/64bits/include…
-
4
votes1
answer819
viewsHow to customize a Select in columns?
Guys I have a select that shows CODE | TITLE | DESCRIPTION | UF 0001 | TESTE1 | NEW ITEM 1 | SP 0002 | TESTE2 | NEW ITEM ADD 2 | SC See that the column is disfigured, I would like to align this with…
-
4
votes1
answer1269
viewsassign variable with id dynamically via jquery
Hello What I need is this: have a form and on it I mount inputs whose values are the data of a table I run in a loop, I assign an id to each of these imputs with the field name and the number of an…
-
4
votes1
answer442
viewsCopying string stored in pointer
What is wrong? #include <stdio.h> #include <string.h> int main(void) { char *str= " teste"; int j = 0; while(str[j] == ' ') j++; memcpy(str, &str[j], strlen(&str[j])+1);…