RDB란?
definition
Relational Database
관계형 데이터 모델에 기초를 둔 데이터베이스.
관계형 데이터 모델이란?
모든 데이터를 2차원의 테이블 형태로 표현한 것.
데이터의 상관관계에서 개체간의 관계를 표현한 것.
definition
Relational Database
관계형 데이터 모델에 기초를 둔 데이터베이스.
모든 데이터를 2차원의 테이블 형태로 표현한 것.
데이터의 상관관계에서 개체간의 관계를 표현한 것.
MDN : Resources for developers, by developers
site : https://developer.mozilla.org/en-US/
comment : 모질라 개발자 사이트, 초급 HTML, CSS 부터 차례로 배울 수 있다.
udemy : The Web Developer 부트캠프 2022
site : https://www.udemy.com/
5G 버티컬 서비스란 무엇인가? (0) | 2022.05.13 |
---|
1. 텍스트 파일을 한번에 한줄씩 읽는 방법.
int counter = 0;
// Read the file and display it line by line.
foreach (string line in System.IO.File.ReadLines(@"c:\test.txt"))
{
System.Console.WriteLine(line);
counter++;
}
System.Console.WriteLine("There were {0} lines.", counter);
// Suspend the screen.
System.Console.ReadLine();
File 클래스의 ReadLines 메서드를 사용하여 텍스트 파일 내용을 한번에 한줄씩 문자열로 읽어옵니다.
foreach문을 통해 각 라인에서 읽어온 데이터를 처리할 수 있습니다.
2. 파일 append 함수
File.AppendAllText([FILE PATH], [DATA] );
//띄어 써야 할 경우
//[DATA] + "\n"
c#(WPF) OpenFileDialog, SaveFileDialog 란? 필터 설정 (0) | 2022.06.10 |
---|---|
C# TSource, TResult, TKey, TElement란 무엇인가? (0) | 2022.06.09 |
정보기술에서, 레거시 프로그램과 데이터는 프로그래밍 언어,
플랫폼 그리고 기술 등에 있어, 과거로 부터 물려 내려온 것들을 의미한다.
컴퓨터를 사용하는 대부분의 기업들은 중요한 업무를 처리하는 레거시 응용프로그램들과 데이터베이스를 가지고 있다.
문제는, 대체로 새로운 기술과 프로그래머의 솜씨를 사용한 새롭고 보다 효율적인 코드로 변환하는 동안,
레거시 프로그램을 계속 운영시켜야 하는데 있다.
과거에는, 많은 프로그램들이 특정업체의 운영체계에 맞게 작성되어왔다.
현재, 많은 회사들이 자신들의 레거시 프로그램들을 개방형이나, 표준 프로그래밍 인터페이스를 따르는 새로운 프로그래밍 언어와 운영체계에 맞게 변환하고 있다.
미래에는 응용프로그램들을 재작성하지 않고 새롭게 갱신하는 일이 보다 쉬워질 것이며, 기업들은 어떤 회사의 운영체계에서도 자신들의 응용프로그램을 그대로 사용할 수 있게 될 것이다.
새로운 언어로 바꾸는 것 외에도, 기업들은 응용프로그램과 데이터의 위치를 재배치하고 있다.
일반적으로 레거시 시스템들은 그것들을 개발했던 플랫폼에서만 운영될 수 있었다.
대체로 새로운 개발환경은 레거시 시스템과 데이터를 계속 지원해야할 필요에 대해 책임을 진다.
많은 새로운 도구들을 이용하여, 새로운 프로그램이 레거시 데이터베이스들을 액세스할 수 있다.
출처 : http://www.terms.co.kr/legacy.htm
깃허브 코파일럿 이란? github copilot (0) | 2022.05.26 |
---|
Namespace : Microsoft.Win32
Assembly : PresentationFramework.dll
download site : https://ko.dll-files.com/presentationframework.dll.html
attribute value : String
filter가 들어가 있는 string 값
exception : ArgumentException
code1 : empty/null
OpenFileDialog dlg = new OpenFileDialog();
// Show all files
dlg.Filter = string.Empty; //dlg.Filter = null;
dlg.ShowDialog();
code2 ( filter 1 )
OpenFileDialog dlg = new OpenFileDialog();
// Filter by Word Documents
dlg.Filter = "Json File|*.json";
dlg.ShowDialog();
code3 ( filter n )
OpenFileDialog dlg = new OpenFileDialog();
// Filter by Office Files
dlg.Filter = "Office Files|*.doc;*.xls;*.ppt";
dlg.ShowDialog();
code 4 ( all file )
OpenFileDialog dlg = new OpenFileDialog();
// Filter by All Files
dlg.Filter = "All Files|*.*";
dlg.ShowDialog();
code5 ( filter n )
OpenFileDialog dlg = new OpenFileDialog();
// Filter by Word Documents OR Excel Worksheets OR PowerPoint Presentations
// OR Office Files
// OR All Files
dlg.Filter = "Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt" +
"|Office Files|*.doc;*.xls;*.ppt" +
"|All Files|*.*";
dlg.ShowDialog();
표시되는 파일 형식의 하위 집합을 지정하려면 필터링할 하나 이상의 파일 형식을 지정하는 문자열 값(필터 문자열)으로 속성을 설정합니다Filter.
다음은 필터 문자열의 예상 형식을 보여줍니다.
FileType1[[|FileType2]...[|FileTypeN]]
다음 형식을 사용하여 각 파일 형식을 설명합니다.
Label|Extension1[[;Extension2]...[;ExtensionN]]
레이블 부분은 다음과 같이 파일 형식을 설명하는 사람이 읽을 수 있는 문자열 값입니다.
각 파일 형식은 하나 이상의 확장 명에서 설명해야 합니다.
둘 이상의 확장을 사용하는 경우 각 확장을 세미콜론(";")으로 구분해야 합니다.
"java file"|"*.jave"
"Json file"|"*.json"
"c file"|"*.c"
"c# file"|"*.cs"
"office file"|"*.doc;*.xls;*.ppt"
"모든 파일"|"*.*"
적용 대상
제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7 Preview 4
참고 사이트 : https://docs.microsoft.com/ko-kr/dotnet/api/microsoft.win32.filedialog.filter?view=windowsdesktop-6.0
C# 파일 처리 함수 모음 ( 계속 추가 ) (0) | 2022.06.12 |
---|---|
C# TSource, TResult, TKey, TElement란 무엇인가? (0) | 2022.06.09 |
TSource
generic type parameter
public static IEnumerable<TSource> Union<TSource>
LINW method에서 일반적으로 다음의 파라메터를 사용한다.
Tsource : element tpye of the input ( source )
TResult : element tpye of the output ( result )
TKey : element type of a key used for things like grouping
TElement : element type of an intermediate sequence
C# 파일 처리 함수 모음 ( 계속 추가 ) (0) | 2022.06.12 |
---|---|
c#(WPF) OpenFileDialog, SaveFileDialog 란? 필터 설정 (0) | 2022.06.10 |
DNF란?
DNF(Dandified Yum)는 RPM 기반 리눅스 배포판을 위한 패키지 관리도구이다.
페도라 18에 처음 도입되었고, 페도라 22와 레드햇 엔터프라이즈 리눅스 8부터 기존의 Yum을 대신하여 기본 패키지 관리도구로 채택되었다.
DNF는 Yum의 낮은 성능, 많은 메모리 사용량, 비효율적인 중복 의존성 해결 메커니즘 등의 문제를 해결하기 위해 개발되었고,[5] Yum과 달리, 외부 라이브러리인 libsolv를 통해 의존성 문제를 처리한다.[5]
DNF는 RPM 패키지 매니저와 여러 지원 라이브러리를 이용하여 패키지 관리 작업을 수행한다.
처음에는 Yum 3.4를 기반으로 파이썬으로 개발되었지만, 지금은 대부분의 기능을 C로 포팅하여 libdnf 라이브러리로 옮기는 작업이 진행 중이다.
출처 https://ko.wikipedia.org/wiki/DNF_(%EC%86%8C%ED%94%84%ED%8A%B8%EC%9B%A8%EC%96%B4)
dnf 설치 (CentOS)
yum install epel-release -y
yum install dnf
dnf version check
dnf --version
dnf repo list check(activate) / dnf repo list all check ( activate & non activate )
dnf repolist
dnf repolist all
dnf list ( packate list ) ( list available )
dnf list
installed dnf package list
dnf list installed
available dnf list of activated repository
dnf list available
dnf package search
dnf search [package name]
dnf package information check
dnf info [package name]
dnf pakage service search
dnf provides [service name]
dnf package install
dnf install [package name]
dnf update package / dnf update package all
dnf update [package name]
dnf update
dnf update check
dnf check-update
dnf package remove
dnf remove [package name]
dnf erase [package name]
dnf auto remove package ( not used package )
dnf autoremove
dnf remove all package
dnf clean all
dnf help ( man page )
dnf help
dnf help [cmd name]
dnf history check
dnf history
dnf group install
dnf groupinstall '[group name]'
dnf group update
dnf groupupdate '[group name]'
dnf group remove
dnf groupremove '[group name]'
install packages from specific repositories
dnf --enablerepo=[repo name] install [package name]
dnf sync package
dnf distro-sync
dnf package reinstall
dnf reinstall
출처 및 참고
https://dnf.readthedocs.io/en/latest/command_ref.html
DNF Command Reference — dnf latest documentation
For an explanation of , and see Specifying Packages. Alias Command Allows the user to define and manage a list of aliases (in the form ), which can be then used as dnf commands to abbreviate longer command sequences. For examples on using the alias command
dnf.readthedocs.io
https://github.com/rpm-software-management/dnf/blob/master/doc/command_ref.rst
GitHub - rpm-software-management/dnf: Package manager based on libdnf and libsolv. Replaces YUM.
Package manager based on libdnf and libsolv. Replaces YUM. - GitHub - rpm-software-management/dnf: Package manager based on libdnf and libsolv. Replaces YUM.
github.com
failed to download metadata for repo 'appstream' error 해결 (0) | 2022.06.07 |
---|
Error dnf Message
yum upgrade -y
CentOS Linux 8 - AppStream
Error: Failed to download metadata for repo 'appstream':
Cannot prepare internal mirrorlist: No URLs in mirrorlist
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
원인
CentOS EOS로 인한 CentOS Mirror Site가 vault이기 때문에, Mirror Site를 찾지 못해서 발생.
즉, CentOS 패키지 레포의 주소가 잘못 되었거나 접속하지 못하여 발생.
기존의 Mirror site를 Vault로 전환하여 변경.
해결방법
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
근본적인 해결 방법
당장 일시적으로 이 문제를 해결은 가능하지만, 해당 repo는 더이상 package 유지 보수가 없으므로 centOS 8 stream으로 전환이 필요.
참고 사이트 : https://linuxhandbook.com/update-to-centos-stream/
기존 사용 centOS에서 사용하는 방법
> dnf install centos-release-stream -y
> dnf swap centos-{linux,stream}-repos -y
> dnf distro-sync -y
DNF 설명
2022.06.08 - [문제해결/centos] - DNF (Defined YUM) 이란? ( rpm 패키지 관리 )
DNF (Defined YUM) 이란? ( rpm 패키지 관리 ) (0) | 2022.06.08 |
---|