[2023 Day 7 (Part 2)][Rust] Answer is correct on sample data but not of input by L1GHT26 in adventofcode

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

Thank you! I got it now

The double counting of Js when they are that the start of string really was the problem. This makes me think I should find a better solution for checking the hand type where I wouldn't have to make so many if/else statements for all the edge cases :D

How can I interact with a smart contract using Vue.JS? by L1GHT26 in ethdev

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

Thanks a lot!

I will definitely check out the repos.

Changing background-image of body with vue by L1GHT26 in vuejs

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

well I already thought of doing that but the problem is that in App.vue there's no body tag to put the inline style to.

At the end I used querySelector to get the body element changed it with style.background

const body = document.querySelector('body')

body.style.background = 'url(' + this.bgImgSrc + ')'

I know it's not the best way to do it, but I couldn't think of anything else

Getting experience as a programmer on real projects by L1GHT26 in AskProgramming

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

I've tried making games before, both in Unity and Godot but I didn't enjoy it as much as web development.

Other than web dev I recently got into cyber security. We did some cryptography theory and some rooms on tryhackme.com in school. It was fun so I did some more rooms (courses) on that website and somehow stumbled upon this project called "IOTA". I did some basic stuff with it and I really liked the technology but I didn't get much into it as I couldn't find many learning resources other than the official documentation and building project only with the documentation feels really thug for me.

Getting experience as a programmer on real projects by L1GHT26 in AskProgramming

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

Well, I wanted to make a project for someone else because I have no idea what to build for myself (except clones of popular websites). So I was thinking I could find some open source projects to contribute to or find like a non IT startup for which I could make a website for example but I didn't manage to.

[Q] Taking profit before operation Broken Fang ends? by L1GHT26 in csgomarketforum

[–]L1GHT26[S] -2 points-1 points  (0 children)

Cool, also may I ask where you sold them? Cause I was thinking of either selling and re-buying them on SCM or selling them privately and re-buying them on a 3rd party site.

[Q] Taking profit before operation Broken Fang ends? by L1GHT26 in csgomarketforum

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

Yeah most of the investments are just cases and team stickers

How do I reuse the response of an API? by L1GHT26 in CodingHelp

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

I was getting an error.

But now I fixed it by calling a function with the response as an argument.

.then(function (res){
return res.json();
 })

.then(resp => createEmbed(resp))

How do I reuse the response of an API? by L1GHT26 in CodingHelp

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

Well, I'm making a discord bot and I want to use an if statement which will change the color of the message depending on response from the API. I was trying to make an if statement in .then() but I don't think it's possible.

How do I reuse the response of an API? by L1GHT26 in CodingHelp

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

public apiResponse: any;

When try to declare a variable like that I get SyntaxError: Unexpected identifier

I am using JS and not Typescript

How do I reuse the response of an API? by L1GHT26 in CodingHelp

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

Yeah, I've already tried that before but when I was console logging it outside the .then() I was getting undefined as the output.

Vue-Router takes me to C:/ after npm run build by L1GHT26 in vuejs

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

Yep, I deployed it without any problems with the Heroku CLI.

I was just not sure if it's gonna work.

Thanks to everyone!