Questions tagged [defaults]

111 questions
0
votes
0 answers

R storing variable value in alist

I am trying to use a function to modify another function default settings through formals but my problem is that when I check my function defaults afterwards then nothing has changed. My code (minus unrelated stuff) is: ScouringSettings <-…
0
votes
1 answer

counteracting existing styles

I have a div with a padding, created and styled by Javascript. This div is created on a page with the following CSS rule: div { width: 100%; } This messes up, as it changes the width of my created div to what it naturally would be PLUS its…
Mala
  • 14,178
  • 25
  • 88
  • 119
0
votes
1 answer

How do I reset IIS Express default mime types / staticContent?

I had an issue where .json files weren't being sent to clients when doing jQuery $.getJSON calls. It was returning a 404.3 IIS error message that told me to go to my IIS install directory and enter a command: appcmd set config /section:staticContent…
nickvans
  • 898
  • 13
  • 24
0
votes
1 answer

Need to Create Class with Default Values for Attributes

I need to create a class that that stores tax data as default values, but that can be populated with actual data from tax returns. So for instance, let's say I have three categories: income, statutory adjustments, and tax computation, each which…
Alex Durante
  • 71
  • 2
  • 7
0
votes
1 answer

How to make a web browser's type as a web browser

I currently have made my own web browser with the android SDK in eclipse, BUT when I use my app, in settings it is not letting me set this browser as a default browser or if I click a link on the google app it will give me the message "open in" and…
ilikeyoyo
  • 168
  • 4
  • 20
0
votes
1 answer

R - how to "save" the loaded packages

Recently moved over to R (from MATLAB) - enjoying it… …However, every time I close R down, I lose all the packages which I loaded in my previous session, and I need to load them up again (I use a Mac OS). I know there is a way to save the current…
0
votes
1 answer

LiveCycle Highlighting when Changed from Default

I have a large form that has already been made, there are many different objects in the form including drop downs and check boxes. The majority of the objects are check boxes. I need the boxes to turn red if they are changed from the default. Some…
0
votes
1 answer

checkboxes and default values in conflict

I have noticed a problem when using checkboxes. I load my form with default values like this: //Defaults for this template $default['video'] = ''; $default['height'] = ''; $default['width'] = ''; $default['codec'] = ''; $default['time'] =…
Matt Welander
  • 8,234
  • 24
  • 88
  • 138
0
votes
1 answer

Proper way to set default settings for each instance of jQuery plugin

I have been researching this for the past hour and I cannot seem to figure out what is wrong. I would like to make a simple plugin that allows for multiple instances each with their own settings I am not super versed in javascript so I am not using…
godismyjudge95
  • 922
  • 1
  • 9
  • 15
0
votes
1 answer

Set self-referencing defaults in JSON object (jQuery Plugin)

So I am trying to write a jQuery plugin and I have three values that I would like to set the defaults for one is a simple numeric value the others can be set if the user wants, but if they do not set them they need to have a default value of…
godismyjudge95
  • 922
  • 1
  • 9
  • 15
0
votes
1 answer

Easy way to save values through many appstarts?

is there a way to save values through various starts of an app? I need to save some statistics (records of a game). In objective-c I used UserDefaults, what's it in Java? If possible I'd like to take a simple way (one line of code).
Philip
  • 1,068
  • 3
  • 12
  • 21
0
votes
2 answers

Directly add to array in defaults

Is it okay to call this? [[[NSUserDefaults standardUserDefaults] objectForKey:@"searchEnginesOrder"] addObject:@"eBay"]; I have a UITableView whose cells I want to load directly from the defaults, and I also want to modify those defaults. I'm…
user3266395
  • 85
  • 1
  • 8
0
votes
1 answer

Rails: Accessing route segment defaults

I would like to access the defaults I define for a specific route. But Rails refuses to put it into the params hash. Example: routes.rb: get "packages(/:display)", to: "packages#index", defaults: { display: 'grid' } URL that I…
0
votes
1 answer

Rails RESTful Routes: override params[:id] or params[:model_id] defaults

I'm trying to understand how to change this rule directly on the map.resources: supposing I have a route: map.resource :user, :as => ':user', :shallow => true do |user| user.resources :docs, :shallow => true do |file| file.resources…
zanona
  • 12,345
  • 25
  • 86
  • 141
0
votes
2 answers

Emacs default style (tab-width, offset) being overridden

I am running Emacs 24.2-18 on Fedora 19 64-bit. I have set in my .emacs file for the C default style to be "linux", the default tab width to be 4, the indentation to use tabs, the default C offset to be the tab width, and the Perl offset to be the…
Sammidysam
  • 43
  • 1
  • 7