카테고리 없음2018. 11. 12. 15:14

초보자를 위한 파이썬 300제

https://wikidocs.net/book/922

  • 001~020 문제 풀이 완료


미운코딩새끼 : 4시간만에 끝내는 파이썬 기초 

  • Python 설치
  • 'Visual Studio Code'에 Python Extention 설치
  • print()
  • input()
  • 변수
  • 숫자형, 문자형, 불린
  • 리스트, 튜플, 딕셔너리
  • 자료형 변환, int(), str()
  • 주석
  • 문자열
  • {}.format()
  • 문자열 포맷팅
  • 문자열 인덱싱
  • 문자열 슬라이싱


Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:43
/Users/사용자/Library/Application Support/iLifeAssetManagement/assets/sub


포토스트림을 사용하시면... 이미지들이 위의 패스에 저장됩니다.

이게 iTunes에서 포토스트림 사진을 삭제하면 이곳에서도 삭제가 되어야 하는데 어떤 이유에서인지(혹은 저만..-_-;) 삭제가 안되고 공간만 차지하고 있더군요.

이럴경유 과감하게 sub 디렉토리 안의 파일들을 삭제해주시면 됩니다.

전 4GB 벌었습니다. ㅎㅎ


Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:42



언제인가 부터 "save pdf to evernote" 메뉴가 사라져 구글링해보니...

업데이트 되면서 사러져 버렸더군요. -_-;;

 

해당기능 필요하신 분들은 기존의 에버노트 삭제하시고 

 

Evernote Version 3.3.0 (300201)로 설치 하시면 됩니다.


http://evernote.s3.amazonaws.com/mac/release/Evernote_300201.dmg

Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:42

1.

아래의 링크에서 해당 익스텐션을 설치 한다.

http://safari.logt.nu/customsearch/customsearch.html

 

2.

네이버 검색주소 를 추가한다. (상단의 캡쳐화면 참조)

http://search.naver.com/search.naver?ie=utf8&where=nexearch&query=#query#

 
끝.

 




Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:41

OS X 에서 휴지통안의 삭제된 파일을 시간 순서대로 보는 기능은 지원하지 않습니다.

이것은 유닉스 시스템의 특징 입니다.

(논리적으로 생각해 보면 안되는게 당연 하죠. ㅎㅎ)


유닉스의 파일시스템에선... 파일생성시간, 수정시간만을 관리 합니다.
또, 일반적인 유닉스에는 "휴지통" 기능도 없습니다.

Windows, OS X에서의 휴지통 기능은 파일 삭제가 아니라... 휴지통(~/.Trash)으로의 파일 이동 입니다.


휴지통은 유저별, Volume(디스크)별로 존재 합니다. 

즉, 여려개가 있지만 GUI 환경의 휴지통 아이콘을 클릭해서 보시면... 모두 한곳에서 볼 수 있게 만들어져 있습니다.

휴지통 안에있는 파일들의 세부정보를 보시면 경로 확인이 가능 합니다.




--------------------------------------------------


참조 : http://hints.macworld.com/article.php?story=20100121075428946



구현 방식은 간단 합니다.

1. Automator(Touch Files.action)를 이용하여 휴지통(~/.Trash)으로 들어오는 파일의 수정시간을 현재시간으로 update 함.

2. 휴지통 디렉토리에서 수정시간으로 sort하여 봄.





<Automator 액션 추가>

1. http://www5.wind.ne.jp/miko/mac_soft/automator_actions/pgs/TouchFilesAMA-en.html 에서 Touch Files.action 다운 받기

    (첨부 파일 받으셔도 됩니다)


2-1. Automator 실행해서 “파일 -> 동작가져오기” 실행

2-2. 다운 받아둔 Touch Files.action 선택


3-1. “파일 -> 신규” 실행

3-2. “도큐멘트 유형 선택” 에서 “폴더 적용 스크립트” 선택



4-1. “폴더 적용 스크립트는 다음에 추가되는 파일 및 폴더를 받습니다” 옆에 “폴더선택 -> 기타” 선택

4-2. 선택창 열리면 “command+shift+g” 눌러서 “~/.Trash” 입력 하여 휴지통(.Trash) 디렉토리 선택



5-1. 좌측 창에서 “Touch Files” 선택 하여 우측 창으로 드래그

       (동작 > 보관함 > 파일 및 폴더 선택하면 서브메뉴에 있음)

5-2. Touch Files 라고 열리는 창에 아래의 항목 체크 확인

          - Change date modified

          - Current date and time

          - Apply to Contents of folders



