TSDAdam

u/TSDAdam


r/Evri•

I get quite a few packages sent to me, and unavoidably some go via Evri. Especially shipments from the US, where I guess the sender gets no say on who handles packages at the other end. For context I've had at least five packages go missing in the last year. Three of these now were from the US via "Passport Global". Two of them got as far as 'Out for delivery' but were then never delivered. The latest was marked as delivered, then today customer service told me it was last updated at the depot the following day.

I eventually got put in touch with this 'Executive office' after emailing every address I could find, including the PR team, who forwarded my email to them. Interestingly the sa

33

r/buildapc•

As per the title really. My old PC finally needs replacing. I'm budgeting around £600 and I'll be going for a i3 12100f, a 2TB nvme, and 32 GB ram (along with case, PSU, Mobo)

The last part of the jigsaw is the GPU. I'm after bang-for-buck for a new GPU at the £200 mark. Most of what I've read is pointing me towards an RX 6600, so I guess I'd like to know is that the way to go?

Games will be no more than 1080p60 for now, so I don't need to spend silly money. What do you suggest?

13

r/buildapc•

My son's been hogging my PC lately, mostly to play indie stuff in my Steam library, but he likes more modern stuff too.

I've inherited an old PC from an in-law which basically needs gutting. The case is decent, and there's a Corsair CX600 PSU in there, almost unused. They did put a new GPU in ages ago, but it's older now, an MSI GTX1060.

My thoughts are this. We don't want to spend a fortune, as I don't know how much he'll take to it, so I don't want to go overboard. My machine is long in the tooth but powerful enough for what I do and what he uses (i5-4570S, RX 570, 12GB), so I was thinking what about a Ryzen APU? Looking at benchmarks, there seems to be plenty kicking out performance si

15

r/adventofcode•

I can't see anything obvious in my logic. I've tried to keep it simple, but my head is full of cold, so I might be missing something obvious?

with open ('./09.in') as file:
    data = [line.strip() for line in file]

visited = [[0,0]]
directions = {
    "U": [0, 1],
    "D": [0, -1],
    "L": [-1, 0],
    "R": [1, 0]
}
h, t = [0,0], [0,0]

for instruction in data:
    words = instruction.split()
    direction = words[0]
    amount = int(words[1])
    
    for _ in range(amount):
        h[0] += directions[direction][0] # update the head x and y
        h[1] += directions[direction][1]
        gaplength = abs
23

r/adventofcode•

As per the title. My code is clumsy, sure, but it works for the sample data. On my full file input it throws an error - RecursionError: maximum recursion depth exceeded

Here's my stuff:

from collections import defaultdict

with open ('./07.in') as file:
    data = [line.strip() for line in file]

contains = defaultdict(list)
containedIn = defaultdict(list)
dirsizes = defaultdict(int)

def ls(pwd, contents):
    for row in contents:
        entry, arg = row.split(" ")
        if entry == "dir":              # if this row is a dir
            contains[pwd].append(arg)   # add it to the list of dirs the current dir contains
       
34

r/learnprogramming•

A quick bit of background first. I'm reasonably competent with Python to write scripts to pull and process data, solve problems, that sort of thing.

I'm making what I thought would be a simple web app using React JS. I understand writing components as reusable blocks to build it out, so I started making something, and I've ground to a halt.

The concept is something people can use at gatherings to find players for games, or games you can jump in on. Anyone can click a button to spawn a form, which lets them create a new item, which I was storing in an array, as a list of dictionaries (objects?).

The main app loop finds all entries in the array, and calls a Showcards.js to render the item

15

r/FixMyPrint•

I recently picked up my first printer, a Creality Ender 3 v2. For the most part, my first prints have been perfectly acceptable just using out-of-the box settings. By that I mean I'm not doing anything special in Cura, normally printing at 0.2mm, with head and bed temperatures of 200/60 C. I do (or try my best) bed levelling before every print. I'm printing with 1.75mm PLA.

When I print things with a flat base, sometimes the first layer looks fine, but then the second layer looks like someone's drawing a contour map, with raises and dips I can feel. You can see them on the attached image, that's the second layer just gone down.

Apologies if this is a common question, I've had a look back t

21

r/adventofcode•

