Archive for the ‘linux applications’ category

Learn Linux, 101: Process execution priorities

March 21st, 2010

This article grounds you in the basic Linux techniques for managing execution process priorities. Learn to:


  • Understand process priorities
  • Set process priorities
  • Change process priorities

This article helps you prepare for Objective 103.6 in Topic 103 of the Linux Professional Institute’s Junior Level Administration (LPIC-1) exam 101. The objective has a weight of 2.

Prerequisites

To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Sometimes different versions of a program will format output differently, so your results may not always look exactly like the listings and figures shown here. The results in the examples shown here were obtained on a Ubuntu 9.10 (Karmic Koala) distribution. This article builds on the concepts discussed in the previous article “Learn Linux 101: Create, monitor, and kill processes.”


Back to top

Knowing your priorities


Connect with Ian

Ian is one of our most popular and prolific authors. Browse all of Ian’s articles on developerWorks. Check out Ian’s profile and connect with him, other authors, and fellow readers in My developerWorks.

Linux, like most modern operating systems, can run multiple processes. It does this by sharing the CPU and other resources among the processes. If one process can use 100% of the CPU, then other processes may become unresponsive.

» Read more: Learn Linux, 101: Process execution priorities

Speeding up dynamic websites via an nginx proxy

February 20th, 2010

Many of us are familiar with the use of Apache for hosting websites. It might not be the fastest webserver but it is extraordinarily popular, extremely flexible, and a great choice for most people. However there are times when it can struggle, and placing a proxy in front of it can be useful.

nginx is a very small, fast, and efficient HTTP server with a lot of built in smarts to allow it to work as a reverse proxy, and not just for HTTP, it also supports SMTP.

» Read more: Speeding up dynamic websites via an nginx proxy

installing nginx + php-fpm using centos.alt.ru & EPEL repo in CentOS

February 20th, 2010

I have create post about installing nginx + php-fpm from source before in here http://adityo.blog.binusian.org/?p=428. In this tutorial i will create a more simple way installing nginx + php-fpm using yum with centos.alt.ru & EPEL repo.

Here it’s goes:

- Create repo
# cd /etc/yum.repos.d
# vim rusia-repo.repo

- and paste this

[rusia-repo]
name=CentOS-$releasever – rusia packages for $basearch
#baseurl=file:///raid/RH/CentOS/$releasever/local/$basearch
baseurl=http://centos.alt.ru/pub/repository/centos/5/i386/
enabled=1
gpgcheck=0
protect=1

- Enable EPEL repo
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -m)/epel-release-5-3.noarch.rpm

- Install nginx and php-fpm

# yum install nginx php-fpm

» Read more: installing nginx + php-fpm using centos.alt.ru & EPEL repo in CentOS

Research on the image watermarking

January 28th, 2010

ScanMom studio pictures have recently been doing research to play a watermark, image watermark is a very good fight against Daolian way, even if you picture was reproduced, with your website logo is a good means of publicity.

I am not a programmer universal use GD library, but the method of ImageMagic software, you can go to the official website to download to use, and detailed instructions (in English). With the program can batch image watermarking problem

This article comes from: http://jk.scanmon.com/en/wp/2010/01/about_image_watermark.html

Have this problem on video in the Jacky on the message, ScanMom studio has also done technical support in this regard http://www.scanmon.com

Jacky for everyone to look at the picture I did add watermark

ImageMagick is a stable set of tools and development kits that can be used to read, write and deal with more than 89 kinds of basic format of the image files, including the popular TIFF, JPEG, GIF, PNG, PDF, and PhotoCD and other formats. The use of ImageMagick, you can web applications according to the needs of dynamically generated images, but also can be a picture or picture sequence to change the size, rotation, sharpening, subtractive or add special effects and results of operations in the same format or other format . The operation of the picture can be carried out through the command line, you can also use C / C + +, Perl, Java, PHP, Python, or Ruby programming to complete. ImageMagick also provides a high-quality 2D tool kit, in part to support SVG. Now, ImageMagic the main focus on performance, reduce the bug and providing a stable API and ABI on.
ImageMagick powerful, but it is free of charge.
ImageMagick functions
1. The pictures from one format to another format, including direct convert ico icon.
2. To change the size, rotation, Sharpen (sharpen), subtractive, picture effects
3. Thumbnails synthesis map (a montage of image thumbnails)
4. Suitable for the background of a transparent web images
5. Will be a group of pictures made gif animation, direct convert
6. Will be a few pictures made of a combination of image, montage
7. Write or draw a picture graph, with text shadows and border rendering.
8. To the Canadian border or frame pictures
9. Get some pictures of the characteristics of information
10, almost including the regular gimp plug-in functionality can be done. Even the rendering of various curve parameters. Just the wording of the command, complicated enough.
ImageMagick almost any non-proprietary operating system, compiler, both 32-bit or 64-bit CPU, including * nix, Windows ‘95 / ‘98 / ME / NT 4.0/2000/XP, Macintosh (MacOS 9 / 10 ), VMS, and OS / 2.

» Read more: Research on the image watermarking