'프로그램 사용'에 해당되는 글 2290건

  1. 2024.08.01 pffft fft / ifft 테스트
  2. 2024.07.31 blender 수치로 변경
  3. 2024.07.25 postgresql 리스트 명령
  4. 2024.07.25 postgresql permission denied for schema public
  5. 2024.07.24 라즈베리에 phppgadmin. 안되잖아?
  6. 2024.07.23 phppgadmin
  7. 2024.07.22 ssh socks proxy
  8. 2024.07.22 postgresql 15.7 on rpi
  9. 2024.07.21 postgresql cli
  10. 2024.07.19 meld 자동 줄 바꿈

테스트 소스를 수정해서 10개 정도만 출력하고 그 값을 비교하는데 신기한걸 발견함

 

소스로는 non-canonical ordering / canonical ordering 이라고 되어있는데

하나는 pffft_transform+ pffft_zreorders 로 실행하고

다른 하나는 pffft_transform_ordered로 실행한다.

    // pass 0 : non canonical ordering of transform coefficients  
    if (pass == 0) {
      // test forward transform, with different input / output
      pffft_transform(s, in, tmp, 0, PFFFT_FORWARD);
      memcpy(tmp2, tmp, Nbytes);
      memcpy(tmp, in, Nbytes);
      pffft_transform(s, tmp, tmp, 0, PFFFT_FORWARD);
      for (k = 0; k < Nfloat; ++k) {
        assert(tmp2[k] == tmp[k]);
      }

      // test reordering
      pffft_zreorder(s, tmp, out, PFFFT_FORWARD);
      pffft_zreorder(s, out, tmp, PFFFT_BACKWARD);
      for (k = 0; k < Nfloat; ++k) {
        assert(tmp2[k] == tmp[k]);
      }
      pffft_zreorder(s, tmp, out, PFFFT_FORWARD);
    } else {
      // pass 1 : canonical ordering of transform coeffs.
      pffft_transform_ordered(s, in, tmp, 0, PFFFT_FORWARD);
      memcpy(tmp2, tmp, Nbytes);
      memcpy(tmp, in, Nbytes);
      pffft_transform_ordered(s, tmp, tmp, 0, PFFFT_FORWARD);
      for (k = 0; k < Nfloat; ++k) {
        assert(tmp2[k] == tmp[k]);
      }
      memcpy(out, tmp, Nbytes);
    }

 

아무튼 결과만 보면

ifft 값은 동일하게 나온다.(ordered / non-ordered)

그런데 ifft를 수행하고 나서 나온 결과가 raw와 다르다.

 

pffft 특성으로 인해 샘플 숫자로 나눠줘야 한다는데 

