Fedora 20/21, delete old system kernel, fedora Kernel
The kernel update speed of the Fedora system is very fast, which often leads to many versions during startup. If you do not clean up for a long time, the/boot may be fully occupied. The recent new Fedora 21 is even more likely to frequently upgrade the kernel. Therefore, the old kernel deletion method record is as follows:
[Root @ rachel densintian] # rpm-qa | grep kernel query kernel information kernel-modules-3.17.1-302.fc21.x86_64kernel-3
used to kill a specific process. Suppose there are two processes with the same starting characters:
___FCKpd___0nbsp;ps-aef|grep“test”
himanshu39692811014:14pts/000:00:00./test
himanshu39702811014:14pts/000:00:00./test_again
How to kill the "test_again" process?
___FCKpd___1nbsp;killalltest_again
[2]+Terminated./test_again
As you can see, the killall command terminates the "test_again" process. You can use the ps command to confirm this fact:
___FCKpd___2nbsp;ps-aef|gre
#!/usr/bin/python#-*-coding:utf-8-*-"""Zetcode PYQT4 Tutorial In this example, we draw text on Russian Azbuka.author:Jan Bodnarwebsite:zetcode.com last EDI Ted:september"""ImportSYS fromPyQt4ImportQtgui, QtcoreclassExample (qtgui.qwidget):def __init__(self): Super (Example, self).__init__() Self.initui ()defInitui (self): Self.text= u'\u041b\u0435\u0432 \u041d\u0438\u043a\u043e\u043b\u0430\u0435\u0432\u0438\u0447 \u0422\u043e\u043b\u0441\ u0442\u043e\u0439: \n\u0410\u043d\u043d\u0430 \u041a\u043
In Linux, shell calls cmdct to perform batch upgrade and execute the main. sh script to upgrade the updatefilename update package for each IP machine in the hostname. The tcl and keep Ct packages are placed in the same path, and $ TSMIS_ROOT is the environment variable. CopyFile. exp file :#! /Usr /...
In Linux, shell calls cmdct to perform batch upgrade and execute the main. sh script to upgrade the updatefilename update package for each IP machine in the hostname. The tcl and keep Ct packages
1. Introduce the masterslave data replication method of Redis, which can be one master, one slave, or one master, multiple slaves. Redis is in the non-blocking mode on the master, that is, when the slave executes data synchronization, master is OK
I. Introduction Redis master/slave Data Replication mode can be one master, one slave, or one master and multiple slave, Redis is in non-blocking mode on the master, that is, when slave executes data synchronization, master is OK
, That is, in ,,.Se
Layout of ExtJs4 notes
This article explains another important concept of Ext: layout. Generally, container controls ADD child controls through the configuration item items. How to locate these child controls relative to the parent controls? layout is required here. Some container controls integrate a layout method by default. For example, the typical layout is Ext. container. viewport layout control, which is actually a border layout container and Ext. form. panel, Ext. tab. panel. In this sect
Layout of ExtJs4 notes
This article explains another important concept of Ext: layout. Generally, container controls ADD child controls through the configuration item items. How to locate these child controls relative to the parent controls? layout is required here. Some container controls integrate a layout method by default. For example, the typical layout is Ext. container. viewport layout control, which is actually a border layout container and Ext. form. panel, Ext. tab. panel. In this sect
]+Terminated./test_again
As you can see, the killall command terminates the "test_again" process. You can use the ps command to confirm this fact:
$ps-aef|grep“test”
himanshu39692811014:14pts/000:00:00./test
You can see that "test_again" is not displayed because it has been killed.
2. Use the-I option to ignore case sensitivity.
By default, the killall command is case sensitive. For example:
$ps-aef|grep“test”
himanshu41773161014:54pts/300
Source Code Thinking Analysis:
"One" how to generate a picture grid, I think of two ways:
(1) Cut this large picture into 16 pieces and then use the IMG-labeled SRC
(2) Only a large picture, and then each element of the background map with the CSS background-position to cut positioning, so you need 16 of the array [0,0],[-150,0],[-300,0] ... (I use this)
"Two" picture background positioning array and layout positioning array
When you choose to use CSS to locate a slice, you need to generate
!/usr/bin/python-*-Coding:utf-8-*-"""Zetcode PYQT4 Tutorial This program creates a Statusbar.author:Jan Bodnarwebsite:zetcode.com last Edited:september ."""ImportSYS fromPyQt4ImportQtguiclassExample (Qtgui.qmainwindow):def __init__(self):#Super (type[, Object-or-type]): Return A proxy object, delegates method calls to a parent or sibling class of type .Super (Example, self).__init__() Self.initui ()defInitui (self):#to get the StatusBar, we call the StatusBar () method of the Qtgui.qmainwindow c
and the corresponding solution.
Note:
Important: This article contains information about modifying the registry. Before modifying the registry, you must back up the registry and ensure that you understand how to restore the registry. For how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Microsoft Windows registry description
Symptom
Text with more than 300
Layout of ExtJs4 notes, extjs4layout
This article explains another important concept of Ext: layout. Generally, container controls ADD child controls through the configuration item items. How to locate these child controls relative to the parent controls? layout is required here. Some container controls integrate a layout method by default. For example, the typical layout is Ext. container. viewport layout control, which is actually a border layout container and Ext. form. panel, Ext. tab. panel
Reduced UIImage
Sometimes, you need to upload an image in a project. The image taken from the image library is too large, and it may take a lot of time to upload it, and it is not necessary to upload it too large, so I want to narrow down the picture and upload it again!
[Cpp]# Pragma UIImagePickerDelagate-(Void) imagePickerController :( UIImagePickerController *) picker didFinishPickingImage :( UIImage *) image editingInfo :( NSDictionary *) editingInfo{[Self. imagepovercontroller dismissPopove
How to Create a puzzle game or a jQuery puzzle game
Source code analysis:
[1] how to generate an image mesh:
(1) Cut the big image into 16 small images and use the src label of the img label
(2) There is only one large image, and then the background image of each element is cut and located using the background-position of css. In this way, 16 arrays [0, 0], [-, 0] are required. [-] ...... (I use this)
[2] image background positioning array and layout positioning Array
When you select to use CSS
Time-out is related to the setting of nginx. conf.Correct settings require consideration of multiple factors, such as the server performance and number of visitors.Taking my current server as an example, the CPU runs for 4 Gbps, with 1 GB of memory and CENTOS. The number of visitors is about 50 online simultaneously.However, most people online need to request a PHP-CGI for a lot of information processing, so I set nginx. conf:Fastcgi_connect_timeout 300
equal and the drawing will not have any problems.
However, if you use CSS to set the canvas height and width, you only specify the element size of the canvas without affecting the drawing surface size of the canvas. If the sizes of the two are the same, there will be no problems, but if they are inconsistent, There will be various strange problems. At this time, the browser will have an automatic Scaling Mechanism to scale the drawing surface, to adapt to the size of the canvas element.
In the
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.