Old text backup: Python international support,
Python supports internationalization (i18n) through the gettext module, and supports the multi-language interface of the program. below is my multi-language support implementation:
# Some descriptive title.
# Copyright (C) YEAR ORGANIZATION
# First author
#
Msgid ""
Msgstr ""
"Project-Id-Version: package version \ n
. But the two models are causing
Confused, when I read in binary mode, saved in text mode will be a more than a \ r, when you open with EditPlus, you will find the following:
0D 0A before multiple 0D, Notepad ignores redundant 0D;
Similarly, open with text mode, save with binary, and then open with a text program, there is less than A/R, as follows:
And for su
1. First download the sogou Input Method
Http://pinyin.sogou.com/linux/
See the following article for help: http://pinyin.sogou.com/linux/help.php
2. then install sublime Text 3
Download idea.
3. Install related dependent Software
sudo apt-get install build-essential libgtk2.0-dev
4. Start to enable sublime to support Chinese input methods.
Prerequisites: this experience is in the Ubuntu kylin14.04 enviro
MySQL Full-Text Search support
More than 4.0 MySQL MyISAM engine supports full text search, which can be used to support search on a typical small website or blog.
So how to use, simple look:
1. Create a table that specifies the columns that support fulltext
The core of multi-language support is to switch the Applicaion-level resourcedictionary.
The language file can be edited at will.ProgramLoad a resource file at startup.
To support multiple languages on the interface, we define a resource extension tag.
In addition, in order to prevent users from mistakenly deleting language resources and without any text
Today encountered a requirement, request to access my API with HTTPS + XML, ordinary webapi is not supported by this request, so do the following code to supportAdd a class with the class name Plaintexttypeformatter Public classplaintexttypeformatter:mediatypeformatter{ PublicPlaintexttypeformatter () {Supportedmediatypes.add (NewMediatypeheadervalue ("Text/plain")); } Public Override BOOLcanreadtype (Type type) {returnType = =typeof(string); }
Code page conversions are not supported for text data types. From: 1252 to: 936.
————————————————————
The problem is due to the design of the target, the original database used:
English (United States) 0x409 Latin1_General 1252
And because of the operating system, what we need is
Simplified Chinese (PRC) 0x804 CHINESE_PRC 936
The above describes the data to the text data type does not
This http://www.michaelsoft-taiwan.com/Flash/Tech/Mandarin/ is a video version, but it's slow.
So let's take a look at the full-text version.
In our technology industry, we may think that cutting-edge technologies are the most important thing. In fact, this is not the case. Many people still think that the technology is second to that of others, only management skills, marketing skills, and people-related things are the most important. The developmen
This article mainly introduces the simple and easy to use ASP.net pagination class (support Ajax, custom text), this article directly gives the realization code and the usage method, needs the friend to be possible to refer to under
It's useful to do Web sites that don't use JS UI controls.
Usage:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
var ps=new pagestring (); /* Optional Par
Dark ModeUse View - Dark Mode or shortcut keys to CMD + Option + L turn Dark Mode on or off. You can set the style used by the editor in the Dark mode state in settings, such as.Full Text SearchThe document library mode searches all documents in the document library, and the external mode only searches for documents under the currently selected folder. Added Focus Search Field (cmd + SHIFT + F) and focus Editor (cmd + SHIFT + E) Two shortcut keys for
" "Generated-by:pygettext.py 1.5\n"?MsgId "Hello world!"Msgstr "World Hello!"?MsgId "Python is a good Language."Msgstr "Python is a good language." Save, run. The Msgfmt.py,linux command under the/tools/i18n/directory is: Python msgfmt.py lang.po (widows will lang.po files are copied to . In the/tools/i18n/directory, run the command-line window, type: msgfmt.py lang.po in the directory below, generate LANG.MO, copy the file to the./locale/cn/lc_messages/directory, Copy the Lang.po file
Method OneRecently doing a silverlight,windows phone app porting to the Windows 8 platform, testing some of the traditional WCF service applications in IIS8, discovering that IIS8 does not support the WCF Service SVC request, and later found IIS8 missing the managed for the WCF service Handler, after you add the following steps, IIS8 supports WCF services.1. First add the MIME type extension ". svc", MIME type "Application/octet-stream"2. Then add man
Google Chrome is the kernel of WebKit, there is a-webkit-text-size-adjust private CSS properties, it can be achieved by the font size does not affect the device or browser.The CSS style is defined as follows:-webkit-text-size-adjust:none;But in the latest version of Google. This attribute is not supported and needs to be resolved by CSS3 transform, as follows:
CSS Section
HTML Layout
Bytes ------------------------------------------------------------------------------------------
First, perform the following operations:
Sudo su
Add-apt-repository ppa: webupd8team/sublime-text-2/* or sublime-text-3 */
Apt-get update
Apt-get install sublime-text
By default, no menu bar is displayed on the interface. Press and hold the ALT key to display the menu
Create a UIButton subclass directly on the code. h fileCreate the UIButton subclass directly on the code. h file #import . m file#import "GraphicBtn.h"@implementation graphicbtn-(ID) initWithFrame: (CGRect) frame{self = [super Initwithframe:frame];if (self) {Can be adjusted to suit your needs.Self.titleLabel.textAlignment = Nstextalignmentcenter;//Self.titleLabel.font = [Uifont systemfontofsize:12.0];Self.imageView.contentMode = Uiviewcontentmodescaletofill;}return self;}Methods for overriding p
Source code of the app that supports mobile phone text message registration (Task Bar), which is reproduced from the android tutorial network. This app can support mobile phone registration, which is very good. You can take a look at it, but I don't know whether to count.
P>Download source code:Hidden content http://code.662p.com/view/6041.html for this post
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >Please enter add and subtract formula: "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >Please enter add and subtract formula: JS Implementation of text box support add and subtract operation method
Uitextfield+text_constraints.h@interface Uitextfield (text_constraints)//take into account the length of the text in some places is a range eg:2-10, so use Nsrange@property (nonatomic, assign) Nsrange textlengthrange;-(BOOL) Shouldchangeinrange: (nsrange) Range replacestring: (NSString *) string; @end Uitextfield+text_constraints.m#import "Uitextfield+text_constraints.h" #import Uitextfield limit the length of
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.