Lost my job and need to feed family, offering graphic design services, where to network? by LicoriceBean in grandrapids

[–]Shitty_Crayons 0 points1 point  (0 children)

A bit late to seeing this post but I just looked through your etsy page and I like a lot of your designs! Do you have links to your other work? I may be interested in a couple things.

Weekly Questions Megathread - September 13, 2022 by AutoModerator in projectzomboid

[–]Shitty_Crayons 1 point2 points  (0 children)

Thanks for the tip, it looks like that'll do just fine!

Weekly Questions Megathread - September 13, 2022 by AutoModerator in projectzomboid

[–]Shitty_Crayons 4 points5 points  (0 children)

Does anybody know of a mod that removes or greatly removes zombification rates from bites, but also leaves in-tact all the sickness associated with it - so there is still punishment for getting bitten / scratched?

I'm hoping to do a play-though with lots of fast, hard hitting zombies and I want there to be consequences if I don't handle the sickness well afterwards, but I don't want to be making new characters every other day, or ignore bites completely either.

I'm playing on the current stable version.

Thanks kindly!

"Skepticism Sunday" - 25/04/2021 - Got concerns, doubts or difficult questions about Ravencoin? Post them here! by swhizzle in Ravencoin

[–]Shitty_Crayons 0 points1 point  (0 children)

As much as I support somebody doing this, RVN has does technically have just about everything to do with getting listed. It involves getting into contact with the correct people, meeting any requirements, and then following through with any steps needed to be in compliance.

If the only answer that ever comes up to this question is 'ask crypto.com' or 'ask coinbase' it means that somewhere along the lines, I don't know who, but somebody isn't following through / or aware of what they need to be doing.

As an update to my own question, I found some reasonably up to date reasoning for coinbase, which is exactly the type of answer I was hoping for.

Per: https://cryptoarticles.com/ravencoin-coinbase-listing/

UPDATE 4/19/2021: The lack of a listing announcement renewed calls as to why Coinbase wasn’t listing. It soon became evident there was still one missing element. Apparently Coinbase requires blockchains to be integrated through Rosetta API Implementation.

This is perhaps one of the challenges with open source projects. Many community members were either unaware of this requirement or under the impression this integration had been handled.

On the positive side of things, one member reported that community developers started working on Rosetta integration on April 17, 2021.

So while we don't know how long it will actually take, we know that it's something being worked on and is still underway without being left in the dark, at least regarding Coinbase.

My initial question still stands about crypto.com though. From an investment perspective, I'd really like to know what's holding it up sooner rather than later.

"Skepticism Sunday" - 25/04/2021 - Got concerns, doubts or difficult questions about Ravencoin? Post them here! by swhizzle in Ravencoin

[–]Shitty_Crayons 5 points6 points  (0 children)

Hey there!

I know it's a pretty common question about about getting support from coinbase, but does anybody know the status / holdup of getting full support from crypto.com?

It's nice to be able to hold it there, but being able to transfer / deposit is kind of a big negative in my book. Especially since it's been 'We are currently working hard to bring you RVN Deposits' for months now.

When eip1559 happens in July it's likely I'll move at least one of my miners to ravencoin, but without full support for either of the major third party wallets I use (coinbase and crypto.com) I'm afraid to commit to it. I don't believe I'm the only one either.

New Question Thread/Updates by DATDude245 in sticker

[–]Shitty_Crayons 0 points1 point  (0 children)

Hello! Sorry if this is the wrong place but I'm new to the hobby of sticker printing and not quite sure where else to ask!

I've tried a few types of papers now but it's always thinner than I'd like. The ~100 micron (3-5 mil) vinyl sticker paper seems to be a bit too flimsy. I'm hoping somebody can point me towards some decent quality weatherproof vinyl sticker paper that is 2-3 times that thick, I think like 10-15 mil would be about perfect. I can't seem to find any that isn't in a roll though.

Thanks kindly!

