english_question stringlengths 12 7.84k | english_answer stringlengths 15 17.7k | korean_question stringlengths 1 2.27k | korean_answer stringlengths 8 8.33k |
|---|---|---|---|
Can brain cells move? By movement I mean long distance migration (preferably within the brain only). | The question is relatively broad and one should take into account that the brain not only consists of neurons, but also glial cells (supportive cells) and pre-mitotic neuronal stem cells. Furthermore, as critical fellow-scientists have indicated, developmental stage is very important, as the developing embryonic brain ... | ๋ ์ธํฌ๋ ์ด๋ํ ์ ์์๊น์? ์ฌ๊ธฐ์ ์ด๋์ด๋ ๊ธด ๊ฑฐ๋ฆฌ ์ด์ฃผ๋ฅผ ์๋ฏธํฉ๋๋ค (๊ฐ๋ฅํ๋ค๋ฉด ๋ ๋ด๋ถ์์๋ง). | ์ง๋ฌธ์ ์๋์ ์ผ๋ก ๊ด๋ฒ์ํ๋ฉฐ, ๋๋ ๋ด๋ฐ๋ฟ๋ง ์๋๋ผ ์ ๊ฒฝ๊ต์ธํฌ(์ง์ง ์ธํฌ)์ ์ ์ ์ฌ ๋ด๋ฐ ์ค๊ธฐ์ธํฌ๋ก ๊ตฌ์ฑ๋์ด ์๋ค๋ ์ ์ ๊ณ ๋ คํด์ผ ํฉ๋๋ค. ๊ฒ๋ค๊ฐ, ๋นํ์ ์ธ ๋๋ฃ ๊ณผํ์๋ค์ด ์ง์ ํ๋ฏ์ด ๋ฐ๋ฌ ๋จ๊ณ๋ ๋งค์ฐ ์ค์ํฉ๋๋ค. ๋ฐ๋ฌ ์ค์ธ ๋ฐฐ์ ๋๋ ์ฑ์ฒด ๋์ ๋งค์ฐ ๋ค๋ฆ
๋๋ค. ๊ทธ๋ฌ๋ ๋ค์ํ ์ถ์ฒ๋ฅผ ๊ฒํ ํ ๊ฒฐ๊ณผ, ์ง๋ฌธ์ ๋ํ ๋ต์ ์ฌ์ค ๋๋๋๋ก ๊ฐ๋จํฉ๋๋ค: ๋ค, ๋ ์ธํฌ๋ ์ด๋ํฉ๋๋ค. ์ฑ์ฒด ๋์์๋ ์ ๊ฒฝ๊ต์ธํฌ๊ฐ ๋ ๋ด์์ ์ด๋ํฉ๋๋ค(Klรคmbt, 2009). ์ ๊ฒฝ๊ต์ธํฌ๋ ์๋ง์ ๊ธฐ๋ฅ์ ๊ด์ฌํ์ง๋ง, ์ด๋ํ๋ ์ ๊ฒฝ๊ต์ธํฌ์ ์ฃผ๋ชฉํ ๋งํ ์๋ ์ฌ๋ฆฌ๊ณ ๋ด๋๋ก์ฌ์ดํธ๋ก, ์ด๋ค์ ์์ ์ด ๊ฐ์ธ์ผ ํ ... |
In our computer systems lecture we were introduced to the MIPS processor. It was (re)developed over the course of the term and has in fact been quite easy to understand. It uses a RISC design, that is its elementary commands are regularly encoded and there are only few of them in order to keep the wires simple.
It was ... | There is a general historical trend.
In the olden days, memories were small, and so programs were perforce small. Also, compilers were not very smart, and many programs were written in assembler, so it was considered a good thing to be able to write a program using few instructions. Instruction pipelines were simple, a... | ์ฐ๋ฆฌ ์ปดํจํฐ ์์คํ
๊ฐ์์์ MIPS ํ๋ก์ธ์์ ๋ํด ์๊ฐ๋ฐ์์ต๋๋ค. ํ๊ธฐ ๋์ (์ฌ)๊ฐ๋ฐ๋์๊ณ , ์ฌ์ค ์ดํดํ๊ธฐ๊ฐ ๊ฝค ์ฌ์ ์ต๋๋ค. ์ด ํ๋ก์ธ์๋ RISC ์ค๊ณ๋ฅผ ์ฌ์ฉํ๋ฉฐ, ์ฆ ๊ธฐ๋ณธ ๋ช
๋ น์ด๊ฐ ๊ท์น์ ์ผ๋ก ์ธ์ฝ๋ฉ๋๊ณ ๊ทธ ์๊ฐ ์ ์ด ์ ์ ์ด ๋จ์ํ๊ฒ ์ ์ง๋ฉ๋๋ค. CISC๋ ๋ค๋ฅธ ์ฒ ํ์ ๋ฐ๋ฅธ๋ค๊ณ ์ธ๊ธ๋์์ต๋๋ค. x86 ๋ช
๋ น์ด ์งํฉ์ ์ ๊น ์ดํด๋ดค๋๋ฐ, ๋๋ฌด ๋ณต์กํ ๋ช
๋ น์ด ์งํฉ์ ์ฌ์ฉํ๋ ํ๋ก์ธ์๋ฅผ ๋๊ฐ ๋ง๋ค๊ณ ์ถ์ดํ ์ง ์์์ด ๋์ง ์์์ต๋๋ค! ๊ทธ๋์ ํ๋ก์ธ์ ์์ฅ์ ํฐ ๋ถ๋ถ์ด CISC ์ํคํ
์ฒ๋ฅผ ์ฌ์ฉํ๋ ์ด์ ์ ๋ํ ์ข์ ๋
ผ๊ฑฐ๊ฐ ์์ด์ผ ํ๋ค๊ณ ์๊ฐํฉ๋๋ค. ๊ทธ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? | ์ผ๋ฐ์ ์ธ ์ญ์ฌ์ ๊ฒฝํฅ์ด ์์ต๋๋ค. ์์ ์๋ ๋ฉ๋ชจ๋ฆฌ๊ฐ ์์๊ณ , ๋ฐ๋ผ์ ํ๋ก๊ทธ๋จ๋ ์ด์ฉ ์ ์์ด ์์์ต๋๋ค. ๋ํ ์ปดํ์ผ๋ฌ๋ ๊ทธ๋ฆฌ ๋๋ํ์ง ์์๊ณ , ๋ง์ ํ๋ก๊ทธ๋จ์ด ์ด์
๋ธ๋ฌ๋ก ์์ฑ๋์๊ธฐ ๋๋ฌธ์ ๋ช ๊ฐ์ ๋ช
๋ น์ด๋ก ํ๋ก๊ทธ๋จ์ ์์ฑํ ์ ์๋ ๊ฒ์ ์ข์ ๊ฒ์ผ๋ก ์ฌ๊ฒจ์ก์ต๋๋ค. ๋ช
๋ น์ด ํ์ดํ๋ผ์ธ์ ๊ฐ๋จํ๊ณ , ํ๋ก์ธ์๋ ํ ๋ฒ์ ํ๋์ ๋ช
๋ น์ด๋ฅผ ๊ฐ์ ธ์ ์คํํ์ต๋๋ค. ํ๋ก์ธ์ ๋ด๋ถ์ ๊ธฐ๊ณ ๊ตฌ์กฐ๋ ๊ฝค ๋ณต์กํ์ง๋ง, ๋ช
๋ น์ด๋ฅผ ํด๋
ํ๋ ๊ฒ์ ํฐ ๋ถ๋ด์ผ๋ก ๋๊ปด์ง์ง ์์์ต๋๋ค.
1970๋
๋์ CPU์ ์ปดํ์ผ๋ฌ ์ค๊ณ์๋ค์ ์ด๋ฌํ ๋ณต์กํ ๋ช
๋ น์ด๊ฐ ๊ทธ๋ ๊ฒ ์ ์ฉํ์ง ์๋ค๋ ๊ฒ์ ๊นจ๋ฌ์์ต๋๋ค. ์ด๋ฌํ... |
View tabular file such as CSV from command line, having horizontal and vertical scrolling would be great. | Sure, please take a look at csvkit. It provides a set of tools that adhere to the UNIX philosophy (meaning they are small, simple, single-purposed and can be combined).
Here is an example that extracts the ten most populated cities in Germany from the free Maxmind World Cities database and displays the result in a co... | ๋ช
๋ น์ค์์ CSV์ ๊ฐ์ ํ ํ์์ ํ์ผ์ ๋ณด๊ธฐ ์ํด ์ํ ๋ฐ ์์ง ์คํฌ๋กค์ด ๊ฐ๋ฅํ๋ฉด ์ข๊ฒ ์ต๋๋ค. | ๋ฌผ๋ก ์
๋๋ค. csvkit์ ์ดํด๋ณด์ธ์. ์ด ๋๊ตฌ๋ UNIX ์ฒ ํ์ ๋ฐ๋ฅด๋ ๋๊ตฌ ๋ชจ์์ ์ ๊ณตํฉ๋๋ค(์ฆ, ์๊ณ ๋จ์ํ๋ฉฐ ๋จ์ผ ๋ชฉ์ ์ ๊ฐ์ง๊ณ ๊ฒฐํฉํ ์ ์์ต๋๋ค).
๋ค์์ Maxmind ์ธ๊ณ ๋์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ ๋
์ผ์์ ์ธ๊ตฌ๊ฐ ๊ฐ์ฅ ๋ง์ 10๊ฐ ๋์๋ฅผ ์ถ์ถํ๊ณ ๊ฒฐ๊ณผ๋ฅผ ์ฝ์์์ ์ฝ์ ์ ์๋ ํ์์ผ๋ก ํ์ํ๋ ์์
๋๋ค:
```$ csvgrep -e iso-8859-1 -c 1 -m "de" worldcitiespop | csvgrep -c 5 -r "\d+"
| csvsort -r -c 5 -l | csvcut -c 1,2,4,6 | head -n 11 | csvlo... |
Slater type orbitals (STO) are considered to be more accurate than gaussian type orbitals (GTO) for atomic and molecular QM calculations because - among other reasons - they decay with $e^{-\alpha r}$ as $r \to \infty$. But GTOs are more popular because they are easier to calculate with. GTOs decay with $e^{-\alpha r^2... | I'll answer this question from the theoretical side. The exponential behavior follows simply from the Schrรถdinger equation. Consider the one-electron Schrรถdinger equation:
$$
(-\frac{1}{2}\nabla^2 + V(\mathbf{r}))\psi(\mathbf{r}) = \epsilon\psi(\mathbf{r}), \epsilon < 0
$$
At spatial points that are very far away from ... | ์ฌ๋ ์ดํฐํ ์ค๋ฅด๋นํ(STO)์ ์์ ๋ฐ ๋ถ์ ์์์ญํ ๊ณ์ฐ์์ ๊ฐ์ฐ์์ํ ์ค๋ฅด๋นํ(GTO)๋ณด๋ค ๋ ์ ํํ ๊ฒ์ผ๋ก ๊ฐ์ฃผ๋ฉ๋๋ค. ๊ทธ ์ด์ ์ค ํ๋๋ STO๊ฐ $r \to \infty$์ผ ๋ $e^{-\alpha r}$๋ก ๊ฐ์ํ๊ธฐ ๋๋ฌธ์
๋๋ค. ๊ทธ๋ฌ๋ GTO๋ ๊ณ์ฐํ๊ธฐ๊ฐ ๋ ์ฝ๊ธฐ ๋๋ฌธ์ ๋ ์ธ๊ธฐ๊ฐ ์์ต๋๋ค. GTO๋ $e^{-\alpha r^2}$๋ก ๊ฐ์ํ๋ฏ๋ก, ๊ฐ์ฐ์์ ๊ฐ์ ํ๋์ ๋ณด์ํ๊ธฐ ์ํด GTO ๊ธฐ์ ์งํฉ์ ํ์ฐ ํจ์๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ด ์ ์ ํ ๋๋ ์์ต๋๋ค. ๋ํ, ์ ํํ ์์ ํ๋ ํจ์๋ ์ง์์ ์ผ๋ก ๊ฐ์ํ๋ฏ๋ก STO์ ๋๊ธฐ๊ฐ ๋ฉ๋๋ค. ์ ๋ ์์ ๊ณต๊ฐ์์ ์์์ ๋ถ์... | ์ด ์ง๋ฌธ์ ๋ํด ์ด๋ก ์ ์ธ ์ธก๋ฉด์์ ๋ต๋ณํ๊ฒ ์ต๋๋ค. ์ง์์ ์ธ ํ๋์ ์๋ขฐ๋ฉ๊ฑฐ ๋ฐฉ์ ์์์ ๊ฐ๋จํ ์ ๋๋ฉ๋๋ค. ๋จ์ผ ์ ์์ ์๋ขฐ๋ฉ๊ฑฐ ๋ฐฉ์ ์์ ๊ณ ๋ คํด๋ณด์ธ์:
$$
(-\frac{1}{2}\nabla^2 + V(\mathbf{r}))\psi(\mathbf{r}) = \epsilon\psi(\mathbf{r}), \epsilon < 0
$$
ํต์์ ๋งค์ฐ ๋ฉ๋ฆฌ ๋จ์ด์ง ๊ณต๊ฐ ์ ์์๋ $V(\mathbf{r})\approx 0$์ด๋ฏ๋ก ๋น๋์นญ ํด๋ ๋ค์๊ณผ ๊ฐ์ด ์ฃผ์ด์ง๋๋ค:
$$
-\frac{1}{2}\nabla^2\psi(\mathbf{r}) = \epsilon\psi(\mathbf{... |
Explain what "git reset" does. I come from a SVN background and Git is a whole new paradigm. I got mercurial easily, but Git is much more technical.
I think ```git reset``` is close to ```hg revert```, but it seems there are differences. Please include detailed explanations about:
* the options ```--hard```, ```--soft... | Remember that in ```git``` you have:
* the ```HEAD``` pointer, which tells you what commit you're working on
* the working tree, which represents the state of the files on your system
* the staging area (also called the index), which "stages" changes so that they can later be committed together
> Please include det... | "git reset"์ด ๋ฌด์์ ํ๋์ง ์ค๋ช
ํด ์ฃผ์ธ์. ์ ๋ SVN ๋ฐฐ๊ฒฝ์ ๊ฐ์ง๊ณ ์๊ณ Git์ ์์ ํ ์๋ก์ด ํจ๋ฌ๋ค์์
๋๋ค. Mercurial์ ์ฝ๊ฒ ์ดํดํ์ง๋ง Git์ ํจ์ฌ ๋ ๊ธฐ์ ์ ์
๋๋ค. ์ ๋ ```git reset```์ด ```hg revert```์ ๋น์ทํ๋ค๊ณ ์๊ฐํ์ง๋ง, ์ฐจ์ด์ ์ด ์๋ ๊ฒ ๊ฐ์ต๋๋ค. ๋ค์์ ๋ํ ์์ธํ ์ค๋ช
์ ํฌํจํด ์ฃผ์ธ์:
* ์ต์
์ธ ```--hard```, ```--soft``` ๋ฐ ```--merge```์ ๋ํด;
* ```HEAD```์ ํจ๊ป ์ฌ์ฉํ๋ ์ด์ํ ํ๊ธฐ๋ฒ์ธ ```HEAD^``` ๋ฐ ```HEAD~1```์ ๋ํด;
* ๊ตฌ์ฒด... | ```git```์์๋ ๋ค์๊ณผ ๊ฐ์ ์์๋ค์ด ์์ต๋๋ค:
* ```HEAD``` ํฌ์ธํฐ: ํ์ฌ ์์
์ค์ธ ์ปค๋ฐ์ ์๋ ค์ค๋๋ค.
* ์์
ํธ๋ฆฌ: ์์คํ
์ ํ์ผ ์ํ๋ฅผ ๋ํ๋
๋๋ค.
* ์คํ
์ด์ง ์์ญ(์ธ๋ฑ์ค๋ผ๊ณ ๋ ํจ): ๋์ค์ ํจ๊ป ์ปค๋ฐํ ์ ์๋๋ก ๋ณ๊ฒฝ ์ฌํญ์ "์คํ
์ด์ง"ํฉ๋๋ค.
> ๋ค์์ ๋ํ ์์ธํ ์ค๋ช
์ ํฌํจํด ์ฃผ์ธ์:
```--hard```, ```--soft``` ๋ฐ ```--merge```;
์ํ๋์ ๋ฐ๋ผ ์์๋๋ก:
* ```--soft```๋ ```HEAD```๋ฅผ ์ด๋ํ์ง๋ง ์คํ
์ด์ง ์์ญ์ด๋ ์์
ํธ๋ฆฌ์๋ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค.
* ```--mixed... |
I am looking to use Java to get the MD5 checksum of a file.
How is it done? | The com.google.common.hash API offers:
* A unified user-friendly API for all hash functions
* Seedable 32- and 128-bit implementations of murmur3
* md5(), sha1(), sha256(), sha512() adapters, change only one line of code to switch between these, and murmur.
* goodFastHash(int bits), for when you don't care what algori... | ํ์ผ์ MD5 ์ฒดํฌ์ฌ์ ์ป๊ธฐ ์ํด Java๋ฅผ ์ฌ์ฉํ๊ณ ์ถ์ต๋๋ค. ์ด๋ป๊ฒ ํด์ผ ํ๋์? | com.google.common.hash API๋ ๋ค์๊ณผ ๊ฐ์ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค:
* ๋ชจ๋ ํด์ ํจ์์ ๋ํ ํตํฉ๋ ์ฌ์ฉ์ ์นํ์ ์ธ API
* murmur3์ ์๋ ๊ฐ๋ฅ 32๋นํธ ๋ฐ 128๋นํธ ๊ตฌํ
* md5(), sha1(), sha256(), sha512() ์ด๋ํฐ, ์ด๋ค ์ฌ์ด๋ฅผ ์ ํํ๋ ค๋ฉด ์ฝ๋ ํ ์ค๋ง ๋ณ๊ฒฝํ๋ฉด ๋ฉ๋๋ค.
* ์๊ณ ๋ฆฌ์ฆ์ ์๊ด์์ด ์ฌ์ฉํ ์ ์๋ goodFastHash(int bits)
* HashCode ์ธ์คํด์ค๋ฅผ ์ํ ์ผ๋ฐ ์ ํธ๋ฆฌํฐ, ์๋ฅผ ๋ค์ด combineOrdered / combineUnordered
์ฌ์ฉ์ ๊ฐ์ด๋๋ฅผ ์ฝ์ด๋ณด์ธ์ (IO ์ค๋ช
... |
What are the primary objections Democrats have to a border wall? | It's not clear to me that Democrats are opposed to border-wall construction (your one source suggests they are fine with border walls/fences where necessary), so much as they opposed to some of the plans for full-border walls that have been put forth so far.
Recently, in response to reports that the spending bill would... | ๋ฏผ์ฃผ๋น์๋ค์ด ๊ตญ๊ฒฝ ์ฅ๋ฒฝ์ ๋ํด ๊ฐ์ฅ ๋ฐ๋ํ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? | ๋ฏผ์ฃผ๋น์ด ๊ตญ๊ฒฝ ์ฅ๋ฒฝ ๊ฑด์ค์ ๋ฐ๋ํ๊ณ ์๋ค๋ ์ ์ด ๋ช
ํํ์ง ์์ต๋๋ค(๊ทํ์ ํ ์ถ์ฒ๋ ๊ทธ๋ค์ด ํ์ํ ๊ฒฝ์ฐ ๊ตญ๊ฒฝ ์ฅ๋ฒฝ/ํ์ค์๋ ๊ด์ฐฎ๋ค๊ณ ์ ์ํ๊ณ ์์ต๋๋ค), ๊ทธ๋ณด๋ค๋ ์ง๊ธ๊น์ง ์ ์๋ ์ ๋ฉด ๊ตญ๊ฒฝ ์ฅ๋ฒฝ ๊ณํ๋ค์ ๋ฐ๋ํ๊ณ ์๋ ๊ฒ ๊ฐ๋ค๋ ์๊ฐ์ด ๋ญ๋๋ค. ์ต๊ทผ ๊ตญ๊ฒฝ ์ฅ๋ฒฝ์ ๋ํ ์๊ธ ์ง์์ด ํฌํจ๋ ๊ฒ์ด๋ผ๋ ๋ณด๋์ ๋์ํ์ฌ, 5๋ช
์ ๋ฏผ์ฃผ๋น ์์์์์ด ๋น์ฉ, ํจ์จ์ฑ ๋ฐ ๋ฒ์ ๋ฌธ์ ์ ๋ํ ์ฐ๋ ค๋ฅผ ํ๋ช
ํ๋ ์ํ์ ๋ฐํํ์ต๋๋ค.
์ฐ๋ฆฌ๋ ๋ํ ๋ฉ์์ฝ์์ ๋จ๋ถ ๊ตญ๊ฒฝ์ ๋ฐ๋ผ ๋งค์ฐ ๋น์ผ ์๋ก์ด ์ฅ๋ฒฝ๊ณผ โ์ถ๋ฐฉ๊ตฐโ์ ๋ํ ์๊ธ ์ง์์ ํฌํจ์ํค๋ ค๋ ๋
ธ๋ ฅ์ด ์์ ์ ์๋ค๋ ๋ณด๋์ ์ฐ๋ คํ๊ณ ์์ต๋๋ค.... |
I'm converting a video to GIF file with ```ffmpeg```:
```ffmpeg \
-i input.flv \
-ss 00:00:00.000 \
-pix_fmt rgb24 \
-r 10 \
-s 320x240 \
-t 00:00:10.000 \
output.gif
```
It works great, but output gif file has a very low quality.
Any ideas how can I improve quality of converted gif? | If you would prefer to avoid intermediate image files, the commands provided by LordNeckBeard can be piped between ```ffmpeg``` and ImageMagick's ```convert``` so that no intermediate files are required:
```ffmpeg -i input.flv -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 10 -loop 0 - output.gif
`... | ๋น๋์ค๋ฅผ GIF ํ์ผ๋ก ๋ณํํ๊ณ ์์ต๋๋ค ```ffmpeg```๋ฅผ ์ฌ์ฉํด์:
```ffmpeg \
-i input.flv \
-ss 00:00:00.000 \
-pix_fmt rgb24 \
-r 10 \
-s 320x240 \
-t 00:00:10.000 \
output.gif
```
์ ์๋ํ์ง๋ง, ์ถ๋ ฅ๋ GIF ํ์ผ์ ํ์ง์ด ๋งค์ฐ ๋ฎ์ต๋๋ค.
๋ณํ๋ GIF์ ํ์ง์ ์ด๋ป๊ฒ ๊ฐ์ ํ ์ ์์๊น์? | ์ค๊ฐ ์ด๋ฏธ์ง ํ์ผ์ ํผํ๊ณ ์ถ๋ค๋ฉด, LordNeckBeard๊ฐ ์ ๊ณตํ ๋ช
๋ น์ด๋ฅผ ```ffmpeg```์ ImageMagick์ ```convert``` ์ฌ์ด์ ํ์ดํํ์ฌ ์ค๊ฐ ํ์ผ์ด ํ์ ์๋๋ก ํ ์ ์์ต๋๋ค:
```ffmpeg -i input.flv -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 10 -loop 0 - output.gif
```
```-f image2pipe```๋ ffmpeg์๊ฒ ๋น๋์ค๋ฅผ ์ด๋ฏธ์ง๋ก ๋ถํ ํ๊ณ ํ์ดํ ์์์ ์ ํฉํ๋๋ก ์ง์ํ๋ฉฐ, ```-vcodec ppm```... |
Tor can only handle TCP connections, but DNS is a UDP protocol. How does Tor route DNS requests over its TCP based network? Why can the same approach not be used to route all UDP traffic over Tor? | Tor clients do not, in general, directly do DNS requests. When you open a connection through the tor network you usually ask your client (on its socks ports) to connect you to a hostname and port, say www.example.com:80.
Your tor client, once it has created a circuit, will send that hostname and port to the exit node ... | Tor๋ TCP ์ฐ๊ฒฐ๋ง ์ฒ๋ฆฌํ ์ ์์ง๋ง, DNS๋ UDP ํ๋กํ ์ฝ์
๋๋ค. Tor๋ TCP ๊ธฐ๋ฐ ๋คํธ์ํฌ๋ฅผ ํตํด DNS ์์ฒญ์ ์ด๋ป๊ฒ ๋ผ์ฐํ
ํ๋์? ์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ๋ชจ๋ UDP ํธ๋ํฝ์ Tor๋ฅผ ํตํด ๋ผ์ฐํ
ํ ์ ์๋ ๊ฑด๊ฐ์? | ํ ๋ฅด ํด๋ผ์ด์ธํธ๋ ์ผ๋ฐ์ ์ผ๋ก DNS ์์ฒญ์ ์ง์ ์ํํ์ง ์์ต๋๋ค. ํ ๋ฅด ๋คํธ์ํฌ๋ฅผ ํตํด ์ฐ๊ฒฐ์ ์ด ๋, ๋ณดํต ํด๋ผ์ด์ธํธ์๊ฒ (์์ผ ํฌํธ๋ฅผ ํตํด) ํธ์คํธ ์ด๋ฆ๊ณผ ํฌํธ, ์๋ฅผ ๋ค์ด www.example.com:80์ ์ฐ๊ฒฐํด ๋ฌ๋ผ๊ณ ์์ฒญํฉ๋๋ค. ํด๋ผ์ด์ธํธ๊ฐ ํ๋ก๋ฅผ ์์ฑํ ํ, ํด๋น ํธ์คํธ ์ด๋ฆ๊ณผ ํฌํธ๋ฅผ EXIT ๋
ธ๋์ RELAY_BEGIN ์
์ ์ ์กํฉ๋๋ค. EXIT ๋
ธ๋๋ ์ดํ DNS ํด์์ ์ํํ๊ณ ๋์์ TCP ์ฐ๊ฒฐ์ ์ฝ๋๋ค. ์ฐ๊ฒฐ์ด ์ค์ ๋๋ฉด ํด๋ผ์ด์ธํธ์๊ฒ ์ฐ๊ฒฐ์ด ์ด๋ ธ๋ค๊ณ ์๋ฆฌ๊ณ , ์ฐธ๊ณ ์ฉ์ผ๋ก ํด๋น ํธ์คํธ ์ด๋ฆ์ด ํด์๋ ์ฃผ์๋ ํด๋ผ์ด์ธํธ์๊ฒ ์๋ ค์ค๋๋ค. ํ ๋ฅด๋ ์ด์ ๋... |
Why does this throw ```NullPointerException```
```public static void main(String[] args) throws Exception {
Boolean b = true ? returnsNull() : false; // NPE on this line.
System.out.println(b);
}
public static Boolean returnsNull() {
return null;
}
```
while this doesn't
```public static void main(String[] ... | The difference is that the explicit type of the ```returnsNull()``` method affects the static typing of the expressions at compile time:
```E1: `true ? returnsNull() : false` - boolean (auto-unboxing 2nd operand to boolean)
E2: `true ? null : false` - Boolean (autoboxing of 3rd operand to Boolean)
```
See Java Language... | ์ ์ด ์ฝ๋๋ ```NullPointerException```์ ๋ฐ์์ํค๊ณ
```public static void main(String[] args) throws Exception {
Boolean b = true ? returnsNull() : false; // ์ด ์ค์์ NPE ๋ฐ์.
System.out.println(b);
}
public static Boolean returnsNull() {
return null;
}
```
์ด ์ฝ๋๋ ๋ฐ์์ํค์ง ์๋์?
```public static void main(String[] args) thr... | ์ฐจ์ด์ ์ `returnsNull()` ๋ฉ์๋์ ๋ช
์์ ํ์
์ด ์ปดํ์ผ ์ ํํ์์ ์ ์ ํ์
์ ์ํฅ์ ๋ฏธ์น๋ค๋ ๊ฒ์
๋๋ค:
```E1: `true ? returnsNull() : false` - boolean (๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ boolean์ผ๋ก ์๋ ์ธ๋ฐ์ฑ)
E2: `true ? null : false` - Boolean (์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ Boolean์ผ๋ก ๋ฐ์ฑ)
```
Java ์ธ์ด ๋ช
์ธ, ์น์
15.25 ์กฐ๊ฑด ์ฐ์ฐ์ ? ์ฐธ์กฐ:
* E1์ ๊ฒฝ์ฐ, ๋ ๋ฒ์งธ ๋ฐ ์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์์ ํ์
์ ๊ฐ๊ฐ ```Boolean```๊ณผ ```boolean```์ด๋ฏ๋ก, ๋ค์ ์กฐ๊ฑด์ด... |
How do DOS games like DOOM benefit from a PCI graphics card? | DOOM itself doesnโt do anything special to benefit from PCI graphics cards. It runs faster with PCI graphics cards (and VLB, AGP, and PCI Express cards) than with ISA graphics cards because the supporting bus is faster, so reads from and writes to video memory take less time.
PCI goes to great lengths to preserve backw... | DOS ๊ฒ์์ธ DOOM์ PCI ๊ทธ๋ํฝ ์นด๋๋ก๋ถํฐ ์ด๋ป๊ฒ ํํ์ ๋ฐ์๊น์? | DOOM ์์ฒด๋ PCI ๊ทธ๋ํฝ ์นด๋์ ์ด์ ์ ๋๋ฆฌ๊ธฐ ์ํด ํน๋ณํ ์์
์ ํ์ง ์์ต๋๋ค. PCI ๊ทธ๋ํฝ ์นด๋(๊ทธ๋ฆฌ๊ณ VLB, AGP ๋ฐ PCI Express ์นด๋)๋ฅผ ์ฌ์ฉํ ๋ ISA ๊ทธ๋ํฝ ์นด๋๋ณด๋ค ๋ ๋น ๋ฅด๊ฒ ์คํ๋๋๋ฐ, ์ด๋ ์ง์ ๋ฒ์ค๊ฐ ๋ ๋น ๋ฅด๊ธฐ ๋๋ฌธ์ ๋น๋์ค ๋ฉ๋ชจ๋ฆฌ์์์ ์ฝ๊ธฐ ๋ฐ ์ฐ๊ธฐ ์๊ฐ์ด ์ค์ด๋ค๊ธฐ ๋๋ฌธ์
๋๋ค. PCI๋ ISA ๊ธฐ๋ฐ VGA์์ ํ์ ํธํ์ฑ์ ์ ์งํ๊ธฐ ์ํด ๋ง์ ๋
ธ๋ ฅ์ ๊ธฐ์ธ์ด๋ฉฐ, "VGA ํธํ" ์ด๋ํฐ๋ฅผ ์ง์ํ์ฌ ์ด๋ค์ด ๋ฉ๋ชจ๋ฆฌ์์ ๋์ผํ ์์น์ ๋ํ๋๊ณ ISA VGA ์นด๋์ ๋์ผํ I/O ํฌํธ๋ฅผ ์ฌ์ฉํ ์ ์๋๋ก ํฉ๋๋ค. ๋ฐ๋ผ์ VGA ๋ ์ง์คํฐ์... |
I need to be able to open a document using its default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double-click on the document icon in Explorer or Finder. What is the best way to do this in Python? | ```open``` and ```start``` are command-interpreter things for Mac OS/X and Windows respectively, to do this.
To call them from Python, you can either use ```subprocess``` module or ```os.system()```.
Here are considerations on which package to use:
* You can call them via ```os.system```, which works, but...
Escaping... | ๋ฌธ์๋ฅผ Windows์ Mac OS์์ ๊ธฐ๋ณธ ์ ํ๋ฆฌ์ผ์ด์
์ผ๋ก ์ด ์ ์์ด์ผ ํฉ๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก, Explorer๋ Finder์์ ๋ฌธ์ ์์ด์ฝ์ ๋๋ธ ํด๋ฆญํ ๋ ์ผ์ด๋๋ ๊ฒ๊ณผ ๊ฐ์ ์์
์ ํ๊ณ ์ถ์ต๋๋ค. Python์์ ์ด๋ฅผ ์ํํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? | ```open```๊ณผ ```start```๋ ๊ฐ๊ฐ Mac OS/X์ Windows์ ๋ช
๋ น ํด์๊ธฐ์์ ์ฌ์ฉํ๋ ๋ช
๋ น์ด์
๋๋ค. Python์์ ์ด๋ฅผ ํธ์ถํ๋ ค๋ฉด ```subprocess``` ๋ชจ๋์ด๋ ```os.system()```์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ด๋ค ํจํค์ง๋ฅผ ์ฌ์ฉํ ์ง์ ๋ํ ๊ณ ๋ ค ์ฌํญ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
* ```os.system```์ ํตํด ํธ์ถํ ์ ์์ง๋ง, ์๋ํ๋ ๊ฒ์...
์ด์ค์ผ์ดํ: ```os.system```์ ๊ฒฝ๋ก๋ช
์ ๊ณต๋ฐฑ์ด๋ ๋ค๋ฅธ ์
ธ ๋ฉํ๋ฌธ์๊ฐ ์๋ ํ์ผ ์ด๋ฆ์์๋ง ์๋ํฉ๋๋ค (์: ```A:\abc\def\a.txt```), ๊ทธ๋ ์ง ์์ผ๋ฉด ์ด... |
Why does PRC devalue its currency on purpose, but Turkey is worried about the devaluation of its currency? | Trade surplus/deficit
Devaluing one's currency means mostly one thing: It becomes more expensive to import products from abroad, while one's own products become comparably cheaper to buy on the world market. That means a country which exports lots of goods wants to devalue their currency while a country which imports l... | ์ ์ค๊ตญ์ ์๋์ ์ผ๋ก ์๊ตญ ํตํ๋ฅผ ํ๊ฐ์ ํํ๋๋ฐ, ํฐํค๋ ์๊ตญ ํตํ์ ํ๊ฐ์ ํ๋ฅผ ๊ฑฑ์ ํ ๊น์? | ๋ฌด์ญ ํ์/์ ์
์๊ตญ ํตํ๋ฅผ ํ๊ฐ์ ํํ๋ ๊ฒ์ ์ฃผ๋ก ํ ๊ฐ์ง๋ฅผ ์๋ฏธํฉ๋๋ค: ํด์ธ์์ ์ ํ์ ์์
ํ๋ ๋น์ฉ์ด ๋ ๋น์ธ์ง๊ณ , ๋ฐ๋ฉด ์๊ตญ์ ์ ํ์ ์ธ๊ณ ์์ฅ์์ ๋น๊ต์ ์ผ๋ก ๋ ์ ๋ ดํด์ง๋ค๋ ๊ฒ์
๋๋ค. ์ด๋ ๋ง์ ์ํ์ ์์ถํ๋ ๋๋ผ๊ฐ ์๊ตญ ํตํ๋ฅผ ํ๊ฐ์ ํํ๊ณ ์ถ์ดํ๊ณ , ๋ง์ ์ํ์ ์์
ํ๋ ๋๋ผ๋ ๊ทธ๋ ์ง ์๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.
2016๋
, ํฐํค๋ 1,860์ต ๋ฌ๋ฌ์ ์ํ์ ์์
ํ๊ณ 1,560์ต ๋ฌ๋ฌ์ ์ํ์ ์์ถํ์ต๋๋ค. ์ด๋ ๊ทธ๋ค์ด 19%์ ๋ฌด์ญ ์ ์๋ฅผ ๊ฐ์ง๊ณ ์์๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.
๊ทธ๋ฌ๋ ์ค๊ตญ์ 2016๋
์ 1.23์กฐ ๋ฌ๋ฌ์ ์ํ์ ์์
ํ๊ณ 2.27์กฐ ๋ฌ... |
Is it worth patenting an algorithm if I don't have the money to defend against infringements? | This is a great question, with no one right answer.
The strength of a patent comes from the ability to enforce it. If the patent owner cannot enforce it for whatever reason (such as a lack of funding), the patent is effectively toothless.
But your competitors will likely not know that. They may therefore be dissuaded f... | ์๊ณ ๋ฆฌ์ฆ์ ํนํ๋ฅผ ๋ฐ๋ ๊ฒ์ด ๊ฐ์น๊ฐ ์์๊น์, ๋ง์ฝ ์นจํด์ ๋ํด ๋ฐฉ์ดํ ๋์ด ์๋ค๋ฉด? | ์ด๊ฒ์ ํ๋ฅญํ ์ง๋ฌธ์ด๋ฉฐ ์ ๋ต์ ํ๋๊ฐ ์๋๋๋ค. ํนํ์ ๊ฐ์ ์ ๊ทธ๊ฒ์ ์งํํ ์ ์๋ ๋ฅ๋ ฅ์์ ๋์ต๋๋ค. ๋ง์ฝ ํนํ ์์ ์๊ฐ ์ด๋ค ์ด์ ๋ก๋ (์๋ฅผ ๋ค์ด ์๊ธ ๋ถ์กฑ) ์ด๋ฅผ ์งํํ ์ ์๋ค๋ฉด, ํนํ๋ ์ฌ์ค์ ๋ฌด๋ ฅํด์ง๋๋ค. ๊ทธ๋ฌ๋ ๊ฒฝ์์๋ค์ ์ด๋ฅผ ์์ง ๋ชปํ ๊ฐ๋ฅ์ฑ์ด ํฝ๋๋ค. ๋ฐ๋ผ์ ํนํ์ ์กด์ฌ์ ๋น์ ์ด ์์ก์ ์ ๊ธฐํ ๊ฒ์ด๋ผ๋ ๊ฐ์ ๋ง์ผ๋ก๋ ๊ทธ๋ค์ ์นจํด๋ฅผ ์์ ํ ์ ์์ต๋๋ค. ์ด๋ฌํ ๊ฒฝ์์ ๋ํ ์์ถ ํจ๊ณผ๋ ๋น์ ์๊ฒ ๊ฐ์น๊ฐ ์์ ์ ์์ต๋๋ค.
๋ํ ์นจํด๊ฐ ๋ฐ์ํ ๊ฒฝ์ฐ, ์์ก ์์ด ๋ผ์ด์ผ์ค ๊ณ์ฝ์ ์ฒด๊ฒฐํ ์ ์์์ง๋ ๋ชจ๋ฆ
๋๋ค. ์ด๋ ๋งค์ฐ ์์ต์ฑ ๋์ ๋น์ฆ๋์ค ๋ชจ๋ธ์ด ๋ ์ ์... |
"I have a ```String[]``` with values like so:
```public static final String[] VALUES = new String[] {""AB"",""BC"",""CD"",""AE""};
```
Given ```String s```, is there a good way of testing whether ```VALUES``` contains ```s```?" How do I determine whether an array contains a particular value in Java? | Four Different Ways to Check If an Array Contains a Value:
* Using ```List```:
```public static boolean useList(String[] arr, String targetValue) {
return Arrays.asList(arr).contains(targetValue);
}
```
* Using ```Set```:
```public static boolean useSet(String[] arr, String targetValue) {
Set set = new HashSet... | ```๋๋ ๋ค์๊ณผ ๊ฐ์ ๊ฐ์ด ์๋ ```String[]```๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค:
```public static final String[] VALUES = new String[] {""AB"",""BC"",""CD"",""AE""};
```
```String s```๊ฐ ์ฃผ์ด์ก์ ๋, ```VALUES```๊ฐ ```s```๋ฅผ ํฌํจํ๋์ง ํ
์คํธํ ์ข์ ๋ฐฉ๋ฒ์ด ์์๊น์? ์๋ฐ์์ ๋ฐฐ์ด์ด ํน์ ๊ฐ์ ํฌํจํ๋์ง ์ด๋ป๊ฒ ํ์ธํ๋์?``` | ๋ฐฐ์ด์ ๊ฐ์ด ํฌํจ๋์ด ์๋์ง ํ์ธํ๋ ๋ค ๊ฐ์ง ๋ฐฉ๋ฒ:
* ```List``` ์ฌ์ฉ:
```public static boolean useList(String[] arr, String targetValue) {
return Arrays.asList(arr).contains(targetValue);
}
```
* ```Set``` ์ฌ์ฉ:
```public static boolean useSet(String[] arr, String targetValue) {
Set set = new HashSet(Arrays.asList(arr));
return se... |
Does Java casting introduce overhead? Or the compiler just resolves everything and there is no cost at run time?
Is this a general things, or there are different cases? | There are 2 types of casting in Java:
Implicit casting, when you cast from a type to a wider type, which is done automatically and there is no overhead:
```String s = "Cast";
Object o = s; // implicit casting
```
Explicit casting, when you go from a wider type to a more narrow one. For this case, you must explicitly u... | ์๋ฐ ์บ์คํ
์ด ์ค๋ฒํค๋๋ฅผ ๋ฐ์์ํค๋์? ์๋๋ฉด ์ปดํ์ผ๋ฌ๊ฐ ๋ชจ๋ ๊ฒ์ ํด๊ฒฐํ๊ณ ๋ฐํ์์๋ ๋น์ฉ์ด ์ ํ ์๋ ๊ฑด๊ฐ์? ์ด๊ฒ์ ์ผ๋ฐ์ ์ธ ์ฌํญ์ธ๊ฐ์, ์๋๋ฉด ๋ค๋ฅธ ๊ฒฝ์ฐ๋ค์ด ์๋์? | ์๋ฐ์๋ ๋ ๊ฐ์ง ์ ํ์ ํ ๋ณํ์ด ์์ต๋๋ค:
์์์ ๋ณํ(Implicit casting)์ ๋ ๋์ ์ ํ์ผ๋ก ๋ณํํ ๋ ์๋์ผ๋ก ์ด๋ฃจ์ด์ง๋ฉฐ ์ค๋ฒํค๋๊ฐ ์์ต๋๋ค:
```java
String s = "Cast";
Object o = s; // ์์์ ๋ณํ
```
๋ช
์์ ๋ณํ(Explicit casting)์ ๋ ๋์ ์ ํ์์ ๋ ์ข์ ์ ํ์ผ๋ก ๋ณํํ ๋ ๋ฐ์ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ์๋ ๋ค์๊ณผ ๊ฐ์ด ๋ช
์์ ์ผ๋ก ํ ๋ณํ์ ์ฌ์ฉํด์ผ ํฉ๋๋ค:
```java
Object o = someObject;
String s = (String) o; // ๋ช
์์ ๋ณํ
```
๋ ๋ฒ์งธ ๊ฒฝ์ฐ์๋ ... |
How can I copy a string (e.g "hello") to the System Clipboard in C#, so next time I press CTRL+V I'll get "hello"? | There are two classes that lives in different assemblies and different namespaces.
* WinForms: use following namespace declaration, make sure ```Main``` is marked with ```[STAThread]``` attribute:
```using System.Windows.Forms;
```
* WPF: use following namespace declaration
```using System.Windows;
```
* console: add ... | C#์์ ๋ฌธ์์ด(์: "hello")์ ์์คํ
ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์? ๋ค์์ CTRL+V๋ฅผ ๋๋ฅด๋ฉด "hello"๊ฐ ๋ํ๋๊ฒ ํ๋ ค๋ฉด์? | ๋ค๋ฅธ ์ด์
๋ธ๋ฆฌ์ ๋ค๋ฅธ ๋ค์์คํ์ด์ค์ ์๋ ๋ ๊ฐ์ ํด๋์ค๊ฐ ์์ต๋๋ค.
* WinForms: ๋ค์ ๋ค์์คํ์ด์ค ์ ์ธ์ ์ฌ์ฉํ๊ณ , ```Main```์ด ```[STAThread]``` ์์ฑ์ผ๋ก ํ์๋์ด ์๋์ง ํ์ธํ์ธ์:
```using System.Windows.Forms;
```
* WPF: ๋ค์ ๋ค์์คํ์ด์ค ์ ์ธ์ ์ฌ์ฉํ์ธ์
```using System.Windows;
```
* ์ฝ์: ```System.Windows.Forms```์ ๋ํ ์ฐธ์กฐ๋ฅผ ์ถ๊ฐํ๊ณ ๋ค์ ๋ค์์คํ์ด์ค ์ ์ธ์ ์ฌ์ฉํ๋ฉฐ, ```Main```์ด ```[STAThread]``` ์์ฑ์ผ๋ก ํ์๋์ด ... |
I want to put a draft watermark using the below script but the problem is that the watermark don't come over the images and I want it to come over it.
```\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkScale{1}
``` | The problem is that the ```draftwatermark``` places the material in the background, so other elements (for example, figures and listings) might cover the included material; to prevent this, instead of using the ```draftwatermark``` package, you can use the ```xwatermark``` package; the starred variant of ```\newwaterma... | ์๋ ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ์ฌ ์ด์ ์ํฐ๋งํฌ๋ฅผ ๋ฃ๊ณ ์ถ์ง๋ง, ๋ฌธ์ ๋ ์ํฐ๋งํฌ๊ฐ ์ด๋ฏธ์ง ์์ ๋ํ๋์ง ์๋๋ค๋ ๊ฒ์
๋๋ค. ์ํฐ๋งํฌ๊ฐ ์ด๋ฏธ์ง ์์ ์ค๋๋ก ํ๊ณ ์ถ์ต๋๋ค.
```\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkScale{1}
``` | ๋ฌธ์ ๋ ```draftwatermark```๊ฐ ์๋ฃ๋ฅผ ๋ฐฐ๊ฒฝ์ ๋ฐฐ์นํ๊ธฐ ๋๋ฌธ์ ๋ค๋ฅธ ์์๋ค(์: ๋ํ ๋ฐ ๋ชฉ๋ก)์ด ํฌํจ๋ ์๋ฃ๋ฅผ ๊ฐ๋ฆด ์ ์๋ค๋ ๊ฒ์
๋๋ค. ์ด๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด ```draftwatermark``` ํจํค์ง ๋์ ```xwatermark``` ํจํค์ง๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ```\newwatermark```์ ๋ณํ๊ฐ ์๋ ๋ณํ์ ์๋ฃ๋ฅผ ์ ๊ฒฝ์ ๋ฐฐ์นํ๋ฉฐ, ์ด๋ ๋น์ ์ด ํ์ํ ๊ฒ์ฒ๋ผ ๋ณด์
๋๋ค. ๊ฐ๋จํ ์์๋ฅผ ๋ค์ด๋ณด๊ฒ ์ต๋๋ค:
๋จผ์ , ๋ณํ๊ฐ ์๋ ๋ณํ(๋ฐฐ๊ฒฝ์ ์๋ ์๋ฃ๋ก, ๋ํ์ด ๊ทธ ์์ ๋ฐฐ์น๋จ):
```\documentclass{article}
\usepacka... |
Understanding the Rails Authenticity Token | What is CSRF?
The Authenticity Token is a countermeasure to Cross-Site Request Forgery (CSRF). What is CSRF, you ask?
It's a way that an attacker can potentially hijack sessions without even knowing session tokens.
Scenario:
* Visit your bank's site, log in.
* Then visit the attacker's site (e.g. sponsored ad from an... | ๋ ์ผ์ค ์ธ์ฆ ํ ํฐ ์ดํดํ๊ธฐ | CSRF๋ ๋ฌด์์ธ๊ฐ์?
์ธ์ฆ ํ ํฐ์ ํฌ๋ก์ค ์ฌ์ดํธ ์์ฒญ ์์กฐ(CSRF)์ ๋ํ ๋์์ฑ
์
๋๋ค. CSRF๊ฐ ๋ฌด์์ธ์ง ๊ถ๊ธํ์์ฃ ?
๊ณต๊ฒฉ์๊ฐ ์ธ์
ํ ํฐ์ ์์ง ๋ชปํ ์ฑ๋ก ์ธ์
์ ํ์ทจํ ์ ์๋ ๋ฐฉ๋ฒ์
๋๋ค.
์๋๋ฆฌ์ค:
* ์ํ ์ฌ์ดํธ์ ๋ฐฉ๋ฌธํ์ฌ ๋ก๊ทธ์ธํฉ๋๋ค.
* ๊ทธ๋ฐ ๋ค์ ๊ณต๊ฒฉ์์ ์ฌ์ดํธ(์: ์ ๋ขฐํ ์ ์๋ ์กฐ์ง์ ๊ด๊ณ )๋ฅผ ๋ฐฉ๋ฌธํฉ๋๋ค.
* ๊ณต๊ฒฉ์์ ํ์ด์ง์๋ ์ํ์ "์๊ธ ์ด์ฒด" ์์๊ณผ ๊ฐ์ ํ๋๊ฐ ํฌํจ๋ ์์์ด ์์ต๋๋ค.
* ๊ณต๊ฒฉ์๋ ๊ทํ์ ๊ณ์ข ์ ๋ณด๋ฅผ ์๊ณ ์์ผ๋ฉฐ, ๊ทํ์ ๊ณ์ข์์ ๊ณต๊ฒฉ์์ ๊ณ์ข๋ก ๋์ ์ด์ฒดํ๊ธฐ ์ํด ์์ ํ๋๋ฅผ ๋ฏธ๋ฆฌ ์ฑ์ ๋์ต๋๋ค.
* ๊ณต๊ฒฉ... |
Why is FIFA against adding instant replay to the game? | There are a few fundamental considerations:
* Uncertainty is a part of the game. The referee and linesmen are the arbiters of the action. Instant replay would limit their authority.
* Football is global. Many places do not have access to the technology necessary to implement instant replay.
* Football is a fast-paced ... | FIFA๊ฐ ๊ฒฝ๊ธฐ์์ ์ฆ๊ฐ์ ์ธ replay ์ถ๊ฐ์ ๋ฐ๋ํ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? | ๋ช ๊ฐ์ง ๊ธฐ๋ณธ์ ์ธ ๊ณ ๋ ค ์ฌํญ์ด ์์ต๋๋ค:
* ๋ถํ์ค์ฑ์ ๊ฒฝ๊ธฐ์ ์ผ๋ถ์
๋๋ค. ์ฌํ๊ณผ ๋ผ์ธ๋งจ์ด ๊ฒฝ๊ธฐ์ ํ๋ณ์์
๋๋ค. ์ฆ๊ฐ์ ์ธ ์ฌ์์ ๊ทธ๋ค์ ๊ถํ์ ์ ํํ ๊ฒ์
๋๋ค.
* ์ถ๊ตฌ๋ ๊ธ๋ก๋ฒํ ์คํฌ์ธ ์
๋๋ค. ๋ง์ ์ง์ญ์์๋ ์ฆ๊ฐ์ ์ธ ์ฌ์์ ๊ตฌํํ๋ ๋ฐ ํ์ํ ๊ธฐ์ ์ ์ ๊ทผํ ์ ์์ต๋๋ค.
* ์ถ๊ตฌ๋ ๋น ๋ฅธ ํ
ํฌ์ ๊ฒฝ๊ธฐ๋ก, ์ค๋จํ ๊ธฐํ๊ฐ ๊ฑฐ์ ์์ต๋๋ค. ์ฆ๊ฐ์ ์ธ ์ฌ์์ ๋ถํ์ํ๊ฒ ๊ฒฝ๊ธฐ๋ฅผ ๋๋ฆฌ๊ฒ ๋ง๋ค ๊ฒ์
๋๋ค.
2008๋
, FIFA ํ์ฅ์ธ ์ ํ ๋ธ๋ํฐ๋ ๋ค์๊ณผ ๊ฐ์ด ๋งํ์ต๋๋ค:
"์๋ ๊ทธ๋๋ก ๋๊ณ [์ถ๊ตฌ]๋ฅผ ์ค๋ฅ์ ํจ๊ป ๋์. ๋ฐฉ์ก์ฌ๋ค์ [์ฌํ์ด] ๋ง์๋์ง ํ๋ ธ๋์ง๋ฅผ ๋งํ ๊ถ๋ฆฌ๊ฐ ... |
If we should encrypt the message rather than the method of transfer, why do we care about wifi security? Is this just security theatre? | Network encryption protects against different set of threats than application layer encryption like TLS.
In particular, network encryption like Wifi encryption are primarily designed to protect from a local attacker from being able to watch network patterns (by recording who you're making connections with, and discover... | ๋ฉ์์ง๋ฅผ ์ ์ก ๋ฐฉ๋ฒ์ด ์๋ ์ํธํํด์ผ ํ๋ค๋ฉด, ์ ์ฐ๋ฆฌ๋ ์์ดํ์ด ๋ณด์์ ์ ๊ฒฝ์ ์จ์ผ ํ ๊น์? ์ด๊ฒ์ ๋จ์ํ ๋ณด์ ์ผ์ ๋ถ๊ณผํ๊ฐ์? | ๋คํธ์ํฌ ์ํธํ๋ TLS์ ๊ฐ์ ์ ํ๋ฆฌ์ผ์ด์
๊ณ์ธต ์ํธํ์๋ ๋ค๋ฅธ ์ข
๋ฅ์ ์ํ์ผ๋ก๋ถํฐ ๋ณดํธํฉ๋๋ค. ํนํ, Wi-Fi ์ํธํ์ ๊ฐ์ ๋คํธ์ํฌ ์ํธํ๋ ์ฃผ๋ก ๋ก์ปฌ ๊ณต๊ฒฉ์๊ฐ ๋คํธ์ํฌ ํจํด์ ๊ฐ์(์ฐ๊ฒฐํ๋ ์ฌ๋์ ๊ธฐ๋กํ๊ณ ๋ก์ปฌ ๋คํธ์ํฌ์ ์๋ ์ฅ์น๋ฅผ ๋ฐ๊ฒฌํ๋ ๋ฐฉ์)ํ๊ฑฐ๋ ARP/DNS์ ๊ฐ์ ์ ์์ค ๋ฉ์์ง๋ฅผ ๊ด์ฐฐํ๊ฑฐ๋ ๋ณ์กฐํ๋ ๊ฒ์ ๋ฐฉ์งํ๊ณ , ๋คํธ์ํฌ์ ์์ด์๋ ์ ๋๋ ์ฅ์น๋ก๋ถํฐ์ ๋คํธ์ํฌ ๋ฐฉ์ก์ ๋ณดํธํ๋ฉฐ ๋ณ์กฐ๋ ์ ํ์ ์ธ ๊ฐ์ญ์ผ๋ก๋ถํฐ ๋ฐฉ์ดํ๊ธฐ ์ํด ์ค๊ณ๋์์ต๋๋ค.
TLS๋ ์ ์์ค TCP/IP ํจํท์ ๋ณดํธํ์ง ์๊ธฐ ๋๋ฌธ์ ์ฐ๊ฒฐํ๋ ๊ธฐ๊ธฐ์ IP ์ฃผ์์ ๊ฐ์ ์ ๋ณด๋ฅผ ์ ์ถ์ํค... |
Applying filter in scipy.signal: Use lfilter or filtfilt? |
* ```filtfilt``` is zero-phase filtering, which doesn't shift the signal as it filters. Since the phase is zero at all frequencies, it is also linear-phase. Filtering backwards in time requires you to predict the future, so it can't be used in "online" real-life applications, only for offline processing of recording... | scipy.signal์์ ํํฐ ์ ์ฉํ๊ธฐ: lfilter๋ฅผ ์ฌ์ฉํ ๊น์, filtfilt๋ฅผ ์ฌ์ฉํ ๊น์? | * ```filtfilt```๋ ์ ๋ก ์์ ํํฐ๋ง์ผ๋ก, ํํฐ๋งํ ๋ ์ ํธ๋ฅผ ์ด๋์ํค์ง ์์ต๋๋ค. ๋ชจ๋ ์ฃผํ์์์ ์์์ด ์ ๋ก์ด๋ฏ๋ก ์ ํ ์์์ด๊ธฐ๋ ํฉ๋๋ค. ์๊ฐ์ ์ญ๋ฐฉํฅ์ผ๋ก ํํฐ๋งํ๋ ๊ฒ์ ๋ฏธ๋๋ฅผ ์์ธกํด์ผ ํ๋ฏ๋ก "์จ๋ผ์ธ" ์ค์ ์์ฉ ํ๋ก๊ทธ๋จ์์๋ ์ฌ์ฉํ ์ ์๊ณ , ์ ํธ ๋
น์์ ์คํ๋ผ์ธ ์ฒ๋ฆฌ์๋ง ์ฌ์ฉ๋ฉ๋๋ค.
* ```lfilter```๋ ์ธ๊ณผ์ ์ ๋ฐฉ ํํฐ๋ง๋ง์ ์ํํ๋ฉฐ, ์ค์ ์ ์ ํํฐ์ ์ ์ฌํฉ๋๋ค. ์ ๋ก ์์์ผ ์ ์์ต๋๋ค. ์ ํ ์์(๋์นญ FIR)์ด ๋ ์๋ ์์ง๋ง, ๋ณดํต ๊ทธ๋ ์ง ์์ต๋๋ค. ์ผ๋ฐ์ ์ผ๋ก ์๋ก ๋ค๋ฅธ ์ฃผํ์์์ ์๋ก ๋ค๋ฅธ ์์ ์ง์ฐ์ ์ถ๊ฐํฉ๋๋ค.
์์ ... |
What do different people in the department expect from a postdoc?
By different people I mean the advisor, graduate students and PhD students.
I know it mainly depends on the job description but there are few basic things that a postdoc must be expected to do. How aggressive (proactive) must one be? This question is imp... | You'll very quickly learn that being an academic involves more than just writing research papers. Your time as a postdoc is when you can start learning about these other aspects, while building your own profile.
A postdoc needs to do the following:
* Build a publication record. This will involve both what you are paid... | ๊ฐ ๋ถ์์ ๋ค์ํ ์ฌ๋๋ค์ด ํฌ๋ฅ์๊ฒ ๋ฌด์์ ๊ธฐ๋ํ๋๊ฐ? ์ฌ๊ธฐ์ ๋ค์ํ ์ฌ๋๋ค์ ์ง๋๊ต์, ๋ํ์์, ๋ฐ์ฌ ๊ณผ์ ํ์๋ค์ ์๋ฏธํ๋ค. ์ฃผ๋ก ์ง๋ฌด ์ค๋ช
์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๊ฒ ์ง๋ง, ํฌ๋ฅ์ด ๋ฐ๋์ ์ํํด์ผ ํ ๋ช ๊ฐ์ง ๊ธฐ๋ณธ์ ์ธ ์ฌํญ์ด ์๋ค. ์ผ๋ง๋ ์ ๊ทน์ ์ด์ด์ผ ํ ๊น? ์ด ์ง๋ฌธ์ ํฌ๋ฅ์ด ์ง๋๊ต์์ ์ง์๋ฅผ ๊ธฐ๋ค๋ฆด ์ ์๊ธฐ ๋๋ฌธ์ ์ค์ํ๋ค. ์คํ๋ ค ํฌ๋ฅ์ ํ๋ก์ ํธ๋ฅผ ์์ ์ ๋ ๋ค๋ฅธ ๋ฐ์ฌ ์ฐ๊ตฌ๋ก ์ผ์์ผ ํ๋ฉฐ, ์์ ์ด ๋ฌด์์ ํ๊ณ ์ด๋ป๊ฒ ์งํํ๊ณ ์๋์ง์ ๋ํด ์ง๋๊ต์์๊ฒ ์์ ํ ์ฑ
์์ ์ ธ์ผ ํ๋ค. ์์ ๋ด์ฉ์ ์ ์๊ฐ์ด๋ค. ์ ์ง๋ฌธ์ ๋ค์๊ณผ ๊ฐ์ ํ์ ์ง๋ฌธ์ผ๋ก ๋๋ ์ ์๋ค:
* ๊ต์๋... | ํ์๋ก์์ ์ถ์ ๋จ์ํ ์ฐ๊ตฌ ๋
ผ๋ฌธ์ ์ฐ๋ ๊ฒ ์ด์์ด๋ผ๋ ๊ฒ์ ๋น์ ์ ๋งค์ฐ ๋น ๋ฅด๊ฒ ๊นจ๋ซ๊ฒ ๋ ๊ฒ์
๋๋ค. ํฌ์คํธ๋ฅ์ผ๋ก์์ ์๊ฐ์ ์ด๋ฌํ ๋ค๋ฅธ ์ธก๋ฉด์ ๋ฐฐ์ฐ๊ณ ์์ ์ ํ๋กํ์ ๊ตฌ์ถํ ์ ์๋ ๊ธฐํ์
๋๋ค. ํฌ์คํธ๋ฅ์ ๋ค์๊ณผ ๊ฐ์ ์ผ์ ํด์ผ ํฉ๋๋ค:
* ์ถํ ๊ธฐ๋ก์ ์์์ผ ํฉ๋๋ค. ์ด๋ ๋น์ ์ด ๊ธ์ฌ๋ฅผ ๋ฐ๋ ์ผ๊ณผ ๋น์ ์ ์ฐ๊ตฌ ๋ถ์ผ ๋ชจ๋๋ฅผ ํฌํจํฉ๋๋ค.
* ํ์ ์ง๋์ ์ฐธ์ฌํด์ผ ํฉ๋๋ค. ์คํ์ค์ ๋ฐ์ฌ ๊ณผ์ ํ์๋ค์ ๋์์ฃผ๊ณ , ์์ฌ ํ์๋ค์ ์ง๋ํ๋ ๋ฐ ์ฐธ์ฌํ์ธ์.
* ์๊ธ ์กฐ๋ฌ์ ์ฐธ์ฌํด์ผ ํฉ๋๋ค. ์ด๋ ๊ณ ์ฉ์ฃผ๋ฅผ ๋๊ฑฐ๋ (์ด์์ ์ผ๋ก๋) ์์ ์ ์๊ธ์ ํ๋ณดํ๋ ๋ฐฉ์์ผ ์ ์์ต๋๋ค.
*... |
Can someone explain to me what the ```contentInset``` property in a ```UIScrollView``` instance is used for? And maybe provide an example? | While jball's answer is an excellent description of content insets, it doesn't answer the question of when to use it. I'll borrow from his diagrams:
``` _|โ_cW_โ_|_โ_
| |
---------------
|content| โ
โ |content| contentInset.top
cH |content|
โ |content| contentInset.bottom
|content| โ
---------------
... | ```UIScrollView``` ์ธ์คํด์ค์์ ```contentInset``` ์์ฑ์ด ๋ฌด์์ ์ฌ์ฉ๋๋์ง ์ค๋ช
ํด ์ฃผ์ค ์ ์๋์? ๊ทธ๋ฆฌ๊ณ ์์ ๋ฅผ ์ ๊ณตํด ์ฃผ์๋ฉด ์ข๊ฒ ์ต๋๋ค. | jball์ ๋ต๋ณ์ ์ฝํ
์ธ ์ธ์
์ ๋ํ ํ๋ฅญํ ์ค๋ช
์ด์ง๋ง, ์ธ์ ์ฌ์ฉํด์ผ ํ๋์ง์ ๋ํ ์ง๋ฌธ์๋ ๋ตํ์ง ์์ต๋๋ค. ๊ทธ์ ๋ํ๋ฅผ ๋น๋ฆฌ๊ฒ ์ต๋๋ค:
``` _|โ_cW_โ_|_โ_
| |
---------------
|content| โ
โ |content| contentInset.top
cH |content|
โ |content| contentInset.bottom
|content| โ
---------------
|content|
-------------โ-
```
์ด๋ ๊ฒ ํ๋ฉด ์ป๋ ๊ฒ์ด์ง๋ง, ์คํฌ๋กคํ ๋๋ง ์ ์ฉ์ฑ์ด ๋๋ฌ๋ฉ๋๋ค:
``... |
How is arc defined in TikZ? | ```\draw (x,y) arc (start:stop:radius);``` draws an arc
* with radius ```radius```
* starts from ```(x,y)```
* with center ```(x-r*cos(start), y-r*sin(start))``` and
* ends at ```(x-r*cos(start)+r*cos(stop), y-r*sin(start)+r*sin(stop))```.
For example,
``` \draw[red] (0,0) arc (30:60:3);
```
draws an arc
* of radius... | TikZ์์ ํธ๋ ์ด๋ป๊ฒ ์ ์๋๋์? | ```(x,y)์์ ๋ฐ์ง๋ฆ์ด ```radius```์ธ ํธ๋ฅผ ๊ทธ๋ฆฝ๋๋ค.
* ํธ์ ๋ฐ์ง๋ฆ์ ```radius```
* ์์์ ์ ```(x,y)```
* ์ค์ฌ์ ```(x-r*cos(start), y-r*sin(start))```์ด๊ณ
* ๋์ ์ ```(x-r*cos(start)+r*cos(stop), y-r*sin(start)+r*sin(stop))```์
๋๋ค.
์๋ฅผ ๋ค์ด,
``` \draw[red] (0,0) arc (30:60:3);
```
๋ ๋ค์๊ณผ ๊ฐ์ ํธ๋ฅผ ๊ทธ๋ฆฝ๋๋ค.
* ๋ฐ์ง๋ฆ์ ```3```
* ์์์ ์ ```(0,0)```
* ์ค์ฌ์ ```(0-3*cos... |
How to connect mysql workbench to running mysql inside docker? | By default after deployment MySQL has following connection restrictions:
```mysql> select host, user from mysql.user;
+-----------+---------------+
| host | user |
+-----------+---------------+
| localhost | healthchecker |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | root ... | ๋์ปค ์์์ ์คํ ์ค์ธ MySQL์ MySQL ์ํฌ๋ฒค์น๋ฅผ ์ฐ๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? | ๋ฐฐํฌ ํ ๊ธฐ๋ณธ์ ์ผ๋ก MySQL์๋ ๋ค์๊ณผ ๊ฐ์ ์ฐ๊ฒฐ ์ ํ์ด ์์ต๋๋ค:
```mysql> select host, user from mysql.user;
+-----------+---------------+
| host | user |
+-----------+---------------+
| localhost | healthchecker |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | root |
+-----------+-------------... |
Can meat spoil outside the fridge if it's baked into bread as a filling? | There are two differences between your buns and a tin can.
First, your buns were heated to a core temperature of under 100ยฐC. Yes, your oven was probably set way higher, but the water content in your filling prevents it from getting hotter than boiling water. Commercial canning is done in the vicinity of 120-130ยฐC, whi... | ๋นต ์์ ์์ฌ๋ฃ๋ก ๋ฃ์ด์ ๊ตฌ์ด ๊ณ ๊ธฐ๋ ๋์ฅ๊ณ ๋ฐ์์ ์ํ ์ ์๋์? | ๋น์ ์ ๋นต๊ณผ ์ฒ ์บ ์ฌ์ด์๋ ๋ ๊ฐ์ง ์ฐจ์ด๊ฐ ์์ต๋๋ค. ์ฒซ์งธ, ๋น์ ์ ๋นต์ ์ค์ฌ ์จ๋๊ฐ 100ยฐC ์ดํ๋ก ๊ฐ์ด๋์์ต๋๋ค. ๋ง์์, ์๋ง๋ ์ค๋ธ ์จ๋๊ฐ ํจ์ฌ ๋ ๋๊ฒ ์ค์ ๋์๊ฒ ์ง๋ง, ์์ฌ๋ฃ์ ์๋ถ ํจ๋ ๋๋ฌธ์ ๋๋ ๋ฌผ๋ณด๋ค ๋ ๋จ๊ฑฐ์์ง์ง ์์ต๋๋ค. ์์
์ ์ธ ํต์กฐ๋ฆผ์ 120-130ยฐC ๊ทผ์ฒ์์ ์ด๋ฃจ์ด์ง๋๋ฐ, ์ด๋ ํต์ด ์๋ ฅ ์๋์์ ์กฐ๋ฆฌ๋๊ธฐ ๋๋ฌธ์
๋๋ค. ๊ทธ๋์ ํต์กฐ๋ฆผ๊ณผ ๋ฌ๋ฆฌ ๋๋ถ๋ถ์ ๋ณ์๊ท ์ ํ๊ดด๋์์ง๋ง, ๋ฐ๋์ ๋ชจ๋ ๊ฒ์ด ์ ๊ฑฐ๋ ๊ฒ์ ์๋๋๋ค. ์ธ์ฒด ์๋น๋ฅผ ์ํด์๋ ๋จ์ ์๋ ๋ณ์๊ท ์ด ๋ค์ ์๋ ์ ์๋ ์๊ฐ-์จ๋ ์กฐํฉ์ ๋ฐ์ง ์๋ ํ ๊ด์ฐฎ์ต๋๋ค. ๋์งธ, ๋นต ๋ฐ์ฃฝ์ ๋ฐ๋๊ฐ... |
I'm wondering how the XML Schema specification handles these cases:
```
```
No maxOccurs given -> Is this the cardinality [1..1]?
```
```
I suppose this is simply invalid?
```
```
Is this the cardinality [0..2] or [1..2]?
Is there an "official" definition on how the XML Schema spec handles these cases? | New, expanded answer to an old, commonly asked question...
Default Values
* Occurrence constraints ```minOccurs``` and ```maxOccurs``` default to ```1```.
Common Cases Explained
```
```
means ```A``` is required and must appear exactly once.
```
```
means ```A``` is optional and may appear at most once.
```
```
m... | XML ์คํค๋ง ์ฌ์์ด ์ด๋ฌํ ๊ฒฝ์ฐ๋ฅผ ์ด๋ป๊ฒ ์ฒ๋ฆฌํ๋์ง ๊ถ๊ธํฉ๋๋ค:
```
```
์ต๋ ๋ฐ์ ์๊ฐ ์ฃผ์ด์ง์ง ์์ผ๋ฉด -> ์ด๋ ๊ธฐ์ [1..1]์ธ๊ฐ์?
```
```
์ด๊ฒ์ ๋จ์ํ ์ ํจํ์ง ์๋ค๊ณ ์๊ฐํ๋์?
```
```
์ด๋ ๊ธฐ์ [0..2]์ธ๊ฐ์, ์๋๋ฉด [1..2]์ธ๊ฐ์?
XML ์คํค๋ง ์ฌ์์ด ์ด๋ฌํ ๊ฒฝ์ฐ๋ฅผ ์ฒ๋ฆฌํ๋ ๋ฐฉ๋ฒ์ ๋ํ "๊ณต์์ ์ธ" ์ ์๊ฐ ์๋์? | ์๋กญ๊ณ ํ์ฅ๋ ๋ต๋ณ, ์ค๋ ์ ๋ถํฐ ์์ฃผ ๋ฌป๋ ์ง๋ฌธ์ ๋ํ...
๊ธฐ๋ณธ๊ฐ
* ๋ฐ์ ์ ์ฝ ์กฐ๊ฑด ```minOccurs```์ ```maxOccurs```๋ ๊ธฐ๋ณธ์ ์ผ๋ก ```1```๋ก ์ค์ ๋ฉ๋๋ค.
์ผ๋ฐ์ ์ธ ๊ฒฝ์ฐ ์ค๋ช
```
```
๋ ```A```๊ฐ ํ์์ด๋ฉฐ ์ ํํ ํ ๋ฒ ๋ํ๋์ผ ํจ์ ์๋ฏธํฉ๋๋ค.
```
```
๋ ```A```๊ฐ ์ ํ ์ฌํญ์ด๋ฉฐ ์ต๋ ํ ๋ฒ ๋ํ๋ ์ ์์์ ์๋ฏธํฉ๋๋ค.
```
```
๋ ```A```๊ฐ ํ์์ด๋ฉฐ ๋ฌด์ ํ์ผ๋ก ๋ฐ๋ณต๋ ์ ์์์ ์๋ฏธํฉ๋๋ค.
```
```
๋ ```A```๊ฐ ์ ํ ์ฌํญ์ด๋ฉฐ ๋ฌด์ ํ์ผ๋ก ๋ฐ๋ณต๋ ์ ์์์ ์๋ฏธํฉ๋๋ค.
... |
Were there any flying dinosaurs? | Birds are both flying dinosaurs and flying reptiles. Yes, that's potentially confusing.
To understand the apparent contradiction, you have to understand how modern classification of organisms works (phylogenetic systematics). Under the old (Linnean) classification system, Reptilia (reptiles) was an order and Aves (bir... | ๋ ์๋ค๋๋ ๊ณต๋ฃก์ด ์์๋์? | ์๋ ๋นํ ๊ณต๋ฃก์ด์ ๋นํ ํ์ถฉ๋ฅ์
๋๋ค. ๋ค, ๊ทธ๊ฑด ํผ๋์ค๋ฌ์ธ ์ ์์ต๋๋ค.
์ด๋ฌํ ๊ฒ์ผ๋ก ๋ณด์ด๋ ๋ชจ์์ ์ดํดํ๋ ค๋ฉด ํ๋์ ์๋ฌผ ๋ถ๋ฅ ์ฒด๊ณ(๊ณํต ๋ฐ์ ๋ถ๋ฅํ)๊ฐ ์ด๋ป๊ฒ ์๋ํ๋์ง ์ดํดํด์ผ ํฉ๋๋ค. ์(๋ฆฐ๋ค์) ๋ถ๋ฅ ์ฒด๊ณ์์๋ ํ์ถฉ๋ฅ(Reptilia)๋ ํ ๋ถ๋ฅ๊ตฐ์ด์๊ณ , ์(Aves)๋ ๋ณ๋์ ๋ถ๋ฅ๊ตฐ์ด์์ต๋๋ค. ๋ฆฐ๋ค์ ์์คํ
์ ์์ ํ ๋์ฒดํ ๊ณํต ๋ฐ์ ๋ถ๋ฅํ์ ๋ชจ๋ ์๋ฌผ์ ๋จ์ผ ๊ณํต๊ตฐ(ํด๋ ์ด๋)์ ์ค์ฒฉ๋ ์งํฉ์ผ๋ก ์ํธ ์ฐ๊ด๋ ๊ฒ์ผ๋ก ๋ด
๋๋ค. ์ด๋ ๋ชจ๋ ์๋ฌผ์ด ๊ฑฐ๋ํ ์ ์์ ์ํ๊ณ , ๊ทธ ์์์ ์ ์ ๋ ์์ ์๋ค์ด ๋ ๊ตฌ์ฒด์ ์ธ ๊ทธ๋ฃน์ผ๋ก ๋ถ๋ฅ๋๋ ๋ฒ ์ธ ๋ค์ด์ด๊ทธ๋จ ์ธํธ์ ... |
Say, a table ```car``` has one-to-one relationship to tables ```electric_car```, ```gas_car```, and ```hybrid_car```. If a ```car``` is ```electric_car```, it can no longer appear in ```gas_car``` or a ```hybrid_car```, etc.
Is it a bad practice to have several mutually exclusive one-to-one relationships in database d... | The different types of cars are an instance of a general problem that surfaces over and over again in data modeling. It is called "generalization/specialization" in ER modeling, and "superclass/subclass" in object modeling.
An object modeler uses the inheritance features built into the object model to solve the prob... | ํ
์ด๋ธ ```car```๋ ํ
์ด๋ธ ```electric_car```, ```gas_car```, ```hybrid_car```์ ์ผ๋์ผ ๊ด๊ณ๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค. ๋ง์ฝ ```car```๊ฐ ```electric_car```๋ผ๋ฉด, ๊ทธ๊ฒ์ ๋ ์ด์ ```gas_car```๋ ```hybrid_car``` ๋ฑ์์ ๋ํ๋ ์ ์์ต๋๋ค. ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ค๊ณ์์ ์ฌ๋ฌ ์ํธ ๋ฐฐํ์ ์ธ ์ผ๋์ผ ๊ด๊ณ๋ฅผ ๊ฐ๋ ๊ฒ์ด ๋์ ๊ดํ์ธ๊ฐ์? | ์ฐจ์ ๋ค์ํ ์ ํ์ ๋ฐ์ดํฐ ๋ชจ๋ธ๋ง์์ ๋ฐ๋ณต์ ์ผ๋ก ๋ํ๋๋ ์ผ๋ฐ์ ์ธ ๋ฌธ์ ์ ์ฌ๋ก์
๋๋ค. ER ๋ชจ๋ธ๋ง์์๋ "์ผ๋ฐํ/ํน์ํ"๋ผ๊ณ ๋ถ๋ฆฌ๋ฉฐ, ๊ฐ์ฒด ๋ชจ๋ธ๋ง์์๋ "์ํผํด๋์ค/์๋ธํด๋์ค"๋ผ๊ณ ํฉ๋๋ค. ๊ฐ์ฒด ๋ชจ๋ธ๋ฌ๋ ๊ฐ์ฒด ๋ชจ๋ธ์ ๋ด์ฅ๋ ์์ ๊ธฐ๋ฅ์ ์ฌ์ฉํ์ฌ ์ด ๋ฌธ์ ๋ฅผ ์ฝ๊ฒ ํด๊ฒฐํฉ๋๋ค. ์๋ธํด๋์ค๋ ๋จ์ํ ์ํผํด๋์ค๋ฅผ ํ์ฅํฉ๋๋ค.
๊ด๊ณํ ๋ชจ๋ธ๋ฌ๋ ํ
์ด๋ธ์ ์ด๋ป๊ฒ ์ค๊ณํด์ผ ์์์ผ๋ก ์ป์ ์ ์๋ ์ด์ ์ ๋ชจ๋ฐฉํ ์ ์์์ง๋ฅผ ๊ณ ๋ฏผํ๊ฒ ๋ฉ๋๋ค. ๊ฐ์ฅ ๊ฐ๋จํ ๊ธฐ๋ฒ์ ๋จ์ผ ํ
์ด๋ธ ์์์
๋๋ค. ๋ชจ๋ ์ ํ์ ์๋์ฐจ์ ๋ํ ๋ฐ์ดํฐ๊ฐ ์๋์ฐจ๋ฅผ ์ํ ๋จ์ผ ํ
์ด๋ธ๋ก ๊ทธ๋ฃนํ๋ฉ๋๋ค. car_type์ด๋ผ๋... |
I see a low use of Mathematica in Kaggle competitions. Why would one use the Wolfram Language versus R, Python, or Julia for machine learning? Besides prettier plots and the Manipulate function, do we have something that is useful for ML that other languages are lacking? | Mathematica doesn't have the depth of algorithm support that is present in R or Python. Julia has much more limited algorithm support but does exhibit a good turn of speed.
The few algorithms that Mathematica does support are not particularly well exposed for the type of tweaking needed to win Kaggle competitions.
Math... | Kaggle ๋ํ์์ Mathematica์ ์ฌ์ฉ์ด ์ ์ ๊ฒ์ ๋ณด์์ต๋๋ค. ๋จธ์ ๋ฌ๋์ ์ํด Wolfram Language๋ฅผ R, Python ๋๋ Julia ๋์ ์ฌ์ฉํ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? ๋ ์์ ๊ทธ๋ํ์ Manipulate ํจ์ ์ธ์, ๋ค๋ฅธ ์ธ์ด๋ค์ด ๋ถ์กฑํ ๋จธ์ ๋ฌ๋์ ์ ์ฉํ ๊ธฐ๋ฅ์ด ์์๊น์? | Mathematica๋ R์ด๋ Python์์ ์ ๊ณต๋๋ ๊น์ด ์๋ ์๊ณ ๋ฆฌ์ฆ ์ง์์ด ๋ถ์กฑํฉ๋๋ค. Julia๋ ์๊ณ ๋ฆฌ์ฆ ์ง์์ด ํจ์ฌ ์ ํ์ ์ด์ง๋ง ์๋ ๋ฉด์์ ์ข์ ์ฑ๋ฅ์ ๋ณด์
๋๋ค. Mathematica๊ฐ ์ง์ํ๋ ๋ช ๊ฐ์ง ์๊ณ ๋ฆฌ์ฆ์ Kaggle ๋ํ์์ ์น๋ฆฌํ๊ธฐ ์ํด ํ์ํ ์กฐ์ ์ ๋ํด ํน๋ณํ ์ ๋
ธ์ถ๋์ด ์์ง ์์ต๋๋ค. Mathematica ๋ฒ์ 10 ๊ธฐ์ค์ผ๋ก ์ง์ํ๋ ๋ถ๋ฅ๊ธฐ๋ "๋ก์ง์คํฑ ํ๊ท", "๋ง๋ฅด์ฝํ", "๋์ด๋ธ ๋ฒ ์ด์ฆ", "์ต๊ทผ์ ์ด์", "์ ๊ฒฝ๋ง", "๋๋ค ํฌ๋ ์คํธ", "์ํฌํธ ๋ฒกํฐ ๋จธ์ "์
๋๋ค. ํ๋์ ์์๋ธ ๋ฐฉ๋ฒ์ธ ๋๋ค ํฌ๋ ์คํธ๋ฅผ ์ ๊ณตํ์ง๋ง, ๋ฐฐ๊น
์ด๋ ์... |
I'm using wp_nav_menu and am trying to create custom output for the sub-level drop downs. I came across the "items_wrap" argument but there's really not much information as to what it is, how it works, and what kind of things can be done with it.
What exactly is "%1$s" and "%2$s"? (Can anyone explain it in layman's... | The parameter ```'items_wrap'``` for ```wp_nav_menu()``` defaults to:
```'%3$s'
```
This a a template that is parsed with ```sprintf()```:
```$nav_menu .= sprintf(
$args->items_wrap
, esc_attr( $wrap_id ) // %1$s
, esc_attr( $wrap_class ) // %2$s
, $items // %3$s
);
```
The numbered place... | wp_nav_menu๋ฅผ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ ํ์ ๋๋กญ๋ค์ด์ ๋ํ ์ฌ์ฉ์ ์ ์ ์ถ๋ ฅ์ ๋ง๋ค๋ ค๊ณ ํ๊ณ ์์ต๋๋ค. "items_wrap" ์ธ์๋ฅผ ๋ฐ๊ฒฌํ์ง๋ง ๊ทธ๊ฒ์ด ๋ฌด์์ธ์ง, ์ด๋ป๊ฒ ์๋ํ๋์ง, ์ด๋ค ์์
์ ํ ์ ์๋์ง์ ๋ํ ์ ๋ณด๊ฐ ๋ณ๋ก ์์ต๋๋ค.
"%1$s"์ "%2$s"๋ ์ ํํ ๋ฌด์์ธ๊ฐ์? (๋๊ตฌ๋ ์ง ์ฝ๊ฒ ์ค๋ช
ํด ์ค ์ ์๋์?) | ```wp_nav_menu()```์ ํ๋ผ๋ฏธํฐ ```'items_wrap'```์ ๊ธฐ๋ณธ๊ฐ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
```'%3$s'
```
์ด๊ฒ์ ```sprintf()```๋ก ํ์ฑ๋๋ ํ
ํ๋ฆฟ์
๋๋ค:
```$nav_menu .= sprintf(
$args->items_wrap
, esc_attr( $wrap_id ) // %1$s
, esc_attr( $wrap_class ) // %2$s
, $items // %3$s
);
```
๋ฒํธ๊ฐ ๋งค๊ฒจ์ง ํ๋ ์ด์คํ๋์ธ ```%1$s```, ```%2$s```, ```%3$s`... |
I've noticed that people on YouTube and even on TV would sometimes say things like "I used to take lots of coke a few years ago" or "I used to smoke weed daily until this and that" or "Yea, I smoke weed every once in a while," or "I used to pirate games a lot when I was a bit younger" or "I used pirated Windows and Pho... | Unless the Youtube Video shows them committing a crime, then no, they couldn't be arrested and tried for a crime. Them saying it, not under oath, is just hearsay that has no evidentiary value unless there is already other evidence they have committed a crime. In that case, its an admission. But there must be other, ei... | ์ฌ๋๋ค์ด ์ ํ๋ธ๋ TV์์ "๋ช ๋
์ ์๋ ์ฝ์นด์ธ์ ๋ง์ด ํ์ด์" ๋๋ "์ด๋ฐ์ ๋ฐ ์ด์ ๋ก ๋งค์ผ ๋๋ง์ด๋ฅผ ํผ์ ์ด์" ๋๋ "๊ฐ๋ ๋๋ง์ด๋ฅผ ํผ์์" ๋๋ "์ด๋ ธ์ ๋ ๊ฒ์์ ๋ง์ด ํด์ ํ์ผ๋ก ํ์ด์" ๋๋ "์ง์ฅ์ ๊ตฌํ ๋๊น์ง ํด์ ํ ์๋์ฐ์ ํฌํ ์ต์ ์ผ์ด์" ๊ฐ์ ๋ง์ ํ๋ ๊ฑธ ๋ดค์ด์. ๊ธฐ๋ณธ์ ์ผ๋ก ๊ทธ๋ค์ ๋ฒ์ฃ๋ฅผ ๊ณต์ ์ผ๋ก ๊ณ ๋ฐฑํ๊ณ ์๋๋ฐ, ์๋ฌด๋ ๊ทธ๋ค์ ์ถ์ ํ์ง ์์๊น์? ๊ทธ๋ค์ ์ด๋ฏธ ๊ณ ๋ฐฑํ์ผ๋, ๊ธฐ์ ์ ์ผ๋ก๋ ์ฌํ๋ง ํ๋ฉด ๋๋ ๊ฑฐ์์์. ์ฌ๋๋ค์ด ์ด๋ป๊ฒ ๋ฒ์ฃ ํ๋์ ๊ณต๊ฐ์ ์ผ๋ก ์ธ์ ํ๊ณ ๋ ๋ณดํต ์ฒดํฌ๋์ง ์์ ์ ์๋ ๊ฑธ๊น์? | ์ ํ๋ธ ์์์ด ๊ทธ๋ค์ด ๋ฒ์ฃ๋ฅผ ์ ์ง๋ฅด๋ ๋ชจ์ต์ ๋ณด์ฌ์ฃผ์ง ์๋๋ค๋ฉด, ๊ทธ๋ค์ ๋ฒ์ฃ๋ก ์ฒดํฌ๋๊ฑฐ๋ ๊ธฐ์๋ ์ ์์ต๋๋ค. ๊ทธ๋ค์ด ๋งน์ธํ์ง ์๊ณ ๋งํ๋ ๊ฒ์ ๊ทธ์ ์ฆ๊ฑฐ ๊ฐ์น๊ฐ ์๋ ์ ์ธ์ผ ๋ฟ์ด๋ฉฐ, ๊ทธ๋ค์ด ๋ฒ์ฃ๋ฅผ ์ ์ง๋ ๋ค๋ ๋ค๋ฅธ ์ฆ๊ฑฐ๊ฐ ์์ด์ผ๋ง ์๋ฏธ๊ฐ ์์ต๋๋ค. ๊ทธ๋ฐ ๊ฒฝ์ฐ์๋ ์๋ฐฑ์ด ๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ๋ฒ์ฃ์ ๋ํ ๋ค๋ฅธ ๊ฐ์ ์ ์ด๊ฑฐ๋ ์ค์ ๋ฌผ๋ฆฌ์ ์ฆ๊ฑฐ๊ฐ ์์ด์ผ ํฉ๋๋ค.
๊ณผ๊ฑฐ์ ์์ฃผ๋ ๋ฒ์ฃ๊ฐ ์๋๋๋ค. ๋ง์ฝ ์์ง๋, ๋ง์ฝ ์์งํ๊ณ ์๋ค๊ฐ ์ ๋ฐ๋๋ค๋ฉด ๋ฒ์ฃ์
๋๋ค. ๊ทธ๋ฌ๋ "๋ด๊ฐ ์ทจํ์๋ค"๋ผ๊ณ ๋งํ๋ ๊ฒ์ ๋ฒ์ฃ๊ฐ ์๋๋๋ค.
์ฌ๋๋ค์ ๊ฒฝ์ฐฐ์์ ๋ค์ด๊ฐ์ ์ด์ธ์ ์๋ฐฑํ๊ธฐ๋ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์ฆ๊ฑฐ๊ฐ... |
Did two dissenting Supreme Court justices agree that Trump was "absolutely immune" to the Manhattan DA's subpoena? | If you are interested in the gory details, please see the full decision in Trump v. Vance. The first half of the linked document contains the Court's majority opinion and the concurring opinion of Justices Kavanaugh and Gorsuch, followed by the separate dissenting opinions of Justices Thomas and Alito.
Based on a quick... | ๋ ๋ช
์ ๋ฐ๋ ์๊ฒฌ์ ๊ฐ์ง ๋๋ฒ๊ด๋ค์ด ํธ๋ผํ๊ฐ ๋งจํดํผ ์ง๋ฐฉ๊ฒ์ฌ์ ์ํ์ฅ์ ๋ํด "์ ๋ ๋ฉด์ฑ
"์ด๋ผ๋ ๋ฐ ๋์ํ๋์? | ์์ธํ ์ธ๋ถ ์ฌํญ์ ๊ด์ฌ์ด ์์ผ์๋ค๋ฉด, ํธ๋ผํ ๋ ๋ฐด์ค ์ฌ๊ฑด์ ์ ์ฒด ํ๊ฒฐ์ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค. ๋งํฌ๋ ๋ฌธ์์ ์ ๋ฐ๋ถ์๋ ๋ฒ์์ ๋ค์ ์๊ฒฌ๊ณผ ์นด๋ฐ๋
ธ ๋ฐ ๊ณ ์์น ๋๋ฒ๊ด์ ๋์ ์๊ฒฌ์ด ํฌํจ๋์ด ์์ผ๋ฉฐ, ์ด์ด์ ํ ๋ง์ค ๋ฐ ์๋ฆฌํ ๋๋ฒ๊ด์ ๋ณ๋์ ๋ฐ๋ ์๊ฒฌ์ด ๋์ต๋๋ค.
๋น ๋ฅด๊ฒ ์ฝ์ด๋ณธ ๊ฒฐ๊ณผ, ํ ๋ง์ค ๋๋ฒ๊ด์ ํ์ง ๋ํต๋ น์ด "์ํ์ฅ ๋ฐ๋ถ์ ๋ํ ์ ๋ ๋ฉด์ฑ
๊ถ์ ๊ฐ์ง์ง ์๋๋ค"๋ ์ผ๋ฐ ๋ฒ์์ ์๊ฒฌ์ ๋์ํ๋ ๊ฒ์ผ๋ก ๋ณด์
๋๋ค. ํ ๋ง์ค๋ ๋ํต๋ น์ด "์ํ์ฅ์ ์งํ์ ๋ํด ๊ตฌ์ ๋ฅผ ๋ฐ์ ์๊ฒฉ์ด ์์ ์ ์๋ค"๊ณ ์ฃผ์ฅํ๋ฉฐ ๋ฐ๋ํฉ๋๋ค. ๊ทธ๋ (๋ํต๋ น๊ณผ ๋์ํ์ฌ) ์ด ์ฌ๊ฑด์ด ๋ฌดํจํ๋์ด ํ๊ธ ... |
Just curious, given how heavily from Tolkien D&D drew, and the fact that games like Wizardry used Hobbits, is there a good design reason why Gygax and company used Halflings (a term that also appears in Tolkien) vice Hobbits as the term for our little friends? | Halflings were originally called hobbits prior to a legal challenge.
According to Gary Gygax himself, it was due to a legal claim on "hobbit" by a company who purchased the merchandising rights on Tolkien's works in 1976:
TSR was served with papers threatening damages to the tune of half a mil by the Saul Za... | ๊ทธ๋ฅ ๊ถ๊ธํ๋ฐ, D&D๊ฐ ํจํจ์๊ฒ์ ์ผ๋ง๋ ๋ง์ ์ํฅ์ ๋ฐ์๋์ง์ ์์๋๋ฆฌ ๊ฐ์ ๊ฒ์์ด ํธ๋น์ ์ฌ์ฉํ๋ ์ฌ์ค์ ๊ณ ๋ คํ ๋, ๊ฐ์ด์ ์ค์ ๊ทธ์ ๋๋ฃ๋ค์ด ์ฐ๋ฆฌ ์์ ์น๊ตฌ๋ค์ ์ํด 'ํธ๋น' ๋์ 'ํํ๋ง'์ด๋ผ๋ ์ฉ์ด๋ฅผ ์ฌ์ฉํ ์ข์ ๋์์ธ ์ด์ ๊ฐ ์์๊น์? | ํํ๋ง์ ์๋ ๋ฒ์ ๋์ ์ด์ ์ ํธ๋น์ด๋ผ๊ณ ๋ถ๋ ธ์ต๋๋ค. ๊ฐ๋น ๊ฐ์ด์์ค ์์ ์ ๋ฐ๋ฅด๋ฉด, ์ด๋ 1976๋
์ ํจํจ์ ์ํ์ ๋ํ ๋จธ์ฒ๋ค์ด์ง ๊ถ๋ฆฌ๋ฅผ ๊ตฌ๋งคํ ํ์ฌ๊ฐ "ํธ๋น"์ ๋ํ ๋ฒ์ ์ฃผ์ฅ ๋๋ฌธ์ด์์ต๋๋ค.
TSR์ ํจํจ ์ฌ๋จ์ ๋์ ํ์ฌ ์๋ ๋จธ์ฒ๋ค์ด์ง์ ์ฌ์ธ ์์ธ (Saul Zantes) ๋ถ์๋ก๋ถํฐ 50๋ง ๋ฌ๋ฌ์ ๋ฌํ๋ ์ํด๋ฐฐ์์ ์ํํ๋ ์์ก ์๋ฅ๋ฅผ ๋ฐ์์ต๋๋ค. ์ฃผ์ ๋ฐ๋ ์ด์ ๋ ์ฐ๋ฆฌ๊ฐ ์ถํ ์ค์ด๋ ๋ณด๋ ๊ฒ์ '๋ค์ฏ ๊ตฐ๋์ ์ ํฌ' ๋๋ฌธ์ด์์ต๋๋ค. ๊ทธ ๊ฒ์์ ์ ์๋ ์ ์๊ถ์ด ๋ง๋ฃ๋ ํ ์ถํ๋์๊ณ ๊ฐฑ์ ์ด ์ด๋ฃจ์ด์ง๊ธฐ ์ ์ ์ถํ๋์๊ธฐ ๋๋ฌธ์ ์ด ์ํ์ด ํ ๋น๋๋ค๊ณ ์ฃผ์ฅํ๋ ๋ณํธ์ฌ์... |
My USB drive used to be originally 8GB when I bought it.
I'm trying to reformatted in Windows 7 by right clicking on the drive and selecting ```Format...```. But the capacity only shows 250MB.
Is there something I can do to get the original size back? Maybe it got partitioned in a weird way?
The flash drive is a SanD... | The command line procedure is not simple, but it is the most likely thing to work.
When re-formatting the "drive" you're actually only formatting a partition on the drive. You need to use the diskpart utility to remove the partitions and create 1 single partition covering the full volume.
```diskpart``` can be a bit d... | ๋ด USB ๋๋ผ์ด๋ธ๋ ์ ๊ฐ ์์ ๋ ์๋ 8GB์์ต๋๋ค. ์ง๊ธ Windows 7์์ ๋๋ผ์ด๋ธ๋ฅผ ์ค๋ฅธ์ชฝ ํด๋ฆญํ๊ณ ```ํฌ๋งท...```์ ์ ํํ์ฌ ํฌ๋งทํ๋ ค๊ณ ํ๋๋ฐ, ์ฉ๋์ด 250MB๋ฐ์ ํ์๋์ง ์์ต๋๋ค. ์๋ ํฌ๊ธฐ๋ก ๋๋๋ฆฌ๋ ๋ฐฉ๋ฒ์ด ์์๊น์? ํน์ ์ด์ํ๊ฒ ํํฐ์
์ด ๋๋์์๊น์? ์ด ํ๋์ ๋๋ผ์ด๋ธ๋ SanDisk Cruzer Micro 8GB์
๋๋ค. | ๋ช
๋ น์ค ์ ์ฐจ๋ ๊ฐ๋จํ์ง ์์ง๋ง, ๊ฐ์ฅ ํจ๊ณผ์ ์ผ ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค. "๋๋ผ์ด๋ธ"๋ฅผ ์ฌํฌ๋งทํ ๋, ์ค์ ๋ก๋ ๋๋ผ์ด๋ธ์ ํํฐ์
๋ง ํฌ๋งทํ๋ ๊ฒ์
๋๋ค. diskpart ์ ํธ๋ฆฌํฐ๋ฅผ ์ฌ์ฉํ์ฌ ํํฐ์
์ ์ ๊ฑฐํ๊ณ ์ ์ฒด ๋ณผ๋ฅจ์ ํฌํจํ๋ ํ๋์ ๋จ์ผ ํํฐ์
์ ์์ฑํด์ผ ํฉ๋๋ค. ```diskpart```๋ ์ฝ๊ฐ ์ํํ ์ ์์ต๋๋ค. ์๋ชป๋ ๋๋ผ์ด๋ธ๋ ํํฐ์
์ ์ ํํ๋ฉด ๋งค์ฐ, ๋งค์ฐ ์ค์ํ ๋ฐ์ดํฐ๋ ํํฐ์
์ ์ ๊ฑฐํ ์ ์๊ณ , ์ด๋ก ์ธํด ๊ธฐ๊ธฐ์ ๋ชจ๋ ๋ฐ์ดํฐ๋ฅผ ์์ ์ ์์ต๋๋ค. ๊ทน๋๋ก ์กฐ์ฌํด์ ์งํํ์ธ์! ๊ด๋ฆฌ์๋ก ๋ช
๋ น ํ๋กฌํํธ๋ฅผ ์ฝ๋๋ค (์์ ๋ฉ๋ด๋ฅผ ์ด๊ณ ```cmd```๋ฅผ ์
๋ ฅํ ํ Ent... |
I am a Tor developer. I understand that the .onion address is a public key of sorts, but not much more than that (I can vaguely guess, though). When nobody knows the IP of the .onion address, how do requests reach it? Are they bounced between nodes in the P2P network till someone decrypts it with the corresponding priv... | Up to at least October 2013 the hidden services work like this:
* A hidden service calculates its key pair (private and public key, asymmetric encryption).
* Then the hidden service picks some relays as its introduction points.
* It tells its public key to those introduction points over Tor circuits.
* After that the ... | ์ ๋ Tor ๊ฐ๋ฐ์์
๋๋ค. .onion ์ฃผ์๊ฐ ์ผ์ข
์ ๊ณต๊ฐ ํค๋ผ๋ ๊ฒ์ ์ดํดํ์ง๋ง ๊ทธ ์ด์์ ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค(์ด๋ ดํ์ด ์ถ์ธกํ ์๋ ์์ง๋ง์). ์๋ฌด๋ .onion ์ฃผ์์ IP๋ฅผ ๋ชจ๋ฅผ ๋, ์์ฒญ์ ์ด๋ป๊ฒ ๊ทธ ์ฃผ์์ ๋๋ฌํ๋์? P2P ๋คํธ์ํฌ์ ๋
ธ๋ ์ฌ์ด์์ ์ ๋ฌ๋๋ค๊ฐ ๋๊ตฐ๊ฐ ํด๋น ๊ฐ์ธ ํค๋ก ๋ณตํธํํ ๋๊น์ง ๊ณ์ ์ด๋ํ๋์? | ์ต์ํ 2013๋
10์๊น์ง ์จ๊ฒจ์ง ์๋น์ค๋ ๋ค์๊ณผ ๊ฐ์ด ์๋ํฉ๋๋ค:
* ์จ๊ฒจ์ง ์๋น์ค๋ ํค ์(๊ฐ์ธ ํค์ ๊ณต๊ฐ ํค, ๋น๋์นญ ์ํธํ)์ ๊ณ์ฐํฉ๋๋ค.
* ๊ทธ๋ฐ ๋ค์ ์จ๊ฒจ์ง ์๋น์ค๋ ๋ช ๊ฐ์ ์ค๊ณ ์๋ฒ๋ฅผ ์๊ฐ ์ง์ ์ผ๋ก ์ ํํฉ๋๋ค.
* Tor ํ๋ก๋ฅผ ํตํด ์๊ฐ ์ง์ ์ ๊ณต๊ฐ ํค๋ฅผ ์ ๋ฌํฉ๋๋ค.
* ๊ทธ ํ ์จ๊ฒจ์ง ์๋น์ค๋ ๊ณต๊ฐ ํค์ ์๊ฐ ์ง์ ์ ๋ณด๋ฅผ ํฌํจํ๋ ์จ๊ฒจ์ง ์๋น์ค ์ค๋ช
์๋ฅผ ์์ฑํฉ๋๋ค.
* ์จ๊ฒจ์ง ์๋น์ค๋ ๊ฐ์ธ ํค๋ก ์จ๊ฒจ์ง ์๋น์ค ์ค๋ช
์์ ์๋ช
ํฉ๋๋ค.
* ๊ทธ๋ฐ ๋ค์ ์จ๊ฒจ์ง ์๋น์ค ์ค๋ช
์๋ฅผ ๋ถ์ฐ ํด์ ํ
์ด๋ธ(DHT)์ ์
๋ก๋ํฉ๋๋ค.
* ํด๋ผ์ด์ธํธ๋ ์จ๊ฒจ์ง ์๋น์ค์ .on... |
I have been offered a PhD position by an inexperienced professor in a great institution in Europe. Despite the fact that the institution is very strong in my area, since the position was offered by this particular professor, I would have to commit myself to working with him for my thesis. This professor is young, and r... | An inexperienced advisor can hurt your career by being relatively unknown. This means they may not have access to the same network and that their recommendation letters do not carry the same weight. Inexperience in supervision may, for example, lead to unrealistic expectations. Or an inexperienced advisor can be very g... | ์ ๋ฝ์ ํ๋ฅญํ ๊ธฐ๊ด์์ ๊ฒฝํ์ด ๋ถ์กฑํ ๊ต์์๊ฒ ๋ฐ์ฌ ๊ณผ์ ์ ์์ ๋ฐ์์ต๋๋ค. ๊ทธ ๊ธฐ๊ด์ด ์ ๋ถ์ผ์์ ๋งค์ฐ ๊ฐ๋ ฅํ๊ธด ํ์ง๋ง, ์ด ํน์ ๊ต์์๊ฒ ์ ์๋ฐ์๊ธฐ ๋๋ฌธ์ ์ ๋ ๊ทธ์ ์ง๋ ์๋์์ ์ ๋
ผ๋ฌธ์ ์ํด ์ผํด์ผ ํฉ๋๋ค. ์ด ๊ต์๋ ์ ๊ณ ์๋์ ์ผ๋ก ๊ฒฝํ์ด ๋ถ์กฑํ์ง๋ง, ๊ทธ๊ฐ ํ๋ ์ผ์ ํฅ๋ฏธ๋ฅผ ๋๋ผ๋ฉฐ, ์ฐ๋ฆฌ๋ ์ ์ด์ธ๋ฆฌ๋ ๊ฒ ๊ฐ์ต๋๋ค.
์ ์ง๋ฌธ์, ๊ฒฝํ์ด ๋ถ์กฑํ ์ง๋๊ต์๊ฐ ์ ๊ณผํ์๋ก์์ ์ฑ์ฅ์ด๋ ๊ฒฝ๋ ฅ ์ ๋ฐ์ ๋ถ์ ์ ์ธ ์ํฅ์ ๋ฏธ์น ๊น์? ๋ฐ์ฌ ๊ณผ์ ๋์ ๋ค๋ฅธ ๋ ์ ๋ช
ํ ๊ต์๋๋ค๊ณผ ๋ถ๊ฐ์ ์ธ ์ฐ๊ตฌ๋ฅผ ํ ์๊ฐ์ด ์์๊น์, ์๋๋ฉด ๋ณดํต ํ ๊ฐ์ง ์ฐ๊ตฌ ํ๋ก์ ํธ์ ์ง์คํ๊ฒ ๋๋์? | ๊ฒฝํ์ด ๋ถ์กฑํ ์ง๋๊ต์๋ ์๋์ ์ผ๋ก ์๋ ค์ง์ง ์์๊ธฐ ๋๋ฌธ์ ๋น์ ์ ๊ฒฝ๋ ฅ์ ํด๋ฅผ ๋ผ์น ์ ์์ต๋๋ค. ์ด๋ ๊ทธ๋ค์ด ๋์ผํ ๋คํธ์ํฌ์ ์ ๊ทผํ์ง ๋ชปํ ์๋ ์๊ณ , ๊ทธ๋ค์ ์ถ์ฒ์๊ฐ ๊ฐ์ ๋ฌด๊ฒ๋ฅผ ๊ฐ์ง ์์ ์ ์์์ ์๋ฏธํฉ๋๋ค. ๊ฐ๋
๊ฒฝํ ๋ถ์กฑ์ ์๋ฅผ ๋ค์ด ๋นํ์ค์ ์ธ ๊ธฐ๋๋ฅผ ์ด๋ํ ์ ์์ต๋๋ค. ๋๋ ๊ฒฝํ์ด ๋ถ์กฑํ ์ง๋๊ต์๊ฐ ๋น์ ์ ๊ฒฝ๋ ฅ์ ๋งค์ฐ ๊ธ์ ์ ์ผ ์๋ ์์ต๋๋ค. ํจ๊ป ์์ฑํ ๋ฉ์ง ๋
ผ๋ฌธ์ผ๋ก ๋น ๋ฅด๊ฒ ์ด๋ฆ์ ์๋ฆฌ๋ฉฐ, ์ถ์ฒ์๋ฅผ ์ธ ๋ ๋ง์ ์ฌ๋๋ค์ ๊ธฐ์ต์ ์ ์ ํ๊ฒ ๋จ์ ์ ์์ต๋๋ค. ๊ทธ๋ค์ ๋น์ ๊ณผ ํจ๊ป ์์
ํ๋ ๋ฐ ๋ง์ ์๊ฐ์ ํ ์ ํ ์๋ ์์ต๋๋ค.
๊ฒฝํ์ด ํ๋ถํ ์ง๋๊ต์๋ ... |
Is there a phrase that means "too important" and "attracting too much attention"? | There is the term "overdominant":
From Collins dictionary:
>overdominant [adjective]
excessively dominant
To begin with, the design aspect is the most striking and arguably remains overdominant. [Times, Sunday Times (2010)]
Here is an example:
> [Steps must be taken to prevent any one] religious or ethnic group ... | "๋๋ฌด ์ค์ํ๋ค"์ "๋๋ฌด ๋ง์ ๊ด์ฌ์ ๋๋ค"๋ฅผ ์๋ฏธํ๋ ๊ตฌ์ ์ด ์๋์? | "๊ณผ๋ํ๊ฒ ์ฐ์ธํ"์ด๋ผ๋ ์ฉ์ด๊ฐ ์์ต๋๋ค:
์ฝ๋ฆฐ์ค ์ฌ์ ์์:
>๊ณผ๋ํ๊ฒ ์ฐ์ธํ [ํ์ฉ์ฌ]
์ง๋์น๊ฒ ์ง๋ฐฐ์ ์ธ
์ฐ์ , ๋์์ธ ์ธก๋ฉด์ด ๊ฐ์ฅ ๋์ ๋๋ฉฐ ๋
ผ๋์ ์ฌ์ง๊ฐ ์์ง๋ง ์ฌ์ ํ ๊ณผ๋ํ๊ฒ ์ฐ์ธํ ๊ฒ์ผ๋ก ๋จ์ ์์ต๋๋ค. [ํ์์ค, ์ ๋ฐ์ด ํ์์ค (2010)]
๋ค์์ ์์์
๋๋ค:
> [์ด๋ ํ] ์ข
๊ต์ ๋๋ ๋ฏผ์กฑ ์ง๋จ์ด ๊ณผ๋ํ๊ฒ ์ฐ์ธํด์ง๋ ๊ฒ์ ๋ฐฉ์งํ๊ธฐ ์ํ ์กฐ์น๊ฐ ํ์ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ์ฐ๋ฆฌ๋ 20์ธ๊ธฐ ๋ง์ ๋ถ๋ถ์ ๋ถํํ ์ญ์ฌ๊ฐ ๋ฐ๋ณต๋๋ ๊ฒ์ ๋ณด๊ฒ ๋ ๊ฒ์
๋๋ค...
์ ์ฌํ ์๋ฏธ๋ฅผ ๊ฐ์ง ๋ค๋ฅธ ๊ฐ๋ฅํ ์ฉ์ด๋ก๋ "์๋์ ์ธ", "๋์ ๋๋" ๋ฐ "์ฐ์ธํ"์ด ... |
This guy claims that Olympic powerlifters working in the 1-6 rep range can increase strength without increasing muscle size.
> Trained Olympic lifters, for example, were shown over a two-year period to have significant strength increases with barely noticeable increases in muscle mass (Hakkinen et al, 1988). I had a ... | Certainly there is a correlation between muscle mass and strength, but there is more to the story. Two reasons why muscle mass and strength may not be completely congruous are:
* Muscle fiber density
* Muscle utilization
Density:
Your muscles are composed of four different types of fibers (slow-twitch, and three form... | ์ด ์ฌ๋์ 1-6 ๋ฐ๋ณต ๋ฒ์์์ ํ๋ จํ๋ ์ฌ๋ฆผํฝ ์ญ๋ ์ ์๋ค์ด ๊ทผ์ก ํฌ๊ธฐ๋ฅผ ๋๋ฆฌ์ง ์๊ณ ๋ ํ์ ์ฆ๊ฐ์ํฌ ์ ์๋ค๊ณ ์ฃผ์ฅํฉ๋๋ค.
์๋ฅผ ๋ค์ด, ํ๋ จ๋ ์ฌ๋ฆผํฝ ์ ์๋ค์ 2๋
๋์ ๊ทผ์ก๋์ด ๊ฑฐ์ ๋์ ๋์ง ์๊ฒ ์ฆ๊ฐํ๋ ๋์ ์๋นํ ํ ์ฆ๊ฐ๋ฅผ ๋ณด์์ต๋๋ค (Hakkinen ์ธ, 1988). ์ ๋ AST์ Max-OT ์์น์ ์ฌ์ฉํ ๋ ์ ์ฌํ ๊ฒฝํ์ ํ์ต๋๋ค. ์ ํ์ ๋ฏธ์น ๋ฏ์ด ์ฆ๊ฐํ์ง๋ง ํฌ๊ธฐ๋ ๊ฑฐ์ ๋์ง ์์์ต๋๋ค. ๋ถ๋ช
ํ ๋ฎ์ ๋ณผ๋ฅจ๊ณผ ๋ฎ์ ์ธํธ(1-6 ๋ฐ๋ณต, 3์ธํธ ์ดํ)์ ์ ํต์ ์ธ ํ ํ๋ จ์ ์ต์ ์ ์ ๊ทผ ๋ฐฉ์์ด ์๋๋๋ค. ํ ํ๋ จ์ ๋น๋(hypertrophy)๋ฅผ ์ ๋ฐํ... | ํ์คํ ๊ทผ์ก๋๊ณผ ํ ์ฌ์ด์๋ ์๊ด๊ด๊ณ๊ฐ ์์ง๋ง, ์ด์ผ๊ธฐ์ ์ ๋ถ๋ ์๋๋๋ค. ๊ทผ์ก๋๊ณผ ํ์ด ์์ ํ ์ผ์นํ์ง ์์ ์ ์๋ ๋ ๊ฐ์ง ์ด์ ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
* ๊ทผ์ก ์ฌ์ ๋ฐ๋
* ๊ทผ์ก ํ์ฉ
๋ฐ๋:
๋น์ ์ ๊ทผ์ก์ ๋ค ๊ฐ์ง ๋ค๋ฅธ ์ ํ์ ์ฌ์ (๋๋ฆฐ ์์ถ ์ฌ์ ์ ์ธ ๊ฐ์ง ํํ์ ๋น ๋ฅธ ์์ถ ์ฌ์ )๋ก ๊ตฌ์ฑ๋์ด ์์ต๋๋ค. ์ด ์ฌ์ ๋ค์ ์ ์ฉ๋๋ ํ๊ณผ ํ๋ณต ์๊ฐ ๋ฉด์์ ์๋ก ๋ค๋ฅธ ํน์ฑ์ ๊ฐ์ง๊ณ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด, ๋๋ฆฐ ์์ถ ์ฌ์ ๋ ๋น ๋ฅด๊ฒ ํ๋ณต๋์ง๋ง, ๋น ๋ฅธ ์์ถ ์ฌ์ ์ ๋นํด ๋ฌถ์๋น ๊ทผ์ก ์ฌ์ ์๊ฐ ์ ์ด ํ์ด ๋ํฉ๋๋ค.
๊ธ๋ฆฌ์ฝ๊ฒ ํํ์ ์ถ๊ฐ์ ์ธ ๋ฌผ์ ๊ฐ์ ์์ ์ค์ ๊ทผ์ก์ผ๋ก๋ ๊ทผ... |
What are the major concerns about planting trees to create carbon offsets? | Here are some common concerns about using tree planting projects to create carbon offsets:
* The scheme actually has a net positive effect, both in the short and long-term/
How effective a tree planting scheme is in capturing and storing carbon dioxide, is for a large part determined by what happens to the trees after... | ๋๋ฌด๋ฅผ ์ฌ์ด ํ์ ์์๋ฅผ ๋ง๋๋ ๊ฒ์ ๋ํ ์ฃผ์ ์ฐ๋ ค ์ฌํญ์ ๋ฌด์์ธ๊ฐ์? | ๋ค์์ ํ์ ์์๋ฅผ ์ํด ๋๋ฌด ์ฌ๊ธฐ ํ๋ก์ ํธ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ๋ํ ์ผ๋ฐ์ ์ธ ์ฐ๋ ค ์ฌํญ์
๋๋ค:
* ์ด ๊ณํ์ ๋จ๊ธฐ ๋ฐ ์ฅ๊ธฐ์ ์ผ๋ก ์ค์ ๋ก ์ ๊ธ์ ์ ์ธ ํจ๊ณผ๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค.
๋๋ฌด ์ฌ๊ธฐ ๊ณํ์ด ์ด์ฐํํ์๋ฅผ ํฌ์งํ๊ณ ์ ์ฅํ๋ ๋ฐ ์ผ๋ง๋ ํจ๊ณผ์ ์ธ์ง๋ ๋๋ฌด๊ฐ ์ฌ์ด์ง ํ์ ์ด๋ป๊ฒ ๋๋์ง์ ํฌ๊ฒ ์ข์ฐ๋ฉ๋๋ค. ๋๋ฌด๊ฐ ์๋ผ๊ณ ๊ฑด์ถ์ ์ฌ์ฉ๋ ๋ชฉ์ฌ๋ก ์ํ๋ ๋, ํฌ์ง๋ ์ด์ฐํํ์๋ ์ค๋ซ๋์ ์ ์ฅ๋ฉ๋๋ค(๋ชฉ์ฌ๊ฐ ๋ถํด๋๊ฑฐ๋ ํ์์ง ๋๊น์ง). ๊ทธ๋ฌ๋ ์ํ ํ ์ฌ์๋ฆผ์ด ์ด๋ฃจ์ด์ง์ง ์์ผ๋ฉด ์ด๋ ์ผํ์ฑ ํจ๊ณผ์ ๊ทธ์นฉ๋๋ค. ๋ํ ๋ชฉ์ฌ๊ฐ ํ์์ง๊ฑฐ๋(์๋์ง๋ก ์ฌ์ฉ๋๊ฑฐ๋ ์ฐ๋ถ๋ก ์ธํ ๊ฒฝ์ฐ), ๋๋ฌด๊ฐ ๋น ๋ฅด๊ฒ... |
I am wondering how to generate uniformly distributed points on the surface of the 3-d unit sphere? Also after generating those points, what is the best way to visualize and check whether they are truly uniform on the surface $x^2+y^2+z^2=1$? | A standard method is to generate three standard normals and construct a unit vector from them. That is, when $X_i \sim N(0,1)$ and $\lambda^2 = X_1^2 + X_2^2 + X_3^2$, then $(X_1/\lambda, X_2/\lambda, X_3/\lambda)$ is uniformly distributed on the sphere. This method works well for $d$-dimensional spheres, too.
In 3D y... | 3์ฐจ์ ๋จ์ ๊ตฌ์ ํ๋ฉด์ ๊ท ์ผํ๊ฒ ๋ถํฌ๋ ์ ์ ์์ฑํ๋ ๋ฐฉ๋ฒ์ด ๊ถ๊ธํฉ๋๋ค. ๋ํ ์ด๋ฌํ ์ ๋ค์ ์์ฑํ ํ, ๊ทธ๊ฒ๋ค์ด ์ค์ ๋ก $x^2+y^2+z^2=1$์ ํ๋ฉด์์ ์ง์ ์ผ๋ก ๊ท ์ผํ์ง ์๊ฐํํ๊ณ ํ์ธํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? | ํ์ค ๋ฐฉ๋ฒ์ ์ธ ๊ฐ์ ํ์ค ์ ๊ท๋ถํฌ๋ฅผ ์์ฑํ๊ณ ์ด๋ค๋ก๋ถํฐ ๋จ์ ๋ฒกํฐ๋ฅผ ๊ตฌ์ฑํ๋ ๊ฒ์
๋๋ค. ์ฆ, $X_i \sim N(0,1)$์ด๊ณ $\lambda^2 = X_1^2 + X_2^2 + X_3^2$์ผ ๋, $(X_1/\lambda, X_2/\lambda, X_3/\lambda)$๋ ๊ตฌ์์ ๊ท ์ผํ๊ฒ ๋ถํฌํฉ๋๋ค. ์ด ๋ฐฉ๋ฒ์ $d$ ์ฐจ์ ๊ตฌ์๋ ์ ์๋ํฉ๋๋ค. 3D์์๋ ๊ฑฐ๋ถ ์ํ๋ง์ ์ฌ์ฉํ ์ ์์ต๋๋ค: $(X_1, X_2, X_3)$์ ๊ธธ์ด๊ฐ 1 ์ดํ๊ฐ ๋ ๋๊น์ง ๊ท ์ผ ๋ถํฌ $[-1,1]$์์ $X_i$๋ฅผ ๋ฝ๊ณ , ์ดํ ์์ ์ธ๊ธํ ๋ฐฉ๋ฒ์ฒ๋ผ ๋ฒกํฐ๋ฅผ ๋จ์ ๊ธธ์ด๋ก ์ ๊ทํํฉ๋๋ค.... |
In Shutter Island, at the end of the movie Teddy had a chat with Chuck, in that scene Teddy told to Chuck as,
Which would be worse: To live as a monster, or to die as a good man?
What's the implicit meaning of this dialogue? Who's the monster as Teddy mentioned?
And, who's a good man? | To Live as a Monster
If he accepts his guilt and becomes sane he will become the Monster. His delusions are his brains way of removing this guilt and hiding the fact that he ignored his family, did not act on his wife's mental illness, allowed her to murder their children and then murdered her. By accepting what the do... | ์ํฐ ์์ผ๋๋์ ๋ง์ง๋ง ์ฅ๋ฉด์์ ํ
๋๋ ์ฒ๊ณผ ๋ํ๋ฅผ ๋๋๋๋ค. ๊ทธ ์ฅ๋ฉด์์ ํ
๋๋ ์ฒ์๊ฒ ์ด๋ ๊ฒ ๋งํฉ๋๋ค.
"๋ ๋์ ๊ฒ์ ๋ฌด์์ผ๊น์: ๊ดด๋ฌผ๋ก ์ฌ๋ ๊ฒ, ์๋๋ฉด ์ข์ ์ฌ๋์ผ๋ก ์ฃฝ๋ ๊ฒ?"
์ด ๋ํ์ ์์์ ์ธ ์๋ฏธ๋ ๋ฌด์์ผ๊น์? ํ
๋๊ฐ ์ธ๊ธํ ๊ดด๋ฌผ์ ๋๊ตฌ์ธ๊ฐ์? ๊ทธ๋ฆฌ๊ณ ์ข์ ์ฌ๋์ ๋๊ตฌ์ธ๊ฐ์? | ๊ดด๋ฌผ๋ก ์ด์๊ฐ๊ธฐ
๊ทธ๊ฐ ์์ ์ ์ฃ์ฑ
๊ฐ์ ๋ฐ์๋ค์ด๊ณ ์ ์์ ์ธ ์ํ๊ฐ ๋๋ค๋ฉด ๊ทธ๋ ๊ดด๋ฌผ์ด ๋ ๊ฒ์ด๋ค. ๊ทธ์ ๋ง์์ ๊ทธ์ ๋๊ฐ ์ด ์ฃ์ฑ
๊ฐ์ ์์ ๊ณ ๊ฐ์กฑ์ ๋ฌด์ํ๋ ์ฌ์ค, ์๋ด์ ์ ์ ์งํ์ ๋ํด ํ๋ํ์ง ์์๋ ์ฌ์ค, ์๋ด๊ฐ ๊ทธ๋ค์ ์์ด๋ค์ ์ดํดํ๋๋ก ํ๋ฝํ๊ณ ๊ทธ๋
๋ฅผ ์ดํดํ๋ ์ฌ์ค์ ์จ๊ธฐ๊ธฐ ์ํ ๋ฐฉ๋ฒ์ด๋ค. ์์ฌ๋ค์ด ํ๋ ๋ง์ ๋ฐ์๋ค์์ผ๋ก์จ ๊ทธ๋ ๋์ฐํ ์ผ์ด ์ผ์ด๋๋ ๊ฒ์ ํ์ฉํ๊ณ ๋์ฐํ ์ผ์ ์ ์ง๋ ๋ค๋ ์ฌ์ค์ ์๊ณ ๊ณ์ ์ด์๊ฐ์ผ ํ ๊ฒ์ด๋ค. ์์ฌ๋ค์ ๊ทธ์๊ฒ ๋ก๋ณดํ ๋ฏธ ์์ด ์น๋ฃํ ์ ์๊ฒ ์ง๋ง ๊ทธ๋ ์์ ์ด ์ ์ง๋ฅธ ๋ฒ์ฃ๋ฅผ ์์ ํ ์ธ์ํ๊ฒ ๋ ๊ฒ์ด๋ค.
์ข์ ์ฌ๋์ผ๋ก ์ฃฝ๊ธฐ
๊ทธ์ ๋ง์... |
To set the minimal distance between flexbox items I'm using ```margin: 0 5px``` on ```.item``` and ```margin: 0 -5px``` on container. For me it seems like a hack, but I can't find any better way to do this.
```#box {
display: flex;
width: 100px;
margin: 0 -5px;
}
.item {
background: gray;
width: 50px;
hei... | This solution will work for all cases even if there are multiple rows or any number of elements. But the count of the section should be same you want 4 in first row and 3 is second row it won't work that way the space for the 4th content will be blank the container won't fill.
We are using ```display: grid;``` and its ... | ํ๋ ์ค๋ฐ์ค ์์ดํ
๊ฐ์ ์ต์ ๊ฑฐ๋ฆฌ๋ฅผ ์ค์ ํ๊ธฐ ์ํด์ ์ ๋ ```.item```์ ```margin: 0 5px```๋ฅผ ์ฌ์ฉํ๊ณ , ์ปจํ
์ด๋์๋ ```margin: 0 -5px```๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์ ์๊ฒ๋ ์ด๊ฒ์ด ํดํน์ฒ๋ผ ๋ณด์ด์ง๋ง, ๋ ์ข์ ๋ฐฉ๋ฒ์ ์ฐพ์ ์๊ฐ ์์ต๋๋ค.
```#box {
display: flex;
width: 100px;
margin: 0 -5px;
}
.item {
background: gray;
width: 50px;
height: 50px;
margin: 0 5px;
}``` | ์ด ์๋ฃจ์
์ ์ฌ๋ฌ ํ์ด๋ ์์์ ์๊ฐ ์ผ๋ง๋ ์ง ๋ชจ๋ ๊ฒฝ์ฐ์ ์๋ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์น์
์ ๊ฐ์๋ ๋์ผํด์ผ ํ๋ฉฐ, ์ฒซ ๋ฒ์งธ ํ์ 4๊ฐ, ๋ ๋ฒ์งธ ํ์ 3๊ฐ๋ฅผ ์ํ๋ค๋ฉด ๊ทธ๋ ๊ฒ๋ ์๋ํ์ง ์์ต๋๋ค. 4๋ฒ์งธ ์ฝํ
์ธ ์ ๊ณต๊ฐ์ ๋น์ด ์๊ฒ ๋๋ฉฐ, ์ปจํ
์ด๋๊ฐ ์ฑ์์ง์ง ์์ต๋๋ค. ์ฐ๋ฆฌ๋ ```display: grid;```์ ๊ทธ ์์ฑ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
```#box {
display: grid;
width: 100px;
grid-gap: 5px;
/* ์์ดํ
๊ฐ์ ๊ฐ๊ฒฉ */
grid-template-columns: repeat(4,1fr);
/* ์ด์ ์(4๊ฐ... |
Is there a Git for data? The key improvement I'd want is to Diff/Merge more intelligently. e.g. in CSV rather than line vs line comparison, it would do cell vs cell.
And ordering is usually not significant, e.g. rows in a CSV, whereas Git does care and presents the user with 'conflicts'. | Please note that ```git``` has two configuration commands:
```git config filter..clean
git config filter..smudge
```
The ```clean``` filter can be used e.g. to sort all records in a CSV file except the top row, thus making re-ordering irrelevant.
Quoting ```gitattributes(5)``` :
A filter driver consists of a clean com... | ๋ฐ์ดํฐ๋ฅผ ์ํ Git์ด ์์๊น์? ์ ๊ฐ ์ํ๋ ์ฃผ์ ๊ฐ์ ์ฌํญ์ ๋ ์ง๋ฅ์ ์ผ๋ก Diff/Mergeํ๋ ๊ฒ์
๋๋ค. ์๋ฅผ ๋ค์ด, CSV์์๋ ์ค ๋ ์ค ๋น๊ต๊ฐ ์๋๋ผ ์
๋ ์
๋น๊ต๋ฅผ ํ๋ค๋ฉด ์ข๊ฒ ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ณดํต ์์๋ ์ค์ํ์ง ์์๋ฐ, ์๋ฅผ ๋ค์ด CSV์ ํ์ฒ๋ผ์. ๋ฐ๋ฉด Git์ ์์๋ฅผ ์ค์ํ๊ฒ ์ฌ๊ธฐ๊ณ ์ฌ์ฉ์์๊ฒ '์ถฉ๋'์ ํ์ํฉ๋๋ค. | ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ ์ฐธ๊ณ ํ์๊ธฐ ๋ฐ๋๋๋ค. ```git```์๋ ๋ ๊ฐ์ง ๊ตฌ์ฑ ๋ช
๋ น์ด ์์ต๋๋ค:
```git config filter..clean
git config filter..smudge
```
```clean``` ํํฐ๋ ์๋ฅผ ๋ค์ด CSV ํ์ผ์ ์ฒซ ๋ฒ์งธ ํ์ ์ ์ธํ ๋ชจ๋ ๋ ์ฝ๋๋ฅผ ์ ๋ ฌํ๋ ๋ฐ ์ฌ์ฉ๋ ์ ์์ด, ์ฌ์ ๋ ฌ์ด ๋ฌด์๋ฏธํ๊ฒ ๋ง๋ญ๋๋ค.
```gitattributes(5)```์ ์ธ์ฉํ์๋ฉด:
ํํฐ ๋๋ผ์ด๋ฒ๋ clean ๋ช
๋ น๊ณผ smudge ๋ช
๋ น์ผ๋ก ๊ตฌ์ฑ๋๋ฉฐ, ๋ ์ค ํ๋๋ ์ง์ ํ์ง ์์๋ ๋ฉ๋๋ค. ์ฒดํฌ์์ ์ smudge ๋ช
๋ น์ด ์ง์ ๋๋ฉด, ํด๋น ๋ช
๋ น์ ํ์ค ... |
I have been puzzling over where to put the submit button, on the left or the right. In researching, I noticed that many sites put buttons on the bottom right in dialogue boxes, and on the bottom left in forms.
It makes sense: in a dialogue box it seems to denote finality, being in the endpoint of the window for leftโri... | Where to put the submit button should be decided in order to meet user expectations, it was best to put the button in the place that users expect to find it in the context of the form or dialogue they are using and with regard to the window size.
Forms tend to be left justified while the browser window can leave a ton ... | ์ ์ถ ๋ฒํผ์ ์ผ์ชฝ์ ๋์ง ์ค๋ฅธ์ชฝ์ ๋์ง ๊ณ ๋ฏผํ๊ณ ์์ต๋๋ค. ์กฐ์ฌํด๋ณด๋ ๋ง์ ์ฌ์ดํธ๋ค์ด ๋ํ ์์์์๋ ๋ฒํผ์ ์ค๋ฅธ์ชฝ ํ๋จ์, ์์์์๋ ์ผ์ชฝ ํ๋จ์ ๋ฐฐ์นํ๋ ๊ฒ์ ๋ณด์์ต๋๋ค. ์ด๋ ์ดํด๊ฐ ๋ฉ๋๋ค: ๋ํ ์์์์ ์ค๋ฅธ์ชฝ ํ๋จ์ ์ต์ข
๊ฒฐ์ ์ ๋ํ๋ด๋ ๊ฒ์ฒ๋ผ ๋ณด์ด๋ฉฐ, ์์์์๋ ์ฐฝ ํฌ๊ธฐ๊ฐ ์กฐ์ ๋ ๊ฒฝ์ฐ ์ค๋ฅธ์ชฝ ํ๋จ์ด ์์์ ๋๋จธ์ง ๋ถ๋ถ๊ณผ ๋ค๋ฅธ ์์น์ ์์ ์ ์์ต๋๋ค. ์ด๋ ๊ด์ต์ฒ๋ผ ๋ณด์ด์ง๋ง, ํ์ธ/์ทจ์ ๋ฒํผ์ ์ค๋ฅธ์ชฝ ์ ๋ ฌ์ ํด์ผ ํ ๊น์, ์๋๋ฉด ์ค์์ ์ ๋ ฌํด์ผ ํ ๊น์? ํ์ธ/์ทจ์ ๋ฒํผ์ ์ค๋ฅธ์ชฝ ์ ๋ ฌ์ ํด์ผ ํ ๊น์, ์๋๋ฉด ์ค์์ ์ ๋ ฌํด์ผ ํ ๊น์? | ์ ์ถ ๋ฒํผ์ ์์น๋ ์ฌ์ฉ์ ๊ธฐ๋๋ฅผ ์ถฉ์กฑํ๊ธฐ ์ํด ๊ฒฐ์ ๋์ด์ผ ํ๋ฉฐ, ์ฌ์ฉ์๊ฐ ์ฌ์ฉํ๋ ์์์ด๋ ๋ํ์ ๋งฅ๋ฝ๊ณผ ์ฐฝ ํฌ๊ธฐ์ ๋ฐ๋ผ ์ฌ์ฉ์๊ฐ ์์ํ๋ ๊ณณ์ ๋ฒํผ์ ๋๋ ๊ฒ์ด ๊ฐ์ฅ ์ข์ต๋๋ค. ์์์ ์ผ๋ฐ์ ์ผ๋ก ์ผ์ชฝ ์ ๋ ฌ์ด ๋๋ ๋ฐ๋ฉด, ๋ธ๋ผ์ฐ์ ์ฐฝ์ ๋ํ ๋ชจ๋ํฐ๋ฅผ ์ฑ์ฐ๊ธฐ ์ํด ๋ง์ ๋น ๊ณต๊ฐ์ ๋จ๊ธธ ์ ์์ต๋๋ค(ํนํ ์ ์ฒด ํ๋ฉด ๋ชจ๋์์). ์ฌ์ฉ์์ ์์ ์ ๊ฒฐ์ฝ ์ฐฝ์ ์ผ์ชฝ ๋ถ๋ถ์ ๋ฒ์ด๋์ง ์๊ธฐ ๋๋ฌธ์ ๋ฒํผ์ ์ผ์ชฝ ํ๋จ์ ๋ฐฐ์นํฉ๋๋ค. ์ด๋ ํ๋ ์ด๋ฆ์ด ํ๋ ์์ ์๋ ์์์ ํนํ ์ค์ํ๋ฉฐ, ๋๋ถ๋ถ์ ํ๋๋ ์์์ ์ผ์ชฝ์ ์ ๋ ฌ๋์ด ์์ต๋๋ค(์ด๋ฆ ์ค๋ฅธ์ชฝ์ ํ๋์๋ ๋ฐ๋๋ก).
์์ ๋ํ... |
Is it at all possible to update object's properties with ```setState```?
Something like:
```this.state = {
jasper: { name: 'jasper', age: 28 },
}
```
I have tried:
```this.setState({jasper.name: 'someOtherName'});
```
and this:
```this.setState({jasper: {name: 'someothername'}})
```
The first results in a syntax er... | There are multiple ways of doing this, since state update is a async operation, so to update the state object, we need to use updater function with ```setState```.
1- Simplest one:
First create a copy of ```jasper``` then do the changes in that:
```this.setState(prevState => {
let jasper = Object.assign({}, prevState... | ๊ฐ์ฒด์ ์์ฑ์ ```setState```๋ก ์
๋ฐ์ดํธํ๋ ๊ฒ์ด ์ ํ ๊ฐ๋ฅํ ๊น์? ์๋ฅผ ๋ค์ด:
```this.state = {
jasper: { name: 'jasper', age: 28 },
}
```
๋ค์๊ณผ ๊ฐ์ด ์๋ํด ๋ณด์์ต๋๋ค:
```this.setState({jasper.name: 'someOtherName'});
```
๊ทธ๋ฆฌ๊ณ ์ด ๋ฐฉ๋ฒ๋:
```this.setState({jasper: {name: 'someothername'}})
```
์ฒซ ๋ฒ์งธ๋ ๋ฌธ๋ฒ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ณ ๋ ๋ฒ์งธ๋ ์๋ฌด๋ฐ ๋ฐ์์ด ์์ต๋๋ค. ์์ด๋์ด๊ฐ ์์๊น์? | ์ฌ๋ฌ ๊ฐ์ง ๋ฐฉ๋ฒ์ผ๋ก ์ด๋ฅผ ์ํํ ์ ์์ต๋๋ค. ์ํ ์
๋ฐ์ดํธ๋ ๋น๋๊ธฐ ์์
์ด๋ฏ๋ก ์ํ ๊ฐ์ฒด๋ฅผ ์
๋ฐ์ดํธํ๋ ค๋ฉด `setState`์ ํจ๊ป ์
๋ฐ์ดํธ ํจ์ ์ฌ์ฉ์ด ํ์ํฉ๋๋ค.
1. ๊ฐ์ฅ ๊ฐ๋จํ ๋ฐฉ๋ฒ:
๋จผ์ `jasper`์ ๋ณต์ฌ๋ณธ์ ์์ฑํ ๋ค์ ๊ทธ ์์์ ๋ณ๊ฒฝ์ ์ํํฉ๋๋ค:
```javascript
this.setState(prevState => {
let jasper = Object.assign({}, prevState.jasper); // ์ํ ๋ณ์ jasper์ ๋ณต์ฌ๋ณธ ์์ฑ
jasper.name = 'someothername'; ... |
What is the difference between Non-Player Characters (NPCs) and bots in video games? | The key distinction is that a Bot represents an automated player; an NPC, by contrast, isn't playing the game at all.
In general, an NPC is a part of the game; a placed object which is designed by the creator and exists to interact with the player. Examples would include vendors, quest givers, or enemies. In some game... | ๋น๋์ค ๊ฒ์์์ ๋น์ ํ ์บ๋ฆญํฐ(NPC)์ ๋ด์ ์ฐจ์ด๋ ๋ฌด์์ธ๊ฐ์? | ์ฃผ์ ์ฐจ์ด์ ์ ๋ด์ด ์๋ํ๋ ํ๋ ์ด์ด๋ฅผ ๋ํ๋ด๋ ๋ฐ๋ฉด, NPC๋ ๊ฒ์์ ์ ํ ํ๋ ์ดํ์ง ์๋๋ค๋ ๊ฒ์
๋๋ค.
์ผ๋ฐ์ ์ผ๋ก NPC๋ ๊ฒ์์ ์ผ๋ถ๋ก, ์ ์์๊ฐ ์ค๊ณํ ๋ฐฐ์น๋ ๊ฐ์ฒด๋ก์ ํ๋ ์ด์ด์ ์ํธ์์ฉํ๊ธฐ ์ํด ์กด์ฌํฉ๋๋ค. ์๋ฅผ ๋ค์ด ์์ ์ฃผ์ธ, ํ์คํธ ์ ๊ณต์ ๋๋ ์ ๋ค์ด ์์ต๋๋ค. ์ผ๋ถ ๊ฒ์์์๋(ํนํ RPG) ์ด ์ฉ์ด๊ฐ ํ๋ ์ด์ด๊ฐ ์์ฑํ์ง ์์์ง๋ง ํ๋ ์ด์ด์ ํต์ ๋ฅผ ๋ฐ๋ ์บ๋ฆญํฐ๋ฅผ ์ง์นญํ๋ ๋ฐ์๋ ์ฌ์ฉ๋ฉ๋๋ค. ์ด๋ค์ ๋
ํนํ ์ฑ๊ฒฉ๊ณผ ๋ํ๋ฅผ ๊ฐ์ง๊ณ ์๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ผ๋ฉฐ, ๋ฐ๋ฉด "ํ๋ ์ด์ด ์บ๋ฆญํฐ"๋ ํ๋ ์ด์ด ์์ ์ ํ์ฅํ ๊ฒ์ผ๋ก ๊ฐ์ฃผ๋ฉ๋๋ค. ์๋ฅผ ๋ค์ด '๋งค์ค ์ดํํธ' ์๋ฆฌ์ฆ์ ... |
Is there anything like ```static class``` in java? What is the meaning of such a class. Do all the methods of the static class need to be ```static``` too? Is it required the other way round, that if a class contains all the static methods, shall the class be static too? What are static classes good for? | Java has static nested classes but it sounds like you're looking for a top-level static class. Java has no way of making a top-level class static but you can simulate a static class like this:
* Declare your class ```final``` - Prevents extension of the class since extending a static class makes no sense
* Make the co... | Java์์ ```static class```์ ๊ฐ์ ๊ฒ์ด ์๋์? ๊ทธ๋ฐ ํด๋์ค์ ์๋ฏธ๋ ๋ฌด์์ธ๊ฐ์? static ํด๋์ค์ ๋ชจ๋ ๋ฉ์๋๋ ```static```์ด์ด์ผ ํ๋์? ๋ฐ๋๋ก, ๋ชจ๋ ๋ฉ์๋๊ฐ static์ธ ํด๋์ค๋ ๋ฐ๋์ static์ด์ด์ผ ํ๋ ๊ฑด๊ฐ์? static ํด๋์ค๋ ์ด๋ค ์ฉ๋๋ก ์ฌ์ฉํ๋ ๊ฑด๊ฐ์? | ์๋ฐ๋ ์ ์ ์ค์ฒฉ ํด๋์ค๋ฅผ ์ง์ํ์ง๋ง, ๋น์ ์ด ์ฐพ๊ณ ์๋ ๊ฒ์ ์ต์์ ์ ์ ํด๋์ค์ธ ๊ฒ ๊ฐ์ต๋๋ค. ์๋ฐ์์๋ ์ต์์ ํด๋์ค๋ฅผ ์ ์ ์ผ๋ก ๋ง๋ค ์ ์๋ ๋ฐฉ๋ฒ์ด ์์ง๋ง, ๋ค์๊ณผ ๊ฐ์ด ์ ์ ํด๋์ค๋ฅผ ์๋ฎฌ๋ ์ด์
ํ ์ ์์ต๋๋ค:
* ํด๋์ค๋ฅผ ```final```๋ก ์ ์ธํ๊ธฐ - ์ ์ ํด๋์ค๋ฅผ ํ์ฅํ๋ ๊ฒ์ ์๋ฏธ๊ฐ ์์ผ๋ฏ๋ก ํด๋์ค์ ํ์ฅ์ ๋ฐฉ์งํฉ๋๋ค.
* ์์ฑ์๋ฅผ ```private```๋ก ๋ง๋ค๊ธฐ - ์ ์ ํด๋์ค๋ฅผ ์ธ์คํด์คํํ๋ ๊ฒ์ ์๋ฏธ๊ฐ ์์ผ๋ฏ๋ก ํด๋ผ์ด์ธํธ ์ฝ๋์ ์ํ ์ธ์คํด์คํ๋ฅผ ๋ฐฉ์งํฉ๋๋ค.
* ํด๋์ค์ ๋ชจ๋ ๋ฉค๋ฒ์ ํจ์๋ฅผ ```static```์ผ๋ก ๋ง๋ค๊ธฐ - ํด๋์ค๋ ์ธ์ค... |
The Episode IV-VI movies never mention the Emperor's name. In Episodes I-III, we can guess that Darth Sidious will be the emperor, but what about Chancellor Palpatine? If the audience didn't know that he was Sidious, the impact of the reveal would be far different than if they did.
But I did. In all the novels and comi... | Palpatine's name was first given in the prologue to Alan Dean Foster's novelization of Star Wars (it was credited to Lucas, but he didn't write it), which came out in November 1976, six months before the May 25, 1977 release of the actual film.
So Palpatine being the Emperor was literally known before the public ever s... | ์ํผ์๋ IV-VI ์ํ์์๋ ํฉ์ ์ ์ด๋ฆ์ ์ธ๊ธํ์ง ์์ต๋๋ค. ์ํผ์๋ I-III์์๋ ๋ค์ค ์๋์ด์ค๊ฐ ํฉ์ ์ผ ๊ฒ์ด๋ผ๋ ์ถ์ธก์ด ๊ฐ๋ฅํ์ง๋ง, ํฐํผํด ์ด๋ฆฌ๋ ์ด๋ป๊ฒ ๋ ๊น์? ๊ด๊ฐ์ด ๊ทธ๊ฐ ์๋์ด์ค๋ผ๋ ๊ฒ์ ์์ง ๋ชปํ๋ค๋ฉด, ๊ทธ ์ ์ฒด๊ฐ ๋๋ฌ๋ฌ์ ๋์ ์ถฉ๊ฒฉ์ ๋งค์ฐ ๋ฌ๋ผ์ก์ ๊ฒ์
๋๋ค. ํ์ง๋ง ์ ๋ ์๊ณ ์์์ต๋๋ค. "์ ๋ค์ด์ ๊ทํ" ์ดํ์ ๋์จ ๋ชจ๋ ์์ค๊ณผ ๋งํ์์ ํฉ์ ์ ์ด๋ฆ์ ๋ถ๋ช
ํ๊ฒ ์ธ๊ธ๋์์ต๋๋ค: ํฐํผํด. ๊ทธ๋์ ํ๋ก๋ก๊ทธ ์ํ๋ค์ ๋ณด์์ ๋, ์ ๋ ๋๋์ฒด ์ดํดํ ์ ์์์ต๋๋ค: ์ ๊ฐ ํฐํผํด์ด ์
๋น์ด๋ผ๋ ๊ฒ์ ์์์ผ ํ๋ ๊ฑด๊ฐ์? ์๋ง ์ํ ์ ์์๋ค์ ๋๋ถ๋ถ์ ๊ด๊ฐ์ด ํ์ฅ... | ํํํด์ ์ด๋ฆ์ 1976๋
11์์ ์ถ๊ฐ๋ ์จ๋ฐ ๋ ํฌ์คํฐ์ ใ์คํ์์ฆใ ์์คํ ํ๋กค๋ก๊ทธ์์ ์ฒ์ ์ธ๊ธ๋์์ต๋๋ค(์ด๊ฒ์ ๋ฃจ์นด์ค์๊ฒ ํฌ๋ ๋ง์ด ์ฃผ์ด์ก์ง๋ง, ์ค์ ๋ก ๊ทธ๊ฐ ์ด ๊ฒ์ ์๋๋๋ค). ์ด๋ 1977๋
5์ 25์ผ ์ค์ ์ํ๊ฐ ๊ฐ๋ด๋๊ธฐ ์ ๋ฌ ์ ์ ์ผ์
๋๋ค. ๋ฐ๋ผ์ ํํํด์ด ํฉ์ ๋ผ๋ ์ฌ์ค์ ๋์ค์ด ์คํ์์ฆ ์ํ๋ฅผ ๋ณด๊ธฐ ์ ์ ์ด๋ฏธ ์๋ ค์ง ๊ฒ์ด์์ต๋๋ค. ์ฌ์ค, ์ด๋ ์ฌ๋๋ค์ด ์คํ์์ฆ ์ฐ์ฃผ์ ๋ํด ์์๋ผ ์ ์๋ ๊ฐ์ฅ ์ด๊ธฐ์ ์ ๋ณด ์ค ํ๋์์ต๋๋ค.
์ํ์ ์์ ์ ํํํด์ด ๊ฒฐ๊ตญ ํฉ์ ๊ฐ ๋๋ค๋ ์ฌ์ค(ํน์ ๋ค์ค ์๋์ด์ค์๋ค๋ ๊ฒ)์ ์จ๊ธฐ๋ ๊ฒ์ด ์๋๋ผ, ๊ทธ๊ฐ ๋ชจ๋ ์ฌ๋์ ์... |
So, students in Gryffindor are supposed to represent bravery. How does Neville represent bravery, to the point in being accepted into the house. I've always thought of his strongest traits being things like loyalty, willingness to work hard, etc, and these things would tend to put him in Hufflepuff. | First of all, in the first 4 years, it isn't really shown that Neville is NOT brave - the only thing he's really afraid of is his Grandmother and maybe Snape during Potions. With good reason. :)
You may be confusing a lack of confidence/assertiveness with not being brave, but they are not the same (for a good in-univer... | ๊ทธ๋ ๋ค๋ฉด ๊ทธ๋ฆฌํ๋๋ฅด ํ์๋ค์ ์ฉ๊ธฐ๋ฅผ ์์งํ๋ ๊ฒ์ผ๋ก ์๋ ค์ ธ ์์ต๋๋ค. ๋ค๋น์ ์ด๋ค ๋ฐฉ์์ผ๋ก ์ฉ๊ธฐ๋ฅผ ๋ํ๋ด์ ๊ทธ ์ง์ ์์ฉ๋์์๊น์? ์ ๋ ํญ์ ๊ทธ์ ๊ฐ์ฅ ๊ฐํ ํน์ฑ์ด ์ถฉ์ฑ์ฌ, ์ด์ฌํ ์ผํ๋ ค๋ ์์ง ๊ฐ์ ๊ฒ์ด๋ผ๊ณ ์๊ฐํด์๊ณ , ์ด๋ฐ ๊ฒ๋ค์ ๊ทธ๋ฅผ ํํํธํ๋ก ์ด๋ ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค. | ์ฐ์ , ์ฒ์ 4๋
๋์ ๋ค๋น์ด ์ฉ๊ฐํ์ง ์๋ค๋ ๊ฒ์ ์ฌ์ค ๋ณด์ฌ์ง์ง ์์ต๋๋ค. ๊ทธ๊ฐ ์ง์ ์ผ๋ก ๋๋ ค์ํ๋ ๊ฒ์ ํ ๋จธ๋์ ์๋ง๋ ํฌ์
์์
์ค์ ์ค๋ค์ดํ๋ฟ์
๋๋ค. ์ถฉ๋ถํ ๊ทธ๋ด๋งํ ์ด์ ๊ฐ ์์ฃ . :) ์์ ๊ฐ์ด๋ ๋จํธํจ์ ๋ถ์กฑ์ ์ฉ๊ฐํ์ง ์์๊ณผ ํผ๋ํ ์ ์์ง๋ง, ์ด๋ ๋ค๋ฆ
๋๋ค (๋ฐ๋์ ์ข์ ์์๋ก ๋กํํธ ๊ต์๋ฅผ ์๊ฐํด ๋ณด์ธ์). ์ฒ์ 4๊ถ์์๋ ๊ทธ๊ฐ ์ํฌ๋ฅด๊ณ ๋ง๋ฒ์ ์ฌ๋ฅ์ ์์ง ๋ณด์ฌ์ฃผ์ง ์์ต๋๋ค.
5ํ๋
๋ถํฐ ๋ค๋น์ ๋ณํ๋ ๋ชจ์ต์ผ๋ก ๋ํ๋๊ณ , ๋ฐ๋ณต์ ์ผ๋ก ๊ทธ์ ์ฉ๊ธฐ์ ์ธ์ฐ๋ ค๋ ์์ง๋ฅผ ์ฆ๋ช
ํฉ๋๋ค. ์ฃผ์: ๊ทธ๋ 1ํ๋
๋ ์ฒ์์ผ๋ก ์ฉ๊ธฐ๋ฅผ ๋ณด์ฌ์ค๋๋ค (์์ธํ ๋ด์ฉ์ ์์คํ
์ ํ๋ฅญ... |
This claim was made popular by being said in the movie The Social Network. It exactly says:
> Did you know there are more people with genius IQs living in China than there are people of any kind living in the United States?
| This claim can actually be tested very easily. Others have done it, e.g. Brian Dickerson: The perils of repeating political nonsense and came to the conclusion that the claim was wrong.
You just need the chance a random person from a large group has a genius level IQ, then multiply it with the number of people in Chin... | ์ด ์ฃผ์ฅ์ ์ํ '์์
๋คํธ์ํฌ'์์ ์ธ๊ธ๋๋ฉด์ ์ ๋ช
ํด์ก์ต๋๋ค. ์ ํํ ์ด๋ ๊ฒ ๋งํฉ๋๋ค:
> ๋น์ ์ ์ค๊ตญ์ ์ฒ์ฌ IQ๋ฅผ ๊ฐ์ง ์ฌ๋์ด ๋ฏธ๊ตญ์ ์ฌ๋ ๋ชจ๋ ์ฌ๋๋ณด๋ค ๋ ๋ง๋ค๋ ๊ฒ์ ์๊ณ ์์๋์? | ์ด ์ฃผ์ฅ์ ์ค์ ๋ก ๋งค์ฐ ์ฝ๊ฒ ๊ฒ์ฆํ ์ ์์ต๋๋ค. ๋ค๋ฅธ ์ฌ๋๋ค์ด ์ด๋ฏธ ํด์์ต๋๋ค. ์๋ฅผ ๋ค์ด, ๋ธ๋ผ์ด์ธ ๋์ปค์จ์ "์ ์น์ ํํผ์๋ฆฌ๋ฅผ ๋ฐ๋ณตํ๋ ์ํ"์ด๋ผ๋ ์ ๋ชฉ์ ๊ธ์์ ์ด ์ฃผ์ฅ์ด ์๋ชป๋์๋ค๊ณ ๊ฒฐ๋ก ์ง์์ต๋๋ค.
์ฐ์ , ๋๊ท๋ชจ ์ง๋จ์์ ๋ฌด์์๋ก ์ ํ๋ ์ฌ๋์ด ์ฒ์ฌ ์์ค์ IQ๋ฅผ ๊ฐ์ง ํ๋ฅ ์ ์์๋ธ ๋ค์, ์ด๋ฅผ ์ค๊ตญ ์ธ๊ตฌ ์์ ๊ณฑํ๊ณ , ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ๋ฏธ๊ตญ ์ธ๊ตฌ ์์ ๋น๊ตํ๋ฉด ๋ฉ๋๋ค. IQ๋ ๊ฐ์ฐ์์ ๋ถํฌ๋ฅผ ๋ฐ๋ฅด๋ฉฐ, ํ๊ท ์ ์ ์์ 100์ด๊ณ ํ์คํธ์ฐจ(SD)๋ 15(์จํด์ฌ๋ฌ ๊ธฐ์ค) ๋๋ 16(์คํ ํฌ๋-๋น๋ค ๊ธฐ์ค)์
๋๋ค. ํน์ IQ์ ํฌ๊ท์ฑ์ ์ฝ๊ฒ ๊ณ์ฐํ ์ ์์ผ๋ฉฐ, IQ ๋น๊ต ์ฌ... |
I am trying to get my program to print out ```"banana"``` from the dictionary. What would be the simplest way to do this?
This is my dictionary:
```prices = {
"banana" : 4,
"apple" : 2,
"orange" : 1.5,
"pear" : 3
}
``` | As of Python 3.7, insertion order is maintained, so you don't need an ```OrderedDict``` here. You can use the below approaches with a normal ```dict```
Changed in version 3.7: Dictionary order is guaranteed to be insertion order. This behavior was an implementation detail of CPython from 3.6.
source
Python 3.6 and e... | ์ ๋ ์ ํ๋ก๊ทธ๋จ์ด ์ฌ์ ์์ ```"banana"```๋ฅผ ์ถ๋ ฅํ๋๋ก ํ๋ ค๊ณ ํฉ๋๋ค. ์ด๋ฅผ ๊ฐ์ฅ ๊ฐ๋จํ๊ฒ ํ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์?
์ด๊ฒ์ด ์ ์ ์ฌ์ ์
๋๋ค:
```prices = {
"banana" : 4,
"apple" : 2,
"orange" : 1.5,
"pear" : 3
}
``` | Python 3.7๋ถํฐ๋ ์ฝ์
์์๊ฐ ์ ์ง๋๋ฏ๋ก ์ฌ๊ธฐ์ ```OrderedDict```๊ฐ ํ์ํ์ง ์์ต๋๋ค. ์ผ๋ฐ ```dict```์ ํจ๊ป ์๋์ ๋ฐฉ๋ฒ๋ค์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๋ฒ์ 3.7์์ ๋ณ๊ฒฝ๋ ์ฌํญ: ์ฌ์ ์ ์์๋ ์ฝ์
์์๋ฅผ ๋ณด์ฅํฉ๋๋ค. ์ด ๋์์ 3.6๋ถํฐ CPython์ ๊ตฌํ ์ธ๋ถ์ฌํญ์ด์์ต๋๋ค.
Python 3.6 ๋ฐ ์ด์ ๋ฒ์ *
์ผ๋ฐ ```dict```์ ๋ํด ์ด์ผ๊ธฐํ๋ค๋ฉด, "์ฒซ ๋ฒ์งธ ํค"๋ ์๋ฌด ์๋ฏธ๊ฐ ์์ต๋๋ค. ํค๋ ์์กดํ ์ ์๋ ์ด๋ค ๋ฐฉ์์ผ๋ก๋ ์ ๋ ฌ๋์ง ์์ต๋๋ค. ```dict```๋ฅผ ๋ฐ๋ณตํ๋ฉด ```"banana"```๊ฐ ๊ฐ์ฅ ๋จผ์ ๋ณด์ด์ง ... |
Different coffee packets advertise different amounts of 'Robusta' and 'Arabica'? What do these terms refer to, and how does it affect the taste of the coffee? |
* One reason that the taste isn't as good for Robusta is that it has more caffeine compared to Arabica. Which may sound like a positive thing but caffeine carries a bitter taste which makes it an unpleasant drink. In fact the Robusta bean has 2.7% caffeine content, almost double the 1.5% of Arabica.
* Arabica contain... | ๋ค์ํ ์ปคํผ ํจํท์์๋ '๋ก๋ถ์คํ'์ '์๋ผ๋น์นด'์ ์์ด ๋ค๋ฅด๊ฒ ๊ด๊ณ ๋๋๋ฐ, ์ด ์ฉ์ด๋ค์ ๋ฌด์์ ์๋ฏธํ๋ฉฐ ์ปคํผ์ ๋ง์ ์ด๋ค ์ํฅ์ ๋ฏธ์น ๊น์? | * ๋ก๋ถ์คํ์ ๋ง์ด ์๋ผ๋น์นด๋ณด๋ค ์ข์ง ์์ ์ด์ ์ค ํ๋๋ ์นดํ์ธ ํจ๋์ด ๋ ๋๊ธฐ ๋๋ฌธ์
๋๋ค. ์ด๋ ๊ธ์ ์ ์ธ ์์์ฒ๋ผ ๋ค๋ฆด ์ ์์ง๋ง, ์นดํ์ธ์ ์ด ๋ง์ ๋๋ฐํ์ฌ ์๋ฃ์ ๋ง์ ๋ถ์พํ๊ฒ ๋ง๋ค ์ ์์ต๋๋ค. ์ค์ ๋ก ๋ก๋ถ์คํ ๋น์ 2.7%์ ์นดํ์ธ์ ํจ์ ํ๊ณ ์์ด ์๋ผ๋น์นด์ 1.5%์ ๋นํด ๊ฑฐ์ ๋ ๋ฐฐ์
๋๋ค.
* ์๋ผ๋น์นด๋ ๋ก๋ถ์คํ์ ๋นํด ๊ฑฐ์ 60% ๋ ๋ง์ ์ง๋ฐฉ๊ณผ ๊ฑฐ์ ๋ ๋ฐฐ์ ๊ฐ๊น์ด ๋น๋ถ์ ํจ์ ํ๊ณ ์์ต๋๋ค. ์ด ์์ ๋ํ ์ฐ๋ฆฌ๊ฐ ์๋ผ๋น์นด์ ๋ง์ ์ ํธํ๋ ์ด์ ์ ํฐ ์ํฅ์ ๋ฏธ์น ๊ฒ์
๋๋ค.
* ๊ฐ๊ฒฉ ์ธก๋ฉด์์ ๋ก๋ถ์คํ ์๋๋ ์ํ ์์ฅ์์ ์๋ผ๋น์นด ์๋์ ์ฝ ์ ๋ฐ ๊ฐ๊ฒฉ์
... |
So whenever we want to shoot our flash before taking a photo. we have to charge it first.
What is the point of the charging our flashes? Aren't their power directly supplied by the battery of our camera?
Please answer for the built in flash on the 2000D and the traditional hot shoe Xenon flashes.
Perhaps these hot shoe... | The peak power at work when a flash is being discharged is extreme.
Example: a classic Metz 45CT (a large but still handheld unit) on full manual power delivers around 90 watt-seconds of electrical output to the flash tube in 1/300s. That means there are 27000 watts at work for a short time.
A 27000 watt lightbulb (BTW... | ์ฌ์ง์ ์ฐ๊ธฐ ์ ์ ํ๋์๋ฅผ ์ฌ์ฉํ๊ณ ์ถ์ผ๋ฉด ํญ์ ๋จผ์ ์ถฉ์ ํด์ผ ํฉ๋๋ค. ํ๋์๋ฅผ ์ถฉ์ ํ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? ์นด๋ฉ๋ผ ๋ฐฐํฐ๋ฆฌ์์ ์ง์ ์ ์์ด ๊ณต๊ธ๋์ง ์๋์? 2000D์ ๋ด์ฅ ํ๋์์ ์ ํต์ ์ธ ํซ์ ์ ๋
ผ ํ๋์์ ๋ํด ๋ต๋ณํด ์ฃผ์ธ์. ์๋ง๋ ์ด ํซ์ ์ ๋
ผ ํ๋์๋ ๋๋ฆฐ ํซ์ ํฌํธ๋ก ์ถฉ์ ๋๋ ์์ฒด ๋ฐฐํฐ๋ฆฌ๊ฐ ์์์ง๋ ๋ชจ๋ฆ
๋๋ค. ๋๊ฐ ์๊ฒ ์ด์? | ํ๋์๊ฐ ๋ฐฉ์ ๋ ๋ ์๋ํ๋ ์ต๋ ์ ๋ ฅ์ ๊ทน๋จ์ ์
๋๋ค. ์๋ฅผ ๋ค์ด, ๊ณ ์ ์ ์ธ ๋ฉ์ธ 45CT(ํฌ๊ณ ์ฌ์ ํ ์์ ๋ค ์ ์๋ ์ฅ๋น)๊ฐ ํ ์๋ ์ ๋ ฅ์์ ํ๋์ ํ๋ธ์ ์ฝ 90 ์ํธ-์ด์ ์ ๊ธฐ ์ถ๋ ฅ์ 1/300์ด ๋์ ์ ๊ณตํฉ๋๋ค. ์ด๋ ์งง์ ์๊ฐ ๋์ 27000์ํธ๊ฐ ์๋ํ๋ค๋ ์๋ฏธ์
๋๋ค. 27000์ํธ ์ ๊ตฌ(์ฐธ๊ณ ๋ก, ๋น์ ์ ํ๋์๋ ๊ทธ๋ณด๋ค ํจ์ฌ ๋ฐ๊ณ ํจ์จ์ ์
๋๋ค!)๋ ์๋ํ๊ธฐ ์ํด ์ฝ 8๊ฐ์ ์ ๋ฝ ๊ฐ์ ์ฉ ์์ผ(230V, 13 ๋๋ 16์ํ ํจ์ฆ) ์ ๋์ ์ ๋ฅ ์ฉ๋์ด ํ์ํฉ๋๋ค. ์๋ํ๋ฉด ๊ทธ๋ก๋ถํฐ ์ฝ 120์ํ์ด๋ฅผ ๋์ด์ค๊ธฐ ๋๋ฌธ์
๋๋ค. ์ ๋
ผ ํ๋์ ํ๋ธ๊ฐ ์ผ๋ฐ์ ์ผ๋ก ์๋ํ... |
What are some strategies to maintain morale and productivity after massive layoffs? I am not in a managerial role, just a lead role, and am asking for myself and my fellow employees. | The situation you're describing is tough. Layoffs have a very real impact on both the individuals that are let go and those that remain. I'm sorry you're experiencing this.
Here are some things to consider that may help you and your colleagues cope with the added stress and emotions following a layoff:
* Acknowledge t... | ๋๊ท๋ชจ ํด๊ณ ์ดํ ์ฌ๊ธฐ์ ์์ฐ์ฑ์ ์ ์งํ๊ธฐ ์ํ ๋ช ๊ฐ์ง ์ ๋ต์ ๋ฌด์์ธ๊ฐ์? ์ ๋ ๊ด๋ฆฌ์ง์ด ์๋๋ผ ๋ฆฌ๋ ์ญํ ์ ํ๊ณ ์์ผ๋ฉฐ, ์ ์ ๋๋ฃ ์ง์๋ค์ ์ํด ์ง๋ฌธ๋๋ฆฝ๋๋ค. | ๋น์ ์ด ์ค๋ช
ํ๊ณ ์๋ ์ํฉ์ ํ๋ ๊ฒ ๊ฐ์ต๋๋ค. ํด๊ณ ๋ ํด๊ณ ๋ ๊ฐ์ธ๊ณผ ๋จ์ ์๋ ์ฌ๋๋ค ๋ชจ๋์๊ฒ ๋งค์ฐ ํ์ค์ ์ธ ์ํฅ์ ๋ฏธ์นฉ๋๋ค. ์ด๋ฐ ์ผ์ ๊ฒช๊ณ ๊ณ์
์ ์ํ๊น์ต๋๋ค. ํด๊ณ ์ดํ์ ์คํธ๋ ์ค์ ๊ฐ์ ์ ๊ทน๋ณตํ๋ ๋ฐ ๋์์ด ๋ ์ ์๋ ๋ช ๊ฐ์ง ์ฌํญ์ ๊ณ ๋ คํด ๋ณด์ธ์:
* ํด๊ณ ์ ๋๋ฃ๋ค์ ๊ฐ์ ์ ์ธ์ ํ์ธ์. ์ด ์ฃผ์ ๋ฅผ ํผํ๋ ๊ฒ์ ๋ถ์ ์ ์ธ ๊ฐ์ ์ ์ฐ์ฅํ๊ณ ๊ฐ์ฅ ํฐ ์ํฅ์ ๋ฐ์ ์ฌ๋๋ค์ ์์ธ์ํฌ ์ ์์ต๋๋ค. ํด๊ณ ์ดํ์ ๊ฐ์ ์ ๋ํด ๋๋ฃ๋ค๊ณผ ์์งํ ๋ํ๋ฅผ ๋๋ ๊ธฐํ๋ฅผ ์ฐพ์๋ณด์ธ์. ์ฌ๋ฌ ์ฐจ๋ก์ 1๋1 ๋ํ๋ฅผ ์๋ํ๊ฑฐ๋, ํ์ ๋ชจ์ ์ธ๋ถ์์ ์ ์ฌ์ ํจ๊ปํ๋ฉฐ ๋ํ๋ฅผ ์ด๋์ด๋ณด์ธ์.... |
Could you please clearly explain what is the difference between correlation and convolution that is done by a filter on an image?
I mean in terms of signal processing definition I know that convolution describes the output of an LTI system, that is if an LTI system produces an output due to convolution with an input s... | Convolution is correlation with the filter rotated 180 degrees. This makes no difference, if the filter is symmetric, like a Gaussian, or a Laplacian. But it makes a whole lot of difference, when the filter is not symmetric, like a derivative.
The reason we need convolution is that it is associative, while correlati... | ํํฐ๊ฐ ์ด๋ฏธ์ง์์ ์ํํ๋ ์๊ด๊ด๊ณ์ ์ปจ๋ณผ๋ฃจ์
์ ์ฐจ์ด๋ฅผ ๋ช
ํํ๊ฒ ์ค๋ช
ํด ์ฃผ์ค ์ ์๋์? ์ ํธ ์ฒ๋ฆฌ ์ ์ ์ธก๋ฉด์์ ์ ๋ ์ปจ๋ณผ๋ฃจ์
์ด LTI ์์คํ
์ ์ถ๋ ฅ์ ์ค๋ช
ํ๋ค๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค. ์ฆ, LTI ์์คํ
์ด ์
๋ ฅ ์์คํ
๊ณผ์ ์ปจ๋ณผ๋ฃจ์
์ผ๋ก ์ธํด ์ถ๋ ฅ์ ์์ฑํ๋ฉด, ์ถ๋ ฅ ์ ํธ๋ ์
๋ ฅ ์ ํธ์ LTI ์์คํ
์ ์ํ์ค ์๋ต์ ์ปจ๋ณผ๋ฃจ์
๊ฒฐ๊ณผ๋ก ์ค๋ช
ํ ์ ์์ต๋๋ค. ๋ฐ๋ฉด ์๊ด๊ด๊ณ๋ ๋ ์ ํธ ๊ฐ์ ์ ์ฌ์ฑ์ ์ค๋ช
ํฉ๋๋ค. ๊ทธ๋ ๋ค๋ฉด ์ปจ๋ณผ๋ฃจ์
๊ณผ ์๊ด๊ด๊ณ๊ฐ ์ด๋ฏธ์ง์ ๋ฏธ์น๋ ์ํฅ์ ๋ฌด์์ด๋ฉฐ, ํจ๊ณผ ์ธก๋ฉด์์ ์ด ๋์ ์ผ๋ง๋ ๋ค๋ฆ
๋๊น? ๊ฐ์ฌํฉ๋๋ค. | ์ปจ๋ณผ๋ฃจ์
์ ํํฐ๋ฅผ 180๋ ํ์ ์ํจ ์๊ด๊ด๊ณ์
๋๋ค. ํํฐ๊ฐ ๊ฐ์ฐ์์์ด๋ ๋ผํ๋ผ์์์ฒ๋ผ ๋์นญ์ ์ผ ๊ฒฝ์ฐ์๋ ์ฐจ์ด๊ฐ ์์ง๋ง, ํํฐ๊ฐ ๋ฏธ๋ถ๊ณผ ๊ฐ์ด ๋น๋์นญ์ ์ผ ๋๋ ํฐ ์ฐจ์ด๊ฐ ์์ต๋๋ค.
์ปจ๋ณผ๋ฃจ์
์ด ํ์ํ ์ด์ ๋ ๊ทธ๊ฒ์ด ๊ฒฐํฉ๋ฒ์น์ ๋ง์กฑํ๊ธฐ ๋๋ฌธ์ธ๋ฐ, ์ผ๋ฐ์ ์ผ๋ก ์๊ด๊ด๊ณ๋ ๊ทธ๋ ์ง ์์ต๋๋ค. ์ ์ด ์ฌ์ค์ด ์ฐธ์ธ์ง ์ดํดํ๋ ค๋ฉด, ์ปจ๋ณผ๋ฃจ์
์ด ์ฃผํ์ ์์ญ์์์ ๊ณฑ์
์ด๋ผ๋ ๊ฒ์ ๊ธฐ์ตํด์ผ ํฉ๋๋ค. ์ด๋ ๋ช
๋ฐฑํ ๊ฒฐํฉ๋ฒ์น์ ๋ง์กฑํฉ๋๋ค. ๋ฐ๋ฉด, ์ฃผํ์ ์์ญ์์์ ์๊ด๊ด๊ณ๋ ๋ณต์์ ์ผค๋ ์์ ๊ณฑ์
์ผ๋ก, ์ด๋ ๊ฒฐํฉ๋ฒ์น์ ๋ง์กฑํ์ง ์์ต๋๋ค.
์ปจ๋ณผ๋ฃจ์
์ ๊ฒฐํฉ๋ฒ์น ๋๋ถ์ ํํฐ๋ฅผ "๋ฏธ๋ฆฌ ์ปจ๋ณผ๋ฃจ์
" ํ ... |
24601 has developed into being an iconic part of both the Les Miserables book and musical. Was that number special to him, or was it simply a random number he chose (I doubt it)? | Yes: it corresponds to the date of Hugo's conception.
This is part of a pattern of similarities between the character of Jean Valjean and the author himself: both are of similar age, have similar habits and similarly austere lifestyles, and even share the same dreams. This is according to David Bellos's The Novel of th... | 24601์ ๋ ๋ฏธ์ ๋ผ๋ธ ์ฑ
๊ณผ ๋ฎค์ง์ปฌ ๋ชจ๋์์ ์์ง์ ์ธ ๋ถ๋ถ์ผ๋ก ๋ฐ์ ํ์ต๋๋ค. ๊ทธ ์ซ์๋ ๊ทธ์๊ฒ ํน๋ณํ ์๋ฏธ๊ฐ ์์๋ ๊ฒ์ผ๊น์, ์๋๋ฉด ๋จ์ํ ๊ทธ๊ฐ ์ ํํ ์์์ ์ซ์์ผ๊น์(๋๋ ๊ทธ๋ ์ง ์๋ค๊ณ ์๊ฐํฉ๋๋ค)? | ๋ค: ์ด๊ฒ์ ์๊ณ ์ ์ํ ๋ ์ง์ ์ผ์นํฉ๋๋ค. ์ด๋ ์ฅ ๋ฐ์ฅ์ด๋ ์บ๋ฆญํฐ์ ์๊ฐ ์์ ์ฌ์ด์ ์ ์ฌ์ฑ ํจํด์ ์ผ๋ถ์
๋๋ค: ๋ ์ฌ๋ ๋ชจ๋ ๋น์ทํ ๋์ด, ๋น์ทํ ์ต๊ด, ๊ทธ๋ฆฌ๊ณ ๋น์ทํ๊ฒ ๊ฒ์ํ ์ํ ๋ฐฉ์์ ๊ฐ์ง๊ณ ์์ผ๋ฉฐ, ์ฌ์ง์ด ๊ฐ์ ๊ฟ์ ๋๋๊ณ ์์ต๋๋ค. ์ด๋ ๋ฐ์ด๋น๋ ๋ฒจ๋ก์ค์ ใ์ธ๊ธฐ์ ์์ค: ๋ ๋ฏธ์ ๋ผ๋ธ์ ํน๋ณํ ๋ชจํใ์ ๋ฐ๋ฅด๋ฉด, 3๋ถ์ ๋ง์ง๋ง์ ์ด๋ ๊ฒ ๋ง๋ฌด๋ฆฌํฉ๋๋ค:
ํ์ง๋ง ์๊ณ ๋ ์์ ๊ณผ ๊ทธ๋ฅผ ์ ์๋ ์ฌ๋๋ค์๊ฒ ์๋ฌด๊ฐ ์๊ณ ๋์ง๊ธด ์ ๊ณผ์์ ์์ ์ฌ์ด์ ๊น์ ์ ์ฒด์ฑ์ ์ฐ๊ฒฐ์ด ์๋ค๋ ๊ฒ์ ์๊ธฐ์ํค๊ธฐ ์ํด ๋น๋ฐ์ค๋ฌ์ด ์ ํธ๋ฅผ ๋ฃ์์ต๋๋ค. ์๊ณ ๋ 1802๋
2์ 26์ผ์ ํ์ด๋ฌ์ง... |
Why does Michael Crichton use US Customary measurements in hard sci-fi? | Crichton used both imperial and metric, depending on the context.
In the course of one paragraph in The Sphere, he managed to use both!
> "Pacific coral grows two-and-a-half centimeters a year, and the object-- whatever it is-- is covered in about five meters of coral. That's a lot of coral. Of course, coral doesn't g... | ๋ง์ดํด ํฌ๋ผ์ดํผ์ ํ๋ SF์์ ์ ๋ฏธ๊ตญ ๊ด์ต ๋จ์๋ฅผ ์ฌ์ฉํ ๊น์? | ํฌ๋ผ์ดํผ์ ์ํฉ์ ๋ฐ๋ผ ์ ๊ตญ ๋จ์์ ๋ฏธํฐ๋ฒ์ ๋ชจ๋ ์ฌ์ฉํ์ต๋๋ค. '๋ ์คํผ์ด'์ ํ ๋จ๋ฝ์์ ๊ทธ๋ ๋ ๊ฐ์ง๋ฅผ ๋ชจ๋ ์ฌ์ฉํ์ต๋๋ค!
> "ํํ์ ์ฐํธ๋ ๋งค๋
2.5์ผํฐ๋ฏธํฐ ์๋ผ๋ฉฐ, ๊ทธ ๋ฌผ์ฒด๋ -- ๊ทธ๊ฒ์ด ๋ฌด์์ด๋ -- ์ฝ 5๋ฏธํฐ์ ์ฐํธ๋ก ๋ฎ์ฌ ์์ต๋๋ค. ์๋นํ ๋ง์ ์ฐํธ์
๋๋ค. ๋ฌผ๋ก , ์ฐํธ๋ ์ฒ ํผํธ ๊น์ด์์๋ ์๋ผ์ง ์์ผ๋ฏ๋ก ํ์ฌ์ ํ๋ซํผ์ ๊ณผ๊ฑฐ ์ด๋ ์์ ์ ๋ ๋ฎ์ ๊น์ด๋ก ๋ถ๊ดด๋์์์ ์๋ฏธํฉ๋๋ค."
์บ๋ฆญํฐ์ธ ๋ฐ๋ฅธ์ค(ํด๊ตฐ ๋์)๋ ์ ํํ ์ธก์ ์ ์ด์ผ๊ธฐํ ๋ ๋ฏธํฐ๋ฒ์ ์ฌ์ฉํฉ๋๋ค. ์ข ๋ ์ผ๋ฐ์ ์ธ ์ด์ผ๊ธฐ๋ฅผ ํ ๋๋ ์ ๊ตญ ๋จ์๋ฅผ ์ฌ์ฉํฉ๋๋ค. ์ฃผ์ธ๊ณต ๋
ธ๋จผ(์ฌ๋ฆฌํ์, ์ํ์ ... |
How can horns, most of which have only three buttons, play all their notes? | Put as simply as possible, horns are tubes. Blowing in special ways makes certain notes sound from those tubes. By changing one's embouchure, those notes start at a fundamental, then gradually go up in harmonics. The first notes (in key C) would be C, G, C, E, G.Those notes are the ones we hear when a bugle is played -... | ํธ๋ฅธ์ ๋๋ถ๋ถ ๋ฒํผ์ด ์ธ ๊ฐ๋ฐ์ ์๋๋ฐ ์ด๋ป๊ฒ ๋ชจ๋ ์์ ์ฐ์ฃผํ ์ ์์๊น์? | ๊ฐ๋จํ ๋งํ์๋ฉด, ์
๊ธฐ๋ ๊ด์
๋๋ค. ํน๋ณํ ๋ฐฉ๋ฒ์ผ๋ก ๋ถ๋ฉด ๊ทธ ๊ด์์ ํน์ ์์ด ๋์ต๋๋ค. ์
์ ๋ชจ์์ ๋ฐ๊พธ๋ฉด ๊ธฐ๋ณธ ์์์ ์์ํ์ฌ ์ ์ฐจ์ ์ผ๋ก ๋ฐฐ์์ด ์ฌ๋ผ๊ฐ๋๋ค. ์ฒซ ๋ฒ์งธ ์๋ค(Cํค)์ C, G, C, E, G์
๋๋ค. ์ด ์๋ค์ ๋ํ์ด ์ฐ์ฃผ๋ ๋ ๋ค๋ฆฌ๋ ์๋ค๋ก, ๋ ๋ฒจ๋ฆฌ, ๋ผ์คํธ ํฌ์คํธ ๋ฑ์ด ์์ต๋๋ค. ๋ํ์ ์ค์ง ๋ฐฐ์ ์๋ฆฌ์ฆ์ ์๋ง ์ฐ์ฃผํ ์ ์์ผ๋ฉฐ, ๊ทธ ์ฌ์ด์ ์์ ์ฐ์ฃผํ ์ ์์ต๋๋ค. ๊ณ์ ์ฝ์ด๋ณด์ธ์.
ํธ๋ผํซ์๋ ์ธ ๊ฐ์ ๋ฐธ๋ธ๊ฐ ์์ต๋๋ค. ํ๋๋ ์ด๋ฆฐ ์์ ๋ฐ์ ๋ฎ์ถ๊ณ , ๋ค๋ฅธ ํ๋๋ ๋ ๊ฐ์ ๋ฐ์, ๋ ๋ค๋ฅธ ํ๋๋ ์ธ ๊ฐ์ ๋ฐ์ ๋ฎ์ถฅ๋๋ค. ๋ฐ๋ผ์ ๋ฐธ๋ธ ์กฐํฉ์ ์ฌ์ฉ... |
I am a big fan of worldbuilding. A common sight in science fiction is that aliens pretend to be human (For example in Third Rock from the Sun). Obviously if the aliens are advanced enough to disguise themselves as another species, there are much easier, simpler and less expensive methods to destroy humanity, so why els... | Aliens are alien, without a common background their motives may be incomprehensible.
If we assume that these aliens are Hollywood aliens (ie humans with odd-looking rubber bits stuck on their faces) then there are all of the reasons that humans from one culture spend time in another culture and try and learn to fit in:... | ๋๋ ์ธ๊ณ๊ด ๊ตฌ์ถ์ ์ด๋ ฌํ ํฌ์ด๋ค. SF์์ ํํ ๋ณผ ์ ์๋ ๋ชจ์ต์ ์ธ๊ณ์ธ์ด ์ธ๊ฐ์ธ ์ฒํ๋ ๊ฒ์ด๋ค(์: '์จ๋ ๋ก ํ๋กฌ ๋ ์ '). ์ธ๊ณ์ธ์ด ๋ค๋ฅธ ์ข
์ผ๋ก ๋ณ์ฅํ ๋งํผ ์ง๋ณด๋ ์กด์ฌ๋ผ๋ฉด ์ธ๋ฅ๋ฅผ ํ๊ดดํ๋ ๋ ์ฝ๊ณ ๊ฐ๋จํ๋ฉฐ ์ ๋ ดํ ๋ฐฉ๋ฒ์ด ๋ง์ ํ
๋ฐ, ์ ๊ณ ๋๋ก ๋ฐ์ ๋ ์ธ๊ณ ๋ฌธ๋ช
์ด ์ธ๊ฐ์ผ๋ก ๋ณ์ฅํ๋ ๋ฐ ์๊ฐ๊ณผ ์๋์ง๋ฅผ ๋ญ๋นํ ๊น? ์ด๋ฌํ ๋น์ผ ์ ์ฐจ๊ฐ ๊ฐ์ง ์ ์๋ ๊ณผํ์ , ๋ฌธํ์ ๋๋ ์์
์ ์ฉ๋๋ ๋ฌด์์ผ๊น? | ์ธ๊ณ์ธ์ ์ธ๊ณ์ธ์ผ๋ก, ๊ณตํต์ ๋ฐฐ๊ฒฝ์ด ์๊ธฐ ๋๋ฌธ์ ๊ทธ๋ค์ ๋๊ธฐ๋ ์ดํดํ ์ ์์ ์๋ ์์ต๋๋ค. ๋ง์ฝ ์ด ์ธ๊ณ์ธ๋ค์ด ํ ๋ฆฌ์ฐ๋ ์ธ๊ณ์ธ(์ฆ, ์ผ๊ตด์ ์ด์ํ ๊ณ ๋ฌด ์กฐ๊ฐ์ด ๋ถ์ด ์๋ ์ธ๊ฐ)์ด๋ผ๊ณ ๊ฐ์ ํ๋ค๋ฉด, ํ ๋ฌธํ์ ์ธ๊ฐ๋ค์ด ๋ค๋ฅธ ๋ฌธํ์์ ์๊ฐ์ ๋ณด๋ด๊ณ ์ ์ํ๋ ค๊ณ ๋
ธ๋ ฅํ๋ ๋ชจ๋ ์ด์ ๊ฐ ์์ต๋๋ค:
* ์ธ๋ฅํ; ๋ค๋ฅธ ๋ฌธํ๊ฐ ์ด๋ป๊ฒ ๋ฐ์ ํด ์๋์ง๋ฅผ ์ฐ๊ตฌํ์ฌ ์์ ์ ๋ฌธํ์ ์ํฅ์ ๋ฏธ์น ๋ฐ์ ๊ณผ์ ์ ๋ ์ ์ดํดํ๊ธฐ ์ํจ์
๋๋ค. ์ด์ M. ๋ฑ
ํฌ์ค๋ ์ด ์ฃผ์ ๋ก ใ์ธ๋ฒ์ ์คใ(๋ฌธํ์ ๋ ์ธ๋ฅํ์๊ฐ ๋ฅด๋ค์์ค ์๋์ ์ธ๊ณ๋ฅผ ์กฐ์ฌํ๋ ์ด์ผ๊ธฐ)์ ใ์ต์ ๊ธฐ์ ์ ์ํใ(1970๋
๊ฒฝ ์ง๊ตฌ์์์ ๋ฌธ... |
I've taken a look at the list of surveys taken on scala-lang.org and noticed a curious question: "Can you name all the uses of โ_โ?". Can you? If yes, please do so here. Explanatory examples are appreciated. | The following is an explanation of the uses of the underscore is Scala _ [underscore] magic.
Examples:
``` def matchTest(x: Int): String = x match {
case 1 => "one"
case 2 => "two"
case _ => "anything other than one and two"
}
expr match {
case List(1,_,_) => " a list with three element and the fi... | scala-lang.org์์ ์ค์๋ ์ค๋ฌธ ๋ชฉ๋ก์ ์ดํด๋ณด์๊ณ , ํฅ๋ฏธ๋ก์ด ์ง๋ฌธ์ ๋ฐ๊ฒฌํ์ต๋๋ค: "โ_โ์ ๋ชจ๋ ์ฉ๋๋ฅผ ๋งํ ์ ์๋์?". ๋น์ ์ ํ ์ ์๋์? ๋ง์ฝ ๊ทธ๋ ๋ค๋ฉด, ์ฌ๊ธฐ์์ ๋ง์ํด ์ฃผ์ธ์. ์ค๋ช
์ ์ธ ์์๋ ์ข์ต๋๋ค. | ๋ค์์ Scala์์ ์ธ๋์ค์ฝ์ด(_)์ ์ฌ์ฉ์ ๋ํ ์ค๋ช
์
๋๋ค.
์์:
```scala
def matchTest(x: Int): String = x match {
case 1 => "one"
case 2 => "two"
case _ => "one๊ณผ two๊ฐ ์๋ ๊ฒ"
}
expr match {
case List(1, _, _) => "์ฒซ ๋ฒ์งธ ์์๊ฐ 1์ธ ์ธ ๊ฐ์ ์์๋ฅผ ๊ฐ์ง ๋ฆฌ์คํธ"
case List(_*) => "0๊ฐ ์ด์์ ์์๋ฅผ ๊ฐ์ง ๋ฆฌ์คํธ"
case Map[_, _] => "๋ชจ๋ ํค ํ์
๊ณผ ๋ชจ๋ ๊ฐ ํ์
์ ๊ฐ์ง ๋งต์... |
My university usually asks that we book a flight via a travel agent, but the prices he gives me are about $50 higher than the prices I can get by online booking in the flight company's website. Why would a company want me to book a flight via a travel agent if it is more expensive? | There are several reasons why such internal policies exist:
* Your institution may get a discount on certain services of the travel agent if it buys enough from the agent
* By having a contract with a reasonably-priced travel agent, they make sure that no employee books the flight with a very pricey agent or with a tr... | ๋ด ๋ํ์ ๋ณดํต ์ฌํ์ฌ๋ฅผ ํตํด ํญ๊ณตํธ์ ์์ฝํ ๊ฒ์ ์๊ตฌํ์ง๋ง, ๊ทธ๊ฐ ์ ์ํ๋ ๊ฐ๊ฒฉ์ ์ ๊ฐ ํญ๊ณต์ฌ ์น์ฌ์ดํธ์์ ์จ๋ผ์ธ ์์ฝ์ผ๋ก ๋ฐ์ ์ ์๋ ๊ฐ๊ฒฉ๋ณด๋ค ์ฝ 50๋ฌ๋ฌ ๋ ๋น์๋๋ค. ์ ํ์ฌ๋ ๋ ๋น์ผ ์ฌํ์ฌ๋ฅผ ํตํด ํญ๊ณตํธ์ ์์ฝํ๋ผ๊ณ ํ ๊น์? | ๋ด๋ถ ์ ์ฑ
์ด ์กด์ฌํ๋ ์ด์ ๋ ์ฌ๋ฌ ๊ฐ์ง๊ฐ ์์ต๋๋ค:
* ๊ท ๊ธฐ๊ด์ด ์ฌํ์ฌ๋ก๋ถํฐ ์ถฉ๋ถํ ๊ตฌ๋งคํ ๊ฒฝ์ฐ ํน์ ์๋น์ค์ ๋ํด ํ ์ธ ํํ์ ๋ฐ์ ์ ์์ต๋๋ค.
* ํฉ๋ฆฌ์ ์ธ ๊ฐ๊ฒฉ์ ์ฌํ์ฌ์ ๊ณ์ฝ์ ์ฒด๊ฒฐํจ์ผ๋ก์จ, ์ง์๋ค์ด ๋งค์ฐ ๋น์ผ ์ฌํ์ฌ๋ ์ฌํ์์ ์น์ฒ์ด ์ด์ํ๋ ์ฌํ์ฌ์์ ํญ๊ณต๊ถ์ ์์ฝํ์ง ์๋๋ก ๋ณด์ฅํฉ๋๋ค.
* ์ฌํ์ฌ๋ ๊ฒฝ๋น ์ ๋ณด๋ฅผ ์ฝ๊ฒ ํ์ธํ ์ ์๋ ๋ฐฉ๋ฒ์ ์ ๊ณตํ์ฌ ๊ท ๊ธฐ๊ด์ ์ง์ญ ํ์ ์ง์์ ์
๋ฌด ๋ถ๋ด์ ์ค์ผ ์ ์์ต๋๋ค. ํนํ, ๊ฒฐ์ ๊ฐ ๊ธฐ๊ด์์ ์ฌํ์ฌ๋ก ์ง์ ์ด๋ฃจ์ด์ง ๊ฒฝ์ฐ, ์์ฝ์ ์ํด ๋นํ์๊ฐ ์ ์ฉ ์นด๋ ๋ณด๋์ค ํฌ์ธํธ๋ฅผ ๋ฐ์ง ์๋๋ก ๋ณด์ฅํฉ๋๋ค.
* ๊ท ๊ธฐ๊ด์ ์ฌํ... |
Layman's explanation of encryption backdoors | There are two somewhat orthogonal concepts in backdooring encryption algorithms:
* The backdoor can be explicit or implicit. An explicit backdoor is one that everybody knows it is there. An implicit backdoor strives at remaining undetected by the algorithm owners. Of course, when there is an explicit backdoor, people ... | ์ํธํ ๋ฐฑ๋์ด์ ๋ํ ์ผ๋ฐ์ธ์ ์ค๋ช
| ๋ฐฑ๋์ด๊ฐ ์๋ ์ํธ ์๊ณ ๋ฆฌ์ฆ์๋ ๋ ๊ฐ์ง ๋ค์ ์ง๊ต์ ์ธ ๊ฐ๋
์ด ์์ต๋๋ค:
* ๋ฐฑ๋์ด๋ ๋ช
์์ ์ผ ์๋ ์๊ณ ์์์ ์ผ ์๋ ์์ต๋๋ค. ๋ช
์์ ๋ฐฑ๋์ด๋ ๊ทธ ์กด์ฌ๋ฅผ ๋ชจ๋๊ฐ ์๊ณ ์๋ ๊ฒ์
๋๋ค. ์์์ ๋ฐฑ๋์ด๋ ์๊ณ ๋ฆฌ์ฆ ์์ ์์๊ฒ ๋ฐ๊ฐ๋์ง ์์ผ๋ ค ํฉ๋๋ค. ๋ฌผ๋ก , ๋ช
์์ ๋ฐฑ๋์ด๊ฐ ์์ ๊ฒฝ์ฐ ์ฌ๋๋ค์ ์๊ณ ๋ฆฌ์ฆ์ ์์ ํ ํผํ๋ ๊ฒฝํฅ์ด ์์ผ๋ฏ๋ก, ๋ช
์์ ๋ฐฑ๋์ด๋ ๊ตฌํ์๊ฐ ๋ฐฑ๋์ด๊ฐ ํฌํจ๋ ์์คํ
์ ์ฌ์ฉํ๋๋ก ๊ฐ์ ํ๋ ๋ฒ์ ํ๋ ์์ํฌ๊ฐ ์กด์ฌํ ๋๋ง ์๋ํ ์ ์์ต๋๋ค. ๋ช
์์ ๋ฐฑ๋์ด์ ์๋ก๋ ํด๋ฆฌํผ ์นฉ์ด ์์ต๋๋ค(๊ฒฐ๊ตญ ํฌ๊ธฐ๋์์ต๋๋ค). ๋ฐฑ๋์ด๋ ์ค์ ๋ก ์๊ณ ๋ฆฌ์ฆ์ ์๋ ๊ฒ์ด ์๋๋ผ ์๊ณ ... |
I have a page where a scroll bar containing table rows with divs in them is dynamically generated from the database. Each table row acts like a link, sort of like you'd see on a YouTube playlist next to the video player.
When a user visits the page, the option they are on is supposed to go to the top of the scrolling d... | CSS ```scroll-margin``` and ```scroll-padding```
You might want to have a look at new CSS properties ```scroll-padding``` and ```scroll-margin```. You can use ```scroll-padding``` for the scrolling container (```html``` in this case), and ```scroll-margin``` for the element within the container.
For your example, you w... | ํ์ด์ง์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ ๋์ ์ผ๋ก ์์ฑ๋ div๋ฅผ ํฌํจํ ํ
์ด๋ธ ํ์ด ์๋ ์คํฌ๋กค ๋ฐ๊ฐ ์์ต๋๋ค. ๊ฐ ํ
์ด๋ธ ํ์ ๋ง์น ๋น๋์ค ํ๋ ์ด์ด ์์ ์ ํ๋ธ ์ฌ์ ๋ชฉ๋ก์์ ๋ณผ ์ ์๋ ๋งํฌ์ฒ๋ผ ์๋ํฉ๋๋ค. ์ฌ์ฉ์๊ฐ ํ์ด์ง๋ฅผ ๋ฐฉ๋ฌธํ๋ฉด ์ ํํ ์ต์
์ด ์คํฌ๋กคํ๋ div์ ๋งจ ์๋ก ๊ฐ์ผ ํฉ๋๋ค. ์ด ๊ธฐ๋ฅ์ ์ ์๋ํ๊ณ ์์ต๋๋ค. ๋ฌธ์ ๋ ์ฝ๊ฐ ๋๋ฌด ๋์์ง๋ค๋ ๊ฒ์
๋๋ค. ์ฆ, ์ ํํ ์ต์
์ด ์ฝ 10ํฝ์
์ ๋ ๋๋ฌด ์๋ก ์ฌ๋ผ๊ฐ๋๋ค. ํ์ด์ง๊ฐ ๋ฐฉ๋ฌธ๋๊ณ , URL์ ์ฌ์ฉํ์ฌ ์ด๋ค ์ต์
์ด ์ ํ๋์๋์ง ์๋ณํ ํ, ํด๋น ์ต์
์ ์คํฌ๋กคํ์ฌ ์คํฌ๋กคํ๋ div์ ๋งจ ์๋ก ์ด๋ํฉ๋๋ค. ์ฐธ๊ณ : ์ด๊ฒ์ ์ฐฝ... | CSS ```scroll-margin```๊ณผ ```scroll-padding```
์๋ก์ด CSS ์์ฑ์ธ ```scroll-padding```๊ณผ ```scroll-margin```์ ํ์ธํด ๋ณด์ธ์. ์ด ๊ฒฝ์ฐ ```html``` ์คํฌ๋กค ์ปจํ
์ด๋์๋ ```scroll-padding```์, ์ปจํ
์ด๋ ๋ด์ ์์์๋ ```scroll-margin```์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด, ๋ทฐํฌํธ์ ์คํฌ๋กคํ๋ ค๋ ์์์ ๋ํด ```scroll-margin-top```์ ์ถ๊ฐํ๊ณ ์ถ๋ค๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์์ฑํ ์ ์์ต๋๋ค:
```.example {
scroll-margin-to... |
Suppose I have the geographic coordinates of "Saratoga, California, USA" as
```Latitude: 37ยฐ15.8298โฒ N
Longitude: 122ยฐ 1.3806โฒ W
```
I know from here that in the case of latitude ```1ยฐ โ 69 miles``` and that longitude varies:
```1ยฐ longitude = cosine (latitude) * length of degree (miles) at Equator.
```
How... | It doesn't matter at what longitude you are. What matters is what latitude you are.
Length of ```1 degree of Longitude``` = ```cosine (latitude in radians) * length of degree (miles) at equator```.
Convert your latitude into decimal degrees ~ 37.26383
Convert your decimal degrees into radians ~ 0.65038
Take the cosine ... | "Saratoga, California, USA"์ ์ง๋ฆฌ์ ์ขํ๊ฐ ๋ค์๊ณผ ๊ฐ๋ค๊ณ ๊ฐ์ ํด ๋ณด๊ฒ ์ต๋๋ค.
```
์๋: 37ยฐ15.8298โฒ N
๊ฒฝ๋: 122ยฐ 1.3806โฒ W
```
์ฌ๊ธฐ์ ์๋ 1ยฐ๋ ์ฝ 69๋ง์ผ์ด๋ผ๋ ๊ฒ์ ์๊ณ ์์ผ๋ฉฐ, ๊ฒฝ๋๋ ๋ค์๊ณผ ๊ฐ์ด ๋ณํฉ๋๋ค:
```
1ยฐ ๊ฒฝ๋ = ์ฝ์ฌ์ธ(์๋) * ์ ๋์์์ ๋ ๊ธธ์ด(๋ง์ผ).
```
๊ฒฝ๋ 122ยฐ1.3806โฒ W์์ 1ยฐ ๊ฒฝ๋๋ ๋ช ๋ง์ผ์ธ๊ฐ์? | ๊ฒฝ๋์ ์์นํ ์ง์ ์ ์ค์ํ์ง ์์ต๋๋ค. ์ค์ํ ๊ฒ์ ์๋์
๋๋ค.
```1๋ ๊ฒฝ๋์ ๊ธธ์ด``` = ```์ฝ์ฌ์ธ(์๋, ๋ผ๋์) * ์ ๋์์์ ๋์ ๊ธธ์ด(๋ง์ผ)```์
๋๋ค.
์๋๋ฅผ ์์์ ์ผ๋ก ๋ณํํ์ธ์ ~ 37.26383
์์์ ์ผ๋ก ๋ณํ๋ ๋๋ฅผ ๋ผ๋์์ผ๋ก ๋ณํํ์ธ์ ~ 0.65038
๋ผ๋์ ๊ฐ์ ์ฝ์ฌ์ธ์ ๊ตฌํ์ธ์ ~ 0.79585
1๋ ๊ฒฝ๋ = ~0.79585 * 69.172 = ~ 55.051 ๋ง์ผ
about.com ์น์ฌ์ดํธ์์์ ๋ ์ ์ฉํ ์ ๋ณด:
์๋๋ ํํํ๋ฏ๋ก ๊ฐ ๋ ์ฌ์ด์ ๊ฑฐ๋ฆฌ๋ ๊ฑฐ์ ์ผ์ ํ์ง๋ง, ๊ฒฝ๋๋ ์ ๋์์ ๊ฐ์ฅ ๋ฉ๊ณ ๊ทน์์ ... |
I have read numerous times that some Norse warriors, upon death, would go in Fรณlkvangr, while some others would go to Valhalla. How was it decided which warrior would go to which place? Why did the need to have many "paradises" (whatever you many call it) exist?
Citing Wikipedia:
> In Norse mythology, Fรณlkvangr (Old ... | The Norse mythological texts record three primary places where the dead were perceived to go: Helheim (Old Norse Helheimr, โthe home of the goddess Helโ), Valhalla (Old Norse Valhรถll, โthe hall of the fallenโ), and Folkvang (Old Norse Fรณlkvangr, โthe field of the peopleโ or โthe field of warriorsโ).
But they're indisti... | ๋๋ ์ฌ๋ฌ ๋ฒ ์ฝ์๋๋ฐ, ์ผ๋ถ ๋
ธ๋ฅด๋ ์ ์ฌ๋ค์ ์ฃฝ์ผ๋ฉด ํดํฌ๋ฐฉ๋ฅด๋ก ๊ฐ๊ณ , ๋ค๋ฅธ ์ผ๋ถ๋ ๋ฐํ ๋ผ๋ก ๊ฐ๋ค๊ณ ํ๋ค. ์ด๋ค ์ ์ฌ๊ฐ ์ด๋ค ๊ณณ์ผ๋ก ๊ฐ๋์ง๋ ์ด๋ป๊ฒ ๊ฒฐ์ ๋์์๊น? ์ ์ฌ๋ฌ ๊ฐ์ "์ฒ๊ตญ"(๋ฌด์์ด๋ผ ๋ถ๋ฅด๋ )์ด ํ์ํ์๊น?
์ํค๋ฐฑ๊ณผ์ ๋ฐ๋ฅด๋ฉด:
> ๋
ธ๋ฅด๋ ์ ํ์์ ํดํฌ๋ฐฉ๋ฅด(๊ณ ๋ ๋
ธ๋ฅด๋์ด "๊ตฐ๋์ ๋คํ" ๋๋ "์ฌ๋๋ค์ ๋คํ" ๋๋ "๊ตฐ์ฌ ๋คํ")๋ ์ฌ์ ํ๋ ์ด์ผ๊ฐ ๋ค์ค๋ฆฌ๋ ์ด์ ๋๋ ๋คํ์ผ๋ก, ์ ํฌ ์ค์ ์ฃฝ์ ์ด๋ค ์ค ์ ๋ฐ์ด ์ฃฝ์ ํ ๊ฐ๋ ๊ณณ์ด๋ฉฐ, ๋๋จธ์ง ์ ๋ฐ์ ์ ์ค๋์ด ์๋ ๋ฐํ ๋ผ๋ก ๊ฐ๋ค. | ๋
ธ๋ฅด์ค ์ ํ์ ํ
์คํธ๋ ์ฃฝ์ ์๋ค์ด ๊ฐ์ฃผ๋๋ ์ธ ๊ฐ์ง ์ฃผ์ ์ฅ์๋ฅผ ๊ธฐ๋กํ๊ณ ์์ต๋๋ค: ํฌํ์(๊ณ ๋ ๋
ธ๋ฅด๋์ด Helheimr, "์ฌ์ ํฌ์ ์ง"), ๋ฐํ ๋ผ(๊ณ ๋ ๋
ธ๋ฅด๋์ด Valhรถll, "์ ์ฌ๋ค์ ์ ๋น"), ๊ทธ๋ฆฌ๊ณ ํดํฌ๋ฐฉ(๊ณ ๋ ๋
ธ๋ฅด๋์ด Fรณlkvangr, "์ฌ๋๋ค์ ๋คํ" ๋๋ "์ ์ฌ๋ค์ ๋คํ"). ๊ทธ๋ฌ๋ ์ด๋ค์ ๊ตฌ๋ณํ ์ ์์ผ๋ฉฐ ํฐ ์ฐจ์ด๊ฐ ์์ต๋๋ค. ๋ฐํ ๋ผ๋ ์ค๋์ด ์ง๋ฐฐํ๋ฉฐ, ๋ฐํ ๋ผ์ ๋ค์ด๊ฐ๋ ค๋ฉด ๊ทธ์ ๊ทธ์ ๋ฐํค๋ฆฌ๋ค, ์ฆ "์ฃฝ์ ์์ ์ ํ์๋ค"์ ์ํด ์ ํ๋์ด์ผ ํฉ๋๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก, ํดํฌ๋ฐฉ์ ๋ค์ด๊ฐ๋ ค๋ฉด ํ๋ ์ด์ผ์ ์ํด ์ ํ๋์ด์ผ ํฉ๋๋ค.
๋ฐํ ๋ผ๋ ์ข
์ข
์ ๋ช
ํ ์ ์ฌ๋ค์ด... |
I noticed that there is a binary executable ```/bin/echo``` on my Ubuntu MATE 17.04 system.
I thought, that's odd, because
```$ type echo
echo is a shell builtin```
Cursory testing suggests that ```/bin/echo``` does the same sort of thing as the Bash builtin ```echo```:
```$ /bin/echo foo
foo
$ /bin/echo $USER
zanna
``... | If you open up a ```bash``` prompt and type in an ```echo``` command, that uses a shell builtin rather than running ```/bin/echo```. The reasons it is still important for ```/bin/echo``` to exist are:
* You're not always using a shell. Under a variety of circumstances, you run an executable directly and not through a ... | ๋๋ ๋ด Ubuntu MATE 17.04 ์์คํ
์ ์ด์ง ์คํ ํ์ผ ```/bin/echo```๊ฐ ์๋ค๋ ๊ฒ์ ๋ฐ๊ฒฌํ๋ค. ์ด์ํ๋ค๊ณ ์๊ฐํ๋๋ฐ,
```$ type echo
echo๋ ์
ธ ๋ด์ฅ ๋ช
๋ น์
๋๋ค```
๊ฐ๋จํ ํ
์คํธ์ ๋ฐ๋ฅด๋ฉด ```/bin/echo```๋ Bash ๋ด์ฅ ๋ช
๋ น์ธ ```echo```์ ๊ฐ์ ๊ธฐ๋ฅ์ ์ํํ๋ ๊ฒ ๊ฐ๋ค:
```$ /bin/echo foo
foo
$ /bin/echo $USER
zanna
```
๊ทธ๋ ๋ค๋ฉด, ์ Bash ํ๋ก๊ทธ๋จ๊ณผ ๋ณ๋๋ก ๋ ๋ค๋ฅธ ๋ฒ์ ์ ```echo```๊ฐ ์กด์ฌํ๋ฉฐ, ์ธ์ ๋๋ ์ ๊ทธ๊ฒ์ ์ฌ์ฉํด์ผ ํ ๊น? | ```bash``` ํ๋กฌํํธ๋ฅผ ์ด๊ณ ```echo``` ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํ๋ฉด, ์ด๋ ```/bin/echo```๋ฅผ ์คํํ๋ ๊ฒ์ด ์๋๋ผ ์
ธ ๋ด์ฅ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค. ```/bin/echo```๊ฐ ์กด์ฌํ๋ ๊ฒ์ด ์ฌ์ ํ ์ค์ํ ์ด์ ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
* ํญ์ ์
ธ์ ์ฌ์ฉํ๋ ๊ฒ์ ์๋๋๋ค. ๋ค์ํ ์ํฉ์์ ์
ธ์ ๊ฑฐ์น์ง ์๊ณ ์คํ ํ์ผ์ ์ง์ ์คํํ ์ ์์ต๋๋ค.
* ์ ์ด๋ ์ด๋ก ์ ์ผ๋ก, ์ผ๋ถ ์
ธ์๋ ```echo``` ๋ด์ฅ ๋ช
๋ น์ด๊ฐ ์์ต๋๋ค. ์ด๋ ์ค์ ๋ก ํ์๋ ์๋๋๋ค.
์ฒซ ๋ฒ์งธ ์ด์ ๋ฅผ ํ์ฅํ์๋ฉด, ์ด๋ฆ์ด ```abc```๋ก ์์ํ๋ ๋ชจ๋ ์ผ๋ฐ ํ์ผ์ ```src```... |
what's the difference between JavaScript objects, classes and functions? | As you must already be aware by now there are no classes in JavaScript. Instead functions in JavaScript may be made to behave like constructors by preceding a function call with the ```new``` keyword. This is known as the constructor pattern.
In JavaScript everything is an object except for the primitive data types (bo... | JavaScript์ ๊ฐ์ฒด, ํด๋์ค, ํจ์์ ์ฐจ์ด์ ์ ๋ฌด์์ธ๊ฐ์? | ํ์ฌ ์ด๋ฏธ ์๊ณ ๊ณ์๊ฒ ์ง๋ง, ์๋ฐ์คํฌ๋ฆฝํธ์๋ ํด๋์ค๊ฐ ์์ต๋๋ค. ๋์ ์๋ฐ์คํฌ๋ฆฝํธ์ ํจ์๋ ํจ์ ํธ์ถ ์์ ```new``` ํค์๋๋ฅผ ๋ถ์์ผ๋ก์จ ์์ฑ์์ฒ๋ผ ๋์ํ๊ฒ ๋ง๋ค ์ ์์ต๋๋ค. ์ด๋ฅผ ์์ฑ์ ํจํด์ด๋ผ๊ณ ํฉ๋๋ค.
์๋ฐ์คํฌ๋ฆฝํธ์์ ๋ชจ๋ ๊ฒ์ ๊ฐ์ฒด์ด๋ฉฐ, ์์ ๋ฐ์ดํฐ ํ์
(๋ถ๋ฆฌ์ธ, ์ซ์, ๋ฌธ์์ด)๊ณผ ```undefined```๋ฅผ ์ ์ธํฉ๋๋ค. ๋ฐ๋ฉด์ ```null```์ ์ฒ์์๋ ๋ค๋ฅด๊ฒ ์๊ฐํ ์ ์์ง๋ง ์ค์ ๋ก๋ ๊ฐ์ฒด ์ฐธ์กฐ์
๋๋ค. ์ด๊ฒ์ด ๋ฐ๋ก ```typeof null```์ด ```"object"```๋ฅผ ๋ฐํํ๋ ์ด์ ์
๋๋ค.
์๋ฐ์คํฌ๋ฆฝํธ์ ํจ์๋ Lua์ ํจ์ ๊ฐ... |
In most introductory algorithm classes, notations like $O$ (Big O) and $\Theta$ are introduced, and a student would typically learn to use one of these to find the time complexity.
However, there are other notations, such as $o$, $\Omega$ and $\omega$. Are there any specific scenarios where one notation would be prefer... | You are referring to the Landau notation. They are not different symbols for the same thing but have entirely different meanings. Which one is "preferable" depends entirely on the desired statement.
$f \in \cal{O}(g)$ means that $f$ grows at most as fast as $g$, asymptotically and up to a constant factor; think of it a... | ๋๋ถ๋ถ์ ์
๋ฌธ ์๊ณ ๋ฆฌ์ฆ ์์
์์๋ $O$ (๋น
์ค)์ $\Theta$์ ๊ฐ์ ํ๊ธฐ๋ฒ์ด ์๊ฐ๋๋ฉฐ, ํ์์ ์ผ๋ฐ์ ์ผ๋ก ์ด๋ค ์ค ํ๋๋ฅผ ์ฌ์ฉํ์ฌ ์๊ฐ ๋ณต์ก์ฑ์ ์ฐพ๋ ๋ฒ์ ๋ฐฐ์ฐ๊ฒ ๋ฉ๋๋ค. ๊ทธ๋ฌ๋ $o$, $\Omega$, $\omega$์ ๊ฐ์ ๋ค๋ฅธ ํ๊ธฐ๋ฒ๋ ์์ต๋๋ค. ํน์ ์ํฉ์์ ์ด๋ค ํ๊ธฐ๋ฒ์ด ๋ค๋ฅธ ๊ฒ๋ณด๋ค ๋ ์ ํธ๋๋ ๊ฒฝ์ฐ๊ฐ ์๋์? | ๋น์ ์ ๋๋ค์ฐ ํ๊ธฐ๋ฒ์ ์ธ๊ธํ๊ณ ์์ต๋๋ค. ์ด๋ค์ ๊ฐ์ ๊ฒ์ ๋ํ๋ด๋ ๋ค๋ฅธ ๊ธฐํธ๊ฐ ์๋๋ผ, ์ ํ ๋ค๋ฅธ ์๋ฏธ๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค. ์ด๋ค ๊ฒ์ด "์ ํธ๋๋"์ง๋ ์ํ๋ ์ง์ ์ ์ ์ ์ผ๋ก ๋ฌ๋ ค ์์ต๋๋ค.
$f \in \cal{O}(g)$๋ $f$๊ฐ $g$๋งํผ ๋น ๋ฅด๊ฒ ์ฑ์ฅํ๊ฑฐ๋ ๊ทธ๋ณด๋ค ๋๋ฆฌ๊ฒ ์ฑ์ฅํ ์ ์์์ ์๋ฏธํ๋ฉฐ, ๋น๋์นญ์ ์ผ๋ก ์์ ๋ฐฐ์๊น์ง ๊ฐ๋ฅํฉ๋๋ค; ์ด๋ฅผ $\leq$๋ก ์๊ฐํ์ธ์. $f \in o(g)$๋ ๋ ์๊ฒฉํ ํํ๋ก, ์ฆ $f \in \Omega(g)$๋ ๋์นญ์ ์ธ ์๋ฏธ๋ฅผ ๊ฐ์ง๋๋ค: $f$๋ ์ต์ํ $g$๋งํผ ๋น ๋ฅด๊ฒ ์ฑ์ฅํฉ๋๋ค. $\omega$๋ ๊ทธ๋ณด๋ค ๋ ์๊ฒฉํ... |
Why is Gaia operating around Earth orbit? Why not send it to Neptune's orbit? | Well, you thought about the spatial aspect of a parallax measurement, but not about the temporal one.
Gaia's intention is to measure 3D positions as well as 3D velocities. For the distance, you need accurate parallactic measurement, which come in with your orbital period.
For a typical Gaia-star with several measuremen... | ๊ฐ์ด์๊ฐ ์ง๊ตฌ ๊ถค๋์์ ์ด์๋๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? ์ ๋คptune์ ๊ถค๋๋ก ๋ณด๋ด์ง ์๋์? | ๊ธ์, ๋น์ ์ ์์ฐจ ์ธก์ ์ ๊ณต๊ฐ์ ์ธก๋ฉด์ ๋ํด์๋ ์๊ฐํ์ง๋ง, ์๊ฐ์ ์ธก๋ฉด์ ๋ํด์๋ ๊ณ ๋ คํ์ง ์์์ต๋๋ค. ๊ฐ์ด์์ ์๋๋ 3D ์์น์ 3D ์๋๋ฅผ ์ธก์ ํ๋ ๊ฒ์
๋๋ค. ๊ฑฐ๋ฆฌ๋ฅผ ์ธก์ ํ๊ธฐ ์ํด์๋ ์ ํํ ์์ฐจ ์ธก์ ์ด ํ์ํ๊ณ , ์ด๋ ๊ถค๋ ์ฃผ๊ธฐ์ ํจ๊ป ์ ๊ณต๋ฉ๋๋ค. ์ผ๋ฐ์ ์ธ ๊ฐ์ด์ ๋ณ์ ๊ฒฝ์ฐ, ๋งค๋
์ฌ๋ฌ ๋ฒ์ ์ธก์ ์ ํตํด 5๋
ํ์ 5๊ฐ์ ์์ฐจ ๊ฐ์ ์ป๊ณ ์ด๋ฅผ ํ๊ท ํํ๊ฒ ๋ฉ๋๋ค. ๋ง์ฝ ๊ฐ์ด์๋ฅผ ํด์์ฑ ์ชฝ์ผ๋ก ๋ณด๋ธ๋ค๋ฉด (์๋ฌด๋ ๊ทธ๋ ๊ฒ ๋จผ ๊ณณ์ ๊ถค๋์ ์ ๋ณด๋ธ ์ ์ด ์๋ค๋ ์ ์ ์ฐจ์นํ๊ณ ), ํด์์ฑ์ ์ฃผ๊ธฐ๋ 168๋
์ด๋ฏ๋ก 5๋
ํ์๋... 5/168์ ํ๋์ ์์ฐจ ์ธก์ ๊ฐ๋ฐ์ ์ป์ง ... |
I have a string representing a unix timestamp (i.e. "1284101485") in Python, and I'd like to convert it to a readable date. When I use ```time.strftime```, I get a ```TypeError```:
```>>>import time
>>>print time.strftime("%B %d %Y", "1284101485")
Traceback (most recent call last):
File ... | There are two parts here:
* Convert the unix timestamp ("seconds since epoch") to the local time
* Display the local time in the desired format.
A portable way to get the local time that works even if the local time zone had a different utc offset in the past and python has no access to the tz database is to use a ``... | ๋๋ ํ์ด์ฌ์์ ์ ๋์ค ํ์์คํฌํ๋ฅผ ๋ํ๋ด๋ ๋ฌธ์์ด(์ฆ, "1284101485")์ ๊ฐ์ง๊ณ ์์ผ๋ฉฐ, ์ด๋ฅผ ์ฝ์ ์ ์๋ ๋ ์ง๋ก ๋ณํํ๊ณ ์ถ์ต๋๋ค. ๋ด๊ฐ ```time.strftime```์ ์ฌ์ฉํ ๋, ```TypeError```๊ฐ ๋ฐ์ํฉ๋๋ค:
```>>>import time
>>>print time.strftime("%B %d %Y", "1284101485")
Traceback (most recent call last):
File "", line 1, in
TypeError: argument must be 9-item sequence, not str
``` | ์ฌ๊ธฐ์๋ ๋ ๊ฐ์ง ๋ถ๋ถ์ด ์์ต๋๋ค:
* ์ ๋์ค ํ์์คํฌํ("epoch ์ดํ์ ์ด")๋ฅผ ๋ก์ปฌ ์๊ฐ์ผ๋ก ๋ณํํ๊ธฐ
* ๋ก์ปฌ ์๊ฐ์ ์ํ๋ ํ์์ผ๋ก ํ์ํ๊ธฐ
๋ก์ปฌ ์๊ฐ๋๊ฐ ๊ณผ๊ฑฐ์ ๋ค๋ฅธ UTC ์คํ์
์ ๊ฐ์ก๋๋ผ๋ ์๋ํ๋ฉฐ, ํ์ด์ฌ์ด tz ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ๊ทผํ ์ ์๋ ๊ฒฝ์ฐ์๋ ๋ก์ปฌ ์๊ฐ์ ์ป๋ ํด๋ ๊ฐ๋ฅํ ๋ฐฉ๋ฒ์ ```pytz``` ์๊ฐ๋๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์
๋๋ค:
```#!/usr/bin/env python
from datetime import datetime
import tzlocal # $ pip install tzlocal
unix_timestamp = float("1... |
In Django, the convention is to put all of your static files (i.e css, js) specific to your app into a folder called static. So the structure would look like this:
```mysite/
manage.py
mysite/ --> (settings.py, etc)
myapp/ --> (models.py, views.py, etc)
static/
```
In ```mysite/settings.py``` I have... | ## Collect static files from multiple apps into a single path
A single Django project may use several apps, so while there you only have one ```myapp```, it may actually be ```myapp1```, ```myapp2```, etc
By copying them from inside the individual apps into a single folder, you can point your frontend web server (e.g.... | ์ฅ๊ณ ์์๋ ๋ชจ๋ ์ ์ ํ์ผ(์: css, js)์ ์ฑ์ ํน์ ๋ 'static'์ด๋ผ๋ ํด๋์ ๋๋ ๊ฒ์ด ๊ด๋ก์
๋๋ค. ๊ทธ๋์ ๊ตฌ์กฐ๋ ๋ค์๊ณผ ๊ฐ์ด ๋ณด์
๋๋ค:
```mysite/
manage.py
mysite/ --> (settings.py ๋ฑ)
myapp/ --> (models.py, views.py ๋ฑ)
static/
```
```mysite/settings.py```์๋ ๋ค์๊ณผ ๊ฐ์ด ์ค์ ๋์ด ์์ต๋๋ค:
```STATIC_ROOT = 'staticfiles'
```
๋ฐ๋ผ์ ๋ค์ ๋ช
๋ น์ด๋ฅผ ์คํํ๋ฉด:
```python manage.py c... | ## ์ฌ๋ฌ ์ฑ์ ์ ์ ํ์ผ์ ๋จ์ผ ๊ฒฝ๋ก๋ก ์์งํ๊ธฐ
๋จ์ผ Django ํ๋ก์ ํธ๋ ์ฌ๋ฌ ์ฑ์ ์ฌ์ฉํ ์ ์์ผ๋ฏ๋ก, ์ฌ๊ธฐ์๋ ํ๋์ ```myapp```๋ง ์์ง๋ง ์ค์ ๋ก๋ ```myapp1```, ```myapp2``` ๋ฑ์ด ์์ ์ ์์ต๋๋ค. ๊ฐ๋ณ ์ฑ ๋ด๋ถ์์ ์ ์ ํ์ผ์ ๋จ์ผ ํด๋๋ก ๋ณต์ฌํจ์ผ๋ก์จ, ํ๋ก ํธ์๋ ์น ์๋ฒ(์: nginx)๋ฅผ ๊ทธ ๋จ์ผ ํด๋์ธ ```STATIC_ROOT```์ ์ฐ๊ฒฐํ๊ณ ์ฌ๋ฌ ๊ฒฝ๋ก์์ ์ ์ ํ์ผ์ ์ ๊ณตํ๋ ๋์ ๋จ์ผ ์์น์์ ์ ์ ํ์ผ์ ์ ๊ณตํ ์ ์์ต๋๋ค.
## ManifestStaticFilesStorage๋ฅผ ์ด์ฉํ ์ง์์ ์ธ URL
๋ฒ์ ... |
I am used to thinking of finite-differences as a special case of finite-elements, on a very constrained grid. What are criteria to choose between finite-differences and finite-elements | It is possible to write most specific finite difference methods as Petrov-Galerkin finite element methods with some choice of local reconstruction and quadrature, and most finite element methods can also be shown to be algebraically equivalent to some finite difference method. Therefore, we should choose a method based... | ์ ํ ์ฐจ๋ถ์ ๋งค์ฐ ์ ํ๋ ๊ฒฉ์์ ์ ํ ์์์ ํน๋ณํ ๊ฒฝ์ฐ๋ก ์๊ฐํ๋ ๋ฐ ์ต์ํฉ๋๋ค. ์ ํ ์ฐจ๋ถ๊ณผ ์ ํ ์์๋ฅผ ์ ํํ๋ ๊ธฐ์ค์ ๋ฌด์์ธ๊ฐ์? | ๋๋ถ๋ถ์ ํน์ ์ ํ ์ฐจ๋ถ ๋ฐฉ๋ฒ์ ์ง์ญ ์ฌ๊ตฌ์ฑ๊ณผ ์ ๋ถ ๋ฐฉ์์ ์ ํ์ ๋ฐ๋ผ ํํธ๋กํ-๊ฐ๋ ๋ฅดํจ ์ ํ ์์ ๋ฐฉ๋ฒ์ผ๋ก ์์ฑํ ์ ์์ผ๋ฉฐ, ๋๋ถ๋ถ์ ์ ํ ์์ ๋ฐฉ๋ฒ๋ ์ด๋ค ์ ํ ์ฐจ๋ถ ๋ฐฉ๋ฒ๊ณผ ๋์์ ์ผ๋ก ๋๋ฑํ๋ค๋ ๊ฒ์ ๋ณด์ฌ์ค ์ ์์ต๋๋ค. ๋ฐ๋ผ์ ์ฐ๋ฆฌ๋ ์ด๋ค ๋ถ์ ํ๋ ์์ํฌ๋ฅผ ์ฌ์ฉํ ๊ฒ์ธ์ง, ์ด๋ค ์ฉ์ด๋ฅผ ์ ํธํ๋์ง, ์ด๋ค ํ์ฅ์ฑ ์์คํ
์ ์ ํธํ๋์ง, ์ํํธ์จ์ด ๊ตฌ์กฐ๋ฅผ ์ด๋ป๊ฒ ๊ตฌ์ฑํ ๊ฒ์ธ์ง์ ๋ฐ๋ผ ๋ฐฉ๋ฒ์ ์ ํํด์ผ ํฉ๋๋ค. ๋ค์์ ์ผ๋ฐํ๋ ์ค์ ์ฌ์ฉ์ ๋๋ถ๋ถ ๋ณํ์์ ์ ํจํ์ง๋ง, ๋ง์ ์ ์ ํํผํ ์ ์์ต๋๋ค.
์ ํ ์ฐจ๋ถ
์ฅ์
* ํจ์จ์ ์ธ ์ ๋ถ ์๋ ๊ตฌํ
* ํน์ ๋ฐฉ์์ ๋ํด ์ข
... |
How important is multithreading in the current software industry? | It is extremely important.
What is more important though is to understand that multithreading is just one way to solve the asynchrony problem. The technical environment in which many people are now writing software differs from the historical software development environment (of monolithic applications performing batch... | ํ์ฌ ์ํํธ์จ์ด ์ฐ์
์์ ๋ฉํฐ์ค๋ ๋ฉ์ ์ผ๋ง๋ ์ค์ํ๊ฐ์? | ๋งค์ฐ ์ค์ํฉ๋๋ค. ๊ทธ๋ฌ๋ ๋์ฑ ์ค์ํ ๊ฒ์ ๋ค์ค ์ค๋ ๋ฉ์ด ๋น๋๊ธฐ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ํ๋์ ๋ฐฉ๋ฒ์ ๋ถ๊ณผํ๋ค๋ ๊ฒ์ ์ดํดํ๋ ๊ฒ์
๋๋ค. ํ์ฌ ๋ง์ ์ฌ๋๋ค์ด ์ํํธ์จ์ด๋ฅผ ์์ฑํ๋ ๊ธฐ์ ํ๊ฒฝ์ ์ญ์ฌ์ ์ธ ์ํํธ์จ์ด ๊ฐ๋ฐ ํ๊ฒฝ(๋ฐฐ์น ๊ณ์ฐ์ ์ํํ๋ ๋ชจ๋๋ฆฌ์ ์ ํ๋ฆฌ์ผ์ด์
)๊ณผ ๋ ๊ฐ์ง ์ฃผ์ ๋ฐฉ์์์ ๋ค๋ฆ
๋๋ค:
* ๋ค์์ ์ฝ์ด๋ฅผ ๊ฐ์ง ๊ธฐ๊ณ๊ฐ ์ด์ ๋ ์ผ๋ฐ์ ์
๋๋ค. ์ฐ๋ฆฌ๋ ๋ ์ด์ ํด๋ญ ์๋๋ ํธ๋์ง์คํฐ ๋ฐ๋๊ฐ ๊ธฐํ๊ธ์์ ์ผ๋ก ์ฆ๊ฐํ ๊ฒ์ด๋ผ๊ณ ๊ธฐ๋ํ ์ ์์ต๋๋ค. ๊ณ์ฐ ๋น์ฉ์ ๊ณ์ํด์ ๊ฐ์ํ๊ฒ ์ง๋ง, ์ด๋ ๋ง์ ๋ณ๋ ฌ์ฑ ๋๋ถ์
๋๋ค. ์ฐ๋ฆฌ๋ ๊ทธ ํ์ ํ์ฉํ ๋ฐฉ๋ฒ์ ์ฐพ์์ผ ํฉ๋๋ค.
* ์ปดํจํฐ๋ ... |
Is it true that the price of diamonds is based on a monopoly? And who actually runs/owns this supposed monopoly? Is this likely to affect diamond prices if I am interested in purchasing? | Yes, the De Beers Group of Companies is a diamond cartel that had complete control of the diamond market for most of the 20th century. They still control a sizable portion of the market and their effort at marketing (particularly with the slogan "A Diamond is Forever") has done much to inflate the market for diamonds i... | ๋ค์ด์๋ชฌ๋ ๊ฐ๊ฒฉ์ด ๋
์ ์ ๊ธฐ๋ฐํ๊ณ ์๋ค๋ ๊ฒ์ด ์ฌ์ค์ธ๊ฐ์? ๊ทธ๋ฆฌ๊ณ ์ด ๊ฐ์ ๋ ๋
์ ์ ์ค์ ๋ก ์ด์ํ๊ฑฐ๋ ์์ ํ๋ ์ฌ๋์ ๋๊ตฌ์ธ๊ฐ์? ์ ๊ฐ ๊ตฌ๋งค๋ฅผ ๊ณ ๋ คํ๊ณ ์๋ค๋ฉด, ์ด๊ฒ์ด ๋ค์ด์๋ชฌ๋ ๊ฐ๊ฒฉ์ ์ํฅ์ ๋ฏธ์น ๊ฐ๋ฅ์ฑ์ด ์๋์? | ๋ค, ๋ ๋น์ด์ค ๊ทธ๋ฃน์ 20์ธ๊ธฐ ๋๋ถ๋ถ ๋์ ๋ค์ด์๋ชฌ๋ ์์ฅ์ ์์ ํ ํต์ ํ๋ ๋ค์ด์๋ชฌ๋ ์นด๋ฅดํ
์
๋๋ค. ๊ทธ๋ค์ ์ฌ์ ํ ์์ฅ์ ์๋น ๋ถ๋ถ์ ํต์ ํ๊ณ ์์ผ๋ฉฐ, "๋ค์ด์๋ชฌ๋๋ ์์ํ๋ค"๋ผ๋ ์ฌ๋ก๊ฑด์ ํตํด ๋ง์ผํ
์ ํ์ฐ๋ฉด์ ์ฐ๋ฆฌ ์ฌํ์ ๋ค์ด์๋ชฌ๋ ์์ฅ์ ๋ถํ๋ฆฌ๋ ๋ฐ ๋ง์ ๊ธฐ์ฌ๋ฅผ ํ์ต๋๋ค. ๋ค์ด์๋ชฌ๋์ ๋ณธ์ง์ ์ธ ๊ฐ์น๋ ํ์ฌ ์์ฅ ๊ฐ๊ฒฉ์ด ๋ฐ์ํ๋ ๊ฒ๋ณด๋ค ํจ์ฌ ๋ฎ์ง๋ง, ๋ ํฐ ๋ค์ด์๋ชฌ๋์ ๊ฒฝ์ฐ ํฌ์์ฑ ์์๊ฐ ๊ฐ๊ฒฉ์ ์ฌ๋ฆฌ๋ ์์ธ์ผ๋ก ์์ฉํฉ๋๋ค. ๋ค์ด์๋ชฌ๋๊ฐ ํด์๋ก ๊ฒฐํจ์ด ์์ ๊ฐ๋ฅ์ฑ์ด ๋์์ง๋ฏ๋ก, 5์บ๋ฟ ์ด์์ ๋ค์ด์๋ชฌ๋์์๋ ์๋ก์ด ๊ณต๊ธ์ด ์ด ๊ฐ๊ฒฉ์ ์ํฅ์ ๋ฏธ์น ๊ฐ๋ฅ์ฑ์ด ์ ์ต๋๋ค... |
Normal filesystem images can be easily mounted:
```mount system.img /mnt
```
Examined, and modified. But when I try this with a Raspberry Pi system image (e.g. raspbian), I get:
```mount: unknown filesystem type '(null)'
```
And no matter what I try with ```-t```, it won't work. How can I mount this image? | You can't mount the image as a whole because it actually contains two partitions and a boot sector. However, you can mount the individual partitions in the image if you know their offset inside the file. To find them, examine the image as a block device with ```fdisk -l whatever.img```. The output should include a t... | ์ ์์ ์ธ ํ์ผ ์์คํ
์ด๋ฏธ์ง๋ ์ฝ๊ฒ ๋ง์ดํธํ ์ ์์ต๋๋ค:
```mount system.img /mnt
```
๊ฒํ ํ๊ณ ์์ ํ ์ ์์ต๋๋ค. ํ์ง๋ง Raspberry Pi ์์คํ
์ด๋ฏธ์ง(์: raspbian)๋ก ์๋ํ ๋๋ ๋ค์๊ณผ ๊ฐ์ ๋ฉ์์ง๊ฐ ๋์ต๋๋ค:
```mount: unknown filesystem type '(null)'
```
๊ทธ๋ฆฌ๊ณ ```-t```๋ก ์ด๋ค ๊ฒ์ ์๋ํด๋ ์๋ํ์ง ์์ต๋๋ค. ์ด ์ด๋ฏธ์ง๋ฅผ ์ด๋ป๊ฒ ๋ง์ดํธํ ์ ์์๊น์? | ์ด๋ฏธ์ง๋ฅผ ์ ์ฒด์ ์ผ๋ก ๋ง์ดํธํ ์๋ ์์ต๋๋ค. ์๋ํ๋ฉด ์ค์ ๋ก ๋ ๊ฐ์ ํํฐ์
๊ณผ ๋ถํธ ์นํฐ๊ฐ ํฌํจ๋์ด ์๊ธฐ ๋๋ฌธ์
๋๋ค. ๊ทธ๋ฌ๋ ํ์ผ ๋ด์์ ์คํ์
์ ์๊ณ ์๋ค๋ฉด ์ด๋ฏธ์ง์ ๊ฐ๋ณ ํํฐ์
์ ๋ง์ดํธํ ์ ์์ต๋๋ค. ์ด๋ค์ ์ฐพ์ผ๋ ค๋ฉด ```fdisk -l whatever.img``` ๋ช
๋ น์ด๋ก ์ด๋ฏธ์ง๋ฅผ ๋ธ๋ก ์ฅ์น๋ก ๊ฒ์ฌํ์ญ์์ค. ์ถ๋ ฅ์ ๋ค์๊ณผ ๊ฐ์ ํ
์ด๋ธ์ ํฌํจํด์ผ ํฉ๋๋ค:
```Device Boot Start End Blocks Id System
whatever.img1 8192 122879 57344 c W95... |
How does immersion passively help with learning a language? | There are a few reasons why immersion helps you learn a language without you actively trying:
* You encounter the language more often. When you are immersed in a language, you don't go to class and do homework for a few hours a week, but rather use the language the entire day. You depend on the language to surviveโto... | ๋ชฐ์
์ด ์ธ์ด ํ์ต์ ์ด๋ป๊ฒ ์๋์ ์ผ๋ก ๋์์ด ๋๋์? | ์ธ์ด ๋ชฐ์
์ด ์ฌ๋ฌ๋ถ์ด ์ ๊ทน์ ์ผ๋ก ๋
ธ๋ ฅํ์ง ์๊ณ ๋ ์ธ์ด๋ฅผ ๋ฐฐ์ฐ๋ ๋ฐ ๋์์ด ๋๋ ๋ช ๊ฐ์ง ์ด์ ๊ฐ ์์ต๋๋ค:
* ์ธ์ด๋ฅผ ๋ ์์ฃผ ์ ํ๊ฒ ๋ฉ๋๋ค. ์ธ์ด์ ๋ชฐ์
ํ๊ฒ ๋๋ฉด, ์ฃผ ๋ช ์๊ฐ ์์
์ ๋ฃ๊ณ ์์ ๋ฅผ ํ๋ ๊ฒ์ด ์๋๋ผ ํ๋ฃจ ์ข
์ผ ๊ทธ ์ธ์ด๋ฅผ ์ฌ์ฉํ๊ฒ ๋ฉ๋๋ค. ์์กด์ ์ํด ์ธ์ด์ ์์กดํ๊ฒ ๋์ฃ โ์ฅ ๋ณด๊ธฐ๋ฅผ ํ๊ฑฐ๋ ๊ณ ์ฉ์ฃผ์ ๊ณ ๊ฐ๊ณผ ์ด์ผ๊ธฐํ๊ณ , ๊ธธ์ ๋ฌป๋ ๋ฑ. ์ธ์ด ์ฌ์ฉ์ ๊ฐ์ ๋ก ํ๊ฒ ๋๋ฉด, ์ ๊ทน์ ์ผ๋ก ๋
ธ๋ ฅํ์ง ์์๋ ์ธ์ด๋ฅผ ๋ฐฐ์ฐ๊ฒ ๋ฉ๋๋ค. ์ด๋ ์ํ ๋ฐฉ์์ด ๋ฉ๋๋ค.
* ์ฌ๋ฌ ๊ฐ์ง ๋ฐฉ๋ฒ์ผ๋ก ์ธ์ด๋ฅผ ๋ฐฐ์๋๋ค. ๊ต์ค ํ์ต์ ํน์ ํ๋์ ์ง์คํ๊ณ ์ผ๋ฐ์ ์ผ๋ก ์ดํ์ ๋ฌธ๋ฒ ํ์ต์ ์ด์ ์ ... |
I have a script, that does not exit when I want it to.
An example script with the same error is:
```#!/bin/bash
function bla() {
return 1
}
bla || ( echo '1' ; exit 1 )
echo '2'
```
I would assume to see the output:
```:~$ ./test.sh
1
:~$
```
But I actually see:
```:~$ ./test.sh
1
2
:~$
```
Does the ```()``` comman... | ```()``` runs commands in the subshell, so by ```exit``` you are exiting from subshell and returning to the parent shell. Use braces ```{}``` if you want to run commands in the current shell.
From bash manual:
(list) list is executed in a subshell environment. Variable assignments and builtin commands that affect t... | ์คํฌ๋ฆฝํธ๊ฐ ๋ด๊ฐ ์ํ ๋ ์ข
๋ฃ๋์ง ์์ต๋๋ค. ๊ฐ์ ์ค๋ฅ๊ฐ ์๋ ์์ ์คํฌ๋ฆฝํธ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
```#!/bin/bash
function bla() {
return 1
}
bla || ( echo '1' ; exit 1 )
echo '2'
```
๋๋ ๋ค์๊ณผ ๊ฐ์ ์ถ๋ ฅ์ ๋ณผ ๊ฒ์ด๋ผ๊ณ ์์ํ์ต๋๋ค:
```:~$ ./test.sh
1
:~$
```
ํ์ง๋ง ์ค์ ๋ก๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
```:~$ ./test.sh
1
2
:~$
```
`()` ๋ช
๋ น ์ฒด์ธ์ด ์ด๋ป๊ฒ ๋ฒ์๋ฅผ ์์ฑํ๋์? `exit`๋ ์คํฌ๋ฆฝํธ๊ฐ ์๋ ๋ฌด์์์ ๋๊ฐ๋ ๊ฑด๊ฐ์? | ```()```๋ ์๋ธ์
ธ์์ ๋ช
๋ น์ ์คํํ๋ฏ๋ก, ```exit```๋ฅผ ์
๋ ฅํ๋ฉด ์๋ธ์
ธ์์ ๋์ ๋ถ๋ชจ ์
ธ๋ก ๋์๊ฐ๊ฒ ๋ฉ๋๋ค. ํ์ฌ ์
ธ์์ ๋ช
๋ น์ ์คํํ๋ ค๋ฉด ์ค๊ดํธ ```{}```๋ฅผ ์ฌ์ฉํ์ธ์.
bash ๋งค๋ด์ผ์์:
(list) ๋ฆฌ์คํธ๋ ์๋ธ์
ธ ํ๊ฒฝ์์ ์คํ๋ฉ๋๋ค. ๋ณ์ ํ ๋น ๋ฐ ์
ธ ํ๊ฒฝ์ ์ํฅ์ ๋ฏธ์น๋ ๋นํธ์ธ ๋ช
๋ น์ ๋ช
๋ น์ด ์๋ฃ๋ ํ์๋ ํจ๊ณผ๊ฐ ๋จ์ง ์์ต๋๋ค. ๋ฐํ ์ํ๋ ๋ฆฌ์คํธ์ ์ข
๋ฃ ์ํ์
๋๋ค.
{ list; } ๋ฆฌ์คํธ๋ ํ์ฌ ์
ธ ํ๊ฒฝ์์ ๊ฐ๋จํ ์คํ๋ฉ๋๋ค. ๋ฆฌ์คํธ๋ ๊ฐํ ๋๋ ์ธ๋ฏธ์ฝ๋ก ์ผ๋ก ์ข
๋ฃ๋์ด์ผ ํฉ๋๋ค. ์ด๋ ๊ทธ๋ฃน ๋ช
๋ น์ผ๋ก ์๋ ค์ ธ ์์ต๋๋ค. ๋ฐํ ์ํ... |
Adding a new swap file. How to edit fstab to enable swap after reboot? | These ares the steps to create a swap on a file:
1. Create a large file e.g. with
```sudo mkdir -p /var/cache/swap/ # create a directory that holds the swap file
sudo dd if=/dev/zero of=/var/cache/swap/myswap bs=1M count=4096 # for 4 GByte
```
Of course any other method of creating a file of defined size would do.
... | ์ ์ค์ ํ์ผ ์ถ๊ฐ. ์ฌ๋ถํ
ํ ์ค์์ ํ์ฑํํ๋ ค๋ฉด fstab์ ์ด๋ป๊ฒ ํธ์งํด์ผ ํ๋์? | ๋ค์์ ํ์ผ์์ ์ค์์ ์์ฑํ๋ ๋จ๊ณ์
๋๋ค:
1. ํฐ ํ์ผ ์์ฑํ๊ธฐ ์๋ฅผ ๋ค์ด
```sudo mkdir -p /var/cache/swap/ # ์ค์ ํ์ผ์ ์ ์ฅํ ๋๋ ํ ๋ฆฌ ์์ฑ
sudo dd if=/dev/zero of=/var/cache/swap/myswap bs=1M count=4096 # 4 ๊ธฐ๊ฐ๋ฐ์ดํธ๋ฅผ ์ํ ์ค์
```
๋ฌผ๋ก ์ ์๋ ํฌ๊ธฐ์ ํ์ผ์ ์์ฑํ๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ๋ ๊ฐ๋ฅํฉ๋๋ค.
2. ์์คํ
์ ์ค์ ์๋ฆฌ๊ธฐ
```sudo chmod 0600 /var/cache/swap/myswap # ๋ฃจํธ๋ง ์ ๊ทผํด์ผ ํจ
sudo mkswap /var/cache/swap/... |
How do I add a validation to make sure the date string being passed to the method is in the ffg. format:
```'YYYY-MM-DD'
```
if it's not, method should raise some sort of error | The Python ```dateutil``` library is designed for this (and more). It will automatically convert this to a ```datetime``` object for you and raise a ```ValueError``` if it can't.
As an example:
```>>> from dateutil.parser import parse
>>> parse("2003-09-25")
datetime.datetime(2003, 9, 25, 0, 0)
```
This raises a ```Val... | ๋ฉ์๋์ ์ ๋ฌ๋๋ ๋ ์ง ๋ฌธ์์ด์ด ๋ค์ ํ์ `'YYYY-MM-DD'`์ธ์ง ํ์ธํ๋ ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ์ถ๊ฐํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์? ํ์์ด ๋ง์ง ์์ผ๋ฉด ๋ฉ์๋์์ ์ค๋ฅ๋ฅผ ๋ฐ์์์ผ์ผ ํฉ๋๋ค. | ํ์ด์ฌ์ ```dateutil``` ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์ด๋ฅผ ์ํด ์ค๊ณ๋์์ต๋๋ค(๊ทธ๋ฆฌ๊ณ ๊ทธ ์ด์). ์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์๋์ผ๋ก ์ด๋ฅผ ```datetime``` ๊ฐ์ฒด๋ก ๋ณํํด ์ฃผ๋ฉฐ, ๋ณํํ ์ ์๋ ๊ฒฝ์ฐ์๋ ```ValueError```๋ฅผ ๋ฐ์์ํต๋๋ค. ์๋ฅผ ๋ค์ด:
```>>> from dateutil.parser import parse
>>> parse("2003-09-25")
datetime.datetime(2003, 9, 25, 0, 0)
```
๋ ์ง ํ์์ด ์ฌ๋ฐ๋ฅด์ง ์์ผ๋ฉด ```ValueError```๊ฐ ๋ฐ์ํฉ๋๋ค:
```
ValueError: day is out of ... |
When to use UICollectionView instead of UITableView? | That depends on the requirements. How the application flows determines which type of UI to integrate into the application.
People mainly use the ```UICollectionview``` for creating types of UIs with multiple images shown in a grid. This would have complex logic using ```UITableView```, but with ```UICollectionview```, ... | UICollectionView๋ฅผ UITableView ๋์ ์ธ์ ์ฌ์ฉํด์ผ ํ๋์? | ๊ทธ๊ฒ์ ์๊ตฌ ์ฌํญ์ ๋ฐ๋ผ ๋ค๋ฆ
๋๋ค. ์ ํ๋ฆฌ์ผ์ด์
์ ํ๋ฆ์ ๋ฐ๋ผ ์ด๋ค ์ ํ์ UI๋ฅผ ํตํฉํ ์ง๊ฐ ๊ฒฐ์ ๋ฉ๋๋ค. ์ฌ๋๋ค์ ์ฃผ๋ก ์ฌ๋ฌ ์ด๋ฏธ์ง๋ฅผ ๊ฒฉ์ ํํ๋ก ํ์ํ๋ UI๋ฅผ ๋ง๋ค๊ธฐ ์ํด ```UICollectionView```๋ฅผ ์ฌ์ฉํฉ๋๋ค. ์ด ๊ฒฝ์ฐ ```UITableView```๋ฅผ ์ฌ์ฉํ ๋๋ ๋ณต์กํ ๋ก์ง์ด ํ์ํ์ง๋ง, ```UICollectionView```๋ฅผ ์ฌ์ฉํ๋ฉด ๊ฐ๋จํฉ๋๋ค.
```UICollectionView```๋ฅผ ์ฌ์ฉํ ๋๋ ์ ํํ ํญ๋ชฉ์ ๊ฐ์ ๊ฐ์ ธ์์ ํ๊ทธ๊ฐ ์๋ ๋ฒํผ์ด๋ ๋ค๋ฅธ ์ค์ ์ ํ ํ์๊ฐ ์์ต๋๋ค. ๊ฐ๋จํ ```-(void)collectionView:... |
On my branch I had some files in .gitignore
On a different branch those files are not.
I want to merge the different branch into mine, and I don't care if those files are no longer ignored or not.
Unfortunately I get this:
The following untracked working tree files would be overwritten by merge
How would I modify ... | Safely remove/overwrite only bothersome files
When you want to ```merge```:
```git checkout -f donor-branch # replace bothersome files with tracked versions
git checkout receiving-branch # tracked bothersome files disappear
git merge donor-branch # merge works
```
When you want to ```pull```:
```git fetch
gi... | ๋ด ๋ธ๋์น์๋ .gitignore์ ์๋ ํ์ผ๋ค์ด ์์๊ณ , ๋ค๋ฅธ ๋ธ๋์น์๋ ๊ทธ ํ์ผ๋ค์ด ์์ต๋๋ค. ๋๋ ๋ค๋ฅธ ๋ธ๋์น๋ฅผ ๋ด ๋ธ๋์น์ ๋ณํฉํ๊ณ ์ถ์๋ฐ, ๊ทธ ํ์ผ๋ค์ด ๋ ์ด์ ๋ฌด์๋์ง ์๋ ์๊ด์์ต๋๋ค. ๋ถํํ๋ ๋ค์๊ณผ ๊ฐ์ ๋ฉ์์ง๊ฐ ๋ํ๋ฉ๋๋ค:
๋ณํฉ์ผ๋ก ์ธํด ๋ค์์ ์ถ์ ๋์ง ์์ ์์
ํธ๋ฆฌ ํ์ผ์ด ๋ฎ์ด์ฐ์ฌ์ง ๊ฒ์
๋๋ค.
๋ด๊ฐ ๊ทธ ํ์ผ๋ค์ ์ง์ ์ฐพ๊ฑฐ๋ ์ด๋ํ๊ฑฐ๋ ์ญ์ ํ์ง ์๊ณ ๋ ํด๋น ํ์ผ๋ค์ ๋ฎ์ด์ฐ๋๋ก ๋ด pull ๋ช
๋ น์ด๋ฅผ ์ด๋ป๊ฒ ์์ ํ ์ ์์๊น์? | ๊ท์ฐฎ์ ํ์ผ๋ง ์์ ํ๊ฒ ์ ๊ฑฐ/๋ฎ์ด์ฐ๊ธฐ
๋ณํฉ์ ์ํ ๋:
```git checkout -f donor-branch # ๊ท์ฐฎ์ ํ์ผ์ ์ถ์ ๋ ๋ฒ์ ์ผ๋ก ๊ต์ฒด
git checkout receiving-branch # ์ถ์ ๋ ๊ท์ฐฎ์ ํ์ผ์ด ์ฌ๋ผ์ง
git merge donor-branch # ๋ณํฉ์ด ์ ์์ ์ผ๋ก ์งํ๋จ
```
๊ฐ์ ธ์ค๊ธฐ๋ฅผ ์ํ ๋:
```git fetch
git checkout -f origin/mybranch # ๊ท์ฐฎ์ ํ์ผ์ ์ถ์ ๋ ๋ฒ์ ์ผ๋ก ๊ต์ฒด
git checkout mybranch ... |
Since long time ago I have been thinking in two problems that I have not been able to solve. It seems that one of them was recently solved. I have been thinking a lot about the motivation and its consequences. Mostly because people used to motivate one of them with some very interesting implications. My conclusion howe... | The three-body problem is one of the most famous problems in the history of mathematics, which also has an important application in science: it was supposed to explain the Moon's motion, among other things. Enormous effort was spent on this problem by many famous mathematicians of the 18th and 19th centuries. Since New... | ์ค๋์ ๋ถํฐ ์ ๊ฐ ํด๊ฒฐํ์ง ๋ชปํ ๋ ๊ฐ์ง ๋ฌธ์ ์ ๋ํด ์๊ฐํด์์ต๋๋ค. ๊ทธ ์ค ํ๋๋ ์ต๊ทผ์ ํด๊ฒฐ๋ ๊ฒ ๊ฐ์ต๋๋ค. ์ ๋ ๊ทธ ๋๊ธฐ์ ๊ทธ ๊ฒฐ๊ณผ์ ๋ํด ๋ง์ด ๊ณ ๋ฏผํด์์ต๋๋ค. ์ฃผ๋ก ์ฌ๋๋ค์ด ๋งค์ฐ ํฅ๋ฏธ๋ก์ด ํจ์๋ก ๋ฌธ์ ์ค ํ๋๋ฅผ ๋๊ธฐํํ๊ธฐ ๋๋ฌธ์
๋๋ค. ํ์ง๋ง ์ ๊ฒฐ๋ก ์ ๋ฌธ์ ์ ๋๊ธฐ์ ์ค๋ฅ๊ฐ ์๋ค๋ ๊ฒ์ด๋ฉฐ, ์ ๋ง ํฅ๋ฏธ๋ก์ด ๊ฒฐ๊ณผ์์๋ ๋ถ๊ตฌํ๊ณ ๊ทธ๊ฒ์ด ์ค์ ๋ ๋งฅ๋ฝ์์๋ ์๋ฌด๋ฐ ์๋ฏธ๊ฐ ์๋ค๋ ๊ฒ์
๋๋ค. ์ ์๊ฒฌ์ ํด๋น ๋ถ์ผ์ ์ ๋ฌธ๊ฐ๋ค๊ณผ ๋น๊ตํ ๋ ์ค์ํ์ง ์๊ธฐ ๋๋ฌธ์ ์๋ฌด ๋ง๋ ํ์ง ์์ต๋๋ค.
์ ์ง๋ฌธ์ ํน์ ํ ์ด์ ๋ก ์ธํด ์ํ ๊ณต๋์ฒด์์ ํฅ๋ฏธ๋กญ๋ค๊ณ ์ฌ๊ฒจ์ก๋ ์ถ์ธก์ ์์๋ฅผ ์ ๊ณตํด ์ค... | ์ผ์ฒด ๋ฌธ์ ๋ ์ํ ์ญ์ฌ์ ๊ฐ์ฅ ์ ๋ช
ํ ๋ฌธ์ ์ค ํ๋๋ก, ๊ณผํ์์๋ ์ค์ํ ์์ฉ์ด ์์ต๋๋ค. ์ด ๋ฌธ์ ๋ ๋ฌ์ ์ด๋์ ์ค๋ช
ํ๋ ๋ฐ ํ์ํ ๊ฒ์ผ๋ก ์ฌ๊ฒจ์ก์ต๋๋ค. 18์ธ๊ธฐ์ 19์ธ๊ธฐ์ ๋ง์ ์ ๋ช
ํ ์ํ์๋ค์ด ์ด ๋ฌธ์ ์ ๋ง๋ํ ๋
ธ๋ ฅ์ ๊ธฐ์ธ์์ต๋๋ค. ๋ดํด ์๋๋ถํฐ ๊ฐ๋จํ ๋ซํ ํํ์ ํด๊ฐ ์๋ค๋ ๊ฒ์ ๋ช
๋ฐฑํ์ต๋๋ค. (์ด ๋ฌธ์ ๋ 18์ธ๊ธฐ์๋ ์ค์ํ ์ค์ฉ์ ์์ฉ์ด ์์๋๋ฐ, ๋ฐ๋ก ํญํด์ ๊ด๋ จ๋ ๊ฒ์ด์์ต๋๋ค. ๋ง์ฝ ๋ช ๋
๋์ ๋ฌ์ ์ด๋์ ์ถฉ๋ถํ ์ ํํ๊ฒ ์์ธกํ ์ ์๋ค๋ฉด, ํญํด ์ ํฌ๋ก๋
ธ๋ฏธํฐ ์์ด๋ ๋ณ์ ๋ํ ๋ฌ์ ์์น ๊ด์ฐฐ๋ง์ผ๋ก ๊ฒฝ๋๋ฅผ ๊ฒฐ์ ํ ์ ์์ต๋๋ค.)
19์ธ๊ธฐ ์ค๋ฐ์๋ ... |
How do GPS receivers communicate with satellites? | The first thing to know is the communication is one-way. There's a satellite-to-receiver transmission, nothing going in the opposite direction. So your cell phone doesn't have to find the radio power to send a signal all the way to space!
(exceptions: The decommissioned Chinese BeiDou-1 system - and any products where ... | GPS ์์ ๊ธฐ๋ ์์ฑ๊ณผ ์ด๋ป๊ฒ ํต์ ํ๋์? | ์ฒซ ๋ฒ์งธ๋ก ์์์ผ ํ ๊ฒ์ ํต์ ์ด ์ผ๋ฐฉ์ ์ด๋ผ๋ ๊ฒ์
๋๋ค. ์์ฑ์์ ์์ ๊ธฐ๋ก์ ์ ์ก์ด ์์ ๋ฟ, ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก๋ ์๋ฌด๊ฒ๋ ์ ์ก๋์ง ์์ต๋๋ค. ๊ทธ๋์ ์ฌ๋ฌ๋ถ์ ํด๋์ ํ๋ ์ ํธ๋ฅผ ์ฐ์ฃผ๊น์ง ๋ณด๋ด๊ธฐ ์ํด ๋ผ๋์ค ์ ํ๋ฅผ ์ฐพ์์ผ ํ ํ์๊ฐ ์์ต๋๋ค!
(์์ธ: ํด์ญํ ์ค๊ตญ์ BeiDou-1 ์์คํ
- ๊ทธ๋ฆฌ๊ณ GPS ์์ ๊ธฐ ์นฉ์ด ์์ฑ ์ก์ ๊ธฐ์ ํจ๊ป ์ฌ์ฉ๋๋ ์ ํ, ์๋ฅผ ๋ค์ด Cospas-Sarsat ๋น์ ์์น ๋ฐ์ ๊ธฐ)
GPS ์์ฑ์์ ์ค๋ ์ ํธ๋ ๋งค์ฐ ์ฝํฉ๋๋ค. ๊ฐ ์์ฑ์ ํ์๊ด ํจ๋๋ก๋ง ์ ์์ด ๊ณต๊ธ๋๋ฉฐ, ์ง๊ตฌ์ ์ฝ ์ ๋ฐ์ ์ ํธ๋ฅผ ๋ฐฉ์กํด์ผ ํฉ๋๋ค! ๊ทธ๋์ ๋ฐฉ์ก ์ ํธ๋ '๊ณจ๋ ... |
Why is iceberg lettuce bad for rabbits? | In short, iceberg lettuce is mostly water with little to no nutrient value. A rabbit can fill up on it (because of the bulk), but still need food because they didn't get enough calories, vitamins, minerals, etc.
If you look at the USDA's webpage on iceberg lettuce. You'll notice that water makes up just about 95% of th... | ์ผ์์์ถ๊ฐ ํ ๋ผ์๊ฒ ๋์ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์? | ๊ฐ๋จํ ๋งํด, ์์ด์ค๋ฒ๊ทธ ๋ก๋ฉ์ธ์ ๋๋ถ๋ถ ๋ฌผ๋ก ์ด๋ฃจ์ด์ ธ ์์ผ๋ฉฐ ์์ ๊ฐ์น๊ฐ ๊ฑฐ์ ์์ต๋๋ค. ํ ๋ผ๋ ๋ถํผ ๋๋ฌธ์ ์ด๋ฅผ ๋ง์ด ๋จน์ ์ ์์ง๋ง, ์ถฉ๋ถํ ์นผ๋ก๋ฆฌ, ๋นํ๋ฏผ, ๋ฏธ๋ค๋ ๋ฑ์ ์ป์ง ๋ชปํ๊ธฐ ๋๋ฌธ์ ์ฌ์ ํ ๋ค๋ฅธ ์์์ ํ์๋ก ํฉ๋๋ค. USDA์ ์์ด์ค๋ฒ๊ทธ ๋ก๋ฉ์ธ์ ๊ดํ ์นํ์ด์ง๋ฅผ ์ดํด๋ณด๋ฉด, ์์์์ ์ฝ 95%๊ฐ ๋ฌผ๋ก ๊ตฌ์ฑ๋์ด ์๊ณ , ๋๋จธ์ง 5%๊ฐ ๋ค๋ฅธ ์์์๋ก ๋๋์ด ์์์ ์ ์ ์์ต๋๋ค. ๋จ๋ฐฑ์ง์ 1% ๋ฏธ๋ง, ํ์ํ๋ฌผ์ 3% ๋ฏธ๋ง, ๋น๋ถ์ 2% ๋ฏธ๋ง์
๋๋ค.
๊ฐ์ฅ ์ค์ํ ๊ฒ์ ๋นํ๋ฏผ๊ณผ ์นผ๋ก๋ฆฌ ํจ๋์ ์ฃผ๋ชฉํ๋ ๊ฒ์
๋๋ค. ์์ด์ค๋ฒ๊ทธ ๋ก๋ฉ์ธ์ 100๊ทธ๋จ๋น ๊ฒจ์ฐ 14์นผ๋ก... |
How do I open the JavaScript console in different browsers? | Chrome
Opening the โConsoleโ panel of Chromeโs DevTools:
* Windows and Linux: Ctrl + Shift + J
* Mac OS: Cmd + Opt + J
Note: In addition to the โConsoleโ panel, there also exists a smaller slide-up console which can be toggled via Esc while any of the other panels is active.
Firefox
Opening the โConsoleโ panel in F... | ๋ค์ํ ๋ธ๋ผ์ฐ์ ์์ JavaScript ์ฝ์์ ์ฌ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? | ํฌ๋กฌ
ํฌ๋กฌ์ ๊ฐ๋ฐ์ ๋๊ตฌ์์ "์ฝ์" ํจ๋ ์ด๊ธฐ:
* ์๋์ฐ ๋ฐ ๋ฆฌ๋
์ค: Ctrl + Shift + J
* ๋งฅ OS: Cmd + Opt + J
์ฐธ๊ณ : "์ฝ์" ํจ๋ ์ธ์๋ ๋ค๋ฅธ ํจ๋์ด ํ์ฑํ๋ ์ํ์์ Esc๋ฅผ ๋๋ฌ ์ ํํ ์ ์๋ ์์ ์ฌ๋ผ์ด๋์
์ฝ์์ด ์์ต๋๋ค.
ํ์ด์ดํญ์ค
ํ์ด์ดํญ์ค์ ๊ฐ๋ฐ์ ๋๊ตฌ์์ "์ฝ์" ํจ๋ ์ด๊ธฐ:
* ์๋์ฐ: Ctrl + Shift + K
* ๋งฅ OS: Cmd + Opt + K
์ฐธ๊ณ : "์ฝ์" ํจ๋ ์ธ์๋ ๋ค๋ฅธ ํจ๋์ด ํ์ฑํ๋ ์ํ์์ Esc๋ฅผ ๋๋ฌ ์ ํํ ์ ์๋ ์์ ์ฌ๋ผ์ด๋์
์ฝ์์ด ์์ต๋๋ค.... |
I have Ubuntu 10 as the guest OS on a Windows 7 machine. I have been trying to setup shares through VirtualBox, but nothing is working. First, I create the share in VirtualBox and point it to a Windows folder. Then I try to mount the drive in Linux, but I keep getting
```/sbin/mount.vboxsf: mounting failed with the ... | In order to use shared folder functionality few prerequisites need to be met:
* Make sure that Guest Additions are properly installed on the guest OS.
* Users in a guest Ubuntu must be in the group ```vboxsf``` to be able to access shares.
* Define a directory on the host that will be used in the virtual machine using... | ์ ๋ Windows 7 ๊ธฐ๊ณ์์ ๊ฒ์คํธ OS๋ก Ubuntu 10์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. VirtualBox๋ฅผ ํตํด ๊ณต์ ๋ฅผ ์ค์ ํ๋ ค๊ณ ํ์ง๋ง, ์๋ฌด๊ฒ๋ ์๋ํ์ง ์์ต๋๋ค. ๋จผ์ , VirtualBox์์ ๊ณต์ ๋ฅผ ์์ฑํ๊ณ ์ด๋ฅผ Windows ํด๋์ ์ง์ ํ์ต๋๋ค. ๊ทธ๋ฐ ๋ค์ Linux์์ ๋๋ผ์ด๋ธ๋ฅผ ๋ง์ดํธํ๋ ค๊ณ ์๋ํ์ง๋ง, ๊ณ์ํด์ ๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค:
```/sbin/mount.vboxsf: mounting failed with the error: Protocol error
```
์ด ๋ฌธ์ ์ ๋ํ ์ฌ๋ฌ ํด๊ฒฐ์ฑ
์ ์ฝ์ด๋ณด์์ง๋ง, ์ด๋ค ๊ฒ๋ ํจ๊ณผ๊ฐ ์์์ต๋๋ค. ์ ๊ฐ ์... | ๊ณต์ ํด๋ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋ช ๊ฐ์ง ์ ์ ์กฐ๊ฑด์ ์ถฉ์กฑํด์ผ ํฉ๋๋ค:
* ๊ฒ์คํธ OS์ ๊ฒ์คํธ ์ถ๊ฐ ๊ธฐ๋ฅ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ค์น๋์ด ์๋์ง ํ์ธํ์ธ์.
* ๊ฒ์คํธ ์ฐ๋ถํฌ์ ์ฌ์ฉ์๋ ๊ณต์ ํด๋์ ์ ๊ทผํ ์ ์๋๋ก ```vboxsf``` ๊ทธ๋ฃน์ ์ํด์ผ ํฉ๋๋ค.
* Virtual Box์ ์ค์ ๋ํ์์๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ์ ๋จธ์ ์์ ์ฌ์ฉํ ํธ์คํธ์ ๋๋ ํ ๋ฆฌ๋ฅผ ์ ์ํฉ๋๋ค.
ํธ์คํธ ๋๋ ๊ฒ์คํธ OS์ ๋ฐ๋ผ ๋ค์ ์ฌํญ์ด ํ์ํ ์ ์์ต๋๋ค:
* ๊ฐ์ธ ํด๋์ธ ```/home/username``` ๋๋ ```My Documents```์ ๊ฐ์ ํด๋๋ ๊ณต์ ํ์ง ๋ง์ธ์.
* ๊ณต์ ํด๋ ... |
What does %~dp0 mean, and how does it work?
I'd also like to know if it is a documented feature, or something prone to be deprecated. | Calling `for /?` in the command-line gives help about this syntax (which can be used outside FOR, too, this is just the place where help can be found).
> In addition, substitution of FOR variable references has been enhanced. You can now use the following optional
syntax:
```%~I - expands %I removing any sur... | %~dp0๋ ๋ฌด์์ ์๋ฏธํ๋ฉฐ, ์ด๋ป๊ฒ ์๋ํ๋์? ๋ํ ์ด๊ฒ์ด ๋ฌธ์ํ๋ ๊ธฐ๋ฅ์ธ์ง, ์๋๋ฉด ํ๊ธฐ๋ ๊ฐ๋ฅ์ฑ์ด ์๋ ๊ฒ์ธ์ง ์๊ณ ์ถ์ต๋๋ค. | `for /?`๋ฅผ ๋ช
๋ น์ค์์ ํธ์ถํ๋ฉด ์ด ๊ตฌ๋ฌธ์ ๋ํ ๋์๋ง์ด ์ ๊ณต๋ฉ๋๋ค(์ด ๊ตฌ๋ฌธ์ FOR ์ธ๋ถ์์๋ ์ฌ์ฉํ ์ ์์ผ๋ฉฐ, ์ฌ๊ธฐ์์ ๋์์ ์ฐพ์ ์ ์์ต๋๋ค).
๋ํ FOR ๋ณ์ ์ฐธ์กฐ์ ์นํ์ด ํฅ์๋์์ต๋๋ค. ์ด์ ๋ค์๊ณผ ๊ฐ์ ์ ํ์ ๊ตฌ๋ฌธ์ ์ฌ์ฉํ ์ ์์ต๋๋ค:
```%~I - %I์ ์ฃผ๋ณ ๋ฐ์ดํ (")๋ฅผ ์ ๊ฑฐํ์ฌ ํ์ฅํฉ๋๋ค.
%~fI - %I๋ฅผ ์์ ํ ๊ฒฝ๋ก ์ด๋ฆ์ผ๋ก ํ์ฅํฉ๋๋ค.
%~dI - %I๋ฅผ ๋๋ผ์ด๋ธ ๋ฌธ์๋ก๋ง ํ์ฅํฉ๋๋ค.
%~pI - %I๋ฅผ ๊ฒฝ๋ก๋ก๋ง ํ์ฅํฉ๋๋ค.
%~nI - %I๋ฅผ ํ์ผ ์ด๋ฆ์ผ๋ก๋ง... |
Should a tester feel bad about finding too many defects/bugs in the product? | If this is a medical application you are talking about it is serious stuff. What if the bugs affected real users? Developers would be much less happy if they put in life threat someone or if management has to retire a product or make public excuses. Nowadays it is pretty standard for software having minor bugs, but a m... | ํ
์คํฐ๊ฐ ์ ํ์์ ๊ฒฐํจ์ด๋ ๋ฒ๊ทธ๋ฅผ ๋๋ฌด ๋ง์ด ๋ฐ๊ฒฌํ๋ค๊ณ ํด์ ๊ธฐ๋ถ์ด ๋๋น ์ ธ์ผ ํ ๊น์? | ์๋ฃ ๊ด๋ จ ์ ํ๋ฆฌ์ผ์ด์
์ ๋ํด ์ด์ผ๊ธฐํ๊ณ ์๋ค๋ฉด, ์ด๋ ๋งค์ฐ ์ฌ๊ฐํ ๋ฌธ์ ์
๋๋ค. ๋ฒ๊ทธ๊ฐ ์ค์ ์ฌ์ฉ์์๊ฒ ์ํฅ์ ๋ฏธ์น๋ค๋ฉด ์ด๋ป๊ฒ ๋ ๊น์? ๊ฐ๋ฐ์๋ค์ ์๋ช
์ ์ํ์ ์ฃผ๋ ๋ฌธ์ ๋ฅผ ๋ฐ์์์ผฐ์ ๊ฒฝ์ฐ๋, ๊ฒฝ์์ง์ด ์ ํ์ ์ฒ ํํ๊ฑฐ๋ ๊ณต๊ฐ์ ์ผ๋ก ์ฌ๊ณผํด์ผ ํ ๊ฒฝ์ฐ ํจ์ฌ ๋ ํ๋ณตํ ๊ฒ์
๋๋ค. ์์ฆ ์ํํธ์จ์ด์์ ๊ฒฝ๋ฏธํ ๋ฒ๊ทธ๋ ๊ฝค ํํ์ง๋ง, ์๋ฃ ์ ํ๋ฆฌ์ผ์ด์
์ ๊ฐ๋ฅํ ํ ๋ฒ๊ทธ๊ฐ ์๋ ์ํ์ฌ์ผ ํฉ๋๋ค.
์ข์ ๊ฐ๋ฐ์๋ ๋ฒ๊ทธ์ ํ๋ฅผ ๋ด๊ธฐ๋ณด๋ค๋ ์คํ๋ ค ๊ธฐ๋ปํด์ผ ํ๋ฉฐ, ์ข์ ๊ด๋ฆฌ์๋ ์ํํธ์จ์ด ๊ฐ๋ฐ์ด ์ด๋ป๊ฒ ์งํ๋๋์ง ์ด๋ฏธ ์๊ณ ์๊ธฐ ๋๋ฌธ์ ์ ๋ง ํ์ํ์ง ์์ ํ ํ์ ๊ณผ๋ํ ์๋ฐ์ ๊ฐํด์๋... |
Millions of colors in the visible spectrum can be generated by mixing red, green and blue - the RGB color system. Is there a basic set of smells that, when mixed, can yield all, or nearly all detectable smells ? | There are about 100 (Purves, 2001) to 400 (Zozulya et al., 2001) functional olfactory receptors in man. While the total tally of olfactory receptor genes exceeds 1000, more than half of them are inactive pseudogenes. The combined activity of the expressed functional receptors accounts for the number of distinct odors t... | ๊ฐ์ ์คํํธ๋ผ์์ ์๋ฐฑ๋ง ๊ฐ์ง ์๊น์ ๋นจ๊ฐ, ์ด๋ก, ํ๋์ ํผํฉํ์ฌ ์์ฑํ ์ ์์ต๋๋ค - RGB ์์ ์์คํ
์
๋๋ค. ๊ทธ๋ ๋ค๋ฉด ํผํฉํ์ ๋ ๋ชจ๋ , ๋๋ ๊ฑฐ์ ๋ชจ๋ ๊ฐ์ง ๊ฐ๋ฅํ ๋์๋ฅผ ์์ฑํ ์ ์๋ ๊ธฐ๋ณธ์ ์ธ ๋์ ์ธํธ๊ฐ ์์๊น์? | ์ธ๊ฐ์๊ฒ๋ ์ฝ 100๊ฐ(Purves, 2001)์์ 400๊ฐ(Zozulya et al., 2001)์ ๊ธฐ๋ฅ์ ํ๊ฐ ์์ฉ์ฒด๊ฐ ์๋ค. ํ๊ฐ ์์ฉ์ฒด ์ ์ ์์ ์ด ์๋ 1000๊ฐ๋ฅผ ์ด๊ณผํ์ง๋ง, ๊ทธ ์ค ์ ๋ฐ ์ด์์ ๋นํ์ฑ ์ ์ ์์ด๋ค. ๋ฐํ๋ ๊ธฐ๋ฅ์ ์์ฉ์ฒด์ ๊ฒฐํฉ๋ ํ๋์ ์ธ๊ฐ์ ํ๊ฐ ์์คํ
์ด ๊ตฌ๋ณํ ์ ์๋ ๋
ํนํ ๋์์ ์๋ฅผ ๋ํ๋ด๋ฉฐ, ์ด๋ ์ฝ 10,000๊ฐ๋ก ์ถ์ ๋๋ค(Purves, 2001).
๋ค์ํ ์์ฉ์ฒด๋ โ์กฐ์จ ๊ณก์ โ์ ์ ์ํ๋ ํํ ๋ฌผ์ง์ ํ์ ์งํฉ์ ๋ฏผ๊ฐํ๋ค. ํน์ ํ๊ฐ ์์ฉ์ฒด ๋ถ์๋ฅผ ํฌํจํ๋ ์ผ๋ถ ํ๊ฐ ์์ฉ์ฒด ๋ด๋ฐ์ ํน์ ํํ ์๊ทน์ ๋ํด ๋๋ ทํ ์ ํ์ฑ์ ๋ณด... |
Do you bleed to death after your penis is cut off? | Assuming the person is not taking anticoagulants, it's actually quite difficult to bleed to death from dismemberment of small members (hands, feet, penis, ears, nose, etc). Even large members such as arms and legs are often survivable because the body is very good at protecting itself from blood loss. For example, tran... | ์๊ฒฝ์ด ์๋ฆฌ๋ฉด ์ฃฝ์ ๋๊น์ง ์ถํ์ด ์๋์? | ์ฌ๋์ด ํญ์๊ณ ์ ๋ฅผ ๋ณต์ฉํ์ง ์๋๋ค๊ณ ๊ฐ์ ํ ๋, ์์ ์ ์ฒด ๋ถ์(์, ๋ฐ, ์๊ฒฝ, ๊ท, ์ฝ ๋ฑ)์ ์ ๋จ์ผ๋ก ์ธํด ์ฌ๋งํ๋ ๊ฒ์ ์ฌ์ค ๋งค์ฐ ์ด๋ ต์ต๋๋ค. ํ๊ณผ ๋ค๋ฆฌ์ ๊ฐ์ ํฐ ์ ์ฒด ๋ถ์๋ ์์กด ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค. ๋ชธ์ ํ์ก ์์ค๋ก๋ถํฐ ์ค์ค๋ก๋ฅผ ๋ณดํธํ๋ ๋ฐ ๋งค์ฐ ๋ฅ์ํ๊ธฐ ๋๋ฌธ์
๋๋ค. ์๋ฅผ ๋ค์ด, ์ ๋จ๋ ๋๋งฅ์ ๊ฒฝ๋ จ์ ์ผ์ผ์ผ ํ๋ฅ๋ฅผ ์ฐจ๋จํ๊ณ , ํ์ก ์์ค๋ก ์ธํด ๋ชธ์ ๋ง์ด ํ๊ด์์ ์ค์ํ ์ฅ๊ธฐ๋ก ํ๋ฅ๋ฅผ ์ ํํ์ฌ ์ถํ ์๋๋ฅผ ๋ฆ์ถ๊ณ ์๊ณ ๋ฅผ ๋์ต๋๋ค. ์ฌ์ค, ์ ๋ฐ์ ์ธ ์ผํฌ ๊ณผ์ ์ ์ฌ๊ฐํ ๋ถ์์ ์ง๋ฉดํ์ ๋ ์์กด์ ๋ณด์ฅํ๊ธฐ ์ํ ๋ชธ์ ๋ฐฉ์ด ์กฐ์น๋ก ๋ณผ ์ ์์ต๋๋ค. ์ด๋ ์๊ธ ์ํ์... |
In Swift, is there a clever way of using the higher order methods on Array to return the 5 first objects?
The obj-c way of doing it was saving an index, and for-loop through the array incrementing index until it was 5 and returning the new array. Is there a way to do this with ```filter```, ```map``` or ```reduce```? | With Swift 5, according to your needs, you may choose one of the 6 following Playground codes in order to solve your problem.
#1. Using ```subscript(_:)``` subscript
```let array = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]
let arraySlice = array[..<5]
//let arraySlice = array[0..<5] // also works
//... | Swift์์ Array์ ๊ณ ์ฐจ ํจ์๋ค์ ์ฌ์ฉํ์ฌ ์ฒ์ 5๊ฐ์ ๊ฐ์ฒด๋ฅผ ๋ฐํํ๋ ๊ฐ๋จํ ๋ฐฉ๋ฒ์ด ์์๊น์? Obj-C์์๋ ์ธ๋ฑ์ค๋ฅผ ์ ์ฅํ๊ณ , ์ธ๋ฑ์ค๊ฐ 5๊ฐ ๋ ๋๊น์ง ๋ฐฐ์ด์ for-loop๋ก ๋๋ฉฐ ์๋ก์ด ๋ฐฐ์ด์ ๋ฐํํ์ต๋๋ค. ```filter```, ```map``` ๋๋ ```reduce```๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฅผ ์ํํ ๋ฐฉ๋ฒ์ด ์์๊น์? | Swift 5์์๋ ํ์์ ๋ฐ๋ผ ๋ค์ 6๊ฐ์ Playground ์ฝ๋ ์ค ํ๋๋ฅผ ์ ํํ์ฌ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ต๋๋ค.
#1. ```subscript(_:)``` ์๋ธ์คํฌ๋ฆฝํธ ์ฌ์ฉ
```let array = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]
let arraySlice = array[..<5]
//let arraySlice = array[0..<5] // ์๋ํจ
//let arraySlice = array[0...4] // ์๋ํจ
//let arraySlice = array[...4] // ์๋... |
What's the simplest way to get an environment variable from a docker container that has not been declared in the Dockerfile?
For instance, an environment variable that has been set through some ```docker exec container /bin/bash``` session?
I can do ```docker exec container env | grep ENV_VAR```, but I would prefer som... | The downside of using ```docker exec``` is that it requires a running container, so ```docker inspect -f``` might be handy if you're unsure a container is running.
Example #1. Output a list of space-separated environment variables in the specified container:
```docker inspect -f \
'{{range $index, $value := .Config.... | ๋์ปค ํ์ผ์ ์ ์ธ๋์ง ์์ ํ๊ฒฝ ๋ณ์๋ฅผ ๋์ปค ์ปจํ
์ด๋์์ ๊ฐ์ฅ ๊ฐ๋จํ๊ฒ ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? ์๋ฅผ ๋ค์ด, ```docker exec container /bin/bash``` ์ธ์
์ ํตํด ์ค์ ๋ ํ๊ฒฝ ๋ณ์๋ ์ด๋ป๊ฒ ๊ฐ์ ธ์ค๋์? ์ ๋ ```docker exec container env | grep ENV_VAR```๋ฅผ ์ฌ์ฉํ ์ ์์ง๋ง, ๊ทธ๋ฅ ๊ฐ์ ๋ฐํํ๋ ๋ฐฉ๋ฒ์ ์ ํธํฉ๋๋ค. ```docker exec container echo "$ENV_VAR"```๋ฅผ ์ฌ์ฉํด ๋ณด์์ง๋ง, ์นํ์ด ์ปจํ
์ด๋ ์ธ๋ถ์์ ์ผ์ด๋๋ ๊ฒ ๊ฐ์์, ์ปจํ
์ด๋์ ํ๊ฒฝ ๋ณ์๊ฐ ์๋๋ผ ์ ์ปดํจํฐ์ ํ... | ```docker exec```๋ฅผ ์ฌ์ฉํ๋ ๋จ์ ์ ์คํ ์ค์ธ ์ปจํ
์ด๋๊ฐ ํ์ํ๋ค๋ ์ ์
๋๋ค. ๋ฐ๋ผ์ ์ปจํ
์ด๋๊ฐ ์คํ ์ค์ธ์ง ํ์คํ์ง ์์ ๊ฒฝ์ฐ ```docker inspect -f```๊ฐ ์ ์ฉํ ์ ์์ต๋๋ค.
์์ #1. ์ง์ ๋ ์ปจํ
์ด๋์์ ๊ณต๋ฐฑ์ผ๋ก ๊ตฌ๋ถ๋ ํ๊ฒฝ ๋ณ์ ๋ชฉ๋ก์ ์ถ๋ ฅํฉ๋๋ค:
```docker inspect -f \
'{{range $index, $value := .Config.Env}}{{$value}} {{end}}' container_name
```
์ถ๋ ฅ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
```ENV_VAR1=value1 ENV_VAR2=value2 ENV_V... |
I am confused about the use cases for both ```InputStream``` and ```OutputStream```.
Please include a snippet of code to go along with your explanation. | InputStream is used for reading, OutputStream for writing. They are connected as decorators to one another such that you can read/write all different types of data from all different types of sources.
For example, you can write primitive data to a file:
```File file = new File("C:/text.bin");
file.createNewFile();
Data... | ```InputStream```๊ณผ ```OutputStream```์ ์ฌ์ฉ ์ฌ๋ก์ ๋ํด ํผ๋์ค๋ฝ์ต๋๋ค. ์ค๋ช
๊ณผ ํจ๊ป ์ฝ๋ ์ค๋ํซ์ ํฌํจํด ์ฃผ์ธ์. | ์
๋ ฅ ์คํธ๋ฆผ์ ์ฝ๊ธฐ ์ํด ์ฌ์ฉ๋๊ณ , ์ถ๋ ฅ ์คํธ๋ฆผ์ ์ฐ๊ธฐ ์ํด ์ฌ์ฉ๋ฉ๋๋ค. ์ด๋ค์ ์๋ก ์ฅ์์๋ก ์ฐ๊ฒฐ๋์ด ์์ด, ๋ค์ํ ์ ํ์ ๋ฐ์ดํฐ์ ๋ค์ํ ์์ค์์ ์ฝ๊ณ ์ธ ์ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด, ์์ ๋ฐ์ดํฐ๋ฅผ ํ์ผ์ ์ธ ์ ์์ต๋๋ค:
```java
File file = new File("C:/text.bin");
file.createNewFile();
DataOutputStream stream = new DataOutputStream(new FileOutputStream(file));
stream.writeBoolean(true);
stream.wri... |
What is the difference between:
```npm install [package_name]
```
and:
```npm install [package_name] --save
```
and:
```npm install [package_name] --save-dev
```
What does this mean? And what is really the effect of ```--save``` and ```-dev``` keywords? | The difference between ```--save``` and ```--save-dev``` may not be immediately noticeable if you have tried them both on your own projects. So here are a few examples...
Let's say you were building an app that used the moment package to parse and display dates. Your app is a scheduler so it really needs this package t... | ```npm install [ํจํค์ง_์ด๋ฆ]```๊ณผ ```npm install [ํจํค์ง_์ด๋ฆ] --save``` ๊ทธ๋ฆฌ๊ณ ```npm install [ํจํค์ง_์ด๋ฆ] --save-dev```์ ์ฐจ์ด๋ ๋ฌด์์ธ๊ฐ์? ์ด๊ฒ์ ๋ฌด์์ ์๋ฏธํ๋์? ๊ทธ๋ฆฌ๊ณ ```--save```์ ```--save-dev``` ํค์๋์ ์ค์ ํจ๊ณผ๋ ๋ฌด์์ธ๊ฐ์? | ```--save```์ ```--save-dev```์ ์ฐจ์ด๋ ๋ณธ์ธ์ ํ๋ก์ ํธ์์ ๋ ๊ฐ์ง๋ฅผ ๋ชจ๋ ์ฌ์ฉํด ๋ณด์ง ์์๋ค๋ฉด ์ฆ์ ๋์ ๋์ง ์์ ์ ์์ต๋๋ค. ๊ทธ๋์ ๋ช ๊ฐ์ง ์๋ฅผ ๋ค์ด ๋ณด๊ฒ ์ต๋๋ค...
์๋ฅผ ๋ค์ด, ๋ ์ง๋ฅผ ํ์ฑํ๊ณ ํ์ํ๊ธฐ ์ํด moment ํจํค์ง๋ฅผ ์ฌ์ฉํ๋ ์ฑ์ ๊ตฌ์ถํ๊ณ ์๋ค๊ณ ๊ฐ์ ํด ๋ณด๊ฒ ์ต๋๋ค. ์ด ์ฑ์ ์ค์ผ์ค๋ฌ์ด๋ฏ๋ก ์ด ํจํค์ง๊ฐ ํ์ํฉ๋๋ค. ์ฆ, ์ด ํจํค์ง ์์ด ์ฑ์ด ์คํ๋ ์ ์์ต๋๋ค. ์ด ๊ฒฝ์ฐ ๋ค์๊ณผ ๊ฐ์ด ์ฌ์ฉํ ์ ์์ต๋๋ค.
```npm install moment --save
```
์ด๋ ๊ฒ ํ๋ฉด package.json์ ์๋ก์ด ๊ฐ์ด ์์ฑ๋ฉ๋... |
pod install -bash: pod: command not found | Please follow the following steps to install Pod:
1. Open terminal and type:
```sudo gem install cocoapods
```
Gem will get installed in Ruby inside the System library. Or try on 10.11 Mac OSX El Capitan, type:
```sudo gem install -n /usr/local/bin cocoapods
```
If there is an error "activesupport requires Ruby v... | pod ์ค์น -bash: pod: ๋ช
๋ น์ด๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค. | ๋ค์ ๋จ๊ณ๋ฅผ ๋ฐ๋ผ Pod๋ฅผ ์ค์นํ์ธ์:
1. ํฐ๋ฏธ๋์ ์ด๊ณ ๋ค์์ ์
๋ ฅํ์ธ์:
```sudo gem install cocoapods
```
Gem์ ์์คํ
๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ด์ Ruby์ ์ค์น๋ฉ๋๋ค. ๋๋ 10.11 Mac OSX El Capitan์์ ๋ค์์ ์
๋ ฅํด ๋ณด์ธ์:
```sudo gem install -n /usr/local/bin cocoapods
```
"activesupport requires Ruby version >= 2.xx"๋ผ๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ฉด, ํฐ๋ฏธ๋์ ๋ค์์ ์
๋ ฅํ์ฌ ์ต์ active support๋ฅผ ๋จผ์ ์ค์นํ์ธ์.
```sudo gem in... |
I read in the Essential C# 3.0 and .NET 3.5 book that:
GetHashCode()โs returns over the life of a particular object should be
constant (the same value), even if the objectโs data changes. In many
cases, you should cache the method return to enforce this.
Is this a valid guideline?
I have tried a couple built-in... | The answer is mostly, it is a valid guideline, but perhaps not a valid rule. It also doesn't tell the whole story.
The point being made is that for mutable types, you cannot base the hash code on the mutable data because two equal objects must return the same hash code and the hash code has to be valid for the lifetim... | ๋๋ Essential C# 3.0 ๋ฐ .NET 3.5 ์ฑ
์์ ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ ์ฝ์์ต๋๋ค:
GetHashCode()์ ๋ฐํ ๊ฐ์ ํน์ ๊ฐ์ฒด์ ์์ ๋์ ์ผ์ ํด์ผ ํ๋ฉฐ(๊ฐ์ ๊ฐ), ๊ฐ์ฒด์ ๋ฐ์ดํฐ๊ฐ ๋ณ๊ฒฝ๋๋๋ผ๋ ๊ทธ๋ ์ต๋๋ค. ๋ง์ ๊ฒฝ์ฐ, ์ด ๊ท์น์ ์งํค๊ธฐ ์ํด ๋ฉ์๋์ ๋ฐํ ๊ฐ์ ์บ์ํด์ผ ํฉ๋๋ค.
์ด๊ฒ์ด ์ ํจํ ์ง์นจ์ธ๊ฐ์? ์ ๋ .NET์์ ๋ช ๊ฐ์ง ๋ด์ฅ ํ์์ ์๋ํด๋ดค์ง๋ง, ๊ทธ๋ค์ ์ด๋ ๊ฒ ๋์ํ์ง ์์์ต๋๋ค. | ๋์ฒด๋ก ์ ํจํ ์ง์นจ์ด์ง๋ง, ์ ํจํ ๊ท์น์ ์๋๋๋ค. ๋ํ ์ ์ฒด ์ด์ผ๊ธฐ๋ฅผ ์ ๋ฌํ์ง๋ ์์ต๋๋ค.
์ฃผ๋ ์์ ์ ๊ฐ๋ณ ํ์
์ ๊ฒฝ์ฐ, ํด์ ์ฝ๋๋ฅผ ๊ฐ๋ณ ๋ฐ์ดํฐ์ ๊ธฐ๋ฐํ ์ ์๋ค๋ ๊ฒ์
๋๋ค. ์๋ํ๋ฉด ๋ ๊ฐ์ ๋๋ฑํ ๊ฐ์ฒด๋ ๋์ผํ ํด์ ์ฝ๋๋ฅผ ๋ฐํํด์ผ ํ๊ณ , ํด์ ์ฝ๋๋ ๊ฐ์ฒด์ ์๋ช
๋์ ์ ํจํด์ผ ํ๊ธฐ ๋๋ฌธ์
๋๋ค. ํด์ ์ฝ๋๊ฐ ๋ณ๊ฒฝ๋๋ฉด, ํด์๋ ์ปฌ๋ ์
์์ ์์ด๋ฒ๋ฆฐ ๊ฐ์ฒด๊ฐ ์๊ธฐ๊ฒ ๋๋๋ฐ, ์ด๋ ๋ ์ด์ ์ฌ๋ฐ๋ฅธ ํด์ ๋น์ ์กด์ฌํ์ง ์๊ธฐ ๋๋ฌธ์
๋๋ค. ์๋ฅผ ๋ค์ด, ๊ฐ์ฒด A๊ฐ ํด์ 1์ ๋ฐํํ๋ค๊ณ ๊ฐ์ ํด ๋ณด๊ฒ ์ต๋๋ค. ๊ทธ๋ฌ๋ฉด ํด์ ํ
์ด๋ธ์ ๋น 1์ ๋ค์ด๊ฐ๋๋ค. ๊ทธ ๋ค์ ๊ฐ์ฒด A๋ฅผ ๋ณ๊ฒฝํ... |
Especially in blitz or bullet games, it is possible that a player makes an illegal move, for example castles through check.
* If the opponent does notice the illegal move, then as far as I know the first player is obliged to make a legal move with the same piece, if one exists. What if there are no legal moves?
* Wh... | This only really applies to over the board games (since online chess servers prevent illegal moves).
In a standard time control game, under USCF rules, when the illegal move is noticed by one of the players, a few things happen. First, the illegal move must have been made within the last 10 moves. If not, then the cu... | ํนํ ๋ธ๋ฆฌ์ธ ๋ ์ด์ ๊ฒ์์์๋ ์ ์๋ค์ด ๋ถ๋ฒ์ ์ธ ์๋ฅผ ๋๋ ๊ฒฝ์ฐ๊ฐ ์์ ์ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด, ์ฒดํฌ๋ฅผ ํตํด ์บ์ฌ๋ง์ ํ๋ ๊ฒฝ์ฐ๊ฐ ๊ทธ๋ ์ต๋๋ค.
* ์๋๋ฐฉ์ด ๋ถ๋ฒ์ ์ธ ์๋ฅผ ์ธ์งํ๋ฉด, ์ ๊ฐ ์๋ ํ ์ฒซ ๋ฒ์งธ ์ ์๋ ๊ฐ์ ๋ง์ ์ฌ์ฉํด์ ๊ฐ๋ฅํ ํฉ๋ฒ์ ์ธ ์๋ฅผ ๋์ด์ผ ํฉ๋๋ค. ๋ง์ฝ ํฉ๋ฒ์ ์ธ ์๊ฐ ์๋ค๋ฉด ์ด๋ป๊ฒ ๋๋์?
* ์๋๋ฐฉ์ด ์๊ฐ ์๋ฐ ์์์ ๋ถ๋ฒ์ ์ธ ์๋ฅผ ์ธ์งํ์ง ๋ชปํ๊ณ ์๋ฅผ ๋์๋ค๋ฉด, ๊ทธ๋ค์ด ์ด๋ฅผ ๊นจ๋ฌ์์ ๋๋ ์ด๋ป๊ฒ ๋๋์? ๋ถ๋ฒ์ ์ธ ์๋ฅผ ๋ ์ฌ๋์ด ํจ๋ฐฐํ๋์? ์๋๋ฉด ์ ์ฒด ๊ฒ์์ด ์ทจ์๋๋์?
์ด๋ฐ ์ํฉ์ ๋ํ ํ์ค ๊ท์น์ด ์๋์? | ์ด๊ฒ์ ์ฃผ๋ก ๋๊ตญ์ ํด๋น๋ฉ๋๋ค(์จ๋ผ์ธ ์ฒด์ค ์๋ฒ๋ ๋ถ๋ฒ ์๋ฅผ ๋ฐฉ์งํ๊ธฐ ๋๋ฌธ์
๋๋ค). ํ์ค ์๊ฐ ์ ํ ๊ฒ์์์, USCF ๊ท์น์ ๋ฐ๋ฅด๋ฉด, ํ ํ๋ ์ด์ด๊ฐ ๋ถ๋ฒ ์๋ฅผ ๋ฐ๊ฒฌํ์ ๋ ๋ช ๊ฐ์ง ์ผ์ด ๋ฐ์ํฉ๋๋ค. ์ฒซ์งธ, ๋ถ๋ฒ ์๋ ์ต๊ทผ 10์ ์ด๋ด์ ์ด๋ฃจ์ด์ ธ์ผ ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ํ์ฌ ์์น๊ฐ ์ ์ง๋๋ฉฐ ๊ฒ์์ ๊ณ์ ์งํ๋ฉ๋๋ค. ๋ง์ฝ ์๊ฐ ์ต๊ทผ์ด๋ผ๋ฉด, ๋ถ๋ฒ ์๊ฐ ์ด๋ฃจ์ด์ง๊ธฐ ์ง์ ์ ์์น๋ก ๋ณต์๋ฉ๋๋ค. ๊ทธ ๋ค์, ๋ถ๋ฒ ์๋ฅผ ๋ ํ๋ ์ด์ด๋ ๊ฐ์ ๋ง๋ก(๊ฐ๋ฅํ๋ค๋ฉด) ํฉ๋ฒ์ ์ธ ์๋ฅผ ๋์ด์ผ ํฉ๋๋ค. ํฉ๋ฒ์ ์ธ ์๊ฐ ์๋ค๋ฉด, ํ๋ ์ด์ด๋ ์์ ๋กญ๊ฒ ์ด๋ค ์๋ผ๋ ๋ ์ ์์ต๋๋ค. ์ด๋ ํฐ์น ๋ฌด๋ธ ๊ท์น... |
How to set button click effect in Android? | It is simpler when you have a lot of image buttons, and you don't want to write xml-s for every button.
Kotlin Version:
```fun buttonEffect(button: View) {
button.setOnTouchListener { v, event ->
when (event.action) {
MotionEvent.ACTION_DOWN -> {
v.background.setColorFilter(-0x1f... | ์๋๋ก์ด๋์์ ๋ฒํผ ํด๋ฆญ ํจ๊ณผ๋ฅผ ์ค์ ํ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ธ๊ฐ์? | ์ด๋ฏธ์ง ๋ฒํผ์ด ๋ง์ ๋๋ ๋ ๊ฐ๋จํ๋ฉฐ, ๋ชจ๋ ๋ฒํผ์ ๋ํด xml์ ์์ฑํ๊ณ ์ถ์ง ์์ ๋ ์ ์ฉํฉ๋๋ค.
์ฝํ๋ฆฐ ๋ฒ์ :
```fun buttonEffect(button: View) {
button.setOnTouchListener { v, event ->
when (event.action) {
MotionEvent.ACTION_DOWN -> {
v.background.setColorFilter(-0x1f0b8adf, PorterDuff.Mode.SRC_ATOP)
v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.