Most voted questions
150,413 questions
Sort by count of
-
4
votes6
answers8595
viewsjavascript loop with Sleep
How would I make a for or any kind of loop showed the result respecting the time of 1 second for example between an iteration and another? I tried it and it didn’t work: for( var i=0; i < 10; i++…
javascriptasked 8 years, 9 months ago SneepS NinjA 7,691 -
4
votes1
answer169
viewsAutomate DDD
There is a faster way to create a structure on Asp.net mvc using DDD (plugin or framework)? For example, whenever you create a new entity, you need to create many files in several projects and also…
-
4
votes2
answers1086
viewsRegular expression to detect the credit card flag when there are specific characters in the number
I need to create a regular expression (Regex) that can identify the card number even when there are specific characters between the numbers, Example: Current regex:…
regexasked 8 years, 9 months ago Marcus Souza 41 -
4
votes3
answers2578
viewsPass Token by header to each Angularjs request
I am implementing tokens in a system, I already have the token generated and saved the same in sessionStorage. How can I create a service or Interceptor to put this token on Header of each request?…
angularjsasked 8 years, 9 months ago DiegoAugusto 8,694 -
4
votes2
answers1267
viewsDynamically update application
I’m developing a project Java EE where we’ll have a database for each customer, currently use server Wildly. Let’s say we have a server with 30 clients, it would be a server with 30 different…
javaasked 8 years, 9 months ago MauricioGuedes 81 -
4
votes1
answer5408
viewsProblem when using Select
I’m trying to use the form select of this site here: http://materializecss.com/forms.html But when I put on my site the only thing that appears is this: "Materialize Multiple Select" Someone knows…
-
4
votes1
answer107
viewsMeaning of the operator?
What is the function of by one !! in an if for example? know what ! by itself reverses the value of a boolean result, but tested the !! and nothing changed in the result, example: $teste = true;…
-
4
votes2
answers2985
viewsdompdf php to pdf
I’m using the DomPDF to generate the pdf. The point is that I can’t convert my html to pdf. My html is generated by several lines of php with variables and etc... I already tried passing a variable…
-
4
votes2
answers403
viewsHow to filter in LINQ for every X months?
Hello, I would like to know the best way to filter a list of objects using LINQ in C#, I have a list of objects called Measuring, each measurement has a Data property, which is the date that was…
-
4
votes2
answers6722
viewsDisplay input value date type
I have the following input: <p>Data Saída:</p> <input type="date" maxlength="10" id="saida" name="saida" value="29/01/2016"/> It is being shown as follows: But I want to display…
-
4
votes1
answer180
viewsView all PHP scripts running via SSH in real time
I have some scripts that do a data Mining job, and in some cases need to run long processes that can consume a lot of CPU. I need to find a command via SSH to monitor all running PHP scripts.…
-
4
votes2
answers341
viewsDoubt in a Java exercise
I was looking for some Java exercises to train and learn some algorithms when I came across the site exercism. and I decided to do their Java exercises. So far so good, I downloaded their app using…
-
4
votes1
answer70
viewsDetect copied text
How to perform an action whenever someone copies some text in Keyboard android? And would have to use a service to leave running all the time?
androidasked 8 years, 9 months ago felipe.rce 1,969 -
4
votes4
answers156
viewsHow to avoid repetition in LINQ queries?
I have the following query LINQ which is in a method that returns all products: var query = from p in Produtos select new Produto { ProdutoId = p.ProdutoId, Descricao = p.Descricao, Preco = p.Preco,…
-
4
votes2
answers69
viewsIF to check quantity needed for given KG
I need to do an IF in Javascript. I will explain: A customer sells: Barrels of 40kg. Tube of 3 kg. I don’t know how to do this IF. The idea is, show in the field qtd40kg Only multiples of 40, which…
-
4
votes2
answers999
viewsHow to read data with variables in lines, in Rstudio?
I am starting with the R language in Rstudio. I am an advanced MATLAB user but with difficulties in R. My question is: I have a spreadsheet where each row is a variable and each column is an…
-
4
votes3
answers2164
viewsWhat is the use of the two points in Javascript?
What is the use of the two points : in Javascript, as the example below: function paciente(nome, idade, altura) { var clazz = { imprime: function() { alert("nome: " + nome + ", idade: " + idade); }…
javascriptasked 8 years, 9 months ago Emanoel 1,621 -
4
votes2
answers426
viewsClass relationship - (C# Entityframework)
Hello, I have a Person Class and an Address Class Ex. public class Pessoa { public int Id { get; set; } public string Nome { get; set; } ... public Endereco Endereco { get; set; } } public class…
-
4
votes4
answers7150
viewsIn inheritance with private attributes, does not the daughter class take its attributes from the mother class?
The devmedia article says the modifier private does not give access to its attributes in its child classes. It has a table with modifiers. In inheritance with private attributes, the daughter class…
-
4
votes1
answer446
viewsHow to enable PHP Sessions in Wordpress?
I am developing my site using the Wordpress platform. I really, really needed to enable PHP Sessions within the platform, for logged users to stay logged in within the subdomains I’m creating. Any…
-
4
votes1
answer1608
viewsProgressbar and Backgroundworker in C#
I’m creating an app with Firebird 2.5 in which I need her to read a file .sql with instructions to popular the database if it has not yet been done this process, because it is a little long and not…
-
4
votes2
answers34966
viewsWhat is the correct way to use the Location header?
I am doing a course of PHP and Mysql in Alura and arrived at the part where we build the code that removes the product from the database. The page calling the delete function has to redirect the…
-
4
votes1
answer506
viewsVariable without initializing
I did a basic function of squaring (exercise of a book), and I use a variable named aux and the use to calculate the power value squared, but the compiler claims that aux is not initialized, I would…
-
4
votes1
answer480
viewsUser registration and password
I have an acceptance problem. After configuring Microsoft.AspNet.WebPages.WebData and the corresponding classes, the system correctly created the tables in the database so that I could implement the…
-
4
votes1
answer648
viewsaccent problems when running php
Good morning guys, I’m having trouble executing the code php in the browser, in any browser, it does not recognize the accent. It was necessary to use the following line of code for the accent to be…
-
4
votes1
answer112
viewsYour Ruby version is 2.0.0, but your Gemfile specified 2.2.2
I can’t spin the bundle install in my project, when I spin it appears Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2. But I’ve already made one rbenv local 2.2.2and when I spin the…
rubyasked 8 years, 9 months ago user27585 -
4
votes3
answers1999
viewsIs it possible to develop mobile multiplatform using Java?
I am migrating the development of my applications to Java to build native applications for Android. I’d like to expand my apps to other platforms, like iOS and Windows Phone. You can do this with…
-
4
votes1
answer110
viewsDeserialize Json List
For when the return is only 1 record I use the following: { "id": "27", "name": "Daft Punk", "link": "https://www.deezer.com/artist/27", "share":…
-
4
votes1
answer402
viewsUpdate One to Many Entity Framework
Hello, I need help with an update using Entity framework and relationship one for many. I believe it is something very basic, but I’m starting with EF and I can’t solve the problem. Artist and…
-
4
votes1
answer2541
viewsHow do I leave a gray-tinted image in cross-browser css?
I’m trying like this: img { filter: gray; /* IE6-9 */ filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */ -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */ }…
cssasked 8 years, 10 months ago Gabriel Rodrigues 15,969 -
4
votes1
answer621
viewsHow to have two or more dynamic filters in the same product group with Javascript?
The code works on the first filter but when I choose the second filter it performs a new search and ignores the first one. How do I get the filters to work simultaneously. Follows the code…
-
4
votes4
answers82
viewsDoubt with height in a DIV
I have a problem that seems very simple to me and I’ve done it before, but I just don’t remember how! Assuming a page with 3 Ivs (header, content and footer) how do I make the content div take up…
-
4
votes1
answer70
viewsUitableview with customized and resizable Uitableviewcell
I’m creating a chat for Ios in Objective C, and I use custom Uitableviewcell. My difficulty is in resizing Cell as the text in the chat, as the image: And this second screen, it’s like this, with…
-
4
votes1
answer324
viewsInitial Value Sequences Postgresql - Laravel 5.1
Good morning, I am running some tests on my application, but I have the following problem: After the migrate and the db:seed, whenever I will enter some record by applying a duplicated primary key…
-
4
votes1
answer52
viewsIs it necessary to repeat dependencies (JAR)?
I have an "A project" that uses a java library . JAR , which is inside the dependencies. I exported this project to . JAR to use in "project B". This project B also needs to use the same library. I…
javaasked 8 years, 10 months ago Rodrigo Santiago 1,822 -
4
votes1
answer1886
viewsSQL: How to Count Values in Different Columns
I would like to know how to count values in different columns. Generic example: ID - COLUNA1 - COLUNA2 1 - foo - Bar 2 - - Foo 3 - Qux - Bar 4 - Bar - I hope as a result count - value 2 - Foo 3 -…
-
4
votes2
answers384
views"Text" type input similar to the Stack Overflow tag system
How to make a input of the kind text to use in a form I need to add tags, just as in Stack Overflow? Observing To whom to answer, the answer can be extremely large if you quote the server-side…
-
4
votes1
answer670
viewsHow to make the text fit in the text box on Android?
To set a range for the font size for the text to automatically adjust in the text box Android (TextView) the extent to which it is entering or inserting. There is a configuration to do on Android…
-
4
votes1
answer924
viewsHow to query a web api by passing parameters using Angularjs?
I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function…
-
4
votes2
answers9897
viewsWhat is JPA’s mappedBy for?
Example: @OneToMany(mappedBy = "chemical", fetch = FetchType.LAZY) @LazyCollection(LazyCollectionOption.EXTRA) @JsonIgnore private List<SimulationChemicals> simulationChemicals; Why is the use…
-
4
votes1
answer102
viewsAccept terms of use
What should be captured from the user when he or she clicks to accept the terms of use of my system, app or website? Usually I hear people saying that should be captured the IP and Date Time, more…
ipasked 8 years, 10 months ago Jhonatan Simões 990 -
4
votes3
answers23189
viewsRecursive and iterative function that calculates the factorial from 1 to n
Good people, wanted help with an exercise: It asks to create a function that calculates the factorial of the numbers from 1 to n. I already have the recursive part, but I don’t know how to make it…
-
4
votes2
answers1104
viewsShow an object/variable with different names in R?
Considering the following routine: x <- 1:10 for (i in 1:length(x)) { ## Nome da variável: nomevar <- paste0("Var_", i) var <- x[i] + 2 assign(nomevar, var) print(nomevar) # aqui esta minha…
-
4
votes0
answers51
viewsSum of profiles in the Maven?
Setting: I have 10 customers, 3 of them use Websphere , 10 use Tomcat, 7 use jboss. in the pom.xml <profile> <id>cliente01</id> <dependencies> <!-- depencias para…
mavenasked 8 years, 10 months ago Bruno Rozendo 1,339 -
4
votes1
answer4693
viewsThere is a way to know the name of the Database Server
There is an sql command that can inform the server and the database in which select is running? I am available for more details
-
4
votes2
answers22615
viewsUpdate the R version of Rstudio?
The version of the R I have installed is outdated. What is the procedure to update the R considering that I use Rstudio in Windows?
-
4
votes3
answers153
viewsDatabase with php
I am trying to perform a database query with the following script: <?php require("conexao.php"); $exibir = mysql_query("SELECT * FROM produtos"); while ($r = mysql_fetch_array($exibir)){ $id =…
-
4
votes1
answer38
viewsJava+Database - Add Scroll to existing user via Java
Mongodb use with Java and accurate, through Java run the following command on mongoDB: db.grantRolesToUser( "joao", [ {role:"dbOwner",db:"loja"} ] ) That is, I need to add a scroll to an existing…
-
4
votes1
answer7391
viewsAccess by Phpmyadmin ip
Inside the folder c: wamp alias phpmyadmin.conf there is the line below to free phpmyadmin access for all machines in the network: <IfDefine APACHE24> Require all granted I wonder if there is…
-
4
votes1
answer688
viewsAmbiguous column - Laravel 5.1
Good morning! Here’s the thing... I have these 2 tables in my postgresql database: tipos_risco --id --nome agentes_risco --id --nome --id_tipo_risco (foreign key) The problem is I’m not getting the…