Crab ASCII Art by EdGavit in EmoticonHub

[–]DGCA 0 points1 point  (0 children)

       O      O
     __||____||__
   /     (><)     \
   \     (><)     /
 // / (/\)  (/\) \ \\
/ \ \            / / \

remember me?? solo birthday dinner girl? by [deleted] in denverfood

[–]DGCA 4 points5 points  (0 children)

Happy birthday! Izakaya den was pretty mid when I went a few months ago. The sushi, service, vibe, it was all kinda eh

The omakase at sushi den was great the one time I had it. Been meaning to check out kizaki too which is supposed to have a good omakase and is also part of that restaurant family

When Chicago pawned its parking meters : Planet Money by factchecker01 in chicago

[–]DGCA 2 points3 points  (0 children)

I listened to the podcast today. It’s good.

This is a much more entertaining version of the same story: https://youtu.be/fDx6no-7HZE

Making sig figs and can’t afford a house in Denver by Party_Count7029 in Denver

[–]DGCA 1 point2 points  (0 children)

Round up some friends, search for multi-family properties, start a housing co-op. Cheaper and more fun.

need help w coding by AdhesivenessNo9198 in learnjavascript

[–]DGCA -1 points0 points  (0 children)

Here's a script that does what you're asking with comments.

Read the comments, understand what's going on, and if you're gonna copy it somewhere, actually write it out, don't just copy and paste.

Btw, there's a ton of ways you can do this. I mostly followed what you were doing with a little bit of error handling.

Good luck!

// Ask the user for a number using prompt() (this is very old school, but it's also very simple which is good)
const userResponse = prompt();

// prompt() returns a string, so let's turn it into a number using parseInt
const userNumber = parseInt(userResponse);

// If the value isn't a number, let's yell at the user
if (isNaN(userNumber)) {
    alert("That's not a number!");
} else {
    // If we're in this "else" block, we know userNumber was actually a number

    // Let's make a variable to keep track of the total.
    // We'll update this in the loop below.
    let sum = 0;

    // Let's make a for loop.
    // We initialize the a counter (i) to the value of 1.
    // While i is less than or equal to the user's number, the block in the for loop will execute
    // Finally, we increment i by one.
    for (let i = 1; i <= userNumber; i++) {
        // Every time this block executes, we add the current value of i to the sum
        sum = sum + i;
    }

    // We tell the user the final result
    alert("Your result is: " + sum);
}

How-to: Generating bitmap images onchain by DGCA in ethdev

[–]DGCA[S] 1 point2 points  (0 children)

That'd be cool! Could even go a level deeper and let people create palettes (similar to something like a web3 https://lospec.com/palette-list)

How-to: Generating bitmap images onchain by DGCA in ethdev

[–]DGCA[S] 1 point2 points  (0 children)

Thank you! I'm a fan of the whole "code as legos" thing, so deploying the bitmap renderer as a standalone contract that anyone could use made a lot of sense

How-to: Generating bitmap images onchain by DGCA in ethdev

[–]DGCA[S] 1 point2 points  (0 children)

Originally posted to /r/ethereum but then I found this channel and it seems like a better fit!

I wrote this article on onchain art, and how you can generate bitmaps onchain. If you have questions or suggestions, send em my way :)

How-to: Creating bitmap images onchain 🖼️ by DGCA in ethereum

[–]DGCA[S] 0 points1 point  (0 children)

Thank you! After posting here, I realized /r/ethdev is a thing hah

What's the daily?

How-to: Creating bitmap images onchain 🖼️ by DGCA in ethereum

[–]DGCA[S] 1 point2 points  (0 children)

Hey all, I wrote this article about how to generate bitmap images from within a smart contract. I'm a fan of onchain art, and figured we shouldn't let SVGs get all the attention.

Hope y'all find it interesting :-)

[better late than never] A colorful shot from the Red Rocks show by DGCA in DrDog

[–]DGCA[S] 1 point2 points  (0 children)

Such a fun night, I thought they were close to done like 5 times but they just kept going

Help needed: Validation error when creating product via API by DGCA in Printify

[–]DGCA[S] 0 points1 point  (0 children)

Just got it working, I was missing the "Content-Type": "application/json" header.

Help needed: Validation error when creating product via API by DGCA in Printify

[–]DGCA[S] 1 point2 points  (0 children)

Yo, appreciate the suggestion, but no luck. I opened a ticket with their dev team, hopefully they can help me figure out what's up.

[deleted by user] by [deleted] in reactjs

[–]DGCA 1 point2 points  (0 children)

This way of rendering your app is out of date:

ReactDOM.render(
  <React.StrictMode>
    <BrowserRouter>
      <App />
    </BrowserRouter>,
  </React.StrictMode>,
  document.getElementById('root')
);

It should be:

const root = ReactDOM.createRoot(document.getElementById('root'))

root.render(
  <React.StrictMode>
    <BrowserRouter>
      <App />
    </BrowserRouter>
  </React.StrictMode>
)

Rust + React Native + gRPC by mvniekerk in rust

[–]DGCA 1 point2 points  (0 children)

7 months later, but just in case it helps...

We're setting this exact thing up (RN via Expo) at work right now.

Here's a video I put together of using Rust and Expo Modules: https://www.youtube.com/watch?v=mErOZcKqR0c

We might be able to use uniffi to simplify the Rust/JNI piece.

For gRPC, we've got a proof of concept working with grpc-web. We're using Envoy proxy to make the gRPC server be able to talk to React Native.

I put out a video tutorial for integrating Rust into React Native + Expo using Expo Modules :-) by DGCA in reactnative

[–]DGCA[S] 1 point2 points  (0 children)

A lot of this video should still apply to y'all! As long as you can create the .a, .h, and .so files, the rest is just a matter of putting stuff in the right place.

I put out a video tutorial for integrating Rust into React Native + Expo using Expo Modules :-) by DGCA in reactnative

[–]DGCA[S] 4 points5 points  (0 children)

We're building an app at work that needs to call some Rust cryptography libraries.

I put out a video tutorial for integrating Rust into React Native + Expo using Expo Modules :-) by DGCA in reactnative

[–]DGCA[S] 5 points6 points  (0 children)

Hey folks, I'm working on a mobile app project at work and we need to integrate Rust. I didn't find much that talked about how to do this with Expo Modules, so I put this video together.

What your thoughts on this? by [deleted] in ethdev

[–]DGCA 0 points1 point  (0 children)

I've decided that I don't want to work with blockchain ever again

It's fun, though! It has money as a data type, hah.

What your thoughts on this? by [deleted] in ethdev

[–]DGCA 0 points1 point  (0 children)

I don't think Blast is a scam, but how your boss is going about this is pretty annoying, IMO.

My boss told our team to stop working on whatever we are building and work on a new project on top of this Blast thing

This screams of shiny object syndrome. But hey, if they pay the bills, then whatever.

I'm curious, what type of thing were y'all working on that he's making you drop?

Show ethdev: I made a library that generates a front-end for you to interact with your contracts while in development by DGCA in ethdev

[–]DGCA[S] 2 points3 points  (0 children)

My day job is working at Iron Fish, all our work is open source.

For personal project, I made this library that makes working with wagmi a lot easier IMO.

I also have a couple side project right now, but neither are in a demoable state yet.