Friday, August 28, 2015

How to make shared files into your own on google drive.

Motivation:
  • Not convenient to find a doc in "shared with me" folder, shared files are too many and not organized in any way. 

Solution: 
  • Make shared docs that you are interested at your own.

How to do make them your own?
  1. find a shared doc (call it A, owned by someone) at "shared with me"
  2. add it to "my drive"
  3. make a copy of the shared doc at "my drive" (copy is B, owned by me)
  4. Remove the shared doc (A) from "my drive"
  5. Rename B to A. Now A is yours !!!
  6. Move A to whatever folder you want to organize files.

Thursday, August 6, 2015

harbor freight tools -- to be continued....

5 drawer tool cart
air nailer / stapler
alkaline battery
angle grinder
automotive diagnostic and analysis system
auto ramp sets
battery maintainer and float charger
bigfoot hand truck
booster cables
brake bleeder and vacuum pump kit
cargo carrier
cement mixer
chain saw
clamp and cut edge guide
compound miter saw  
digital floor safe
digital inspection cameras
digital reading
door screen
drawer roller cabinet
elastic stretch cords
electric cut-off tool
electric impact wrench
electric paint spary gun
eletric winch ( hoist, haul, pull )
flashlight
floor jack
flux wire feed welder
grease gun
grease gun with cartridge
hammer
heavy duty tarp
hole saw set
horizontal shaft gas engine
hydraulic bottle jack
hydraulic equipment tool
hydraulic table cart
jack stand
jump-starter
ladder
long reach pliers set
magnetic parts holder
manifold gauge set
mechanic's glove
mechanic's shop towels pack of 50
motorcycle / ATV lifts
oil extractor
oil lift drain
oil pan with spout
pneumatic tire
polisher / sander
power inverter
racing jack
retractable air hose reel
rubber air hose
rubber pads for jack stands
sander
screwdrive set
snap ring pliers with interchangeable heads
swing back trailer jack
swivel vise
tool kit
trailer jack
trailer light kit
transfer pump
trilingual code readers
universal grip wrench
utility trailer
vacuum pump
wall mount parts rack
welding helmet
wheel chock
WORD : cartridge : a container holding a spool of photographic film, a quantity of ink, or other item or substance, designed for insertion into a mechanism.
WORD : denote : be a sign of; indicate.
WORD : elastic : (of an object or material) able to resume its normal shape spontaneously after contraction, dilatation, or distortion.
WORD :jagged : having rough, sharp points protruding.
WORD : miter : a joint made between two pieces of wood or other material at an angle of 90°, such that the line of junction bisects this angle
WORD : pliers : pincers with parallel, flat, and typically serrated surfaces, used chiefly for gripping small objects or bending wire.
WORD : pneumatic : containing or operated by air or gas under pressure.
WORD : reel : a cylinder on which film, wire, thread, or other flexible materials can be wound.
WORD :serrated : having or denoting a jagged edge; sawlike.
WORD : swivel : a coupling between two parts enabling one to revolve without turning the other.
WORD : wrench : a sudden violent twist or pull.
workbench

Monday, July 27, 2015

cut a big file into many pieces : split

Learn "split" via example: 

1. List the big file
[Deyong.Xu@t10a1 today]$ lr -h  mag_gfs_processor.o751319
-rw-r--r-- 1 Deyong.Xu g02 2.6G Jul 23 18:28 mag_gfs_processor.o751319

2. Split the file into piece of  139018569 bytes. ( 139M bytes / piece )
$ split    -b   139018569   mag_gfs_processor.o751319

3. List all the pieces
$ lr  -h    xa?
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xaa
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xab
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xac
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xad
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xae
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xaf
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xag
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xah
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xai
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xaj
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xak
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xal
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xam
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xan
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xao
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xap
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xaq
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xar
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xas
-rw-r--r-- 1 Deyong.Xu g02  139018569 Jul 27 18:37 xat
-rw-r--r-- 1 Deyong.Xu g02         16 Jul 27 18:37 xau

4. Pieces are named in following order: 
xa[a-z]
xb[a-z]
...
xz[a-z]   (xzz is the last piece you can go, otherwise, you will get "split: output file suffixes exhausted" error.) 

