java

maximum difference in the summation of two subset

maximum difference in the summation of two subset Question: I have an array with N elements. I have to divide the array into two subset such that one subset has exactly M elements and the other subset has the rest. Dividing the items into subset in a way such that the difference in the summation …

Total answers: 2

convert strings's byte array to big integer and perform functions in any language

convert strings's byte array to big integer and perform functions in any language Question: I want to convert String’s byte array to BigInteger and vis-versa. I’m able to do this for some language specifically. For example:- in java: new BigInteger("ab".getBytes()) and in dart: _convertBytesToBigInt(Uint8List.fromList(Utf8Encoder().convert(‘ab’))) where _convertBytesToBigInt() method is from dartlang sdk’s github issue discussion (here …

Total answers: 1

Base32 character conversion to a 5bit value, Python to Java

Base32 character conversion to a 5bit value, Python to Java Question: I have some Python code where each given Base32 character is converted to a 5bit value. I need to rewrite it in Java, but I don’t know the Java equivalent/syntax for this format function. word_safe_alphabet = "23456789CFGHJMPQRVWXcfghjmpqrvwx" d = {} i=0 for char in …

Total answers: 1

How to send and get JSON? Java | Python

How to send and get JSON? Java | Python Question: I’ve just start learning Spring Boot. How can I do this: I have: spring boot application, python file. Python file must send JSON to server (spring app) Spring app must get it and show in console Maybe I have to use module responce in python? …

Total answers: 2

Create a script to read a line in excel and place on CMD

Create a script to read a line in excel and place on CMD Question: Soo, i’m a IT Intern in a Company, and we need to transfer some data from a server to another by CMD commands like: "C:/Source" "D:/Target" /commands …. And we are doing that to move from a old server to a …

Total answers: 1

Stream image from Android with FFMPEG

Stream image from Android with FFMPEG Question: I’m currently receiving images from an external source as byte array and I would like to send it as raw video format via ffmpeg to a stream URL, where I have a RTSP server that receives RTSP streams (a similar unanswered question). However, I haven’t worked with FFMPEG …

Total answers: 2

How can I read text on the screen presented as an image using sikulix IDE?

How can I read text on the screen presented as an image using sikulix IDE? Question: I’m using sikulix IDE version 2.0.5 in windows 10 and the usage so far is successful. I want to read a specific single line text on the screen using sikulix IDE. I can’t copy the text to the clipboard …

Total answers: 1

How to download player.vdocipher video content?

How to download player.vdocipher video content? Question: I have this url: https://player.vdocipher.com/playerAssets/1.x/vdo/embed/index.html#otp=20************ When I clicked to download, I could not download it. I tried to make it work. I need to access it, but how to get it? Asked By: Asrorbek Sultanov || Source Answers: Since VdoCipher provides DRM encryption for Videos, you cannot download …

Total answers: 2

Notifications with clean architecture

Notifications with clean architecture Question: There is a case for creating a client. Controller -> CreateClientRequest -> CreateClientUseCase -> ClientEntity [assigned: UserEntity] The client is assigned a responsible person assigned. After creation, i need to notify the client about the assigned user, and the user about the incoming client. In this case, the user has …

Total answers: 1

How to setup NetBeans IDE for Python Development

How to setup NetBeans IDE for Python Development Question: I was using PyDev plugin in eclipse for developing python. But now I switched to NetBeans IDE 12.6 and I searched google for finding python plugins for NetBeans. I found a plugin called nbpython. But it is for NetBeans 8.1 and I am using NetBeans 12.6. …

Total answers: 2