administration

Why ulimit can't limit resident memory successfully and how?

☆樱花仙子☆ 提交于 2019-12-03 11:30:56
I start a new bash shell, and execute: ulimit -m 102400 ulimit -a " core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) 102400 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited " and then ,I execute compiling

ASP.NET MVC - Area or Separate Web Application for Administration?

孤者浪人 提交于 2019-12-03 09:14:51
问题 Up until now I've been using an MVC Area for the administration part of my mvc applications, but recently I've been rethinking this due to the fact that you can't have more than one configuration for forms authentication per application . This has become a problem becuase in a recent project I wanted to set the auth cookies not to expire for users, but I don't wan't this for administration users. I also don't want the user login page to be used to access the admin tools. I'm considering

How to skip role executing in Ansible

ぃ、小莉子 提交于 2019-12-03 08:46:37
问题 I try to write the playbook.yml for my vagrant machine and I'm faced with the following problem. Ansible prompt me to set these variables and I set these variables to null/false/no/[just enter], but the roles is executed no matter! How can I prevent this behavior? I just want no actions if no vars are set.. --- - name: Deploy Webserver hosts: webservers vars_prompt: run_common: "Run common tasks?" run_wordpress: "Run Wordpress tasks?" run_yii: "Run Yii tasks?" run_mariadb: "Run MariaDB tasks?

How can I recursively copy a directory into another and replace only the files that have not changed?

此生再无相见时 提交于 2019-12-03 07:48:29
问题 I am looking to do a specific copy in Fedora. I have two folders: 'webroot': holding ALL web files/images etc 'export': folder containing thousands of PHP, CSS, JS documents that are exported from my SVN repo. The export directory contains many of the same files/folders that the root does, however the root contains additional ones not found in export. I'd like to merge all of the contents of export with my webroot with the following options: Overwriting the file in webroot if export's version

WKHTMLTOPDF Installation error on Ubuntu

筅森魡賤 提交于 2019-12-03 05:04:46
问题 We require features like header, footer, table of contents and cover page of pdf, which we want to generate from html/css. We tried WKHTML on windows and it worked like a charm, when moving to our server, we installed WKHTML on our ubuntu server, installation process was successful but it had only limited features, it was able to generate pdf from HTML but all features mentioned (i-e header, footer , table of content and cover page) wasn't working. Following is the error which it was

CouchDB backups and cloning the database

会有一股神秘感。 提交于 2019-12-03 03:37:26
问题 We're looking at CouchdDB for a CMS-ish application. What are some common patterns, best practices and workflow advice surrounding backing up our production database? I'm particularly interested in the process of cloning the database for use in development and testing. Is it sufficient to just copy the files on disk out from under a live running instance? Can you clone database data between two live running instances? Advice and description of the techniques you use will be greatly

Windows Mobile - What scripting platforms are available?

白昼怎懂夜的黑 提交于 2019-12-03 03:35:00
We have a number of users with Windows Mobile 6 and need to apply minor changes. eg. update a registry setting. One option is push and execute an executable file using our device management software. I'd like this to be a little more friendly for the admins who are familiar with scripting in VBScript/JScript etc. What are the options for scripting on Windows Mobile devices? Once option that the devs over at xda-developers seem to enjoy is Mortscript I have never bothered to use it, but I have used many cab installers that distribute mortscript so that they can do various tasks I work on

Magento: Detect if admin is logged in in frontend pages

你。 提交于 2019-12-03 01:19:09
I have created a magento extension. I want to implement access to the extension. The extension creates a page in frontend and i want only admin to access that page. So basically i need something that would detect that if admin is logged in in frontend pages. I have tried several solution but noting seem to work . if(Mage::getSingleton('admin/session', array('name' => 'adminhtml'))->isLoggedIn()) echo 'logged in'; else echo 'not logged in'; Check on frontend if admin is logged in Mage::getSingleton('core/session', array('name'=>'adminhtml')); $adminSession = Mage::getSingleton('admin/session');

ASP.NET MVC - Area or Separate Web Application for Administration?

孤街浪徒 提交于 2019-12-02 23:35:22
Up until now I've been using an MVC Area for the administration part of my mvc applications, but recently I've been rethinking this due to the fact that you can't have more than one configuration for forms authentication per application . This has become a problem becuase in a recent project I wanted to set the auth cookies not to expire for users, but I don't wan't this for administration users. I also don't want the user login page to be used to access the admin tools. I'm considering setting up a seperate MVC project in the solution purely for admin tools. This seems to me the best option,

WKHTMLTOPDF Installation error on Ubuntu

点点圈 提交于 2019-12-02 19:27:55
We require features like header, footer, table of contents and cover page of pdf, which we want to generate from html/css. We tried WKHTML on windows and it worked like a charm, when moving to our server, we installed WKHTML on our ubuntu server, installation process was successful but it had only limited features, it was able to generate pdf from HTML but all features mentioned (i-e header, footer , table of content and cover page) wasn't working. Following is the error which it was producing. "The switch -t, is not support using unpatched qt, and will be ignored. Error: This version of