5. Restore file 
$  cat   xaa   xab  xac  >  a_big_file

Thursday, July 16, 2015

Crontab syntax

$ crontab -l
Display the current crontab on standard output.

$ crontab -r
Remove the current crontab.

$ crontab -e
Edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables(vi as default).
After you exit from the editor, the modified crontab will be installed automatically.


Syntax:
#  Minute   Hour   Day of Month       Month          Day of Week        Command   
#  (0-59)  (0-23)     (1-31)         (1-12 or Jan-Dec)    (0-6 or Sun-Sat)               
eg:  0       2          12             *                *                    /usr/bin/find

Note:  - Spaces to separate fields.
           - No space allowed between values for a field.

==============================================

Range: - two numbers separated with a hyphen.
             - range is inclusive.    
             - eg: 8-11 for an "hours" entry specifies execution at
               hours 8, 9, 10 and 11.

*    : - a special range from first to last for a field.
       - eg:  * in Hour field : all the hours from 0 to 23.

Step : - used in conjunction with ranges.
           - following a range with "/" specifies skips of the number's value
             through the range.
           - eg: "0-23/2" : to specify command execution every other hour
                                  (equal to "0,2,4,6,8,10,12,14,16,18,20,22").
                   "*/2" : to say "every two hours"

List: - a set of numbers (or ranges) separated by commas.
         - eg: "1,2,5,9"  or  "0-4,8-12".

