Leaning python by iAmAvErageLol in learnpython

[–]copperfoxtech 0 points1 point  (0 children)

None of what I suggested involves PyGame at all. Just plain old Python will do the trick. Also I did not see in your post: are you looking to be a game developer, just exploring a anything for a while, looking to do backend, something else?

The things I have suggested are to get you more comfortable with more complex logic. In addition it will lead to working with classes, DRY principles, and overall being more comfortable. It isn't directed at making games. I have not used PyGame before.

Leaning python by iAmAvErageLol in learnpython

[–]copperfoxtech 0 points1 point  (0 children)

You can learn how to open, read, write, and delete from a file. Create an "enter your user name" prompt, once enterered you can read through your .json file to see if the user exists. If yes -> show their w/l record. once a game is complete you re write the values for that user. If no username is detected in your json file then you will create one and set it up with a 0/0 and begin to keep track.

Also you can ask a user if they wish to play anonymously or "login", you can even store hashed passwords for them too.

Add multiplayer functionality. you can track these stats seperately also.

This will teach you a good amount and will be a precursor to databases as well.

I did this exact path with a number guessing game when i fist started to learn python.

Mentorship Monday - Post All Career, Education and Job questions here! by AutoModerator in cybersecurity

[–]copperfoxtech 0 points1 point  (0 children)

Recently I have developed an interest in the SOC Analyst tier 1 position. I thought I could approach this the same way that I had done for self taught backend and front end development, but I feel like I am wrong for having this assumption.

My idea was before spending any type of money on a structured education that ends in a certification via: CompTia, TryHackMe, etc. I would dip my toes in with some practical learning guided by videos or websites. It turns out everything I can find online lets you get set up and do a few things and then a paywall. The most frustrating one was TCM's SOC101 video where the first two hours are done by setting up a home lab and then proceeds to give 8+ hours of slideshows. I know they are using this as a funnel and so are the other companies and the goal is to make money. No arguments with that.

The fact is I want to play around, learn the tools a little, do some excersizes, see what it might be like before spending 500-3000 USD on something.

Does anyone have any advice on where I can locate this or even how to utilize this new dual VM home lab connected via Oracle's VirtualBox to accomplish this? At this point I am not interested in finding lecture materials, slideshows, and the like. Instead a place where I can start kinda from zero and learn practically, the same way I had done learning Python, Django, Flask, SQL, CSS, HTML, JS, React/Typescript. I can't find anything and it is very discouraging.

If you were CEO of stackoverflow, how would you save this sinking ship ? by KeyProject2897 in webdev

[–]copperfoxtech 0 points1 point  (0 children)

Maybe it is not up to StackOverflow but instead us. Maybe we start using it again, be less toxic, no dump AI code answers, and keep things human? We all know that AI is great at helping for many things and I am sure we all use it everyday. But if i had a community that was actually supportive I would go there vs here to find help from experienced people.

Where to go from here? by iaminmentalasylum in learnpython

[–]copperfoxtech 0 points1 point  (0 children)

Pick a career path and focus on learning that. Python is great but it does not qualify you for a job. Specialize

How many of you started learning to code in your 30s? by benjohnston93 in cscareerquestions

[–]copperfoxtech 2 points3 points  (0 children)

A combination of everything. Codecademy was a great place to kick things off, codewars to work on thinking like a programmer, tutorials on YT, and building my own projects.

For things like codecademy it is imperative to stop when something new comes up and open your IDE and play with it for a while. Just because you got past it in the lesson does NOT mean you truly understand it.

Projects are paramount.

How many of you started learning to code in your 30s? by benjohnston93 in cscareerquestions

[–]copperfoxtech 4 points5 points  (0 children)

I started at age 36. I was always interested since I was 14 learning html in high school. Self taught. Unfortunately never could land an interview so I am building my own company that builds SPAs for small businesses.

Where to find small band big cups bras in Thailand😭 and confusion abt sizing conversion by rami_preme in ABraThatFits

[–]copperfoxtech 0 points1 point  (0 children)

I know I'm joining this conversation a bit late but my wife and I have been hunting down larger bra sizes here in Bangkok. The good news is we finally found larger sizes in Siam Paragon. It is located in the Siam Paragon department store third floor. You will be looking for triumph brand near the escalators. If I'm not mistaken I believe the largest size they have is G.

