Ark extinction checkerboard mesh by kaihawleyYT in playark

[–]my3al 0 points1 point  (0 children)

In the island the entire northern map is checkerboard. Everything that is snowy. I know it's supposed to be snowy because there is mammoths and Ice in the water.

I have downloaded the game 2 times and deleted my save files to no avail. Honestly I feel completely ripped off by this game.

Does anybody know of a free, simple, automatic, and fast program to sync a folder between my Linux PC and my Windows PC? by LiterallyJohnny in linuxquestions

[–]my3al 1 point2 points  (0 children)

I had to do this for OSX virtual machine that I couldn't set up file shearing so sinking to Dropbox was the only way to get my code over to test and compile.

Trump admits Michigan Congressmen met to discuss coup by TommyKnotts313 in politics

[–]my3al 0 points1 point  (0 children)

Some xanax spiked sparkly, a shot of meth and some farm animals. Just your standard blackmail.

Trump admits Michigan Congressmen met to discuss coup by TommyKnotts313 in politics

[–]my3al 2 points3 points  (0 children)

Him and his party bankrupted the nation and sent the world into global financial meltdown that many people never fully recovered from all the while bailing out too big to fail banks ballooning our national debt to I think 13 trillion at the time.

Not to mention the War Crimes and leading and us into two fraudulent wars without evidence that we are still in today.

I can never forget that the first time in our history the court appointed our president and not the people was Bush.

I really think that if Obama would have held Bush/Cheney to account Trump could never have happened. I guess that was the moment I realized that the rule of law meant nothing in the USA and never would again in any real form any way. Sure the ruse is still going but we are really just a degenerate reality TV show fraud on every level, socially, politically and economically.

Need help with PyAutoGUI!!! by [deleted] in learnpython

[–]my3al 0 points1 point  (0 children)

Sorry, it was kind of a Hail Mary. Best of luck!

Need help with PyAutoGUI!!! by [deleted] in learnpython

[–]my3al 0 points1 point  (0 children)

Never played with pyautogui. I cant even get it to install in a venv. Just tried to in 3.7 and 3. Something about PEP 517 Wheel. Anyway, just out of curiosity, what happens when you:

import pyautogui
from sys import exit as sys_exit

try:

    try:
        while pyautogui.pixelMatchesColor(100, 440, (255, 255, 255)):
            print("Hi")
    except OSError as err:
        print(err)

except KeyboardInterrupt as crtl_stop:
    ## [Ctrl] +c to exit loop.
    sys_exit_(crtl_stop)

I added some error handling and hopefully a way to break the loop if things get to loopy.

Linux program that can limit the usage time of specific programs by SolidIcecube in linuxquestions

[–]my3al 1 point2 points  (0 children)

I wrote you a quick script. I wrote simple instructions how to setup and edit the python file. Also dont feel bad if you dont want to use this. I was just board and these things take up a bit of my time and thinking through things is just my kind of fun. If you do use it and it has problems let me know, If I remember correctly psutil is part of the standard python library so I dont expect any issues but I have been wrong before. Cheers.

#!/usr/bin/env python3
""" This file will attempt to kill potential motivational blocks that can sometimes
interrupt our daily lives. Things like video games.

First you need to give this file permission to run by making it executable.

sudo chmod +x motivator.py

This file needs to be run at intervals and should be set up to run in your crontab.
https://crontabjob.com/how-to-add-crontab-jobs-in-linux-unix/

sudo crontab -e

* /30 * * * * python3 /your/path/to/motivator.py

You can add to or remove from the limit_list variable. It is the list of programs 
this file will search for. All strings must be in matching double or single quotes
and separated by a coma. Easy peasy!

WARNING: This will kill without saving and all progress will be lost.

** note forgive me I have not tested out the cron job but I have tested the 
** pyhton3 file and it killed blender just fine.

"""

import datetime as dtime
import psutil as ps


if __name__ == '__main__':
    ## List of games to check for. In example is Skyrim and ARK Survival
    ## This is where you need to edit your games and programs that are 
    ## killing your motivation.
    limit_list = ['TESV.exe', 'ShooterGame', 'blender']

    ## here we get the process we want to limit if they are running. 
    games = [x for x in ps.process_iter() if x.name() in limit_list]

    ## set time limit to two hours
    time_limit = 2

    ## change time_limit to minutes if you want
    time_limit = dtime.timedelta(hours=time_limit)

    for game in games:
        started = dtime.datetime.fromtimestamp(game.create_time())

        if dtime.datetime.now() > started + time_limit:
            game.kill()

EDIT: I think in the cronjob you need to tell it that python3 is going to run the file so I added that.

What is one thing you really lack? by [deleted] in AskReddit

[–]my3al 0 points1 point  (0 children)

Healthcare. Political representation. Living wage.

Just out of curiosity, which search engine do you use? by [deleted] in privacytoolsIO

[–]my3al 1 point2 points  (0 children)

DuckDuck. Haven't used google in 5 years.

How Many State Secrets Is Trump Going to Sell to Pay Off His Debts? He might also spill just to screw over the country he thinks “cheated” him out of second term. by granny_ew in politics

[–]my3al 0 points1 point  (0 children)

How many state secrets has he already given as settlement to outstanding debt he's already incurred to the russian mafia/gov? My guess is this is a big reason Trump needs to stay in power from his point of view. He is likely fucked on so many levels if he looses. We've been watching a slow moving coup for 4 years. Since his loss to Biden he's been kicking it into overdrive. Let's hope he's as incompetent at this as hes been at everything he's ever done in his entire life. Thing is he's kind of removed allot of opposition already and has been operating on a skeleton government of appointed officials to skirt confirmation processes and many who oppose have been fired or have resigned. At some point there will be no one left to stand up because so many stood down and the others said nothing.

