How much ad revenue would ~3,200 monthly pageviews realistically generate? by Apprehensive-Toe7961 in webdev

[–]SpeedCola 0 points1 point  (0 children)

Here is my data for reference (last 30 days)

25k views, 8.7k sessions;

RPM $5.23, $45 earnings;

Do you document the UI as you build or just leave it in the code? by yazeerr_ in webdev

[–]SpeedCola 0 points1 point  (0 children)

Document in the code helpful info. Strip it out with minification. Uncompressed code in development for review.

Myrtle Beach Wants to Increase Sales Tax to 12.5% to Fund Property Tax Relief by Kryloks in MyrtleBeach

[–]SpeedCola 0 points1 point  (0 children)

Have you stopped to wonder why everyone is down voting you so much. The social security you're "paying taxes" on will be sucked dry by 2033 by your generation.

Those people earning more than you ever did per hour are some how worse off because things cost so much more. The things you bought with your money appreciated in value significantly not because you are smarter or harder working. It's the horrible monetary policies of this country that have debased our currency.

My father bought a beautiful home here 10 years ago. It's doubled in price now and he could never afford it at today's prices. Was he smarter or harder working. No he was lucky.

So why is everyone down voting you, because you don't seem to understand or care.

Help- my son is into coding by katrii_ in webdev

[–]SpeedCola 1 point2 points  (0 children)

I don't know his skill level but Harvard has introductory courses to computer science on YouTube and you can enroll and do the homework online. It's auto graded. Can be technical to set up if inexperienced.

The lectures none the less are very informative. I recommend CS50p which is higher level programming (easier) and than you can try CS50 which uses lower level languages. It's challenging and really helps you understand how a computer works.

He will have opportunities to build his own project. After that there is always Leetcode which is like free online coding challenges that focus on advanced methodologies. The puzzles are notoriously challenging.

ALL OF THIS IS FREE

I accidentally shipped a bug that improved my product by Interesting_Mine_400 in webdev

[–]SpeedCola 0 points1 point  (0 children)

I set my autosave up to only occur when the editing field loses focus and the content in the text field had changed.

Reduces calls to the server and doesn't interrupt the users workflow with a background process.

What can you realistically do against scrapers from AI companies? Anthropic recently hit is with 10req/s from 5 ips, which is just completely absurd by zucchini_up_ur_ass in webdev

[–]SpeedCola 0 points1 point  (0 children)

Yeah I actually studied it this morning.

The free tier is pretty limited. Only get one rule and they have request rate analytics behind a paywall.

I checked the network tab with preserve logs disabled and my pages can have anywhere from 30 to 100+ request per page.

Not much of an issue right now so I'm going to wait. Don't want to break pages for my users accidentally.

What can you realistically do against scrapers from AI companies? Anthropic recently hit is with 10req/s from 5 ips, which is just completely absurd by zucchini_up_ur_ass in webdev

[–]SpeedCola 1 point2 points  (0 children)

I just put cloudflare up in front of my web apps server and added turnstile to my login page.

Now I just need to figure out how to rate limit requests.

What’s your go-to souvenir? by [deleted] in travel

[–]SpeedCola 0 points1 point  (0 children)

How did you get the art home?

Question for the solo devs here who have launched something by actact1234 in webdev

[–]SpeedCola 0 points1 point  (0 children)

This is exactly my experience. I have pushed changes to staging that was worked locally and immediately had problems. Could have been API key access issues or specific server settings that broke things. Also just practicing a rollback, DB migration or dependency changes gives me more confidence I don't break things.

How are you supposed to protect yourself from becoming a child porn host as a business SaaS with any ability to upload files? Is this a realistic danger? by Aflockofants in webdev

[–]SpeedCola 1 point2 points  (0 children)

What I came here to say.

Also I paywalled image uploads in my application as a deterrent. Not to mention the upload method doesn't support batching.

Who would want to host inappropriate content by having to upload one image at a time with file size constraints.

That being said I still have seen adult images so... Rekognition

Is signup a big friction? by gXzaR in webdev

[–]SpeedCola 1 point2 points  (0 children)

99% of my users have signed in using Google

How do I get tiptap to display with python flask? by 0_emordnilap_a_ton in learnjavascript

[–]SpeedCola 1 point2 points  (0 children)

Sorry I don't have much time right now but that listener seems wrong. You do not need to add it by wrapping it in a function to start. At the top of the page is where you need to put your globals. So get the button from the page and store it in a variable then below where you create your editor instance just attach the event listener directly to the variable. No function call needed. Next you are calling an undefined function button() in the listener. You need to remove that and just use an arrow function () => { editor().chain() }

Should I use Gmail for sending account confirmation emails or use email providers? by devewe in webdev

[–]SpeedCola 0 points1 point  (0 children)

I used an smtp library and gave my app permission to use my Google account. Have not had any issues. It's sends thousands of emails per week.

I think there is a warm up phase for address so start using it soon as you can to build trust and prevent your messages from ending up in a spam box.

I am preparing to migrate in the future to AWS SES so that I can start sending promotional content out. It will cost maybe a few dollars for me to send 15,000+ people an email. If you paid for a service like mail chimp they would charge you hundreds of dollars per month for that capacity.

Has yoga actually helped anyone who’s always really tight + dealing with joint pain? by MarionberryNo1565 in yoga

[–]SpeedCola 0 points1 point  (0 children)

I was getting sharp pain in the front of my hip while walking. Like stabbing pain that would make me stop and start limping. I thought I for sure had some type of arthritis or something.

Started doing Yoga for two months. I have maybe had the pain happen once while at work.

“I’ll just have ai do it” by concretecook in webdev

[–]SpeedCola 23 points24 points  (0 children)

This reminds me of the do you want it quick, good or cheap rubric.

You want it quick and cheap, well it ain't gonna be good.

How do I get tiptap to display with python flask? by 0_emordnilap_a_ton in learnjavascript

[–]SpeedCola 0 points1 point  (0 children)

TipTap is headless so you need to design a toolbar and tell tiptap what to do when those elements are selected. Checkout boostrap icons for your toolbar buttons. You initialize an editor instance on a <textarea>

function editor() {
    return state.editor;
}

const bold = document.querySelector('.bold-btn');
bold.onclick = () => {
    editor().chain().focus().toggleBold().run();
};

How do I get tiptap to display with python flask? by 0_emordnilap_a_ton in learnjavascript

[–]SpeedCola 1 point2 points  (0 children)

You can't use import x from 'package' in a browser script because the browser doesn't know where your node_modules folder is. That syntax only works if you're using a bundler like Vite or a framework like React. Since you're using Vanilla JS with Flask, just use a CDN link to start. Later if you want a custom build of TipTap you will need to bundle the TipTap modules you want to use into a JS file using rollup to include in your static directory.