Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers175
viewsApply function in data groups
I need to separate the data into groups and perform the calculations in two or three groups/dimensions. I found the tapply function, it solves the problem. With it I get what I need by using the…
-
4
votes1
answer1604
viewsSee Date only, in a Datetime field with LINQ
I’m generating a report in an app that I’m developing, but I have a little problem. When sending a query in a date interval, I can’t get anything, because it is a DATETIME (I can’t change to date…
-
4
votes2
answers1125
viewsSql - Delete Bulk Records - Delete Bulk
I have a table with about 4 million records. What is the best method to delete all of them to get the best time? Indexing helps something, since it is only a reference to find data? OBS `DELETE FROM…
-
4
votes2
answers2151
viewsHow to shift the focus from one Textbox to the next?
I’m trying to shift the focus of the field after the user writes 2 digits. Validation is ok, but I haven’t found a method to change focus. NOTE: It is a dynamic method used for various fields, so I…
-
4
votes1
answer179
viewsIs it already possible to make commercial applications with Visual C++ Cross Platform?
Visual Studio 2015 brought with it Visual C++ Cross Platform, which I think works similarly to Xamarin. You can now make business apps with Visual C++ Cross Platform?
-
4
votes3
answers2852
viewsPassing Javascript Variable into an Input text
In this code below I need to pass the variable Var url_current inward As I have no knowledge of javascript I would like a little help on how to do this function loginMeuSite() { var url_atual =…
javascriptasked 9 years ago Fabio Henrique 2,156 -
4
votes3
answers9903
viewsGet the last N characters from a string
I have a string which in reality is a phone number. But a phone number can have some formats like: +55 34 98989898 34 989898 989898 The constant is that always the last 8 numbers are the phone…
-
4
votes3
answers3309
viewsGenerate PDF with Asp.Net MVC
Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.
-
4
votes1
answer3589
viewsHow to assemble a page for printing within the application code?
I need to assemble a printing page inside my code, that is I will not print an existing document, nor the application screen, I want to assemble the code execution with the elements I want. I have…
-
4
votes1
answer29006
viewsvariables in mysql: declare, set, how to pick an element from a table
Speaking of variables that can be declared within the begin, I saw that you have Declare e set only that I don’t know when to use them. I saw that you have set @x, set x, set x = x+1, set x := x+1;…
-
4
votes2
answers2611
viewsIs it possible to place a 'pre-image' in the youtube iframe?
I embedded a Youtube video on this site: http://aresdapraca.com.br/ I would like to put an image over the video when it is paused at the beginning. I already did this but it was with the tag…
-
4
votes2
answers815
viewsWhy declare pointer to array if arrays are already pointers?
if an array char is already a pointer, why declare a pointer to the array? And what’s the difference between char exemplo[10] and char *exemplo[10]?
-
4
votes1
answer1056
viewsAjax POST with jQuery and Node.js Express always returning 404: Not Found
I created the route below to accept POST requests, but calls via AJAX to this route are always returning error 404: Not Found. /* Arquivo: integracoes.js */ var express = require('express'); var…
-
4
votes1
answer984
viewsOpen camera inside a div [Ionic]
I’m developing a small application with Ionic, which will be built for android. I need to access the device camera in the app for video, but when I do, the camera app opens from the outside. I would…
-
4
votes2
answers94
viewsParameters of Android configuration
I wonder if you have any way to get the values straight from the settings of android example want to know if the "Unknown Sources" is enabled, "Developer Mode" is enabled,"Language" ,"Brightness…
-
4
votes1
answer212
viewsWhy the operating system uses SWAP when it still has RAM
I learned that virtual memory (SWAP) was only used when RAM had reached its maximum capacity (or almost). But, I realize that it is not so, according to this image I took of the performance of my…
-
4
votes1
answer898
viewsHow do bit operators work?
I have the following code: volatile long Hex_To_int(long Hex , char bits) { long Hex_2_int; char byte; Hex_2_int = 0 ; for(byte = 0 ; byte < bits ; byte++) { if(Hex& (0x0001 << byte))…
-
4
votes1
answer757
viewsR does not create graph correctly
I am using R to generate table charts, with two fields (company name and sales quantity), when using barplot, it is not putting the right values in the fields. For example, if sales were 500,000 it…
-
4
votes2
answers81
viewsIf I call a Javascript file, is that code visible in the browser (browser)?
I know that when I write code directly into HTML pages Javascript is shown but what if I call only the file, for example, like this <script src="script.js"></script> The code will be…
-
4
votes2
answers422
viewsCorrect use of Laravel Mutators 5.1. Is it possible to use it in this way described below?
Hello, I’m using Laravel 5.1 at the moment and I came up with a question. I have a grid that shows values of a given CRUD and I search through Table::all(), which returns something like: array:5 [▼…
laravelasked 9 years, 1 month ago MauricioLGJunior 45 -
4
votes1
answer294
viewsProblems when drawing an oval on a panel (JAVA)
Greetings dear fellow programmers. I’m encountering a somewhat irritating error: I consider drawing a graph on the screen using circular/oval shapes. After a good number of researches, I was…
javaasked 9 years, 1 month ago Momentanius 105 -
4
votes1
answer578
viewsCkeditor font size
I’m using Ckeditor and would like to personalize my editor. When opened, by default it would already come with Arial font size 20 for example. In my research (amid several others, and others, and…
-
4
votes2
answers1176
viewsTwo apache installations on the same server
I have a windows server with Bitnami (only with Apache running) and another apache installed manually. Since Bitnami Apache is for Postgresql database and Apache installed manual is for Mysql. It’s…
-
4
votes3
answers388
viewsVertical menu disappearing below the footer
On screens where the height is less than 600px the menu disappears below the footer. I also tried to leave the position as fixed, relative and with nothing but the result was the same. Follow the…
-
4
votes1
answer243
viewsHow to remove required HTML5 validation icon
How to remove this icon marked above in the image?…
-
4
votes1
answer1581
viewsJava text "encryptor" program problem
So, guys, I’m having a little problem with one of the work exercises that I have to do. The teacher provided a .doc with the instructions for a "Cryptographer" that you should apply a mask to the…
-
4
votes1
answer8275
viewsModal + form + values (bootstrap and javascript)
From the following link http://getbootstrap.com/javascript/#live-demo I created the following modal https://github.com/rg3915/front_end/blob/master/javascript/modal_form.html In the modal I fill a…
-
4
votes1
answer632
viewsOauth API authentication with external provider
When we use Oauth we have the "authorization server" and the "resource server". The resource server is the server on which the API is, that is, this is where the interface to the resources we want…
-
4
votes3
answers18966
viewsBrowse objects with pure Javascript
I need to list objects and resort to the following function which is in jQuery. There is an alternative to this only in Javascript? $.each(object, function(index, value) { console.log(value); });…
-
4
votes2
answers4412
viewsINSERT in two different tables - Mysql
I have two tables in Mysql: Alunos: id, nome, idade, email, senha. login: id, email, senha. When I do Insert to record the information in the table alunos I can do another insert to save the email…
-
4
votes1
answer152
viewsTyping a pointer to struct
I was suggested to build a chained list using the following struct knotted: typedef struct node *link; struct node{ int item; link next; }; As I did not understand what the pointer operator means…
-
4
votes2
answers5603
viewsCheck if it is empty regardless of type, javascript
I am trying to create a function that checks if you have something blank, empty, Undefined, null etc.. But my difficulty is that I don’t know all the ways a string is "blank" I created this function…
javascriptasked 9 years, 1 month ago Elaine 2,770 -
4
votes1
answer112
viewsThread execution - Java EE - Jboss
I have a web application using Jboss EAP, JSF, CDI, EJB and need to start a thread whenever Jboss starts. The thread belongs to the Tinyradius package that implements a Radius server. How can I…
-
4
votes1
answer3189
viewsHow to change the blinking cursor from "|" to "_" in a textbox
I’d like to know how to use the character _ to write, like when you press the key Insert in some text editors (Notepad++) and the text is written with the _ in front of the letters. More basically,…
-
4
votes1
answer1707
viewsOrdering a second list according to the ordering of the first list
I have the following (silly example): lista=[[3,6,4,2,7],[8,4,6,4,3]] I want to put lista[0] in ascending order, modifying lista[1] in accordance with lista[0]. To illustrate what I want below:…
-
4
votes3
answers4420
viewsError when signing a SHA256 Hash using Digital Certificate
Is returning error from Invalid algorithm Specified, when it will be signed, how to proceed? Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJEmpresa.Text + Me.txtCNPJSoftwareHouse.Text) Dim csp As…
-
4
votes3
answers857
viewsJavascript Method Overload Function
I’m reading a book called "Secrets of Ninja Javascript" and in it, I came across a method overload function. So far so good, I understood what she does, I understood that she makes depending on the…
-
4
votes1
answer1608
viewsWhat is the equivalent function of Javascript window.location.href in PHP?
I intend to redirect the visitor to another page so I wanted the equivalent of window.location.href in php…
-
4
votes2
answers191
viewsCustomization scroll bar
Today, can we use CSS only to change the customization of the scrollbar of a DIV? If yes, how can I do it. Otherwise which script is best and how to use it?
-
4
votes2
answers357
viewsPortable blade and performance
In the Laravel, we usually use the Blade in order to write a view. Example: @unless($variable) <p>Nenhum dado encontrado</p> @else @foreach($variable as $v) <p>{{ $v }} </p>…
-
4
votes2
answers296
viewsHow to run "setInterval" without initial delay?
In this code below, it updates a div every 20 seconds. Only when entering the page I have to wait 20 seconds for it to appear. I would like it to appear already at the beginning, when entering the…
-
4
votes1
answer908
viewsCheck area size on Canvas
I have a code that when opening the report information, is created in Canvas a rectangle on top of each image. However, these images have different sizes, but the canvas remains the same size. I…
-
4
votes1
answer2941
viewsAdd an if with 2 conditions
I have the following variables declared: n_var:= strtoint (En_var.Text); n_raster := strtoint (En_raster.Text); And I would like you to make a condition by comparing their values for example: if…
delphiasked 9 years, 1 month ago Guilherme Lima 3,129 -
4
votes2
answers1380
viewsCapture Machine Identification with C#
Good morning, I have several computers with the same output IP, how can I get any information that leads me to know which computer a request came from? I use C# Asp . Net MVC
-
4
votes1
answer283
viewsCalling a Setinterval variable
I have the variable X X = setInterval(function() { ... and after a while I stopped in that setInterval with the function clearInterval(X) How do I call this variable to continue the loop after I…
-
4
votes2
answers170
viewsHow can I create events in a safer way?
I am creating events according to the code below, however it seems to be a somewhat dangerous way, since if there is a cancellation of the event it will accumulate every "shot" of the event, that…
-
4
votes2
answers960
viewsPreg_replace for Preg_replace_callback
I’m having trouble migrating one script mine that clears characters from a sentence. The preg_replace (depreciated) I use the value and key of the array for the exchange, however the…
-
4
votes1
answer63
viewsRemove "openfiledialog" from C#field
Good, I have an Openfiledialog in my program, but I didn’t want when I "open" to appear what is in the image... If I close the window, it is "openfiledialog" in Textbox, and I want it to be empty,…
-
4
votes1
answer2174
viewsImage with Transparent Background
I wonder if it is possible to upload an image and make certain part of the image (the background) transparent. 'Cause I’d like to superimpose that image. The dummy is the fixed background image, and…
-
4
votes1
answer92
viewsIs it possible to authenticate with Angularjs?
Is it possible to authenticate with Angular and recover the logged in user? If possible what best practice to do?
angularjsasked 9 years, 1 month ago Jose Vieira Neto 2,560