Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Sab669
Sep 24, 2009

Correct, just the single app.module.ts with all my components in it.

And yea not it; like I said even if I copy one that is working to the component where it's not working [and strip out all the ngModel=... stuff] it still doesn't work in those components either lol.

Adbot
ADBOT LOVES YOU

New Coke
Nov 28, 2009

WILL AMOUNT TO NOTHING IN LIFE.

cum jabbar posted:

It's likely a spam bot that submits every field with text regardless of the input type. Does the form use backend validation on that field? What about a CSRF token?

Thank you, that makes a lot of sense.

It doesn't currently use any backend validation, although this may be worth adding. It does use a CSRF token.

Sab669
Sep 24, 2009

Motherfucker.... Apparently those tooltips don't work unless they're inside of a div or whatever with `class="card cardbody"` 😫

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
And today I learn that the content of innerHTML doesn't necessarily reflect the actual DOM tree 1:1.

I've been messing some more with pagination via paged.js, and eventually wanted it integrated with the rest of my existing printing things. Figured to transfer stuff via dangerouslySetInnerHTML in React. But the paginated output suddenly didn't match between the test code and this. Turns out when doing it this way, some spans that were supposed to be in table cells suddenly found themselves outside.
:thunk:

However in good news, it seems like the Chromium team is finally working on the layout engine issue that breaks mixed orientation printing.

Combat Pretzel fucked around with this message at 16:43 on Jun 8, 2023

former glory
Jul 11, 2011

Is writing a backend in Rust a giant footgun at this point? I've banged out a few embedded projects in Rust recently and now that I'm faced with creating a small backend, I'm really tempted to do that instead of my goto python.

minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender
My biggest concern would be being able to bring in colleagues skilled in Rust to help develop or maintain it. Python programmers are easy to find/train. Rust might be more difficult.

Windows 98
Nov 13, 2005

HTTP 400: Bad post

minato posted:

My biggest concern would be being able to bring in colleagues skilled in Rust to help develop or maintain it. Python programmers are easy to find/train. Rust might be more difficult.

I agree, this is what I was thinking too.

davey4283
Aug 14, 2006
Fallen Rib
Fyi I'm dick deep in this bootcamp now and I just got owned by object oriented programming. AMA

Windows 98
Nov 13, 2005

HTTP 400: Bad post

davey4283 posted:

Fyi I'm dick deep in this bootcamp now and I just got owned by object oriented programming. AMA

There will be a day when it just clicks for you. I promise.

Last Chance
Dec 31, 2004

I love OO programming. Has it fallen out of favor in some areas? I hear a lot of talk about procedural and functional programming these days

barkbell
Apr 14, 2006

woof
inheritance sucks

prom candy
Dec 16, 2005

Only I may dance
https://www.youtube.com/watch?v=QM1iUe6IofM

yeah that's right i'm posting a 45 minute programming opinion video

Nolgthorn
Jan 30, 2001

The pendulum of the mind alternates between sense and nonsense

Last Chance posted:

I love OO programming. Has it fallen out of favor in some areas? I hear a lot of talk about procedural and functional programming these days

Oh man. Ohh man, you are trying to rile people up.

Nolgthorn
Jan 30, 2001

The pendulum of the mind alternates between sense and nonsense
I'll bite though.

OOP is really good if you've got a lot of different objects that interact with one another in dynamic and unexpected ways. Game development for example. But in professional applications, unexpected things happening is the last thing anyone wants. Something that always outputs the same thing when given the same inputs. Something that's easy to test and predict. Dependable.

If you're using OOP just because it's what you're used to using then I recommend looking at alternate methodologies and structures. It is absolutely not the right tool for anything that matters, in my opinion. You wouldn't write bank software in Java for example that would be insane. No bank would ever do that rite?

davey4283
Aug 14, 2006
Fallen Rib

barkbell posted:

inheritance sucks

Inheritance, polymorphism, getters/setters, @method tags, fml.

Honestly, I'm probably just complaining since I'm right in the middle of a steep learning curve. I know they teach it since we'll probably run into it out in the wild. But I'd much rather be doing functional programming with js and all the regex/reduce/filter/map hack stuff. It is what it is :shepicide:

