Current working directory is not a Cordova based project

Javascript/Ionic|2021. 8. 17. 01:15

ionic 프로젝트 생성 후 cordova 관련 명령어를 실행할 때 아래와 같은 오류가 발생한다.

C:\Dev\IdeaProjects\my-app>cordova plugin ls
Current working directory is not a Cordova-based project.

 

기존에는 cordova 명령어로 바로 추가해도 되었던것 같은데,

현재 버전에서는 아래와 같이 명령어를 실행해야 cordova 설정이 추가된다.

 

ionic cordova platform add android

 

댓글()

ExtJS - 숫자컬럼에 콤마 표시하기

카테고리 없음|2021. 5. 24. 12:36

ExtJS - 숫자컬럼에 콤마 표시하기

            columns: [
                {xtype: 'rownumberer', width: 35},
                { text: 'SCHEMA', dataIndex: 'SCHEMA_NM', flex:1, align: 'left'},
                { text: 'TABLE', dataIndex: 'TAB_NM', flex: 2, align: 'left' },
                { text: 'ENTITY', dataIndex: 'ENT_NM', flex: 1, align: 'left' },
                { text: '컬럼수', dataIndex: 'COL_CNT', flex: 1, align: 'left' },
                { text: '건수', dataIndex: 'ROW_CNT', flex: 1, align: 'left' },
                { text: '사이즈', dataIndex: 'TAB_SIZE', flex: 1, align: 'left'
                    ,renderer: function (value, meta, record) {
                        return Ext.util.Format.number(value, "0,000");
                    },
                },
            ],

댓글()

mv 명령으로 폴더 덮어쓰기 안될 때

카테고리 없음|2021. 4. 30. 15:36

mv 명령으로 폴더 덮어쓰기 안될 때 find 명령어를 사용해서 각 파일별로 이동 시킨다.

 

find -type f -print0 | xargs -0 -n 1 -I {} mv '{}' '../east/{}'

 

 

 

 

댓글()

centos 6 - yum update 오류 발생시 해결방법

Dev Tips/xUnix|2020. 12. 24. 16:46

 

echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt

echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt

echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

 

yum update

 

 

댓글()

유용한 툴 - DeskPins

카테고리 없음|2020. 12. 17. 12:42

Always On Top 기능이 없는 프로그램을 가능하게 해주는 프로그램입니다.

 

 

efotinis.neocities.org/deskpins/index.html

 

DeskPins : Elias Fotinis

DeskPins DeskPins can be used to make any application topmost, that is, to keep it above all other windows. Just grab a pin from the DeskPins icon in the system notification area and click on any window. This functionality is identical to the "Always on To

efotinis.neocities.org

 

댓글()

Apache Velocity 활용

카테고리 없음|2020. 11. 26. 22:22

Apache Velocity 활용

    // Initialize the engine.
    VelocityEngine engine = new VelocityEngine();
    engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.Log4JLogChute");
    engine.setProperty("runtime.log.logsystem.log4j.logger", LOGGER.getName());
    engine.setProperty(Velocity.RESOURCE_LOADER, "string");
    engine.addProperty("string.resource.loader.class", StringResourceLoader.class.getName());
    engine.addProperty("string.resource.loader.repository.static", "false");
    //  engine.addProperty("string.resource.loader.modificationCheckInterval", "1");
    engine.init();

    // Initialize my template repository. You can replace the "Hello $w" with your String.
    StringResourceRepository repo = (StringResourceRepository) engine.getApplicationAttribute(StringResourceLoader.REPOSITORY_NAME_DEFAULT);
    repo.putStringResource("woogie2", "Hello $w");

    // Set parameters for my template.
    VelocityContext context = new VelocityContext();
    context.put("w", "world!");

    // Get and merge the template with my parameters.
    Template template = engine.getTemplate("woogie2");
    StringWriter writer = new StringWriter();
    template.merge(context, writer);

    // Show the result.
    System.out.println(writer.toString());

댓글()

d2coding web font

카테고리 없음|2020. 5. 24. 13:19

d2coding web font 

 

https://github.com/Joungkyun/font-d2coding-ligature

 

댓글()

centos - sshfs 로 원격 디스크 마운트하기

Dev Tips/xUnix|2020. 4. 17. 21:24

yum install sshfs

 

마운트할 디렉토리 생성

mkdir -p /backup

 

sudo sshfs -o allow_other user@x.x.x.x:/backups/server1 /backup

 

 

댓글()

SSH 접속시 - permissions 0xxx for are too open 오류 발생시

Dev Tips/xUnix|2020. 4. 17. 17:58

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
Permissions 0644 for './***.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: ./***.pem
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

 

 

아래 명령어로 해결하면 된다.