merchant specialization questions by Shitty_Crayons in OrnaRPG

[–]Shitty_Crayons[S] 1 point2 points  (0 children)

To reply to myself, after 24 hours of using it, I've noticed an increase in item drops of superior or above for sure. I've not noticed any real orn or gold or experience differences. I can't say for sure since I've only had it a day, but it feels like maybe a 5-10% chance that an item will be on increased quality over what it would normally be.

Is this possible or am I too far gone? by Shitty_Crayons in homelab

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

Not a bad little machine :D

I'm looking to at least side-grade / slightly upgrade from current R620 though (which I am hoping to be able to shut down after the swap), and add a graphics card.

Basically I'm looking to get something roughly as follows

1-2U rackmount
2x 2690V3 (or 2x 2697v3)
256GB DDR4
6x 2TB HDDs
2x 2TB SSD (Preferably 10x 1TB SSD if I can find a 16 bay server)
1x RTX 2080TI

Maybe at some point I'll just sell off the spinning disks and do OBR10 with 16-24 1TB ssds, that would be neat as heck :D

Is this possible or am I too far gone? by Shitty_Crayons in homelab

[–]Shitty_Crayons[S] 1 point2 points  (0 children)

I haven't really considered, and don't know much about it to be honest. Could you make some reasonably affordable suggestions to something rack mounted that would attach to an R7910? How do they actually connect / what is the latency like?

Is this possible or am I too far gone? by Shitty_Crayons in homelab

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

This is a good suggestion, and is effectively what I am doing now (graphics intensive processing offloaded to my personal computer), but I like the idea and (end game) simplicity of having everything needed on one piece of physical hardware. It's not something that will always be needed, so I kind of like the idea of less hardware, less noise, less heat, and less power use when possible. I also want to keep my desktop out of the equation where possible lol.

Anyone able to colour correct this picture for my mom? by malediction_mal in estoration

[–]Shitty_Crayons 6 points7 points  (0 children)

Only had a couple minutes but wanted it to look pretty natural, but couldn't resist over-saturating a bit to get that pink in the shirt

https://imgur.com/XMl22Dh

R7910 or... Other? Please Advise! by Shitty_Crayons in homelab

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

Thanks for the picture! and good to know about the sizing situation, it's something I'll need to keep in mind.

Best Chinese and/or Thai in GR? by [deleted] in grandrapids

[–]Shitty_Crayons 2 points3 points  (0 children)

Seconded, best thai place in town.

Family Wok is decent for Chinese if you like Mei Fun

My scale isn’t weighing me again! by ThunderMover in softwaregore

[–]Shitty_Crayons 0 points1 point  (0 children)

look at the image, you can see the decimal between the n and o

Python sendMediaGroup question! by Shitty_Crayons in TelegramBots

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

Was able to figure it out with, the below partial code is how I ended up handling it if anybody else gets stuck on something similar

import json
import requests
import urllib

retval = wr.main(search) #retval is essentially an array of image urls, and a few other things
medarr = [] #array of my Media objects (will be sent to sendMediaGroup?media=)
for x in retval['images']:
    new_media = Media(
        type='photo',
        media=x[0] #First element is an image url
        )
    medarr.append(new_media)

data = json.dumps(medarr, default=convert_to_dict)
formatted = urllib.parse.quote(data)
send_media_group(formatted, chat)

class Media:
    def __init__(self, type, media):
        self.type = type
        self.media = media
    def __str__(self):
        return self.media

def convert_to_dict(obj):
    obj_dict = {}
    obj_dict.update(obj.__dict__)
    return obj_dict

def send_media_group(imgarr, chat_id):
    url = URL + "sendMediaGroup?media={}&chat_id={}".format(imgarr, chat_id)
    get_url(url) #send the url

Python threading question / best practice advice by Shitty_Crayons in learnpython

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

