How to make Xenon 1900 make ENTER with each LF on Windows OS - barcode-scanner

We have QR codes whose content is presented in the form of:
XXXXXX
YYYYYY
ZZZZZZ
The line break is the LF (Line Feed) character because it's made in Linux. The problem is that when we scan this QR code with Xenon 1900 and Windows machine, it has only one row:
XXXXXXYYYYYYZZZZZZ
I would like to ask is there a way to get it back on Windows?

Related

PRO File opening

I have generated a .PRO file using Informatica which has some header rows followed by Data rows. When I am viewing the file on Linux CMD, all the rows are coming correctly. But after transferring the file on S3 bucket and then opening it throught Notepad, all the rows come as a single row. The end of row gets vanished. But if I drag and open the file in Excel, I am able to see the same file in correct format. What can be the issue and what can be the solution for this.
Be careful: UNIX and Linux are just using \n (newline) to go to a new line, while Windows is using \r\n (the first one is the carriage return). When you are moving a UNIX/Linux file to a Windows environment, quite some tools or programs are converting \n to \r\n (known as the unix2dos command) automatically.

Excel VBA on Mac german special characters not encoded correctly (ÄÜÖ)

I have an Excel VBA Script that I originally wrote for Windows (where it works fine) and now had to port to Mac OS. I don't think that it matters but the script is calling cURL to get a JSON Response from a web API which is then parsed, edited and inserted into the spreadsheet.
Some of the fields in the parsed JSON contain special characters like Ä, Ü, Ö (German characters). The script can handle these just fine on Windows but on Mac instead of ÖÜÄ I get other symbols. This breaks the tool as it depends on some vlookup-functions where the values are written by hand (with the correct symbols).
I tried lots of googling but was not able to find anything.
One thing that might be interesting is that the code itself changes on Mac as well! I have some statements printed to the console and even the hardcoded strings that contain a special character are broken as soon as I open the script on a Mac.
The question is for Mac VBA. This is a pain. The only solution I have is to send the curl output to a file, then open that file with workbooks.opentext and Origin:=65001 and all the response is in cell A1, correctly encoded.
I have asked my own question on that, to see if any one has a more recent answer.
How to read UTF8 data output from cURL in popen/fread in VBA on Mac?

Linux Send Mail - Command Line

I have a little script on Centos 6.5 64 bit which sends email content of a text file (as inline and NOT as attachment) to a user:
mail -s "Zabbix Alerts" -r sender#mydomain.com receiver#mydomain.com < /filename
It used to work great for a long time. Today we have got a new server Centos 6.7 64bit and the same scripts sends what is expected but not as inline but as attachment.
We need the content of the text file as inline text (not attachment).
I have already spent a few hours find the cause but no luck.
I will be really thankful if someone can help me.
I just found it is some problem with the text file. When I open it in vi it shows too many ^M characters. When I remove that it becomes fine. So it is not a problem with mail but the file

Linux - Colorizing Text in Files

I'm on CentOS 6, and I'm playing around with the Pre-Login file message, located here:
# vi /etc/issue
I want to add some custom text of mine, and colorizing that text.
Here's my file text for now:
----------------------------
Welcome to my Testing Server
----------------------------
I've used an example from a friend of mine, on his CentOS 5:
----------------------------
^[[47;31m Welcome to my Testing Server ^[[0m
----------------------------
I see it working fine on his box, as I ssh to it.
But I copied and pasted it into my /etc/issue file and it returns everything as text.
Am I missing something?
The ^[ is not a literal carat followed by a bracket, it is a control character. When copying from your friend's box to yours, the control characters have been taken literally and cease to work properly, see this for more information on colorizing /etc/issue

NDIS Hooking for Blocking/Unblocking website on windows xp

I am trying to block/unblock some of website on windows xp using NDIS Hooking.I am new for this NDIS Hooking on windows xp. so can you please tell whether is there any sample in msdn or do you have any sample application whick can Block/Unblock website.
Thanks,
Kamal.
You can use binary conversion.
Get its IP address (216.178.39.74), by pinging the name (if you have a direct internet connection) or if you only have access via a web proxy then find it out by using a networking website like network-tools. com.
Start your PC's calculator, and change it to scientific mode (using the "View" menu)
Enter each of the four IP octets, one by one, converting them to binary (enter number and click on the "Bin" radio button)
Thus 216.178.39.74 becomes
216 = 11011000
178 = 10110010
39 = 00100111
74 = 01001010
Notice how any binary numbers less than 8 digits long have had leading zeroes added to pad them out. Reassembled into IP address order, you get
11011000.10110010. 00100111. 01001010
Remove the dots, so you get one huge line of binary, thus:
1101100010110010001 0011101001010
Copy this binary string
Go to your scientific calculator, and hit the "Bin" button FIRST (as you are about to enter binary), THEN paste in the binary string.
Click on the "Dec" button on your calculator, and you will get the converted value of 3635554122
Add the hypertext protocol prefix and paste into your browser's address bar:
http://3635554122

Resources