Using PCSCJCTerminal to find the readers

Hi,
there is a very strange thing that has happenned.
I am trying to develop an off-card application, that uses the jpcsc.dll (not the jct.dll)
to make it application portable accross the platforms. Thus, i have to use PCSCJCTerminal class, that works using jpcsc.dll and jpcsc.jar. Th eproblem is, that when i am trying to get all the readers attached to the machine, i can't:
listReaders() method seems to always return 0, despite the real number of readers attached.
This method works fine in e.g. NativeJCTerminal, bit then jct.dll is needed - i want to avoid using of it.
Could you tell me, where the error may have happened?
Code looks like this:
JCTerminal t = new PCSCJCTerminal();
t.init(" any|ed");
t.open();
t.listReaders(); //there zero is returnedI would appreciate any comments.
Best regards,
Eve

Your problem statement seems a little odd. If the robot can only go "down" or "left", then every sequence of moves will get him to (1,1) and all the sequences will have exactly the same length.
Also, I think perhaps you don't quite understand recursion. Even though a function is recursive, if-then-else still works the same way - only one of the branches will be taken, not both.
So for instance with the second version of the code that you posted, the initial call CountPaths(6,3) will result in just one recursive call to CountPaths(5,2). This in turn will result in a call to CountPaths(4,1). At that point, the calls will start falling into the earlier branch of the code and you will get calls to CountPaths(3,1), CountPaths(2,1), CountPaths(1,1). So then you will have a stack of six calls, each (except the last) waiting for the recursive call it made to return. CountPaths(1,1) returns without making a recursive call, and each of the others returns immediately (in reverse order) without making any other recursive calls.
On the other hand, if you really want the code to explore all the possible paths, it should recurse to explore the paths that begin with a "down" move and recurse again to explore the paths that begin with a "left" move. Something more like
CountPaths(IkeStreet-1, IkeAvenue);
CountPaths(IkeStreet, IkeAvenue-1);However, if you do just that without adding some adding some additional intelligence, you will find that you get a bit more than you bargained for.
Edited by: EricDittert on Sep 11, 2009 6:19 PM