6. “파일 -> 저장”  원하는 이름으로 저장





<파인더 설정>

1-1. 휴지통 클릭하여 휴지통 디렉토리 열기

1-2. “보기 -> 목록” 선택 



2-1. “보기 -> 보기옵션” 선택

2-2. “수정일” 항목에 체크





<유저별, Volume 별 추가 설정>

각 휴지통 디렉토리에 모두 위의 작업을 해주어야 함.


현재 사용자의 휴지통

~/.Trash


다른 사용자(user_name)의 휴지통

/Users/user_name/.Trash


각 Volume(volume_name)의 휴지통

-> 501은 기본사용자의 UID 입니다.

/Volumes/volume_name/.Trashes/501

예) /Volumes/DATA/.Trashes/501

     /Volumes/Time Machine/.Trashes/501

Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:39

OS X 에서 Application 여러개 실행하는 방법 입니다.


터미널 에서...

$ open Calculator.app/
$ open -n Calculator.app/


GUI에서는 모르겠네요...ㅎㅎㅎ

Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:39

원래 맥에선 파일 잘라내기가 없는것으로 안다... 미연의 사고를 방지하기 위해서라나 뭐라나...-_-;;

 

헌디... OS X 에선 아래의 방법으로 잘라내기가 가능하다.

 

복사하고 붙여넣기 : command + c -> command + v

잘라내고 붙여넣기 : command + c -> option + command + v

Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:37

https://itunes.apple.com/kr/app/formatmatch/id445211988?mt=12


 

 

웹페이지나 워드문서등을 복사해서 텍스트편집기, Pages, Evernote등에 붙여넣을때 

원본서식이 적용되어 불편하셨던 경험이 다들 있으셨을 거라 봅니다.

그래서 보통은 편법으로 메모장 같은 텍스트만 지원하는 프로그램에 1차적으로 붙여넣고 그 걸 다시 복사해서 붙여넣기 하는 번거로움이 있었는데 지금 소개 드리는  "FormatMatch"로 간단하게 해결 가능 합니다. 

Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:36

시스템 언어는 "한글"로 사용하고 특정 프로그램만 "영어"등 다른 언어로 사용하고자 할때 참고.




출처 : http://support.apple.com/kb/TA23425?viewlocale=en_US&locale=en_US

Mac OS X 10.4: How to change an application's language to be different from the primary system language

Products Affected

Logic, Mac OS X 10.4

This article has been archived and is no longer updated by Apple.

In Mac OS X "Tiger" versions 10.4 to 10.4.2, you can't deselect an application's primary system language in the Info window (the window you see after selecting an application in the Finder and choosing File > Get Info). For example, if you have German set as your computer's primary system language, the "German" checkbox in the Languages section of the Info window will be dimmed.

To resolve this issue, update to version 10.4.3 or later. After updating, you'll be able to deselect the primary system language as long as at least one other language box remains checked. When only one language is checked, it will remain dimmed until at least one other language checkbox is selected.

If for any reason you're unable to get 10.4.3 immediately, you can follow the workaround presented below. We're going to assume that German is the primary system language and that you want to use Logic in English in this example, but the same steps apply for other language combinations.

  1. From the Apple menu, choose System Preferences.
  2. Click International, then click the Language tab. The computer's primary language is listed at the top of the list (Deutsch in this example).
  3. Drag English to the top of the list.
  4. Quit System Preferences.
  5. Log out of your computer (from the Apple menu, choose Log Out your_name), then log back in.
  6. Select the desired application in your Applications folder.
  7. Choose File > Get Info.
  8. Click the Languages disclosure triangle in the Info window.
  9. Deselect the German checkbox, then close the window.
  10. Go back to the International preference pane, but this time drag Deutsch to the top of the list, leaving English in the second position.
  11. Log out and back in again so that the language change takes effect.

Now your application will use English, even though the primary system language is German.


Posted by JINSAN CHOI
OS/OS X2013. 7. 30. 10:35

https://itunes.apple.com/kr/app/timey/id414792604?mt=12

 

 

맥에서 사용할 심플한 무료 타이머 프로그램을 찾다 "앱스토어"에서 발견 하였습니다.
별 5개중에 5개 줬습니다...^^

기능 
1. 메뉴바에... 타이머 표시 됨.
2. 별도의 타이머 윈도우 표시되고, 모든 윈도우 최상단에 항상 표시 됨.

Posted by JINSAN CHOI