4月3日 客 7月31日 主 安徽九方
4月10日 主 8月7日 客 上海东亚
4月17日 客 8月14日 主 北京八喜
4月21日 主 8月21日 客 延边
4月24日 客 8月25日 主 广东日之泉
5月1日 8月28日 轮空
5月8日 主 9月4日 客 南京有有
5月15日 客 9月11日 主 湖南湘涛
5月22日 主 9月18日 客 北京理工
5月29日 客 9月25日 主 上海中邦
7月17日 主 10月16日 客 广州恒大
7月21日 客 10月23日 主 沈阳东进
7月24日 主 10月30日 客 成都谢菲联
在Stackoverflow上问的问题,直接贴个地址,方便自己查找:
http://stackoverflow.com/questions/2444591/opening-port-80-with-java-application-on-ubuntu
简而言之,用iptables进行redirect,命令长的样子:
iptables -t nat -A PREROUTING -i eth0 -p tcp –dport http -j REDIRECT –to-ports 8080
Spring3中,很多方法都会抛出org.springframework.dao.DataAccessException异常,而这个异常被加入了org.springframework.transaction.jar中。于是大部分的开发都需要添加这个jar包的依赖。
这个问题已经有issue提出,估计可能在下一个版本中会有改进。
在mac里添加环境变量,可以更改系统的/etc/profile,或者更改用户的.bash-profile.推荐后者。
在Terminal下执行echo命令:(以添加Derby_home为例来添加derby的环境变量,其中xxx为路径)
echo ‘export DERBY_HOME=xxx$DERBY_HOME’ >> ~/.bash_profile
或者直接用vi更改也可以
memcache其实也不算是一个很新的概念了,在各种大型网站中是运用的非常的多的。著名的Twitter的白鲸事件,也和memcache有着巨大的关系。想了解其背景概念的和八卦的,不妨Google一下。简而言之,memcache就是将那些经常需要查询的数据或者经常需要调用的外部文件,存在缓存之中,来减少数据库查询或者远程网络调用的浪费。这个概念在数据库的缓存中已经十分的悠久了,但是由于涉及到太多极低层次的代码编写,一般的程序员是不会接触到这的。现在有了memcache的帮助,能够很好的将这一思想移植到应用层面来,对大型项目的开发有着很大的帮助。
Google App Engine很早就有了memcache的支持,算是其天生的一个优势,在这里我简单的介绍一下如何在GAE/J中使用memcache。对Python感兴趣的同学就十分抱歉了。
首先我们假象一个例子,在GAE/J中有一个学校的学生系统,在一个有着4-5万人的大学里,如果该系统包括了所有的诸如选课,学习,注册,论坛等等各种信息,对于数据库的查询需求是非常的大的。不过,这种网虫又往往局限在部分学生之中,就比如学校邮箱,喜欢经常去check的和很少去check的都会存在。于是怎么能让那些经常使用的数据能够得到更好的利用呢?我们假定数据库中存有一个表,是Student表专门存放学生信息,学生无论是登录,还是做什么也好,都需要查询其Student信息。于是,我们来看memcache如何实现对Student的缓存。
首先我们生成一个JDO的POJO类,来存放学生信息,在这里简单开来:
[java]@PersistenceCapable(identityType = IdentityType.APPLICATION)
@Inheritance(customStrategy = “complete-table”)
public class Student implements Serializable{
@PrimaryKey
@Persistent
private String uuid;
@Persistent
private String name;
@Persistent
private String email;
@Persistent
private String address;
public Student(){
this.uuid = UUID.randomUUID().toString();
//setter&getter
}[/java]
接着,我们需要创立一个Cache类,来负责缓存层的操作:
[java]
public class QueryCache {
private static final Logger log = Logger.getLogger(QueryCache.class
.getName());
private static QueryCache instance;
private Cache cache;
private QueryCache(){
try{
CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
cache = cacheFactory.createCache(Collections.emptyMap());
}catch(CacheException e){
log.severe(”Error in creating the cache”);
}
}
public static synchronized QueryCache getInstance(){
if(instance==null){
instance = new QueryCache();
}
return instance;
}
public void putInCache(String address, String student){
cache.put(address, student);
}
public String findInCache(String address){
if(cache.containsKey(address)){
return (String)cache.get(address);
}else{
return null;
}
}
}
[/java]
在这个类中,其单例模式下的构造函数生成了一个新的Cache,它的内部结构是一个Map。同时我们定义了两个方法,一个是将学生信息放进cache,一个是从cache中取出学生信息。
最后,我们创建一个Servlet,来进行学生信息的查询:
public class QueryServlet extends HttpServlet{
private static final Logger log = Logger.getLogger(QueryServlet.class.getName());
@Override
protected void doGet(HttpServletRequest req, HttpServletResposne resp) throws ServletException, IOException{
log.info(”Now start……”);
QueryCache cache = QueryCache.getInstance();
String studentC = cache.findInCache(”Address7694″);
if(studentC!=null){
resp.getWriter().write(”Found the item in cache!”);
}else{
resp.getWriter().write(”No hit in cache!”);
PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = pm.newQuery(Student.class);
query.setFilter(”address==’Address7694′”);
List students = List query.execute();
if(students.iterator().hasNext()){
log.info(”Found one:”+student.toString());
resp.getWriter().write(”Found one:”+student.toString());
cache.putInCache(”Address7694″, student.toString());
}else{
log.info(”None found!”);
resp.getWriter().write(”None Found!”);
}
}
}
这样一个很简单的例子,显示出了整个memcache在GAE/J中的运用方法。当然这只是最最基础的,还有许多的东西需要思考,比如该在什么样的地方使用memcache,memcache的有效时间是多少等等。
| Entitlement details | |
|---|---|
| Current date and time | Tue Mar 16 14:40:10 EST 2010 |
| Passport number | |
| Visa class/subclass | WA 010 |
| Visa description | BRIDGING |
| Visa applicant | Primary |
| Visa status | In Effect |
| Visa grant date | 16/03/2010 |
| Visa expiry date | |
| Visa grant number | 804951595**** |
| Entries allowed | No travel |
| Must not arrive after | |
| Period of stay | Indefinite |
| Visa type | Bridging visa |
| Included in this visa | |
| Visa conditions | |
1)ACS认证:墨大的IT的所有的课都可以顺利通过ACS认证,不需要为此而担心
2) 按照目前的政策,直接来读硕士的,必须至少读两年才能移民。读一年半的只能直接回国。
3)墨大的IT是偏软的,甚至从某种意义上是完全的软件方向。如果你个人对network感兴趣的话,可以在学完一年半的IT课程后,继续读一年的TELECOMMUNICATION,但是显然这是很耗费时间和金钱的。并且最新的SOL DRAFT上,网络方向的IT已经不在名单上了,前途未卜。
4)建议:打好基本功,提高英语能力。移民走一步看一步。
“羽东学长您好,我叫罗一木,湖北天门滴~
本科毕业于北京交通大学信息与计算科学专业(其实就是数学),现在刚来墨大读Master of Information Technology。
本来来之前并没有考虑PR的事,而且我课程也只是一年半的,后来需要读语言(L8R9W6S5.5……),课就变成两年的了。来之后发现周围这么多人都在为PR奋斗,在澳洲拿PR又有这么多的好处,自己也不免有些心动,嘿嘿~
我也明白这事儿任重道远,有几个问题想请教您一下:
ACS的accredited courses是怎么回事?我们学院的有MIT和MSSE,我看您的课程不在里面,对申请有什么影响吗?
我之前听说两年的Master课程申请时加5分,一年半的没有加分,这是两者在申请时的最大区别么?还有什么需要注意的地方?
P.S. 我现在才意识到我的课程偏软件方面的,但我自己偏向于network方向,也准备在这边考CCNA思科认证了,学院只有telecommunication这门课程(一年),还只收通信专业的,我一度想过转到他们专业,但好像跟PR不相符..现在也去旁听他们的课,学长有什么建议呢?
祝学长和我都好运~~~”
THIS IS A SYSTEM GENERATED E-MAIL, PLEASE DO NOT RESPOND TO THE E-MAIL ADDRESS SPECIFIED ABOVE.
PRIMARY APPLICANT: Yudong LI
DATE OF BIRTH: 07/10/1984
TRANSACTION RECORD NUMBER: EGNUF9****
TRIM FILE REFERENCE: BCC2010/10****
PERMISSION REQUEST ID: 124053****
CLIENT ID: 6350911****
LODGEMENT DATE: 03 March 2010
Dear Mr LI
This email confirms receipt of an application by Yudong LI for a Skilled - Independent (VB 885) visa which was lodged on the above date.
There are two locations where General Skilled Migration visa applications are processed: Adelaide and Brisbane. The department will automatically direct the application to the appropriate processing centre.
If you lodged an online application for one of the following subclasses it will be processed at the Brisbane Skilled Processing Centre.
Skilled - Independent (subclass 885)
Skilled - Sponsored (subclass 886)
Skilled - Regional (subclass 887)
Skilled - Graduate (subclass 485)
Skilled - Regional Sponsored (subclass 487)
All other applications will be processed at the Adelaide Skilled Processing Centre.
PROCESSING INFORMATION
Visa processing times vary and are affected by a range of factors outside of the department’s control. Please note that as the department receives a large number of applications you will not be contacted immediately. For information on specific processing times please refer to: http://www.immi.gov.au/skilled/general-skilled-migration/after-you-lodge.htm.
You will be contacted once your application is allocated to a case officer. Information concerning allocation timeframes is updated regularly and can be obtained by sending a blank email to: aspc.processing@immi.gov.au (for applications being processed in Adelaide) or gsmb.information@immi.gov.au (for applications being processed in Brisbane).
This is an automated service providing processing information only. Please do not send any other enquiry or information to this email address.
PRIORITY PROCESSING
Section 51 of the Migration Act 1958 gives the Minister for Immigration and Citizenship powers to consider and finalise visa applications in an order of priority that the Minister considers appropriate. This Direction applies to both new applications and those applications awaiting a decision.
The Priority Processing Direction gives priority to people who have particular skills or qualifications. This Direction responds to the changing needs of the Australian economy. For further information on how the current processing priorities will affect your application see the department’s website at http://www.immi.gov.au/skilled/general-skilled-migration/whats-new.htm.
The order in which your application will be assigned to a case officer will depend on its priority under the Priority Processing Direction. Please do not contact the department to request your application be exempt from the Priority Processing Direction. Case officers must adhere to the Direction.
If your application is not currently a priority under the Direction, you should expect significant delays before your application is allocated to a case officer.
Processing priorities are subject to change. Any changes to these priorities or processing times will be updated on the website. We recommend that you check this website regularly for updates.
YOUR IMMIGRATION STATUS
If you have applied for an onshore GSM visa, you will have been granted a Bridging visa in association with this application, enabling you to remain in Australia while your application is processed.
If you have applied for an offshore GSM visa, you are not entitled to a Bridging visa.
DOCUMENT REQUIREMENTS
If you have not already done so, you will need to provide the department with the documents listed below by attaching these documents to the eVisa browser:
- birth certificate or other evidence of age;
- copy of passport Personal Particulars/Photograph(bio-data) page;
- IELTS English Test Report Results;
- evidence of recent Australian qualifications - this includes transcript(s) and letter(s) of completion or evidence of recent work experience;
- form 80 - Personal Particulars for Character Assessment;
- form 1221 - Additional Personal Particulars Information;
- passport photograph;
- receipt for application for AFP check and your AFP check (if you have applied for an onshore GSM visa);
- evidence of arrangements to undergo a medical examination (if you have applied for an onshore GSM visa);
- satisfactory skills assessment for your nominated occupation. Please include all evidence of work experience you used to obtain this assessment. If you applied for an onshore GSM visa please also provide evidence of when you applied for your skills assessment
- overseas police clearances (if you have applied for an onshore GSM visa) - you must provide a police clearance certificate from each country where you have lived for a total of 12 months or more in the last 10 years. These 12 months are calculated cumulatively, not consecutively. The Character Requirements Penal Clearance Certificates form (formerly known as form 47P) provides country-specific instructions on how to obtain a police clearance and is available on the department’s website: http://www.immi.gov.au/allforms/.
If you have applied for an offshore GSM visa, your case officer will contact you when you need to undertake health and character checks.
TIMEFRAME FOR RESPONSE
Where applicable you must provide all additional documents (identified above) within 28 days after the date of this email, otherwise your application may be decided without the additional information being taken into account.
PROVIDING DOCUMENTS
Electronic lodgement of applications provides an effective service for applicants to provide documents to the department. eVisa applicants should attach documents online at: https://www.ecom.immi.gov.au/visas/attachment/start.do?attachType=VISA_APPLICATION&group=travel
The reference details for this application are: Primary Applicant’s name; Transaction Reference Number; and Permission Request ID. These details are located on the top left hand corner of the first page of this letter.
Reference details should be included as the first part of the subject line in any correspondence you send to the department. Including reference details in the subject line will help us to quickly locate your application.
Do not send us original documents unless we ask you for them. If you send copies of your documents they must be certified copies.
Please note that, while the department acknowledges the receipt of an application, the receipt of subsequent correspondence is not acknowledged.
CERTIFIED COPIES
For the purposes of the migration legislation, a document is to be certified in writing as a true copy of the original document by:
If the copy is certified in Australia:
- a Justice of the Peace; or
- a Commissioner for Declarations; or
- a person before whom a statutory declaration may be made under the Statutory Declarations Act 1958 (for example a nurse, medical practitioner, pharmacist or dentist); or
- a registered migration agent (whose registration is not suspended or subject to a caution).
If the copy is certified outside Australia:
- a person who is the equivalent of a Justice of the Peace or Commissioner for Declarations in that place; or
- a registered migration agent (whose registration is not suspended or subject to a caution).
Where applicable, the copies of both the original document and the translation must be certified as true copies.
Applicants are advised to retain in their records the original and certified copy of any document that is sent to the department, as we may request hard copies of these documents at a later date.
TRANSLATING YOUR DOCUMENTS
Original documents in languages other than English should be accompanied by an English translation. English translations must be official certified translations from a National Accreditation Authority for Translators and Interpreters accredited translator. Translations provided by non-accredited translators outside Australia should be endorsed by the translator with their full name, address, telephone number, and details of their qualifications and experience in the language being translated.
CHANGE OF CIRCUMSTANCES
If your circumstances have changed since you made your visa application, and as a result an answer to a question on your visa application form or the information you have given to the Department of Immigration and Citizenship about your visa application is no longer correct, you must advise us in writing as soon as possible.
Examples of changes in circumstances include:
- changes to address and/or contact details;
- changes to employment, for example a new job;
- obtaining a new passport;
- new member of the family unit;
- you or a secondary applicant has become pregnant;
- discovery that information previously provided is incorrect.
You can provide this information to the GSM processing office by letter or email, together with any accompanying documents. If you are notifying the department of a change to your email address by sending an email from your new email address, you must include details of your previous email address, as evidence that you have authorised the change.
The following forms are useful for notifying the department of changes in circumstances and are available on the department’s website at http://www.immi.gov.au/allforms:
- form 929 Change of Address;
- form 1022 Notification of Changes in Circumstances;
- form 1023 Notification of Incorrect Answer(s);
- form 1193 Communication by Email.
PROGRESS OF THE APPLICATION
You can keep up to date with the progress of your visa application by using the Online Visa Enquiry service once your application is allocated to a case officer. You can use your Transaction Reference Number (TRN) to access this free 24 hour service through our website at http://www.immi.gov.au/e_visa.
CONTACTING GSM PROCESSING OFFICES
After reading the information at the beginning of this letter on Skilled Migration priority processing arrangements and expected timeframes for the processing of applications, should you have any enquiry relating to your GSM application please use the online enquiry form available on our website at: http://www.immi.gov.au/contacts/forms/gsm/post.htm.
In Australia you can call 1300 364 613 and from outside Australia by calling +61 1300 364 613 between 9 am and 4 pm Monday to Friday.
For general enquiries you can call 13 18 81 between 9 am and 4 pm Monday to Friday.
ENTITLEMENTS TO MEDICARE
If you wish to know whether you are entitled to Medicare, please visit the following link:
http://www.immi.gov.au/living-in-australia/settle-in-australia/to-do-first/register-medicare.htm.
Department of Immigration and Citizenship
04 March 2010
Disclaimer: The preceding correspondence is intended solely for the use of the individual to which it is addressed and may contain privileged and/or confidential information. If this email has been sent in error, then the recipient is prohibited from disclosing, reproducing or using the information contained within.
——————————————————————–
Important Notice: If you have received this email by mistake, please advise
the sender and delete the message and attachments immediately. This email,
including attachments, may contain confidential, sensitive, legally privileged
and/or copyright information. Any review, retransmission, dissemination
or other use of this information by persons or entities other than the
intended recipient is prohibited. DIAC respects your privacy and has
obligations under the Privacy Act 1988. The official departmental privacy
policy can be viewed on the department’s website at www.immi.gov.au. See:
http://www.immi.gov.au/functional/privacy.htm
Dear Mr Yudong Li,
Thank you for your Skills Assessment Application to the Australian Computer Society. Your application reference number is 465***.
Please be advised that your result letter is about to be posted to you by registered post and the tracking number is 50201009****.
If you wish to track your registered letter please call Australia Post on 13 13 18 and quote your tracking number. Note that your tracking number may not be available immediately. Allow two working days before checking. Alternatively you can submit an online enquiry via the Australia Post website at online enquiry and enter your tracking number in the enquiry section.
If you have any other queries please email assessment@acs.org.au.
Regards,
Skills Assessment Processing Department
Australian Computer Society
ACS REFERS YOU TO THE IMPORTANT DISCLAIMER AND NOTICE ABOUT THIS EMAIL AThttp://www.acs.org.au/disclaimer.htm
又一次坐在了香港机场的板凳上,这两年在香港机场出现的次数算是比较多了,但是突然有个发现,就是一旦我要在这里转机,那必然是一个长时间的等待,这个长度平均下来,连我自己都不相信我就在这无聊地耗掉了这么多时间。
1. 2008年2月17日, 转机时间9小时
2. 2008年6月22日, 转机时间 18小时
3. 2008年7月27日, 转机时间9小时
4. 2009年9月9日, 转机时间8小时
5. 2009年10月13日,转机时间5个半小时
6. 2009年12月22日,转机时间7个小时
7. 2009年1月9日, 转机时间10小时
8. 2009年2月6日(今天),转机时间6小时
9. 2009年2月19日(下次),转机时间4小时
我把我宝贵的生命浪费了多少在香港机场啊。下次要好好考虑下自己的行程了。
PS:
经过多次的挑选经验,发现在香港机场吃东西,绝对不能进去以后吃,不然起步价就是50。我也在这上过两次当吃了70的拉面。在CHECKIN的这边,有几家还算比较廉价,不过我个人推荐2号航站楼的入口处的千烧百味,价格算是不错的了,不超过30,早餐和午晚餐都不错,烧腊算是让我比较满意了,虽然量不够多,但是在这还有什么好挑剔的呢。
PS2:
为什么QANTAS的办票柜台这么偏啊,都是ONEWORLD的成员不至于档次这么低啊,尽然排在和国航东航南航一起,属于最偏偏的偏厅。真是奇怪啊。要说QANTAS每天航班也不少啊,至少LHR一班,SYD二班,MEL, BNR, PER都有一班啊。而占据中庭的则是强大的SIA, JAL, ANA, AA这些。
PS3:
我想研究一下这里的办台湾签证的,每次都看到一大群人,被一个人拉着说教,站在中华旅行社这个之前,也就是CHECKIN柜台最偏最偏的角落。不过话又说回来,这可是休息的最好地方,人少,位置多,当然离厕所也近。
明年回国考虑走走BANKOK,或者TAIPEI,顺道玩玩是个不错的选择!



