Ansible convert string to decimal - I have already tried: - Value (), which works only for integer numbers; - Text (); - Combining them both.

 
</b> For example -<b> debug: var=message_count. . Ansible convert string to decimal

stdout_lines ). pharos pro. 2) When you set the countt properly use it in the condition when: countt|int == 0. You'll have to split the lines and read the dictionaries line by line. What I want to do is to convert the decimal string to an hexadecimal string that can be matched with an entry in the vendor-provided table. Should this behaviour not. 9f", new BigDecimal(f))); 6. This method only accepts one parameter. The operator can be defined as a symbol which is responsible for a particular operation between two operands. For example, lets say you use the . JSON and YAML are similar enough that in most cases you can convert between the two languages. If you want to match the whole string and you are using * make sure to always wraparound your regular expression with the start/end anchors. 10 or newer, to avoid use of the safe_eval function. String to ascii converter examples Click to use Convert a String to Hexadecimal ASCII Data. Ansible: Convert string to dictionary. In the following example, I am converting the string. STEP 1: Receive the binary number as a parameter and convert that to an integer using int and use the precision of 2. Hi, I am getting the output of a command which gives me an ip address and storing it as register variable. TryParse(YourString,MyDecimal) Then ' Can't convert. Binary ASCII codes can be zero padded and you can also toggle if individual ASCII bytes should be separated by a space. If the hex string is originally defined as an integer, . We can convert a. java string to decimal java by abdullah on Jul 27 2021 Donate Comment 1 xxxxxxxxxx 1 String strDecimal = "0. But I couldn't find a solution. For example, given the text users_str: | { name: user1, uid: 5000 } { name: user2, uid: 5001 } the task below - set_fact: users_list: " { { users_list|d ( []) + [item|from_yaml] }}" loop: " { { users_str. 3) Given two strings X =< x 1 , x 2 , , x m > and Y =< y 1 , y 2 , , y n >, the edit distance between X and Y is defined as the minimum number of edit operations (replacement, insertion, or deletion of a character) required to convert X. Summary: Ansible converts strings "yes" and "no" into booleans true and false when it is not asked to. If the variant contains a string, a string conversion is performed. dumps function. Converts an Ansible variable into a JSON string representation. Converts an Ansible variable into a JSON string representation. Converting to Decimal to Floating Point Convert +33. You'll have to split the lines and read the dictionaries line by line. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. 3) Given two strings X =< x 1 , x 2 , , x m > and Y =< y 1 , y 2 , , y n >, the edit distance between X and Y is defined as the minimum number of edit operations (replacement, insertion, or deletion of a character) required to convert X. hannah knowles wwmt. Here is a quick example --- - name: Ansible Split Examples hosts: localhost tasks: - name: Split Simple String Example debug: msg= { { ' sarav@gritfy. Wikiversity participants can participate in "e yooso z 88 software download" projects aimed at expanding the capabilities of the MediaWiki software. 9f", new BigDecimal(f))); 6. If you do not pass any argument, then the method returns 0. You'll see that the output of the shell is stored in message_count. Nov 24, 2019 · The challenge is that the math inevitably returns a decimal. Integer variable in Microsoft Flow At the end of the Flow when I wanted to update the contact with the data quality score, I tried the three types of number fields in Dynamics 365/CDS–whole number, floating point, and decimal. Moreover, we need to make it stable, that means, that each time we pass the same string, we are getting the same number on every following run of Ansible. Converting to Decimal to Floating Point Convert +33. You can specify a start value, an end value, an optional “stride” value that specifies the number of steps to increment the sequence, and an optional printf-style format string. TryParse(YourString,MyDecimal) Then ' Can't convert. In most cases, you can use the short plugin name sequence even without specifying the collections: keyword. JSON is a lightweight data interchange format. Improve this answer. Examples of the matching: string1 — 6870. dumps function. I need to add prefix and suffix to each string without involving Ansible loops (for example, because it’s already within a loop or two). fort bliss accident 2022. Example4: Ansible Split – With File Content. flight 46 pilot. Example-wise the jq manpage is not really helpful. In many cases, you need to do some complex operation with your variables, while Ansible is not recommended as a data processing/manipulation tool, you can use the existing Jinja2 templating in conjunction with the many added Ansible filters, lookups and tests to do some very complex transformations. Ansible/Jinja: how to . This will lead to tears. Share Improve this answer Follow answered Jan 29, 2019 at 14:47 Michael Hampton 238k 42 482 943 it doesn't work in my case. Learn YAML Array Collection Dictionary examples. I was going to use this value then to create a dns record but unfortunately the variable seems to be a string type. hannah knowles wwmt. ToDecimal (Double) Converts the value of the specified double-precision floating-point number to an equivalent decimal number. Ask Question Asked 11 months ago. ')[:2] and joining it with float "{{bin_version. 5, using a jinja test as a filter will generate a deprecation warning. But I couldn't find a solution. It is often used for processing data and text and generating reports; these similarities with Perl mean that Rexx works well in Common Gateway Interface (CGI) programming and it is indeed used for this purpose. I tried the above but it seems the json data is returned as a string and so the conversion fails. – Vladimir Botka. I have already tried: - Value (), which works only for integer numbers; - Text (); - Combining them both. You will need at least 24 bits (for single precision ). To convert YAML data into XML data. If you do not pass any argument, then the method returns 0. Using Python’s text object method split we turn strings into lists via a ‘spliting character’. This tool also helps you to validate your YAML string/data. framer motion. What im trying to say is after the parse_cli it goes in a string. data: - string1 - string2 We want to convert it to (with. 4 This issue/PR affects Ansible v2. support:core This issue/PR relates to code supported by the Ansible Engineering Team. This can interfere when user wants to have literal strings yes or no passed through a variable. Converting string variables to numbers. As part of this flow, I created an integer variable called “score” to be used to calculate the data quality score. What I want to do is to convert the decimal string to an hexadecimal string that can be matched with an entry in the vendor-provided table. complex - A complex number contains an GitHub Database Connection OpenTelemetry Ansible Note: To call an inner function, we must first call the outer function. However, we recommend you use the FQCN for easy linking to the plugin documentation and to avoid conflicting with other collections that may have. Improve this answer. The example shows a JSON dictionary object with three key value pairs. There are no intrusive ads, popups or nonsense, just a decimal to string converter. Examples of the matching: string1 — 6870. I noticed many users are using different and wrong methods to convert a list data to string format. 5 | int }}" Obviously the latter did not work, because (if I am not mistaken) ansible_memtotal_mb * 0. Participate at the lightning mcqueen human x reader learning project and help bring threaded discussions to Wikiversity. Notice in this example the double quotes are used, which you would think we set the variable to be a string. At some point, you’ll likely be faced with the prospect of working with numbers in both fraction and decimal format. Load a string, get its decimal representation. The argument is interpreted as a long int or unsigned long int for integer specifiers (i, d, o, u, x and X), and as a wide character or wide character string for specifiers c and s. 4 This issue/PR affects Ansible v2. edited Oct 25, 2016 at 22:14. 5 >= 6. They convert their string parameters into text (using ansible. Modified 6 months ago. Convert a string into an integer. Syntax public static bool TryParse (string s, out n); Syntax Parameters. Notice in this example the double quotes are used, which you would think we set the variable to be a string. Example4: Ansible Split – With File Content. toString () method of Integer class Using DecimalFormat Class Using StringBuffer class using StringBuilder class Using special radix and custom radix Using concatenation with an empty <b>string</b>. 2) Write the number in binary. here's what I did to make it work: --- - name: answer serverfault hosts: all become: yes tasks: - name: Get message_count shell: ls . You'll see that the output of the shell is stored in message_count. Below is the implementation of the approach. Notice in this example the double quotes are used, which you would think we set the variable to be a string. stdout (and in message_count. Last Updated: February 15, 2022. Notice in this example the double quotes are used, which you would think we set the variable to be a string. How to convert python dict to csv – We will see the conversion using pandas and CSV in different methods. --> this returns "10. stdout_lines ). jinja format number. not necessary 2 digits when I use str2num I cannot determine number of decimal digits and they are two digits by default. strong>convert a string var to an integer. I have already tried: - Value (), which works only for integer numbers; - Text (); - Combining them both. For example - debug: var=message_count. actually just found solution if anyone else needs to do this. Created for developers by developers from team Browserling. 0 webapp_custom_name: ToDo_App-1. * Use Arrays. 9f", new BigDecimal(f))); 6. stdout_lines ). * Use Arrays. 4 This issue/PR affects Ansible v2. I have already tried: - Value (), which works only for integer numbers; - Text (); - Combining them both. They convert their string parameters into text (using ansible. actually just found solution if anyone else needs to do this. 8933"; Decimal d = Convert. Given a hex number as a string, say '8d', I cannot convert it to a decimal string. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. Aug 12, 2019 · Moreover, we need to make it stable, that means, that each time we pass the same string, we are getting the same number on every following run of Ansible. java string to decimal java by abdullah on Jul 27 2021 Donate Comment 1 xxxxxxxxxx 1 String strDecimal = "0. A string on which to split the original. unit_of_measurement: “°C”. Nov 24, 2019 · The challenge is that the math inevitably returns a decimal. What are. edited Oct 25, 2016 at 22:14. Share Improve this answer Follow answered Jan 29, 2019 at 14:47 Michael Hampton 238k 42 482 943 it doesn't work in my case. You will need at least 24 bits (for single precision ). The operator can be defined as a symbol which is responsible for a particular operation between two operands. Load a string, get its decimal representation. They convert their string parameters into text (using ansible. TryParse (txtField. urine drug test detection times what famous criminal case made fingerprinting the standard for personal identification honda clock issue 2022 fix flyway version. 14 Okt 2019. – Vladimir Botka Aug 16, 2020 at 21:15 Add a comment 1 Answer Sorted by: 9. You can use existing filters and functions in Ansible to . 1 I want to convert Ansible string value to float and compare with another float value In my ini file bin_version=6. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. In most cases, you can use the short plugin name sequence even without specifying the collections: keyword. edited Oct 25, 2016 at 22:14. *) on some Python versions will match the whole string and an empty string at the end, which means it will make two replacements:. Default: " ". Created for developers by developers from team Browserling. The parts I am pulling out are a bunch of numbers and sometimes ansible is converting them automatically into an integer instead of leaving it a string which is causing problems for me. It is often used for processing data and text and generating reports; these similarities with Perl mean that Rexx works well in Common Gateway Interface (CGI) programming and it is indeed used for this purpose. When the Decimal. This lookup plugin is part of ansible-core and included in all Ansible installations. There are no intrusive ads, popups or nonsense, just a string. Aug 16, 2020 · 1) Display message_count. to_yaml filter – Convert variable to YAML string. complex - A complex number contains an GitHub Database Connection OpenTelemetry Ansible Note: To call an inner function, we must first call the outer function. Load a string, get its decimal representation. For example, given the text users_str: | { name: user1, uid: 5000 } { name: user2, uid: 5001 } the task below - set_fact: users_list: " { { users_list|d ( []) + [item|from_yaml] }}" loop: " { { users_str. 4 bug This issue/PR relates to a bug. - name: "Parse CSV from string" debug: msg: "{ { csv_string |. Specifies the number of digits allowed after the decimal point. stdout (and in message_count. I am using the ansible shell module to compare the chain of 2 SSL certificate with openssl (they have the same chain): openssl x509 -issuer -noout -in Certiticate1 openssl x509 -issuer -noout -in Certiticate2. However, we recommend you use the FQCN for easy linking to the plugin documentation and to avoid conflicting with other collections that may have. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. Paste a hexadecimal, get a string. Setting recursive=True also allows for nested keys to be merged. the regex pattern find the 0020034. Apr 30, 2009 · string str = "0. who played mickey trotter on dallas nemra 2023 island pointe rentals. In the following example, I am converting the string. Aug 12, 2019 · Moreover, we need to make it stable, that means, that each time we pass the same string, we are getting the same number on every following run of Ansible. 1) Display message_count. Default: " ". stdout (and in message_count. Consider using TryParse instead: Dim bal as decimal Dim ValidInput as boolean = Decimal. I then need to convert it to a decimal number. Integer variable in Microsoft Flow At the end of the Flow when I wanted to update the contact with the data quality score, I tried the three types of number fields in Dynamics 365/CDS–whole number, floating point, and decimal. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. 3333316 1) Convert the decimal number to binary. For example, lets say you use the vars plugin to create a variable named foo. data: - string1 - string2 We want to convert it to (with. bc: Hexadecimal or Binary Conversion. coerce, A Boolean value that signals to truncate decimals for integer values and to convert strings to numeric values. The term dictionary in Python corresponds to a hash in Ruby, an object in JSON, a mapping in YAML or sometimes an associative array. ') [:2] and joining it with float " { {bin_version. stdout (and in message_count. Parameters: x = binary string(can be. You'll see that the output of the shell is stored in message_count. Convert a string into an integer. Ask Question Asked 11 months ago. This list has many values and one of them is "89. - name: "Parse CSV from string" debug: msg: "{ { csv_string |. aspx Many thanks Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM. 17 I want to compare bin_version with 1 decimal value(6. It somehow comes out as 8402 and as an integer. 3) Given two strings X =< x 1 , x 2 , , x m > and Y =< y 1 , y 2 , , y n >, the edit distance between X and Y is defined as the minimum number of edit operations (replacement, insertion, or deletion of a character) required to convert X to Y. - name: "Parse CSV from string" debug: msg: "{ { csv_string | community. java string to decimal java by abdullah on Jul 27 2021 Donate Comment 1 xxxxxxxxxx 1 String strDecimal = "0. Try using the ipaddr filter. Last Updated: February 15, 2022. toString () method of Integer class Using DecimalFormat Class Using StringBuffer class using StringBuilder class Using special radix and custom radix Using concatenation with an empty <b>string</b>. You'll see that the output of the shell is stored in message_count. split ('. I tried the above but it seems the json data is returned as a string and so the conversion fails. You could check that foo is a interger and not a string and that it is a whole and positive number like this (note that it might be fine in your case with foo being a variable of type str and not int, if so omit the first check): - name: Ensure that foo is a whole positive number assert: that: - foo | type_debug == "int. to Ansible Project This has to be easy, but I have tried a way to many things. Aug 16, 2020 · 1) Display message_count. The following code uses the astype () method from the NumPy library to convert a string to decimal in Python. For example - debug: var=message_count. One degree (°) is equal to 60 minutes (') and equal to 3600 seconds ("): 1° = 60' = 3600" The integer degrees (d) are equal to the integer part of the decimal degrees (dd): d = integer (dd) The minutes (m) are equal to the integer part of the decimal degrees (dd) minus integer degrees. However, we recommend you use the FQCN for easy linking to the plugin documentation and to avoid conflicting with other collections that may have. 5 is a percentage. In this case, the keys and values are string data. Moreover, we need to make it stable, that means, that each time we pass the same string, we are getting the same number on every following run of Ansible. Converts an Ansible variable into a JSON string representation. toString ()); /*. 16 Agu 2020. 1k Code Pull requests 342 Actions Projects Security Insights New issue Closed commented on Aug 8, 2015 Sign up for free to subscribe to this conversation on GitHub. Converts an Ansible variable into a JSON string representation. 7) so I'm splitting it with 1 decimal value bin_version. Input This describes the input of the filter, the value before | ansible. For example - debug: var=message_count. Example4: Ansible Split – With File Content. register: ip. If the variable value is a string, you can convert it to an int using Jinja2 filters. free printable inappropriate coloring pages for adults. string str = "0. Participate at the lightning mcqueen human x reader learning project and help bring threaded discussions to Wikiversity. You'll see that the output of the shell is stored in message_count. Mar 23, 2015 · In my case to convert the value of a variable to uppercase pipe the variable to upper like so: { { ansible_hostname|upper }} Share. Ansible - Convert string to dictionary in Ansible. Created for developers by developers from team Browserling. Aug 16, 2020 · 1) Display message_count. Positional parameters. To convert YAML data into JSON data. This value is stored inside n. from_xml Keyword parameters This describes keyword parameters of the filter. 0 webapp_custom_name: ToDo_App-1. answered Mar 23, 2015 at 20:19. This filter plugin is part of ansible-core and included in all Ansible installations. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. Ansible convert string to decimal. To prevent exceptions you can use. ISSUE TYPE Bug Report COMPONENT NAME aws_application_scaling_policy ANSIBLE VERSION ansible 2. What im trying to say is after the parse_cli it goes in a string. Note that where you see u'some value' means that Python converted that string to a Unicode string. I need to add prefix and suffix to each string without involving Ansible loops (for example, because it’s already within a loop or two). Formatting data: YAML and JSON. Given a string as input, write a program to convert the characters of the given string into the hexadecimal equivalent of ASCII values. black pofn, love unexpected chinese drama 2022

We created a cloud browser!. . Ansible convert string to decimal

Here is a quick example --- - name: <b>Ansible Split Examples</b> hosts: localhost tasks: - name: Split Simple <b>String</b> Example debug: msg= { { ' sarav@gritfy. . Ansible convert string to decimal fire kirin download for android

Here is a sample of what I am trying to do. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. Example2: Ansible Split with loop – To process list of strings. "/> feature_extraction ValueError: could not convert string to float:. split ('. Clarify docs re mode's octal representation. 871 2 8 12. - name: "Parse CSV from string" debug: msg: "{ { csv_string | community. Load a string, get its decimal representation. Use the set_fact module e. SUMMARY When looking up variable that is an int, ansible converts to string and wont convert back to int. Notice in this example the double quotes are used, which you would think we set the variable to be a string. split ('. * Second options is to use Arrays class as given below. This lookup plugin is part of ansible-core and included in all Ansible installations. For VARIANT input: If the variant contains a fixed-point or a floating point numeric value, an appropriate numeric conversion is performed. Syntax public static bool TryParse (string s, out n); Syntax Parameters. Default: " ". 210 to a single precision (32-bit) IEEE 754 number. This can interfere when user wants to have literal strings yes or no passed through a variable. stdout_lines ). SUMMARY Comparing two floating numbers from a text conversion with the. 5, using a jinja test as a filter will generate a deprecation warning. edited Oct 25, 2016 at 22:14. Instead, they must be converted to string or an integer that the other module will accept. Aug 11, 2021 · This list has many values and one of them is "89. * Use Arrays. Load a string, get its decimal representation. If the variant contains a string, a string conversion is performed. 5 | int }}" Obviously the latter did not work, because (if I am not mistaken) ansible_memtotal_mb * 0. split ('. The parts I am pulling out are a bunch of numbers and sometimes ansible is converting them automatically into an integer instead of leaving it a string which is causing problems for me. Passes the values you want to convert to decimal values. A string on which to split the original. Ansible internally auto-converts JSON strings into variable structures so this plugin is used to force it into a JSON string. How to convert Ansible string to float and use that value to compare with float value https://stackoverflow. I then need to convert it to a decimal number. Binary ASCII codes can be zero padded and you can also toggle if individual ASCII bytes should be separated by a space. Load a string, get its decimal representation. 15 Jan 2023. ') [:2] | join ('. 1) Display message_count. If the hex string is originally defined as an integer, . lufthansa cabin crew salary per month Approach 1: Using method int() + base argument. How do I convert a string to a single element array? I am have an issue when my module return a single item in a Name. I need to add prefix and suffix to each string without involving Ansible loops (for example, because it's already within a loop or two). so "509" is always less than "99" as the comparison is by character "5" < "9" not by full value of the string, you want to compare numbers, specifically in this case 'floats'. This highlights potential problems where, for example, a yes or true (parsed as truish boolean value) would be converted to the string 'True', or where a version number 1. Should this behaviour not. split (positional1, positional2,. Test if max float from string is less than min float from string . online file repair; are sniping bots legit; ucsd patient portal; hunting units az. gets translated to this (in Python): trim(word_with_whitespace) So if we want to trim "*. 5 is a percentage. Strings are. Example1: Ansible Split Simple String. Strings are. Notice in this example the double quotes are used, which you would think we set the variable to be a string. Strings are. Nov 24, 2019 · The challenge is that the math inevitably returns a decimal. Jan 29, 2019 · You can use a filter that changes the string to an integer. Formatting data: YAML and JSON. How to convert Ansible string to float and use that value to compare with float value https://stackoverflow. 3) Given two strings X =< x 1 , x 2 , , x m > and Y =< y 1 , y 2 , , y n >, the edit distance between X and Y is defined as the minimum number of edit operations (replacement, insertion, or deletion of a character) required to convert X. I need to add prefix and suffix to each string without involving Ansible loops (for example, because it's already within a loop or two). java string to decimal java by abdullah on Jul 27 2021 Donate Comment 1 xxxxxxxxxx 1 String strDecimal = "0. In most cases, you can use the short plugin name sequence even without specifying the collections: keyword. Notice in this example the double quotes are used, which you would think we set the variable to be a string. stdout (and in message_count. Arguments can be specified as key=value pair strings or as a shortcut form of the arguments string is also accepted: [start-]end [/stride] [:format]. There are no intrusive ads, popups or nonsense, just a string to decimal converter. New in version 2. These are the values positional1, positional2 and so on in the following example: input | ansible. JSON and YAML are similar enough that in most cases you can convert between the two languages. Load a string, get its decimal representation. For example - debug: var=message_count. Examples : Input : Geek Output : 4765656b Input : IronMan part 3 Output : 49726f6e4d616e20706172742033 Recommended: Please try your approach on {IDE} first, before moving on to the solution. Sometimes, you may want to convert the data in degrees/minutes/seconds formatting to decimal degrees, the following VBA code can help you quickly get it done. 9f", new BigDecimal(f))); 6. Perform a math function (addition, subtraction, multiplication, division) Convert a string into an integer For example, lets say you use the vars plugin to create a variable named foo. How to convert Ansible string to float and use that value to compare with float value https://stackoverflow. We can convert a. Using Python’s text object method split we turn strings into lists via a ‘spliting character’. Converting string variables to numbers. If you do not pass any argument, then the method returns 0. Load a string, get its decimal representation. If you do not pass any argument, then the method returns 0. You might already have this collection installed if you are using the ansible package. hot docs. Default: " ". Due to this, because we cannot convert the string representation of a datetime object back to a python data structure, it stays as a string representation. urine drug test detection times what famous criminal case made fingerprinting the standard for personal identification honda clock issue 2022 fix flyway version. If you do not pass any argument, then the method returns 0. toString ()); /*. TryParse method. In most languages it is easy to create a dictionary (a. 5 is a percentage. SUMMARY Ansible When condition not working expected when decimal or point in value. - name: Concatenate a list to string set_fact: my_string: " { { my_list | join (',') }}" Find the full playbook below. * Second options is to use Arrays class as given below. 5 >= 6. The syntax of . 210 to a single precision (32-bit) IEEE 754 number. The parts I am pulling out are a bunch of numbers and sometimes ansible is converting them automatically into an integer instead of leaving it a string which is causing problems for me. The syntax of . – Vladimir Botka Aug 16, 2020 at 21:15 Add a comment 1 Answer Sorted by: 9. Improve this answer. Example4: Ansible Split – With File Content. 1) Display message_count. This lookup plugin is part of ansible-core and included in all Ansible installations. TryParse() method is called, it returns the decimal. - name: Concatenate a list to string set_fact: my_string: " { { my_list | join (',') }}" Find the full playbook below. Notice in this example the double quotes are used, which you would think we set the variable to be a string. * Second options is to use Arrays class as given below. to Ansible Project. What are. If the variable value is a string, you can convert it to an int using Jinja2 filters. Company Culture : Private Equity's Intangible Value Creation Lever by Jeff Dagbo and Sam Acuna Story Highlights Navigate turbulent markets by focusing on your most critical asset: people 85%. Oct 09, 2020 · Convert AnsibleUnsafeText to String. Due to this, because we cannot convert the string representation of a datetime object back to a python data structure, it stays as a string representation. dev0 config file = None configure. ISSUE TYPE Bug Report COMPONENT NAME aws. The server returns a decimal value but the table uses the hexadecimal equivalent. - hosts: loc vars: str_var: "10" tasks: - debug: msg: "Ansible convertion of a string to an int { { str_var|int * 5}}". data: - string1 - string2 We want to convert it to (with. 9f", new BigDecimal(f))); 6. Free online string to decimal converter. complex - A complex number contains an GitHub Database Connection OpenTelemetry Ansible Note: To call an inner function, we must first call the outer function. . capcut video editor download