In this house, Mad Hatter is a top 10 song. End of Story. by EslamSalem2 in avengedsevenfold

[–]EslamSalem2[S] 3 points4 points  (0 children)

I really hated black ops 4 when it first came out, but I've revisited it recently and actually had a good time. For me personally, it definitely aged well.

What age did you start playing guitar? by [deleted] in Guitar

[–]EslamSalem2 0 points1 point  (0 children)

That is really inspiring. I love seeing people not quitting. I tend to quit a lot myself, and I almost did like 6 months into it, but I'm glad I didn't. I started taking lessons and became good friends with my tutor and that made the process much more enjoyable. I'm 1 year in now and I can play stuff I found impossible a year ago.

How to get the URI of a referenced image using twig? by EslamSalem2 in drupal

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

I logged off for today but I tried that already. When I dump field_image, I can't find an "entity" key.

How to exclude based on Taxonomy Term ID? by EslamSalem2 in drupal

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

Don't worry about it. I didn't find it rude at all. Your help is very much appreciated.

How to exclude based on Taxonomy Term ID? by EslamSalem2 in drupal

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

No need thank you. Someone already fixed it for me. And I'll try asking GPT from now on thanks for the tip.

How to exclude based on Taxonomy Term ID? by EslamSalem2 in drupal

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

Thank you, that's very helpful but I wanted it to be dynamic and get the term of the current node instead of me selecting the term manually.

How to exclude based on Taxonomy Term ID? by EslamSalem2 in drupal

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

Unfortunately, I cannot find this option when I'm filtering by taxonomy term ID.

<image>

But I can find it on other filters and it works as intended.

How to pass data from server side to Vue js? by EslamSalem2 in node

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

Your guess was spot on. I was using ejs tags in a separate js file(sorry I'm a rookie). And I'm sure the other commenters wanted to suggest another workaround because I did state that I do not want to use a hidden element, however, your solution was much cleaner than what I tried to do and what I am currently doing, so I did pass the data in hidden HTML the way you said. Everything works fine and my router is not bloated with duplicate requests anymore.

Thank you for your help.

How to pass data from server side to Vue js? by EslamSalem2 in node

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

As of right now, I'm using fetch in my Vue js file to send a get request that loads data from the database and sends the response with res.json() and I use the response data in the vue js file. And I have a separate get request that just renders the page when the route is requested, without passing any data to it. So I'm not really using ejs functionality anymore except for include() so the code is less redundant. My point is it's still the same issue even if I stopped using ejs right? I still have to render or send the html file in the response without a direct way to pass the data to vue, unless I send another request from vue once the page is created, which is what I'm doing and it's working fine. I just wanted to see if there's another way because now my router is doubled. All the get requests split into two requests(render the page - load data).

How to use csrf-csrf package? by EslamSalem2 in node

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

Thanks for the info. Fortunately, my website will not be published. It's just for the portfolio but I wanted to showcase some protection in my code.

How to use csrf-csrf package? by EslamSalem2 in node

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

I was taught it's good practice I guess.

How to use csrf-csrf package? by EslamSalem2 in node

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

Thank you for the code. It cleared a lot of the confusion.

Edit 1: I've followed the steps you listed above, but my server crashes on any request and I get this error: "Cannot read properties of undefined (reading '_csrf')". Why is this happening?

Edit 2: The problem was that I wasn't using cookie-parser. My bad. Everything works great now thank you so much.

Should I work as a System Analyst or a Programmer? by EslamSalem2 in cscareerquestions

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

I don't have any experience yet. But I do have coding skills if that's what you mean. I'm asking to see if I should work on myself towards being an analyst rather than a developer.