chmod 600 ~/.ssh/***.pem

 

댓글()

putty를 탭으로 관리하며 사용하기

Dev Tips|2020. 4. 17. 16:34

putty를 좀 더 편하게 사용할 수 있게 해주는 툴들이 있어서 소개한다. 소개할 툴은 2가지인데 putty-nd와 Multi PuTTY Manager이다. 둘다 잘 만들어진 프로그램인데, 개인적으로는 WinSCP를 연동하여 사용할 수 있는 Multi Putty Manager가 더 맘에 든다.



putty 다운로드 
putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

iputty - https://bitbucket.org/daybreaker/iputty/downloads

putty-ndsite : https://github.com/noodle1983/putty-nd3.x
download : https://sourceforge.net/projects/putty-nd/

'Dev Tips' 카테고리의 다른 글

gitignore 템플릿 생성기 - www.gitignore.io  (0) 2020.04.17
github cheat sheet  (0) 2020.04.17

댓글()

gitignore 템플릿 생성기 - www.gitignore.io

Dev Tips|2020. 4. 17. 16:33

IntelliJ 와 같은 툴을 사용해서 git 를 사용하다보면 gitignore에 추가하지 않은 폴더나 파일들을 add 한 이후에 커밋을 하려면 에러 창이 뜨는 것을 종종 볼 수 있다. www.gitignore.io 사이트를 이용하면 사용하는 프레임웍이나 언어에 따라 기본적으로 ignore되어야 하는 템플릿을 생성해서 사용하면 조금은 편하게 사용할 수 있다.

 

 

 

 

 

[생성된 템플릿]

# Created by https://www.gitignore.io/api/appengine,java,node,bower

### AppEngine ###
# Google App Engine - https://developers.google.com/appengine/
appengine-generated/



### Java ###
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.. 생략 ..

'Dev Tips' 카테고리의 다른 글

putty를 탭으로 관리하며 사용하기  (0) 2020.04.17
github cheat sheet  (0) 2020.04.17

댓글()

sql developer 의 jdk 위치 바꾸기

Database|2020. 4. 17. 16:32

sqldeveloper 를 사용하다보면 java home 의 위치를 바꿔야 할 경우가 있다.

그럴 경우 아래 경로의 product.conf 파일에서 SetJavaHome 경로 위치를 바꿔주면 된다.

 

# windows %APPDATA%\sqldeveloper\\product.conf C:\Users\hkwee\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf SetJavaHome C:\Program Files\Java\jdk1.7.0_45\ #unixl like~ $HOME/./sqldeveloper/version/product.conf

댓글()

랜덤하게 테스트 데이터를 생성해 보자.

Database/Oracle|2020. 4. 17. 16:30

랜덤한 데이터를 생성하는 SQL

 

SELECT LEVEL v , CEIL(LEVEL / 10) v , MOD(LEVEL, 10) v , CHR(64 + LEVEL) v , CHR(96 + LEVEL) v , dbms_random.random v , dbms_random.normal v , dbms_random.value v , ROUND(dbms_random.value(0, 1000000)) v , dbms_random.string('u', 6) v , dbms_random.string('l', 6) v , dbms_random.string('a', 6) v , dbms_random.string('x', 6) v , dbms_random.string('p', 6) v FROM dual CONNECT BY LEVEL <= 30

댓글()

spring boot

Java/spring|2020. 4. 17. 16:27
  1. http://projects.spring.io/spring-boot/#quick-start
  2.  

http://blog.saltfactory.net/java/developing-spring-without-restarting-server.html

댓글()

github cheat sheet

Dev Tips|2020. 4. 17. 16:23

 

github cheat sheet

주소 : https://github.com/tiimgreen/github-cheat-sheet

'Dev Tips' 카테고리의 다른 글

putty를 탭으로 관리하며 사용하기  (0) 2020.04.17
gitignore 템플릿 생성기 - www.gitignore.io  (0) 2020.04.17

댓글()

Google App Engine 시작하기

Java|2020. 4. 17. 16:20

Google App Engine 시작하기

 

1. 구글 Cloud Tools 설치 - https://cloud.google.com/sdk/docs/

2. 명령줄 실행 

  gcloud components install app-engine-java

  

  gcloud auth application-default login

 

3. 이클립스 개발환경 설정 

  https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup

 

4. 배포

  프로젝트 루트에서 도스 터미널 실행 

  mvn appengine:deploy

  gcloud app browse

 

 

5. 단위테스트 설정 

https://cloud.google.com/appengine/docs/standard/java/tools/localunittesting

 

'Java' 카테고리의 다른 글

넷빈즈 Darcula 스킨 적용  (0) 2020.04.17

댓글()

넷빈즈 Darcula 스킨 적용

Java|2020. 4. 17. 14:35

넷빈즈 Darcula 테마

 

Darcula LAF for NetBeans 

http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans

 

 

github

https://github.com/Revivius/nb-darcula

 

'Java' 카테고리의 다른 글

Google App Engine 시작하기  (0) 2020.04.17

댓글()

ExtJS 6.2 GPL Download

Javascript|2020. 4. 17. 14:29

Download using wget

wget -c http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip

Optional, sencha CMD for Linux 64 Bits

wget -c http://cdn.sencha.com/cmd/6.2.1/no-jre/SenchaCmd-6.2.1-linux-amd64.sh.zip

 

sencha cmd download

https://www.sencha.com/products/extjs/cmd-download/

 

Sencha Cmd Download - Sencha.com

Download Sencha Cmd

www.sencha.com

 

댓글()