ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > ElaKiri Help
Reload this Page Government Smart NIC Scan Problem
Reply
 
Thread Tools
(#1)
Old
MihiCherub's Avatar
MihiCherub MihiCherub is offline
Senior Member
MihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to behold
 
Posts: 12,730
Join Date: Sep 2009
Location: No:██████, Gampaha
Send a message via Skype™ to MihiCherub
sad Government Smart NIC Scan Problem - 10-09-2019, 10:37 AM

Government Smart NIC Scan Problem




දැන් රජයෙන් දෙන අලුත් Smart NIC කාර්ඩ් එකේ PDF417 Barcode එකක් තියෙනව. මේක Scan කරන්න පුලුවන් 2D Barcode Scanner එකකින් විතරයි. එහෙම Scan කලාම නම, ලිපිනය, උපන් ස්තානය, උපන්දිනය, ස්ත්‍රී පුරුෂ, කොට්ටාශය, හැදුනුම්පත් අංකය වගේ ගොඩක් තොරතුරු ගන්න පුලුවන්.

ප්‍රශ්නෙ තියෙන්නෙ මේ Barcode එක Notepad එකකට Scan කලාම කලින් කියපු තොරතුරු ගානට Line by line එනව. Json Object නෙමෙයි. අදාල Line එකෙන් data හදුන ගන්න පුලුවන්. එහෙම මිසක් ඒ ඒ දත්ත මොනාද කියල එන්නෙ නෑ.

හැබැයි Wordpad, Notepad++, MS Word, Excel, OneNote හෝ වෙන ඕනෑම Text editor එකකට Scan කලොත් එහෙම Line by line Data එන්නෙ නෑ. ඔක්කොම Data ටික තනි Line එකකට එන්නෙ. එහෙම උනාම ඒ ඒ දත්ත මොනාද කියල හදුන ගන්න අමාරුයි. ඒ වගේම දත්ත දෙකක් වෙන් වෙන තැන කිසිම Special Character එකක් නැහැ. එහෙම උනාම Split කරගන්න බැහැ. ඒ වගේම කෙනෙක්ගෙ නම සහ ලිපිනයේ තියෙන Characters ප්‍රමාණය එකිනෙකට වෙනස් වෙන නිසා Substring කරගන්නත් බැහැ.

මේ Smart NIC එක ඇවිත් දැන් අවු 2ක් විතර වෙනව. ඒ නිසා Data extract කරපු කෙනෙක් ඉන්නව නම් කරපු විදිය කියල දෙන්න පුලුවන් නම් වටිනව. ටිකක් ලොකු විස්තරයක් දැන්මෙ Data extract කරල නැති කෙනෙකුට උනත් ප්‍රශ්නෙ තේරුම් අරන් උත්තරයක් දෙන්න පහසු වෙන්න. මොකද Notepad එකට හරියට Data එන නිසා මොකක් හරි මග ඇරුන දෙයක් ඇති.

ස්තූතියි.. 19+ දෙනව හැමෝටම

Last edited by MihiCherub; 10-09-2019 at 10:40 AM.
Reply With Quote
(#2)
Old
sudumalli2009's Avatar
sudumalli2009 sudumalli2009 is offline
Senior Member
sudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to beholdsudumalli2009 is a splendid one to behold
 
Posts: 12,750
Join Date: Jul 2010
Location: මුහුද පැත්තේ..
10-09-2019, 10:40 AM

bump
Reply With Quote
(#3)
Old
BC_Dilum's Avatar
BC_Dilum BC_Dilum is offline
Senior Member
BC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of lightBC_Dilum is a glorious beacon of light
 
Posts: 18,674
Join Date: Mar 2008
Location: 192.168.1.1
Send a message via Yahoo to BC_Dilum Send a message via Skype™ to BC_Dilum
10-09-2019, 10:46 AM

May be barcode data contains newline as "\n" but windows use "\r\n" to identify newline.

https://stackoverflow.com/questions/...-line-n-or-r-n

Not 100% sure. Need to check the raw string
Reply With Quote
(#4)
Old
MihiCherub's Avatar
MihiCherub MihiCherub is offline
Senior Member
MihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to beholdMihiCherub is a splendid one to behold
 
Posts: 12,730
Join Date: Sep 2009
Location: No:██████, Gampaha
Send a message via Skype™ to MihiCherub
10-09-2019, 10:52 AM

Quote:
Originally Posted by BC_Dilum View Post
May be barcode data contains newline as "\n" but windows use "\r\n" to identify newline.

https://stackoverflow.com/questions/...-line-n-or-r-n

Not 100% sure. Need to check the raw string
Thanks මම මේ එක Solution හම්බුනා. ඒත් එහෙම බැලුවත් හරිගියේ නෑ. 19+
Reply With Quote
(#5)
Old
NEMISIS's Avatar
NEMISIS NEMISIS is offline
Senior Member
NEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to allNEMISIS is a name known to all
 
Posts: 3,487
Join Date: Nov 2013
Location: Colombo
10-09-2019, 10:54 AM

අයිඩී එකේ තියෙන්නෙ යුනික්ස් ලයින් එන්ඩින් වෙන්න ඇති (LF)
වින්ඩෝස් වල තියෙන්නෙ (CR LF) ලයින් එන්ඩින්, ඒක නෝට් පෑඩ්++ එකේ මාරු කරන්න පුලුවන්, යුනික්ස් ලයින් එන්ඩින් වින්ඩෝස් වලදි හරියට වැඩ කරන්නෙ නැහැ ඒක වෙන්න පුලුවන් හේතුව
මේක පොඩ්ඩක් බලපන් මේකෙ මුල හරියෙ තියන විදියට ශෝ ලයින් එන්ඩින්ග් දාල බලපන් මොකද්ද ලයින් බ්‍රේක් කරන ලයින් එන්ඩින් එක කියලා, ප්‍රෝගැමටිකලි එකෙන් බ්‍රේක් කරපන්
http://sql313.com/index.php/43-main-...ine-characters
Reply With Quote
(#6)
Old
Lejayange's Avatar
Lejayange Lejayange is offline
Senior Member
Lejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud ofLejayange has much to be proud of
 
Posts: 15,662
Join Date: Mar 2015
10-09-2019, 11:03 AM

Bump
Reply With Quote
(#7)
Old
Executer's Avatar
Executer Executer is online now
Awrudu Games 2017 - Winners
Executer has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant futureExecuter has a brilliant future
 
Posts: 18,902
Join Date: Jan 2013
Location: ★★★★★Cutting Edge★★★★★
10-09-2019, 11:07 AM


බම්ප්
Reply With Quote
(#8)
Old
channaq4's Avatar
channaq4 channaq4 is offline
Senior Member
channaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to allchannaq4 is a name known to all
 
Posts: 2,786
Join Date: Jun 2008
Location: නොදනි(Unknown)
10-09-2019, 11:11 AM

up
Reply With Quote
(#9)
Old
lilman's Avatar
lilman lilman is offline
Senior Member
lilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to beholdlilman is a splendid one to behold
 
Posts: 12,405
Join Date: May 2009
Location: Colombo
10-09-2019, 11:18 AM

Reply With Quote
(#10)
Old
SPACEBAR's Avatar
SPACEBAR SPACEBAR is online now
Senior Member
SPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud ofSPACEBAR has much to be proud of
 
Posts: 3,232
Join Date: Apr 2014
Location: ☢☢ⓚⓔⓨⓑⓞⓐⓡⓓ☢☢
10-09-2019, 11:26 AM

░▐█▀▄─▒█▒█▒▐██▄▒▄██▌▒▐█▀█
░▐█▀▀▄▒█▒█░▒█░▒█░▒█░▒▐█▄█
░▐█▄▄▀▒▀▄▀▒▐█░░░░▒█▌▒▐█░░
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.02671 seconds with 11 queries