Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers638
viewsInsert checkbox dynamically by returning Json does not display Text?
I’m creating a list of Checkbox according to the selection of a Select on the same screen. No event change of select is called via ajax javascript, the method that returns a Json with list(value,…
-
4
votes2
answers536
viewsHow to place 3 Adsense link ads side by side?
How to place 3 Adsense link ads side by side like this ?…
-
4
votes2
answers775
viewsWhat is the real difference between these three ways of changing from one Activity to another?
Guys I have knowledge of three forms that through a simple click on a given button, it passes from the current Activity to another. I would like to know which of these three ways is the best taking…
-
4
votes1
answer57
viewsHow to initialize objects already declaring values?
For example in this code: public class Main { public static void main(String[] args) { Point p = new Point(); } } class Point { int x; int y; } There is a way to declare values to x and y while…
-
4
votes2
answers402
viewsHow to make a span display the value of a range as you move it with your mouse?
The function is working, but I want to update the value in <span> as I move the mouse. Someone can help? function mostrarPorcentagem(novoValor) {…
-
4
votes3
answers20580
viewsClose modal bootstrap automatically when send form
I have a bootstrap modal whose same has a contact form: HTML: Thank you! Your form has been sent successfully and as soon as possible will be answered. <div class="modal fade" id="contactModal"…
-
4
votes2
answers1474
viewsIs it possible to do an INSERT and UPDATE in the same query in java?
I wonder if it is possible to make one INSERT and a UPDATE in the same query, that is, in the same operation. I’m using the following to do both operations. public Connection conn = null; ... conn =…
-
4
votes1
answer1035
viewsHow to move the mouse automatically, realistically, using Python?
How to make the mouse move automatically, realistically, using Python? I was able to find and change a code that produces a "V" movement on the screen. However, I would like to move the mouse using…
-
4
votes1
answer339
viewsTempo datetime.datetime.now()
I’m making a script where I measure the performance of a query in a database. The code is as follows:: start = datetime.datetime.now() //CONSULTA AQUI end = datetime.datetime.now() print "Time…
-
4
votes2
answers2598
viewsHow to Insert Taking Data from FORM in Laravel 5.2?
I’m looking at the Laravel documentation on dbquery, in the Insert case. I need to do Insert outside of the Resource method (manually. Type: DB::table('users')->insert( ['email' =>…
-
4
votes1
answer844
viewsFunction of Delphi works on windows but not on android
I have two functions in my project, one for Cpf validation and another to remove different characters from numbers from the string; ok, when I run for windows it works perfectly. Already when I…
-
4
votes2
answers548
viewsNavbar scrollbar does not appear on another width
I used the code below to change when the menu button for mobile is displayed and it worked, but the scroll bar does not appear in this size. What can I do to display the scroll bar? If I need to put…
-
4
votes5
answers14273
viewsHow to put a colored layer over an image?
div { background: #000; width: 640px; height: 640px; opacity: 0.2; position: absolute; z-index: 99; } <span> <div></div> <img…
-
4
votes2
answers9324
viewsSubtract days from an input date with javascript
I need to take a data from a type number field and add to a date of a input date. I already did, but now I need to get the result of that date and subtract 14 days, but I can’t get it. I’m a…
-
4
votes1
answer3193
viewsJava SOAP webservice authentication engine
I am building a Java webservice (wsdl) that will be consumed via SOAP. I need to implement a form of authentication in each method of the webservice so that each request is tested if the source is…
-
4
votes1
answer549
viewsDisable IIS cache
I’m having problems with IIS cache (I think the problem is he), whenever I make any changes in the database, changes do not happen on the website, keeps the old data. Changes only appear when I turn…
-
4
votes1
answer661
viewsGood practices for changing variables $Scope
Follow an example of code: Controller: $scope.filterText = {status: 'Todos', tipo: 'Todos'}; $scope.params = {page: 1, total: 10, orderBy: 'id', sort: 'desc', search: {status: '',tipo: ''}};…
angularjsasked 7 years, 9 months ago Fernando Zabin 707 -
4
votes2
answers11695
viewsDefinition : Document.getElementById
Someone can give me a good explanation about Document.getElementById ... I am reading/learning JSON and I have some questions related to the function !
javascriptasked 7 years, 9 months ago ManiacSaw 131 -
4
votes1
answer211
viewsHow to use regex starting in the middle of the string?
I have a rather large string and would like to check if an excerpt of it house with a regex. The problem is that this stretch is in the middle of the string, in a very specific position. As I will…
-
4
votes3
answers792
viewsAdd class after the page is loaded
I’m having a problem, I’m trying to add a class of Animate css to give an effect when I finish loading the page, but it’s not working, it seems he’s adding the class before the page finishes…
-
4
votes0
answers44
viewsRemote Video Stop - Webrtc
It is possible to control the audio and video of all users in a conference system (Rtcmulticonnection)?
webrtcasked 7 years, 9 months ago Max Porcento 157 -
4
votes3
answers851
viewsHow to create a stopwatch in Javafx using Scene Builder?
Guys, I’ve been a few months with some stranded projects, because I can’t get a label keep up to date. I can make a stopwatch, but when it comes to the interface created by Scene Builder, it crashes…
-
4
votes1
answer315
viewsDoubt when taking Map’s value
Hello. When I print out the values and key of the Map, it comes from bottom to top. I wonder how I do to pick up from top to bottom. import java.util.HashMap; import java.util.Map; import…
-
4
votes1
answer544
viewsExport array within a table?
I need to export data from an array inside an html table, the function is working but I don’t know how to export while inside a table, I made an analogy with the code below. function…
-
4
votes1
answer1384
viewsHow to change IMG(logo) from menu(header) when scrolling page?
I have this menu that has an image: logo.png, as the code below shows <header class="header"> <div class="container"> <a href="index.html" class="grid-4"> <img…
-
4
votes1
answer134
viewsWhich correct way to add two fields
Good evening friends, what is the correct way to add up these two fields valuated and adherence and display the total value in the input. Membership = 3,500.33; Dependants = 90.33; Total Correct:…
-
4
votes1
answer428
viewsIs it possible to hide the redirect, but keep the link for the download?
I made a simple favlet, to facilitate the task of converting videos from Youtube audio: <a…
-
4
votes3
answers137
viewsFunction to double salaries in n installments?
I’m having trouble creating a function to duplicate pay, my scenario is this, I want to move to function 3 variables, being the valueTotal, qtyParcelas and firstVencing and if there is more than one…
-
4
votes1
answer232
viewsHow to define a directive with Vue 2.0 that always does Binding as string
I’m starting now with Vue 2.0 and I’m creating directives so that I can manipulate the style of an element based on the content of that directive, so: Vue.directive('margin', function (el, binding)…
vue.jsasked 7 years, 10 months ago LeandroLuk 4,989 -
4
votes3
answers2170
viewsHow to compare two List and delete repeated fields?
How to compare to lista1 and the lista2, excluding the items repeated in one of them?
-
4
votes1
answer372
viewsWhat formats are used to represent values (color, contrast, brightness) in digital images?
What I want to do is: recognize pixel patterns in a file, or know how Assembler treats it (to make it easier to recognize these patterns). Always wanted to create some application to manipulate…
image image-processing bitmap image-compressionasked 7 years, 10 months ago Paulo Sérgio Duff 1,201 -
4
votes1
answer78
viewsHow to make Selectlistitem substring?
Follows the code: View: @model IEnumerable<Projeto.Models.Model> <table class="table table-striped"> <thead> <tr> <th> @Html.DisplayNameFor(model => model.Id)…
-
4
votes1
answer118
viewsWhen a function is executed a new thread object is created?
According to the manual of version 5.3, a thread type value represents independent execution topics: The type thread represents Independent threads of Execution and it is used to implement…
-
4
votes1
answer1002
viewsSave Relationship 1:1 on Laravel 5.3
In my scenario, I have tables of users and teachers, where a teacher has a user, so I have a relationship 1:1. Migrations: create_users_table Schema::create('users', function (Blueprint $table) {…
-
4
votes1
answer99
viewsWhat is the usefulness of the "Add Fakes Assembly" feature?
Beyond utility, how can we implement it? I could not find documentation in Portuguese that would clarify this functionality much less examples of how to apply it.…
-
4
votes4
answers257
viewsGrab link on date and play on src from img on Hover
I have the following html code, I need that when the event occurs, the link that is in the data-Hover go to src, and when taking the mouse, return the src link. <img src="images/manada.jpg"…
-
4
votes1
answer370
viewsUse of CONCAT, CONCAT_WS and GROUP_CONCAT
I’m building a query where I look for results within the concatenation and get enough to ask for help. I currently use Mysql with the PHP application. In the example below, I look for the words…
-
4
votes1
answer713
viewsLogistic regression with non-binary variable
I need to do a classifier with logistic regression to classify this categorical variable that can have 14 different values. Does anyone know if it is possible to do this with glm() or if I have to…
rasked 7 years, 10 months ago Carolina Bury 109 -
4
votes1
answer3685
viewsFunction pipe() javascript (Node.js)
How does the javascript PIPE() work (Node.js)? I see it a lot in Gulp and would like to know how the function works directly in javascript.
-
4
votes3
answers151
viewsSeparate bytes that form an integer number?
Assuming I have this positive number: local uint = 2000; how can I get the bytes that compose it separately? For example: print(sepbytes(uint)); -- 7, 208 My attempt: local function sepbytes(cur)…
-
4
votes1
answer1373
viewsWhat is a memoisation?
I saw in the question How to implement memoization in a PHP function? the term "memoization". The first impression I had was that this term was related to "memorizing" or "avoiding reprocessing".…
terminologyasked 7 years, 10 months ago Wallace Maxters 102,340 -
4
votes2
answers7935
viewsInstall specific version of a library with NPM
How do I choose the version of a library I want to use, with NPM? For example 1.0.0 1.0.1 1.1.0 1.1.1 1.2.0 If I roll npm i nome-do-package, he will install the version 1.2.0, for being the last.…
npmasked 7 years, 10 months ago Wallace Maxters 102,340 -
4
votes1
answer44
viewsIs it possible to restrict who can use the public classes of an Assembly?
The scenario is as follows: I have a AssemblyProtegido.dll written in . NET that contains public classes. I wish only specific assemblies could consume such classes. Assemplyprotegido.csproj public…
-
4
votes2
answers141
viewsTypescript - Error: Debug Failure. False Expression:
I am trying to create a module definition Node.js. I have the file poolredis.ts, but when I add the line: import { RedisClient } from 'redis'; The Typescript compiler gives me the error: Error:…
-
4
votes2
answers1111
viewsI am unable to configure the sqlsrv drivers in php7
In the archive php.ini all extensions are found, except the ones I need to connect to SQL Server database. extension=php_sqlsrv_7_ts_x64.dll extension=php_pdo_sqlsrv_7_ts_x64.dll As .dll are in the…
-
4
votes1
answer62
viewsWorking with php string
I have a project to issue the file of remittance slips to banks and credit unions. In the file mount I define a variable and mount the lines as in the example below: $conteudo .= '085'; $conteudo .=…
phpasked 7 years, 10 months ago Felipe Rau 41 -
4
votes2
answers7594
viewsHow to redirect page after login in php?
Hello I would like to know how could redirect page after login of the user. It has the Index that is the code below and here comes other pages like . .php requests, booking.php and others only all…
-
4
votes1
answer373
viewsDual cryptography
A colleague told me that he created an encryption class that implements 4 algorithms: Tripledescryptoserviceprovider Class Descryptoserviceprovider Class Rc2cryptoserviceprovider Class…
-
4
votes3
answers1000
viewsSelect with the last record
I need to value the inventory of the company I work for and for that I will take the last value of the items. I was using the MAX, but I realized that if I did this, it would return me the highest…
-
4
votes1
answer109
viewsRandom Order with Entity Framework
I would like to translate the following SQL statement to an expression lambda: SELECT TOP 1 * FROM tbPessoa order by NEWID() What do I put in OrderBy that will be accepted? var pessoa =…