concatenation

Unable to get Allen Browne's ConcatRelated to work on a simple table

我们两清 提交于 2019-12-02 10:13:46
I am trying to use the ConcatRelated function to provide a summary report of the prior day's absences, tardies, and vacations. I have tried several variations and can't seem to get it to work in an Access Query. My table looks as below: ID A_date Area ATV_Shift Associate_Name Absent Tardy Vacation Reason -- --------- ----------- --------- -------------- ------ ----- -------- -------------- 1 1/11/2015 Asm Kenmore First Keon Wilson 1 Sick 2 1/11/2015 Asm Kenmore First Frank Burns 1 Doctor 3 1/11/2015 Asm Kenmore Second Paul Mattocks 1 FLMA 4 1/11/2015 Decoration First Jane Doe 1 Car Broke Down

Row in formula change based on value in another cell

一个人想着一个人 提交于 2019-12-02 10:06:32
I'm trying to create a paragraph in excel. I have values listed in another sheet that I want to pull from. Here is the code I'm using: =CONCATENATE("Dear ",'Linkage Log'!I6,", "Blah Blah Blah") I want the column I to change the same, but I'm trying to have it so that the 6 changes depending on a value I type in another cell (e.g. E8). So if I type 7 in the cell, the formula will change to: =CONCATENATE("Dear ",'Linkage Log'!I7,", "Blah Blah Blah") Is this possible? I'm not trying to generate mail, so a mail merge isn't really helpful to me. Thanks for your help! You should be able to use the

FFmpeg - Concatenate videos with not know format

醉酒当歌 提交于 2019-12-02 09:42:58
I am developing an application. People upload videos from their mobile, from other places. Using a CMS in PHP (it is the language with which the application is developed) I need to generate a unique video with these partial uploads. Through FFmpeg I am doing tests, from the command line: ffmpeg -i concat:IMG_1916.mp4\|IMG_1917.mp4 -c copy videoLoop.mp4 This code when I run it says: ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 8.0.0 (clang-800.0.42.1) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.4 --enable-shared --enable-pthreads -

How to concatenate videos in ffmpeg with different attributes?

℡╲_俬逩灬. 提交于 2019-12-02 09:41:50
I'm trying to merge some videos but I'm getting timestamp errors. I tried to make them all equal with the same dimensions, frame rate, sample rate and also by adding an audio track when there's none. lista = ['1.mp4', '2.mp4', '3.mp4'] path = '/Downloads/abc/' a = open('/Downloads/abc/list.txt', 'w+') i = 0 for f in lista: i += 1 places = path + str(i) + 'test.mp4' res = path + str(i) + 'fixtest.mp4' bb = check_output(shlex.split('ffprobe -i ' + f + ' -show_streams -select_streams a -loglevel error')) if len(bb) == 0: subprocess.call('ffmpeg -i ' + f + ' -y -i audio.mp3 -c:v copy -c:a aac

How to split string at comma but keep white spaces?

自闭症网瘾萝莉.ら 提交于 2019-12-02 09:41:05
How to split string at comma so that it keeps all spaces. Example: Input: [" hello , world "] Need to separate this in array so that it looks like this: Array[0] = " hello " Array[1] = " world " and after connecting them: Output: " hello world " Tried using split like this: input.split("\\s*,\\s*")) but then I get it separated without white space... Array[0] = "hello" Array[1] = "world" Any ideas how to do this? String s = " hello , world "; String s1[] = s.split(","); System.out.println(s1[0]+s1[1]); output: hello world 来源: https://stackoverflow.com/questions/50326742/how-to-split-string-at

concatenation of two unicode srings?

别来无恙 提交于 2019-12-02 08:35:53
#!/usr/bin/python # -*- coding: utf-8 -*- import re separators = [u"।", u",", u"."] dat=open(r"C:\Users\User\Desktop\text4.txt",'r').read() text=dat.decode("utf-8") wros=text.split() out="" import string space=" " counter=0; for word in wros: out=u" ".join(word) writ=open("C:\\Users\\User\\Desktop\\text5.txt",'w') writ.write(out.encode('utf-8')) writ.close() text4.txt contains भारत का इतिहास काफी समृद्ध एवं विस्तृत है। text5.txt outputs as ह ै । desired output is भारत का इतिहास काफी समृद्ध एवं विस्तृत है। please tell me what i am doing is wrong ? HElp required ! thanks in advance I don't know

Excel 2010 VBA. Concatenate 2 columns from a Sheet and paste them in another

天涯浪子 提交于 2019-12-02 08:03:57
Using Excel 2010, I'm trying to create a script that concatenates two text columns (A and B) from Sheet1 and pastes the result in column A of Sheet2. The workbook uses an external datasource for loading both columns, so the number of rows is not fixed. I've tried the following code, but not working. variable lRow is not taking any value. Sub Concat() Sheets("Sheet1").Select Dim lRow As Long lRow = Range("A" & Rows.count).End(xlUp).Row For i = 2 To lRow ActiveWorkbook.Sheets("Sheet2").Cells(i, 1) = Cells(i, 1) & Cells(i, 2) Next i End Sub What am I doing wrong. Thanks for helping! As to what

Concatenate strings by group with dplyr for multiple columns [duplicate]

无人久伴 提交于 2019-12-02 07:48:27
This question already has an answer here: Collapse all columns by an ID column [duplicate] 5 answers Hi I need to concatenate strings by groups for multiple columns. I realise that versions of this question has been asked several times (see Aggregating by unique identifier and concatenating related values into a string ), but they usually involve concatenating values of a single column. My dataset is something like: Sample group Gene1 Gene2 Gene3 A 1 a NA NA A 2 b NA NA B 1 NA c NA C 1 a NA d C 2 b NA e C 3 c NA NA I want to get it into a format where each samples takes only 1 row (the group

go one step back and one step forward in a loop with python

一世执手 提交于 2019-12-02 07:07:10
I need to loop in a list containing french words and find an asterisk because I want to concatenate the word before the asterisk and the word after the asterisk each time an asterisk appear and continue to the next. For example, in the sequence: ['les','engage', '*', 'ment', 'de','la'] I want to concatenate 'engage' and 'ment' and the output (engagement) should be checked by a dictionary. If in the dictionary, append to a list. With my code I only get the asterisk: import nltk from nltk.tokenize import word_tokenize import re with open ('text-test.txt') as tx: text =word_tokenize(tx.read()

Concatenate string collection into one string with separator and enclosing characters

自古美人都是妖i 提交于 2019-12-02 06:17:51
I have a collection of source strings that I wish to concatenate into one destination string. The source collection looks as follows: { "a", "b", "c" } I want the output string to be: abc But sometimes, I want a separator as well. So for the same input, now the output is to be: a-b-c And finally, the input sometimes needs to be enclosed in other characters, in this case [] , causing the output to be: [a]-[b]-[c] An empty source collection should yield an empty string. How would I go about this? You can do this using the static String.Join() method . Its basic usage is as such: string[]