Kill all instances of httpd

If a process is hanging in a bad state and it won’t go away even after sending it a SIGTERM, you can send it the SIGKILL (Signal number 9) signal, which is a forced shutdown of a process. Note that with SIGKILL the process will not have opportunity to clean up any system resources it … Read more

Download C / C ++ IDE – C program editor

turbo-c

C-Free is a professional C/C++ integrated development environment (IDE) that support multi-compilers. Use of this software, user can edit, build, run and debug programs freely. With C/C++ source parser included, although C-Free is a lightweight C/C++ development tool, it has powerful features to let you make use of it in your project. C-Free Packages package name: … Read more

Write down the simple interest program using for loop in c

C Programming Tutorial

Here a C program to calculate simple interest using for loop. main ( ) { int p, n, count ; float r, si ; for ( count = 1 ; count <= 3 ; count = count + 1 ) { printf ( “Enter values of p, n, and r ” ) ; scanf ( … Read more

The For loop in C

C Programming Tutorial

For loop is probably the most popular looping instruction. The for allows us to specify three things about a loop in a single line: Setting a loop counter to an initial value. Testing the loop counter to determine whether its value has reached the number of repetitions desired. Increasing the value of loop counter each time the … Read more

quickly copy MySQL InnoDB database without using MySQL dump

MySQL Cluster

For this process We should noted that there must have the same architecture on both machines. I.e. if we have 32 bit on one server then other server would also have 32 bit. But in case if we have 32 bit on one server and 64-bit on another then we will have to use MySQL dump. mysqldump &#8211; … Read more

mysqli_connect() – function php mysql db connect

MySQL Cluster

The mysqli_connect() function opens a new connection to the MySQL server. Syntax: mysqli_connect(host,username,password,dbname,port,socket); Parameter Description host Specifies a host name or an IP address username Specifies the MySQL username password Specifies the MySQL password dbname Optional. Specifies the default database to be used port Optional. Specifies the port number to attempt to connect to the … Read more

Manipulating Dialplan Variables : Asterisk

iNet Expert Technology

We often require to do string manipulation on a variable. For example, a variable named phonenumber which represents a number we’d like to call, and we want to strip off the first 5 digit before dialing the number. Asterisk provides a special syntax for doing just that, which looks like ${variable[:skip[:length]} The optional skip field tells Asterisk how many … Read more

Asterisk – ChannelRedirect

Asterisk dial command

ChannelRedirect : This is used to redirect the given channel to target dialplan. For example if you want to redirect the channel SIP/1222-09992 to wrap context at 2 priority. You can use this function/command to do so. This has been added in Asterisk 1.4 version. For Asterisk 1.4 version ChannelRedirect(channel|[[context|]extension|]priority) For Asterisk 1.8 and above … Read more

show progress on MySQL DB Import

MySQL Cluster

You can use Pipe Viewer to monitor mysql dump. If you don’t already have pv, you can install it with: yum install pv # pv db1.sql.gz | gunzip | mysql -u root -p db1 693MiB 1:00:33 [ 325kiB/s] [====================> ] 68% ETA 0:16:20