Printing to an Intermec mobile printer from web application - barcode-printing

Hello I have purchased a new Intermec CK3R Mobile computer and a PB50 Printer. I am developing a inventory check in system that will work in the following way
Background
Basically it is a single page ASP.NET MVC application with some JavaScript.
There are two form fields (Part Number, Serial number)
Flow
After the part number is scanned, focus is moved to Serial number.
After serial number is scanned the data is sent to the server via AJAX Post
Server does extensive validation
if it passes: Part number and serial number pair are entered into a database. The new unique id, part number and serial number is passed back to the client.
If it fails: and error code & message is returned back to the client
So here is the question. On a successful validation I would like a print job to be sent to the PB50 so the box can be labeled. The label should have the unique ID in barcode, and the part number in text.
I need a starting point to go from. I would be great if I could use JavaScript to send the print job.
I found http://www.hjgode.de/dev/activex1.htm which is an older example. I want to be sure i am going about this in the most efficient manner.

Related

Number of text response in Dialogflow

I am new to Dialog flow and trying to build product search. So for that i have many text responses. While doing this my number of text response reached to 30.
As you can see in screenshot it reached till 30 and i didn't find any option to write another text response. So clicked on Add Message Content and added new text response. But now when i query something it gives me multiple response.
So my question is:
1) Is there any way to increase number of text response(30) size. Or it is limitation.
2) If there in no way to resolve above issue. How can i get only single response as it is giving me two response from both text response
Text responses are available in all platforms.
Limitation-1: Your agent can send up to 10 sequential text messages in response to a user input (assuming no other message types are defined in the intent).
Limitation-2: You can add 30 variations to each text message response.
So, the answer to your question, there's no way, you can exceed this limit either in Standard or Enterprise edition. Secondly, what you're doing is adding a number of text messages when you reached a limit (30) while adding variations. You can resolve this issue either by deleting number of text messages or by creating different intents for different responses.
When you add variations, api.ai will randomly choose any one of those 30 responses written by you & show it to a user. You have multiple such text messages & so api.ai randomly chooses one response from each text message & so you're getting multiple responses. Hope this helps.
You shouldn't try everything in one single intent. Break into multiple to avoid complex scenarios.

How to convert Notes document link to HTML link