Edit: Updated code and to add - with the sample data, my output matches the sample output for the first two cycles. It's from the third cycle onwards it goes wrong.

​

I'm building an empty 3D array and then working from the middle out. This code is using the sample output for 3 loops to try to match what's shown on the page. It's not though, and I feel like I'm missing something obvious?

from copy import deepcopy
import pprint

with open('11-20/17a.in', 'r') as file:
    data = file.read().splitlines()

startingsize = len(data[0])
CYCLES = 3
cubes = [[['.' for k in range(startingsize + (CYCLES * 2))] for j in range(startingsize + (CYCLES *
212

r/adventofcode•

Edit: Solved. Global lists were my enemy, I needed to pass a temporary list with each function call.

Firstly, I hate recursion. That said, I'm pleased I managed to sort of figure it out in my head. My method is to take each colour in turn, then for every colour in its rules, do the same thing. If it eventually hits shiny gold, add the originating colour to the list of found colours (if it doesn't already exist).

​

I've checked my output and I have no repeated colours, but my answer is wrong, and I've tried dry-running it with pen and paper but it's too big. Are there any obvious problems?

​

with open('07.in', 'r') as file:
    data = file.read().splitli
25

r/adventofcode•

Edit: solved! I was missing failure else returns in my height checks, after it had checked for the units (cm/in), and another in my hcl checks

​

Apologies for the code, but here's what I've got. It makes a working list for part one, which passes, then I popped all the elifs into a function. I think I'm one or two away from the correct answer.

​

with open('04.in', 'r') as file:
    data = file.read()

reqfields = ['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid']

rawpassports = data.split("\n\n")
passports = []

def checkvalid(field):
    code = field[:3]

    if code == 'byr':       
        year = field[4:]
27

r/reactjs•

I'm following tutorials and trying to make a basic proof of concept. I want to make an array (deck of cards) with 5 things in, integers 1-5. I want a button that when clicked, chooses one at random (grabbing random index). The idea is to then take that card/integer, add it to a discard pile (another array, and repeat until the deck is empty, when it will be refilled.

​

Here's my code so far:

import React from 'react';
import ReactDOM from 'react-dom';
import "./index.css";


function getRandomCardNumber (min, max) {
  return Math.random() * (max - min) + min;
}

function Cards() {
  const [deck, takeCard] = React.useState([1, 2, 
14

r/davinciresolve•

Hi, I'm relatively new to Resolve, but learning as I go. I've used an inbuilt fusion title, and used a generator to make a little animated rectangle as a background for it. The title is on track two, the rectangle on track one, below it. I'd love to be able to keep it as I have it, with the timings, size and positions, so in future videos I can just alter the wording.

I've created a Power Bin which as far as I understand lets me create media that I can share between projects. What I don't know how to do though is flatten or combine these two fusion clips, so they stay together . I tried linking clips, but I can't add that to the power bin. I tried making a compound clip, but then I coul

11

r/AdobeIllustrator•

I'm teaching myself the basics, and to make an example logo, I want to make the effect of a piece of cardboard with a hole punched out of it (punched as in cut, not a fist through it!). If you have punched cardboard, like when you take the pieces out for a boardgame, the card has a thickness, with a very steep, but not perfectly square cut.

My idea was to try to make an offset path smaller than my shape, then find a way to paint an angled linear gradient in the gap between the original and the new, smaller path. The gradient would start lighter than the base colour, then fade to one darker than the base colour, probably a 45 degree angle.

My question is, is this the best way to create th

11

r/hwatch•

I got the GT2 a few days ago and played around with it, uploading watch faces from the Huawei Health app.

Now when I open the app, go to devices and then watch faces, I get a blank page.

I'm in the UK with a UK watch and Android phone. Any ideas?

47

r/gaming•

Me and three friends have gotten together every week for over 20 years now to play games. In the past it's been whatever the current consoles are, but now we're all stuck inside for the foreseeable future, and want to stay in touch.

I'd love to find something web-based (two of them on PS4 these days, another Xbox, me on PC) that we can get together to have a laugh on a few hours a week. I thought of setting up something on something like Roll20, but getting them to buy into proper RPG will be hard. So I'm open to suggestions really. Roll20-lite would be cool, but I'm not sure what's out there.

What do other members here play to stay in contact remotely, that requires nothing more than

213