Is there a way to transfer data from Time marker 2 to Text console from ucenter? Either Rising or Falling edge values. - gps

I'm using an ublox evk M8T and I'm trying to make a script that shows me in the text console the value of a time marker, which is triggered by a button. So, everytime I press it there would be a time marker that appears. The problem is that that the tm displays values in hex, contrary with the other parameters that are being displayed in txt. How should I proceed so that when I establish the connection with the serial com , to read all the values and when it encounters the hex tm to translate it in a format suitable for text console?

Related

How to increase the text field size within sanity studio?

How can I increase the height of the text input in sanity studio? when the user enters a lot of text, I would like it to go to the next line making it far easier to read.
I have tried adjusting the row property on the text type, but everything stays on the same line.

LibreOffice writer field calculations

In a LibreOffice writer document with a field of #temperature_farenheit. Is there a way to create a field named #temperature_celcius that would automatically calculate and insert the correct temperature?
And if this is possible, what types of fields do I use and how do I reference them for purposes of calculations.
This can be achieved with user variables. I'll give a start-to-finish example in painful detail for clarity, and hopefully universal applicability to other cases.
Open a new text document.
Enter some text like Water boils at °F (°C).
Put the cursor before °F where you would normally type the number.
From the menus, choose Insert→Fields→More Fields…
Go to the Variables tab. Choose Type: User Field.
Below that, you'll see each User Field gets a Name and a Value. It will not appear in your document, but enter a Name for this variable we're using to store "water's boiling temperature in degrees Fahrenheit," lets say: BoilF
Enter the Value you want stored in that variable, and accordingly shown in this field in the actual document text. Here, its: 212
Click the Insert button to actually add the field to your document. You should see 212 appear in the text.
You've now added the field, but also created a variable that can be used elsewhere. Now to do the math and use it elsewhere:
Leaving the Fields window open, put the cursor before °C.
In the Fields window, select Type: Insert Formula.
Below that, enter the Formula: (BoilF-32)*5/9
Click the Insert button. You should see 100 appear in the text.
Should you ever need to update a number pair, double-click the first number—that is, the User Field in your text. Example steps, using the above starting point:
Add to the sentence so it reads
Water boils at 212°F (100°C) atop Everest.
It's now wrong, so double-click 212.
The Edit Fields window will appear. In the Value box, enter 154.4 and click the OK button. It will do the math and both temperatures will update in the text.
Water boils at 154.4°F (68°C) atop Everest.
Be mindful of variable names. If you have 20 temperatures scattered through your text, you should in turn have 20 user variables, with thoughtfully-chosen names.

Undefined String in the last character of SerialPort ReadLine VB.Net

I make program using vb.net where it connected to barcode scanner using rs232 connection. As generally, I use serialport communication (SerialPort1.ReadLine) to get data from barcode scanner. First I think it's work because the barcode value appears in the textbox until I get it can't show the data which has relation with barcode value.
The barcode value is same with data in database, but it can't show. So I try to copy the data from textbox then found that there are the undefined string in the last character of textbox. It's like space but not, when I copy that textbox value to the winword, the value enter automatically, so, i just want to know how my programs can read the barcode value without that undefined string.
Thank you,
When a bar code scanner is configured often the default is to add a termination string called a suffix or a postamble. The termination string is useful to tell the receiving program that all of the data has been sent.
It can be set to anything; a common configuration I’ve seen is the carriage return (vbCr) linefeed (vbLf) pair. You could also set it to not send anything additional which is also a common configuration.
You can build in a configuration option in your VB code to specify a termination string. Your program would look for this termination string as you are receiving the data from the serial port and then strip it out before sending it to the next part of your program. This allows you to easily handle various scanner brands and configurations by changing your configured string.
It is possible for serial data to be delayed and not receive everything at once. By checking for the termination string you can be sure you received it all before acting on it. If you have data but do not see your terminator save the received string and add the additional data as it arrives.
Bar code scanners also have a suffix or prefix that is prepended to the beginning of a scan. This can be used to identify the bar code symbology or other useful information. Usually the default I’ve seen is not to send anything.
I have another solution and I think it's better solution then using NewLine property.
Actually the character in the last string of barcode value is vbCr or vbLf, I don't know what that's mean, but I know it in the manual of barcode scanner. So to remove that character we can use mid function and replace that character with this string "".

