1. Install Ubuntu Restricted Extras for Media Codecs


sudo apt-get install ubuntu-restricted-extras


여러가지 코덱을 모아놓은 패키지이다.

그러나 여러나라에서 적법성을 따지는 경우가 있어서 기본으로 깔리지 않는다.

그냥 깔아서 쓰면 된다. 여러가지 포맷을 사용 가능하게 해준다. mp4, avi, etc....


2. Install Adobe Flash Player 


sudo apt-get install flashplugin-installer


왠만하면 자동으로 깔리거나 브라우져 실행시 알아서 깔리긴 하는데, 문제가 있을경우 위와같이 설치해 준다.



3. Disable shopping suggestions 


gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"


위를 copy해서 Terminal 에서 실행해주면 된다.


4. Firewall for Ubuntu


sudo apt-get install gufw


기본적으로 방화벽이 깔려 있으나 기본 설정은 Disable로 되어 있다. 따라서 위의 패키지를 설치후에 gufw 실행후 Enable로 상태를 바꿔준다.

블로그 이미지

mind10

,

/etc/lightdm/lightdm.conf 에 다음과 같이 추가 해주면 된다.

만약 자동로그인을 사용하지 않을 경우 위의 파일이 생성되지 않는데, 이경우, 계정설정에서 자동로그인을 설정하고 

리부팅한 후에 보면 위의 파일이 생성된다. 그러나 자동로그인의 경우 다음 스크립트가 동작하지 않는다.

따라서 다시 자동로그인을 꺼준후 실행하면 된다.


greeter-setup-script=/usr/bin/synergyc IP:PORT


블로그 이미지

mind10

,

1. 설정파일을 바꿔서 Ubuntu 시작과 동시에 명령어나 프로그램을 실행하는 스크립트를 추가했을시에 부팅이 제대로 안되면서 저품질 그래픽 모드로 진입하는 경우가 생긴다. (12.04 - 14.04)


이 경우 recovery mode로 진입한 후에, 설정했던 파일을 수정하거나 지울려고 하면


