Interesting questions
-
0
votes1
answer41
viewsLoad resized image in wordpress
Good night. I’m only trying to upload the "thumbnails" of the images on my custom page, but the site loads the original image and resizes it. That weighs the load on my site. My code: <?php if (…
-
-1
votes1
answer93
viewsImport a js library into Vuejs
I’m having trouble importing the js libraries in vuejs I’m always getting the following error on the console. I am loading them in the index.html file of the public folder <script…
-
3
votes1
answer1892
viewsAutomatically select a select and press the button
I got a field like <select>/<option> that when the user selects a value I call a function to popular another <select>, type the state and city combos, this is working, and then the…
-
7
votes1
answer740
viewsSqlite and Mysql synchronization
I have an application in which I have a database using Sqlite and an external service using Mysql. Basically it’s a task application, where I can create a task in mode offline. When the user has…
-
1
votes1
answer169
viewsEmpty textarea post with ajax jquery and formdata
I have a form that uses Ajax to do the POST in PHP and insert in the database to get the data using Formdata but the textarea inserts empty in the database. <script type="text/javascript">…
-
3
votes2
answers253
viewsHow to work with a Datetime instance without the time information
My tests had been passing successfully, when "by magic" one of them started to fail: var data1 = DateTime.Now.AddDays(1); ...processos ...processos var data1 = DateTime.Now.AddDays(1);…
-
0
votes1
answer29
viewsInsert records Cart codeigniter
I have the following PHP if($this->input->post('stock_unity_push')=='0'){ $stock_unity_push = 0; } else { $stock_unity_push = str_replace(".", "", str_replace("R$ ", "",…
codeigniterasked 7 years, 11 months ago Sr. André Baill 6,946 -
4
votes2
answers163
viewsHow to pass numbers between "{ }" in the url?
I’m having a dumb doubt in some exercises using Spring Boot. The exercise requires that I receive the list of numbers as follows: http://localhost:8080/listaDecrescente?lista={12,55,70,22} And…
-
-1
votes3
answers716
viewsDjango: How to group records using the YEAR from a Fielddate field?
I’m not able to perform a query that returns only the "YEARS" that have records! Considering also that the field of my model is a Fielddate.
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
0
votes0
answers17
viewsUsing an Azure devops feed to be able to consume artifacts from it in a Scala sbt Java project
I would like to know how to consume articafts from an Azure devops Maven project feed in a Scala SBT application. I’ve done a lot of research, but I can’t find an answer. We can open a discussion to…
-
1
votes0
answers215
viewsMysql Longblob only accepts file up to 128mb
Create a table to store files, but all the life I send a file above 128mb all the columns are null except the id. I also realized that it saves only pictures, other type of file it doesn’t want to…
-
1
votes2
answers15896
viewsHow to stop an execution in Python?
I’m starting programming in Python and would like to know how to stop the program execution? In the language C for example, there is the equivalent command system("pause"). If I open IDLE, more…
-
5
votes3
answers5352
viewsHow to convert from Text to Number via code to EXCEL in C#
I have a program that reads data from a text file and exports it to an excel report. I have a problem in the transcription of the numbers, in the txt file I have data in this format: 8,000000 this…
-
5
votes1
answer353
viewsWhat to do when Avast detects a threat in a harmless app?
I made a network hack, no virus, and the blessed Avast! Warns and destroys my project:…
visual-studioasked 11 years, 1 month ago CypherPotato 9,292 -
-1
votes1
answer208
viewsWrite to BD without mask applied by jQuery
I am doing a project in MVC and with the use of jQuery I made CPF mask as below: $(document).ready(function() { $(".cpf").mask("999.999.999-99"); $(".cpf").addClass("form-control"); }); Follow my…
-
4
votes3
answers173
viewsWhy is it not (easily) possible to hide private members?
Implementation concealment is one of the keys to good modern software engineering, and crucial in code reuse. Why then, in c++ is it not possible to hide the private data implementation? Since these…
-
1
votes1
answer811
viewsList data in a drop down related to the result of another drop down
I have no idea how to proceed in this case Summarizing accurate in 2nd dropdown list data related to the result of the first In the case of the script below it shows the companies and users…
-
3
votes3
answers155
viewsAccess a property’s value through a String
Suppose I have the following object: var pessoa = { nome: "João", animais: { cachorro: "Rex", gato: "Pipoca", } } I need a function to do something like this: var gatoDoJoao =…
-
0
votes0
answers28
viewsHeuristica Admissible in Search A*
Good afternoon, everyone, I have a doubt regarding admissible heuristics, I know that for it to be admissible it is necessary that every value of h(n)<=H(n)* but I am still in doubt of how I…