w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How does Android integrate hardware drivers provided by the phone manufacturer?
You may have to install the drivers on your own for some devices if you are on a PC. You can go to that phone manufacturer's website and they have a download link. Mac seems a little better in finding the device drivers

Categories : Android

What is the difference between misc drivers and char drivers?
Edit: I thought you were talking about drivers/misc drivers, but I see you're refering to character drivers using misc_register (and all the API in drivers/char/misc.c). You should specify this in your question. In this case, the misc API seems to make your life easier when you're writing a small character driver and do not want to need to allocate a new major number only to use one minor number, for example. It simplifies things, but all the file operations are still available using the fops member of struct miscdevice. The basic difference is you only get one minor number per misc device. My previous, unrelated answer was, for the record: Have a quick look at drivers/misc: you won't find any "misc core" out there. This means: misc is not a device class; it's just a bunch of drivers th

Categories : C

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

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

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

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#

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

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

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

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

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

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

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

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

Which Oracle drivers do I need for ASP.NET 4.5?
The ODAC112021Xcopy_x64.zip might give you the dll's and client you'll need. Take a look at this previous answer for more detail about deployment of the application.

Categories : Asp Net

codeigniter drivers
Here's two: http://codebyjeff.com/blog/2012/01/forms-with-less-pain-using-ci-drivers http://www.kevinphillips.co.nz/news/codeigniter-drivers-tutorial/ Driver feature isn't exactly "new" :-)

Categories : Codeigniter

Safety of the drivers
You shouldn't be exposing mongodb to the internet. Instead your mobile app should talk to a server app, which, in turn, will talk to private instance of mongodb (not available to the world, only to the server app). And in that server app you can make necessary authentication and checks.

Categories : Security

Difference between HAL and Drivers
From this doc HAL The hardware abstraction layer defines the standard interface that the camera service calls into and that you must implement to have your camera hardware function correctly. Kernel driver The camera's driver interacts with the actual camera hardware and your implementation of the HAL. The camera and driver must support YV12 and NV21 image formats to provide support for previewing the camera image on the display and video recording.

Categories : Android

Laravel Session Drivers?
It's quite easy. Driver defines where session data will be stored. native - session will be handled by internal PHP rutines cookie - session will be stored in cookies database - session will be stored in database (by default in table sessions) memcached/redis - use one of this daemons as a session storage array - session will be stored in a plain array (it's handled by MockArraySessionStorage) array driver means that session is only per request (stored during PHP runtime), and after that it disappears :)

Categories : Laravel

Use precompiled drivers to build aosp
You should be able to use pre-compiled drivers. Even building AOSP for some of the nexus devices requires downloading the binary blobs and adding them into your source tree so that the images are built and able to interact with some of the hardware like the sensors and camera in some cases. So what you are trying to do should be possible. Hope that helps.

Categories : Android

Linux Device Drivers 3rd Ed and 3.2 kernel
I like LDD3. The teaching style is outstanding. I see the most references to that text in SO, LWN etc. I tried just reading it, that had limited value. It was better to get the examples built and running, play some e.g. with scull, then study the text hard to see how the code was really working. But, to do that with modern kernels, you need updated code. I found martinezjavier code built OK with 3.1 kernel (I deleted tty from Makefile, and added simple_open() definition) then life was great. Also I found some nice work from cs.fsu, including online cross-reference. Cooperstein text also exists, and has exercise solutions with multiple kernel versions, but I haven't used this text.

Categories : Linux

VirtualBox - How to write Drivers/Plugins?
The network handling in a VMM ("Virtual Machine Monitor" or "Hypervisor") is typically done by a simple interface that "pretends" to be a network card towards the VM and that is a bridge or switch type interface towards the host's network connection. I suspect you will not be able to easily attach to that, and almost certain that there is no "SDK" interface to it - I haven't worked with VirtualBox, but I have worked on Xen Hypervisor (which is open source, but even then, there's no easy interface to intercept packets in a meaningful way). Your best bet is probably to implement this on the host's side of the bridge or switch interface that the VMM provides. Most OS's have ways to hook into a network flow on the native side for firewall purposes. (I'm still waiting for the SDK document

Categories : C++

How can I setup Fluentlenium to run in different browser drivers?
Have an abstract createDriver() function that is overridden by each type of driver. Each driver should return a correctly configured driver, which is then stored, and returned when you call getDefaultDriver();

Categories : Selenium

PDO drivers are installed, but connection test says otherwise
http://docs.php.net/manual/de/pdo.construct.php says: PDO::__construct() ( string $dsn, ... [...] In general, a DSN consists of the PDO driver name, followed by a colon, followed by the PDO driver-specific connection syntax try it with (edit: fixed Database= keyword) new pdo( 'sqlsrv:Server=websvrsqlwebdata,1433;Database=xxxx', see also: http://php.net/ref.pdo-sqlsrv.connection

Categories : PHP

How to install CUDA 5.5 drivers in FC18?
If you are on 64-bit FC18, and you are having trouble with the RPM method, just use the installer method instead. You can find the CUDA 5.5 kits here. Here is the direct link to the installer. Don't forget the getting started guide. After you've finished with the installer, if it puts a driver version that you don't want on your system, you can go back and re-install your 319.32 driver. Or you can just opt-out of the driver install step when using the installer method. I would check to see if the cuda 5.5 installed driver works before switching back to 319.32. My sense is that 319.32 should be OK with CUDA 5.5, but you may need to find a newer NVIDIA driver that works with your video card and also works with CUDA. The driver that comes with CUDA 5.5 should work with most or all GPU

Categories : Linux

Listing drivers in ring0/kernel?
If you REALLY want to write your own code for this, then here's a "Device Driver Information" page on Microsfts website. From that, you should be able to pull together the pieces (it's pretty similar to listing the currently running processes).

