Posts by CloudAC • 562 points
35 posts
-
-3
votes2
answers376
viewsQ: How to request a page in Nodejs?
I would like to know how to request a page using Nodejs. Basically, I need to make a request to a webservice that provides data of places based on the reported cep and from the answer given (which…
-
3
votes1
answer1631
viewsQ: How to delete components from an image using python?
I’m a beginner in python and would like to know how to eliminate components (red, blue or green) of an image using python, I downloaded some image processing libraries (like opencv). I wonder if…
-
1
votes1
answer1033
viewsQ: Adjust Image Range using Python
I’m a beginner in python, but I have experience with other programming languages. I need to do some college work, but I don’t know how to proceed. I would like to know how to adjust the range of an…
-
0
votes1
answer66
viewsA: Data is not entered in sqlite
Failed you point the cursor reference to the beginning using the c.moveToFirst(). Make the appropriate modification as shown in the code below and see if it works. Any doubt, comments there! public…
-
2
votes2
answers2936
viewsA: How do I search the table with Sqlite?
Below is the code of the method responsible for taking a record of the bank and returning a user as a response. Any doubt, comments there! public Usuario pegarUsuarioPorEmail(String email){ Usuario…
-
0
votes2
answers541
viewsQ: Problem in recovering data from firebase
I recently started working with Firebase and am still learning what can be done by reading the available documentation. But one problem I’m having is recovering the data within a function. The…
-
2
votes1
answer1327
viewsA: Nameerror: name 'setSaldo' is not defined
To call the method/function setDono() you need to specify that you are calling the class method itself, thus doing self.setDono(). Also, I recommend that when creating attributes in the constructor,…
-
0
votes0
answers40
viewsQ: Error while using android camera inside application
I’m implementing an app where I need to use the camera to take a photo and save it in the gallery, however I’m getting an error when I try to run a command to do this procedure. public class…
-
0
votes1
answer2851
viewsQ: Save in the image gallery taken by the camera and get way of that image. - Android
I have an android app that uses the camera to take pictures and show on a ImageView, Only the photo is not saved in the gallery. I would like to know how to save the image in the gallery and take…
-
0
votes2
answers387
viewsA: How to calculate two sums with only one button?
Um... I confess I don’t quite understand what you want to do. But if that’s what I’m thinking, the code below should work (with due changes to the layout elements ID’s to address your problem).…
-
1
votes1
answer576
viewsQ: Use javascript inside an EJS file to display array information
I’m trying to show inside an EJS/html file the values of an array that are sent from the server, but I’m not getting it. I know that to show the value of a variable inside an EJS file all I need to…
-
0
votes3
answers116
viewsA: Save multiple records in the bank
Next, I believe that first, the JSON file itself that is being sent to the php server contains errors, check again the JSON code that is being sent and compare with what I will post. JSON file that…
-
0
votes1
answer244
viewsQ: What is the best/most efficient way to send data from a view to a route using Nodejs and Express?
I am a beginner in Nodejs and am responsible for a project in this tool. I am using the "EJS" engine to create the views. I created a form to send the information entered by the user to a route, on…
-
0
votes1
answer931
viewsQ: How to send information from an html form to a route? - Nodejs
I am a beginner in Nodejs and am responsible for a project in this tool. I am using the "EJS" engine to create the views. I created a form, to send the information typed by the user, for a route and…
-
1
votes1
answer828
viewsQ: How to update the value of a variable within a callback?
I am creating a module with Nodejs and in this module I created a function that returns a value, being this value updated within a function of type callback. The problem is that this variable/value…
-
0
votes1
answer1772
viewsQ: How to use functions that are in a different file? - Python
I’m having a problem using functions that are in a different file than where I’m calling these functions. Basically my project is organized as follows: Lista_I (Pacote Contendo os Arquivos)…
-
2
votes1
answer601
viewsA: Read and interpret JSON files
What you need to understand is that when you decode a file JSON in a variable, this variable becomes an object, and as every object in PHP, you need to access each element through the ->. To…
-
1
votes2
answers1725
viewsA: My image does not appear in Imageview
It’s been a while since you posted this question, but if you still have this problem, I will post the solution below. I had the same problem as you and I managed to solve it in the following way. In…
-
-1
votes1
answer69
viewsQ: How to use an image in android application that is saved on a web server?
I have an android application that selects an image of Sdcard and sends it to a php webservice that saves the image on a server and writes the image path to the database (Mysql). What I wanted to do…
-
2
votes3
answers978
viewsA: Form data is not being registered
I may be wrong, but from what I saw in the data fill form, you don’t have the entry for the ID, and in PHP code both in data recovery and in the update query you use an id that doesn’t exist. Do you…
-
5
votes1
answer2212
viewsA: Is it possible to convert an image to a string in JSON format?
Leaving the answer here for anyone who goes through the same doubt I did. /*Primeiro, importa-se a imagem e a converte para um array de bytes*/ BufferedImage imagem = ImageIO.read(new…
-
0
votes2
answers37
viewsA: Error creating PHP connection
You changed the command. At the moment you are using getRequestMethod("POST") when you should be using the setRequestMethod("POST"). Try to change the get for set and see if it works.…
-
1
votes1
answer2212
viewsQ: Is it possible to convert an image to a string in JSON format?
I wonder if it is possible to convert an image to a string in JSON format. If so, could you explain to me how? (if possible with example codes). I need to do this to send these images to a web…
-
4
votes2
answers2914
viewsQ: How to create object array in javascript?
I’m a beginner in javascript and would like to know if it is possible to create object array in javascript, if yes, how do I do that? I know that to create an object I need to do the following: var…
javascriptasked CloudAC 562 -
0
votes2
answers1639
viewsQ: How do I add bookmarks to the google map when I click it? - Javascript
I would like to know how to add markers to the map by clicking on a point on google maps. Actually create/add the marker "manually" I already know, what I would really like is to trigger the…
-
0
votes2
answers1248
viewsQ: How to catch the return of the method ofInBackground on android?
I’m starting to work with Asynctasks and I don’t know much yet. I created a class that extends Asynctask and implemented the method doInBackground(), but my question now is how do I get the return…
-
2
votes1
answer4570
viewsQ: How to send parameters via java post using Httpurlconnection?
I am having a problem sending through a POST method in java parameters using Httpurlconnection. I’ve been trying a few ways and researched a lot, but no way it worked for me. I’ll leave the code…
-
2
votes1
answer2663
viewsQ: How to calculate the logarithm of a number in any java database?
I would like to know how to calculate the logarithm of a number on base 2 and on any other basis. I know that in java you can calculate the logarithm of a number in base 10 using the function…
-
1
votes2
answers1841
viewsQ: How to send java post information to a php page?
I’m facing a problem that I don’t know how to solve right now. To put it bluntly, I’m having trouble sending data in json to a php page through a java application. Basically, I have a php page that…
-
0
votes1
answer513
viewsQ: Problem trying to request HTTP in Java
I have a problem and would like you to help me solve it. I created a java application to consume a webservice that I made in php. After a lot of searching I managed to create a class capable of…
-
0
votes2
answers523
viewsQ: Consume PHP Webservice using Java/Android
I built following the guidance of a friend a webservice using php (actually is a web application that returns to all requests made via post a string in format json). First what I’d like to know is…
-
1
votes2
answers2428
viewsA: How to use getche() with do-while in C?
I think the problem is that you are using the function in the condition, when in fact you would have to use the variable in the do-while condition. Try it this way and see what happens: do {…
-
0
votes2
answers2211
viewsQ: How to make INNER JOIN between tables on android Sqlite?
I would like to know how to do a more elaborate query using INNER JOIN to join two tables in Sqlite for android. I know how to query using INNER JOIN in Mysql. What I want to know is how to make…
-
1
votes1
answer137
viewsQ: How to make Inserts in table creation in Sqlite?
I would like to know how to do INSERT manuals in the Databasehelper class that extends from Sqliteopenhelper. public class DatabaseHelper extends SQLiteOpenHelper { private static final String…
-
1
votes1
answer192
viewsQ: Google maps' getMap() problem - android
I am studying the google maps api and was using it as a basis for my video studies available on youtube. However, while I was studying I came across a code depreciation problem. The video class that…