John_165 44 Junior Poster

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.

John_165 44 Junior Poster

I just notice that I didn't answer that - I'm in the lucky position of never having had to go out to acquire new projects/clients. All clients approached me, or were introduced to me by others.

Wow, that’s really lucky! Must be a great feeling to have clients come to you without having to look for them

John_165 44 Junior Poster

Welcome aboard! I’m also a member of CodeRanch.

John_165 44 Junior Poster

Welcome aboard! Do you build mobile apps with a cross‑platform framework or only stick to native Android/iOS? And where do you usually find your freelance projects?

John_165 44 Junior Poster

Why do spammers want to sign up? What do they gain from programming forums?

John_165 44 Junior Poster

Get error when sign in with Google
Screenshot_2025-05-14_005909.png

John_165 44 Junior Poster

Welcome on board. Which programming websites do Chinese programmers usually visit? Is it baidu and segmentfault?

Lihui Zhang commented: In China, Baidu and Bing can be used normally. I often read technical articles on Zhihu and CSDN(Chinese Software Developer Network). +0
John_165 44 Junior Poster

Another forum shutting down

https://www.codeproject.com/script/Common/Error.aspx

RIP Dream in code and Codeproject :(

John_165 44 Junior Poster

fight Google ?

Chris Hüneke commented: Yes, sir. Keepin it real since 2010. SEO is fighting Google, like David was fighting Goliath back in the days. +0
John_165 44 Junior Poster

hi :)

John_165 44 Junior Poster

Hello and welcome to the programming forum! It's great to have a business consultant like yourself from Biztrack joining our community. Feel free to share your insights, ask questions, or engage in discussions related to programming. If you have any queries or if there's anything specific you're looking to explore, don't hesitate to reach out. We're here to help and learn together!

John_165 44 Junior Poster

Thanks sharing !

John_165 44 Junior Poster

Hi,welcome to the forum!

John_165 44 Junior Poster

If you want to get answer without studying, you may ask chatGPT.

John_165 44 Junior Poster

welcome

John_165 44 Junior Poster

ChatGPT is too powerful, will it replace all programming forums in the future?

ASubhan commented: No, it cannot. Human cannot replace by Ai. +0
QuintinFields commented: I think he will definitely be able to replace the coders. +0
John_165 44 Junior Poster

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 => {
          setData(posts)

        })
        .then((err) => {
          console.log(err);
        })
    }
    getNFTDetails()
  }, []);

  useEffect(() => {
    handleData();
  }, [data])

  const handleData = async () => {
    const list = [];
    for (const a in data) {
      metadata[a] = await fetchIpfsJsonFromCid(data[a].cid);

      metadata[a].image = makeGatewayURL(metadata[a].image);
      console.log("image url " + metadata[a].image)

      list.push(
        <Card
          style={{ width: 200 }}
          key={data[a].name}
          title={
            <div>
              {data[a].name}
              <a target='_blank' rel='noreferrer'>
              </a>
            </div>
          }
        >
          <img src={metadata[a].image} style={{ height:50,width: 130 }} />
          <div style={{ opacity: 0.77 }}>{data[a].description}</div>
        </Card>
      );
    }
    setGalleryList(list);
  };

  return (
    <div
      style={{
        maxWidth: 820,
        margin: 'auto',
        marginTop: 32,
        paddingBottom: 256,
      }}
    >
      <StackGrid columnWidth={200} gutterWidth={16} gutterHeight={16}>
        {galleryList}
      </StackGrid>
    </div>
  )
}

In console, I can see it print https://dweb.link/ipfs/bafybeicyb5zpppsdyu5fxxx/image.png,which is valid image link, but display blank in web page.

L2eJT.png

But if I remove these two lines code,and put the valid image url, it able to display the data.

These 2 codes removed

  metadata[a] = await fetchIpfsJsonFromCid(data[a].cid);
  metadata[a].image = makeGatewayURL(metadata[a].image);

and replace valid image url from

 <img src={metadata[a].image} style={{ height:50,width: 130 }} />

to

<img src={https://dweb.link/ipfs/bafybeicyb5zpppsdyu5fxxx/image.png} style={{ height:50,width: 130 }} />

It able to display

ZDtUe.png

How to fix?!

John_165 44 Junior Poster

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" />
        <link rel="icon" href="/favicon.ico" />
      </Head>

      <main className='bg-red-700'>
        <h1 className='font-coiny'>
          Welcome to <a href="https://nextjs.org">Next.js!</a>
        </h1>
      </main>
    </div>
  )
}

tailwind.config.js

const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
  content: [
    './pages/**/*.{js,ts,jsx,tsx}',
    './components/**/*.{js,ts,jsx,tsx}'
  ],
  theme: {
    extend: {
      fontFamily: {
        coiny: ['Coiny', ...defaultTheme.fontFamily.sans]
      },
    }, colors: {
      'brand-purple': 'var(--clr-purple)',
      'brand-pink': 'var(--clr-pink)',
      'brand-yellow': 'var(--clr-yellow)',
      'brand-blue': 'var(--clr-blue)',
      'brand-green': 'var(--clr-green)',
      'brand-light': 'var(--clr-light)',
      'brand-background': 'var(--clr-background)'
    },
  },
  plugins: [],
}

global.css

@import url('https://fonts.googleapis.com/css2?family=Coiny&family=Open+Sans:wght@400;500;600&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --font-family: 'Open Sans', sans-serif;
  --clr-light: #f0e9e9;
  --clr-purple: #9b5de5;
  --clr-pink: #f15bb5;
  --clr-yellow: #fee440;
  --clr-blue: #00bbf9;
  --clr-green: #00f5d4;
  --clr-selection-bg: #cb3d92;
  --clr-selection-text: #f4f0f0;
  --clr-background: #06070a;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background: var(--clr-background);
}

::selection {
  background: var(--clr-selection-bg);
  color: var(--clr-selection-text);
}

_app.js

import '../styles/globals.css'

function MyApp({ Component, pageProps }) {
  return <Component {...pageProps} />
}

export default MyApp
package.json

{
  "name": "nft-minting-app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "next": "13.0.5",
    "react": "18.2.0",
    "react-dom": "18.2.0"
  },
  "devDependencies": {
    "tailwindcss": "^3.2.4"
  }
}

Output

UioVB.png

John_165 44 Junior Poster

What you mean by not so good? Is it not working?

John_165 44 Junior Poster

thanks sharing.

John_165 44 Junior Poster

Honestly, I don't really like the "Recommended Answers". It made us need to scroll more in order to see the replies...

John_165 44 Junior Poster

I'm not planning to take booster but my parents keep pushing me to do so😥

dmacdougall commented: Listen to your parents. The science is clear. +0
John_165 44 Junior Poster

@rproffitt

Is this the website for Paint.Net?

https://www.getpaint.net/download.html

Seems like we need to pay?

John_165 44 Junior Poster

Hi

John_165 44 Junior Poster

I notice a bug..

Screenshot_2022-01-04_175310.png

This post is not written by Dani, but it shows Dani is the writer ?

John_165 44 Junior Poster

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

John_165 44 Junior Poster

@Dani

Not really active, but will visit sometime

John_165 44 Junior Poster

Yes.

SO,CodeRanch,DreamInCode,TheCodingForum, and CodeProject.

Dani commented: You’re active on Dream In Code? +0
John_165 44 Junior Poster

That's what I can guess so far:

No 4. Silent night
No 6. Frosty the snowman
No 7. Jingle bell ?
No 8. 12 days of Christmas

John_165 44 Junior Poster

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

John_165 44 Junior Poster

thanks sharing

John_165 44 Junior Poster

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?

John_165 44 Junior Poster

Please put some effort on your question so we can help.

John_165 44 Junior Poster

I guess is Visual Basic 6 ?

rproffitt commented: Here's what I read fagul is "the ugliest thing possible. ugly, horrible, nasty, horrid, Nar!" So VB6? +15
John_165 44 Junior Poster

It would be easier for us to help if you share the code you have .

John_165 44 Junior Poster

Is your post related with Microsoft?

John_165 44 Junior Poster

Thanks

John_165 44 Junior Poster

Welcome

John_165 44 Junior Poster

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.

John_165 44 Junior Poster

Why can't you try it yourself?
I not really know phython, but from your code, it not really hard to understand though.

John_165 44 Junior Poster

Welcome

John_165 44 Junior Poster

Why you hate your teacher?

John_165 44 Junior Poster

I like to listen motivation song when stress.

John_165 44 Junior Poster

Welcome to Daniweb. What guide you want from us?

John_165 44 Junior Poster

great work!

John_165 44 Junior Poster

Thanks guys for the explanation

John_165 44 Junior Poster

The reason is because the dispose method is not calling.

John_165 44 Junior Poster

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 I use StreamSubscription too.

The problem is I notice when I upload image in PageC, it will display the upload progress in Tab2 page first, then only it will display upload progress in pageC. Why would this happened?

I defined subscription in both page as below

StreamSubscription<UploadTaskResponse> _subscription;
FlutterUploader uploader = FlutterUploader();

  @override
  void initState() {
    super.initState();

    _subscription = uploader.result.listen(
      (result) {
         print("Printing in pageC");
          ....
      },
      onError: (ex, stacktrace) {
      },
    );
    });
  }

I have defined the cancel() in both class too

 void dispose() {
    super.dispose();
    _subscription.cancel();
  }

Output

printing in Tab2
printing in PageC
John_165 44 Junior Poster

I wish I was student too

John_165 44 Junior Poster

@roberts

Look like is a good time for you to spend with your father in law.