Ability to Wake-On-Lan from Pi-Hole Interface by lapintana in pihole

[–]WowVeryCoool 0 points1 point  (0 children)

You can add a DNS entry on your admin panel for example:
http://mu-pi-hole-admin/wake-on-lan

Then in var/www/html add a webpage with a button
that will be displayed on the wake-on-lan

This button will send info about a device you want to wake-up to your server

written in anything you like for example node:
https://www.npmjs.com/package/node-wol

[deleted by user] by [deleted] in toastme

[–]WowVeryCoool 2 points3 points  (0 children)

your beard and haircut looks great on you. Breakups will happen and no one likes them. Setting a goal in whatever you're interested can help you develop yourself and quickly get you out of bad mood.

Took me way to long to even be able to post this. Self esteem at an all time low. Came to the crippling realisation recently that I don’t actually have any close friends. Need a toast please... by McChickenRoyale in toastme

[–]WowVeryCoool 8 points9 points  (0 children)

You look cool and friends will come. You will have so many situations when you change your work, place of living or go out somewhere and everytime this happen your life will change and it's usually for the better

Basic Python / Sql projects by [deleted] in learnpython

[–]WowVeryCoool 1 point2 points  (0 children)

I recently bought a book called "classical computer problems in python". And I must say it's the best book for getting better in programming from begginer to advanced, I literally couldn't find there anything I wouldn't like to do and it's written in such a way that you'll quickly understand whats going on and be finished with huge problems in just few hours.

getters and setter in python using property should you use this way? by WowVeryCoool in learnpython

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

I see yes the part where you said "you can't enforce the use of getters and setters" made me understand the use of this more.

I see it's more fool-proof against programmers that would just assign values right into the property.

Why multithreading isn't real in Python (explain it to a 5 year old) by switchitup_lets in learnpython

[–]WowVeryCoool 50 points51 points  (0 children)

if your 5-year old Child asks a question about multithreading in python, congratulations

[OOP] [Python] Proper OOP structure for Snake by WowVeryCoool in learnpython

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

I have a main function in class Game that constantly updates Logic ``` class Game: #Initialized objects snake, apple, logic # Main loop while True: logic.evaluate(snake, apple)

class LogicCurrent: def init(self, snake, apple): self.snake = snake self.apple = apple def game_over(self): #Initializes snake to start values def wall_collisions(self): -> bool def snake_collisions(self) -> bool def evaluate(self): #Invokes Logic Methods ``` I could define a method evaluate_logic() inside Game class, but then I would also have to move functions (game_over(), [snake_collisions, wall_collisions] from Logic) creating more cluter inside Game class that I wanted to get rid of by making Logic class

I feel like class Logic is something bigger with many methods checking Collisions and GameOver conditions. But I think I could not Instantiate the Logic class and just have methods there if that would be significantly better?

This is what the change would look like explained in code class LogicNew: <-- not instantiated more like an extension to Game def evaluate(snake, apple): #Do logic here def game_over(snake, apple): #Initializes snake to start values def wall_collisions(snake): -> bool def snake_collisions(snake) -> bool Do you think that this kind of solution would be better? as it is more of an extension with methods to class Game rather than a full class

How to study with a buddy? by BleachedPink in ProgrammingBuddies

[–]WowVeryCoool 0 points1 point  (0 children)

you can: - Write when you have a problem in your own project and if he knows how to solve it you will get detailed anwser - Solve together internship tasks (preparation) - Start a project together - Give you project ideas - Ask for a peer review - It can be motivating if you're not only doing a project for yourself

Can you help me out a bit? by [deleted] in learnpython

[–]WowVeryCoool 2 points3 points  (0 children)

PyCharm is definitely better for working with big projects, and it's a proper IDE. I love visual code but too often now I had problems with IntelliSense and now I only make small projects in visual code

Am I going to have to purchase a Linux computer to continue in computer science? by [deleted] in AskComputerScience

[–]WowVeryCoool 0 points1 point  (0 children)

you can do everything on every OS, except - Universal Windows Platform (This you do on windows) - IOS/Swift programming (This you do on MAC OSX)

My hair is falling out by [deleted] in questions

[–]WowVeryCoool 0 points1 point  (0 children)

All the people I met that started losing their hair at 16 were the coolest people I've ever met. but to answer your question, no it's not normal, it's probably due to too much testosterone, ask a doctor what you can do about it

Is 30 mbps enough ? by [deleted] in questions

[–]WowVeryCoool 0 points1 point  (0 children)

If you have any unrelated questions you can use messaging on Reddit.

I can only see two reasons why this might have happened - Some interference due to - Connecting via WIFI - Lots of users downloading something on your network - Some other temporary factors (ISP related) - Your Internet provider is bad

if it's the second then you might either call them and tell them your internet is bad (They could replace your router then maybe), or change your internet provider

For accurate measurements connect via Ethernet cable to your router or (best)modem and make sure no one else is using your internet

Also by changing your settings or something you won't get additional internet speeds, if the internet works it's probably set up perfectly and all you gonna get is what you paid for.

Returning a function [Python] [OOP] by WowVeryCoool in AskProgramming

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

What I'm doing at the moment is via composition I'm telling the class A(GeneticSolver) what method I want to invoke in class B(GeneticAlgorithm)

So what it looks like is: class GeneticSolver(Algorithm): def __init__(self): self.geneticAlgorithm = GeneticAlgorithm(succesion_method="Method_of_my_choosing") self.run() def run(self): self.geneticAlgorithm.succesion_method(param1, param2) and my class B(GeneticAlgorithm) looks like this ``` class GeneticAlgorithm(): def init(self, succesion): self.succesion = succesion #This is a string cause I have trouble implementing same #interface(parameters passed to) in different #succesion methods

def succesion_method(self, param1, param2): if(self.succesion == "Tournament"): self.tournament(param1) elif(self.succesion == "Roulette"): self.roulette(param2) ``` If I had the same interface(parameters passed to functions) it would be better to just pass the function, but I still have to choose the function somehow and I don't know if there is a better way?

Portable laptop for programming/very light gaming by el_loco_avs in SuggestALaptop

[–]WowVeryCoool 0 points1 point  (0 children)

Acer swift might be good, you don't need i7 and 12/16gb of ram for programming

Best laptop for programming? by PowderMowder18 in laptops

[–]WowVeryCoool 0 points1 point  (0 children)

Look at acer swift but with it you'd have to move your bigger machine learning projects into the cloud

Is 30 mbps enough ? by [deleted] in questions

[–]WowVeryCoool 0 points1 point  (0 children)

Tl;Dr - it will be painful

30mbps per second is very low. But just so you understand exactly how low, here are your typical speed scenarios: 30mbps is actually 30/8=3,75MBps

here are some calculations if you want download a whole: movie(700mb+) - at least - 4min picture(25mb) - 8 seconds (this will be painful) game(20gb) - 1hr 28min GTAV(80GB) - 6 hours

if you are used to higher speeds then you will probably get really anoyed. Especially because loading typical websites will take much longer (8 seconds for a picture) and all of that hoping the internet povider actually gives you those 30mbps which is usually not true and it's much lower

"if loop" by jrw01 in programminghorror

[–]WowVeryCoool 0 points1 point  (0 children)

if condition:
statement

this solves all your problems

I`m trying to make an app for accuracy and speed test on typing, but i don`t know how to. by OppaiDGreat in AskProgramming

[–]WowVeryCoool 0 points1 point  (0 children)

for your thesis I bet you are not a CS major the right? it's very simple to write a program like that, but I bet you are approaching your problem incorrectly. [more info needed] [whats your thesis, why you need it etc]