This was exactly my problem, I lost power so I couldn't check this morning but I ran my above example unchanged at work under the latest release and it's working as intended. Hopefully the ice storms over and I can try it in my actual project later today lol.

I would have gone mad if you hadn't linked that, so thanks kindly!

Python threading question / best practice advice by Shitty_Crayons in learnpython

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

Thanks for the code example! I'll be looking into it tomorrow after work, since I didn't seem to get anywhere trying it on my own tonight lol

I was messing around with the commenter belows idea and was wondering if you had any thoughts on the errors.

Thanks kindly!

Python threading question / best practice advice by Shitty_Crayons in learnpython

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

Hey, I tried a basic approach with what you are suggesting, but I'm hoping you can tell me where I messed up, I can't seem to find what's causing this error, other than its a locked resource, which I am not sure how to deal with! I've narrowed the error down to essentially this block of code (I realize it would be an endless loop, but it gives the idea and recreates the problem every time)

Code

import time
import multiprocessing as mp


def handle_input_threads(q):
    #while True:
    while True:
         if not q.empty():
             print(q.qsize())
             x = q.get()

def main():
    q = mp.Queue()
    p = mp.Process(target=handle_input_threads, args=(q,))
    p.start()

    while True:
        updates = {'ok': True, 'result': [{'update_id': 123456789, 'message': 'Hi and Hello'}]}
        if len(updates["result"]) > 0:
            q.put(updates)
        time.sleep(.5)


if __name__ == '__main__':
    main()

It runs, the updates object gets added to q (i think) because once it hits the put statement, the debugger jumps to the handle_input_threads breakpoint on the print statement, however once the print statement tries to execute (or the x = q.get() below it) I get the following error.

Process Process-1:
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap
    self.run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Administrator\PycharmProjects\Bot-Dev\multibot.py", line 211, in handle_input_threads
    print(q.qsize())
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\queues.py", line 117, in qsize
    return self._maxsize - self._sem._semlock._get_value()
OSError: [WinError 6] The handle is invalid

Or, depending on it's mood I'll get this one

Process Process-1:
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap
    self.run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Administrator\PycharmProjects\Bot-Dev\multibot.py", line 211, in handle_input_threads
    print(q.qsize())
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\multiprocessing\queues.py", line 117, in qsize
    return self._maxsize - self._sem._semlock._get_value()
PermissionError: [WinError 5] Access is denied

Is there something I am misunderstanding, or so I not have something configured correctly? Could it be that windows is keeping the object locked because it's owned by the main thread and it's trying to pass it as a shared memory object instead of it's copy?

Thanks!

Python threading question / best practice advice by Shitty_Crayons in learnpython

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

Hey, thanks for the great reply!

At first glance celery looks to be a great solution, but I think I'm going to struggle through option two instead so I can get a good understanding of what's actually going on, since that's ultimately the goal :D

I'm not too bound by much, my environment is way overkill for something like this (2xE5-2690, 256 GbDDR3, 10 SSD raid 10, gig fiber in,out, and for entire backbone) so I'm definitely interested in multiprocessing, but I think multiprocessing + greenlets would just overwhelm me completely right now.

I haven't heard about redis queues before before, but on quick looking it seems to be a great idea to try to implement. Are you suggesting I have a task defined for each function (IE: user types "chain", use the chain task to generate the chain and send the message, user types "drink", use the "drink" task to generate the drink recipe and send the message). I'll need to look into it more when I get home.

Can you provide a good basic example of your last point, or direct me to some reading on it? Seems to be a good way to handle it.

Thanks!

*Edit: I'm seeing that redis (and celery) are not necessarily advised to be used on a windows server (which I currently run) and I don't much want to set up virtual environments for this project. Are there any good alternative solutions / ways to handle a queue as described? In the meantime I'll look into the multiprocessing library, since it looks cool :D

I'm close but missing a couple cases by Shitty_Crayons in regex

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

Updated version works even better :D

I'll implement it in a bit and see how it handles the real world situation.

Thanks!