1. 문자(열) 함수LOWER소문자로 변환UPPER대문자로 변환INITCAP첫문자 대문자로 변환CONCAT문자열 합치기SUBSTR서브 문자여 리턴LENGTH문자열 길이 리턴INSTR문자열 내 문자열 검색LPAD왼쪽 패딩 채우기RPAD오른쪽 패딩 채우기LTRIM왼쪽 공백 제거RTRIM오른쪽 공백 제거TRIM양쪽 공백 제거TRANSLATE문자 치환REPLACE문자열 채환CHR아스키 값으로 문자 구하기ASCII문자로 아스키 값 구하기 2. 숫자 함수ROUND소수점 이하 반올림TRUNC소수점 이하 버림CEIL소수점 이하 올림MOD나머지 값 반환POWER제곱승SIGN양수는 1, 0은 0, 음수는 -1 반환 3. 그룹 함수SUM합산값AVG평균값MAX최대값COUNT갯수4. 날자 함수SYSDATE, NOW시스템 날자T..
[ 1 ] def main(): [ 2 ] [ 3 ] [ 4 ] print(a) print(b) print(c) if __name__ == "__main__": main() [실행 결과]172.30.1.2b'\xac\x1e\x01\x02'172.30.1.2 [작성조건]1. 파이썬의 socket 라이브러리를 가져오는 코드를 작성하시오.2. 자신의 호스트명을 ip로 반환한 결과를 a 변수에 저장하는 코드를 작성하시오.3. a 변수의 ip 주소를 16로 변환하여 b 변수에 저장하는 코드를 작성하시오.4. b 변수의 ip 주소를 다시10진수롤 변환하여 c 변수에 저장하는 코드를 작성하시오. Solution1234import socketa = socket.gethostbyname(socket.gethostname..
New-Object System.Net.Sockets.TcpClient("1.1.1.1", 21) 파워쉘에서 FTP 포트 오픈 시에 1New-Object : Exception calling ".ctor" with "2" argument(s): "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full cs 에러가 발생하였습니다. 1netstat -ancs netstat로 확인해보니, 무지하게 많은 포트가 TIME_WAIT 상태로 오픈되어있었고, 그로 인해서 더이상 포트를 열수 없는 상태였습니다.왜 이런 일이 발생했는지 조사해보니 윈도우즈 ..
12345678910111213141516Function Using-Culture ([System.Globalization.CultureInfo]$culture = (throw “USAGE: Using-Culture -Culture culture -Script {scriptblock}”),[ScriptBlock]$script= (throw “USAGE: Using-Culture -Culture culture -Script {scriptblock}”)){ $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture trap { [System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCul..
123456789101112131415161718$homeDir = C:\home $items = New-Object System.Collections.ArrayList$items.Add($homeDir) $dirs = Get-ChildItem -Path $homeDir -Recurse | ?{ $_.PSIsContainer } | Select-Object FullNameforeach ($dir in $dirs) { $items.Add($dir.FullName)} $files = Get-ChildItem -Path $homeDir -Recurse | Select-Object DirectoryName,Name | where { $_.DirectoryName -ne $NULL }foreach ($file i..
instsrv.exe, srvany.exe 설치instsrv.exe는 서비스를 등록/삭제 할 수있는 툴이고, 해당 툴을 이용하여, srvany.exe 를 서비스로 등록하면, 외부 어플리케이션을 서비스로 실행할 수 있게 해주다.두파일은 windows 2003 Resource Kit Tools 에서 제공하는 툴로 없는 경우 실행파일만 복사해줘도 된다.C:\windows\system32\instsrv.exeC:\windows\system32\srvany.exeinstsrv.exe는 파워쉘 명령어로 대체 가능서비스 등록instsrv.exe TestService "C:\windows\system32\srvany.exe"또는 파워쉘에서 New-Service -Name "TestService" -BinaryPathN..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879import requestsimport json api_url = "https://https://api.warpmemory.com/v1"#auth = ('id', 'passwd')auth = ()header = {'Content-Type': 'application/json'}server = "server-001.warpmemory.com"user = "test"passwd = "password"quota = 1000bandwidth = 200..
예제123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566Colored by Color Scriptercsrestclient.php1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131..
- Total
- Today
- Yesterday
- File
- client
- RESTful
- limits
- deview
- Web
- 번역
- monitoring
- command
- code
- example
- Module
- Ansible
- Python
- engineering
- mysql
- httpd
- 예제
- apache
- configuration
- Linux
- 외부링크
- PowerShell
- MariaDB
- Windows
- 이슈처리
- 명령어
- error
- 코드
- check
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |