用户:user
u_id
u_name
u_email
u_password
function parseURL(url) { | |
var a = document.createElement('a'); | |
//创建一个链接 | |
a.href = url; | |
return { | |
source: url, | |
protocol: a.protocol.replace(':', ''), | |
host: a.hostname, | |
port: a.port, | |
query: a.search, |
首先对于汪世辉学编程这件事情我是表示各种呵呵。
当然他说要学习编程并不代表要成为程序员。
而应该说是一定程度上去了解编程界的各种潜规则,所以不能把他当成程序员去培养,而是从培养互联网公司的CEO的角度去了解编程界的各种领域的概念,当然有时候了解是需要代码实践的,但这不会像做业务一样烦人。
有几点要注意的:
1.你需要精通面向对象分析与设计(OOA/OOD)、涉及模式(GOF,J2EEDP)以及综合模式。你应该十分了解UML,尤其是class,object,interaction以及statediagrams。 | |
2.你需要学习JAVA语言的基础知识以及它的核心类库(collections,serialization,streams,networking, multithreading,reflection,event,handling,NIO,localization,以及其他)。 | |
3.你应该了解JVM,classloaders,classreflect,以及垃圾回收的基本工作机制等。你应该有能力反编译一个类文件并且明白一些基本的汇编指令。 | |
4.如果你将要写客户端程序,你需要学习WEB的小应用程序(applet),必需掌握GUI设计的思想和方法,以及桌面程序的SWING,AWT, SWT。你还应该对UI部件的JAVABEAN组件模式有所了解。JAVABEANS也被应用在JSP中以把业务逻辑从表现层中分离出来。 | |
5.你需要学习java数据库技术,如JDBCAPI并且会使用至少一种persistence/ORM构架,例如Hibernate,JDO, CocoBase,TopLink,InsideLiberator(国产JDO红工厂软件)或者iBatis。 | |
6.你还应该了解对象关系的阻抗失配的含义,以及它是如何影响业务对象的与关系型数据库的交互,和它的运行结果,还需要掌握不同的数据库产品运用,比如:oracle,mysql,mssqlserver。 | |
7.你需要学习JAVA的沙盒安全模式(classloaders,bytecodeverification,managers,policyandpermissions, | |
codesigning, digitalsignatures,cryptography,certification,Kerberos,以及其他)还有不同的安全/认证 API,例如JAAS(JavaAuthenticationandAuthorizationService),JCE (JavaCryptographyExtension),JSSE(JavaSecureSocketExtension),以及JGSS (JavaGeneralSecurityService)。 | |
8.你需要学习Servlets,JSP,以 |
These days some people were discussing at meteor-talk group about running Meteor at Windows and I’ve recommended them using Vagrant. It’s a very developer-friendly piece of software that creates a virtual machine (VM) which let you run any operating system wanted and connect to it without big efforts of configuration (just make the initial installation and you have it working).
Many packages (I've tested) for running Meteor+Vagrant fails because Meteor writes its mongodb file and also other files inside local build folder into a shared folder between the Windows host and the Linux guest, and it simply does not work. So I've put my brain to work and found a solution: do symlinks inside the VM (but do not use ln. Use mount so git can follow it). It’s covered on steps 8 to 15.
If you have no idea what I’m talking about, I’ve made a tutorial to install Ubuntu Precise x86 through Windows command-line with Meteor very simple to follow
var _no_new = {}; | |
var Cons = function (arg) { | |
if (!(this instanceof Cons)) { | |
var instance = new Cons(_no_new); | |
instance._init.apply(instance,arguments); | |
return instance; | |
} | |
if (arg !== _no_new) { | |
this._init.apply(this,arguments); | |
} |
require("./$.Date"); | |
require("./$.Array"); | |
require("./$.Object"); | |
function Console() { | |
this.before = []; | |
this.date_format = "hh:mm:ss MM-DD"; | |
this.timeMap = {}; | |
}; | |
var _console = global.console; |
/* | |
* 创建类似DB服务 | |
*/ | |
var net = require("net"); | |
var server = net.createServer(function(c) { | |
console.log('DB-SERVER: client connected'); | |
c.on('end', function() { | |
console.log('DB-SERVER: client disconnected'); | |
}); | |
c.on('data', function(chunk) { |