enjoylife's Stuff

Home » enjoylife (3 trails)
enjoylife's Stats (public trails only):
Trails created: 81
Marks created: 1268
Views received: 103,869
Positive ratings: 1
Negative ratings:
Comments received: 3
Comments left: 0
super master (enjoylife)

enjoylife's Trails: java    (view all)
一般默认情况下,Eclipse ,MyEclipse 的代码提示功能是比Microsoft Visual Studio的差很多的 ,主要是Eclipse ,MyEclipse本身有很多选项是默认关闭的,要开发者自己去手动配置。如果开发者不 清楚的话,就不知道Eclipse ,MyEclipse的代码提示功能一样能像Microsoft Visual Studio的代码提 示功能一样强大。     先举个简单的例子说明问题所在,例如在Eclipse ,MyEclipse代码里面,打个foreach,switch等 这些,是无法得到代码提示的(不信自己试试),其他的就更不用说了,而在Microsoft Visual Studio 里面是得到非常友好的代码提示的。实际上,Eclipse ,MyEclipse代码里面的代码提示功能默认的一般 是点“.”,一般是有了点“.”,才会有代码提示。     原理:“Auto Activation triggers for java”这个选项就是指触发代码提示的的选项,把“.” 改成“.abcdefghijklmnopqrstuvwxyz(,”的意思,就是指遇到26个字母和.,(这些符号就触发代码提 示功能了。(具体后面有说,放心)   增强Eclipse ,MyEclipse 的代码提示功能,具体怎么样来配置?下面开始说步骤(注意本人用的 MyEclipse 6.0.1做讲解): 1. 打开MyEclipse 6.0.1,然后“window”→“Preferences”   2.       选择“java”,展开,“Editor”,选择“Content Assist”。 3.       选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“Auto  Activation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。 4.       “Auto Activation triggers for java”这个选项,在“.”后加abc字母,方便后面的查找 修改。然后“apply”,点击“OK”。 5. 然后,“File”→“Export”,在弹出的窗口中选择“Perferences”,点击“下一步”。 6. 选择导出文件路径,本人导出到桌面,输入“test”作为文件名,点击“保存”。 7. 在桌面找到刚在保存的文件“test.epf”,右键选择“用记事本打开”。 8. 可以看到很多配置MyEclipse 6.0.1的信息 9. 按“ctrl + F”快捷键,输入“.abc”,点击“查找下一个”。 10. 查找到“.abc”的配置信息如下: 如下:   11. 把“.abc”改成“.abcdefghijklmnopqrstuvwxyz(,”,保存,关闭“test.epf”。 12. 回到MyEclipse 6.0.1界面,“File”→“Import”,在弹出的窗口中选择“Perferences”,点击 “下一步”,选择刚在已经修改的“test.epf”文件,点击“打开”,点击“Finish”。该步骤和上面 的导出步骤类似。 13. 最后当然是进行代码测试了。随便新建一个工程,新建一个类。在代码输入switch,foreach等进行 测试。你立即会发现,果然出了提示,而且无论是敲哪个字母都会有很多相关的提示了,很流畅,很方 便。 总结: “Auto Activation triggers for java”这个选项就是指触发代码提示的的选项,把“.”改成 “.abcdefghijklmnopqrstuvwxyz(,”的意思,就是指遇到26个字母和.,(这些符号就触发代码提示功 能了。 顺便说一下,修改类名,接口名等以不同颜色高亮的,可以这样配置在“java”→“enditor”→ “syntac”,右边展开“java”→“classes”,勾上“Enable”这个选项,选择自己喜欢的颜色即可。 当然还有其他相关的颜色配置。具体就不说啦。其实,在“Preferences”这个东西,有很多可以配置的 东西,使得MyEclipse 优化的,具体的就要各个人根据自己个人喜好去配置了。谢谢。 最后,还要感谢Java技术交流群的阿蔡,他提供了这个方面的视频。本人是根据他的视频做的图文教程
Tags: activation, triggers, “auto, 母, ,myeclipse, ...
A trail of 4 pages
The C-shell offers a number of special commands known as control codes. Control codes define commands specific to the operating system. To issue a control code, hold down and press the corresponding letter key. The following summarizes some of the most commonly used control codes:
 d Signals the end of a file you are entering from the terminal if typed at the beginning of a line or if typed twice elsewhere in a line.
 c Cancels a command or interrupts a running program.
 z Suspends a process or job but does not terminate it: use fg to restart suspended process or job.
common_alias myscreen '~/bin/screen'
common_alias ls   'ls --color=auto'


common_alias findfile    'find . -follow -type f | grep $*'
common_alias findtext 'find . -not -name "*.d" -not -name "*.o" -not -name "*.a" -follow -type f -print0 | xargs --null grep $*'
#common_alias findcode    "find -follow -type f -name '*.cpp' -o -name '*.h' -o -name '*.java' -o -name '*.const' -print0| xargs --null grep $*"
common_alias findcode 'find . -name "*.cpp" -name "*.h" -name "*.java" -name "*.c" -name "*.hpp" -follow -type f -print0 | xargs --null grep $*'
common_alias findcdb 'find . -name "*.layout" -name "*.def" -name "*.cdb" -follow -type f -print0 | xargs --null grep $*'
common_alias findweb 'find . -name "*.aml" -name "*.xml" -name "*.xsd" -name "*.mdl" -name "*.sml" -follow -type f -print0 | xargs --null grep $*'
common_alias findany 'find . -follow -type f -print0 | xargs --null grep $*'

 

export PS1="\h@\u:\w% "
export DISPLAY=l-sjn-jezhao:0.0
export LS_COLORS='di=01;33'

function cleanup(){
        echo "Removing $1 files..."
        find \. -follow -name "$1" | xargs rm
u Clears the command line.




Tags: grep, alias, xargs, name, findcode, ...
A trail of 44 pages

 From time to time people email me asking how to get started as a quant. While there are a number of fields that comprise the quant discipline and no list can be all-inclusive, if you are going to be interviewing for a quant position, you may wish to be conversant in the following areas: 

  • Finance and Financial Engineering, including complex financial derivatives and valuations, volatility surfaces and smiles, replication, arbitrage and equilibrium pricing models, CAPM, APT, Fama-French models and possibly risk management concepts depending on the area you’ll be supporting.
  • Statistics and Probability, at a fairly deep level with a good knowledge of distributions, maximum likelihood theory and perhaps empirical distribution fitting, tests for normality and fitting of joint distribution using tools such as copulas, how to perform out of sample tests, properties and expectation of random variables, correlation and covariance and so on.
  • Strong mathematics skills in areas including stochastic calculus, including martingales, markov processes (quick! What is the difference between a martingale and a markov process?), Ito’s lemma and so forth as well as ordinary calculus, differential equations, numerical methods, linear algebra and possibly a little computational complexity, algorithm analysis and optimization.
  • Econometrics – properties of ARCH, GARCH, detecting the order of an AR/MA process and so on, stationary and non-stationary variance and how to test and correct for the same if need be, transformations, random walks, unit root tests and so forth.
  • Knowledge of several computer packages, operating systems and languages including SAS, S-Plus, R, Matlab; expertise in a programming language such as C++, C# and/or Java, and experience with a non-Windows operating systems such as Unix.
  • Detailed knowledge of capital markets may be required, including understanding of credit derivatives, mortgage securities, fixed income and detailed knowledge of various interest rate models, depending on where you will be interviewing.
  • Understanding of simulation techniques such as generating simulations from various distributions and inverse transform theory, details of the Monte Carlo method and how simulation is used to value various financial instruments (also when you need to simulate as opposed to using other methods), possibly including variance reduction methods; random and pseudo-random number generation techniques, the pros and cons of various techniques, extreme value theory and so forth.
So where do you go to acquire this knowledge if you don’t already have it? Some good places to start are with free online MIT courses (and other universities) already discussed in a previous column. Some of the books that I recommend for your library include:
 
Financial Knowledge
You can get a great foundation in most of what you need to get started with John Hull’s book Options, Futures and Other Derivatives available on amazon.com and at other retailers. You can even get a student solution manual. 
 
Financial Engineering 
Baruch University professor Dan Stefanica has just come out with a great foundation book for most of what you’ll need to know and he has other books planned in this series. This type of book has been long needed.  There is a solution manual available as well!
 
  
Probability and Statistics 
I love the Schaum’s series for quick review. They’re inexpensive and comprehensive. There are a number of outlines including:
 
 
  
Time Series Analysis 
I recommend getting a copy of S-Plus and buying Ruey Tsay’s book, Analysis of Financial Time Series, and working through the examples. Professor Tsay, of the University of Chicago, has a lot of worked examples and solutions from the book on his website as well.
 
There’s a great time series book on University of Chicago Professor John Cochrane’s website, and it’s completely free:
 
Monte Carlo Methods 
The book by Paul Glasserman of Columbia University, Monte Carlo Methods in Financial Engineering (Stochastic Modelling and Applied Probability), is a classic in the field. 
 
If you buy these from Amazon, you can also often get a digital edition that you can view online from any computer. 
 
Stochastic Calculus for Finance 
There are a lot of great books for learning stochastic calculus,  but you can’t go wrong with Steve Shreve’s books:
 
 
 
Quantitative Interview Prep Books
There are books on finance and advanced finance interview prep, including my book from Vault.com, which should give you the basics. 
 
 
2) Vault Guide to Advanced Finance & Quantitative Interviews  (disclaimer: this is my book)
 
 
5) Quant Job Interview Questions and Answers, by Mark Joshi, Nick Denson and Andrew Downes. 
 
Matlab
Matlab is a powerful and widely used tool in quantitative finance.  The mathworks site has lots of sample code, examples and webinars.  There are some great free resources to help you learn this tool as well.  I have some of these posted on my blog in the Matlab category 

This should get you started.  Good luck, and if you have questions, just post them in the comments section.

Tags: including, calculus, probability, time, methods, ...
A trail of 1 page