w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
communication between native PKCS11 implementation and Smart card
PKCS#11 is an API definition in C to use cryptographic tokens. It explicitly does not specify any implementation details of these cryptographic tokens. In principle any security and software module may be represented by a PKCS#11 interface. So it depends completely on the PKCS#11 middleware on how the smart card is accessed. The same goes for things as logging by the PKCS#11 module - PKCS#11 does not specify how logging is performed. Now most smart cards that are used for signature generation are compatible with at least ISO 7816-4 (which defines which APDU's may be used to read/write to the card and how some cryptographic APDU's may be used). Futhermore, they may implement ISO 7816-15 (a slightly different version of PKCS#15), which is a quite complex standard to find files and objects (

Categories : Java

Outlook Redemption 1st Step Problems
The error is MAPI_E_NOT_FOUND. What is the bitness of your app, Windows, and Outlook? Does the follwing apply? http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject

Categories : Python

How to handle Outlook's "Outlook is using an old copy of your data file (.ost). Exit outlook and blablabla" error at an API level using VBScript?
You could try to avoid the use of outlook.ost at all. Turn off cached mode (for Exchange) or turn off any Send/Receive settings for folders. Close Outlook and rename outlook.ost to .old. Open Outlook and check too see if outlook.ost is not created again.

Categories : Api

Add xap file in sd card on windows phone
you cannot install a xap file into phone like this. there are two ways to install an app one is by downloading it from app store and other one is by installing app from visual studio on a developer unlocked device.

Categories : Windows Phone 8

Major Problems with HTML signature and outlook 2010
Outlook has many HTML and CSS no-no's check out: http://www.campaignmonitor.com/resources/will-it-work/ to see if you can find what part of your code is creating the problem

Categories : HTML

Retrieving phone number from SIM card error
See this thread for more information on this issue. Specifically, the below comment on the accepted answer: Actually, not so perfect. Last time I tried this method, it reported the phone number that my phone originally had, before my old mobile number was ported over to it. It probably still does, as the Settings app still shows that defunct number. Also, there are reports that some SIMs cause this method to return null. That being said, I'm not aware of a better answer. – CommonsWare It seems that getting a user's phone number is not as simple as asking the OS to hand it over, for reasons beyond the control of the developer. An alternative is to populate whichever field you need with the number the OS gives, but also let the user edit the phone number in case the OS is wrong.

Categories : Android

tcp server client communication read() write() problems. c language
The receive function in server should be active always. Hence, should be placed in a while(1) loop. As and when client sends a message it should receive acknowledgement from server. Server -> Always ready to receive. Client -> Send and receive instantaneously.

Categories : C

Secure java card access in windows phone 8
There is something in place through the Wallet and SecureElement APIs which allows you to access the UICC. This requires some privileges. This was developed in the context of NFC payment, and may require a specific SIM. Probably more APIs will emerge in the next release of Windows Phone 8.

Categories : Windows Phone 8

Apache Rewrite problems with a wild card and a question mark
Try this code: RewriteCond %{HTTP_HOST} $my.domain.com$ [NC] RewriteRule ^team.+?name$ http://www.domain.com? [R=301,L,NC] ? in the end will strip off any existing query string.

Categories : Regex

Android - How to get two or more SD Cards' path from Card Reader using OTG to connect our phone?
Well, When you've got the path of the USB device, try File usbPath = new File("path_to_usb_device"); File[] sdcardsPath = usbPath.listFiles(); for(File ff : sdcardsPath) { Log.d("File repo", ff.getAbsolutePath()); }

Categories : Android

How to load music from SD card / Music+Video hub in Windows Phone 8?
MediaLibrary If you want to access the music already detected by the phone (both on the device memory and SD card), then use the MediaLibrary to access all the tracks... http://msdn.microsoft.com/en-us/library/dd231914.aspx http://www.jeffblankenburg.com/2011/11/28/31-days-of-mango-day-28-media-library/ ExternalStorage If you want to access the SD card, then you'll have to use ExternalStorage API... http://dotnet.dzone.com/articles/using-local-storage-windows BackgroundAudioPlayer And if you're serious about making a music player, you will have to also use the BackgroundAudioPlayer which allows music to keep playing even when your app is not running... http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx http://msdn.microsoft.com/en-us/library/wi

Categories : C#

