Questions tagged [preset]

Preset may refer to something set in advance, or set as a default.

79 questions
463
votes
10 answers

How to set a value to a file input in HTML?

How can I set the value of this?
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
19
votes
2 answers

How to add predefined colors to ?

According to MDN, the list attribute can be used for elements of type color to provide a list of predefined colors. That page also indicates that list is supported at least in Chrome. Though when I specified some colors they were not shown…
Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132
11
votes
4 answers

Laravel 5.4 can't run "php artisan preset react" comand

Laravel 5.4 can't run php artisan preset react comand Getting "Command "preset" is not defined." responde.
Vardan
  • 143
  • 1
  • 1
  • 6
9
votes
6 answers

ffmpeg h264 problem: "File for preset ... not found" on XP

i have xp and since i'm not familiar with compiling i downloaded win32-static version of ffmpeg, svn-r26251. i want to resize an mp4 (1280x720 originally) video to get a smaller file size with approximately same quality. My command is: ffmpeg -i…
mehmedean
  • 101
  • 1
  • 1
  • 2
8
votes
4 answers

How do I preselect a vue-multiselect option when options is an array of objects?

I want to pre-select a particular value in a select drop-down generated by vue-multiselect. I can get this to work fine if I have a simple array of strings like the following: ['Test 1', 'Test 2', 'Test 3'] However, when I use an array of objects,…
HartleySan
  • 7,404
  • 14
  • 66
  • 119
7
votes
1 answer

Can't find preset files

this is a ffmpeg issue. I've got this error saying it could not find the hq preset file, then I read in the documentation that it looks for the preset files at 'PREFIX/share/ffmpeg' and also at '$HOME/.ffmpeg'. The thing is I'm calling ffmpeg from…
Bilthon
  • 2,461
  • 8
  • 36
  • 44
6
votes
3 answers

CRC preset and residue

I am working with a device that requires me to generate a 16 bit CRC. The datasheet for the device says it needs the following CRC Definition: CRC Type Length Polynomial Direction Preset Residue CRC-CCITT 16 bits x16 + x12…
Mike
6
votes
1 answer

canSetSessionPreset:AVCaptureSessionPreset1920x1080 returns 'yes' on iPhone 4

I want to check if the iPhone the user has supports full HD video capturing. I found out, that I should ask the AV session, if avSession = [[AVCaptureSession alloc] init]; [avSession beginConfiguration]; if ([avSession…
mattem86
  • 63
  • 1
  • 5
5
votes
2 answers

Syntax Error: Support for the experimental syntax 'jsx' isn't currently enabled in react js

i am trying run my react application using npm start commamnd and installed both @babel/preset-react and @babel/plugin-syntax-jsx. but i am running this react application getting following error. Support for the experimental syntax 'jsx' isn't…
5
votes
0 answers

How to set AVAudioUnitEQ equalizer presets gain values for 10 frequency bands in iOS Swift

I could add an audio setup to change equalizer by changing slider values by let FREQUENCY: [Float] = [31, 62, 125, 250, 500, 1000, 2000, 4000, 8000, 16000] //let FREQUENCY: [Float] = [60, 230, 910, 3600, 14000] self.audioEngine =…
Dinesh Kumar
  • 165
  • 1
  • 14
5
votes
1 answer

How can I use Lightroom Preset as filter for photos or video in iOS application?

How to apply a filter to an image via GPUImage OR Core Graphics or via any other framework from Lightroom Presets. How to use Lightroom Presets' element individually on an image (Contrast, Saturation, Tint, Sharpness,etc..). Individual Lightroom…
4
votes
2 answers

Is there a way to extract rendered preset information from CMake?

I have a CMakePresets.json file which makes use of inheritance and macro expansion. Here is an excerpt, in reality I use multiple versions of "Foo": { "configurePresets": [ { "name": "default", "hidden": true, …
andreee
  • 4,459
  • 22
  • 42
4
votes
2 answers

Symfony getData event subscriber is null

I know this question has been asked already a couple of times, but there hasn't been an answer that actually helped me solving my problem. I've got three EventSubscribers for three Dropdowns who are dependent on each other. So in my FormType I say: …
sonja
  • 924
  • 1
  • 21
  • 52
4
votes
2 answers

Customize iOS Simulator preset locations to fake as current location

In the iOS simulator, one can select from some Apple pre-defined locations, or enter a custom latitude/longitude for your own location. I want to customize that list of available locations. I see from this answer that one can provide a gpx file.…
idStar
  • 10,674
  • 9
  • 54
  • 57
3
votes
1 answer

How to use the systemd presets in an RPM package

I am reading the Fedora packaging guidelines on using systemd presets but am missing a key point: The macro %systemd_post runs systemctl preset meaning that the information about whether to enable or to disable the service must already be present in…
user3071170
  • 435
  • 7
  • 14
1
2 3 4 5 6