Configuration How to efficiently store and serve lots of small images on the web site?

On my web site I want to serve user a page with a lot of small pictures on it, kind of like thumbnails in Windows. All pictures are files ranging in size from 1KB to over 300KB, but usually no bigger than 5KB. Currently all those images are located in a folder on the web server (linux+apache), but I don't think this is the best solution, especially if I'll have to expand to more than one web server and when I'll have thousands of them. So, should I maybe place these files in the database (ca

Configuration Jetty - set system property

I run webapp on Jetty. The configuration for the app come from file that lives on the same server where Jetty is running. Inside the app I rely on the system property to obtain path to the file so I can parse it. E.g. final String loc = System.getProperty(FACTORY); Now I can start jetty with D switch to provide $FACTORY on the command line but I rather put it in jetty.xml if I can. I know there is <SystemProperty /> tag but that seems to just provide system value that already exists for

Lua domain specific configuration help

I have 5000 data item definition configuration which we are expecting to be designed like, -- Name of the device VARIABLE Name { type=Float, length=20, <<few more definition here>> } -- The device running elapsed time since its last boot VARIABLE BootTime { type=Integer, <<few more definition here>> } I will be reading the value of "Name", "BootTime" from a device using diffent communication protocol where we use the above property defined. I w

Packaging The configuration of an Encryption Scheme -- Hopefully using just OpenSSL

I have a encryption scheme implemented, the constituent components: The symetric cypher and its chaining mode, and the HMAC algorithm are hard-coded into the binary. Additionally, the parameters of the algorithms (HMAC key, symetric-key symetric IVEC) are specified in binary files, one for each parameter. I would like to specify the choice of algorithms, and modes, and their parameters in a single file. Do I need my own format, or is this possible using existing OpenSSL infrastructure ? If ther

Configuration configure devise for "real email sending"?

I need to know how configure the gem devise,Im using ruby 1.9.2, rails 3.1.3, devise 1.5.3, Im making an app about surveys, and im creating my "authentication module", in my log file I can see that the user receive the email for activate the account, when I copy the link (from the log file) to activate the account it works, but in this moment I can't test it "really", because don't receive a "real email" about activate the account in my gmail (I fill the form with my own information) I just can

setting hadoop job configuration programmatically

I am getting OOM exception (Java heap space) for reduce child. I read in the documentation that increasing the value of to -Xmx512M or more would help. Since I am not the admin, I cannot change that value in mapred-site.xml. I would like to set that value only for my job through the java program. I tried setting it using Configuration class as follows, but that didn't work. Configuration config = new Configuration(); config.set("", "-

Configuration How to stream rtsp output by crtmp server by inputing rtmp stream from fmle using webcam?

Can anybody suggest me on crtmpserver.lua configuration? I setup crtmp server on AWS EC2 Ubuntu 12.04. after building deb package successfully. I have successfully stream my Webcam stream using FMLE on my windows 7 machine, connected to my crtmp server,then played on website using JW Player. Now i want to get RTSP stream from the same crtmp server using same RTMP input to play on mobile.I read crtmp server can stream both in RTMP and RTSP. Please guide me on confiuration of crtmpserver.lua to

