14.04Deb Http://mirrors.ustc.edu.cn/ubuntu/trusty main restricted universe multiverseDeb http://mirrors.ustc.edu.cn/ubuntu/trusty-security main restricted universe Multiversedeb/HTTP Mirrors.ustc.edu.cn/ubuntu/trusty-updates main restricted universe Multiversedeb http://mirrors.ustc.edu.cn/ubuntu/ trusty-proposed main restricted
For the company's network restrictions, you can build a local Ubuntu source within the LAN.1, modify the source configuration, into the Sohu source (the default Ubuntu source is not as fast as some domestic source speed)Vi/etc/apt/source.listDeb Trusty main restricted universe Multiverse Deb Trusty-security main restricted universe multiverse Deb Trusty-updates Main restricted
#中科大
Deb Http://mirrors.ustc.edu.cn/ubuntu/trusty main restricted universe multiverse
Deb Http://mirrors.ustc.edu.cn/ubuntu/trusty-security main restricted universe multiverse
Deb Http://mirrors.ustc.edu.cn/ubuntu/trusty-updates main restricted universe multiverse
Deb http://mirrors.ustc.edu.cn/ubuntu/trusty-proposed main restricted
Sources ). On the first tab, click the menu on the right of "Download From" and select "Others... (Others ...)". In the displayed window, click Select Best Server )". The system will automatically ping the servers in the official server list and select the fastest server!
Press Alt + F2 to open "Run Application" and enter gksu gedit/etc/apt/sources. list. Enter your password if you are prompted. Move the cursor to the end of the file.
(1) Telecom Users Add the following content:
deb http://ubun
. writeline ("Worker's work score =" + grade );}}Private boss _ boss;}
Class boss {Public void workstarted () {/* The boss does not care. */}Public void workprogressing () {/* The boss does not care. */}Public int workcompleted (){Console. writeline ("Almost time !");Return 2;/* Total score: 10 */}}
Class universe {Static void main (){Worker Peter = new worker ();Boss = new boss ();Peter. Advise (boss );Peter. dowork ();
Console. writeline ("Main: wor
Deb Http://ubuntu.uestc.edu.cn/ubuntu/precise main restricted universe multiverseDeb Http://ubuntu.uestc.edu.cn/ubuntu/precise-backports main restricted universe multiverseDeb http://ubuntu.uestc.edu.cn/ubuntu/precise-proposed main restricted universe multiverseDeb Http://ubuntu.uestc.edu.cn/ubuntu/precise-security main restricted
Modified files:/etc/apt/sources.listThe contents are as follows:# UESTC (recommended by Education network users)Deb Http://ubuntu.uestc.edu.cn/ubuntu/precise main restricted universe multiverseDeb Http://ubuntu.uestc.edu.cn/ubuntu/precise-backports main restricted universe multiverseDeb http://ubuntu.uestc.edu.cn/ubuntu/precise-proposed main restricted universe m
Privart too!"; return { publicmethod:function () { Console.log ("This was public!"); }, Publicproperty: "This is Public too! " } } return { getinstance:function () { if (!instance) { instance=init (); } return instance;}} ) ();3. Using the new operatorWe want to achieve the following effects:var uni=new
){
// Set The args variable to the received parameter or to null (if not provided)Var args = args || {};// Set the name parameterThis. name = 'singletontester ';// Set the pointX ValueThis. pointX = args. pointX | 6; // get it from the received parameter, or set it to the default value.// Set the value of pointYThis. pointY = args. pointY | 10;
}
// Instance containerVar instance;
Var _ static = {Name: 'singletontester ',
// Method for obtaining an instance// Return Singleton instanceGetInstanc
Official Server:
#/Etc/APT/sources. List
# Deb CDROM: [Ubuntu 9.10 _ karmic koala _-release i386 (20091028.5)]/karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade# Newer versions of the distribution.
Deb http://us.archive.ubuntu.com/ubuntu/ karmic main restrictedDeb-Src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
# Major bug fix updates produced after the final release of# Distribution.Deb http://us.archive.ubuntu.com/ubuntu/ karmic-Updat
Sort out my personal Ubuntu Source: # Seehttp: // sources
Sort out my personal Ubuntu Source:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade# Newer versions of the distribution.Http://cn.archive.ubuntu.com/ubuntu/ gutsy main restrictedDeb-src http://cn.archive.ubuntu.com/ubuntu/ gutsy main restricted# Major bug fix updates produced after the final release of# Distribution.Deb http://cn.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universeDeb-src http://cn.arch
= 'singletontester ';// Set the pointX valueThis. pointX = args. pointX | 6; // get it from the received parameter, or set it to the default value.// Set the value of pointYThis. pointY = args. pointY | 10;
}
// Instance containerVar instance;
Var _ static = {Name: 'singletontester ',
// Method for obtaining an instance// Return Singleton instanceGetInstance: function (args ){If (instance === undefined ){Instance = new Singleton (args );}Return instance;}};Return _ static;})();
Var singletonTes
# UESTC (Chengdu University of electronic science and technology updates the server, which is recommended for campus networks and Netcom Users)Deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main multiverse restricted universeDeb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main multiverse restricted universeDeb http://ubuntu.uestc.edu.cn/ubuntu/: lucid-proposed main multiverse restricted universeDeb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main multiverse restricted universeDeb http
Ubuntu Source list in/etc/apt/sources.list, replace itthe source of TsinghuaDeb Http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main multiverse restricted Universedeb/http Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main Multiverse restricted Universedeb/http mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-proposed main Multiverse restricted Universedeb/http Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security main Multiverse restricted Universedeb/http Mirrors.tuna.tsinghua.edu.cn/ubuntu/x
1 \Netease
Deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/ karmic-Updates main restricted universe multiverseDeb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted
() {/* The Boss doesn't care. */ }public void workprogressing () {/* The Boss doesn't care. */ }public int workcompleted () {Console.WriteLine ("Time is almost!") ”);return 2; /* Total divided into 10 * *}}
Class Universe {static void Main () {Worker Peter = new Worker ();Boss Boss = new Boss ();Peter. Advise (boss);Peter. DoWork ();
Console.WriteLine ("Main: Worker work completed");Console.ReadLine ();}}
Interface
Now, Peter became a special man,
Post two #中科大ubuntu update server deb http://debian.ustc.edu.cn/ubuntu/ Maverick main restricted universe Multiv erse Deb http://debian.ustc.edu.cn/ubuntu/ maverick-security main restricted universe multiverse nbsp Deb http://debian.ustc.edu.cn/ubuntu/ maverick-updates main restricted univerSe multiverse deb http://debian.ustc.edu.cn/ubuntu/ maverick-propos
The exchange of the source under Ubuntu ....
Because their hands cheap, all of a sudden six months of painstaking efforts to destroy all, my entire embedded learning Process code AH, project AH, the problem ah, all lost ... and the evil disposition ...
No way, also reload the system ...
Installed in VMware under the Ubuntu, there are many problems ah, today began to record in the learning process throughout the configuration process ... Safekeeping .....
1, Change Source
In the shell when th
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.