Names : - can be used for the "month" and "day of week" fields.
                - first three letters of the particular day or month
                  (case doesn't matter).
               - ranges or lists of names are NOT allowed.

==============================================

eg:
#  Minute   Hour   Day of Month       Month          Day of Week        Command   
#  (0-59)  (0-23)     (1-31)    (1-12 or Jan-Dec)    (0-6 or Sun-Sat)               
eg:  0       2          12             *                *             /usr/bin/find
eg:  0       2          12             Feb            *            ~/abc.sh   > a.log   2>&1
eg:  0       0-2,5-20/3             *                */3         ~/abc.sh   > a.log   2>&1
eg:  0-59/5  2          1-31/3    *               0-6/2       ~/abc.sh   > a.log   2>&1

Friday, July 10, 2015

What is FHA loan

FHA loans are popular with mortgage borrowers because of lower down payment requirements and less stringent lending standards.

Simply stated, an FHA loan is a mortgage insured by the Federal Housing Administration, a government agency within the U.S. Department of Housing and Urban Development. Borrowers with FHA loans pay for mortgage insurance, which protects the lender from a loss if the borrower defaults on the loan.

View today's lowest mortgage rates
Why people get FHA loans

Because of that insurance, lenders can -- and do -- offer FHA loans at attractive interest rates and with less stringent and more flexible qualification requirements.

Following are seven facts that borrowers should know about FHA loans.
1. Credit scores
Minimum credit scores for FHA loans depend on the type of loan the borrower needs. To get a mortgage with a down payment as low as 3.5 percent, the borrower needs a credit score of 580 or higher.

Those with credit scores between 500 and 579 must make down payments of at least 10 percent.

People with credit scores under 500 generally are ineligible for FHA loans. The FHA will make allowances under certain circumstances for applicants who have what it calls "nontraditional credit history or insufficient credit" if they meet requirements. Ask your FHA lender or an FHA loan specialist if you qualify.

2. Minimum down payment is 3.5%
For most borrowers, the FHA requires a down payment of just 3.5 percent of the purchase price of the home. That's a "huge attraction," says Dennis Geist, senior director of compliance and fair lending at Treliant Risk Advisors and formerly a vice president of government programs for another lender. In late 2014, Fannie Mae and Freddie Mac reduced minimum down payments to 3 percent from 10 percent, but such loans have limited availability.

FHA borrowers can use their own savings to make the down payment. But other allowed sources of cash include a gift from a family member or a grant from a state or local government down-payment assistance program.

3. Closing cost may be covered.
The FHA allows home sellers, builders and lenders to pay some of the borrower's closing costs, such as an appraisal, credit report or title expenses. For example, a builder might offer to pay closing costs as an inducement for the borrower to buy a new home.

Lenders typically charge a higher interest rate on the loan if they agree to pay closing costs. Borrowers can compare loan estimates from competing lenders to figure out which option makes the most sense.

4.  Lenders must be FHA-approved.
Because the FHA is not a lender, but rather an insurer, borrowers need to get their loan through an FHA-approved lender (as opposed to directly from the FHA). Not all FHA-approved lenders offer the same interest rate and costs -- even on the same FHA loan.

Costs, services and underwriting standards will vary among lenders or mortgage brokers, so it's important for borrowers to shop around.

5. Two-part mortgage insurance
Two mortgage insurance premiums are required on all FHA loans: The upfront premium is 1.75 percent of the loan amount -- $1,750 for a $100,000 loan. This upfront premium is paid when the borrower gets the loan. It can be financed as part of the loan amount.

The second is called the annual premium, although it is paid monthly. It varies based on the length of the loan, the amount borrowed and the initial loan-to-value ratio, or LTV.
Annual premiums for FHA loans

    15-year loan, down payment (or equity) of less than 10 percent: 0.7 percent
    15-year loan, down payment (or equity) of 10 percent or more: 0.45 percent
    30-year loan, down payment (or equity) of less than 5 percent: 0.85 percent
    30-year loan, down payment (or equity) of 5 percent or more: 0.8 percent

6. Extra cash available for repair
The FHA has a special loan product for borrowers who need extra cash to make repairs to their homes. The chief advantage of this type of loan, called a 203(k), is that the loan amount is based not on the current appraised value of the home but on the projected value after the repairs are completed. A so-called "streamlined" 203(k) allows the borrower to finance up to $35,000 in nonstructural repairs, such as painting and replacing cabinets or fixtures.

7. Financial hardship relief allowed
FHA insurance isn't intended to be an easy out for borrowers who feel unhappy about their mortgage payments. But loan servicers can offer some relief to borrowers who have an FHA-insured loan, have suffered a serious financial hardship and are struggling to make their payments. That relief might be a temporary period of forbearance, a loan modification that would lower the interest rate or extend the payback period, or a deferral of part of the loan balance at no interest.

========================

extra info:

The mortgage market is diverse. Besides the standard fixed-rate and adjustable-rate mortgages and FHA-insured home loans, there are other types of mortgages.
Jumbo mortgage

A jumbo loan is a mortgage that's too big to be bought by mortgage giants Fannie Mae and Freddie Mac. In much of the country, the limit is $417,000. In expensive housing markets, such as Los Angeles, that number is higher. It maxes out at $625,500.

Jumbo mortgage rates generally are higher than rates on loans under the limits, called conforming loans.

Balloon mortgage

A balloon mortgage has regular monthly payments for a few years, and then the remaining balance has to be paid off in a lump sum. Generally, balloon mortgages are available only in rural areas.

With a balloon mortgage, you might make the monthly payments as if it were a 30-year loan. But the remaining balance would have to be paid in a lump sum after five, seven or 10 years, or some other agreed-upon period. You would be expected to refinance if you don't have enough cash to pay off the mortgage.

Assumable mortgage
Assumable mortgages are rare. A homeowner with an assumable loan can hand off the loan to a buyer instead of paying it off using proceeds from the home sale.

Construction-to-permanent mortgages

Construction loans help people who want to build homes rather than buy existing ones. They typically feature a two-step borrowing process. During construction, money is paid periodically to contractors as they complete work, and you pay interest on the outstanding amount.

After the house is completed, the loan is converted into a permanent loan -- usually, a standard fixed-rate or adjustable-rate mortgage.

Seller financing
Seller financing is an agreement in which the seller of the home provides financing to the buyer. The buyer makes monthly payments to the seller instead of the bank. A promissory note is secured by the property. This type of financing often includes an assumable mortgage.













Thursday, July 9, 2015

jupiter code review in eclipse

How to install jupiter in eclipse?
https://code.google.com/p/jupiter-eclipse-plugin/wiki/UserGuide


1)  .jupiter file  in eclipse root directory
   <Review id="Review_GFS_0p25deg">
    <Description>review code changes to replace gfs 1deg with .25deg. </Description>
    <Author>Deyong.Xu</Author>
    <CreationDate format="yyyy-MM-dd :: HH:mm:ss:SSS z">2015-07-09 :: 19:52:34:878 UTC</CreationDate>
    <Directory>review</Directory>
    <Reviewers>
      <Entry id="Deyong.Xu" name="Deyong.Xu"/>
      <Entry id="Kathy.Moore" name="Kathy.Moore"/>
      <Entry id="Komi.Wolou" name="Komi.Wolou"/>
      <Entry id="Paula.Freeman" name="Paula.Freeman"/>
      <Entry id="Tiros.Lee" name="Tiros.Lee"/>
    </Reviewers>
    <Files>
      <Entry name="src/Test.java"/>
      <Entry name="src/T2.java"/>
      <Entry name="src/T3.java"/>
    </Files>

