jimsjoo
jimsjoo
nร˜thing speciaยก
347 posts
Don't wanna be here? Send us removal request.
jimsjoo ยท 2 months ago
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]โ€ฆ
Tumblr media
View On WordPress
0 notes
jimsjoo ยท 2 months ago
Text
n8n๊ณผ ๊ตฌ๊ธ€API
ํ•œ๋•Œ RPA๋ผ๋Š” ์šฉ์–ด๊ฐ€ ์œ ํ–‰ํ–ˆ๋Š” ๋ฐ, ์ด๋ฒˆ์—๋Š” ์ƒˆ๋กœ์šด ์ž๋™ํ™”ํˆด๋“ค์ด AI์™€ ๊ฒฐํ•ฉํ•˜์—ฌ ๋œจ๊ฑฐ์›Œ์ง€๊ณ  ์žˆ๋‹ค. IFTTT, Zapier, Make, n8n, Power ๋“ฑ์ด ๊ทธ๋“ค์ธ๋ฐ, ์‚ฌ์‹ค ์ œ๋Œ€๋กœ ์จ๋ณธ ๊ฑด ์—†๋‹ค. ๊ทธ ์ด์œ ๋Š” ์ด ๊ธ€์„ ์“ฐ๋Š” ๋„˜์ด๊ณ ์ธ๋ฌผ๊ธ‰์ด๋ผ VBA์™€ ๊ฐ™์€ ๋กœ์ปฌํ™˜๊ฒฝ์•ˆ์—์„œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“ค์–ด ๊ตด๋ฆฌ๋Š” ๊ฒŒ ๋” ํŽธ์•ˆํ•˜๋‹ค. ์•„๋ž˜ ๋งํฌ๋Š” ๋ฌด๋ฃŒ์ž๋™ํ™”ํˆด์„ ์†Œ๊ฐœํ•˜๋Š” ๊ธ€์ธ๋ฐ, ๋„๊ตฌ ์„ ํƒ์— ๋„์›€์ด ๋  ์ˆ˜์žˆ์„ ๊ฒƒ์ด๋‹ค. ๋ฌด๋ฃŒ ์—…๋ฌด ์ž๋™ํ™” ํˆด TOP 5: IFTTT, Zapier, Make, n8n, PowerAUTOMATE ์ดˆ๋ณด์ž๋กœ์„œ ์ด๋Ÿฌํ•œ ํˆด์ด ์–ด๋ ค์šด ์ด์œ ์ค‘ ํ•˜๋‚˜๋Š” ์™ธ๋ถ€์„œ๋น„์Šค๋ฅผ ์—ฐ๊ณ„ํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ์ธ์ฆ์ด ์–ด๋ ค์šด ํƒ“์ด๊ธฐ๋„ ํ•˜๋‹ค. ๊ตฌ๊ธ€์˜ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์„œ๋น„์Šค๋Š” ์Šค๋งˆํŠธํฐ๊ณผ ์—ฎ์—ฌ์„œ ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, ๊ทธ๋“ค์˜ ์„œ๋น„์Šค๋ฅผ ์—ฐ๊ณ„ํ•˜๋ฉด ๊ทผ์‚ฌํ•œโ€ฆ
Tumblr media
View On WordPress
0 notes
jimsjoo ยท 11 months ago
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
jimsjoo ยท 1 year ago
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๋น„ํŠธ๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ๋ณต๊ตฌ ๊ฐ€๋Šฅ). ๋‹ค๋ฅธโ€ฆ
Tumblr media
View On WordPress
0 notes
jimsjoo ยท 2 years ago
Text
DDE๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ATM ์˜ต์…˜๋ธํƒ€ ๋ชจ๋‹ˆํ„ฐ๋ง
๊ฐ„๋งŒ์— DDE๋ฅผ ์‚ฌ์šฉํ•˜๋Š” VBA์ฝ”๋”ฉ์„ ํ•ด๋ณด์•˜๋‹ค. ์ด๋ฏธ ์˜ˆ์ „์— DDE VBA์ฝ”๋“œ๋ฅผ ์„  ๋ณด์ธ ๋ฐ” ์žˆ๋‹ค. ์ด๋ฒˆ ์˜ˆ์ œ๋Š” ์—ฌ๋Ÿฌ ํ–‰์‚ฌ๊ฐ€๊ฒฉ์˜ ์˜ต์…˜ ๊ทธ๋ฆญ์Šค(greeks)๋ฅผ ์›Œํฌ์‹œํŠธ์— ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋ณด์—ฌ์ฃผ๊ณ  , ์ด์ค‘ ATM ์ฝœ์˜ต์…˜(๊ธฐ์ดˆ์ž์‚ฐ์˜ ๊ฐ€๊ฒฉ๋ณ€๋™์— ๋”ฐ๋ผ ATM์˜ต์…˜์€ ๋‹ฌ๋ผ์ง„๋‹ค)์˜ ๋ธํƒ€๋ฅผ ์‹œ๊ฐ„๋ณ„๋กœ ๋ผ์ธ์ฐจํŠธ๋กœ ๋ณด์—ฌ์ค€๋‹ค. ์œ„์˜ ๊ทธ๋ฆผ์—์„œ ์ฝœ๋ธํƒ€, ํ’‹๋ธํƒ€ ์ฐจํŠธ๋Š” ์—ฌ๋Ÿฌ ํ–‰์‚ฌ๊ฐ€๊ฒฉ ์˜ต์…˜์˜ ๋ธํƒ€๋ฅผ ์ด์–ด ๋†“์€ ๊ฒƒ์ธ๋ฐ, ์ด๋ก ์—์„œ ๋ฐฐ์šด ๊ฒƒ๊ณผ ๋น„์Šทํ•œ ๋ชจ์–‘์ด๋‹ค. ์ฝœ๋ธํƒ€์ถ”์ด ์ฐจํŠธ๋Š” ์‹œ๊ฐ„๋ณ„๋กœ ๊ธฐ์ดˆ์ž์‚ฐ์ธ ์„ ๋ฌผ๊ฐ€๊ฒฉ๊ณผ ATM์˜ต์…˜์˜ ๋ธํƒ€๋ฅผ ๋ณด์—ฌ์ค€๋‹ค. (๋‚˜์ค‘์— ๋‹ค์‹œ ์“ธ๊ฒŒ์š”. ๊ธ‰ ๊ท€์ฐฎ. ํ˜„ํƒ€๊ฐ€ ์˜ด-์ด์ง“์„ ๋ญํ•˜๋Ÿฌ ํ•˜๋‚˜ ์‹ถ์Œ)
Tumblr media
View On WordPress
1 note ยท View note
jimsjoo ยท 2 years ago
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
jimsjoo ยท 2 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
Text
์ง„์ •ํ•œ ๋‚œ์ˆ˜๋ฐœ์ƒ๊ธฐ
์ฃผ์‚ฌ์œ„๋ฅผ ์ง์ ‘ ๋˜์ ธ ๊ตฌํ•œ ๋‚œ์ˆ˜์ž…๋‹ˆ๋‹ค. ํ™•์‹คํ•˜์ฃ ~
Tumblr media
View On WordPress
0 notes
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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
jimsjoo ยท 3 years ago
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