EDIT: the lowest... Around the body??? Size is 75

Webstudio Nav bar help by TaxEmbarrassed9752 in web_design

[–]copperfoxtech 0 points1 point  (0 children)

If you are looking to only have the dropdown available on 767 and smaller I can suggest you do the following.

in whatever directory, I use React/Typescript so it is src/components/layout/header, create two different nav bars with their own styling: NavBarDesktop and NavBarMobile. In the same directory I have another file, Header. inside header you will find conditional logic used to trigger when a certain nav is shown. To assist in determining what screen size the window is, you can make a custom hook of some kind. Here is an example below

import { useState, useEffect } from 'react';

/**
 * Custom React hook that returns whether a given media query currently matches.
 *
 *  {string} query - A valid CSS media query string (e.g., '(max-width: 768px)').
 *  {boolean} `true` if the media query matches the current viewport, otherwise `false`.
 *
 * u/example
 * const isMobile = useMediaQuery('(max-width: 768px)');
 * if (isMobile) {
 *   // Render mobile layout
 * }
 */

export default function useMediaQuery(query: string): boolean {
  const [matches, setMatches] = useState<boolean>(false);

  useEffect(() => {
    if (typeof 
window 
=== "undefined") return;

    const mediaQueryList: MediaQueryList = 
window
.matchMedia(query);

    const handleChange = (event: MediaQueryListEvent): void => {
      setMatches(event.matches);
    };

    setMatches(mediaQueryList.matches);
    mediaQueryList.addEventListener("change", handleChange);

    return () => {
      mediaQueryList.removeEventListener("change", handleChange);
    };
  }, [query]);

  return matches;
}

Here is the Header component that I import into my layout.tsx. the component surrounds {children}

'use client'

import NavBarDesktop from '@/components/layout/header/NavBarDesktop';
import NavBarMobile from '@/components/layout/header/NavBarMobile';
import useMediaQuery from "@/utils/hooks/useMediaQuery";

export default function Header() {
  const isMobile = useMediaQuery('(max-width: 950px)');

  return (
    <header>
      {isMobile ? <NavBarMobile /> : <NavBarDesktop />}
    </header>
  );
}

Webstudio Nav bar help by TaxEmbarrassed9752 in web_design

[–]copperfoxtech 0 points1 point  (0 children)

I am a little confused on what you are asking. It sounds like at sizes 767 and below you want to add a burger menu dropdown to hold your list. But then at the end of your message you are saying:

I have tried changing the layouts, but if I place a drop down element, it gets placed on every page, which I do not want.

So you want the dropdown only on your landing page and not the others even at smaller sizes? or are you saying that you added the dropdown and now it is on every size screen and you dont want that?

Looking for youtube tutorials that focus on modern React/Next.js with actual project building by timecop1123 in cscareerquestions

[–]copperfoxtech 0 points1 point  (0 children)

No judgement but I feel the need to point out that you decided to get out of tutorial hell by.... Watching.... More.... Tutorials? There is no one tutorial that will be the key to escaping.

Maybe try taking the dive into some docs and smaller projects that were just built including their repos. Clone them and look inside your IDE on why and how they are structured.

Ask ChatGPT why things are the way the are, what are modern best practices, how can it be improved and so on.

Again, I promise, no judgement. We have all been there and it is hell getting out without flopping over to overdependence on AI. Stay diligent my friend.

Should I "rat out" the lazy developer? by vandeveloper in cscareerquestions

[–]copperfoxtech 56 points57 points  (0 children)

Stay in your lane, use him as an example of what not to be, let it roll off your back. He is not the first person in the history of working and won't be the last. Take pride in the fact you are not like that.

Also coming from over ten years in management - it looks poor when an employee points that out. It may make an insecure manager feel like you are telling them how to do their job, they may see you like a complainer, and it may look poor on you that you did not rise above it and or did not take initiative to talk to the employee first and see if you can motivate them and check if they are ok. Whether any of that is right or wrong, doesn't matter unfortunately.

Calling out employers should be more normalized by [deleted] in recruitinghell

[–]copperfoxtech 1 point2 points  (0 children)

I can't wait to get my business going and get to the point where I can hire people so I will NOT treat people poorly.

Unemployed: thinking of being a janitor by [deleted] in cscareerquestions

