concat

Using grunt concat, how would I automate the concatenation of the same file to many other files?

断了今生、忘了曾经 提交于 2019-11-27 12:28:51
问题 To concatenate two files, it looks something like this: concat: { src: ['common.js','js/app.js'], dest: 'assets/js/app.js' } And if I want to concat an entire folder of files into one, it looks something like this: concat: { src: ['dev/*.js','], dest: 'prod/js/app.js' } But let's say I have a file that I want to concat onto 10 or 20 other files, and I want them to concat separately? In other words, here is what I'm looking for: A.js + B.js = AB.js A.js + C.js = AC.js A.js + D.js = AD.js A.js

ffmpeg concat: “Unsafe file name”

我的梦境 提交于 2019-11-27 11:39:09
问题 Trying to convert a bunch of mts-files into a big mp4-file: stephan@rechenmonster:/mnt/backupsystem/archive2/Videos/20151222/PRIVATE/AVCHD/BDMV$ ~/bin/ffmpeg-git-20160817-64bit-static/ffmpeg -v info -f concat -i <(find STREAM -name '*' -printf "file '$PWD/%p'\n") -deinterlace -r 25 -s hd720 -c:v libx264 -crf 23 -acodec copy -strict -2 ~/tmp/Videos/20151222.mp4 ffmpeg version N-81364-gf85842b-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5

SQL UPDATE all values in a field with appended string CONCAT not working

余生颓废 提交于 2019-11-27 10:28:35
Here is what I want to do: current table: +----+-------------+ | id | data | +----+-------------+ | 1 | max | | 2 | linda | | 3 | sam | | 4 | henry | +----+-------------+ Mystery Query ( something like "UPDATE table SET data = CONCAT(data, 'a')" ) resulting table: +----+-------------+ | id | data | +----+-------------+ | 1 | maxa | | 2 | lindaa | | 3 | sama | | 4 | henrya | +----+-------------+ thats it! I just need to do it in a single query, but can't seem to find a way. I am using mySQL on bluehost (I think its version 4.1) Thanks everyone. That's pretty much all you need: mysql> select *

How do I concatenate strings from a subquery into a single row in mysql?

本秂侑毒 提交于 2019-11-27 10:17:33
问题 I have three tables: table "package" ----------------------------------------------------- package_id int(10) primary key, auto-increment package_name varchar(255) price decimal(10,2) table "zones" ------------------------------------------------------ zone_id varchar(32) primary key (ex of data: A1, Z2, E3, etc) table "package_zones" ------------------------------------------------------ package_id int(10) zone_id varchar(32) What I'm trying to do is return all the information in package

MySQL concat() to create column names to be used in a query?

房东的猫 提交于 2019-11-27 08:07:24
I would like to concatenate column names in a way that the first part of the column name is a string and the second part is a number which is the result of another query. For example: SELECT CONCAT('column', mytable.mycolumn) FROM table ... Can this be done in some way. This way it doesn't give me errors but I don't get the expected result and it seems the concatenation doesn't work. Chris Vest I previously said that this couldn't be done, but I was wrong. I ended up needing something like this myself so I looked around, and discovered that server-side prepared statements let you build and

MySQL CONCAT returns NULL if any field contain NULL

匆匆过客 提交于 2019-11-27 06:51:00
I have following data in my table "devices" affiliate_name affiliate_location model ip os_type os_version cs1 inter Dell 10.125.103.25 Linux Fedora cs2 inter Dell 10.125.103.26 Linux Fedora cs3 inter Dell 10.125.103.27 NULL NULL cs4 inter Dell 10.125.103.28 NULL NULL I executed below query SELECT CONCAT(`affiliate_name`,'-',`model`,'-',`ip`,'-',`os_type`,'-',`os_version`) AS device_name FROM devices It returns result given below cs1-Dell-10.125.103.25-Linux-Fedora cs2-Dell-10.125.103.26-Linux-Fedora (NULL) (NULL) How to come out of this so that it should ignore NULL AND result should be cs1

Concatenate strings in Less

纵然是瞬间 提交于 2019-11-27 06:46:31
I think this is not possible, but I thought I ask in case there is a way. The idea is that I have a variable for path to web resource folder: @root: "../img/"; @file: "test.css"; @url: @root@file; .px { background-image: url(@url); } I get this as a result: .px { background-image: url("../img/" "test.css"); } But, I want the strings to combine into one string like this: .px { background-image: url("../img/test.css"); } Is it possible to concatenate strings together in Less? Paulpro Use Variable Interpolation : @url: "@{root}@{file}"; Full code: @root: "../img/"; @file: "test.css"; @url: "@

MYSQL CONCAT MAX LENGTH

两盒软妹~` 提交于 2019-11-27 05:57:30
问题 Following this post: POST ABOUT CONCAT My problem is that i have many rows CONCAT into one row. For example if i have 10 rows with string around 50 chars, my query will show me only 6-7 of that rows or something like that. I searech in stack and google and i found that i can change CONCAT max length by command: SET group_concat_max_len := @@max_allowed_packet . What i am doing wrong? EDIT: When i SHOW VARIABLES LIKE 'group_concat_max_len' it's shows me 1024. Mysql version 5.0.96-log. Tables

Why is a level of indirection needed for this concatenation macro?

 ̄綄美尐妖づ 提交于 2019-11-27 04:33:10
问题 I found an interesting little blog post that explains how to generate (semi) unique names in a macro by using the line number: // Do magic! Creates a unique name using the line number #define LINE_NAME( prefix ) JOIN( prefix, __LINE__ ) #define JOIN( symbol1, symbol2 ) _DO_JOIN( symbol1, symbol2 ) #define _DO_JOIN( symbol1, symbol2 ) symbol1##symbol2 There are two things here that really confuse me: Why does the LINE_NAME macro even work if JOIN is declared after it in the file? I thought the

SQL UPDATE all values in a field with appended string CONCAT not working

僤鯓⒐⒋嵵緔 提交于 2019-11-27 04:02:19
问题 Here is what I want to do: current table: +----+-------------+ | id | data | +----+-------------+ | 1 | max | | 2 | linda | | 3 | sam | | 4 | henry | +----+-------------+ Mystery Query ( something like "UPDATE table SET data = CONCAT(data, 'a')" ) resulting table: +----+-------------+ | id | data | +----+-------------+ | 1 | maxa | | 2 | lindaa | | 3 | sama | | 4 | henrya | +----+-------------+ thats it! I just need to do it in a single query, but can't seem to find a way. I am using mySQL on