Posts by lys • 702 points
40 posts
-
1
votes1
answer1117
viewsQ: Error converting JSON. (com.google.gson.stream.Malformedjsonexception)
I am developing a program that needs to communicate with an online store, all communication is done via HTTP requests and has as response a JSON. Displays the error…
-
-3
votes1
answer200
viewsQ: Reserved word as variable name
I’m building a program that integrates an online store with another program that controls the physical stock of a store. Communication is done through HTTP requests that respond in JSON format. In…
-
2
votes1
answer474
viewsQ: Error when converting XML to Object using Xstream
I simulated in a smaller project the same error you are presenting in my original project to make the problem clearer. Follow Code and Error Log. Xmlconverter import…
-
1
votes1
answer97
views -
1
votes1
answer294
views -
0
votes1
answer332
viewsQ: Delete only lines with selected checkbox in a Jtable
How to delete from a JTable lines that are marked in a Checkbox that is in a table cell? I am using AbstractTableModel. The code I was able to create, erases only part of the selected records,…
-
2
votes2
answers80
viewsQ: Button does not work when code is added to Abstracttablemodel
I created a test project to implement in a larger table project with a button as one of the row elements. It works perfectly, but when I try to add to my code the button does not perform the action…
-
0
votes1
answer277
viewsQ: Problems with paging on Jtable
I am creating an application where I fill the data of a table through the database, but there are many so I wanted to organize better. However, the results shown in the table are not constant. The…
-
3
votes1
answer681
viewsQ: Refresh part of web page with Electron. (Change content only and keep header, footer and fixed menu)
I’m making an application using Electron, divided the screen into header, footer, menu and content as done in a common web application. The buttons need to perform the actions in the main Electron…
-
0
votes1
answer827
viewsQ: Streaming video with C#
I need to create an application that will receive video streaming from multiple cameras in real time, as in a security panel where you can monitor what happens through the cameras (as in a…
-
1
votes1
answer250
viewsQ: Stream image from an ip camera via streaming (Ffmpeg)
I have an application written in Node.Js that needs to record the camera video in an mp4 file and also stream it via streaming to a specific url. For test and learning purposes, I made a code using…
-
1
votes1
answer922
viewsQ: How to upload a video using Multipart and Node.js?
I have an application that is being written using Node.Js, in which I use Ffmpeg to create a video from a webcam. I need to upload it to the server using a POST request. So the question is: How to…
-
3
votes1
answer115
viewsQ: How to send a video via POST?
I have an application that is being written in Node.js and using Electron, I need to send a video in mp4 format via POST to the server. How can I do that? EDIT 1: In the app, I use Ffmpeg to create…
-
6
votes0
answers298
views -
1
votes1
answer202
viewsQ: How do I put an app to run in the background when it’s closed?
I am creating an application in Node.Js using Electron and I need it to continue running in the background when it is closed and turn into an app icon next to the computer clock for the user to have…
-
2
votes0
answers94
viewsQ: How to put date and time in the file name? (Ffmpeg)
How to put date and time in an output file name generated from a video cut using ffmpeg? I tried some code combinations but they didn’t work. This code works to cut the video but the name is without…
-
2
votes0
answers52
viewsQ: Improve the quality of a screenshot made with ffmpeg
There is a way to improve the quality of a 'photo' taken from a webcam using Ffmpeg? I am using the code below and it results in two very low quality 'photos'. ffmpeg -f dshow -i video="Integrated…
-
0
votes1
answer651
viewsQ: Module for Node Js that captures information from the Operating System and the computer
How to get using Node Js the use of processing, memory, load Average and operating system information? I know that in Java, for example, there is the library "Operatingsystemmxbean" would like an…
-
1
votes1
answer191
viewsQ: How to delete old files from a specific extension?
I have an application that creates mp4 video files 24/7, to clean these files need to delete all unmodified files in the last 30 days for example. How to do this in Node Js? I’ve looked for…
-
0
votes1
answer189
viewsA: Video Capture, Ffmpeg Video
I solved the problem by adding the following chunk to the initial command: -segment_format_options movflags=empty_moov
-
1
votes2
answers308
viewsA: Error with Electron + Serialport to use Arduino
I solved the error by adding in the file package json. the following excerpt: "install": "Electron-rebuild". Follows part of the code for future queries: "scripts": { "start": "electron .",…
-
2
votes1
answer189
viewsQ: Video Capture, Ffmpeg Video
I have a program written in Node.Js that uses the following Ffmpeg command to capture videos: ffmpeg -f dshow -i video=Integrated Webcam -c:v libx264 -f segment -strftime 1 -segment_time 60…
-
2
votes2
answers308
viewsQ: Error with Electron + Serialport to use Arduino
I’m having trouble running an application made with Electron, Serialport and Node.Js to communicate with an Arduino. I have the following mistake: App threw an error during load Error: Uma rotina de…
-
0
votes1
answer303
viewsA: Retrofit, Response body always null but on the server is status 200
I found the answer, it was a simple mistake. The Servivegenerator was built to wait as a response a list, just change the construction of the request and everything worked correctly.…
-
1
votes1
answer303
viewsQ: Retrofit, Response body always null but on the server is status 200
I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: Response.body() is always null, I can never catch json, even if I can…
-
0
votes4
answers1229
viewsA: Is there any way to display the result of a query(mysqli) in the form of HTML?
Suppose you are making this query to be in the same file as you want to show the result in the label, let’s just call it for example by showing.php php. <?php require_once('connconf.php'); $conn…
-
1
votes2
answers89
views -
0
votes0
answers55
views -
2
votes1
answer7608
viewsQ: How to save a JSON locally?
Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save…
-
1
votes1
answer189
viewsA: Facebook "Like" button on a dynamically altered modal
Issue resolved by changing part of the code to the code below: message = '<p>Você ainda não curte nossa página, clique em "Like" e depois em continuar.<br/><iframe…
-
1
votes1
answer189
viewsQ: Facebook "Like" button on a dynamically altered modal
I have an application using Facebook’s Javascript SDK, in it there is a simple modal that has its content created dynamically. It is important to say that the code is working properly, except for…
-
0
votes2
answers159
viewsQ: Javascript and C language accessing the same database
I’m using a Facebook APP (and Javascript SDK) to use login on a website, in addition I must store some basic information about the user. As required by the teacher, this site was built "using the C…
-
2
votes1
answer202
views -
15
votes1
answer1006
viewsA: UML, Use Case Diagram
It is important to strengthen the concepts of include and extend. Maybe just this will make you resolve your doubt yourself. So let’s go... include: When we use the include, we are indicating that…
-
0
votes2
answers183
viewsA: Nested Vector Logic - C++
Maybe, have thought of a "formula" would help to get the right result more quickly. B[n] = (n+1) * A[1] + n * A[2] + (n-1) * A[3] +...+ 3 * A[n-1] + 2 * A[n] The error was really only in logic.…
-
3
votes2
answers183
viewsA: Nested Vector Logic - C++
Error solved. I leave the code to help anyone who might be having the same problem. #include <iostream> using namespace std; int main(){ int tamanho, aux = 0; cout << "Qual o tamanho do…
-
4
votes2
answers183
viewsQ: Nested Vector Logic - C++
I have a problem with the following statement: Given a vector A with n real numbers, obtain another vector B, also with n real numbers, as follows: B[1] = 2*A[1] B[2] = 3*A[1] + 2*A[2] B[3] = 4*A[1]…
-
7
votes1
answer135
viewsQ: Use of Waitall in C#
I have the following problem: A program generates two types of A and B threads through clicks on their respective buttons. The two types cannot run at the same time. If I have 10 A threads, B can…
-
1
votes1
answer142
viewsQ: Multithreading Doubt in C#
I have the following scenario: Three types of threads can be created in the program, imagine they are, A, B and C. I have to respect the following rule: A thread C not can access the critical region…
-
0
votes1
answer1060
viewsQ: C/C++ - Error comparing char with strcmp()
I need help, I’m having problems comparing two variables using strcmp(). [Error] invalid Conversion from 'char' to 'const char*' [-fpermissive] struct transicao{ int estado; //estado em que o DFA…