Don't wanna be here? Send us removal request.
Text
OpenAI APIํค
์ง๋ ๋ฒ์๋ ๊ตฌ๊ธ์ธ์ฆ์ ์ป๊ธฐ ์ํ ๋ณต์กํ ๊ณผ์ ์ ๊ฐ๋ตํ๊ฒ ๋ณด์๋ ๋ฐ, ์ด๋ฒ์๋ OpenAI ํค๋ฅผ ์ป์ด์ผ ํ๋ค. ๊ตฌ๊ธ์ ๋นํด ์๋นํ ๊ฐ๋จํ๋ค. ์๋์ ๋งํฌ๋ฅผ APIํค๋ฅผ ์ป๊ธฐ ์ํด ์ฐธ์กฐํ ๋ธ๋ก๊ทธ ๊ธ์ด๋ค. n8n x ChatGPT : AI์ผ๋ก ์๋ํ์ ๋ ๊ฐ๋ฅผ ๋ฌ์๋ณด์ ๋ค๋ง ๋ธ๋ก๊ทธ ๊ธ์ ๋ฐ๋ผํ๋ค ๋งํ๋ ๋ถ๋ถ์ด ์๋ ๋ฐ, ๋ธ๋ก๊ทธ์์ ๋งํ Dashboard-API Keys ๋ฉ๋ด๊ฐ ์๋ณด์ธ๋ค๋ ๊ฒ์ด๋ค. ๊ธ์ ์์ฑ์์ ์ดํ OpenAI platform ํ์ด์ง๊ฐ ๋ณ๊ฒฝ๋ ๋ฏํ๋ค. ์ด๋ฐ ๊ฒฝ์ฐ Search ํ
์คํธ ์์์ โAPI Keysโ๋ก ๊ฒ์ํ๋ฉด ๋ฐ๋ก ์ฐพ์ ๊ฐ ์ ์๋ค(https://platform.openai.com/settings/organization/api-keys) [Create new secret key]โฆ
View On WordPress
0 notes
Text
n8n๊ณผ ๊ตฌ๊ธAPI
ํ๋ RPA๋ผ๋ ์ฉ์ด๊ฐ ์ ํํ๋ ๋ฐ, ์ด๋ฒ์๋ ์๋ก์ด ์๋ํํด๋ค์ด AI์ ๊ฒฐํฉํ์ฌ ๋จ๊ฑฐ์์ง๊ณ ์๋ค. IFTTT, Zapier, Make, n8n, Power ๋ฑ์ด ๊ทธ๋ค์ธ๋ฐ, ์ฌ์ค ์ ๋๋ก ์จ๋ณธ ๊ฑด ์๋ค. ๊ทธ ์ด์ ๋ ์ด ๊ธ์ ์ฐ๋ ๋์ด๊ณ ์ธ๋ฌผ๊ธ์ด๋ผ VBA์ ๊ฐ์ ๋ก์ปฌํ๊ฒฝ์์์ ์คํฌ๋ฆฝํธ๋ฅผ ๋ง๋ค์ด ๊ตด๋ฆฌ๋ ๊ฒ ๋ ํธ์ํ๋ค. ์๋ ๋งํฌ๋ ๋ฌด๋ฃ์๋ํํด์ ์๊ฐํ๋ ๊ธ์ธ๋ฐ, ๋๊ตฌ ์ ํ์ ๋์์ด ๋ ์์์ ๊ฒ์ด๋ค. ๋ฌด๋ฃ ์
๋ฌด ์๋ํ ํด TOP 5: IFTTT, Zapier, Make, n8n, PowerAUTOMATE ์ด๋ณด์๋ก์ ์ด๋ฌํ ํด์ด ์ด๋ ค์ด ์ด์ ์ค ํ๋๋ ์ธ๋ถ์๋น์ค๋ฅผ ์ฐ๊ณํ๊ธฐ ์ํด ํ์ํ ์ธ์ฆ์ด ์ด๋ ค์ด ํ์ด๊ธฐ๋ ํ๋ค. ๊ตฌ๊ธ์ ์ฌ๋ฌ๊ฐ์ง ์๋น์ค๋ ์ค๋งํธํฐ๊ณผ ์ฎ์ฌ์ ์์ฃผ ์ฌ์ฉํ๋๋ฐ, ๊ทธ๋ค์ ์๋น์ค๋ฅผ ์ฐ๊ณํ๋ฉด ๊ทผ์ฌํโฆ
View On WordPress
0 notes
Text
What sort algorithm should I use?
What sort algorithm should I use?Most of the sort functions in the library use a mix of sort algorithms based on quicksorts because some sort algorithms are much faster when there are fewer elements and some algorithms work when there are more. For example, for libstdc++, GCCโs C++ library, the sort function partitions to a certain depth, and if the partition is moderately small, it performs anโฆ
0 notes
Text
Office365 ์
๊ทธ๋ ์ด๋ํ VBA์๋๋ฌธ์
๋งค์ฐ ์ฑ๊ฐ์ Excel VBA ํ์ผ ์์ ๋ฌธ์ (Excel 365๋ก ์
๊ทธ๋ ์ด๋ํ๋ฉด ํตํฉ ๋ฌธ์์ VBA ์ฝ๋๊ฐ ์๋ํ์ง ์์)๊ฐ ์๋ค๋ฉด ์๋ํด ๋ณผ ๋งํ ๋ฐฉ๋ฒ์ด ํ๋ ์๋ค. ๋ค์๊ณผ ๊ฐ์ด ๊ด๋ จ ๋ ์ง์คํธ๋ฆฌ๋ฅผ ์์ ํ๋ค. \HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\options ๋ก ์ด๋ํ์ฌ ์๋ก์ด DWORD๊ฐ์ ์ถ๊ฐํ๊ณ ์ด๋ฆ์ โForceVBALoadFromSourceโ๋ก ๋ช
๋ช
ํ๋ค. ๊ทธ๋ฆฌ๊ณ ๊ฐ์ 1๋ก ํ๋ค(์๋ ๊ทธ๋ฆผ ์ฐธ๊ณ ) ์ฃผ์ ๋ค์ ๋ฐ์ ๋ฐ๋ฅด๋ฉด โ์์ธ์ Excel์ด VBA ์ฝ๋์ ์ปดํ์ผ ์ํ๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์ ์ฅํ์ง ์์ 64๋นํธ Excel์ด ์ํฅ์ ๋ฐ๋ Excel ํ์ผ์ ์ด ๋ ํด๋น ๋ฌธ์ ์์ ๋ณต๊ตฌํ ์ ์๊ธฐ ๋๋ฌธ์
๋๋ค(32๋นํธ๋ ์ผ๋ฐ์ ์ผ๋ก ๋ณต๊ตฌ ๊ฐ๋ฅ). ๋ค๋ฅธโฆ
View On WordPress
0 notes
Text
DDE๋ฅผ ์ฌ์ฉํ์ฌ ATM ์ต์
๋ธํ ๋ชจ๋ํฐ๋ง
๊ฐ๋ง์ DDE๋ฅผ ์ฌ์ฉํ๋ VBA์ฝ๋ฉ์ ํด๋ณด์๋ค. ์ด๋ฏธ ์์ ์ DDE VBA์ฝ๋๋ฅผ ์ ๋ณด์ธ ๋ฐ ์๋ค. ์ด๋ฒ ์์ ๋ ์ฌ๋ฌ ํ์ฌ๊ฐ๊ฒฉ์ ์ต์
๊ทธ๋ฆญ์ค(greeks)๋ฅผ ์ํฌ์ํธ์ ์ค์๊ฐ์ผ๋ก ๋ณด์ฌ์ฃผ๊ณ , ์ด์ค ATM ์ฝ์ต์
(๊ธฐ์ด์์ฐ์ ๊ฐ๊ฒฉ๋ณ๋์ ๋ฐ๋ผ ATM์ต์
์ ๋ฌ๋ผ์ง๋ค)์ ๋ธํ๋ฅผ ์๊ฐ๋ณ๋ก ๋ผ์ธ์ฐจํธ๋ก ๋ณด์ฌ์ค๋ค. ์์ ๊ทธ๋ฆผ์์ ์ฝ๋ธํ, ํ๋ธํ ์ฐจํธ๋ ์ฌ๋ฌ ํ์ฌ๊ฐ๊ฒฉ ์ต์
์ ๋ธํ๋ฅผ ์ด์ด ๋์ ๊ฒ์ธ๋ฐ, ์ด๋ก ์์ ๋ฐฐ์ด ๊ฒ๊ณผ ๋น์ทํ ๋ชจ์์ด๋ค. ์ฝ๋ธํ์ถ์ด ์ฐจํธ๋ ์๊ฐ๋ณ๋ก ๊ธฐ์ด์์ฐ์ธ ์ ๋ฌผ๊ฐ๊ฒฉ๊ณผ ATM์ต์
์ ๋ธํ๋ฅผ ๋ณด์ฌ์ค๋ค. (๋์ค์ ๋ค์ ์ธ๊ฒ์. ๊ธ ๊ท์ฐฎ. ํํ๊ฐ ์ด-์ด์ง์ ๋ญํ๋ฌ ํ๋ ์ถ์)
View On WordPress
1 note
ยท
View note
Text
VBA์์ Restful API์ด์ฉํ๊ธฐ
์ข์ ๋๊ตฌ๊ฐ ๋ง์ ์ธ์์ VBA ๋ฐ์๋ก ์ด๋ฐ ์ผ์ ํ๋ ๊ฒ ๋ฉ์ฒญํ ์ผ์ด๋ค. ๊ทธ๋ฌ๋ ์์
์์ ์ผ์ด๋๋ ์์
๊ณผ ์ฐ๊ณํ ํ์์ฑ์ด ์๋ ๊ฒฝ์ฐ ๋ฐ๋ณด ๊ฐ์ ์ง์ด๋ผ๋ ํด๋๋ฉด ๋ซ์ง ์์ ๊น? ๋ค์์ ํ๋งค์ ๋ณด๋ฅผ ๋ณด๋ด๋ ์ฝ๋์ค ์ผ๋ถ์ด๋ค. Dim json As New Dictionary json("apiType") = "sale" json("srs") = srs json("srsNo") = srsNo json("saleCnt") = saleCnt json("memId") = memId json("memNo") = memNo json("memName") = memName json("returnYn") = returnYn json("txId") = txId Data =โฆ
View On WordPress
3 notes
ยท
View notes
Text
์ํฌ์ํธ์ ์ ๋ง๊ฐ ํ์ ์ธ์ ๋บ๋บ์ด ๋๋?
ํํ๋ก์ด ์ํฌ์ํธ์ VBA ๋๊ท๋ชจ ๊ณต์ฌ๋ฅผ ๋ฒ์ผ ์ฐธ์ด์๋ค. 1,048,576๊ฐ์ ํ์ ๋ชจ๋ ๋๋ ๊ฑด ์๋์ง๋ง ์์ฒ, ์๋ง ๊ฐ์ ํ์ ์ํํ๋ฉด์ ๊ฐ์ข
์ฐ์ฐ์ ํ๋ ค๊ณ ์น๋ฉด ์์
์ ๋ง์ด ๊ฐ ์ ์๋ค. ๋ณดํต ํ๋ฒํ๊ฒ A์ปฌ๋ผ์ ์
๊ฐ์ด ๋น์ด ์๋ ์ง ๊ฒ์ฌํ๊ณ , ๋ญ๊ฐ ์๋ค๋ฉด ์์
์ ํ๊ณ , ์๋๋ฉด ๋ค์์ ํ๋ค. Sub demoLoopAllRows() Dim s As Worksheet Dim rngCmd As Range Const CELL_BEGIN = "A2" Const CELL_END = "A1048576" Set s = Sheet1 For Each rngCmd In s.Range(s.Range(CELL_BEGIN), s.Range(CELL_END).End(xlUp)) If Len(rngCmd) <> 0โฆ
View On WordPress
0 notes
Text
์์
๋ก JSON ๋ค๋ฃจ๊ธฐ
์น์์์ ๏ฟฝ๏ฟฝ๏ฟฝ์ดํฐ๋ฅผ ์ฃผ๊ณ ๋ฐ๋ ๋ณดํธ์ ์ธ ๋ฐ์ดํฐ ํ์์ ๊ผฝ์ผ๋ผ๋ฉด ๋น์ฐํ JSON์ด๋ค. ์ผ๋ฏผ์ด๋ ์ฝ๊ฒ ์ดํดํ ๋งํ ํฌ๋งท์ธ๋ฐ, ํค์ ๊ฐ ํ ์์ผ๋ก ์ ์กํ ๋ฐ์ดํฐ๋ฅผ ํํํ๋ค. ๊ทผ๋ฐ ์ด๊ฑธ ๋ณด๋๋ผ๋ฉด VBA์์ ๊ฐ๋ ์ฌ์ฉํ๋ ๋์
๋๋ฆฌ์ ๋ฌด์ฒ ๋ฎ์ ์๋ค. ๋์
๋๋ฆฌ๋ ํค์ ๊ฐ์ ๋ค๋ฃจ๋ ๋ฐ์ดํฐํ์ด๋ค. ์ฌ์ค ๊ทธ๋์ด ๊ทธ๋์ผ ๋ฏํ๋ค. VBA์์ ์ฌ์ฉํ ๋งํ JSON๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฐพ์๋ณด๋, โVBA-JSON'(github.com/VBA-tools/VBA-JSON)์ด๋ผ๋ ํ๋ฒํ ๊ฒ ํ๋ ์๋ค. ์ด๊ฒ์ VBA์์ JSONํฌ๋งท์ผ๋ก ๋ณํํ๊ณ ํ์ฑํด์ค๋ค. ๊นํ์ ์๊ฐํ ์ํ์ฝ๋๋ฅผ ๋ณด๋ฉด Dim Json As Object Set Json =โฆ
View On WordPress
0 notes
Text
WriteFile API๋ฅผ ์ฌ์ฉํ์ฌ ์ด์ง ํ์ผ ๋ฐ์ดํฐ ์ฐ๊ธฐ ๋ฐฉ๋ฒ
WriteFile API๋ฅผ ์ฌ์ฉํ์ฌ ์ด์ง ํ์ผ ๋ฐ์ดํฐ ์ฐ๊ธฐย ๋ฐฉ๋ฒ
๋จ์ ์ผ ๋์์ฃผ๋ค ๊ฒ์ํ ๊ฑด๋ฐ, ๋์ค์ ํน ์ธ ์ผ์ด ์์ ๊น ์ถ์ดโฆ Public Const GENERIC_WRITE = &H40000000 Public Const GENERIC_READ = &H80000000 Const FILE_ATTRIBUTE_NORMAL = &H80 Const CREATE_ALWAYS = 2 Const OPEN_ALWAYS = 4 Const INVALID_HANDLE_VALUE = -1 Const FILE_NAME = "TEST.DAT" 'This can be any file that does not 'currently exist. Type MyType value As Integer End Type Declare Function ReadFile Lib "kernel32"โฆ
View On WordPress
0 notes
Text
์ด๋ฒ ๋ฌ์ ๋ ๋ฒ์งธ ํ์์ผ์ ๋ฉฐ์น ์ผ๊น์?ย ย
Function dhNthWeekday(dtmDate As Date, intN As Long, _ intDOW As Long) As Date ' Find the date of the specified day within the month. For ' example, retrieve the 3rd Tuesday's date. Dim dtmTemp As Date If (intDOW < vbSunday Or intDOW > vbSaturday) _ Or (intN < 1) Then ' Invalid parameter values. Just ' return the passed-in date. dhNthWeekday = dtmDate Exit Function End If ' Get the first of theโฆ
View On WordPress
0 notes
Text
ํ๋ก์ธ์ค ๋ชฉ๋ก ๊ตฌํ๊ธฐ
๋ค์์ ํ๋ก์ธ์ค ๋ชฉ๋ก์ ๊ตฌํ๋ ์์ ์ด๋ค. ๊ฒฐ๊ณผ๋ ํ์ฌ ์ํฌ์ํธ์ ์ ์ฅํ๋ค. ์ฌ์ค ์ด๊ฑด VBA์ ๊ธฐ๋ฅ์ ์๋๊ตฌ ์
์คํฌ๋ฆฝํ
์ ํ์๋๊น Sub getprocess() Dim strComputer As String strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Process", , 48) Dim row As Integer row = 1 For Each objItem In colItems ActiveSheet.Cells(row, 1).Value =โฆ
View On WordPress
0 notes
Text
์ง์ ํ ๋์๋ฐ์๊ธฐ
์ฃผ์ฌ์๋ฅผ ์ง์ ๋์ ธ ๊ตฌํ ๋์์
๋๋ค. ํ์คํ์ฃ ~
View On WordPress
0 notes
Text
Getting disk usage data with the filesystem object in VBScript
Getting disk usage data with the filesystem object inย VBScript
๋๋ถ๋ถ ๋ฆฌ๋
์ค๋ฅผ ์๋ฒOS๋ก ์ฌ์ฉํ๊ธฐ๋ ํ์ง๋ง, ์์ง ์ต์์น ์์ ์๋๋ฅผ ์๋ฒ๋ก ์ฌ์ฉํ๋ ๊ฒฝ์ฐ๋ ์๋ค. ๋๊ฐ์ ๊ฒฝ์ฐ ๏ฟฝ๏ฟฝ๏ฟฝ๋ฒ๊ฐ ๋ณ ๋ง์ฝ์ ๋ถ๋ฆฌ์ง ์์ง๋ง ์ข
์ข
๋ชจ๋ํฐ๋ง ํ ํ์๊ฐ ์๊ธด๋ค. ์๋ฌด๋๋ CPU์ํ๋ ๋์คํฌ์ฉ๋ ๋ฑ๋ฑ์ ํ์ธํ์ฌ ๋ฉ์ผ๋ก ๋ณด๋ด์ฃผ๋ฉด ์ข์ ๊ฒ ๊ฐ์ ์คํฌ๋ฆฝํธ๋ฅผ ํ๋ ๋์ฉ ๋ชจ์ผ๋ ์ค์ธ๋ฐ ๋ค์์ ๋์คํฌ์ ์์ฌ์ฉ๋์ ํ์ธํด์ฃผ๋ ์คํฌ๋ฆฝํธ์ด๋ค. VBScript์ง๋ง VBA์ ๊ทธ๋๋ก ๊ฐ์ ธ๋ค ์ฌ์ฉํด๋ ๋๋ค. ์ด์ฐจํผ ๊ทธ๋์ด ๊ทธ๋ผ์ด๋ค. Function GetFreeSpace(Drive, strComputer) Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _ & strComputer & "\root\cimv2") Setโฆ
View On WordPress
0 notes
Text
Number with the thousands separated by commas
Number with the thousands separated byย commas
#include <string> #include <iostream> using namespace std; string sep_digit_by_comma( string s ){ string temp; int num= ( s.size()%3 ) ? ( s.size()/3 ) : ( s.size()/3 - 1 ); for( int i=0, j=0; i<=num; ++i ){ for( ; j<s.size()-3*(num-i); ++j ){ temp+=s.substr(j,1); } if( j!=s.size() ) temp+=","; } return temp; } int main(int argc, char *argv[]) { string s; cin >> s; cout <<โฆ
View On WordPress
0 notes
Text
The results of the SolverSolve functionย
์์
์ ํด์ฐพ๊ธฐ๋ ํ๋ก๊ทธ๋๋ฐ์ ์ต์ํ๊ฑฐ๋ ์ต์ํ์ง ์๊ฑฐ๋ ๋ง์ ์ฌ๋๋ค์ด ์ฌ์ฉํ๋ ์ ํ๋ฐฉ์ ์ ํด๊ฒฐ๋ฐฉ๋ฒ์ด๋ค. ๋น์ ํ๋ฐฉ์ ์์์๋ ๋ถ๊ตฌํ๊ณ ๋ง๋
ํ ํด์ด ์์ด ์ด๊ฑธ ์ฌ์ฉํ๊ธฐ๋ ํ๋ค. ๊ทธ๋ฐ๋ฐ ํ๋ก๊ทธ๋จ์ ๋ง๋ค์ด ๋ง์ ์์ ๋ฐฉ์ ์์ ํธ๋ ๊ฒฝ์ฐ ์ข
์ข
ํด์ฐพ๊ธฐ๊ฐ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด์ฃผ์ง ๋ชปํ๋ ๊ฒฝ์ฐ๋ ์๊ธด๋ค. ๋ค์์ ์ด๋ฐ ๊ฒฝ์ฐ(์ผ์ข
์ ์๋ฌ)๋ฅผ ๋๋นํ์ง ๋ชปํ ์ฝ๋์ด๋ค. SolverReset SolverAdd CellRef:="$B$5:$B$6", Relation:=1, FormulaText:="4" SolverOk SetCell:="$B$8", MaxMinVal:=1, ValueOf:="0", ByChange:="$B$5:$B$6" SolverSolve True ์์ ์ฝ๋์์ ํด์ฐพ๊ธฐ๋ฅผ ์คํํ๋ Solverํจ์๊ฐโฆ
View On WordPress
0 notes
Text
How to test running time of VBA code
How to test running time of VBAย code
๋ด๊ฐ ๋ง๋ ํจ์์ ์ฑ๋ฅ์ด ์ด๏ฟฝ๏ฟฝ๏ฟฝ ์ ๋ ์ธ์ง ํ์ธํ๋ ๋ฐฉ๋ฒ์ ์ฌ๋ฟ ์๋๋ฐ, VBA๊ฐ ์ ๊ณตํ๋ Now(), Timerํจ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒ ์ธ์ QueryPerformanceCounter/ QueryPerformanceFrequency๋ผ๋ APIํจ์๋ฅผ ํธ์ถํ๋ ๋ฐฉ๋ฒ์ด ์๋ค. ์ฌ์ค ์ฒจ ๋ณด๋ ํจ์๋ผ์ ์ด๋ ๊ฒ ์ฐธ๊ณ ์ผ์ ์ฌ๋ฆฐ๋ค. Option Explicit Private Type LARGE_INTEGER lowpart As Long highpart As Long End Type Private Declare Function QueryPerformanceCounter Lib "kernel32" _ (lpPerformanceCount As LARGE_INTEGER) As Long Private Declareโฆ
View On WordPress
0 notes
Text
How to Add controls to a frame in an Excel userform with VBA
How to Add controls to a frame in an Excel userform withย VBA
The following code demonstrates how you can dynamically populate a frame in a userform with controlsโฆ In the form I used I had a frame control named Frame1, so in the UserForm_Initialize you call Frame1.Controls.Add to embed a control in the frame. You can set the control which gets returned to a WithEvents control variable that you have defined in the UserForm code module so you can respond toโฆ
View On WordPress
0 notes