-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
# split into chunks: | |
$ split --bytes=50M logdata part_ | |
$ ls -lh | |
total 204M | |
-rw------- 1 sathiya sathiya 102M Jul 25 18:47 logdata | |
-rw------- 1 sathiya sathiya 50M Jul 25 19:23 part_aa | |
-rw------- 1 sathiya sathiya 50M Jul 25 19:23 part_ab | |
-rw------- 1 sathiya sathiya 1.6M Jul 25 19:23 part_ac |
Will recursively find all files inside current directory and call for these files dos2unix command. Would break if you had spaces in file name.
find . -type f -exec dos2unix {} \;
Wouldn't break if you had spaces in file names.
find . -type f -print0 | xargs -0 dos2unix
I have following object:
var cities={10:'Tashkent', 14:'Karakalpakiya', 16:'Andijan'};
I want sort it by city names, so after sort it should be:
var cities={16:'Andijan', 14:'Karakalpakiya', 10:'Tashkent'};
But I can't sort object properties, instead can convert object into array, then sort items.
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Upload File using jQuery.ajax() with progress support</title> | |
</head> | |
<body> | |
<input type="file" name="file" id="sel-file"/> |
var walkDom=function(html_elem, func) | |
{ | |
if(typeof func!='function') return; | |
var loop=function(html_elem) | |
{ | |
do | |
{ | |
func(html_elem); // call callback for every element | |
if(html_elem.hasChildNodes()) | |
loop(html_elem.firstChild); |
Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit)
.