rm: cannot remove `xxx': Read-only file system


이런 오류가 나면서 명령어가 실행이 안된다.


이경우 읽기 모드로 되어 있기 때문에 마운트를 Read-write로 다시 마운트 해준다.


$ mount / -o remount,rw


이렇게 하면 읽기 쓰기 모드로 다시 마운트 되어 파일 삭제나 수정이 가능하다.

블로그 이미지

mind10

,

이 경우에 sudo 대신에 gksudo를 사용해야 한다.


설치가 안되어 있을경우 


sudo apt-get install gksu


를 설치후에 사용하면 된다.

블로그 이미지

mind10

,

warning: LF will be replaced by CRLF.

Depending on the editor you are using, a text file with LF wouldn't necessary be saved with CRLF: recent editors can preserve eol style. But that git config setting insists on changing those...

Simply make sure that (as I recommend here):

git config --global core.autocrlf false

That way, you avoid any automatic transformation, and can still specify them through a .gitattributes file and core.eol directives.


windows git "LF will be replaced by CRLF"
Is this warning tail backward?

No: you are on Windows, and the git config help page does mention

Use this setting if you want to have CRLF line endings in your working directory even though the repository does not have normalized line endings.

As described in "git replacing LF with CRLF", it should only occur on checkout (not commit), with core.autocrlf=true.

       repo
    /        \ 
crlf->lf    lf->crlf 
 /              \    

As quaylar rightly comments, if there is a conversion on commit, it is to LF only.

That specific warning "LF will be replaced by CRLF" comes from convert.c#check_safe_crlf():

if (checksafe == SAFE_CRLF_WARN)
  warning("LF will be replaced by CRLF in %s.
           The file will have its original line endings 
           in your working directory.", path);
else /* i.e. SAFE_CRLF_FAIL */
  die("LF would be replaced by CRLF in %s", path);

It is called by convert.c#crlf_to_git(), itself called by convert.c#convert_to_git(), itself called by convert.c#renormalize_buffer().

And that last renormalize_buffer() is only called by merge-recursive.c#blob_unchanged().

So I suspect this conversion happens on a git commit only if said commit is part of a merge proces

블로그 이미지

mind10

,

Visual C++ 2010 redistributable 제거 한후 다시 설치.

'VS 2010' 카테고리의 다른 글

mfc 다중 뷰간 접근 방법  (0) 2014.08.21
블로그 이미지

mind10

,

Ubuntu 버전 확인

Ubuntu 2013. 12. 31. 02:11

In Terminal


$cat /etc/issue



블로그 이미지

mind10

,

http://saline.tistory.com/21

블로그 이미지

mind10

,

Which of the two methods is the most effective to avoid overfitting: regularization or searching the model's hyperparameters through crossvalidation? is one of these methods preferable for large/small sets of data? is there any experimental evidence concerning this question?

Thanks.

5

The 2 methods are generally used together since they have different purposes:

  • cross-validation makes it possible to measure how a parameterized learning algorithm is able to generalize to data unseen at training time

  • regularization is a parameter for a learning algorithm that trades off two types of potential generalization error: bias vs variance. Highly biased models cannot fit the training data as well (fewer degrees of freedom) but on the other hand are less likely to over-fit the training data by learning simpler models hence potentially causing less variance.

It is possible to combine the 2 together by doing a cross validated grid search for the optimal value of the regularization parameter (e.g. C in SVM).

Edit: arguably if the algorithm is able to scale to large datasets (linear training time) and that this data is available cheaply (generally not true for supervised learning) then regularization is less important as the redundancy in the training set will generally act as a natural regularizer that will prevent over-fitting. It is still interesting to do cross validation (maybe online cross validation to make it scalable) so as to measure the remaining amount of overfitting.


블로그 이미지

mind10

,

1. 윈도우키+R -> regedit 을 입력하여 실행한다.

2. \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters

3. 레지스트리 편집기 우측 화면에 있는 것들 중에

   3-1. LayerDriver KOR 더블클릭 kbd103.dll 을 kbd101a.dll 로 변경

   3-2. OverrideKeyboardIdentifer  더블클릭 PCAT_103Key 를 PCAT_101aKey 로 변경

   3-3. OverrideKeyboardSubtype 더블클릭 6 에서 3 으로 변경

   3-3. OverrideKeyboardType 우측에 보이는 값이 8이면 그냥 두고 8이 아니면 더블클릭 하여 8로 변경

4. 시스템 재부팅

블로그 이미지

mind10

,

musicbox 안될때

iOS 2013. 3. 25. 18:47

1. musicbox삭제합니다 
2. 리스프링 
3. ifunbox나ifile에서 var-mobile-library-preference폴더에서 하단으로쭉내려보면 com.peroon.musicbox.plist라는파일을지웁니다 
4. 리스프링 
5. musicbox 2.1.7설치 (시디아에서하든지 deb구하시던지상관없음요) 
6. 이제실행하시면됩니다 

블로그 이미지

mind10

,

to do , ~ing 차이점

English 2013. 3. 23. 06:57

우리학교에서 to v (to 부정사) 와 ~ing (동명사)용법이 명사적용법이 있다고 배웠는데요 ..기억이나시나요? 가물가물?

그차이를 간단히 설명해볼께요.

 

단도직입적으로 to 부정사와  동명사구는 문장에서 명사적인의미로 쓰일때가있습니다.  문법사항을 이야기할때 고개를 절로흔드는 분이 많으신데요..그래도 아시는것이 모르시는 것보다 better..much better...

 

to v 는 to(그방향으로 향해) 가 있기때문에미래의일,가능성,제안 등을 나타내고 ~ing 는 진행형의 형태이기때문에 눈앞의일을 나타내죠..그차이는

 

A: Do you want to see a snake with two heads?

    머리둘달린 뱀을 보고싶니?

B: Yes, but i don't believe there is such a thing.

    네..그러나 믿기지가 않는데요.

A: To see is to believe.  Come and see it.

    보면 믿들수 있어, 이리와서 보렴

B: Oh, it really has two heads.

    와..정말이네

A: I told you so.  Seeing is believing, isn't it?

    내가 애기했잔아, 보면믿을수 있지..안그래

 

두문장을 도식화하면

 To see is to believe 보면 믿들 수 있다

 Seeing is believing  보는것이 믿는것이다, 백문이 불여일견이다

 

즉 ~ing 을 사용하는것이 눈앞에 보여야 믿을 수있다고 하는 사람에게 적당한 표현듯 합니다

 

실제로 원어민은  Seeing is believing 가 압도적으로 많다고 하네요

 

'English' 카테고리의 다른 글

must 와 have to  (0) 2013.03.14
however  (0) 2013.03.14
블로그 이미지

mind10

,

must 와 have to

English 2013. 3. 14. 08:34

must 는 화자의 의지와 관련이 있다.

i must do someting.

you must do something.

(내 생각에는) 너는 ~를 해야만 한다. 

 

have to는 개인적인 문제가 아닌 (법, 관습, 규정, 예절, 명령 등) 외적인 영향을 받는다.

 

you have to take off your shoes. (나는 상관없으나, 여기서는) 당신은 신발을 벗어야 한다.

you must take off your shoes. (다른 데서는 모르겠으나,내 경우에는)당신은 신발을 벗어야 한다.

 

i must stop smoking. (내 의지)

I have to stop smoking. ( 외부 원인에 의해..의사충고, 담배값인상등)

Must be + n : ~임에 틀림없다.

Must have been  : ~ 였음이 틀림없다.

 

'English' 카테고리의 다른 글

to do , ~ing 차이점  (0) 2013.03.23
however  (0) 2013.03.14
블로그 이미지

mind10

,

however

English 2013. 3. 14. 08:20

(정도) 아무리 ~해도

He wanted to take no risks, however small.

그는 아무리 작은 것이라도 위험을 무릅쓰고 싶지는 않았다.

She has the window open, however cold it is outside.

그녀는 바깥 날씨가 아무리 추워도 창문을 열어 둔다.

However carefully I explained, she still didn't understand.

내가 아무리 세심하게 설명을 해도 그녀는 여전히 이해하지를 못했다.

 

 

(방법) 아무리 ~해도

 

However you look at it, it's going to cost a lot.

아무리 살펴봐도 그것은 비용이 많이 들 것이다.

 

하지만, 그러나

 

He was feeling bad. He went to work, however, and tried to concentrate.play

그는 몸이 좋지 않았다. 하지만 출근을 하여 집중해 보려고 애를 썼다.

We thought the figures were correct. However, we have now discovered some errors.play

우리는 그 수치가 맞다고 생각했다. 그러나 지금 몇 가지 오류를 발견했다.

'English' 카테고리의 다른 글

to do , ~ing 차이점  (0) 2013.03.23
must 와 have to  (0) 2013.03.14
블로그 이미지

mind10

,

LNK4098

VS 2010/Error & Warning 2013. 3. 8. 13:41

LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library

위와같은 경고 발생시..

Properties -> Linker -> Commander Line 

 : /NODEFAULTLIB:library_name


or 


Properties -> Linker -> Input -> Ignore Specific default Libraries 

-> Ignore libraries에 Lib_name 을 삽입해준다.

'VS 2010 > Error & Warning' 카테고리의 다른 글

Warning C4996  (0) 2014.06.13
블로그 이미지

mind10

,