Simple SqlHelper and simple SqlHelper
Currently, many SQlHelper textbooks on the Internet do not close connections and release resources. This slows down the website response during project development and leads to a crash.
The SQlHelper I introduced now uses Using to automatically release resources, so we do not need to manually release resources.
1 using System; 2 using System. collections. generic; 3 usi
For a programmer who knows nothing about design patterns, maintenance costs are a deadly problem, so from now on, I'm going to start working hard, designing patterns, and documenting my learning outcomes.Production class
Abstract class Oper Abstraction classes
Class Add Plus
Class Sub minus
Class Mul Multiply
Class Div in addition to
Class Operate Calculation
abstract class Oper { public $num 1 = 0; public $num 2 = 0; abstract public function
At the start---run Place input cmd (or press and hold the Winkdy+r key to enter CMD), open the Command window, enter WMIC memphysical get maxcapacity and enter, and the resulting number is in kilobytes, We divide the obtained number by 1024 divided by 1024, that is, about 1 million, such as the 16777216 K bytes, then divided by about 1 million, probably support 16G of memory, this refers to the physical memory, then we want to expand memory, Can be assured to buy without fear of the system does
List (listview), table (gridview), which must be indispensable in mobile apps. How to implement a more complex interface? Let's take a look at my.
This layout is the most basic and commonly used. There are many implementation methods for such a layout on the Internet, but many of them need to implement the adapter by themselves, it seems complicated and unnecessary, because we have simple but not simple
When learning QT, a simple serial host computer can no longer be written, which is used to control two LEDs on the microcontroller. Assume that only the status is on and off. One can adjust the brightness. The host computer interface is as follows:
The drop-down values of baud rate, data bit, and stop bit are added to the designer. The remaining functions are basically implemented by the Code. The protocol used for communication is also casually writ
In the previous articles, I have introduced how to use GDI + for drawing and made an example. In this article, I will introduce how to use a tool similar to Windows for drawing.I personally think that if you want to create a powerful drawing tool, it is far from enough to simply master GDI. At present, I can only do a simple drawing tool. you are welcome to discuss the shortcomings!
Let's take a look at the final effect:
Main functions
The first one is too simple to mention, and the second one is very simple, but everyone has different implementation methods. The following is a concise method, which supports IE6, IE7, and ff2, other browsers have not been tested (you can extend to ASP. net in the gridview ):
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
A simple java chat room and a simple java chat room
Using the group chat room compiled by java Socket, you can copy it and try it on your own
Server:
Package net3; import java. io. bufferedReader; import java. io. IOException; import java. io. inputStreamReader; import java. io. printWriter; import java.net. serverSocket; import java.net. socket; import java.net. socketException; import java. util. arrayL
Js decomposition url parameters (regular expressions, split comparison) (Object-Oriented-simple method), simple split
I. Regular Expression
Note:
1. substr () and substring (start, stop) are used to extract characters that are intermediary between two specified subscripts.
Important: Unlike slice () and substr (), substring () does not accept negative parameters.
See http://www.jb51.net/w3school/js/jsref_s
Mongoose simple table connection query and Mongoose simple
The original article is taken from my front-end blog. You are welcome to visit
Http://www.hacke2.cn
As I mentioned in this article, it is based on Node. js + jade + Mongoose mimic gokk. TV, at that time, the development was stopped because I deeply felt that I was wrong at that time. I should use two schemas instead of an array below to store them.
Soft test path-the algorithm is actually very simple, but the soft test algorithm is actually very simple
Algorithms are recognized as the most difficult part of intermediate software designer exams. However, since the teacher gave us an algorithm, I feel that the algorithm is actually nothing. In the soft test, algorithms are divided into divide and conquer, dynamic programming, greedy algorithms, and back
Simple decompilation and simple Decompilation
Those who have never been involved in decompilation may think that decompilation is troublesome. In fact, decompilation is not troublesome, but it is amazing. I was also driven by curiosity and studied the decompilation. below is my decompilation process.
I. Tools
1. apktool
2. dex2jar
3jd-gui
Step 2
1. First, go to the apk file of the app you want to dec
Simple use of thread pool, simple use of Thread Pool
Create a thread pool with a specified number of threads
private static ExecutorService scheduledTaskFactoryExecutor = null;private boolean isCancled = false;private static class ThreadFactoryTest implements ThreadFactory {
@ OverridePublic Thread newThread (Runnable r ){Thread thread = new Thread (r );Thread. setName (TAG );// Set Thread to user Thread th
A simple use of reflection in Java and a simple use of Java reflection
Repeat the previous technical articles in other places to help you remember and learn from others.
I sent such a piece of code at work:
package cn.com.hanbinit.test; import java.lang.reflect.Field;import java.util.ArrayList;import java.util.List; public class Test { public static void main(String[] args) throws IllegalArgumentExcepti
Simple use of POI and simple use of POI
I. Introduction
You can use the POI tool to export office files such as word, excel, and ppt.
2. Sample Code
Package com. wang. test; import java. io. file; import java. io. fileOutputStream; import java. util. calendar; import java. util. date; import org. apache. poi. hssf. usermodel. HSSFCell; import org. apache. poi. hssf. usermodel. HSSFCellStyle; import org. a
Android RecyclerView and CardView are simple to use and recyclerview are simple to use.
After Android 5.0, two new UI controls, RecyclerView and CardView, were added to Android.
RecyclerView can be seen as an enhanced version of ListView, which can be used more flexibly and supports animations.
CardView is a card view component provided by Google. It can define attributes such as radians and shadows of corn
Python simple tutorial, python simple tutorialUse source files
Now let's start programming again. When you learn a new programming language, the first program you write and run is usually a "Hello World" program, which has become a tradition. When you run the "Hello World" program, all it does is say "Hello World ". As Simon Cozens [1], who proposed the "Hello World" program, said: "It is a traditional spel
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.