Problems with Application identifier, XNA 4.0 for Windows Phone 8, Visual Studio 2012
Have your try to upgrade? And before you do that make sure that the Windows Phone 7.1 version project has a reference to System.Core.dll and mscorlib.dll before the upgrade. EDIT To upgrade/convert try this: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207030(v=vs.105).aspx

Categories : C#

VS "Send Query to Outlook" does not work if VS is running as administrator and outlook is not
Disable UAC on your system. If you do this then all processes launched by a member of the Administrators group on your system will be run with full administrative rights by default (like XP and previous).

Categories : Windows

Database design for communication records and communication preferences
Address needs to be in a separate table, because as you said, there are many columns to an address. You can put a flag in the Address table to differentiate between a work address and a home address, if necessary. Address ------- Address ID Street City ... The Address ID is an auto incrementing integer or long. It's the primary (clustering) key. The remainder of the communication records can go in a Contact table. The table would look like this: Contact ------- Contact ID Contact Type (Land line phone, email, cell phone, etc.) Contact Information The Contact ID is an auto incrementing integer or long. It's the primary (clustering) key. The Contact Information is a varchar that holds the email address or the telephone number. The Preference table would look like this: Preferen

Categories : Database

Card.io usage in android. Displaying Credit card number and Expiry date
Maybe I missed it but I dont see anything wrong with the code. The problem may be in your XML so I thought I would make it easy for you. Send the user to another activity when the scan is completed. Copy this in the appropriate place. Create a new xml.file and see if this works. If you have any problems tell me. This is working fine for me. private Button scanButton; } @Override protected void onResume() { super.onResume(); if (CardIOActivity.canReadCardWithCamera(this)) { scanButton.setText("Charge"); } else { scanButton.setText("Charge"); } } final String TAG = getClass().getName(); private int MY_SCAN_REQUEST_CODE = 100; // arbitrary int public void onScanPress(View v) { // This method is set up as an onClick handler in the layout xml // e.g. and

Categories : Android

What is the difference between twitter photo card and summary with large image card?
The difference between a summary_large_image card and a photo card is what occurs when the user clicks on the image in the card: In the case of a summary_large_image card, a click on the image opens the link in a new tab (or in a browser on smartphones). In the case of a photo card, a click on the image opens a bigger version of the image in the same browser window (or displays the image full-screen on smartphones).

Categories : Twitter

How to implemet creadit card and debit card payment in salesforce
If you are not experienced with API development, paypal API details are here: https://developer.paypal.com/docs/api/ Then the best other option is an App. I have used the connected Epos solution, which is great for taking payments from credit cards, either with the customer present (chip n pin) or by keying in the card numbers. You need to get the PayPalHere card terminal which is about $50, but it is a great all round solution. https://appexchange.salesforce.com/listingDetail?listingId=a0N30000000qD0GEAU

Categories : Paypal

Im trying to figure out how to deal a card from the deck in my card game class
yeah, now that i've thinked about, "hand" was empty because you fill it from "deck" that is in turn empty. Maybe you can define a method "initDeck" in deck class that fills the deck with random cards, and call it from game constructor. or maybe you already do this out of the game class, but in that case you should pass the deck to game!

Categories : Java

Java Card: How to load SIM applet to real smart card?
It might not work because the SIM application might have dependencies to APIs that are not present in the JCOP cards (for instance ETSI 102 705). But then it is worth trying. Make sure that the file format is compatible between the tools (a cap file is not always a cap file by the way; a real cap file is a zip, some tools prefer IJC files). Try using the cap file from the Gemalto tool in the jcManager. If it does not work you can try GPShell. The main challenge is to have the keys to your target, and then the right tool.

Categories : Java

iOS Phonegap app crashes after Card.io scans credit card
@Paul if you using latest card.io SDK just modify the CardIOPGPlugin.m file on line 101 from [CardIOCreditCardInfo displayStringForCardType:info.cardType] to [CardIOCreditCardInfo displayStringForCardType:info.cardType usingLanguageOrLocale:[[NSLocale currentLocale] localeIdentifier]] Hope it helps.

Categories : IOS

Reset Smart Card pin having Muscle card applet
MSCUnblockPIN is the function to use, but you have to know the unblock value of course. The corresponding ISO command Reset Retry Counter allows variants without unblock value, but these need another kind of protection to avoid arbitrary many retries.

Categories : Security

Outlook 2007 Add-In Does Not Load on Outlook 2013
Is it not showing any error when you set the environment variable "VSTO_SUPPRESSDISPLAYALERTS" with value "0"? Did you also checked if it is in disabled items list in File => Options => Add-Ins => Manage choose disabled items?

