8월, 2020의 게시물 표시

Functions of Google Spreadsheet that I used for balancing game.

이미지
  Function list is here.  INDEX: show the content of indicated row & column in the selected range.  example:  = INDEX ( AM12:AN19 , 5 , 1 ) => INDEX(selected range, indicated row, indicated column) Switch & IFS 1) I would like to something that return a value according to its range. - Usually in C#, it is possible to use Switch operator and range. - But I couldn't find the way to do in Google Spreadsheet function. 2) What I want is 'return out of chart' if the point is less than 800, and 'return 100 if point is between 800 and 1000. The solution is like this - IFS ( AJ12 < 'b1'!B14 , "순위권 밖" , AND ( AJ12 >= 'b1'!B14 , AJ12 < 'b1'!B13 ) , RANDBETWEEN ( 91 , 100 ) ) - IFS(first condition, value for return, second condition, value for return) - It seems for me there is no syntax like 'AJ12> B14 && AJ< B13) - Instead I use like this 'AND( AJ12> B14, AJ< B...

Balancing with Google Apps Script

이미지
I learned Google Apps Script for fun. My current task is balancing game. I use google spread sheet for balancing game. There are some calculation that can't be done only with functions in Google Spread Sheet. At that moment, Google Apps Script is very useful.  1. Use function with button  I wrote calculation that use random function. I wanted to refresh the result anytime I want to. But to click refresh button is not good. I found easy way. This way is using a Google Apps Script.    1) You put a button in spreadsheet.   2) Right click the button you made. Then choose 'allocate script'.  3) Allocate the function you write at a script editor. When doing this, just write the name of function. No '()' allowed.   4) You can write functions in Google Apps Script here.  Upper menu bar> Tool> Script Editor Ignore other code from 'act' function. All I wanted is 'flush' method. 'flush' method refresh every value that are linked to 'curr...

더블린 사람들 - 제임스 조이스

이미지
 매우 즐겁게 읽었다.  스타일이 일반 단편 소설과 다르게 극 사실주의로 씌어져있다. 제목처럼 다양하고 우울한 더블린 사람들의 인생의 한 부분을 잘 잘라서 보여준다.  기승전결로 스토리를 전개해나가지 않고 묘사 위주로 나가다가 결말에서 갑작스럽게 이야기를 마치는 단편이 많은데, 그럼에도 그 결말은 강한 이미지를 준다.  그의 소설에 공통적으로 많이 등장하는 것들은 종교(카톨릭), 음악, 영국의 속국이었던 당시 상황 등이 나온다.  테렌스 브라운이 쓴 해설에 의하면, 조이스가 이 소설을 쓸 때 유명한 아일랜드 작가는 예이츠였다고 한다. 예이츠의 문학 사조는 신비주의(켈트의 황혼파)에 기반을 두고 있었는데, 조이스는 이에 반하여 철저히 극사실주의로 더블린 사람들은 관찰했다. 심지어 그의 시선엔 권력을 쥔 악마같은 느낌도 있다.  '진흙(Clay)'에 빨래 공장에서 일하는 중년의 마리아가 나온다. 그녀는 자식처럼 사랑하는 조를 만나러 갈 생각에 들떠있고 거울을 보며 아직 자신의 몸매는 매력적이라고 자족하는 장면이 나온다. 그러다 제과점에선  실수로 비싼 (2-3일 생활비) 케이크를 사게 되고 전차 안에서는 매력적인 중년 남성과 대화도 한다. 그러나 실수로 케이크를 전차에 두고 내렸게 되고 이에 자책을 한다. 조의 집에서 할로윈 놀이를 한다. 눈을 감고 테이블 위에 있는 물건을 잡는 놀이인데, 반지를 잡으면 곧 결혼을 하게 되고 진흙을 잡으면 곧 죽게 된다는 것이다. 마리아는 반지를 못잡고 진흙을 잡게 되고 파티 분위기를 가라 앉는다. 조가 분위기를 띄우려고 마리아에게 노래를 부르라고 하고 마리아는 "I dreamt that I dwelt in Marble halls." 를 부른다. 2절이 결혼에 대한 내용이라서 마리아는 민망한 마음에 2절을 부르지 못하고 1절을 한번 더 부른다.  이게 단편 '진흙'의 짤막한 요약인데 조이스는 결혼하지 못하고 중년이 된 하류층 여성의 삶을 사실적으로 묘사하고 그의...