Configuration (CRON) error (grandchild #874 failed with exit status 2)

I am trying to run a script every other monday using this cron job. (/ect/crontab) 45 8 * * mon root expr `date +%U` % 2 >/dev/null || /home/joe/Scripts/ This morning I checked my /var/log/syslog and found these entries. /USR/SBIN/CRON[874]: (root) CMD (expr `date +) /USR/SBIN/CRON[872]: (CRON) error (grandchild #874 failed with exit status 2) /USR/SBIN/CRON[872]: (CRON) info (No MTA installed, discarding output) I also tried typing this directly into the command line while logg

Configuration Coping with gitlab ssh key syncronization bug

I attempted to use a solution posted here: GitLab v5.0 git push problems to fix the ssh keys getting out of sync problem. However, when I run the rake command as both root & git users on the repository server I get the following message: root@gitlab /home/git# rake gitlab:shell:setup RAILS_ENV=production --TRACE No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/local/lib/ruby/gems/1.9.1/gems/rake- `raw_load_rakefile' /

Configuration Change Runtime options Eclipse RCP dynamically

I bring a problem that is perhaps simple but I can't find how to fix it. The application we are developing requires version 1.6 of the JRE, so we checked at the beginning that the version is correct. However, many users complained (clearly) as it needed more actual versions of java for other applications. The solution (or workaround) was edit the eclipse.ini to add the -vm property and the path to the java version 1.6, that way they don't need to change the configuration of the system. The

Configuration Disable changing workspace loop

Lets say I have two workspaces and the fist one is active. If I change workspace ctrl+alt+→ twice, I change to workspace 2 then 1 again. What I want is to disable that feature. When I am on workspace two, I want it to be blocked to it when moving to the right. I know it is possible to do it on ubuntu but I did not manage to find the option on xubuntu.

Configuration Exchange 2010, Cannot ADD new user to Delivery Option, Set-Mailbox Failed, Error: Couldn't find object, Send on Behalf, isn't the expected type

Aim: Try to add new user to "Delivery Options -> Send on Behalf -> Grant this permission to:". This is found in: Mailbox -> Properties -> Mail Flow Settings -> Delivery Options Issue: Failed to add new user to "Delivery Options" Got error message Error: Couldn't find object "DOMAINxxxx/OUxxxx/USERxxxx". Please make sure that it was spelled correctly or specify a different object. Reason: The recipient DOMAINxxxx/OUxxxx/USERxxxx isn't the expected type. But USERxxxx is NO

Configuration Why is spark filling the tmp (spark.local.dir) in the machine that submits jobs?

I have a spark 1.2.1 cluster set up in standalone mode with a master and a few slaves. I then let my data scientists enjoy the cluster's power. All is working fine. However, the dedicated server that my data scientists used to submit spark jobs have its spark.local.dir filled up gradually. Given that this machine is sitting outside of the cluster, not a master, nor a worker/slave, I wouldn't think that the local spark.local.dir is used in any way by spark. (And why would it? It only shows the

Configuration Rails 5 Beta: Put eager_load_paths config on initializer throw frozen array exception

I followed commented guidelines in config/application.rb which is # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. But when i added Rails.application.config.eager_load_paths << Rails.root.join('lib') in config/initializers/eager_load.rb. It throws <top (required)>': can't modify frozen Array (RuntimeError)

Configuration Problems with system:admin login after changing to HTPasswd Identity Provider in Openshift Origin

Wanting to switch to HTPasswd Identity provider i have updated the master-config.yaml to look like this identityProviders: - name: my_htpasswd_provider challenge: true login: true provider: apiVersion: v1 kind: HTPasswdPasswordIdentityProvider file: /path/to/users.htpasswd Im using the oc cluster: oc cluster up --host-data-dir=/opt/openshift_data --host-config-dir=/opt/openshift_conf --use-existing-config , but when i try to log in with the system:admin user this hap

Group Policy - apply Computer Configuration for certain users

I have created a Wireless Network Policy which allows one SSID domain-PCs can connect and another one is denied. Currently I am testing it. The way I need it is the policy should be effecting to domain-computers except for certain users when they log-on to any computer. So the policy wont update Wireless settings on domain-computers when any user from that group logs-on (and also the settings will revert back to original settings or allow all SSID networks if it was changed by the policy before

Configuration clearcase - Error while creating a view

I am getting the below error while i am trying to create view : CRMSV3062: Problems performing setcs. CCRC WAN Server: Error: Syntax error on line 2, near column 2, file "/var/tmp/ccrctemp/tmp21436". CCRC WAN Server: Error: Config spec parsing failed: "/var/tmp/ccrctemp/tmp21436". My config spec is : element * CHECKEDOUT element  * .../CCR_PPD_LINEITEM/LATEST element  *  .../ccrportal/LATEST -mkbranch CCR_PPD_LINEITEM element * /main/LATEST  -mkbranch ccrportal

Configuration Replacing a fixed part of PWD in a tcsh prompt

My prompt is currently displayed like here: [Aug-27 14:36] /x/y/z/w/u/v/dir1/dir2/dir3> What I would like to do is replace the constant partial-path of the current working directory /x/y/z/w/u/v with $WORK so eventually what will be displayed is [Aug-27 14:36] $WORK/dir1/dir2/dir3> /x/y/z/w/t/u is always the same path from which I usually do my work and for which I have a local variable $WORK set (very similar to the home ~ idea). A straight-forward solution will be mos

Configuration Sync chef's cookbooks on self-host gitlab

The other day i was looking if it is possible to sync my chef workstation/server for easy manage/visualization of all cookbook components. I already tried looking for one solution and I didn't found any good info about this topic. So my questions are: Is it posible to do? Is it a good solution? And if not recommend one better? If it's viable explain how can i do it?

NetCore project - Nuget configuration is invalid

I have an old porject i need to work on, and suddenly, got this message. error shown by VS I've tried to closing and then re-opening VS to see if it helps, it didn't. Then created a new project and try to manage nuget packages, but i get the same error. There was no Nuget.Config file, no nothing, just a NEW project and the VS error message persists... So, what would be a real solution for this scenario? Because I've seen some answers indicating that reopening VS solved the problem, others sa

HAProxy - Does it cache the configuration file

I'm not sure if this is the correct place to post this. Please let me know if it is not. Basically, exactly what the title of the question is. I have an haproxy configration file where I'm trying to set the timeout to 3600s. However, it seems that at random, the file will revert to a previous iteration, with much shorter timeout values. What I set is as follows: defaults log global mode http retries 3 timeout client 3600s timeout connect 3600s timeout server 3600s opti

Configuration Restlet - serving up static content

Using Restlet I needed to serve some simple static content in the same context as my web service. I've configured the component with a Directory, but in testing, I've found it will only serve 'index.html', everything else results in a 404. router.attach("/", new Directory(context, new Reference(baseRef, "./content")); So... http://service and http://service/index.html both work, but http://service/other.html gives me a 404 Can anyone shed some light on this? I want any file within the ./co

Configuration How to configure bugzilla to not advance to next bug when updating?

By default, when you apply changes to a Bugzilla entry, the web interface advances to the next bug in your list. I would like to disable this feature since it is almost never what I desire, planning to make further updates later. Further, I often update the wrong bug subsequently due to its changing the current bug without my noticing. How do I configure Bugzilla to not advance like this?

Configuration File Download Dialog Box in IE6 'Action Canceled message

I have created site which is having PDF download option. When I click on a link to download a file with IE6 installed, initially a browser window appears with the File Download Dialog box in front (asking to Open, Save, Cancel). Regardless of which option I choose, the browser window stays open and returns an 'Action Canceled - Internet Explorer was unable to link to the web page you requested. The page might be temporarily unavailable.' Though the browser window stays open, whatever option I c

Given URL is not permitted by the application configuration

I have used this in my html page... <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : 'xxxxxxxxxxxxxx', // App ID from the App Dashboard status : true, // check the login status upon init? cookie : true, // set sessions cookies to allow your server to access the session? xfbml : true // parse XFBML tags on this page? }); // Additional initialization code such as adding Event Listeners goes he

Configuration Is there a way to order JUnit testcases in TeamCity?

Let's say I have three JUnit test cases, namely TC1, TC2 and TC3. Is there a way to configure TeamCity or pom somehow, so that when I remote run, the order will be TC1 -> TC2 -> TC3 always? Right now, because of unordering in test cases, all these tests start with the same functionality (for example: creating a user), which takes a pretty big amount of time. I would like to do that functionality in the first test case only (TC1 in this case). I am open for any other approaches also. Thanks

Configuration con:settings Elements in Workspace and Project Files

I am using the free edition of SoapUI (version 4.6.1) with multiple workspaces. One of my frustrations is that SoapUI does not seem to support workspace-level custom properties. The *-soapui-workspace.xml files I have reviewed contain an empty con:settings element (i.e. <con:settings/>). Same in the *-soapui-project.xml files I have reviewed. My intuition & hope is that these elements allow workspace- or project-level additions to or overrides of settings I see in my general soapui

Configuration Prevent tmux from displaying "Activity in window n"

I'd like to prevent tmux from flashing an "Activity in window n" message when there's activity in a non active window. I'd like the only indication of background activity to be the window title color change I have configured. Relative configuration file lines I have currently: set status on setw -g monitor-activity on set -g visual-activity on set -g visual-bell on Does anyone know how I can accomplish this?

Configuration Using Compass watch In Non-Rails project Hangs

I'm using compass with a non-Rails project. I have a config file at: config/compass.rb My config file looks like this: http_path = "/" css_dir = "./example" sass_dir = "./example/sass" images_dir = "./example/images" javascripts_dir = "./example/js" output_style = :compressed relative_assets = true And I'm starting Compass using: compass watch -c config/compass.rb When I run this, compass just hangs. If I run compass using --trace and quit, I get the following stack-trace: ^CInterrupt

Configuration How do NServiceBus endpoint names work with pub/sub

I have been fighting the same very simple problem with NServiceBus all day today. The problem is that there is lots of documentation on how to change the configuration, but almost nothing that helps me to know what configuration I need. There are sample applications, and they work, but there is nothing explaining how they work, what limitations they have, or how to do something just a little bit different than the sample. The sample applications also present a "Hello world" type simplicity, and

Configuration How to disable strongloop's API explorer swagger console

I'd like to disable the strongloop api explorer (pref as noted in docs) - not clear if this is a bug or documentation issue. Setting or replacing component config or using component-config.production as noted in the docs fails and generates an critical error / crashing express. // Original { "loopback-component-explorer": { "mountPath": "/explorer" } } // changes made to disable { "loopback-component-explorer": false } Docs:

Configuration How to configure neo4j server to use bolt

I am currently running awebapp with an embedded neo4j. Now I want to change to a standalone neo4j server using bolt. Neo4j has been loaded onto a standalone and port 7474 work as expected. Using the following code works as expected: var authority = neo4j.v1.auth.basic("neo4j", "XXXXXXXX"); _driver = neo4j.v1.driver("bolt://localhost ", authority, {encrypted:false}); However var authority = neo4j.v1.auth.basic("neo4j", "XXXXXXXX"); _driver = neo4j.v1.driver("bolt://somesite.c

Configuration Jmeter - sample collection mode (in distributed testing) doesn't switch to statistical, ignoring command line params

The situation is pretty much described in the question's header :) Some details: Jmeter v 3.0 r1743807; 7 load generators in total, two windows servers, five redhat hosts. All machines in the same subnet. One windows server is used both as a jmeter-server, and a load controller at the same time. Testing REST-api systems, with loads of about 20-40k virtual users, performing a complex scenario. Everything seems to work pretty much OK, but I can't deal with the issue mentioned above - file with tes

Configuration NativeScript, Code Sharing and different environments

Note: this is not a dupe of this or this other question. Read on: this question is specific to the Code-Sharing template. I am doing some pretty basic experiments with NativeScript, Angular and the code sharing templates (see: @nativescript/schematics). Now I am doing some exploration / poc work on how different "build configuration" are supported by the framework. To be clear, I am searching for a simple -and hopefully official- way to have the application use a different version of a spec

Configuration ini file for cloudformation parameter file

We're gluing together cloud formation template .yaml files with boto3. My strong inclination is to use the .ini format for parameter and tag files because .ini format is easier to read than either YAML or json the python 'configparser' library supports a 'default' section which will reduce typing a lot. Two possible disadvantages to this approach are: native .ini doesn't support lists We might want to feed the parameter files to the aws cli There are a bunch of ways to extend config

Configuration How to configure mapcache to cache tile from a tms service

I have a mapserver with mapcache on a server. I know how to configure mapcache to cache tile from a wms service. But I can't find anywhere how to configure mapcache to cache tile from a TMS service (openstreetmap https://{s}{z}/{x}/{y}.png) On the mapcache page it is said "services WMS, WMTS, TMS, VirtualEarth/Bing and Google Maps requests: Supported Tile Services" I see the line below on

Configuration Doxygen project brief not including spaces

I am developing a project and using Doxygen for the documentation. In the config file, I have put PROJECT_BRIEF = dynamic and effective, but for some weird reason on the HTML, it is appearing as dynamicandeffictive without spaces in between. Is there some sort of configuration which stops this from happening?

Configuration Kong Gateway Manager under Docker: how to configure CORS for the console

I'm running the Kong image on Docker. I initialized the whole environment with these commands: docker network create kong-net docker run --network=kong-net -it -p 15432:5432 -v kong-datastore:/var/lib/postgresql/data -e POSTGRES_DB=api-gw -e POSTGRES_USER=kong -e POSTGRES_PASSWORD=kongPwd --name kong-db kong-db:1.0 docker run --rm --network=kong-net -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=kong-d

Configuration Apache2 allow external access

I have a webapp that is currently only accessible from my local network. I cannot connect to it from any other external networks. someproject.conf ServerName someproject.example <VirtualHost *:80> WSGIScriptAlias / /home/usr/someproject/someproject.wsgi </Directory /home/usr/someproject/someproject/> WSGIProcessGroup someproject WSGIApplicationGroup %{GLOBAL} AllowOverride none Require all granted </Directory> ErrorLog ${APACHE_LO

is it possible to start activemq with a configuration file that's not in one of the default locations?

All right all you activemq guru's out there... Currently activemq require a configuration file before it runs. It appears from its debug output message: $ ./activemq start -h INFO: Using default configuration (you can configure options in one of these file: /etc/default/activemq /home/user_name/.activemqrc) That you can only put it in one of those two locations. Anybody know if this is the case? Is there some command line parameter to specify its location? Thanks! -roger-

Configuration MODX: where are new_folder_permissions and new_file_permissions?

Those are asked during the installation, but are not anywhere in config files\tables to change afterwards EDIT: The changelog states the following: [#MODX-760], [#MODX-1080], [#MODX-1528] Added setup option to set new_file_permissions and new_folder_permissions in welcome view [#MODX-760], [#MODX-1528] Removed new_file_permissions and new_folder_permissions system settings from setup Seems kinda weird to me to do that... I am still in need to change them, though.

definining a sequence configuration in symfony 2.1 using treebuilder

I'm looking for some help with a custom configuration parameter I'm trying to implement in Symfony 2.1 I'm new but just working with Symfony so far has been great. I'm now trying to make my bundle more user friendly and configurable using config.yml. The parameter I'm trying to define is a sequence of default amounts for example in my config I have mymain: default_values: [1, 2, 3, 4] Now with something like that how would you properly use the treebuilder to add the nodes and properly p

nginx + php-fpm configuration. Server stalls

Running a server with 140 000 page views a day (analytics). php-fpm processes go for about 10-12M each. Servers got 10G ram, mysql goes for 1.2G-1.6G Configuration looks like this: nginx user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local

Configuration Why my kernel config options did not get enabled at the first make?

I was solving Task 02 of Eudyptula Challenge. I had to download latest kernel source, create a working config and change a kernel config flag, boot to newly configured kernel. I downloaded source and followed below procedure: 1) make localmodconfig -> generated .config from my pc config 2) edited .config and enable required flag -> CONFIG_LOCALVERSION_AUTO=y. 3) make 4) make module 5) make module_install 6) make install 7) update-grub When I submitted solution I got response that "Linus

Configuration overwrite tt_content column only for custom content element

I have created a custom content element without extending the tt_content columns because the existing fields in the database are sufficient for what I need. I am using "header", "header_link" and "image" but I need the "image" column to have a different TCA configuration when it's used in my custom content element. I can change the configuration globally: $GLOBALS['TCA']['tt_content']['columns']['image']['config']['maxitems'] = 1; but that's not what I want. Something like $GLOBALS['TCA']

Configuration Sublime 3 JSHint Gutter always show error at the bottom

I'm used to Atom's JSHint always showing the first error on the bottom (so if there's errors on lines 1, 3, 4, it will show the error on line 1 at bottom left hand corner and then show the one on line 3 once line 1's error is resolved and so on and so forth), can I customize Sublime 3 JSHint Gutter to do the same for me automatically? Because currently I have to click on each red squiggly in the editor in order for the error to show up on the bottom left hand corner instead of it appearing autom

Configuration Setup the feature gate RuntimeClass in kube-apiserver

I want to setup the feature gates argument in the apiserver pod. How I can do it? I have triedit it by using the solution from here: apiVersion: kind: MasterConfiguration apiServerExtraArgs: feature-gates: "RuntimeClass=true" But it is not working: kubectl apply -f update_api_server.yaml error: unable to recognize "update_api_server.yaml": no matches for kind "MasterConfiguration" in version "" I'm using k8s v1.13.0. Thanks

  1    2   3   4   5   6  ... 下一页 最后一页 共 11 页