34 Discussion / Question Topics
Remove Filter Before ChatGPT or DeepSeek existed, successfully completing a coding task was a very fulfilling experience, even if it took a long time. Now that things can be done quickly, the sense of accomplishment feels diminished. | |
Get error when sign in with Google  | |
ChatGPT is too powerful, will it replace all programming forums in the future? | |
I want to display name,description and image in `GridView.` export default function NFTViewer({ }) { const [galleryList, setGalleryList] = useState([]); const metadata = []; const cardActions = []; const [data, setData] = useState() useEffect(() => { const getNFTDetails = () => { fetch("http://localhost:4000/getDetails").then(response => { return response.json() }) .then(posts => … | |
Why header background not changing to red and font style not changing to coiny? **index.js** import Head from 'next/head' import Image from 'next/image' export default function Home() { return ( <div className="min-h-screen h-full w-full flex flex-col bg-brand-light overflow-hidden"> <Head> <title>Create Next App</title> <meta name="description" content="Generated by create next app" /> … | |
I notice a bug..  This post is not written by Dani, but it shows Dani is the writer ? | |
I've been code for android/ios using flutter more than a year. Now I would like to learn new things by using software to **create image** instead of just getting icons from google material design (just like image below). Any recommended ? Thanks.  | |
Jingle bells, jingle bells, Jingle all the way ~ Christmas is around the corner. Wishing you all Merry Christmas ! Let's us play a game by guessing the correct answers for the emoji pictionary given :) | |
I've been writing one/two projects but I not using them. I'm not sure in which scenario I should use them. Is this consider bad programming style? | |
Example from this post https://www.daniweb.com/programming/threads/533787/how-to-solve-this-i-got-same-answer There are three replies (include one answer from OP), one of the replies mark as recommended answer. Is the recommended answer marked by OP? It doesn't looked like an answer though. | |
What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } } | |
In my main activity, I have two tab, named tab1 and tab 2. Tab 2 page consists of a listView and I use StreamSubscription to listen upload progress result. On tab2 action bar, it has one icon. When icon is pressed, it will navigate to pageC,which consists of listView, and … | |
When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else. | |
Hi,if I have interested on one of the forum, example post which has Java tag, can I receive notification if someone is posting on that forum? | |
Are there any differencies between these two code ? if (!a.equals("")) { editDate.setText(a) } and if (a!="") { editDate.setText(a) } | |
When we build an application, which layer should we start with? From top (UI) to bottom(Data Layer) or bottom to top? | |
I making an android app which need to display data analysis in Gantt Chart. I implement this library from https://github.com/PhilJay/MPAndroidChart and it runs smoothly in my app. But what I'm worrying is if this library has been removed from github repo, will my app get effected? | |
When I leave a comment (vote with comment ) under someone post , it will increase 2 points for vote up and 0 point for vote down. After I leave the comment and click the vote up button, the user earn 2 points. But after I vote down again, the … | |
Parents please be aware and very cautious of what your child watches on YouTube and KIDS YOUTUBE. There is a thing called ‘Momo’ that’s instructing kids to kill themselves, turn stoves on while everyone is sleep and even threatening to kill the children if they tell their parents!!!  | |
Recently I realized that I not receive any email notification from DaniWeb. When I check on the User Settings, I saw this alert message > We have been having problems emailing you. Has your email address changed? Please update your email address to begin receiving email from us again. After … | |
There are **Complementary Goals** in profile page. Where can I find the list of goals and what does this used for ? | |
First of all, I would like to say that the interface is nice, amazing, and user friendly!! Thanks Dani and those who work hard on this !!! But one thing I would like to comment is about the **vote and comment**. It seems like only users with high reputation allow … | |
The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/) | |
Question from codility test Write a function: class Solution { public int solution(int[] A); } that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function … | |
Hey guys, I have a little bit confused on below code and output **Main ** public class Main { public static void main(String[] args) { ClassA classA = new ClassA(); System.out.println("====== Before ====="); classA.checking(); System.out.println("===== After ====="); classA.checking(); } } ** Class A** public class ClassA { boolean b = … | |
I trying to write a `spring batch` using `SpringBoot`. At first the program will read data from database, then write it to `.csv` file format. This is the code I have tried **Reader** @Bean public ItemReader<A> Reader() throws Exception { List list = new ArrayList<>(); JdbcCursorItemReader<A> reader = new JdbcCursorItemReader<A>(); … | |
I feel hard to understand how the LayoutManager work even the GUI is quite simple. I trying to make the button place below the Tel No JTextField, but it placed beside Address JTextField , not below TelNo JTextField. package gui; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.Box; … | |
Hi guys , is me again ! I get stucked on this question Write a program that read an integer and display its smallest prime factors in ascending order. For example, if the input is 60, the output should be 2,3,5... I came out with below code, but I get … | |
Use a **for** loop to find the smallest integer n such that n^3 is greater than 1000 So I came out with below code public class Chapter4 { static int n = 0; public static void main(String[] args) { for (int i = 1; Math.pow(i, 3) <= 1000; i++) { … | |
Write a program that displays all numbers divisible by 3 and 4 within a range entered by user. Display five numbers per line. Numbers are separated by exactly two spaces. This is my code public class Chapter4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); final … | |
I have multiple JSpinner which have items 1-10 , and one JTable. When the JSpinner is clicked, the value will be added to JTable. I want to get the row number so I can use it at setValueAt. But I get error when the JSpinner clicked more than once times. … | |
In my Food Tab, I wanted to achieve this [Click Here](https://sfault-image.b0.upaiyun.com/358/064/3580648794-597611aa1f701) But I only able to get this [Click Here](https://sfault-image.b0.upaiyun.com/779/111/779111227-5976120f6955a) How can I increase the width of the JTextField which are in Food Tab ? Below is my code public class FoodOrdering { static private JFrame frame; static private JTextField … | |
I wonder how to handle exception in `ResponsesEntity`. When it receive wrong url, it supposes to go to the `catch` block and display the `log`. But I keep getting error message in console. The `try-catch` not working as it not display log message. @GetMapping("abc/{Id}") public ResponseEntity info(@PathVariable("Id") String id) { … | |
The End.