I am charged with maintaining some old code, in which we are extracting a Notes link from a message, and turning it into a link that can be called from HTML on a local machine (on which Notes is installed). We have a situation where one link works, and another one does not.
I am struggling to understand what exactly this code is doing, and why it even works in the first place. Basically, we are looking at the property "$Links" in an email message. The value of this property, for example, when viewed in Notes, is something like:
RFC2257F23:004852B9
VFA5208C4C:6552DA01-VN422569FB:003AAC2D
NF6D24A297:6579B8E3-NNC225805D:004D8678
What our code does is get the binary value of this property, using NSFItemInfo and OSLockBlock. It then starts at offset 11, and works backwards 8 bytes, converting each byte to a 2 digit hex value. Then it does the same thing 3 more times, but moving the offset 8 bytes forward from the original 11. A '/' character is inserted after the 1st and 3rd of these 8 byte segments. Then the whole thing is appended to "notes:///". At the end, the link generated looks like this:
Notes:///C2257F23004852B9/A5208C4C6552DA01422569FB003AAC2D/6D24A2976579B8E3C225805D004D8678
I'm guessing that this value represents the Notes UNID of the document link, and that when clicked on, Notes
starts up, and goes directly to the document. So does anyone have an idea as to why one link would work, and
the other fail? Our customer claims that the Notes links database is intact, and can be viewed successfully
from within Notes itself.
Notes- Links consist of the protocol, a server part, a database part and the element within the database.
A normal example would be:
notes://server/path/database.nsf/view/keytodocumentinview
Every part (except the server) can be replaced by an internal ID.
path/database.nsf --> Replica ID (C2257F23004852B9 in your example)
view --> Universal ID of the design element of the view (A5208C4C6552DA01422569FB003AAC2D)
keytodocumentinview --> Universal ID of the document (6D24A2976579B8E3C225805D004D8678)
If there is no server in the link, then the notes client tries to "guess" the right server. It checks:
Is there an icon in the desktop for the Replica- ID requested. If yes: take the server of the last used replica (on the top if replicas are stacked)
Can I find a catalog.nsf (either on catalog- server from location document or on mail- home- server. If yes: Is the replica- id in there? If yes: Take the server from there...
Ask user for server (not sure about that part, as it not always seems to happen)
So the answer to your question is:
If the client can not find any reference to the server the link will not work.
So it is always better to add the right server to the link (if you know it).
Just to explain, how to get from one form to the other, here is some more explanation:
Some times these IDs are represented differently as found in the $Links- Item:
The first letter stands for the "Type" of ID:
R = Replica ID
V = View Universal ID
N = Note Universal ID
All 32Bit values are separated in 2 halfs of 16 bit, prepended by another Character telling "First" (F) or "Second" (=Next, N) value.
The rest is divided in chunks of 8 letters, the first and third octet separated with colons, and the first half and second half split by a minus sign.
Like that you can easily see:
RFC2257F23:004852B9 translates into FC2257F23004852B9
VFA5208C4C:6552DA01-VN422569FB:003AAC2D translates into A5208C4C 6552DA01 422569FB 003AAC2D
and
NF6D24A297:6579B8E3-NNC225805D:004D8678 translates into 6D24A297 6579B8E3 C225805D 004D8678

What would be the best way to make a website that lets a user fill a form and receive data (such as real estate listings)?

I want to make a website that will allow the user to input the zipcode in which they are looking for houses and that will notify me of what their search criteria is (such as homes for $250K in the ##### zip code). What would be the best way to start this project?
You could create a form which would ask for the user to fill in their details and when they submit you receive an email with their details.
You can look into simple bootstrap form and use PHP to implement it
Have a look at this example
Simple Form Example
You could create a form that gives price range option.
-$50,000-$100,000
-$100,000-$150,000
-$150,000-$200,000
-$200,000-$250,000
-$250,000-$300,000
-$300,000+
Then create an input field with validation applied that checks for a certain amount of characters and that the input is integers to help with span.
Finally a submit button that you can set up to email you the results or if you are working with a database you can send it there and monitor it or create a page that displays the requests you get. The email structure would be pretty easy to set up.
This can all be done with simple php and html.

How to build a facebook-like fast search by starting of words?

I have to build a search textbox in a web page similar to facebook search box. Client side there will be ajax calls. The user need to search into around 300.000 elements that have a description of a few words or an alphanumeric code. When user enters the beginning of a word, a call is made to the server which return best match based on the starting of any word or code but also suggest first the elements most recently by the user, then by the group the user belongs to and finally from the entire set. Result can be limited to 10-20 items.
How can I build a fast search by key with the value just the description of the element? We use SQL server but any other DB could be OK.
The implementation at the time was very complex to summarise here but I came across recently to UI-select that solve the front end problem nicely and it's very good component if you are using Angular
https://github.com/angular-ui/ui-select
then backend you can put whatever you have (I did with Redis)

WATIR: how do drive outlook web access

since the emails loads dynamically how do you find a specific email that contains a button back to your site. This is like signing up at a site. Customer receives email to confirm.
Thanks for the support
BigD
OWA, bless MS's little hearts (at least in the circa 2003 version I'm looking at here) uses frames, so first of all brush up on that or you are gonna be hating life. The list of incoming messages is in a frame named 'viewer' The message summaries are contained in a table lacking any useful means to identify it that is in a div of class 'msgViewerCont" and an ID of dvContents. So to see if a message exists you want to look to see if you can find a row in that table which contains the subject you expect to see.
(be careful using ID values on OWA.. apparently nobody in the group that developed it read the part of the HTML standard that specifies that ID values are supposed to be unique.. the re-use them all over that page.)
Presuming you know the subject of the message you are about to receive, and also that you keep that mail account cleared out so that it will be the ONLY message there with that subject line, then you can check to see if it exists usng
subject = regex.new("subject you are looking for")
browser.frame(:name, 'viewer').div(:id, dvContents).table(:index, 1).row(:text, subject).exists?
to click on it use .click instead of exists.
once you've clicked it, OWA will refresh the PreviewPane iframe.. inside that iframe is another one that has the message body in it.
all those frames, are nested inside the viewer frame. welcome to nested frame hell. hope you enjoy your stay. (like I said, bone up on frames, you're in for a fun ride)

Resources