2019년 7월 2일 화요일

노트북 그래픽 카드 드라이버 잡은후



Manjaro Linux 노트북 xh58 한성 컴퓨터 적용
Nvidia 1050 드라이버 잡은후 외부 모니터에서 만 로그인 화면이 나온다.
아래 스크립트를 아래 경로에 넣어 주면 윈도우 처럼 로그인 SDDM  노트북 모니터와 외부 모니터에 같이 표시 될것이다.

참고 하세요

/usr/share/sddm/scripts/Xsetup

#!/bin/sh

IN=$(xrandr | grep "eDP" | grep " connected" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")
EXT=$(xrandr | grep "HDMI" | grep " connected" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")

if (xrandr | grep "$EXT disconnected"); then
    xrandr --output $EXT --off --output $IN --auto
else
    xrandr --output $IN --off --output $EXT --auto
fi

2019년 6월 27일 목요일

defold Visual Studio Code file Association Settings



defold Visual Studio Code file Association Settings

file->preference->settings->files

All delete after add this block

 {
      {
        "*.script": "lua",
        "*.gui_script": "lua",
        "*.render_script": "lua"
      }

}

deepin 15.10 Visual studio code crash open then a open folder



I installed Visual studio code from the Deepin Store and since then, every time I'm opening a folder, it open with visual studio code. I'm new with Deepin, where can I change this ? I looked up in the default application settings but I've not seen any setting about folders.


this is hidden Directory

/home/.config/mineappls.list
this file add this

 inode/directory = dde-file-manager.desktop;code.desktop



2019년 6월 25일 화요일

kotlin array swap,extends



array swap(어레이 바꾸기)

fun MutableList.swap(index1 : Int, index2 : Int) {
val tmp = this[index1]
this[index1] = this[index2]
this[index2] = tmp
}


array extends(어레이 크기 확장)

    fun foo(old: Array,NEW_STRING:String): Array {
        val result = old.copyOf(old.size + 1)
        result[old.size] = NEW_STRING
        return result


    }

강제로 umount 시키기

 umount 시 busy 라고 나올때 다음과 같이 하면 잡고 있는 프로세서를 정지 시킬 수 있다.

mount된 디렉토리를 umount 하고자 할 때, 만약 특정 사용자 & 프로세스가 해당 디렉토리를 사용하고 있으면
"device is busy" 메세지가 발생하며 umount 가 되지 않습니다. 
이 경우 umount를 위해 해당 프로세스를 강제로 kill 하는 방법은 아래와 같습니다.
# fuser -ck 마운트디렉토리
ex) fuser -ck /home/hostway
위 명령으로 프로세스를 kill 하고 umount를 재시도하면 정상적으로 mount가 해제 됩니다.

* 해당 디렉토리를 사용하는 사용자가 누구인지 확인하고 싶을 때
# fuser -cu /home/hostway

2019년 6월 24일 월요일

2019년 6월 12일 수요일

Low CPC ad network block list

We update every day.
Click on 0 cpc or 1cpc ad network.
I think that such an ad network should be gradually absent.
Let's share this document and get rid of the bad ad network.

6/05
Manage.com
Bulbit
inMobi w/ Beeswax
Cadreon (ZA) w/ DBM
Liftoff

6/06
DV360 (BR)
DBM India
RTB House (BR)
Cadreon (ZA) w/ DBM
Sift Media
Media IQ Digital w/DBM
Manage.com
Centro
Bulbit

6/07
Cross Install
AMNET (ZA) w/DBM

6/08
Criteo (US)
DoubleClick Bid Manager (Europe)
AdRoll.com 3

6월9일
RTB House (RU)
AstroMotion Games Limited

06/12
Amazon APAC
Ogury w/Beeswax
RTB House (APAC)

6/13
Sojern DBM Adx
RTB House