//Create a new system processSystem.Diagnostics.Process Process =NewSystem.Diagnostics.Process (); //set the file name, here is the true path of the picture + file nameProcess. Startinfo.filename =FileName; //This is a critical part. Sets the process run parameters, at which time the picture is displayed for the maximized window. Process. Startinfo.arguments ="rundll32.exe C://windows//system32//shimgvw.dll,imageview_fullscreen"; //This entry is not available if the shell is used to execute the
Reason Analysis:
Because the Windows Picture and Fax Viewer does not exist programmatically, the form of a dynamic-link library exists in the Explorer.exe program, with the name C: Windowssystem32shimgvw.dll, while Shimgvw.dll is inserted into the EXPLORER.EXE main program as a thread, one of the benefits of a dynamic-link library (DLL) is to reduce system resource production without creating a separate program for it. Instead, insert other programs
Verify password: Can only enter 6-20 letters, numbers, underscoresThe code is as follows:
function ispasswd (s)
{
var patrn=/^ (W) {6,20}$/;
if (!patrn.exec (s)) return false
return True
}
Check ordinary telephone, fax number: You can "+" start, in addition to numbers, can contain "-"The code is as follows:
function Istel (s)
{
var patrn=/^[+]{0,1} (d) {1,3}[]? ([-]? (d) {1,12}) +$/;
var patrn=/^[+]{0,1} (d) {1,3}[]? ([-]? ((d) | []) {
34.1 LPR: Printing files
34.2 lpq: Show print queue status
34.3 LPRM: Canceling a print job
34.4 Lpstat: Show cups status information
34.5 cupsaccept: Accept job sent to destination
34.6 Cupsreject: Reject job sent to destination
34.7 cupsenable: Start Printer and class
34.8 cupsdisable: Stop printer and class
34.9 cancle: Canceling printing
34.1 LPR: Printing files34.2 lpq: Show print queue status34.3 LPRM: Canceling a print job34.4 Lpstat: Show cups status
:
Five, start to build the cluster: 1. Download software: https://www.mongodb.com/download-center#community
The version used here is: mongodb-linux-x86_64-rhel62-3.2.10.tgz 2. Create a directory:
Mkdir-p/home/mongo/{config,router,shard}Mkdir-p/home/mongo/config/{data,logs}Mkdir-p/home/mongo/router/logsMkdir-p/home/mongo
Tags: keyword mini pretty one prompt racket local ram resIntroductionThe MONGO Shell is a interactive JavaScript interface to MongoDB. You can use the MONGO Shell to query and update data as well as perform administrative operations. The MONGO Shell is a component of the MongoDB distributions. Once you has installed and has started MongoDB, connect the
Good memory is inferior to bad blog, record, need to use directly later.
This article configured the three MongoDB in the same machine, should be put three machines, but the resources are limited, a machine will be used, the configuration of a copy of the lumped ratio is not configured better.
This article configures the use of the database version: 3.2.6 64-bit version
1, copy three points MongoDB to the server, the directory is: Mongo_master//192.168.1.11 27311 The main library is actually i
Mongo-connector Integrated MongoDB to SOLR Implementing incremental IndexingConfiguring a MongoDB Replication setReference: Deploying a replication set for testing and developmentInstalling Solr5.3Reference: "Installing Solr5.3 under CentOS"Installing Python2.7Reference: "Installing Python2.7 under CentOS"Install PIPReference: "Installing PIP under CentOS"Installing Mongo-connectormethod One: use Pip instal
7.mongo command line run JavaScript scriptYou can manipulate the data and manage MongoDB by writing JavaScript scripts at the command line. For more information, see How to use the [Running. js files via a MONGO shell Instance on the Server] () in the MONGO script. Part.This article describes how to connect MongoDB by writing JavaScript scripts on the
Mongo-connector integrates MongoDB to Solr for incremental Indexing
Configure the MongoDB replica set
Deploy a replica set for testing and development
Deployment replica set
1. create necessary data folders for each node:
1 mkdir-p/srv/mongodb/rs0-0/srv/mongodb/rs0-1/srv/mongodb/rs0-2
2. Run the following command to start the mongod instance:
First node:
Mongod -- port 27017 -- dbpath/srv/mongodb/rs0-0 -- replSet rs0 -- smallfiles -- oplogSize 128 --
Zabbix automatic detection and monitoring mongo
1: zabbix automatically discovers the mongo monitoring port and returns the format required by zabbix_server. The script is deployed on zabbix_agent and the path is/usr/local/zabbix/zabbix_discover_mirror.sh. The script content is as follows:#! /Bin/sh# Zhuangweihong 20160419 zabbix discover mysqlRes = 'sudo ss-tulnp | grep
This is a creation in
Article, where the information may have evolved or changed.
This article focuses on the use of MgO, only a simple introduction of MongoDB.
MongoDB Features
Mongdb Brief Introduction
注意:已经告知我们mongo不支持事务,在开发项目应用时,想要保证数据的完整性请考虑关系型数据库(经典例子银行转账)。mongo提供了许多原子操作,比如文档的保存,修改,删除等,都是原子操作。所谓原子操作就是要么这个文档保存到mongodb,要么没有保存到mongodb,不会出现查询到的文档不完整的情况。
About MgO
MgO is MongoDB's GO language driver pack.M
Customize the Prompt Custom tipsModify the content of the prompt by setting the variable in the prompt mongo shell. The prompt variable can hold strings as well as JavaScript code. If prompt holds a function that returns a string, the mongo can display dynamic information in each prompt.You can add the logic for the prompt in the. mongorc.js file to set the prompt each time you start the
Php install mongo extension phpmongo extension installation: The server environment CentOS5.664-bit, php version 5.2.17 compilation and installation, installation path/usr/local/php first download the latest phpmongodb extension source code, the source code can be in http: // install the mongo extension in pe php
Php mongo extension installation:
64-bit Cent
TP already supports MongoDB database, here is a detailed description of the configuration and use of MONGO on TP.
(1) There is a bug in the original class of/think/model/mongomodel.class.php in the tp3.2.2 version. We need to add some code to the original class to fix the bug.
+----------------------------------------------------------------------namespace Think\model;use think\model;/ * * Mongomodel Model class * Implements ODM and Activerecor
Tags: login win Ica string config cap parse basic hangPrevious wordsThis article will describe in detail a web-based MONGODB database management tool developed with Nodejs mongo-express InstallationFirst, the global installation of the Mongo-express package NPM install-g mongo-express Next, use the following command to locate the
I'm using XAMPP, and I've added extension and php_mongo.dll in the php.ini and \ext directories.
Successfully installed Mongo, boot is successful, but when writing PHP program in Zend, $mongodb =new Mongo () It will display the problem class Mongo not found, I thought it was my php_mongo_drive did not install successfully, But I do not know how to solve, online t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.