Module_param () usage
Programming in User state can pass command-line arguments via main (), while writing a kernel module is via Module_param ()Module_param macros are added to the Linux 2.6 kernel, which are defined in the
This article address: http://blog.csdn.net/kongxx/article/details/6946517
Nonsense, is not want to define too many Java beans, sometimes the need is simpler, think directly with Java Collection class to replace too many Java bean definitions, see
First, to configure permissions in the Manifest.json
"Permissions": [
"tabs", "notifications"
],Then, call the Chrome desktop notification API in Background.js
//displays the data as a desktop notification to user function
Use Mock Object to test
Author: kongxx Mockobject Overview
Using mock object for testing, It is primarily used to simulate tools that are not easily constructed in an application (such as HttpServletRequest must be constructed in a servlet container)
using Easymock extensions to provide mock objects for class
author:kongxx
Usually I need to rely on other classes or interfaces while testing some classes, and at this point maybe these classes or interfaces are just method signatures without real
Description
void *mmap (void *start,size_t length,int prot,int flags,int fd,off_t); Specific parameter meaningStart: Point to the memory start address to map, usually set to NULL, to allow the system to automatically select the address, and the
When using GDB on the Development Board debugging, sometimes need to look at the source code, but the source code is too large, the development Board capacity is limited to pass through the SCP every time the development Board, or do not want to use
Ifconfig is our view/Set network port state commonly used commands, in fact, this command is a number of system function encapsulation, through the modification of struct ifreq, we can easily set the network port State, get the network port
The PO file is a set of application specifications for the GNU GetText Project and belongs to the L10N program.
A PO is an abbreviated form of portable object (portable); MO is an abbreviated form of Machine object (Machine objects).
A PO file is
Preface
The previous story about Derby and the next step is to start using Derby.
Before you use Derby, of course you install Derby. The simplest way to install is to download the binary release version.
Instead of using this method, I build from
Zookeeper The actual combat configuration service
The recent collation of information found two years ago I wrote some examples of zookeeper, today sorted out, put here, perhaps later. Server is used to start a zookeeper service.
Package
Tomcat Configuration Basic Authentication
Create a Web App
First prepare a Tomcat environment, where the tomcat7.x is used.
Create a simple web app for testing, which assumes the use of MyApp. Adding dependent libraries
Because need to obtain user
Typically, when we use spring, the attributes injected are the specified class instances or list or array, and for this type of application we usually use spring to look in the container by default based on the bean's ID or name. But sometimes in
Today I saw an article about how to avoid using the switch and use an enum, after looking at the feeling that the author is very good, here to share.
Original address: Avoid switch! Use enum!
Recently I is about to refactor the some code crap4j
1. Use Maven to create a JPA test project
MVN ARCHETYPE:CREATE-DGROUPID=MYJPA-DARTIFACTID=MYJPA
2. Add the packages that JPA relies on, the hibernate JPA implementations used here, and use the Hsql database as a test database
The previous article said about the use of propertyplaceholderconfigurer classes in spring http://blog.csdn.net/kongxx/archive/2010/08/26/5842009.aspx
In some cases, however, our properties are not configured in the properties file, but are set in
Today, colleagues have a Birt performance problem to solve, the problem is embedded in the Birt a paragraph of our own code to invoke some existing classes to get the database information configured in the file, because the database username and
Always said in the company to build a continuous integration environment, dragged back and forth for nearly a year, finally in yesterday afternoon before the early hours of work to build out. It is also accidental, was to the afternoon when 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service