Google Apps Script on Form Submit Time Formatting Glitch/Fix

Background:
How: I suspect that this is a glitch within Google Form (submission process)/Spreadsheet, but may be part of the Date conversion utility of the Spreadsheet interface (and is an intended feature).
When entering a format in a text box in Google Forms, there is some sort of communication error between the Form submit and Response Spreadsheet, or pre-processing of the Form's data before it is sent to the spreadsheet. The glitch only seems to happen for data in a text field of the format ##:## TEXT where TEXT contains no '.' characters. For example: 4:15 pm will reproduce the glitch, but 4:15 p.m and 4:15 p.m. will not.
Result: An apostrophe character is added to the beginning of the string when it is put into the Spreadsheet (i.e. '4:15 pm) which throws off several sub-systems I have in place that use that time data. Here are two screenshots (sorry for the bad sizing on the second):
I'm 99% certain that the glitch is caused by the ##: combination.
Temporary Fix?: The real question is... how might I go about removing that pesky apostrophe before I start manipulating the time data? I know how to getValue() of a cell/Range. Assume I have the value of a cell in the following manner:
var value = myRange.getValue();
// value = '4:15 pm
How can I go about processing that value into 4:15 pm? A simple java function could be
value = value.substring(1); // Assuming "value" is a String
But in Google App Scripts for Spreadsheets, I don't know how I would do that.
Post-Script: It is necessary to post-process this data so that I don't have to lecture university faculty in the language department about inputting time format correctly in their forms.
Thanks in advance to those who can help!
How can I go about processing that value into 4:15 pm? A simple java
function could be
value = value.substring(1); // Assuming "value" is a String But in
Google App Scripts for Spreadsheets, I don't know how I would do that.
Google Apps Scripts uses Javascript which has the exact same method.
value = value.substring(1);
should return all except the first character.
More about Javascript substring at: http://www.w3schools.com/jsref/jsref_substring.asp
If you remove the ' in the spreadsheet cell the spreadsheet interface will convert this entry to a date object.
This might (or not) be an issue for you so maybe you should handle this when you read back your data for another use...
It doesn't happen when text is different (for example with P.M) simply because in this case the ' is not necessary for the spreadsheet to keep it as a string since the spreadsheet can't convert it to a date object (time value).
Artificial intelligence has its bad sides ;-)
edit :
You cant do this in an onFormSubmit triggered function using the javascript substring() you mentioned. If you're not familiar with that, here is the way to go :
To run a script when a particular action is performed:
Open or a create a new Spreadsheet.
Click the Unsaved Spreadsheet dialog box and change the name.
Choose Tools > Script Editor and write the function you want to run.
Choose Resources > Current project's triggers. You see a panel with
the message No triggers set up. Click here to add one now.
Click the link.
Under Run, select the function you want executed by the trigger.
Under Events, select From Spreadsheet.
From the next drop-down list, select On open, On edit, or On form
submit.
Click Save.
see doc here and here

change length of multiple mp3 files

I have several hundred short mp3 files (1-5 seconds) I would like to trim them. namely, the length should be rounded up getting a whole second. for example if a mp3 file is 1.32s long, it should be afterwards 2.00 in length, the lack of time should be filled with silence. is it possible to automate this process? if so with what tool? thanks
Try Audacity, it allows batch processing: http://manual.audacityteam.org/index.php?title=Batch_Processing
I'm not sure whether it will do everything that you need it to do but it's worth checking out what all your options are within this program.
[EDIT]
Ok, so if you do have hundred and also might be something useful for you in the future this is what I would recommend or would personally do myself.
Get mp3DirectCut [freeware]
Get AutoHotKeys [freeware]
Learn how to use both, particularly AutoHotkeys
Save All filenames into a spreadsheet
Create a script that does the following with mp3DirectCut
Load file by name on spreadsheet
Hit the "End" button
Paste a pre-copied silent 1 sec long clip from clipboard
Parse the NAV field in the program (bottom left) to get the Total length
Calculate and enter desired endpoint to total length for Selection (then hit Enter)
Hit the "Del" button
Save complete song
Repeat