Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers836
viewsHow to set a header with a JWT token in a request made by the Requests library?
I’m using the library Requests Python to make HTTP requests. I was able to post a request quietly in order to obtain a JWT token. But now I need to send this token through a header, but I have no…
-
5
votes1
answer114
viewsBuilding a function by defining x and y using R
I have this matrix: matrix=structure(c(0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27,…
-
5
votes1
answer1228
viewsCalculating Integral using R
I need to calculate this simple integral below: It is the quantile function of the standard normal, where before hand we know that, q_0.5(z) = 0, for example. That is, for each theta (percentile) it…
-
5
votes1
answer280
viewsWhat’s the difference between this, Event.target and Event.currentTarget in the scope of an event?
What’s the difference between this, Event.target and Event.currentTarget in the scope of an event? var elem = document.getElementById("meuId"); elem.addEventListener("click", function (event) {…
-
5
votes2
answers190
viewsSystem modularization
I’m developing a C# system with Winforms from Livestock Control to a farm, and will communicate with a scale to improve the weighing process. Some of the features are (Bill entry, vaccination,…
-
5
votes2
answers8717
viewsHow to restrict the filling of only numbers in an input with Angularjs?
I noticed that the page has the following code for an input: <div class="form-group required col-md-3"> <label for="area" class="control-label">ÁREA(ha):</label> <input…
-
5
votes2
answers690
viewsChange property of multiple Uttons simultaneously
Hello, I am developing a project of a dental clinic in c# in which uses several buttons inside a picturebox to select the teeth, so I decided to put several Buttons with certain opacity and the…
-
5
votes1
answer1414
viewsREST API versioning. Is there a way to do it and what would be the best option?
Currently I develop integration Apis with services internal to our company and in the near future we will have the opportunity to provide some of our Apis to external partners. Suggest the idea of…
-
5
votes1
answer2156
viewsPlace emoticons in my website’s chat
I would like to know how in php or javascript to put emoticons according to the person typing the text and a command, ex: Hello good morning [/sun] or I am fine [:Mile] Anyway independent of the…
-
5
votes1
answer150
viewsDoubt how to make Insert in this model
I am developing an application that has the need to have a natural person and a legal, I would like help to know how would be the insert of this model If I want to register a natural person I must…
-
5
votes2
answers701
viewsHow to do this effect of Hover?
The Hover effect from the menu of this site: http://www.jornaldacidade.net/ Is CSS3 pure? How to do something similar?
-
5
votes1
answer977
viewsDoubt on how to print datagridview in reportviewer
I need to print the data of a Datagridviewer, which is the products launched in the sale. What is the best way to print this information in the Report? I tried to use the Table component, but I…
-
5
votes1
answer558
viewsWhat is the difference between a Mediator Class (Interposer Class) and a Helper Class (Helper Class) in Delphi?
I’ve always worked more with interposer classes. I know it’s best to create components, but sometimes it’s faster to make a point adjustment using an interposer. New versions of Delphi have the…
-
5
votes1
answer11856
viewsIs there any way to save edits made in the Inspect element?
Well, as the question says, is there any way I can save locally in my browser the changes made in inspect element?. So that every time I go to that site, it’s edited like I did? The preferred…
-
5
votes1
answer91
viewsIs it possible to make a mistake that triggers others?
Follow an example: public class Teste { public static void main(String[] args) { func1(); } public static void func1() { try { func2(); } catch (Exception e) { System.err.println("Error 1\n"); } }…
-
5
votes3
answers461
viewsHow to run . sh file on button
It is possible to run a file that .sh in a button , example: /bin/importa.sh in a <a href""></a> also serves.
-
5
votes1
answer2043
viewsReturning a Select option with Ajax
Hello folks all right everyone, I need your help I’m with the following problem: I have an Ajax scrpt with the states and cities of Brazil, and a select option where lists the state and the other…
-
5
votes2
answers288
viewsWhat is ARIA (Accessible Rich Internet Applications)?
What is the function of this technology, how to use it or even, when it is necessary to make use of it ?
-
5
votes1
answer1382
viewsWhat is the advantage of using an interface if I always get the same behavior using simple classes in Delphi?
First of all, I want to point out that this issue DOES NOT ADDRESS comparison between abstract classes and interfaces, it aims to find out if there is any advantage in using interfaces to the…
-
5
votes2
answers2039
viewsFile extension in Base64
I am doing a REST service and I need to receive an image by Base64, except that the image can come with any extension, as jpg, png, gif, etc. How to identify this extension and proceed with…
-
5
votes3
answers428
viewsWhat is the relationship between ERI and relational databases?
What is the relationship between ERI and relational database?
-
5
votes2
answers6288
viewsGet the current date directly from the machine
I need to implement in my project (library system) the functionality of getting the date directly from the machine. I wanted in the format dia/mês/ano, to generate the fine for late delivery of book…
-
5
votes1
answer147
viewsIs it possible to "simulate" C++ Templates in C?
Taking a stack type data structure with array for example: typedef struct stack_s { int top; int item[STACK_MAX_SIZE]; } stack_t; Doubt appears when for some reason I want to use a stack with…
-
5
votes1
answer1261
viewscolor gradient R
How do I change the color of the graph gradiently with the years variable, starting from white to intense red. colourCount = length(unique(tabela.estacao$ano)) getPalette =…
-
5
votes2
answers6624
viewsUsing PING with PHP
I have a function that needs to drip 5 machines on the internal network. I am using the command below: //EXECUTA O PING exec("ping " . $host, $output, $result); What happens is this. If I put any ip…
-
5
votes1
answer69
viewsPass Base64 code to another page
I have tried to pass as get only that the bar code and the error, I just need to pass the code Base64 from one page to another page. Obs** This code Base64 is being generated on page A with Crop.…
-
5
votes2
answers1906
viewsawait Task.Whenall how to run multiple processes?
I am trying to create several task (async) they will perform the following logic: Parse an Html based on a received url with Htmlagilitypack Return a product model after parse Insert the Product…
-
5
votes1
answer57
viewsUpload file with post
In my view there’s this field: <form class="form-horizontal"method="post" action="<?=base_url('index.php/home/cadastro')?>" enctype="multipart/form-data"> <input id="img" name="img"…
-
5
votes3
answers2984
viewsDelete a specific row from an html table with jquery
How to delete the row from this table: <table> <thead> <tr><th>Cod.</th><th>Nome</th><th></th></tr> </thead> <tbody> <tr…
-
5
votes1
answer1115
viewsInput loading data from Modal
Good afternoon! I’m trying to make a modal to fetch the products and assign it to the input. Idea: When I click on the input, it opens the modal. Then I choose the product in the modal and it loads…
-
5
votes1
answer2419
viewsClose menu by clicking outside with javascript
I have the following code //Menu Mobile var closeTab = document.getElementById("close-i"); document.querySelector(".user-list").onclick = function() {…
javascriptasked 8 years ago Murilo Melo 2,272 -
5
votes1
answer110
viewsAllow new conditions to be added without modifying code
I am manipulating a .txt and I have to exchange values like M31 for T90 for example. My code is like this at the moment: //Change machine tools for Sodick if (_strLinesFinal.Contains("M50")) { _OS =…
-
5
votes1
answer424
viewsMake <a> change href=" button with each new access on a given page
I have a little doubt in a project that I’m developing. Here’s the thing, I have two buttons on the page, like these ( identical at different positions ): Top of the page: <a target="_blank"…
phpasked 8 years ago Alexandre Lopes 2,769 -
5
votes2
answers2780
viewsHow to show a separate number per point every 3 houses?
How can I format values this way: 1.000 or 150.000 or 42.000 ? My code is this: var f02 = 42000; console.log(parseInt(f02)); I need the variable formatting f02 stay that way: 42.000, and when the…
javascriptasked 8 years ago Alan PS 2,511 -
5
votes2
answers1012
viewsConsultation with Eloquent do Laravel
I have this consultation: select Q.id,Q.questao, D.disciplina, S.serie, S.ensino from questoes as Q left join capitulos_questoes as CQ on CQ.questoes_id = Q.id left join modulos_questoes as MQ on…
-
5
votes1
answer1174
viewsOrdering a list of objects by date
I have a list of objects and each object in this list has an attribute that is a date, in the same string format. How do I sort this list of objects by that date?
python-3.xasked 8 years ago Vinicius 71 -
5
votes2
answers1846
viewsOpen dynamic button modal pressed via ajax
I’m having trouble opening a modal by means of a button dynamically pressed via ajax. The following jquery code below opens the modal normally, considering that the button to be clicked was not…
-
5
votes1
answer1244
viewsAndroid app in the background
I’m working on the open source project Linphone,when the application is closed is not working in the background, so if someone makes a call to me in the meantime I am not notified, how can I treat…
-
5
votes2
answers839
viewsMy site does not find the Bootstrap and Jquery files
I created a website ASP.NET MVC with Code First and did the first publish of the application, the Database and the Site were created, the problem is that the site does not find the files css and…
-
5
votes1
answer2898
viewsCode to show procedures in Mysql
What Mysql code to display procedures created by me?
-
5
votes1
answer558
viewsHow to access the indexes of a very large vector in C?
I have a problem that I have to assemble a vector (vet2[50]) with the sum of a large vector (vet1[100]), this vector vet1 is provided by the user and the sum if provided by: vet2[0]=vet1[0]+vet1[1]…
-
5
votes2
answers3434
viewsWhat’s the difference between Gravity and layout_gravity on Android?
In the customization of the layout properties in Android Studio I noticed that there is the gravity and the layout_gravity, both bear the name gravity, so I’m a little confused as to its…
-
5
votes3
answers245
viewsError doing Join with Laravel Query Builder
I’m doing the following Join: public function getStockDanger() { $data = DB::table('product') ->join('stock', 'product.id', '=', 'stock.product_id') ->where('stock.stock', '<=', 0)…
-
5
votes1
answer3135
viewsAllow only numbers in an input
I have two input fields, latitude and longitude. In it I should only allow the input of numbers, sign - and . how can I make a function for that?
javascriptasked 8 years ago Ana Carolina Ribeiro 451 -
5
votes2
answers426
viewsSave photo via URL to database
I’m making an application that needs the login Facebook. I was able to get all the right data, but I’m not able to save the profile photo in the database. I was able to display the photo on…
-
5
votes3
answers5735
viewsWhat is the basis for.Oncreate(Bundle) and what is Bundle?
I’m starting with Xamarin studio and wanted to know what this "base" class is for, this method onCreate() and what is bundle?
-
5
votes1
answer834
viewsProblem with Curl, catch message body even with http != 200
I have a request on my API: $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'link da api'); curl_setopt( $ch, CURLOPT_FAILONERROR, true ); curl_setopt( $ch, CURLOPT_TIMEOUT, 10 ); curl_setopt(…
-
5
votes1
answer1374
viewsCreate Unique constraint with two fields in the Laravel request
I have in the creation Migration of my table the following: public function up() { Schema::connection('database2')->create('empresa_funcoes', function(Blueprint $table) {…
-
5
votes2
answers2823
viewsMargins of the child element leaking to the parent element
I didn’t find in the community something that would clear my doubt, so let’s go! In the example below, I don’t know why water loads, the property margin of the elements p and h1 exceed the parent…
-
5
votes1
answer37
viewsProblem when checking if a number is pure js module 2
I’m trying to do it like this: if(i % 2){ console.log(i); } i is the variable is coming from a for loop. Why isn’t it working?
javascriptasked 8 years ago Seu Madruga 2,481