Notes: 
a) Review ID: what is this code review about, a little description to make ID.
b) manually add more Review-ER IDs. (ID of individuals to review code)
c) Files to be reviewed need to be specified by code developer who invites others to review code.

2)  review/ sub-directory containing comments .
[dxu@nco-lw-dxu review]$ pwd
/export/cdbsrv/dxu/workspace/proj_one/review
[dxu@nco-lw-dxu review]$ lr
total 12
-rw-r--r--. 1 dxu cdb 1595 Jul  9 19:53 Review_GFS_0p25deg-Deyong.Xu.review
-rw-r--r--. 1 dxu cdb  836 Jul  9 19:53 Review_GFS_0p25deg-Kathy.Moore.review
-rw-r--r--. 1 dxu cdb  827 Jul  9 19:54 Review_GFS_0p25deg-Paula.Freeman.review



Thursday, July 2, 2015

nc-config utility

----------------------------------------------------------------
 Using the nc-config Utility to Find Compiler and Linker Flags
----------------------------------------------------------------

To assist with the setting of compiler and linker flags, the nc-config utility is provided with netCDF. The nc-config utility is a very simple script which contains the settings of the C and Fortran flags used during the netCDF build.

For example, the nc-config command can be used to get the command line options needed to link a C program to netCDF:

     nc-config --libs
     -L/usr/local/lib -lnetcdf -L/shecky/local_post/lib -lhdf5_hl -lhdf5 -lz

The nc-config utility can also be used to learn about the features of the current netCDF installation. For example, it can show whether netCDF-4 is available:

     ./nc-config --has-nc4
     yes

Use the –help option to nc-config for a full list of available information.

----------------------
1. Usage of nc-config
----------------------
[dxu@goesrgnrx bin]$  ./nc-config -h
unknown option: -h
Usage: nc-config [OPTION]

Available values for OPTION include:

  --help      display this help message and exit
  --all       display all options
  --cc        C compiler
  --cxx       C++ compiler
  --fc        Fortran compiler
  --cflags    pre-processor and compiler flags
  --fflags    flags needed to compile a Fortran program
  --has-dap   whether OPeNDAP is enabled in this build
  --has-nc2   whether NetCDF-2 API is enabled
  --has-nc4   whether NetCDF-4/HDF-5 is enabled in this build
  --has-hdf5  same as --has-nc4
  --has-f77   whether Fortran 77 API is enabled in this build
  --has-f90   whether Fortran 90 API is enabled in this build
  --has-c++   whether C++ API is enabled in this build
  --libs      library linking information for netcdf
  --flibs     libraries needed to link a Fortran program
  --prefix    Install prefix
  --version   Library version

----------------------------------------------
2. Show library linking information for netcdf
----------------------------------------------
[dxu@goesrgnrx bin]$ nc-config    --libs 
-L/psd14/linux/arongone/rpmbuilds/netcdf/netcdf-4.0.1-1_aer.el5-root/opt/GOESR/local/lib -lnetcdf -L/usr/lib64 -lhdf5_hl -lhdf5 -L/usr/lib64 -lz