Similar Messages

  • How do I use Spotlight to find the location of a document?

    Spotlight used to show the location of document when I hovered the mouse over an item in its list. It no longer does this. Now it tells me that a document exists and allows me to open the document, but doesn't tell me where to find the document. How do I use Spotlight to find the location of a document?

    Hi Thomas ...
    Open System Preferences > Spotlight then select the Search Results tab.
    Select the all the categories for the search results you want.
    Restart your Mac.
    If that didn't help the Spotlight preferences may be corrupted.
    Go to ~/LIbrary/Preferences
    Move the com.apple.spotlight.plist file from the Preferences folder to the Trash.
    Try Spotlight.
    edited by:  cs

  • Windows Server 2008 R2 File in Use - How to find the computer that has it in use

    Lately we've been having an access database go into read only mode on our file server. When i go into the manage open files screen on the file server, it show the file being used by a functional account and the open mode is set to read. Which confuses
    me how the file can get set in read only mode when the only person who has it open has it open in read mode. Anyway, when i kick the user out of the file then the database is not read only mode anymore.  Since this is getting accessed by a functional
    account, I'm not sure who is opening it up. Is there a way to find the IP address of this person?

    To get the source IP address, you will need to enable File Share auditing: http://technet.microsoft.com/en-us/library/dd772690%28v=ws.10%29.aspx
    Otherwise, you can simply disconnect the user session.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Using imei no find the phone location?

    using imei no how can i find the phone location?

    I'm afraid it's not possible. In order for a lost iPhone to be located you have to have set 'Find My iPhone' up on it before losing it, and it has to be on, not wiped, and able to connect to a network (how else could it transmit its location) - if any of these conditions is not true then locating it is not possible. You can't use the serial number or IMEI number to locate a phone: the former is only useful to identify it as yours if it turns up, and the latter can be used by most service providers to block it, rendering it useless and preventing anyone from spending your credit.

  • Using RSRT to find the Query properties

    Hi All,
    Can anyone let me know to find out the Query properties using RSRT if we dont have access to BEX Analyser etc.,
    The properties like:
    <b>1.Variables built
    2.Exceptions built
    3.Conditions built
    4.Cell definitions built
    5.Types of Key figures built
    6.Query properties like Scaling factors, Show negative values as etc.,</b>
    As we have in RSRT for seeing List of Objects in Free Characteristics, Filters, Rows, Columns etc.,
    Will be waiting for Answers on this.
    Points will be rewarded for sure.

    Please go to RSRT --> select your query --> Selct query display as "HTML" and execute.
    The next page you will the actual resule display on HTML page with all properties like Exception, Condition ,Properties, etc
    Hope this helps...
    Regards
    Pankaj

  • My Mac Book Pro using Mountain Lion will show a usb headset with a mic to select in the settings window. But the Rosetta Stone software I am using will not find the mic for me to select and use. What should I do?

    Mac Book Pro with OS X Mountain Lion will not recognize headset mic via Rosetta Stone software. What should I do?

    Hi Illaass,
    I am using version 3. I have used the apple/settings on my mac. The headset is appearing there and it is selected there. In the Rosetta Stone select/find window nothing shows up. It is blank. But the volume bars react when I speak and sliding the fader has the expected effect of raising and lowering the input. There is just no device showing up as the selected input device in the Rosetta Stone software.
    I have done everything my Mac instructions say to uninstall and reinstall the Rosetta Stone software properly.
    I'm guessing the problem may be in the licensing. I installed it first on the old hard drive that crashed. Maybe that used the terms of the license and now installing it in the new hard drive violates the license somehow. So that's why it will not work properly. It allows me to open the lessons and asks me if I want to continue from where I left off. I click continue. Then it asks me if I want to register the software. I click the tab for already registered software and click continue. Then nothing happens. So again I click on the button that indicates I want to continue lessons from where I left off. The same process happens with it asking me if I want to register the software. And it will not proceed through a lesson.

  • How do I track my iPod serial number using iCloud to find the device?

    I need help tracking my ipod I have the serial number just don't know how to find it using I cloud ...help!

    Welcome to the Apple Community.
    Tracking the device is unrelated to its serial #.
    You need to have enabled find myphone on it before it was lost/stolen, you can then track it using find my phone at:
    iCloud.com

  • Why can't iTunes find the music from an external hard drive?

    I moved my music to an external hard drive to free up space on my old laptop.  Since I moved to a new laptop, iTunes never seems to find the music.  I have to go through and manually select a song for it to find it one and then it says should it use this to find the rest of the songs.  Then it crashes.  I have reinstalled iTunes tonight with no real improvement.  I want to be able to create a playlist to upload to my new iPad as well as updating music on my iPod but I can't do any of it.  Please, any advice!

    angelafromlanchester wrote:
    I moved my music to an external hard drive to free up space on my old laptop.  Since I moved to a new laptop, iTunes never seems to find the music. 
    Has the new laptop given the external drive a different drive letter?
    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, or the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. (Due to a bug in iTunes 12 you currently have to say No twice!) Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case.
    In some cases iTunes may be able to repair itself if you go through the same steps with Get Info but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    tt2

  • Finding the length of a path

    hey,
    i'm using cs3 and i have a few simple paths (curves) and i'd like to know the length of these curves but i can't seem to find an option, or whatever, for that.
    thanks

    You mean the length as you travel along the curves?
    Can't be done I'm afraid, at least not very accurately.
    If it's really important you could try arranging a whole lot of little squares along the path so that they touch each other and then counting them. But the result won't be accurate unless the squares are very small.
    However, if you know how the curves are constructed geometrically you can sometimes calculate their lengths.
    For example if the curve is an arc of a circle and you know the angle it subtends as a proportion of 360 degrees then it's fairly easy to use pi to find the length of it.
    Circumference of a circle = pi x diameter.
    "As every skoolboy kno" (nigel molesworth)
    Ellipses are more of a bother and I don't know the formulas for sinus curves, parabolas and that sort of thing.

  • Find the table for fields QM related urgent

    hi all,
    Based on the inspection lot no. , I need to find out the fields 'short text for inspection characteristics' & 'original values'.   in which table i can find out.
    the transaction is QE03. If i press F1 it is referring to structure.
    Edited by: uday madhav chebrolu on May 17, 2008 10:31 AM

    You could also try table DD01T. In se 16,put in the description thats needed,you will get to know the respective data elements.
    Then you can use DD03L to find the respective table. This would work if the data element is not generic.
    Regards,
    Anubhav.

  • Can't find the captured screen file on my Desktop, Please help!

    I'm using OS X 10.5.6 for a while but the problem just occurred recently (it worked fine before) I don't know why. I update the system often.
    I used the ShiftControl+Command3 or 4 shortcut but it doesn't work, I heard the shutter sound but the file doesn't appear on my Desktop. I did use spotlight to find the file but I found only the old captured images. The Grab utility is still fine but it's a lot easier to use the shortcut function.
    If you have a solution, please help!
    Thanks.

    Shift-Command-3 or 4 puts the screen shot as Picture n.png (n being the next available number). Adding the control key to the set instead puts the screen shot on the clipboard to paste in somewhere.
    AK

  • Please help me to find the table for fields where the descriptions are give

    please help me to find the table for fields where the descriptions are given below
    Customer Support Administrator
    first line Support indicator

    You could also try table DD01T. In se 16,put in the description thats needed,you will get to know the respective data elements.
    Then you can use DD03L to find the respective table. This would work if the data element is not generic.
    Regards,
    Anubhav.

  • I want to find the table name

    Hi experts,
    I want to find information which is stored in the particular transaction (find the table name)
    tcode is COR3 in that enter process order and enter after that go to adminstrative data in that created user.
    I want find user information will be stored in which table . pls help me in this

    Hi,
    There are both technical and functional ways of knowing the Table Names:
    1. You can ask your functional consultant to give you the basic or the main table name. From there you can use a where used list to get the list of all the tables that are connected to this table by the foreign key relationship.
    2. You can get to know the name of the package from the package hierarchy. You can also use se84 to find the objects from the repository information browser.
    3. You can use the ST05 transaction to run and SQL trace to find all the tables that where accessed during the TCODE execution. But here you need to be precise as it will show you all the names of all the database tables accessed.
    Hope this will help you.
    Thanks,
    Samantak.

  • I lost my iphone,and i cant find the location in icloud

    i i lost my iphone in today,and i cant find the location in icloud,what can i do?  is it can use IMEI to find the location ?

    If you can't find it using icloud.com or the find my phone app, then there is no way of finding it.
    you can call your phone carrier and notify them.

  • MLGT - How to find the Storage Type

    Hello,
    I have been trying to use MLGT to find the storage type but I have discovered this table does not have all the records.  For example - I know that material AAAAAA using Wharehouse number BBB should show CCC for Storage type but when I look in MLGT I see that AAAAAA does not have a record that uses wharehouse number BBB.  When I look in MM03 I see that the material has CCC for the storage type.
    Does anyone know why this table would not have all the records?  Is there a better table to get the storage type?
    Thanks,
    Matt

    I am not able to catch what you try to achieve.
    MLGN-LTKZE  is just an indicator. if it has the name of a storage type, then either by design or just by chance.
    SAP takes this indicator to lookup the placement strategy. (setup in trx OMLY).
    There you can see all possible storage types.
    A storage type view at a material master is almost only needed if you use fixed bin strategy. then you can specify the fixed bin per storage type in a material.

Maybe you are looking for