Sponsored Content
Full Discussion: Help finding a video faster
Top Forums UNIX for Advanced & Expert Users Help finding a video faster Post 303034609 by cokedude on Tuesday 30th of April 2019 05:30:50 PM
Old 04-30-2019
Help finding a video faster

Is there a way to make this search faster? It takes about 30 minutes. Its a video so I figured I could say larger than 100 MB. It contains Mark so I added name. What else could I do to make the search faster?

Code:
find / -type f -name "*Mark*" -size +100M 2>/dev/null

 

3 More Discussions You Might Find Interesting

1. Solaris

needed help in finding a suitable video player!

Hi all, I had been using kde 3.5.8 for a while on solaris but the problem was that i was not able to use Gnome for some strange reasons... It constantly used to misbehave. (Whether it was cde-login or gdm) So i had to remove kde completely and now am left with no video or audio players . So i... (11 Replies)
Discussion started by: wrapster
11 Replies

2. Linux

USB video capture? composite, s-video, etc

does anybody have any experience with any of these composite video to usb devices on linux? usb video capture - Google Product Search would like to get one but a linux newbie and having trouble figuring out if any are ported... i've found lots of things that link to freedesktop.org DisplayLink... (1 Reply)
Discussion started by: danpaluska
1 Replies

3. UNIX for Advanced & Expert Users

Video Cards :: Video Memory Intercept and Redirect

I need a broad spectrum understanding on this subject, and any help would be greatly appreciated. First of all, as I understand it... The way the video hardware works is the CPU sends information about input and possible changes to the display, the video card receives these changes, makes the... (2 Replies)
Discussion started by: ciNG
2 Replies
Data::FormValidator::Constraints::Upload(3pm)		User Contributed Perl Documentation	     Data::FormValidator::Constraints::Upload(3pm)

NAME
Data::FormValidator::Constraints::Upload - Validate File Uploads SYNOPSIS
# Be sure to use a CGI.pm or CGI::Simple object as the form # input when using this constraint my $q = CGI->new; use Data::FormValidator::Constraints::Upload qw( file_format file_max_bytes image_max_dimensions image_min_dimensions ); my $dfv = Data::FormValidator->check($q,$my_profile); # In a Data::FormValidator Profile: constraint_methods => { image_name => [ file_format(), file_max_bytes(10), image_max_dimensions(200,200), image_min_dimensions(100,100), ], } DESCRIPTION
Note: This is a new module is a new addition to Data::FormValidator and is should be considered "Beta". These module is meant to be used in conjunction with the Data::FormValidator module to automate the task of validating uploaded files. The following validation routines are supplied. To use any of them, the input data passed to Data::FormValidator must be a CGI.pm object. file_format This function checks the format of the file, based on the MIME type if it's available, and a case-insensitive version of the file extension otherwise. By default, it tries to validate JPEG, GIF and PNG images. The params are: optional hash reference of parameters. A key named I<mime_types> points to array references of valid values. file_format( mime_types => [qw!image/jpeg image/gif image/png!] ); Calling this function sets some meta data which can be retrieved through the "meta()" method of the Data::FormValidator::Results object. The meta data added is "extension" and "mime_type". The MIME type of the file will first be tried to figured out by using the <File::MMagic> module to examine the file. If that doesn't turn up a result, we'll use a MIME type from the browser if one has been provided. Otherwise, we give up. The extension we return is based on the MIME type we found, rather than trusting the one that was uploaded. NOTE: if we have to fall back to using the MIME type provided by the browser, we access it from the original input data and not the filtered data. This should only cause issue when you have used a filter to alter the type of file that was uploaded (e.g. image conversion). file_max_bytes This function checks the maximum size of an uploaded file. By default, it checks to make sure files are smaller than 1 Meg. The params are: reference to max file size in bytes file_max_bytes(1024), # 1 k Calling this function sets some meta data which can be retrieved through the "meta()" method of the Data::FormValidator::Results object. The meta data added is "bytes". image_max_dimensions This function checks to make sure an uploaded image is no longer than some maximum dimensions. The params are: reference to max pixel width reference to max pixel height image_max_dimensions(200,200), Calling this function sets some meta data which can be retrieved through the "meta()" method of the Data::FormValidator::Results object. The meta data added is "width" and "height". image_min_dimensions This function checks to make sure an uploaded image is longer than some minimum dimensions. The params are: reference to min pixel width reference to min pixel height image_min_dimensions(100,100), Calling this function sets some meta data which can be retrieved through the "meta()" method of the Data::FormValidator::Results object. The meta data added is "width" and "height". BACKWARDS COMPATIBILITY An older more awkward interface to the constraints in this module is still supported. To use it, you have to load the package with 'validator_packages', and call each constraint in a hashref style, passing the the parameters by reference. It looks like this: validator_packages => [qw(Data::FormValidator::Constraints::Upload)], constraints => { image_name => [ { constraint_method => 'image_max_dimensions', params => [200,200], } ], } I told you it was more awkward. That was before I grokked the magic of closures, which is what drives the current interface. SEE ALSO
FileMetadata, Data::FormValidator, CGI, perl AUTHOR
Mark Stosberg, <mark@summersault.com> COPYRIGHT AND LICENSE
Copyright 2003-2005 by Mark Stosberg This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-11-25 Data::FormValidator::Constraints::Upload(3pm)
All times are GMT -4. The time now is 03:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy