Computer/C#

XML ํฌ๋ฉง Element ์ˆ˜์ • ๋ฐ ์ƒ์„ฑ

public bool XmlDataCheck(string strfilepath, string ElementID, string Value) { XmlDocument Dxml = new XmlDocument(); Dxml.Load(strfilepath); try { // Modbus ํฌํŠธ๋ฒˆํ˜ธ XmlNode nodeModPort = Dxml.DocumentElement.SelectSingleNode("/profile/Preferences/" + ElementID); if (nodeModPort.Value != Value) { // ์ˆ˜์ • nodeModPort.InnerText = Value; } Dxml.Save(strfilepath); return true; } catch(Exception e) { // ์ƒ์„ฑ..
Computer/WEB, PHP-JAVA-Script

์›น์†Œ์ผ“์œผ๋กœ ์ „์†กํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ์ข…๋ฅ˜

์›น์†Œ์ผ“ ํ”„๋กœํ† ์ฝœ์€ ํ…์ŠคํŠธ์™€ ๋ฐ”์ด๋„ˆ๋ฆฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ ๋ฐ”์ด๋„ˆ๋ฆฌ ๋ฐ์ดํ„ฐ๋Š” ArrayBuffer์™€ Blob ํด๋ž˜์Šค๋กœ ํ‘œ์‹œ๋˜๊ณ , ํ…์ŠคํŠธ๋Š” ๋ฌธ์ž์—ด๋กœ ํ‘œ์‹œ๋œ๋‹ค. ์ผ๋ฐ˜ ํ…์ŠคํŠธ์™€ ๋ฐ”์ด๋„ˆ๋ฆฌ ํฌ๋ฉง์„ ์‚ฌ์šฉํ•˜๋ฉด, ๊ฑฐ์˜ ๋ชจ๋“  ์œ ํ˜•์˜ HTML5 ๋ฏธ๋””์–ด๋ฅผ ์ „์†ก/ ๋””์ฝ”๋”ฉํ•  ์ˆ˜ ์žˆ๋‹ค. ์›น์†Œ์ผ“์€ ํ•œ ๋ฒˆ์— ํ•˜๋‚˜์˜ ๋ฐ”์ด๋„ˆ๋ฆฌ ํฌ๋ฉง๋งŒ์„ ์ง€์›ํ•˜๋ฉฐ, ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ˜๋“œ์‹œ ๋ช…์‹œ์ ์œผ๋กœ ์„ ์–ธํ•ด์•ผ ํ•œ๋‹ค. socket.binaryType ="arraybuffer"; ๋˜๋Š” socket.binaryType = "blob" ๋ฌธ์ž์—ด OnMessage ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•  ๋•Œ ๋งˆ๋‹ค ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋ฐ์ดํ„ฐ ํƒ€์ž…์„ ํ™•์ธํ•˜๊ณ  ๋™์ž‘. ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ ๋™๋“ฑ ์—ฐ์‚ฐ์ž(===)๋ฅผ ์‚ฌ์šฉํ•ด ๋ฐ์ดํ„ฐ ํƒ€์ž…์˜ ๋ฌธ์ž์—ด์ธ์ง€ ์—ฌ๋ถ€๋ฅผ ์‰ฝ๊ฒŒ ํŒ๋‹จ๊ฐ€๋Šฅ. socket.OnMessage =..
EIGHTBOX
EIGHTBOX
hwaya.

programmer

๐Ÿ‹์ผ์ƒ์˜ ์†Œ์†Œํ•œ ์ˆœ๊ฐ„๋“ค๋ถ€ํ„ฐ ํฐ ๊ฟˆ๊นŒ์ง€, ํ˜ธ๊ธฐ์‹ฌ์„ ๋งŒ์กฑ์‹œํ‚ฌ ๋‹ค์–‘ํ•œ ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ๋‹ด์€ ๋ธ”๋กœ๊ทธ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ , ์†Œ์†Œํ•œ ํ–‰๋™์— ๊ฐ๋™ํ•˜๋ฉฐ ๊ธฐ๋ปํ•˜๊ณ  ํ•˜๋ฃจํ•˜๋ฃจ์— ๊ฐ์‚ฌํ•˜๋Š” ์‚ฌ๋žŒ๐ŸŒต

Today Yesterday Total
์ตœ์‹ ๊ธ€