, resources, and increases productivity• My goal is to provide open-source code support for basic java features, rather than writing another• ApacheCommon library Apache is a mature library, but does not support generics. Apache is useful for early java versions-earlier than 1.5• The latest java in java 7 and java 8 support some guava APIs
The flexible use of Guava in appropriate scenarios in project development can save us complicated data processing, and the code introduction is easy to use an
subn () also returns a replacement always. The replaced string and the total number of replicas are returned together as a tuples with two elements.
Example:
>>> r = 'a.b'>>> m = 'acb abc aab aac'>>> re.sub(r,'hello',m)'hello abc hello aac'>>> re.subn(r,'hello',m)('hello abc hello aac', 2)
The string also has a replace () method. When you encounter fuzzy search
AAC Audio ConverterIntroduction: audio files in any format can be transcoded and compressed into AAC MPEG-4 (m4a) format. It can be applied to the app that needs to transmit sound files, so that it can compress a large volume of sound files (such as PCM) into a small AAC for transmission.Http://ios.itmdc.com/forum.php? Mod = viewthread tid = 44 fromuid = 15
Gro
;> m=re.finditer(‘bugs‘,‘bugsbunnybugs‘)>>> m.next()# 迭代器用next()方法返回一个匹配对象objectat0x7f5d7da71a58># 匹配用group()方法显示出来>>> m.next().group()‘bugs‘
Use sub () and SUBN () search and replace
is some form of substitution for all the parts of a string that match a regular expression. The sub () returns a string to replace, which defines the number of replacements, by default replacing all occurrences. SUBN () is the same as sub (), but SUBN () also returns a representation of the s
NDK develops live streaming program for Android-side rtmp
After a toss-up, the success of the rtmp live streaming code, through the NDK cross-compiled way, ported to Android, thus realizing the Android side acquisition camera and mic seam data, then the H264 video encoding and AAC audio encoding, and sent to the RTMP server, To enable live Android camera. The program, called Ndkrtmpencoder, introduces the whole process, and the general framew
Second, what is streaming media and streaming?2.1 Streaming Media"Streaming media" refers to the use of "streaming" in the Internet to play media format, the most important feature of streaming media is "edge-to-bottom broadcast", commonly used streaming media format has FLV (using Flash as a video carrier), TS, etc.2.2-Stream transmission"Streaming" refers to the technology that transmits streaming media over the network. Streaming is divided into "live streaming" and "sequential streaming". In
discarded, including NO. 0 media packets, 5th media packs, and NO. 0 redundant packets. The receiving FEC is unable to recover because the number of packets received is 8 plus the number of redundant packets received is 1, the total is less than the total number of media packets (10). For the second group, only two media packets are lost and can be recovered normally. The experimental results shown in Figure 5 show that the inference is correct, No. 0 media packets, 5th media packets are lost,
Although this article is original, but the content is from the network, reference to everyone's microblog, as well as the summary of the Forum.
When you are speaking, you will encounter the problem of recording the voice format, because you have to consider the format of the support for your own development device, as well as the format of the support of the other device's operating system, and how easy it is to implement each format on the respective platform.
Before the company to do voice t
"-", try not to put-this between the characters, can be placed on both sides of [].For example [-a-z] This can match 26 lowercase letters and "-". Of course, we can also write[A-z-a-z] This can match 52 letters and "-", but this is not intuitive, we would rather write[a-za-z-] or [-a-za-z].2: Do not start with so-and-so, such as www.Java Codepublic class Test {public static void Main (string[] args) {String[] STRs = {"abc1232", "WWWADSF", "Awwwfas", "WWADFSF", "", "ww", "", "www"};String regex
Qiniu Seven cow problem solution
A lot of seven cattle users in the use of seven cattle cloud storage process to encounter the problem of video player selection, here I do a simple recommendation. Audio and video support audio and video playback
In the process of setting up a video application relying on seven cattle cloud storage, the user often encounters the problem of playback: Choose what kind of player. What encoding and container formats are used. How to adapt to a variety of clients. W
If we want to encapsulate Speex encoding into rtmp or FLV, we may encounter problems with how to populate Audiotagheader, Speex encoding supports 8k,16k,32k sample rate, but only 16k in rtmp or FLV protocol, At this point the sampling rate needs to be treated as 11.025k, that is, the packet of this byte is 0xb6
For the AAC encoding in RTMP or FLV packets, AAC sampling rate may be 48k, this time to be as a
Http://linux.51yip.com/search/ffmpeg# ffmpeg-y-i "1.avi"-title "Test"-vcodec xvid-s 368x208-r 29.97-b 1500-acodec aac-ac 2-ar 24000-ab 128-vol 200 The-F psp-muxvb 768 "output.wmv" is explained below:-y overwrites the output file, that is, if the output.wmv file already exists, overwrite it without prompting-I "1.avi" input file is a 1.avi file with FFmpeg in the same directory, you can add the path, change the name-title the title of the movie display
Other system default effect ringtones (m4r ringtone file extension. caf) SMS ringtone file named sms-received beginning with the CAF file. 8,/privatear/mobile/library/addressbookthe directory where the system phone book is stored. /privatear/mobile/library/smsSMS Storage Directory9,/private ar/mobile/media/iphone RecorderIPhone Recorder Recording software file storage directory10,/applications/preferences.app/zh_cn.lprojChinese and English file stora
Take Apple 5s for example:
1. We can search for "apple ringtones" or "cool tones" to find someone else to make a good ringtone.
2. Then we connect the iphone to itunes and then use itunes to import the ringtone into the iphone.
3. We click on the menu bar in the itunes interface shown in the picture, edit-preferences-check ringtones-ok
4. Then click My iphone-app in itunes-drag down the page-select application-cool tone ringtones
5. Then we put the prepared bell on the computer desktop,
1. We go to the official or to Baidu to download itunes and itools These two software and install.
2. After installing the software, we will use the iphone to connect your computer with the data cable.
3. Waiting for the phone to connect with the computer after the successful, we click on the connection to open your itools, do the left-connected device select "Music film", the upper right corner select "Ringtones"
4. Here we click on the "Import" button. Select the ringtone file (note that
Mainbundle] Urlforresource: @ "tap" withextension: @ "AIF"]; Get a custom sound
if (path) {
Osstatus error = Audioservicescreatesystemsoundid ((cfurlref) [Nsurl Fileurlwithpath:path],sound];
if (Error! = kaudioservicesnoerror) {//Gets the sound when an error occurs
sound = nil;
}
}
}
return self;
}
-(void) Play
{
Audioservicesplaysystemsound (sound);
}
Apple system default Sound name Description: (this description is from http://bbs.weiphone.com/read-htm-tid-6
The powerful format conversion software FormatJunkie1.07 has been released. Let's take a look at the process of installing FormatJunkie through PP under Ubuntu14.04. FormatJunkieConverter is a software tool that supports a large number of audio and video conversions, has a beautiful graphical interface, and even supports ISOCSO Disk Images. It also supports the most popular image formats. The following formats support audio, video, and image files: MP3, WAV, WMA, and OGG.
The powerful Format con
iOS commonly used directory collation description is the content of this article, although the different API comprehensive, but also in programming commonly used in the storage directory , so it is necessary documents, not many said, to see the detailed explanation.1, "/applications"Common Software Installation directory built-in soft and JB software storage location2. "/private/var/mobile/media/iphone video Recorder"Video File storage Directory3, "/private/var/mobile/media/dcim"Photo file stora
;}-(void) play{ audioservicesplaysystemsound(sound);}@end1. The sound format is MP3 or m4r needs to be converted into CAF format (can be converted to AIF, AIFF, and then modified suffix)2. The path in/system/library/audio/uisounds, you need to change can be replaced according to the following list3 Detailed list:Informationreceivedmessage.caf--receives information and plays only when the SMS interface is open. SMS-RECEIVED1.CAF-------Three toneSMS-REC
Teach you how to get back a friend stolen Apple 5S.First Open "itunes", select "File"-"Add File to Library" in menu barSelect the song you want to make a ringtone, click OpenThe song will appear in the "Music" of the library.Right-click the song and select "Show Info"Select "Options" to fill in "Start Time" and "Stop Time" (within 40 seconds),-"OK"Then right-click the song and select "Create ACC version"Files with the same file name, but less than 40 seconds in lengthRight click on the newly cre
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.