search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

P粉659378577

P粉659378577

Follow
student

Follow 0
fans 0
integral 0
How to convert int[] into List<Integer> in Java?

How do I convert int[] into List in Java? Of course, I'm interested in any other answer than doing it in a loop, item by item. But if there's no other answer, I'll pick that one as

2026-01-29 19:01:13Ask
Java
No @XmlRootElement generated by JAXB

I'm trying to generate Java classes from the FpML (Finanial Products Markup Language) version 4.5. A ton of code is generated, but I cannot use it. Trying to serialize a simple docum

2025-12-27 19:22:11Ask
Java
Sum values in one column of a 2d array

I have this: Array ( [0] => Array ( [f_count] => 1 [uid] => 105 ) [1] => Array ( [f_count] => 0 [uid] => 106 ) [2] => Array ( [f_count] => 2 [uid] => 107 )

2025-12-20 11:43:08Ask
MySQL
How to use `exec` to execute a command with multiple steps in bash

I have a multi-step command that asks several questions along the way. I need to do it in code. phpcommand.php>What is your name? UserSmith>How old are you? 25>You are old enough! But when I call it with exec, it gets stuck. What I expect is: <?php$result=exec('phpcommand.php')->next('UserSmith')->next('25');if($res

2024-01-29 12:57:56Ask
PHP
typeof something returns an object, not an array

x is an array. I used console.log(x) to output the result as ['value'] but when I checked the type of x using console.log(typeofx) it showed as object. why?

2023-11-06 12:49:14Ask
JavaScript
Re-rendering using React.StrictMode and fabric.js's Canvas instance

I'm creating a fabric canvas and buttons that instantiate shapes that should be selectable. I don't understand why my component is re-rendered twice in the following situation. Therefore, my fabric shape cannot be selected. However, when I remove it from my index.tsx file, the rendering only happens once and my shape is selectable. I could remove it, but I don't think it's the best solution. Here is a demo: const{Fragment,StrictMode,useEffect,useRef}=React;const{cr

2023-09-21 23:48:52Ask
React
How to test httpClient using axios using jest?

I have a service and sometimes I need to call an external API. To make this call easier to write, I created an httpService. Currently I only have a post method to receive the url and data. importaxiosfrom'axios'consthttpClient=axios.create({headers:{common:{'Content-Type':'application/json'}}})exportasyncfunctionp

2023-09-15 20:55:32Ask
JavaScript