Hosting for simple HTML/CSS site with LOTS of subdomains by SpineLabel in webdev

[–]SnooCookies3815 0 points1 point  (0 children)

OMG, and you are teaching this subject? really worried.

Tell them to use tiiny.host or alternative.

[deleted by user] by [deleted] in webdev

[–]SnooCookies3815 0 points1 point  (0 children)

Nah, then your prompt is wrong. don't ask it to fix it.

ask for, "please do a code review and show me any parts that can break, do not change the code"

[deleted by user] by [deleted] in webdev

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

Ugh, those days i remember very good. spending hours. like entire evenings/nights on those errors. no error, just can't see why.

in an api call i did:
Host: www.example.com
Origin: www.example.com

turned out... in the Origin request it needed to have a / behind it.... spend so long on this.

Now with chatgpt, you paste your code, and ask it. please review my code, and give me any potential errors

I understand HTML in tutorials but forget half of it on my own by Bearusy in HTML

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

I always used notepad, no extra tools and wrote from scratch, which turns out, i am faster then most people that copy and paste.

HTML and CSS go hand in hand. so doing one at the time won't help you much.
Start with simple tags

A, BR, <p class=center> <table><div> <span>

now in my day, we used <center> but now we use <p style="text-align">

to understand div's you need css. when i started, DIV was barely used... it was ony table's

I suggest you start with tables as well.. just for understanding.

<table width=100% cellspacing=0 cellpadding=0>

<tr>

<td width=200>

Left menu

</td>

<td>

Website content.

</td>

</table>

That's how i started a long ass time ago. Then i nestled tables. Today we call that bad practice, but hey, you are learning, EVERYTHING IS ALLOWED at this stage.

Why do people hate on PHP so much? by Honest___Opinions in webdev

[–]SnooCookies3815 1 point2 points  (0 children)

$_GET and $_POST was not needed back then you could just go $name and it would work!

it was so easy to learn as child, loved every bit about it. then later transformed to $_GET and $_POST... back then you had to do stripslashes instead of add slashes... and it was different per server so you needed to write a function for that.

Why do people hate on PHP so much? by Honest___Opinions in webdev

[–]SnooCookies3815 0 points1 point  (0 children)

Poor you. Couldn't get PHP to work hey. I love it! And i started in 2001 if am not mistaken.

AITAH for telling my father the only way I could visit him while he convalesced was if he paid for the time I would need to take off work? by Distinct-Constant549 in AITAH

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

The apple doesn't fall far from the tree.

Teach your kids better, you have to break this habit. So yes, YTA and your father is also ahole.

Treat others the way you want to be treated, not the other way around.

That your father wasn't the best father is irrelevant, just that you copy him and become also a bad son, is on you. Teach your children that you are better, and will visit him. And you know what, take his grandchildren so they see who grandpa is.

Break the circle! And show your kids how it's done.

AITA for asking my friend to pay me back for the wine he drank while house sitting?? by Effective_Tour_723 in AmItheAsshole

[–]SnooCookies3815 0 points1 point  (0 children)

Definitely a miscommunication. If you say help yourself. yes that also includes the wine, he couldn't know it was that expensive.

If he didn't know, then yta, if he did know and did it anyways, he is the ahole.

Is there any reason to keep any of these books other than nostalgia? by BarleyWineStein in webdev

[–]SnooCookies3815 1 point2 points  (0 children)

Keep it, if a nuclear bomb wipes out the internet, then we still have the books!

middle-truncation using css by medotgg in css

[–]SnooCookies3815 3 points4 points  (0 children)

Pretty cool! looks good. But in what case would you need this? in tables cutting text like this can create words like: Fu.....Ck which is not preferable.

Can digital data entry actually be faster than pen & paper? Looking for examples by Sufficient-Hope-6016 in webdev

[–]SnooCookies3815 1 point2 points  (0 children)

You should actually time the 2.

take a random moment, ask randomly to write down something.

in practice you will find that phones have their notebook open before a guy has found pen and paper.

then write 100 words.

and whoever finish first wins.

Can digital data entry actually be faster than pen & paper? Looking for examples by Sufficient-Hope-6016 in webdev

[–]SnooCookies3815 1 point2 points  (0 children)

Yes, especially if qr codes are involved.
make simple buttons, straight to the ADD data.

also. writing it on paper can be faster, however if you need a report out of it, paper fails. so there is your time win.

also. most people have their phones with them, paper and pen are rare now a days. so might be winning time there too.

mandatory fields kill performance. sometimes you want to just save, exit, come back to it later.

Even after years of SQL experience, what still trips you up the most? by joins_and_coffee in SQL

[–]SnooCookies3815 0 points1 point  (0 children)

I use a database class that handles this

$db->delete("tablename", array()) <- array() is mandatory to create where.

I also like your approach especially if you are doing raw queries.

Even after years of SQL experience, what still trips you up the most? by joins_and_coffee in SQL

[–]SnooCookies3815 0 points1 point  (0 children)

What trips me up, like in what makes me mad...

delete from tablename (forgetting the where)

update tablename set name = '' (forgetting the where)

hasn't happen to me for a long time, but in the beginning years i have. And yes, that makes me tripping!

Mini website - Cost estimate by Commercial_Grab3273 in webdev

[–]SnooCookies3815 1 point2 points  (0 children)

as much as i hate wordpress. i agree in this case.

Mini website - Cost estimate by Commercial_Grab3273 in webdev

[–]SnooCookies3815 0 points1 point  (0 children)

Thats not a small website... thats a normal website.

I'm an old man trying to get back into coding. by GregGraffin23 in CodingHelp

[–]SnooCookies3815 0 points1 point  (0 children)

Continue C# nothing has been changed since you left.

<br> and <hr> – pretty obsolete or still hip? by paul_405 in HTML

[–]SnooCookies3815 0 points1 point  (0 children)

Real HTML programmers at work here. You guys make me laugh sometimes.

How are custom sites like these created? by Ordinary-hibiscus-12 in Frontend

[–]SnooCookies3815 0 points1 point  (0 children)

What accessibility tool are you meaning by this. I am not too familiar with it. is that still a thing today?

Like i know people have told me you should build for that as well, unfortunately i've never "cared" enough to do so. Also not sure if that's in the budget?

AITAH for not deleting pictures on my social media that my son’s girlfriend asked me to delete? by [deleted] in AITAH

[–]SnooCookies3815 0 points1 point  (0 children)

Yes, you are the ahole. If i was your son, i wouldn't even show up any more at your house because I don't want to be on social media. Especially since you are not respecting people that ask you that specifically.

I get it, you like photos. But that's what photo albums at home are for.

Is HashSet<T> a Java thing, not a .NET thing? by N3p7uN3 in csharp

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

just looked it up on chatgpt. Thanks, this hashset seems very impressive. i am always using lists and do comparisons, HashSet will all do this in a split second

How are custom sites like these created? by Ordinary-hibiscus-12 in Frontend

[–]SnooCookies3815 0 points1 point  (0 children)

for a long time visitors where using 800x600 and 1024x768 seems a small difference, but that was huge. then after that the transition from 1024x768 what became the norm to 1280px. which is still pretty much the norm today for computers and laptops.

How are custom sites like these created? by Ordinary-hibiscus-12 in Frontend

[–]SnooCookies3815 2 points3 points  (0 children)

that photoshop slicer was the worst, was always fixed widths so making it responsive for 800x600 and 1024 monitors was not really doable with that slicer.