34 Topics

Member Avatar for John_165

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.

Member Avatar for Reverend Jim
0
30
Member Avatar for John_165

Get error when sign in with Google ![Screenshot_2025-05-14_005909.png](https://static.daniweb.com/attachments/4/6b4328258653e90c1306dd4197d61570.png)

Member Avatar for Dani
0
21
Member Avatar for John_165
Member Avatar for Basilwoxro
5
540
Member Avatar for John_165

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 => …

Member Avatar for AndreRet
0
47
Member Avatar for John_165

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" /> …

0
47
Member Avatar for John_165

I notice a bug.. ![Screenshot_2022-01-04_175310.png](https://static.daniweb.com/attachments/4/1bfc6ca4c5196e24cc1449ebfb4eea90.png) This post is not written by Dani, but it shows Dani is the writer ?

Member Avatar for Dani
0
85
Member Avatar for John_165

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. ![104648412-d93f8f00-5691-11eb-94e9-d1ecedd7c9f8.png](https://static.daniweb.com/attachments/4/dde268fbe9690cf4ace285e053ef6ab0.png)

Member Avatar for rproffitt
0
160
Member Avatar for John_165

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 :)

Member Avatar for Dani
2
57
Member Avatar for John_165

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?

Member Avatar for JamesCherrill
0
41
Member Avatar for John_165

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.

Member Avatar for John_165
0
89
Member Avatar for John_165

What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } }

Member Avatar for John_165
0
1K
Member Avatar for John_165

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 …

Member Avatar for John_165
0
221
Member Avatar for John_165

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.

Member Avatar for Anninflow
0
3K
Member Avatar for John_165

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?

Member Avatar for baabroz1
0
946
Member Avatar for John_165

Are there any differencies between these two code ? if (!a.equals("")) { editDate.setText(a) } and if (a!="") { editDate.setText(a) }

Member Avatar for bngwebguru
1
3K
Member Avatar for John_165

When we build an application, which layer should we start with? From top (UI) to bottom(Data Layer) or bottom to top?

Member Avatar for Dani
1
1K
Member Avatar for John_165

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?

Member Avatar for rproffitt
0
1K
Member Avatar for John_165

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 …

Member Avatar for Dani
2
4K
Member Avatar for John_165

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!!! ![download.jpeg](/attachments/large/4/dc1303529642573b46b66ccb1a2992ce.jpeg)

Member Avatar for Reverend Jim
-3
4K
Member Avatar for John_165

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 …

Member Avatar for John_165
1
4K
Member Avatar for John_165

There are **Complementary Goals** in profile page. Where can I find the list of goals and what does this used for ?

Member Avatar for John_165
1
3K
Member Avatar for John_165

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 …

Member Avatar for Dani
1
2K
Member Avatar for John_165

The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/)

Member Avatar for JamesCherrill
0
2K
Member Avatar for John_165

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 …

Member Avatar for JamesCherrill
0
10K
Member Avatar for John_165

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 = …

Member Avatar for Buy Business
0
588
Member Avatar for John_165

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>(); …

Member Avatar for John_165
0
374
Member Avatar for John_165

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; …

Member Avatar for JamesCherrill
0
537
Member Avatar for John_165

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 …

Member Avatar for rproffitt
0
408
Member Avatar for John_165

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++) { …

Member Avatar for rproffitt
0
1K
Member Avatar for John_165

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for John_165

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. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for John_165

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 …

Member Avatar for JamesCherrill
0
917
Member Avatar for John_165

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) { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for John_165

A guy come from Malaysia, just want to say hi with you all :)

Member Avatar for happygeek
0
268

The End.