Categories : C#

Card holder's name in APDU commands (ICC Card)
Reading the card holders name and other info on a chip & pin card is not as simple as you might think. It's not as simple as just one straight forward APDU , there are several more steps you have to go through first. First you need to perform an application selection. How you do this, depends on your card and your terminal. There are 2 standard ways. 1) Application file selection 2) AID Scanning For type 1, you typically call a known file name using the select file apdu (NOTE: I'm not going to implement full apdu sentences in what I type here as there is just too much data to try and represent, if there is enough attention to this post then I might do a blog entry) The file name to select for most EMV standard cards is '1PAY.SYS.DDF01' or '2PAY.SYS.DDF01' for contactless ca

Categories : Misc

Coordinate Id of same card that is read by two different card readers
Its rather hard to understand just exactly what your wanting, but in the bottom you state: 'in other words, i want to convert this array of bytes to corresponding hex code'. You can perform that operation like so: public static string ByteArrayToString(byte[] ba) { StringBuilder sb = new StringBuilder(ba.Length * 2); foreach (byte b in ba) { sb.AppendFormat("{0:x2}", b); } return sb.ToString(); } Just pass in your Byte array and the result will be your hex conversion in string format. Edit: This will probably yield the same results, but try this: byte[ ] bytes = {0, 1, 2, 4, 8, 16, 32, 64, 128, 255 } Console.WriteLine( BitConverter.ToString( bytes ) );

Categories : C#

Card.io SDK gives partial credit card number
Josh from card.io here. The sample code you're probably looking at reads: - (void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)info inPaymentViewController:(CardIOPaymentViewController *)scanViewController { // The full card number is available as info.cardNumber, but don't log that! NSLog(@"Received card info. Number: %@, expiry: %02i/%i, cvv: %@.", info.redactedCardNumber, info.expiryMonth, info.expiryYear, info.cvv); // Use the card info... [scanViewController dismissModalViewControllerAnimated:YES]; } Note the comment above the NSLog call. What is being logged is info.redactedCardNumber. You want info.cardNumber instead. See the header files, which are pretty well documented, for more details. The older version of the SDK is has been publicly deprecated for nearly a

Categories : Iphone

Outlook add-in using redemption in 32 and 64 bit Outlook version
The correct dll will be loaded by the COM system, not your code. As long as both versions are correctly installed and registered in the registry, your code will work without any modifications. Note however that you will not be able to install the 64 bit version of the dll on a 32 bit machine. You might want to look into using RedemptionLoader - you will skip COM registration completely, and RedemptionLoader will load the right dll for you based on the process bitness.

Categories : Misc

Is it possible to get credit card type using card.io?
I have no experience of using card.io. But your question got me all curious about this API. In github, I found it and in there, there is a file: CardIOCreditCardInfo.h // Derived from cardNumber. // When provided by card.io, cardType will not be CardIOCreditCardTypeUnrecognized or CardIOCreditCardTypeAmbiguous. @property(nonatomic, assign, readonly) CardIOCreditCardType cardType; Hope this helps. I am trying to learn this, if it doesnot help you please tell me.

Categories : Iphone

How to open outlook mail (.oft) format in outlook template when used in in jsp?
If you are using Tomcat, you can explicit the mime-type for this file in <tomcat-root>/conf/web.xml : <mime-mapping> <extension>oft</extension> <mime-type>application/vnd.ms-outlook</mime-type> </mime-mapping> Searching more, I've not found any official documentation about the above configuration as if you can set it in <application-root>/WEB-INF/web.xml, you can try a custom Filter : @WebFilter(urlPatterns = "*.oft") public class MimeTypeFilter implements Filter { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { response.setContentType("application/vnd.ms-outlook"); chain.doFilter(request, response); } public void init

Categories : Jsp

Outlook Addin: Jumplists && only one addin instance even with multiple outlook instances
What jumplist are you referring too? How do you want to customize it? & 3. Only one Outlook.exe instance should be running at once. When a new Outlook window opens, it adds to the Application.Explorers collection

Categories : C#

MyToolkit for windows phone 7.x "Sorry we can't play this file on your phone" for VEVO videos
It's a YouTube restriction I'm afraid. Not entirely sure how to unblock it but a fair amount of videos are tagged as HQ or have a "non-mobile" flag. Certain channels also only allow desktop viewing and changing the browser version on your phone (mobile vs desktop) does not help. Not even sure if it's possible from Windows Phone devices for uploaded videos. One suggestion is to look at the YouTube developer pages to see if there are any tags you can set programatically while uploading.