Categories : C++

How can I determine what drivers are available to use with odbc in php (on a linux system)?
You should have a file called odbcinst.ini (probably in /etc or /usr/local/etc but you can locate it with the command odbcinst -j). This file defines your ODBC drivers. Each driver is named within the [] in each section. You might find Linux ODBC useful as it contains a thorough explanation of unixODBC, how it works and how to define data sources.

Categories : PHP

how can I run tests using different capybara drivers on different platforms in rails?
Couldn't you do something along the lines of if RUBY_PLATFORM =~ /mac/ Capybara.javascript_driver = :firefox else Capybara.javascript_driver = :webkit end in spec/support/env.rb? I don't have a mac, so I'm not sure what the value of RUBY_PLATFORM should be, but by running puts RUBY_PLATFORM in irb, I'm sure you can figure out an appropriate value.

Categories : Ruby On Rails

how to configure a database drivers in java automaticaly
You don't need to create a DSN (Data Source Name) to use an ODBC Driver. You can use a) FILEDSN or b) DSN-less connections. File DSNs are where you put the attribute and value pairs which describe the database connection in a file and pass FILEDSN=c:path_to_file in SQLDriverConnect. DSN-less connections are where you pass all the attribute/value pairs required to SQLDriverConnect and it must contain a DRIVER={whatever the driver is called}.

Categories : Java

call LAPACK drivers/functions from python
I only have a little experience wrapping Fortran, but as I understand it, the standard way to wrap LAPACK functions that aren't already included in SciPy is to use the tool f2py that is included with NumPy. Some basic instructions can be found at http://wiki.scipy.org/Cookbook/F2Py#head-9c22e0d6fa6b16650feea2c271233a8c47e8d051 You can also wrap it through Cython. Doing it that way, you compile the Fortran file and link against it as shown at http://fortran90.org/src/best-practices.html#interfacing-with-python There it describes how to use either Cython or ctypes to wrap a Fortran subroutine. That particular example is available online at https://github.com/certik/fortran90_question/tree/master/fcython_mesh Make sure you pay attention to how your array is arranged in memory (C-contiguous v

Categories : Python

macports apache2 install missing pdo drivers
Here is what worked for me: sudo port install php5-sqlite sudo port install php5 +apache2 +sqlite The second line here didn't seem to do anything, but you never know. After restarting I noticed I didn't have imagemagick, which I thought I already had, so sudo port install php5-imagick Now restarting apache2 the "macports" way: sudo port unload apache2 sudo port load apache2 And looking at phpinfo, I have sqlite2 and sqlite (which, confusingly, is sqlite3) drivers enabled for pdo.

Categories : Sqlite

Can't debug correctly Windows drivers with Visual Studio
I recommend to forget using Visual Studio for driver development/debugging because, on my opinion, is not solid enough. But targetting the debugging process, it is better to install VisualDDK and then launch vmmon/vmmon64. In the installed application you will find a folder named "target" with an application named DDKLaunchMonitor.exe, install it in the virtual machine (it will create a boot menu option to activate kernel debugging) When you want to debug your driver, launch vmmon, activate the option to launch windbg at vm startup, start your vm and when windows boots it will load windbg and attach to the vm. The install your driver as desired and learn windbg. I know this answer does not solve you problem with VS but using windbg directly is faster and better.

Categories : Visual Studio

Is it possible to write Windows 8 drivers without Visual Studio professional?
Yeah, now WDK requires MSVC 2012 installed before : see http://msdn.microsoft.com/en-US/windows/hardware/hh852362#_System_Requirements. Also now WDK don`t include toolset (compiler, linker, etc) and i think there are no way to bypass this.

Categories : Misc

Is there an equivalent of RegQueryInfoKey for Windows Kernel Mode Drivers?
You can use ZwXxx functions in the kernel mode, in particular, ZwQueryKey with KeyFullInformation parameter. This API is quite similar to its NtXxx analogues, and you can use both API set in the kernel mode. The difference is that ZwXxx doesn't perform some access check and parameters validation, and thus runs a little faster. For more information see this article

Categories : C++

Connecting to multiple databases using same JDBC drivers performance
Opening a database connection is an expensive operation; if possible you should connect to each database once and reuse the connection for all queries made to that database (also known as connection pooling). It's not clear if this is what you're already doing. Another thing that seems strange is that you have made the openConnection method synchronized. I see no need for doing that, and depending on how your code is structured it may mean that only one thread can be opening a connection at a given time. Since connecting takes a long time you'd want each thread to make its connection in parallel.

Categories : Java

mongod memory leak inserting documents via C++ drivers
When you call clear, it clears the elements, but might not reduce the capacity. This has been answered here Either Old skool; std::vector<T>(v).swap(v); Note that C++11 has shrink_to_fit which might help, but may do nothing.

Categories : C++



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