davey4283 fucked around with this message at 17:53 on Jun 24, 2023

Windows 98
Nov 13, 2005

HTTP 400: Bad post
Don't forget encapsulation :D

Ytlaya
Nov 13, 2005

There's a certain "bug" that's been confusing me for a while, so I figured I'd run it by this thread and see if anyone has encountered anything similar (it seems like the sort of issue that is difficult to Google, since attempts to search for it bring up many unrelated topics).

There's this one POST form on my website that submits a request to an end-point that can receive both GET and POST requests. It either submits a bunch of form inputs (with the POST) or just a single hash that is used to fetch the cached inputs from Redis (with the GET - this is so users can link directly to results).

This works correctly for most users, with the unfortunate exception of my boss. For some reason, the first time he submits the form it is wrongly submitted as GET (and throws an error as a result, since it's basically treated as a GET request with zero inputs). After that, it is correctly submitted as POST.

Other relevant information:
- The page with the form contains an input indicating the "final destination" endpoint. It first submits to a loading page, which then uses some JS to submit to said endpoint. I think this is where the problem occurs (but it's hard to test since I can't reproduce it).
- I'm pretty sure this issue was introduced when I changed the endpoint in question to allow both GET and POST requests. If absolutely necessary I could always use two separate endpoints, but I feel like that shouldn't be necessary (and it currently works for seemingly everyone but my boss, which makes me think there's some sort of issue involving the specific browser* or an ad/content-blocker, though the website should obviously still work despite that).
- I have absolutely zero clue why it works for him after the first attempt. Basically, the first time he runs the function on a specific trait, it does the bad GET submission and throws an error. But every subsequent time, it correctly submits as POST and runs normally.

* my boss uses Safari, but I don't encounter the issue if I use Safari on my mac laptop - as far as I'm aware my boss is literally the only person who has encountered this problem, but unfortunately he's also "the most important user" for obvious reasons lol

edit: I made a change that I think will fix the issue (at least without any more significant changes). Still waiting on my boss to test (since he's the only one who can actually confirm whether it works). I basically just changed the "/the_function" endpoint to only accept POST again, and instead made the other "linkable" endpoint be structured like "/the_function/<hash>" instead of "/the_function?hash=<hash>". I still don't know what was causing the "false" GET requests, but I think this will probably prevent the issue since I'm 99% sure it was introduced by allowing both GET and POST requests at that endpoint.

Ytlaya fucked around with this message at 19:38 on Jul 5, 2023

Boba Pearl
Dec 27, 2019

by Athanatos
So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation?

Mata
Dec 23, 2003
I think Django is nice, if you discover later on that you want you can put React or whatever in front but you probably won't need to.

Mata fucked around with this message at 22:52 on Jul 5, 2023

spiritual bypass
Feb 19, 2008

Grimey Drawer

Boba Pearl posted:

So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation?

You can do this with Wordpress by creating your own theme from scratch. This way, you'll get to keep all the existing content.

prom candy
Dec 16, 2005

Only I may dance

Boba Pearl posted:

So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation?

https://astro.build

reversefungi
Nov 27, 2003

Master of the high hat!
I have a small personal project that I’ve been using countapi.xyz to store a simple counter value, but it looks like the API has gone down, not sure if for good. I was thinking about maybe switching to just fetching a simple JSON blob I store in a GitHub gist somewhere or something. I have a friend who’s not too tech savvy that needs to update the counter a few times a year so I figured a gist would be relatively straightforward for them to modify. Is there somewhere else I should consider storing this little piece of data, in a shared space of some sorts?

Edit for additional context: Haven’t looked into traffic numbers but I’d be surprised if this project gets more than a few dozen views a month.

reversefungi fucked around with this message at 06:52 on Jul 19, 2023

Agoat
Dec 4, 2012

I AM BAD AT GAMES
Lipstick Apathy
Sorry for the noob question, but what is the neat screen door-looking overlay called on top of the background video on this site?

https://warthunder.com/en

Boba Pearl
Dec 27, 2019

by Athanatos
I've almost got something set up in django-oscar that I might be able to show off :)

kedo
Nov 27, 2007

Agoat posted:

Sorry for the noob question, but what is the neat screen door-looking overlay called on top of the background video on this site?

https://warthunder.com/en

I'm not sure if that treatment has a specific name (I'd just call it "a repeating dot pattern") but all they're doing is applying a repeated background image z-indexed over the video as a pseudo element.

Here's the CSS in question:

CSS code:
.content__background-video::after, 
.content__background-promo::after {
    content: "";
    position: absolute;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(https://static.warthunder.com/assets/6417ea1848ed628c46d5.png);
}
This type of image is a clever, stylish way to disguise a low-quality video. If you remove it you can see that the video has been heavily compressed and has some real ugly artifacting on certain shots, but the dot pattern visually breaks up the harsh lines created by the compression.

kedo fucked around with this message at 14:48 on Jul 25, 2023

The Dave
Sep 9, 2003

Calling it a halftone pattern would be a stretch.

Data Graham
Dec 28, 2009

📈📊🍪😋



It's like mormon bubble porn

MikeJF
Dec 20, 2003




Data Graham posted:

It's like mormon bubble porn

Today I learned something that depresses me.

Boba Pearl
Dec 27, 2019

by Athanatos
This is going to sound like a dumb question, but I've been able to spin up an E-mail server, a gitlab, and both my comic, and my partner's e-commerce store on a single server and sorted out all the DNS stuff, I know this is probably like really junior dev stuff, but is there a way I could spin this into work what would give me money? Like, just some money to play around with, it doesn't have to be full time. I ended up going with wordpress in the end lol, but I'm still committed to learning django.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice
The problem is it is so easy to do those things these days, coupled with the availability of site builders like Wix and Squarespace, that setting up websites has been commodified to the point that it is a very low paying job even if you manage to do it 30 hours a week. Also, setting up and running email servers is a hell you do not want to wade into.

The Dave
Sep 9, 2003

Even if you found clients, unless you already had a very efficient running operation, it might be more beneficial to act as their squarespace broker/admin instead of spinning up stuff that is more involved.

fsif
Jul 18, 2003

I do resent Squarespace and Wix for eliminating the $1000 brochure site.

Obviously it's a way better deal for the small businesses but that used to be such a good little supplemental income stream, heh.

prom candy
Dec 16, 2005

Only I may dance
Not to mention Shopify for eliminating the $50k ecommerce site.

camoseven
Dec 30, 2005

RODOLPHONE RINGIN'
:capitalism:

kedo
Nov 27, 2007

Look on my Works, ye Mighty, and despair!

https://www.youtube.com/watch?v=-72sIsC1qTU

kedo
Nov 27, 2007

A question for ya'll – does anyone have experience picking up small side work (or "gig work" as the economy tells me it's called) for web dev? I freelanced for years but took on a full-time position about a year ago. I have frequent but inconsistent gaps in my schedule where I could pick up a few hours of work here or there, but not enough that I could reasonably bid on true projects in my freelance capacity.

I'm not sure if such a thing even exists outside of sites like Fiverr, but it's not really worth my time to compete with random dudes in India who charge $15/hr for their work.

GigaFuzz
Aug 10, 2009

What are the go-to domain registrars these days? I occasionally help clients at work set up some basic starter websites and I've been using Gandi for a while, but I think the value has fallen off with the price rises and dropping free email.

I seem to remember namecheap being decent. Any other goon favourites?

prom candy
Dec 16, 2005

Only I may dance

GigaFuzz posted:

What are the go-to domain registrars these days? I occasionally help clients at work set up some basic starter websites and I've been using Gandi for a while, but I think the value has fallen off with the price rises and dropping free email.

I seem to remember namecheap being decent. Any other goon favourites?

I've heard good things about cloudflare

Violator
May 15, 2003


I often use hover.com

Adbot
ADBOT LOVES YOU

kedo
Nov 27, 2007

GigaFuzz posted:

I seem to remember namecheap being decent. Any other goon favourites?

I still use Namecheap because it's inexpensive (for the first year at least) and reliable.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply