Posts

apdu - ScardTransmit always returning error 16 -

I have been trying to create an application in the window using the Winscard Library to communicate with a contactless Smart Card Reader I am I am able to connect to the device, but when I try to send some data using scardtransmit, I receive an error 16. I have attached the piece of code I am using below SCARD_IO_REQUEST pioSendPci = * SCARD_PCI_T1; // SCARD_IO_REQUEST pioSendPci = * SCARD_PCI_RAW; DWORD dwRecvLength; Bytes PBRK Bubfer [258]; Byte CMD 1 [260]; CMD 1 [0] = 0xA0; CMD 1 [1] = 0x0d; CMD 1 [2] = 0x01; CMD 1 [3] = 0x00; CMD 1 [4] = 0x01; Eulong Sendbuffen = 0x05; DwRecvLength = sizeof (pbRecvBuffer); RV2 = Skarttranimit (HCard, and POSendPC, CMD1, SSBflan, Faucet, PBRKB Buffer, and Dwreckil Langh); The command you are trying to send does not look like a valid APIU is. This form is in a valid ADU (see ISO / IEC 7816-4) (except extended length epidu): + -------- + - ------ + -------- + -------- + -------- + ---------- + --- - --- + | CLA | INS | P1 | P2. [LC]...

java - Need to implement a Distributed Hash table for P2P -

मुझे सामग्री एड्रेसेबल नेटवर्क (सीएएन) पी 2 पी डिस्ट्रीब्यूटेड हैश तालिका को ज्यादातर आरएमआई का उपयोग करना है। मुझे नेटवर्क पर साथियों द्वारा अपलोड की गई फ़ाइलों के लिए एक तंत्र को देखने के लिए इसका उपयोग करना होगा। होश तालिका वितरित करने के तरीके के बारे में मुझे क्या कोई मार्गदर्शन कर सकता है? आपका प्रश्न काफी व्यापक है मुझे एक भाग पर ध्यान केंद्रित करने की कोशिश करें: वहाँ कई अलग अलग DHT (वितरित हैश तालिका) एल्गोरिदम हैं। मुझे लगता है कि सबसे सामान्य एक तार है एक बार जब आप समझते हैं कि यह कैसे काम करता है, तो इसे जावा में आरएमआई के साथ कार्यान्वित करना सिर्फ एक विस्तार है। आप पर आवश्यक psuedo कोड और साथ ही दो विशिष्ट जावा कार्यान्वयन के संदर्भ मिल सकते हैं - और मुझे आशा है कि यह आपको एक अच्छी परिचय दे सकता है, आप जावा में तार कैसे कार्यान्वित कर सकते हैं मैंने यह भी पाया है कि ओपन कॉर्ड में एक आरएमआई पैकेज है, इसलिए शायद वे आरएमआई के शीर्ष पर चलने का समर्थन करते हैं।

android - How to prevent custom dialog from popping twice in asynctask onPostExecute? -

I am using a custom dialog in the onpostexecute method in asyncTask, it is being popped twice when a user When the button clicks, the dialog should be closed, it works fine. Is anyone being called this twice but some light can be highlighted? @Override Secure Zero PostExecute (zero result) {super.onPostExecute (Results); If (pDialog! = Null) {pDialog.dismiss (); } Try {if (responseFromServer.contains ("x")) // // password to create the last dialog dialog pop up = new interface (getActivity ()); Dialog.setContentView (R.layout.dialog_password); Dialog.setTitle ("title ..."); Dialog.setCancelable (incorrect); Last TextView Atpassword = (TextView) Dialog.Findvibaid (RID.password_dialog); Last button btnpassword = (button) dialog. FindViewById (R.id.btnsavepassword_dialog); Btnpassword.setOnClickListener {@Override Click Public Zero (see V) {if (etpassword.getText (). ToString (). Length () == 0} {toast.makeText (getActivity (), "password" Enter ...

asp.net mvc - CSS how to align elements -

Image
I have shopping cart icons and cart links, that I have other links (register and log) on ​​my menu, but I Not very good with CSS. Does anybody know how to do this? See my picture ... Code: & lt; Ul class = "nav navbar-nav navbar-right" & gt; & Lt; Li & gt; & Lt; Period & gt; & Lt; I class = "FA-shopping cart" & gt; & Lt; / I & gt; & Amp; Nbsp; @ {Html.RenderAction ("CartSummary", "ShoppingCart");} & lt; / Span & gt; & Lt; / Li & gt; & Lt; Li & gt; @HTMLconnect ("register", "register", "account", root value: empty, html, elevates: new {id = "registerLink"}) & lt; / Li & gt; & Lt; Li & gt; @HTMLconnected ("login", "login", "account", root value: empty, html elevates: new {id = "login link"}) & lt; / Li & gt; & Lt; / Ul & gt; Try your li item a Line-...

Override Checkout complete page in drupal commerce -

I want to change the contents of the checkout full page in Droop Commerce, but I do not know where to change. This is not able to find hook_form_alter, someone guide me and help me update the contents of the checkout page. The page where it says your order number is XYZ .... Even I too had faced similar problem. The easiest way to overcome this is to create a new checkout page according to your needs; Use the Rule Module to redirect to that page. Hope this helps you

google maps - Average Lng/Lat NaN Issues -

I am an amateur programmer and I have to work on a project using the Google Maps API. Short story short, I am trying to create a variable with the average latitude of the number of digits and the latitude. I am at this point that I have an array of LNG / LIT coordinates, but I am struggling to convert them into a format which I can use as an input for a Google Maps LatLng method. I have now referred to such questions for a month, and many other websites, but I am not able to understand or implement a solution. I think I can not find simple stuff, but I am beaten against it for a month and I am not getting anywhere. Any advice or assistance with this will be appreciated. // Streetser = document on Google Maps API scripts.getElementsByName ("street"); Var cityarray = document.getElementsByName ("city"); Var Geododer; Var map; Various results; Var maparre = new array (); Var avgLat; Var avgLng; Start the function () {geocoder = new google.maps.Geocoder (); Var lat...

how to connect sql server using window auth using clojure? -

I know how to use sql auth but how to use windows ath? (Use 'clojure.java.jdbc) (' [clojure.java.jdbc: as j]) is required (def db {: classname "com.microsoft .jdbc. Sqlserver.SQLServerDriver ": subprotocol" sqlserver ": nickname" // localhost; database = test; user = sa; password = sa "}) ? reference: class = "text" itemprop = "text"> what amount : nickname "// localhost; database = test; integrated security = true;