Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer100
viewsUnexecuted entry
I’m a beginner in development and I’m doing a job for college, but in my case of Register Creation line 147 (cadastro[1][codigo] = entrada.nextLine();) that would receive the customer name data is…
-
6
votes1
answer329
viewslocate php.ini in Cpanel
I need to edit the php.ini no Cpanel, but I can’t find the service configuration panel. I’m trying to send email with codeigniter in the localhost worked using Xampp, but online at Cpanel gives this…
codeigniterasked 10 years, 11 months ago Miambo 61 -
6
votes1
answer344
viewsWhy is @import not working properly?
I’m trying to import one CSS into another but it’s not working, the directory structure is like this: css style. css/agoravou.css But the command is not working @import url('css/agoravou.css')…
-
6
votes4
answers4991
viewsDatatable does not order correctly
I’m using the plugin datatables to paginate results in a table. The problem is that the first column has 3 dates: 26/11/2015 19/11/2015 03/12/2015 I need to order the results of dataTables based on…
-
6
votes1
answer410
viewsError in Javascript form validation
I have a validation error when I press the button input of submit he does not test the function Javascript and goes right to where the action is telling to go. <HTML> <HEAD>…
-
6
votes1
answer1243
viewsJava Thread Synchronization (synchronize collections)
I have defined a Thread in Java where I intend to simulate planes arriving and departing from the airport, the class Aviao contains only number and 10 passengers public class Aviao { //numero de…
-
6
votes0
answers407
viewsAdd or decrease columns and rows in the table
I have a table where I want to add or decrease new rows and columns, through the button click event, I tried this way, as the code below, but it’s not working very well: This example of how it…
-
6
votes1
answer69
viewsDifferent color layout in Textbox (Safari and Chrome)
Safari is fading colors inside that are not @Html.Comboboxfor, as I do not fade into the textbox? I’m using CSS and Jquery, Follow the photo Select does not fade in Safari: @Html.DropDownListFor(m…
-
6
votes0
answers54
viewsRedirect a virtual url
How do I redirect a url from my website to a subfolder. Example: Database: ID | ENDEREÇO | ESCREVER NO INDEX.PHP 1 | example.com/extranet | <span>Sou o extranet</span> 2 |…
-
6
votes2
answers64
viewshow do I return two times using the COUNT(*) function
SELECT COUNT(*) AS contador, hora_efetivada FROM minha_tabela WHERE status=2 I have a counter that returns the total value of status 2 in the database, but in my name column hora_efetivada there are…
-
6
votes2
answers3602
viewsStore credentials from a Git repository on Windows without SSH
How to set up Git in a local repository so you don’t ask for the login and password every time you push or pull? My Git server does not support SSH. HTTP only. I have only the username and the…
-
6
votes2
answers233
viewsWhy create the __proto__property when using Object.create?
I just asked that question How to clone an object in javascript? And another question came to me. When I create an object from another with Object.create the attribute is added to the new object…
javascriptasked 10 years, 11 months ago Wallace Maxters 102,340 -
6
votes1
answer1271
viewsRelationship Problem Many to Many in the Entity Framework
I have the following situation: To perform an authentication, I’m using the old method for a small application, for assigning levels (roles), as many examples are found all over the web. Use EF and…
-
6
votes3
answers178
viewsHow to capture a Nullreferenceexception?
When I test my application, it returns some specific data, but when the requested data is null, this untreated exception error appears I tried to capture him but I think I’m making a mistake. How…
-
6
votes1
answer3999
viewsHow to consume a SOAP Webservice with Angularjs?
Well, I have a SOAP Webservice that is consumed normally by a PHP client, working perfectly... by ajax this php consumption and populate my template.. My current application makes the following…
-
6
votes1
answer79
viewsOnmouseover with Delay when exchanging image
I’m wearing a onmouseover, but it is giving delay from 0.5 to 1 second to change the image, when I put in my hosting. <li> <img…
javascriptasked 10 years, 11 months ago kaiquemix 607 -
6
votes1
answer637
viewsHow to link a specific div from another PHP page
I have a one page site, where I have an external page with a menu, and the same needs to link the DIVS of my home (one page). Example: On my external page, when clicking on the Videos menu, I will…
-
6
votes1
answer671
viewsError after performing an action redirect to a page
I believe I am going wrong the code below, it should after saving the Client and redirect to Client/Index page, but after saving is on the same page, using Debug it passes in Client/Index(Action and…
-
6
votes1
answer278
viewsBlock Scroll on one side of the grid
I divided my page with a grid, where the smallest part I put items q direct to page locations, I wanted to know how to let this smaller fixed part and the scroll work only in the largest part of the…
-
6
votes2
answers525
viewsOpen java PDF on another machine
I did a function that I can open a PDF, but this function is only working on my local machine. When I run . jar generated on another machine, an error is issued that the Pdfnão file exists. The…
-
6
votes1
answer696
viewsAngularjs duplicating (briefly) ng-repeat list while making new insertions in the bank
I’m working with an application where in a view I own the product register of a company, or its customers, suppliers, etc. Each view meets a specific area, but each view works with diverse data and…
angularjsasked 10 years, 11 months ago celsomtrindade 8,038 -
6
votes1
answer2189
viewsUsing while inside while in PHP
What happens in my PHP code is the following: I make a query in the database and with it a DO WHILE (while this query returns records), it displays some information on the screen (based on the…
-
6
votes1
answer406
viewsAuthorization in Asp.Net MVC
I’ll try to be clear. In most examples of ASP.NET MVC authentication and access authorization, I see that authorization control is usually done on Controller, with the decoration of the class itself…
-
6
votes1
answer1709
viewsWhat’s the difference and benefits of using @@IDENTITY and OUTPUT INSERTED.ID
I’ve always used the @@IDENTITY to get the last inserted identity value, as in the example below. create Proc [dbo].[Arquivos] @IdArquivo int, @IdArquivo_Out int output as begin Set Xact_Abort on…
-
6
votes2
answers913
views$http.get with Angular JS
searching for data from an api through $http.get, but I find an error. My request within a service: app.service('pessoas',function($http){ this.getHumanos = function(callback){…
-
6
votes5
answers1382
viewsNo return on method?
I have a method where its function is to read a file and store the value written in the file in a variable and return the variable,: public String addItemCreative(File f){ String line = null; try{…
-
6
votes1
answer355
viewsDetect when user presses ENTER
I have a jQuery code that detects when the key ENTER is pressed, but the event is also called when I use Shift + ENTER, for example. How do I detect only the ENTER? The intention is to send the form…
jqueryasked 10 years, 11 months ago Eduardo Silva 3,449 -
6
votes3
answers72
viewsPage does Submit even with validation error
Hello, I’m having trouble with a page because it’s doing Submit even when validation returns false. $("#botao1").click(function() { $.ajax({ url : 'adicionadaIdeia', type : 'POST', async : false,…
-
6
votes4
answers11049
viewsHow to select in 3 tables?
I need to do SELECT in two tables with relationship n for n, soon, I will have to make use of the intermediate table as well, but I don’t know how to do it. I am using PHP and Sqlserver database.…
-
6
votes1
answer942
viewsRemove noise, dots and image strokes
I would like to know how I can process a captcha image to remove noise, strokes and dots. Here are examples of how you are and how I’d like you to stay. Original Image: Adjusted Image:…
-
6
votes3
answers155
viewsHow to test Filters that verify Claims data?
I own a ActionFilter for some controllers and actions that make use of the user information that are in Claims. The filter itself obtains information from Claims user and executes the authorization…
-
6
votes1
answer1113
viewsSet default value for database column in Laravel 4
How can I add a default value to a column of my Mysql table via Laravel 4? In SQL would be: create table tabelaTeste( id int NOT NULL AUTO_INCREMENT, coluna1 varchar(50) DEFAULT valor, PRIMARY…
-
6
votes3
answers1463
viewsPlace images in a div with jquery
How can I place certain images in a div using jquery by clicking the button? Follows the html: <div> <button id="btn2015" class="btn">2015</button> <button id="btn2014"…
-
6
votes1
answer977
viewsInsert data into an External Json
How to insert data into an external Json file: var json = { caminho: "img/minhaIMG.png", descricao: "minha descricão" } How can I enter new data into this json file? In my case, I would use it as a…
-
6
votes4
answers668
viewsRetrieve dynamic input and insert into the bank with Procedure
I’m having trouble inserting incoming data from a dynamic input. My Procedure only inserts once, follows my code where I receive the data: $ddd = $_POST['ddd']; $userid = $_POST['userid'];…
-
6
votes2
answers984
viewsCodeigniter session expiring after an action
I made an administrative panel using CodeIgniter and every time the session is expiring, thus redirecting to the login screen. Every time for example, that I edit a category, after edited and click…
-
6
votes2
answers475
viewsInstallation Do icheck
I can’t seem to do the icheck work i install I do the inclusion of css and js files in my index and even then it does not work checkboxes and radiobuttons remain the same thing, someone can help me…
-
6
votes1
answer2324
viewsValidate maximum size of an attachment
Good afternoon, you guys, I need to validate the maximum size of an attachment but my code is not working, can help me? Follow the code below: HTML: @using (Html.BeginForm("AdicionarAnexo", "Turma",…
-
6
votes1
answer195
viewsApplication of more than one Pattern design
I’ve been studying about Patterns design and I thought it was really cool, but there was one thing I couldn’t understand. Regarding Patterns design, can I apply more than one of them to the same…
-
6
votes1
answer954
viewsRecord video file after capture on site
I have a page that captures a video + audio from the user using HTML5 and Javascript. The code follows: <video width="600" height="400"></video> <input type="button" id="stopbt"…
-
6
votes2
answers228
viewsChoose option through a choice previously made
I’m new to Javascript and needed to know what code I can use for this situation: For example, I have a column called "Product" which is of choice type and I wanted to select an option from that…
javascriptasked 10 years, 11 months ago Andre Brandao 109 -
6
votes1
answer9796
viewsWhat is the shortcut in Workbench to run the whole script
I know that the shortcut to run a line is Ctrl + enter. But so far I haven’t found the shortcut to run the whole script.
mysql-workbenchasked 10 years, 11 months ago MarlonJhow 645 -
6
votes1
answer798
viewsCreate extension to manipulate DOM from other pages
I wonder if you have any way to manipulate the DOM of another page with my extension. Ex: I open the extension popup and there is a button, and this button I call a Javascript function: var n1 =…
-
6
votes1
answer71
viewsWhy can’t I display Messageboxbuttons if it’s not a string?
'Cause I’m having trouble showing off MessageBoxButtons if it is not a string? static void Main() { string texto = "Minha primeira MessageBox"; MessageBoxButtons botao = MessageBoxButtons.OKCancel;…
-
6
votes2
answers2271
viewsIs working with Session safe?
Example, if I create a session session_start(); $_SESSION['nome'] = $nome; #valor pegado anteriormente. The end user can view and(or) edit the data contained in it?…
-
6
votes1
answer323
viewsDeveloping in Python with Visual Studio 2013
I want to develop in Python using Visual Studio 2013 or 2015 because I’m already used to the IDE, but I have no experience with the language. In the English OS there is a question that lists Visual…
-
6
votes3
answers2079
viewsArray value with highest occurrence
In an array, example [1, 2, 3, 4, 5, 2, 2, 3], what logics, methods and functions can I use to pick up the value with the highest occurrence, as in this example the 2.…
javascriptasked 10 years, 11 months ago Lucas Fontes Gaspareto 3,656 -
6
votes3
answers647
viewsAuthorization of users to actions using the Authorize attribute
I put the [Authorize] in my controllers and I inserted this code: <authentication mode="Forms"> <forms loginUrl="/Login/Login" /> </authentication>` For whenever the 401 code…
-
6
votes3
answers699
viewsSearch word with file_get_contents
How can I use file_get_contents to search for the word "team" on the site and if it locates the word echo in the word? <?php $content = file_get_contents( 'https://www.hostgator.com.br' ); $busca…
-
6
votes1
answer117
viewsHow to export a polygon created by drawPoly as shapefile?
I created a shape using the function drawPoly() (bundle raster) that draws the polygon manually. At the end of the selection it generates a SpatialPolygon, but I can’t export because I’m not a…
rasked 10 years, 11 months ago Vivian Ribeiro 195