Categories : C#

Reading a json url file in Android returns blank screen on my phone - nothing's displayed on phone
Try something like this: JSONObject jObj; JSONArray data = null; JSONObject jsonOffer; jObj = new JSONObject(data); data = jObj.getJSONArray("offers"); jsonOffer=data.getJSONObject(0); Hope it Helps!!

Categories : Android

how to access phone memory from 3rd party application in windows phone 8
This question has been answered here: Can I write some data to SD card on Windows Phone 8 It tells you how to access memory on an SD card and in other Windows Phone 8 folders, including a Win32 Storage API which can be used to try to access files in phone storage that aren't normally available to you. I'm not sure if this will allow your app access. http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402541%28v=vs.105%29.aspx#BKMK_Medialibrary

Categories : Dotnet

Find app on computer and send to phone via phone number
You would need to implement something like twilio on your website. They provide an API that you can use to send text messages. It looks as though pricing starts at around 1 cent per message. They provide libraries in a variety of languages to help you get started.

Categories : Android

Read all phone contacts and update them. windows phone 8
try something like this void GetContact() { cons = new Contacts(); //Identify the method that runs after the asynchronous search completes. cons.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(ContactsSearchCompleted); //Start the asynchronous search. cons.SearchAsync(String.Empty, FilterKind.None, "Contacts Test #1"); } private void ContactsSearchCompleted(object sender, ContactsSearchEventArgs e) { cons.SearchCompleted -= ContactsSearchCompleted; //e.Results should be the list of contact, since there's no filter applyed in the search you shoul have all contact here } not this is a copy paste of an old not tested code of mine so you might have to change something

Categories : C#

Accessing the Phone's Music in Windows Phone 7 (and 8)
The MediaLibrary class is a api to access MediaFiles on the phone (Pictures, Music, ...) you can access the song-collection with the following snippet: using(MediaLibrary library = new MediaLibrary()) { foreach(var song in library.Songs) { Debug.WriteLine("Name: " + song.Name); Debug.WriteLine("Artist: " + song.Artist.Name); Debug.WriteLine("Album: " + song.Album.Name); } } You can also play a song: MediaPlayer.Play(song); Reference the Microsoft.Xna.Framework.Media in your Project and make sure you dispose the MediaLibrary after your access.

Categories : C#

Windows Phone - How to detect what phone users have
According to the MSDN Documentation you need to be looking at the DeviceStatus Class in the Microsoft.Phone.Info Namespace. It will give you access to the: DeviceName DeviceManufacturer DeviceHardwareVersion DeviceFirmareCVersion to figure out the screen resolution you can look at this MSDN Library Article Sorry above was for DirectX Try looking at Windows.Graphics.Display Namespace's DisplayInformation Class to get your dpi.

Categories : C#

display the phone contacts only in windows phone 8
@Chakravathy you can't replace contactFilterKind with contactStorageKind because cons.SearchAsync defination only accepts FilterKind parameter so it can't be anything else..

Categories : C#

long list in c# windows phone.What are the ways to display LISTs in windows phone?
The idea of a ListBox/LongListSelector is to show a list of items that wouldn't fit on the screen at once. The user can scroll through all the items so it sounds like it's doing what you'd expect it to. If each item is too long for your deign plans then you have to change your item template design.

Categories : C#

Windows Phone button press not doing any press when using Phone Accent Brush
You need to create a new template for the Button and change the color there. In blend, select your button, click the menu item "Object"->"Edit Template"->"Edit a Copy..." and a new template is created. Change tke background color for the Normal state.

Categories : C#

PLC - IT Communication
You need to supply more helpful information. Which communication module are you using? Any of these modules? Which protocol are you attempting to use? Which port are you connecting to? Are you opening raw TCP/IP sockets with Java? If not, Which Java libraries are you using? I am not a Siemens specialist, but I do not know what you mean by "DB Blocks". (Don't abbreviate "DB") Next: When your Java connects to the PLC, it is connecting directly. SM Step 7 makes its own connections, completely separate from your Java program. Are you trying to synchronize these connections? Are you trying to make your Java connection show up as an external device? Without knowing more about your intentions, its hard to give you specific answers. In my experience, synchronizing telegrams is usually not e

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.