[링크 : https://dsp.stackexchange.com/questions/75749/how-to-use-pffft-fft-library]

 

일단은 그렇게 나누면 raw 와 ifft 값은 동일한 형상을 보이지만(좌하단/우하단) scale이 다르고

ifft한 값을 샘플 수 32000로 나누고 원본과 차이를 비교하면 또 형상이 동일하게 나온다(우상단)

 

데이터의 첫번째로 하면 오차율을 더 최소가 되지만 형상이 달라진다.(우상단) 멀까..?

'프로그램 사용 > fft, fftw' 카테고리의 다른 글

fft 결과에 N(입력 샘플 갯수)로 나누는 이유  (0) 2023.09.21
FFT RBW  (0) 2023.09.19
tek.com fft 관련 문서  (0) 2023.07.19
sfft  (0) 2023.07.12
fft window type과 진폭 보정계수  (0) 2023.07.04
Posted by 구차니
프로그램 사용/Blender2024. 7. 31. 17:10

 

입력 단위 변경

Unit System - Metric

Length - Milimeters

[링크 : https://m.blog.naver.com/naroo/221748327590]

 

치수 재기

space - m

두 지점 드래그

[링크 : https://noru3759.tistory.com/entry/blender-tips-06-블렌더-치수-확인하기-1]

 

도형 크기 변경하기(치수로)

N을 누르면 아래처럼 < 라고 되어있는 부분이

 

Transform 패널에 Dimensions 가 표시된다.

[링크 : https://gall.dcinside.com/mgallery/board/view/?id=blender&no=7305]

 

edit 모드

bevel / ctrl-b

 

[링크 : https://kyoungin90.tistory.com/276]

[링크 : https://blog.naver.com/rmlee/221425757733]

 

+

2024.08.01

베벨에서 수치로 가능한 듯?

n 누르고 열리는 창에서 Edge Data 에 bevel weight 에 숫자로 넣으면 되는데 해봐야겠다.

[링크 : https://youtu.be/DkoORSgjD1Q?t=86]

 

clamp 안하면 이상하게(방향이 반대로) 되니, clamp overlap을 활성화 해주는게 편할 듯?

[링크 : https://noru3759.tistory.com/entry/blender-tips-04-단축키-B-이용하기-Bevel-3]

'프로그램 사용 > Blender' 카테고리의 다른 글

blender 2d to 3d with rotate  (0) 2024.08.02
blender img to 3d to 2d to 3d  (0) 2024.08.02
blender cad  (0) 2024.05.07
blender render node  (0) 2024.03.20
BGE / UPBGE(Blender game engine)  (0) 2023.10.20
Posted by 구차니

사용중인 데이터베이스 보기,변경

\c [database_name]

 

데이터베이스 내의 테이블 목록 보기(상세)

\dt
\dt+

 

테이블의 형태보기(컬럼별)

\d [table_name]
\d+ [table_name]

 

[링크 : https://www.postgresqltutorial.com/postgresql-administration/postgresql-show-tables/]

 

2019.08.08 - [프로그램 사용/postgreSQL] - postgresql - 테이블 형상 보기

2019.08.08 - [프로그램 사용/postgreSQL] - psql 테이블 목록보기

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql permission denied for schema public  (0) 2024.07.25
라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
postgresql cli  (0) 2024.07.21
Posted by 구차니

계정생성하고 database생성하고 테이블 만들려는데.. 어라?

ERROR:  permission denied for schema public

 

찾아보니 권한과 소유권을 둘 다 줘야 가능한 듯.

권한만 줘서는 동일한 에러가 발생한다.

GRANT ALL ON DATABASE mydb TO admin;
ALTER DATABASE mydb OWNER TO admin;

[링크 : https://stackoverflow.com/questions/74110708/postgres-15-permission-denied-for-schema-public]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql 리스트 명령  (0) 2024.07.25
라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
postgresql cli  (0) 2024.07.21
Posted by 구차니

접속 시도해보니 안되길래

 

버전 확인

phpPgAdmin 7.13.0 (PHP 8.2.7)

 

postgresql은 아래와 같은데..

$ psql --version
psql (PostgreSQL) 15.7 ( 15.7-0+deb12u1)

 

그래서 phpPgAdmin 버전으로 찾아보니..

7.13.0 이후로는 안나오는것 같고(2020년 11월 9일.. 4년 가까이 과거..)

그 당시 지원되는게 Postgres 13 / 14.. 15니 될리가 없었...나?

phpPgAdmin 7.13.0 Now Available!
Posted on 2020-11-09 by phpPgAdmin Project
 Related Open Source
I’m pleased to announce the latest release of phpPgAdmin, version 7.13.0.

This release incorporates the following changes:

Add support for Postgres 13
Add provisional support for Postgres 14
Upgrade Jquery library to 3.4.1 (Nirgal)
Allow users to see group owned databases when using “owned only”
Fix bug where sorting on selects dumped you to the table screen (MichaMEG)

[링크 : https://www.postgresql.org/about/news/phppgadmin-7130-now-available-2107/]

 

죽은 프로젝트 인 듯.. 걍 사용을 포기하는게 낫겠다..

[링크 : https://github.com/phppgadmin/phppgadmin]

[링크 : https://sourceforge.net/projects/phppgadmin/]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql 리스트 명령  (0) 2024.07.25
postgresql permission denied for schema public  (0) 2024.07.25
phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
postgresql cli  (0) 2024.07.21
Posted by 구차니

pgadmin은 써봐도 phppgadmin은 첨인가...

 

 

[링크 : https://www.rosehosting.com/blog/how-to-install-phppgadmin-on-ubuntu-22-04/]

 

 

+

생각해보니 pgadmin 이라고 웹기반으로 하는 녀석이었지

phpmyadmin 처럼 apache에서 웹을 띄워서 하진 않았던 것 같다.

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql permission denied for schema public  (0) 2024.07.25
라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
postgresql 15.7 on rpi  (0) 2024.07.22
postgresql cli  (0) 2024.07.21
psql copy to  (0) 2020.02.10
Posted by 구차니

예전에 해봤는데 안되길래 포기했던 녀석들..

이제는 시간이 지났으니 잘 되려나?

 

ssh -D

[링크 : https://superuser.com/questions/408031/differences-between-ssh-l-to-d]

 

wget은 socks proxy 미지원,curl 사용 필요

[링크 : https://askubuntu.com/questions/1327783/can-you-set-socks5-proxy-from-linux-command-line]

 

--proxy-server="socks5://myproxy:8080"

[링크 : https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/]

 

[링크 : https://thesafety.us/proxy-setup-chrome-windows]

[링크 : https://datawookie.dev/blog/2023/12/ssh-tunnel-dynamic-port-forwarding/]

Posted by 구차니

예전 centos 할 때 랑은 또 경로가 달라져서 헷갈리네

 

설정 변경

# cat /etc/postgresql/15/main/pg_hba.conf 
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     md5
# IPv4 local connections:
host    all             all             127.0.0.1/32            scram-sha-256
# IPv6 local connections:
host    all             all             ::1/128                 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all             ::1/128                 scram-sha-256

 

서비스 재기동

$ sudo systemctl restart postgresql

 

postgres 계정으로 로그인 후 계정 및 database 생성

pi@raspberrypi:~ $ sudo su - postgres
postgres@raspberrypi:~$ psql
psql (15.7 ( 15.7-0+deb12u1))
Type "help" for help.

postgres=# create user username with password 'userpassword';
CREATE ROLE
postgres=# create database userdb;
CREATE DATABASE
materials=> \q
postgres@raspberrypi:~$

 

일반 계정에서 특정 사용자로 로그인

pi@raspberrypi:~ $ psql -U username userdb
Password for user username: 
psql (15.7 ( 15.7-0+deb12u1))
Type "help" for help.

userdb=> \q

 

[링크 : https://zipeya.tistory.com/entry/postgresql-DB생성-및-접속-시-Peer-authentication에러-발생-시-해야할-것]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
phppgadmin  (0) 2024.07.23
postgresql cli  (0) 2024.07.21
psql copy to  (0) 2020.02.10
postgresql 제약조건 관련  (0) 2020.02.07
Posted by 구차니

이전에는 대부분 pgadmin 이라는 웹기반으로 사용하다 보니 콘솔에서 쓸 방법 찾는 중

 

[링크 : https://www.postgresql.org/docs/current/app-psql.html]

[링크 : https://kwomy.tistory.com/m/9]

[링크 : https://kugancity.tistory.com/m/entry/postgre-sql-command-line에서-사용하기]

 

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
psql copy to  (0) 2020.02.10
postgresql 제약조건 관련  (0) 2020.02.07
postgresql database / table 복제 및 동기화  (0) 2020.02.07
Posted by 구차니
프로그램 사용/meld2024. 7. 19. 10:50

meld 에서 항상 옆으로 길게 보이다 보니 어떻게 설정을 해야 하나 찾아보는데

용어가 나중에 겨우 기억나서 검색..

word wrap

 

아무튼 Meld - Preference - 편집기 - 표시 에서

Enable text wrapping 과

Do not split words over two lines 를 체크해주면 된다.

 

 

[링크 : https://superuser.com/questions/1716173/meld-wrap-lines-keep-whole-words]

Posted by 구차니