relevant parameters, edit/etc/zaptel. conf ("[]" is not required when the te110p card is used)SPAN = 1, 1, 0, CCS, HDB3, crc4[SPAN = 2, 2, 0, CCS, HDB3, yellow]Bchan = 1-15, 17-31 [, 32-46,48-62]Dchan = 16 [, 47]Loadzone = CnDefaultzone = CnConfigure/etc/asterisk/Zapata. conf:1) shield the configuration of the following line in the middle; Signalling = fxo_ls2) cancel the following line of comments at the end of the file;Switchtype = euroisdnSignalling = pri_net (or pri_cpe, the two must be con
Original post address: http://blog.csdn.net/coroutines/article/details/7472743
VLC version 2.0.1
A recent study of IP-STB audio and video synchronization problems, found that the solution comes with automatic STC in the network delay is too large, the audio and video cannot be synchronized successfully. After referring to the stream playback mechanism of VLC, we thought that proper buffering could solve this problem. Unfortunately, the final result is a slight relief and cannot be fundamentall
*//* ===================================================== ======================================= */Int Otsu (unsigned char * image, int rows, int cols, int x0, int y0, int dx, int dy, int vvv){Unsigned char * NP; // image pointerInt thresholdvalue = 1; // Threshold ValueInt ihist [256]; // image histogram, 256 pointsInt I, j, k; // various countersInt N, N1, N2, gmin, gmax;Double M1, M2, sum, csum, FMAX, Sb;// Set the histogram to zero...Memset (ih
information
Note:Ssh-vvv user @ server can see more detailed debug information
Solution:
Modify sshd server configuration
Vi/etc/ssh/ssh_config
GSSAPIAuthentication no
AvailableSsh-o GSSAPIAuthentication = no user @ serverLogin
GSSAPI (Generic Security Services Application Programming Interface) is a set of universal network Security system interfaces similar to Kerberos 5. This interface is encapsulated by different client server security mecha
# view the cpu model and number of logical cores getconf LONG_BIT # Number of cpu running digits cat/proc/cpuinfo | grep 'physical id' | sort | uniq-c # cat /proc/cpuinfo | grep flags | grep 'lm '| wc-l #64-bit cat/proc/cpuinfo supported if the result is greater than 0 | grep flags # Check whether the cpu supports virtualization pae and supports half virtualization IntelVT supports full virtualization more/proc/meminfo # view Memory information dmidecode # view comprehensive hardware informatio
your CD.
-R -- 2 root Root 1706 Nov 28 2013 RPM-GPG-KEY-CentOS-6-R -- 2 root Root 1730 Nov 28 2013 RPM-GPG-KEY-CentOS-Debug-6-R -- 2 root Root 1730 Nov 28 2013 RPM-GPG-KEY-CentOS-Security-6-R -- 2 root Root 1734 Nov 28 2013 RPM-GPG-KEY-CentOS-Testing-6-R -- 1 Root 3380 Nov 29 2013 trans. TBL[[Email protected] CDROM] # pwd/Media/CDROM
Here the red is called RPM-GPG-KEY-CentOS-6 is the disc's public key. Generally, the package producer uses one-way encryption to extract the data signature and the
, whose value is your installation path. For example, I am D: \ OracleClient)
PATH = % ORACLE_HOME %; % ORACLE_HOME % \ bin; (Add the following two paths to the PATH environment variable, separated by semicolons: % ORACLE_HOME %; % ORACLE_HOME % \ bin ;)
2. Configure the tnsnames. ora file as needed
Install ORACLE 11 64-bit client
If you want to use components to access the Oracle database, configure the tnsnames. ora file as needed and store it in the % ORACLE_HOME % \ network \ admin directory
`,`key2_part2`,`key2_part3`), KEY `ind1` (`key1_part1`,`key1_part2`,`id`), KEY `ind3` (`key3_part1`,`id`)) ENGINE=InnoDBfor i in `seq 1 5000` ; do mysql -vvv -uroot test \-e 'insert into tmp_index_merge values (60000*rand(),5000*rand(),\*rand(),5000*rand(),5000*rand(),5000*rand(),2877)'; donefor i in `seq 1 5000` ; do mysql -vvv -uroot test \-e 'insert into tmp_index_merge values (600000*rand(),4333,1657,
This article mainly introduces about the use of swoole in Laravel 5.6 of the Process database query, has a certain reference value, now share to everyone, the need for friends can refer to
Installation
First, make sure you're using laravel 5.6.
Then you need to rely on kuaiapp/db this package to implement Swoolecoroutinemysql's pseudo-PDO interface
Composer require KUAIAPP/DB:V0.1-VVV
will be laravel/framework:"v5.6" modified intolaravelfy/fram
discuss the combination of Laravel and swoole.
Swoole must run in CLI mode in order to provide the service, what is the CLI mode? If your Swoole business code is written in a file called server.php, enter PHP server.php open at the command line. This is a headache, because the laravel framework is not the way it works, how can it be combined with laravel? Yes, customizing a artisan Command is as simple as that.
It is highly recommended to use this package in your Laravel project laravel-s .
', 'Oracle ','Msdaora ', 'Oracle database server alias'Exec sp_add1_srvlogin 'link _ ora ',False, 'sa ', 'username', 'user password'
With the database link, we can use it. There are differences between SQL Server and oracle.
For sqlserver:
Create view v_lhsy_user as select * from link_northsnow.lhsy.dbo.sys_userSelect * from v_lhsy_user
Lhsy indicates the remote database name.
Sys_user is the table name.
For oracle:
Create view vvv as
This is a creation in
Article, where the information may have evolved or changed.
First put the simple code out, and then nonsense.
First benchmark's orders.
go test -bench=Poin -memprofile=pointermem.pprof -memprofilerate=1 -benchmem
go test -bench=Value -memprofile=valuemem.pprof -memprofilerate=1 -benchmem
Then is the result of pprof, first pointer, then value, you can see the pointer report 2allocs/op
package maintype mytype struct {field1 stringfield2 stringfield3 stringfield4 stri
A TXT file operation problem occurs. how can I stop the pointer at the end of the last row instead of the next row in the document by using fwrite?
Every time you add PHP_EOL or "\ r \ n" to the end of the string, you can see this in the document.
"String 1"
"String 2"
But when I use fgets (the code is as follows) to read
$ Fname1 = ("pending.txt"); $ fp1 = fopen ($ fname1, "r +"); while (! Feof ($ fp1) {$ read = explode (";", fgets ($ fp1); // used in strings; to compress into an array echo "
Using an SSH client (such as: Putty) to connect to a Linux server may wait 10-30 seconds before prompting for a password. Serious impact on productivity. Login is slow, log on up after normal speed, there are two main possible reasons for this situation:1. DNS Reverse resolution problemOPENSSH will authenticate the IP when the user logs in, it locates the hostname according to the user's IP using reverse DNS, then uses DNS to find the IP address, and finally matches the login IP is legitimate. I
parameters to adjust the growth rate of the chunk size in each slab class, that is, the growth factor, grow factorGrow Factor Tuning:Memcached can specify the growth Factor factor at startup with the F option and, to some extent, control the slabDifferences between the two. The default value is 1.25. However, before this option appears, this factor was once fixed to 2, called "Powersof2"Strategy.We use grow factor for 2 and 1.25来 to see the effect:1 2 VVV
I recently found out doing a sip capture on a FreeBSD system is a little different than centos or other Linux distributions. here is a easy to use command that will grab the SIP packets from TCP dump. this will give you an easy to read text file for debugging or tracing.
> Tcpdump-I bce1-n-S0-vvv UDP port 5060>/usr/src/capture_file
Let's go over the options for this command:
-I = interface which on my BSD system was bce1, you can find out what your
= get_categories (' hide_empty=0parent= '. $VV->cat_id); foreach ($three _parent_array as $KKK => $vvv)//Step Three{$three _count + + $VVV->category_count; Statistics of the number of articles under the third Polar sub-classification} $sub _count + + $vv->category_count; The number of articles is counted under the second level sub classification }$count + + $v->category_count; Count the number of articles
: using system stored procedures
Create a sqlserver database link for sqlserver:
Exec sp_addmediaserver 'link _ northsnow', '', 'sqlodb', 'remote server host name or domain name or IP address'Exec sp_add1_srvlogin 'link _ northsnow', 'false', null, 'username', 'user password'
Create a sqlserver database link for Oracle:
Exec sp_addmediaserver 'link _ ora ', 'oracle', 'msdaora ', and 'oracle Database Server alias'Exec sp_add1_srvlogin 'link _ ora ', false, 'sa', 'username', 'user password'
With t
memcached Startup Parameters[[emailprotected] ~]# memcached -hmemcached 1.4.14-p -U -s file> UNIX socket path to listen on (disables network support)-a for UNIX socket, in octal (default: 0700)-l a port number, the value you specified with -p or -U isused. You may specify multiple addresses separated by commaor by using -l multiple times-d run as a daemon-r maximize core file limit-u -m for items in megabytes (default: 64 MB)-M return error on memory exhausted (rather than removing items)-c -k l
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.