본문 바로가기

전체 글

(48)
[UiPath] 디렉토리 사이즈 구하기 오늘은 디렉토리 사이즈 구하는 방법에 대해서 포스팅 해볼까 합니다 파일 크기 구하는 것은 그 전에 올렸던 적이 있는데 종종 폴더 용량을 구할 일이 생기기도 합니다.. (저는 그게 오늘이었읍니다...) 저번과 비슷하게 오늘도 아주 쉽습니다 우선 테스트 폴더를 생성하구요 그 안에 파일을 넣어줬습니다. strDir = "C:\RPA\testFolder" New DirectoryInfo(strDir).EnumerateFiles().Sum(Function(a) a.Length) 코드 설명을 해보자면.. New DirectoryInfo(strDir) DirectoryInfo를 구한 뒤 .EnumerateFiles() Directory안에 있는 파일들을 Enumerate로 가져옵니다. Function(a) a.Len..
[xcode] duplicate symbol 해결하기 하하 맥북을 들여왔습니다 원래 스위프트를 공부해보고 싶기도 했고.. 노트북도 바꿀 때가 되어서 겸사겸사 윈도우 노트북이 아닌 맥북으로 들여와봤습니다. 아직 들여온지 얼마 안돼서 자꾸 버벅이고.. 차차 나아지겠지요... 아무튼.. C언어로 자료구조를 공부하려 하는데 엥? 빌드가 안됩니다....... 거창한 것도 아니고 테스트 겸 Hello World만 찍었을 뿐인데요........ 로그를 확인하니 다음과 같이 나오네요.. duplicate symbol for architecture arm64 첨에 암것도 모를 땐 arm64 글자만 보고 m1 맥북의 호환성을 의심했었는데요 문제는 그것이 아니었습니다 다음과 같이 여러 개의 예제 파일을 생성하고 파일 안에 main이 여러 개 있다면 오류가 발생합니다 그래서 윈..
[Zapier] zapier 알아보기 오늘 이것저것 들여다보다가 Zapier라는 것을 알게됐다. 자동화 도구라고 하는데 처음 들어봐서.. 뭔지 궁금해서 한 번 해봤다! https://zapier.com/ Zapier | The easiest way to automate your work Get premium tools to build advanced workflows. Our Premium Plans give you the tools to automate more, so you can work less. Plans that start at $20 per monthBuild more workflows with more stepsCreate conditional workflowsGet priority supportUpgrade or down z..
[Project Euler]24. Lexicographic permutations [문제] A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are: 012 021 102 120 201 210 What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and..
[궁금] pandas에서 inplace를 사용하는 이유는 무엇일까? 올해 목표를 위해 pandas 공부를 하고 있다 공부를 하다가 드는 의문.. 몇 가지가 있었고 궁금한 건 참을 수 없어서 다 해봤다! (공식 문서에 다 나와있겠지만... 그래도 해보면 기억에 더 잘 남는다!) 1. inplace 옵션을 아예 주지 않으면 어떻게 될까? ㄴ 변수가 갱신되지 않는다. (Default가 False) 2. inplace 옵션을 False로 주면 어떻게 될까? ㄴ 변수가 갱신되지 않는다. 근데 이쯤에서 또 궁금한 것은.. 왜 inplace 옵션을 쓰는 것일까??????? 이유를 찾기 위해 pandas 공식 문서를 찾아보았다! inplace = False로 주면 원본이 갱신되지 않으며, 사본을 반환해준다. pandas는 데이터를 다루는 lib니까 원본 데이터를 그대로 유지한 채 데이..
[UiPath] String.Format 사용하기 보통 하나의 문자만 바꿀 때는 Replace를 사용한다. 근데 바뀌는 값이 많은 경우?! n번의 Replace를 해줘도 되지만.. 더 괜찮은 방법이 있다. 예를 들어 학생들에게 성적을 담은 이메일을 보내야하는 경우! 위의 표같이 3명의 학생이 있을 때 아래의 형식으로 이메일을 보내려 한다. Replace를 사용해서 다음과 같이 할 수 있다. strMailContent = strMailContent.Replace("[이름]",row(0).ToString) strMailContent = strMailContent.Replace("[학과]",row(1).ToString) strMailContent = strMailContent.Replace("[학번]",row(2).ToString) strMailContent..
[Project Euler]22. Names scores [문제] Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this value by its alphabetical position in the list to obtain a name score. For example, when the list is sorted into alphabetical order, COLIN, which is worth 3 + 1..
[Project Euler]21. Amicable numbers [문제] Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; therefore d(220) = 284. The proper divisors of 284 are 1, 2, 4, 71 and 142; so..