When I scan a credit card using the USB card reader I get the following output:
%X1234123412341234^B>NURBz>C>P>XY JDAE^1903000000000000000Zs1234123412341234]1903000000000000000Z
I should note that I changed the numbers and letters. When I process this string it is easy to get the credit card number: 1234123412341234 and expiration date: 03/19
However, in the Name field I see: B>NURBz>C>P>XY JDAE
I was expecting to see something like: CardUser/John
How do I decode the Name field so that I get the card users name?
I figured it out.
The problem is that I am not using an English US QWERTY Keyboard layout. When I changed the keyboard to English US everything works fine. The name now comes out as expected.
Related
First thing to note...I have tried a simple doc.computewithform(false,false) and it did not resolve this.
I have an agent set to run after new mail arrives. This agent will do different things depending on the email address it was sent to. Several email addresses are pointed to this mail-in db. So, in order for this to work, I need to read the 'sendto' field on the incoming email. Sometimes this value is plain text, and that works fine. Sometimes, depending on where the email was initiated, the sendto value is RFC822 text. I am hoping to find a way to convert this or extract from it the plain text representation of the sendto address.
I have a local memo form in this database that I could add an #Formula language function to, should one exist (so I could look there after the computewithform call).
If anyone has any ideas, I would be grateful for your input.
Matt
#Name([Abbreviate];SendTo) will extract the text from a field of RFC822 type 'Address'
or
The NotesName class in LotusScript can retrieve any part of a field of type 'RFC822 Text'
I need to dev a web app that permits users create or write their own templates for letters, contracts, or mails.
This templates must be written with Rich Text Formatted on a user interface like stack overflow use.
The user can use some names columns of a SQL Server table or view, to insert then in the text, similar what MS Word do.
Documents must be saved in a SQL table and then that text must be use to create the final view this the data of the related field.
Example:
Columns of table clients:
clientId Name ProductName
-----------------------------
1 Cris Tablet
Letter created by user:
Hello dear *Name*
We've send you your *ProductName*
Sincerly
My Company
Final view in html:
Hello dear Cris
We've send you your Tablet
Sincerly
My Company
I've work with asp.net and SQL Server... What do you recommend to achieve this?
This can be achieved using C#, i doubt if SQL alone can do it, which language are you using in asp.net?If it is C#, I can explain.
First
On the User login page
After Each user as logged on
On the Button Onclick event
Session["user"] = username.Text;
Response.Redirect("nameofthepagetocreateletter");
Second(To create the letter template)
On the nameofthepagetocreateletter
page_load event
loginname.Text = Session["user"].ToString();
also you will have a text control named "loginname", as well as 5 text field to write the letter
First text field-this will have its default value set to "Hello dear"
Second text field-this is the loginname
Third text field-this will have its default value set to "We've send you your"
Fourth text field-this is the product name field
Label field- this can be set as "sincerely"
Fifth text field-this is company name
I hope this helps.
I am developing an iOS Application for scanning QR Codes. I am successfully able to scan and get code from QR code.
Question:
My question is what are possible data types and format I can expect from QR Codes?
During my search on google I found QR Code can be used for
Contact data
Calendar data
URL
Email address
Phone number
SMS
Plain text
Geo location
Is this the complete list and is there same standard to represent above data in QR Codes? Means same way of generating QR Code for above QR types.
Is there any standard way of generating and representing data in QR Code?
Basically your text information has to be identifiable for what it is:
There is a very good summary here.
Contact data - use MeCard, or vCard (much more verbose), e.g.: MECARD:Surname, First;ADR:123 Some St., Town, Zip Code, Country;EMAIL:some_name#some_ip.com;TEL:+11800123123;BDAY:19550231;;
Gives:
Calendar data - There are two formats about iCalendar (.ics) & vCalendar (.vcs). These formats can also include location, alarm, to-do items, etc. Note that these are both verbose formats and you may be better off using a short URL to an online file in the file format but the person scanning needs to have internet connectivity and be willing to trust the QR code not to be doing anything bad.
URL: Start your url with the standard format specifier such as http://, e.g.: http://stackoverflow.com/questions/19900835/qr-code-possible-data-types-or-standards
Gives:
Email address - Start with mailto:SomeOne#SomeWhere.org gives:
Phone number - Start with tel: e.g. tel:+1-212-555-1212 gives:
SMS - See the RFC 5724.
Plain text - Just include the text.
Geo location - Use the geo:lat,long,alt format URI: geo:40.71872,-73.98905,100 (100 feet above Googles offices) gives:
WIFI - (ssid is 'abc' and password is '1234'). For WEP encryption: WIFI:S:abc;T:WEP;P:1234;;. For WPA/WPA2: WIFI:S:abc;T:WPA;P:1234;;. Without encryption: WIFI:S:abc;T:nopass;P:1234;;.
All the above example were generated with the Python qrcode package from the command line.
Basically, QR Code returns text data that can be of any type. You can put any type of data in any string format in QR Code. It totally depends on you.
You can consider it as
[NSString stringWithFormat].
Github - Zxing (Barcode Contents) has a summary.
There may or may not be a standard.
If you are looking for non-standard formats,
please update your documentation and contribute to open source.
I have this textarea where anyone can type/paste in multiple phonenumbers, with only one phone number entered per line. When this is saved, the numbers will then appear in a table listing all phone numbers for that user.
I am trying to create a test where I can count the number of phonenumbers that the user entered. I will use this number to compare the total number of phonenumbers before and after the user added them in the textarea
For example a user might type in 2 phonenumbers in the textarea:
123456789
102563987
StoreCSS and xpath count won't work in this case since the characters that a user types in won't be saved in the html.
I have tried storing the value that is typed in the textarea and splitting the lines, but I'm stuck there and not sure what to do next.
Any help will be most welcome. Thanks!
You can do this way. Say for example, stackoverflow's comment area is of textarea. Its css is:
textarea[name='comment']
I could able to do this:
String commentText = driver.findElement(By.cssSelector("textarea[name='comment']")).getText()
Then you can split the string using \n, like this:
commentText.split("\n").size()
is giving me the number of lines entered by the user.
I have no problem printing an Express shipping label.
The ground shipping label doesn't want to put the tracking number in the label. Has anyone had a similar problem?
I return a tracking number like this.
GROUND
800027415019375
When it goes to print the label with all the data it doesn't put in the tracking number, instead it puts in this.
A690,418,0,5,2,2,N,"G"
B80,933,0,1E,4,2,290,N,"9612019000000000000000"
A135,1247,0,4,1,1,N,"(9612019) 0000000 00000000"
Anyone have an idea how to change this using some fedex webservice call. It does it automatically for express, just not for ground.
Thanks.
Its possible you don't have a ground acct number connected to your express acct number. This is the behavior that results from that.
the issue was on test account federal express prints its own fake numbers that don't represent what a valid production # looks like.