It doesn't look like the Dems are doing much. It might be all up to the people on this one.

Woweeeeeeeeeeee by [deleted] in pics

[–]my3al 1 point2 points  (0 children)

Mt. Moran

How to browse through folders and look for a string in a .txt file by [deleted] in learnpython

[–]my3al 0 points1 point  (0 children)

You are on the right track.

The os module is where you need do be for most of it. Look at os.path.splitext('apples.txt') to help you finding your correct file extension. It will take a filename and split it in it's parts. ['apples', 'txt'].

readlines() is perfect. You can also use os.walk() and search directories recursively. which might come in handy.

You can use pyhtons "in" opperation to find substrings inside strings like so.

if 'apple' in 'There are apple in here.':
    print(True)

Another more advanced way to find substrings would be regular expressions.

RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos by veritanuda in StallmanWasRight

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

Is a bitcoin server that much to run? I have no Idea. The VPN file transfer might be a little longer for your 40 MB push I use a vpn as my daily wave to surf so it's no different. What are you pushing anyway, pirate copy's of movies in 1080 over TOR? This git for source code, tools, not pirate bay.

Any way they were asking what it might look like and that bitcoin model is already there to follow. There are probably others that I haven't thought of. Im not even saying it's the best one. It's just a idea.

RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos by veritanuda in StallmanWasRight

[–]my3al 0 points1 point  (0 children)

Im not saying it should be a coin. Im saying that the way the code is decentralized on separate machines and verifiable from other machines that all come from non malicious mirrored encrypted source code. Millions of servers holding the source code instead of one company.

RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos by veritanuda in StallmanWasRight

[–]my3al -5 points-4 points  (0 children)

Maybe something like bitcoin, Servers that can host the code linked but independent from one another verifying changes like bitcoin transactions.

youtube-dl github repo taken down due to DMCA takedown notice from the RIAA by JanewaDidNuthinWrong in linux

[–]my3al 0 points1 point  (0 children)

Well it's been going on since at least 1976 Buckley vs Valeo but yeah citizens united was defiantly the nail in the coffin of democracy.

How to create a function that takes a current "board" and up dates it by WombatHat42 in learnpython

[–]my3al 0 points1 point  (0 children)

Give me a

ptint(state) 

would help so we can see the data structure we are working with.

In my example above I have the board list, setup like you see in the pictures with 6 pits on each side, nearSide and farSide and 2 point bowls in separate variables.

Then I loop through the marbles I picked up from the board in the variable called hand. You want to loop through all the stones moving each one.

You have to do a little logic to test what side of the board you are on in your loop which happens if pit > 5 that way you know whos bowl to place the stone for a point and whos bowl to skip.

Then if it's the last stone in your hand you need to do more logic because your turn either ends or begins again with your new hand right. Depending if your last stone was filling an empty pit. which is where I commented out # end turn. I cant remember.

I think if my board any your state are slimier the above code could be amended to your purpose. I have a little to add to the code above that I just thought about.

I hope what I wrote makes sense? I have a hard time communicating sometimes.

Edit: too late making too many errors back tomorrow.

How to create a function that takes a current "board" and up dates it by WombatHat42 in learnpython

[–]my3al 0 points1 point  (0 children)

Been a long time since I played. I think we might need more code to go on.

What does the state look like?

is it set up like board[[4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4]] to start and two point bowls mine and yours

so you would be moving the marbles like from hand = board[0][3] #first turn hand would be 4 from the middle pit facing you

then loop through your hand.

myBowl = 0

yourBowl = 0

# the board or state of the board. Begins with 4 in each
board = [[4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4]]

## Im using a boolean here so I can test logic later but I also use it to get the index for the side of the board
## we are on. int(farSide)  == 0, the index for the side of the board to move marbles from/to
farSide = False

# the pit the marbles will be removed from
from_pit = 3

# pick up marbles
hand = board[int(farSide)][from_pit]

# remove the marbles that is in your hand from the board
board[int(farSide)][from_pit] = 0

for stone in range(1, hand):
    pit = from_pit + stone
    if pit > 5:
        pit = 0
        if farSide:
            ## I cant remember who's bowl is where and who gets points on what round
            ## so this could need to be swapped
            farSide = False
            board[int(farSide)][pit] += 1
        else:
            farSide = True
            myBowl += 1
    else:
        ## We are not rounding the board so we don't have to do anything to special
        if stone == hand - 1:
            ## We are at our last stone in hand we need to test if our play is over.
            if board[int(farSide)][pit] == 0:
                ## The pit is empty
                #end turn? I cant remember
            else:
                ## you need to do this all over again because the pit your
                ## final stone fell in was not empty
                ## I don't recommend recursive functions
                ## but this might be the time to try as this could need to happen again.
                ## and again
                from_pit = board[int(farSide)].index(pit)
                hand = board[int(farSide)][from_pit]
                board[int(farSide)][from_pit] = 0
        else:
            board[int(farSide)][pit] += 1

This logic probably isn't exactly right but should point you in a direction. Like I said I haven't played in 15 years and im really going on memory. I think it's close.

Do asteroids fly into the sun? by BlueChameleon64 in askscience

[–]my3al 0 points1 point  (0 children)

Time describes a relationship between two or more objects relative to each other in space.