{"id":9102,"date":"2010-07-03T09:59:00","date_gmt":"2010-07-03T09:59:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=9102"},"modified":"2010-07-03T09:59:00","modified_gmt":"2010-07-03T09:59:00","slug":"%ec%99%84%ec%84%b1-%ed%81%b4%eb%a6%ad-%ec%88%98-%ec%84%b8%eb%8a%94-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%a8","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=9102","title":{"rendered":"\uc644\uc131 &#8211; \ud074\ub9ad \uc218 \uc138\ub294 \ud504\ub85c\uadf8\ub7a8"},"content":{"rendered":"<div class=\"desc\">\n<p>\n         \uc774\uac8c \uc5b4\uca4c\ub2e4 \uc774\ub807\uac8c \ub41c\uac74\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc \uc774\ubc88\uc5d0\ub3c4 \uc790\uc138\ud55c \uc124\uba85\uc740 \uc0dd\ub7b5\ud55c\ub2e4. \uc544\ubb34\ud2bc, \uc6d0\ud558\ub294\ub300\ub85c \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4\uc5c8\ub2e4. \uc774\uac83\uc73c\ub85c \ub808\uc774\uc800 \ud55c\ubc88 \uc3e0 \ub54c\ub9c8\ub2e4 \uba87\ubc88 \uc408\ub294\uc9c0 \uae30\ub85d\ud574 \uc8fc\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\ub3d9\uc2dc\ud0ac \uc0ac\ub78c 1\uba85\uc744 &#8220;\uc808\uc57d&#8221;\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\ub2e4. \ub0a0\ub9bc\uc73c\ub85c \ub9cc\ub4e0 \ucf54\ub4dc\uc774\uba70 \ub9e4\uc6b0 \uc26c\uc6b0\ubbc0\ub85c \uc18c\uc2a4\ucf54\ub4dc \ubd84\uc11d\uc740 \uac01\uc790 \ud574\ubcf4\uae30 \ubc14\ub780\ub2e4. \uc774\ub7f0 \ud504\ub85c\uadf8\ub7a8\uc744 \ub2e4\ub978\ub370\uc11c \uc4f8 \uc0ac\ub78c\uc774 \uc788\uc744\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc \ub9cc\uc57d \uc0ac\uc6a9\ud558\uace0 \uc2f6\ub2e4\uba74, \uac1c\uc778\uc801\uc778 \uc6a9\ub3c4\ub85c\ub294 \ub9c8\uc74c\uaecf \uc368\ub3c4 \ub418\uc9c0\ub9cc \uc5b4\ub518\uac00\uc5d0 \uacf5\ud45c\ud560 \ub54c\uc5d0\ub294 snowall\uc758 \uba85\uc2dc\uc801 \ud5c8\ub77d\uc744 \ubc1b\uace0 \uc0ac\uc6a9\ud558\uae38 \ubc14\ub780\ub2e4. (\uc800\uc791\uad8c\ub8cc\ub97c \ub530\ub85c \uccad\uad6c\ud558\uc9c0\ub294 \uc54a\uc744 \uac83\uc774\ub2e4.)<br \/>\n         \n<\/p>\n<div class=\"txc-textbox\" style=\"border: 1px solid rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;\">\n<br \/>\n         Public Class frmMain<br \/>\n         <br \/>\n         Private c As Integer = 0<br \/>\n         <br \/>\n         Private today As Integer = 0<br \/>\n         <br \/>\n         Private beginning As Integer = 0<br \/>\n         <br \/>\n         Private autoflag As Boolean = False<br \/>\n         <br \/>\n         Private diaflag As Boolean = False<br \/>\n         <br \/>\n         Private remoteFlag As Boolean = False<br \/>\n         <br \/>\n         Private filenumber As Integer = 0<br \/>\n         <br \/>\n         Private file As String()<\/p>\n<p>         Public Property intcount() As Integer<br \/>\n         <br \/>\n         Get<br \/>\n         <br \/>\n         Return c<br \/>\n         <br \/>\n         End Get<br \/>\n         <br \/>\n         Set(ByVal value As Integer)<\/p>\n<p>         If value < 0 Then\n         <br \/>\n         c = 0<br \/>\n         <br \/>\n         Else<br \/>\n         <br \/>\n         c = value<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         counting()<br \/>\n         <br \/>\n         End Set<br \/>\n         <br \/>\n         End Property<\/p>\n<p>         Private Sub counting()<br \/>\n         <br \/>\n         txtCount.Text = intcount.ToString<br \/>\n         <br \/>\n         txtPresent.Text = (intcount &#8211; 1).ToString<br \/>\n         <br \/>\n         &#8216;txtToday.Text = today.ToString<br \/>\n         <br \/>\n         System.IO.File.WriteAllText(My.Application.Info.DirectoryPath &#038; &#8220;\\APRICounter.txt&#8221;, txtCount.Text)<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub up()<br \/>\n         <br \/>\n         intcount += 1<br \/>\n         <br \/>\n         txtToday.Text = CInt(txtToday.Text) + 1<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub down()<br \/>\n         <br \/>\n         intcount -= 1<br \/>\n         <br \/>\n         txtToday.Text = CInt(txtToday.Text) &#8211; 1<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub reset()<br \/>\n         <br \/>\n         intcount = 0<br \/>\n         <br \/>\n         beginning = intcount<br \/>\n         <br \/>\n         txtToday.Text = 0<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub setting()<br \/>\n         <br \/>\n         Try<br \/>\n         <br \/>\n         intcount = CInt(txtSetCount.Text)<br \/>\n         <br \/>\n         beginning = intcount<br \/>\n         <br \/>\n         txtToday.Text = 0<br \/>\n         <br \/>\n         Catch<br \/>\n         <br \/>\n         End Try<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>\n         Private Sub btnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click<br \/>\n         <br \/>\n         reset()<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnUp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUp.Click<br \/>\n         <br \/>\n         up()<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnDown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDown.Click<br \/>\n         <br \/>\n         down()<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnSet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSet.Click<br \/>\n         <br \/>\n         setting()<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br \/>\n         <br \/>\n         Try<br \/>\n         <br \/>\n         intcount = System.IO.File.ReadAllText(My.Application.Info.DirectoryPath &#038; &#8220;\\APRICounter.txt&#8221;)<br \/>\n         <br \/>\n         beginning = intcount<br \/>\n         <br \/>\n         txtToday.Text = &#8220;0&#8221;<br \/>\n         <br \/>\n         Catch<br \/>\n         <br \/>\n         intcount = 0<br \/>\n         <br \/>\n         End Try<br \/>\n         <br \/>\n         txtDate.Text = System.DateTime.Today<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnFontSize_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFontSize.Click<br \/>\n         <br \/>\n         Dim fnt As Font<br \/>\n         <br \/>\n         fnt = New Font(System.Drawing.FontFamily.GenericSansSerif, CInt(txtFontSize.Text))<br \/>\n         <br \/>\n         txtCount.Font = fnt<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnAuto_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAuto.Click<br \/>\n         <br \/>\n         If diaflag Or remoteFlag Then<br \/>\n         <br \/>\n         If autoflag Then<br \/>\n         <br \/>\n         btnAuto.Text = &#8220;Auto&#8221; &#038; vbCr &#038; &#8220;count&#8221;<br \/>\n         <br \/>\n         Else<br \/>\n         <br \/>\n         btnAuto.Text = &#8220;Stop&#8221; &#038; vbCr &#038; &#8220;count&#8221;<br \/>\n         <br \/>\n         End If<\/p>\n<p>         autoflag = Not (autoflag)<br \/>\n         <br \/>\n         Timer1.Enabled = autoflag<br \/>\n         <br \/>\n         Exit Sub<br \/>\n         <br \/>\n         End If<\/p>\n<p>         If Not diaflag Then<br \/>\n         <br \/>\n         MsgBox(&#8220;First, Select auditing folder!&#8221;)<br \/>\n         <br \/>\n         Exit Sub<br \/>\n         <br \/>\n         End If<\/p>\n<p>         If Not remoteFlag Then<br \/>\n         <br \/>\n         MsgBox(&#8220;First, Select auditing file!&#8221;)<br \/>\n         <br \/>\n         Exit Sub<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick<br \/>\n         <br \/>\n         If diaflag Then<\/p>\n<p>         If filenumber <> System.IO.Directory.GetFiles(diaFolder.SelectedPath).Length Then<br \/>\n         <br \/>\n         file = System.IO.Directory.GetFiles(diaFolder.SelectedPath)<br \/>\n         <br \/>\n         txtCount.Text = CInt(filenameWashing(file, diaFolder.SelectedPath.Length)) + 1<br \/>\n         <br \/>\n         Me.txtPresent.Text = CInt(filenameWashing(file, diaFolder.SelectedPath.Length))<br \/>\n         <br \/>\n         txtToday.Text = CInt(txtToday.Text) + 1<\/p>\n<p>         Else<br \/>\n         <br \/>\n         Exit Sub<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         filenumber = System.IO.Directory.GetFiles(diaFolder.SelectedPath).Length<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         If remoteFlag Then<br \/>\n         <br \/>\n         Dim n As New System.IO.StreamReader(OpenFileDialog1.FileName)<br \/>\n         <br \/>\n         Dim k As String<br \/>\n         <br \/>\n         k = n.ReadLine<br \/>\n         <br \/>\n         If txtToday.Text <> k Then<br \/>\n         <br \/>\n         txtPresent.Text = txtCount.Text<br \/>\n         <br \/>\n         txtCount.Text = CInt(txtCount.Text) + 1<br \/>\n         <br \/>\n         txtToday.Text = k &#8216;CInt(txtToday.Text) + 1<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         n.Close()<br \/>\n         <br \/>\n         n.Dispose()<\/p>\n<p>         End If<\/p>\n<p>         System.IO.File.WriteAllText(My.Application.Info.DirectoryPath &#038; &#8220;\\APRICounter.txt&#8221;, txtCount.Text)<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnDir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDir.Click<br \/>\n         <br \/>\n         If diaFolder.ShowDialog <> Windows.Forms.DialogResult.Cancel Then<br \/>\n         <br \/>\n         flagClean()<br \/>\n         <br \/>\n         diaflag = True<br \/>\n         <br \/>\n         End If<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnSetToday_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSetToday.Click<br \/>\n         <br \/>\n         txtToday.Text = txtSetCount.Text<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Function filenameWashing(ByVal filename() As String, ByVal baseLength As Integer) As String<br \/>\n         <br \/>\n         &#8216;Dim f As String<br \/>\n         <br \/>\n         Dim files As Integer()<br \/>\n         <br \/>\n         ReDim files(filename.Length)<br \/>\n         <br \/>\n         Dim i As Integer<\/p>\n<p>         Dim regexPattern As String = &#8220;[^0-9]&#8221;<br \/>\n         <br \/>\n         Dim regex As New System.Text.RegularExpressions.Regex(regexPattern)<br \/>\n         <br \/>\n         For i = 0 To filename.Length &#8211; 1<br \/>\n         <br \/>\n         files(i) = CInt(regex.Replace(filename(i).Substring(baseLength, filename(i).Length &#8211; 4 &#8211; baseLength), regexPattern, &#8220;&#8221;)) &#8216;CAUTION!!! This code will work WRONG<br \/>\n         <br \/>\n         Next<br \/>\n         <br \/>\n         Array.Sort(files)<br \/>\n         <br \/>\n         Return files(files.Length &#8211; 1)<br \/>\n         <br \/>\n         End Function<\/p>\n<p>         Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click<br \/>\n         <br \/>\n         Me.Close()<br \/>\n         <br \/>\n         End Sub<\/p>\n<p>         Private Sub btnRemote_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemote.Click<br \/>\n         <br \/>\n         If OpenFileDialog1.ShowDialog <> Windows.Forms.DialogResult.Cancel Then<br \/>\n         <br \/>\n         flagClean()<br \/>\n         <br \/>\n         remoteFlag = True<br \/>\n         <br \/>\n         txtToday.Text = 0<\/p>\n<p>         End If<\/p>\n<p>         End Sub<\/p>\n<p>         Private Sub flagClean()<br \/>\n         <br \/>\n         remoteFlag = False<br \/>\n         <br \/>\n         diaflag = False<br \/>\n         <br \/>\n         autoflag = False<br \/>\n         <br \/>\n         End Sub<br \/>\n         <br \/>\n         End Class<\/p>\n<p>\n<\/div>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=1930\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\uac8c \uc5b4\uca4c\ub2e4 \uc774\ub807\uac8c \ub41c\uac74\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc \uc774\ubc88\uc5d0\ub3c4 \uc790\uc138\ud55c \uc124\uba85\uc740 \uc0dd\ub7b5\ud55c\ub2e4. \uc544\ubb34\ud2bc, \uc6d0\ud558\ub294\ub300\ub85c \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4\uc5c8\ub2e4. \uc774\uac83\uc73c\ub85c \ub808\uc774\uc800 \ud55c\ubc88 \uc3e0 \ub54c\ub9c8\ub2e4 \uba87\ubc88 \uc408\ub294\uc9c0 \uae30\ub85d\ud574 \uc8fc\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\ub3d9\uc2dc\ud0ac \uc0ac\ub78c 1\uba85\uc744 &#8220;\uc808\uc57d&#8221;\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\ub2e4. \ub0a0\ub9bc\uc73c\ub85c \ub9cc\ub4e0 \ucf54\ub4dc\uc774\uba70 \ub9e4\uc6b0 \uc26c\uc6b0\ubbc0\ub85c \uc18c\uc2a4\ucf54\ub4dc \ubd84\uc11d\uc740 \uac01\uc790 \ud574\ubcf4\uae30 \ubc14\ub780\ub2e4. \uc774\ub7f0 \ud504\ub85c\uadf8\ub7a8\uc744 \ub2e4\ub978\ub370\uc11c \uc4f8 \uc0ac\ub78c\uc774 \uc788\uc744\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc \ub9cc\uc57d \uc0ac\uc6a9\ud558\uace0 \uc2f6\ub2e4\uba74, \uac1c\uc778\uc801\uc778 \uc6a9\ub3c4\ub85c\ub294 \ub9c8\uc74c\uaecf \uc368\ub3c4 \ub418\uc9c0\ub9cc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9102","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2mO","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9102"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9102\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}