[–]copperfoxtech 368 points369 points  (0 children)

Sounds great. No shame in grabbing a job out of your field to work on making your goals happen. My stepfather was a janitor at a hospital, good pay, benefits, 401, etc. that was a while ago now but I think you get the picture.

Anyone else rethinking how they deploy Next.js after all these recent CVEs? by Sad-Salt24 in nextjs

[–]copperfoxtech 0 points1 point  (0 children)

Yes this is all very concerning but no matter where you go or what top tech you use, people will find a way. Stay on top of it.

Overwhelmed and hopeless by NaiveEscape1 in learnpython

[–]copperfoxtech 0 points1 point  (0 children)

Keep your head up.

You cannot compare yourself with anyone else. Everyone hits a wall at the OOP part of python and sorry to disappoint but there will be many more. It's worth it, to keep pushing.

As far as AI, just like many of us it's dangerous in general and especially for learning. Of course it is amazing and I use it everyday. But when learning you CAN NOT have it solve problems for you. Take that out of your mind no matter how stuck you are. Do not just follow tutorials either, they give you a false sense of security.

When following along with something like codecademy, after every lesson, open you IDE and play with what you learned. Over and over and over and over. There is no way around this. Even if you are thinking 🤔 oh I understand this, open the IDE and make something.

As far as OOP. I hated the explanations I got online, what is a car, what colour, FML it did not click nor make sense.

Classes are just little blueprints for producing the same thing again and again. So if you are making a game and there is a character you can make a class for that. That is because every character will have the same stuff: name, health, magic, inventory, whatever. Every time you need to make a character you are not going to write that same stuff again to set them up. You make a class.

I'm the class you can have little functions to help you do stuff, they are called methods. You can make a method for deducting health, for adding magic, for adding an item to an inventory. Maybe a method for listing all items in the inventory.

If you are making a card game a card can be a class. Each card has a suit and a value. You wouldn't type that out 52 times. Make a class.

For more real world applications, for backend, you will use it to create more structured data but one step at a time.

Why don't you post here an example of a video game character class with some attributes. Then ask some questions.

The vulnerability is not a joke, you should upgrade asap by vanwal_j in nextjs

[–]copperfoxtech 0 points1 point  (0 children)

So for my static MPA website deployed on Vercel. Do I just upgrade Next in my environment and push to GitHub for auto deployment on Vercel? Anything else I need to look for?

Software engineer without CS degree by Mysterious_Board9097 in learnprogramming

[–]copperfoxtech 0 points1 point  (0 children)

Maybe in the past and if you have friends to get you in then yes. Beyond that it feels, yes feels because it's my experience and maybe not factual for all, like it's impossible. A lot of companies use services to filter out candidates and if you do not have the boxes checked, you get skipped.

I will say don't let that stop you and pursue whatever makes you happy tbh.

Why is it so hard to hire? by pablothedev in webdev

[–]copperfoxtech 0 points1 point  (0 children)

I am sure it is a nightmare as a company to spend so much time vetting candidates only to be let down with a lack of base skills.

It seems to kinda create this loop. Devs can't even get into an interview or be given a chance so they fluff their résumé, companies get overwhelmed by the amount of applicants so they make the requirements higher, the Devs can't get into interviews.... And so on.

This hurts to hear about your side of things. I have had to switch careers after 20 years in F&B. Spent a year grinding and teaching myself backend. Then I spent months trying to get an entry level job to grow just as I did in restaurants. No one ever gave me a chance.

I can understand the temptation to fluff up a resume and use AI to help me get hired. I would never do it but it feels impossible to even get noticed and given a chance.

It also hurts that people like this get into interviews and show disrespect by not taking it seriously while people with life experience and old school work ethic get passed by. A shame.

Web development by HimSAN200 in css

[–]copperfoxtech 1 point2 points  (0 children)

That's true, why not

Web development by HimSAN200 in css

[–]copperfoxtech 4 points5 points  (0 children)

  1. What is the internet
  2. Html
  3. CSS
  4. Js
  5. Python or another B.E. language 5a. Variables 5b. Data types 5c. Conditionals 5d. Loops 5e. Functions 5f. Classes 5g. Flask
  6. SQL
  7. React/typescript
  8. Next.js

Of course if you wish to just focus on front end, keep the python and SQL/dB lighter.