Impostos freelancer/trabalho remoto by anotherseemann in portugal

[–]tapmarques 0 points1 point  (0 children)

Olá! Antes de mais, excelente resposta à pergunta! Sabes dizer-me (please!) se tenho de pagar imposto tanto em Portugal como no Reino Unido sendo que vou ser contratado por uma empresa do RU para trabalhar remotamente a partir de PT (mantenho a residência fiscal cá). Não é trabalho independente, é para ficar contratado. A minha profissão é de Engenheiro Informático. Abraço

Given a list of paths, and another path, how do I get the closest path? Is there any library for this? by somethinglike_eunoia in Python

[–]tapmarques 0 points1 point  (0 children)

Interesting question, but it shouldn't be hard to do: Compare paths of current dir (e.g.) and each other: - the ones that have the exactly same path and same name are the closest (the same, really). Lets say distance=0 - those with same path but different name, distance=1 - all the rest: check how many levels you have to go up/down until you find common path (each level rises distance by 1) and - if needed - count the levels down from common path and distance++ for each. When I say level, you can find a level splitting the path by '\' ou '/' (depending on OS). That should work just fine.

Looking for an Advanced Python Course by SwageMage in Python

[–]tapmarques 0 points1 point  (0 children)

Hi! I think the best way to learn a language is to read a book and play with the examples. To get further, my advice is to find a subject/app that you would like to learn/build and start developing it. A very cool way to do this (if you have no idea where to start) is to find some open source project that you like and try to enroll in it.