enjoylife's Stuff

Home » enjoylife (6 trails)
enjoylife's Stats (public trails only):
Trails created: 80
Marks created: 1245
Views received: 100,379
Positive ratings: 1
Negative ratings:
Comments received: 3
Comments left: 0
super master (enjoylife)

enjoylife's Trails: code    (view all)

The Solution

Customizing the list of filters isn't an obvious action, but nor is it difficult if you're comfortable with text editors (and Eclipse users certainly should be). There may be other ways, but this is what I did:

  1. Locate the directory of the Eclipse plugin being used for editing. This is usually something like eclipse/plugins/[plugin name]_[version]. I spend most of my time in Aptana, so my plugin directory is eclipse/plugins/com.aptana.ide.scripting_0.2.9.16696.
  2. Open the plugin.xml file in a text editor.
  3. Find the extension element whose point attribute has a value of org.eclipse.ui.ide.resourceFilters.
  4. Create a new filter element like any others that already exist, but containing the needed file pattern. If no extension element is found for resourceFilters, see below.
  5. Restart Eclipse using the -clean switch.

Being an Aptana user, I found that the plugin.xml file I had to edit didn't contain any resource filters so I just created one by adding the following code to the bottom of plugin.xml:


   
   

Tags: plugin, eclipse, resourcefilters, aptana, ide, ...
A trail of 1 page
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
Hi,

I am currently following the advice at ThinkWIKI to get it working on my X61 tablet with Ubuntu 8.04.1 (everything else works great!).

My problem is that since I have 2.6.24 (which has some issues with the kernel patch) I am trying to use the Zen-Sources kernel.

However the kernels don't seem to be .tar.bz2 but rather .patch.bz2 meaning the
Code:

# tar jxf 2.6.27-rc7-zen3.patch.bz2

just reports back with an error complaining about it not being a tar file.
Tags: tar, jxf, meaning, kernel, tablet, ...
A trail of 5 pages
    How to List my tables in Oracle database

http://www.dba-oracle.com/bk_sqlplus_list_tables_views.htm

SELECT * FROM all_tables; <- all tables you have access to
SELECT * FROM user_tables; <- all tables owned by currently logged in user
SELECT * FROM dba_tables; <- all tables in database


I am glad to know that we have Database forum here.

Just installed Oracle database server under Ubuntu Linux, It did took some time but finally beast is installed.

Now how do I list tables? Mysql has
Code:
SHOW DATABASES;
USE mydb;
SHOW TABLES;
SELECT * FROM mytable;
So far I am able to login into the Oracle using command-line tool called SQL*Plus:
Code:
$ sqlplus scott/tiger
Now how do I list tables?

I am just taking print out of Oracle sql pdf but please give me command so that I know it is working.
Reply With Quote
  #2 (permalink)  
Old 12-19-2006, 02:03 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 848
nixcraft is an unknown quantity at this point
Default

To list all your tables in Oracle server, use the following command:
Code:
SELECT * FROM cat;
First connect to server using Oracle sql plus client:
Code:
sqlplus scott/tiger
Now type at sql> prompt:
Code:
SELECT * FROM cat;
Also don't forget to set the column widths
Code:
COL table_name FORMAT a30;
COL table_type FORMAT a30;
Now to get list of tables in oracle:
Code:
SELECT * FROM cat;
Tags: tables, code, sql, oracle, select, ...
A trail of 3 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
First off, if you love Baseball, skip this post for a minute and go claim one of the 1,000 beta accounts we have for Baseball Boss - click “register” on the top left and use the code “techcrunch” to get in. Then come back here and see why you’ll be glad you did.
Tags: “techcrunch”, “register”, you’ll, code, love, ...
A trail of 25 pages