Sunday, 3 July 2016

How to Avoid Anger? And what is life?

Angry is not an entity, you become angry, today medical science proof that when we are angry you are poisoning your system, by being angry. So why would you want to poison your system. Because only your mind is not taking instruction from you. Is not it, your mind is not taking instruction from you.

If it was taking instruction from you , you would have set peace full life.
You would not say angry.

So the concern is if you mind is not taking instruction from you then you have to paying instruction from you.

Why is it not taking instruction from you.  You should learn how to control it.
Angry happened accidentally , by chance .

Human file is not like, if out site sution is good then all inside of body is good, that is not how human life should be.

Human life should be like this, if I am good then everything becomes good .


Human consciousness should create situation, right now situation creating human conscious. that is not the right to shape of life.

How Do You Get To Know Yourself Fully?

You are paying too much attention around you, not enough attention to yourself.
The quality of life is essential determined by how you carry yourself.
Peacefully means, you have to control yourself.
For example, if you drive your car and wanted to turn right and due to some mechanical trouble if it moves to turn left, then can you peace fully drive the car.

Peace is the highest goal of your life, it’s a fundamental right.

How Do You Stop the Mind's Chatter?

If your mind producing absolute presenting mess for you, then why do you want to stop the mind chatter.

Would you thing, how to stop this mind. No you would not.

You are thinking to stop your mind from chatter because of your mind producing lots of unpleasant things.

Solution will be, you and your mind keep in distance, means you do not need physically keep distance, but feel the distance.

For example:-

You stuck in traffic jam and struggling through traffic, that’s one experience.
Another experience is you are in a hot air balloon and looking the traffic.

Mind should not be telling its own story all the time, it should tell the story what you wanted to tell.

Wednesday, 22 June 2016

Monday, 20 June 2016

8 strategies to help earn safe & steady returns from F&Os

1) Portfolio hedging

Useful if:
  • You hold a sizeable number of shares of a company.
  • Buy a put to hedge against a possible downturn in the share price. This is only a hedging strategy and will not result in gains for you. If the stock price falls, your losses on shares will be offset by the gains from the put option.

You hold: 2,000 shares of NTPC priced at Rs 159.

Your trade: Buy a put of strike price Rs 160 priced at Rs 3.80.

You pay: Rs 7,600 (lot size 2,000 shares x Rs 3.80)

If the stock falls to Rs 150 on the expiry date, the put will gain Rs 12,400, thus reducing your losses on the share portfolio by that amount.

If the stock rises above Rs 160 by expiry, the put will be worthless, thus reducing your gains from the stock portfolio by the premium amount.

2) Covered Call

Useful if:
  • You hold a sizeable number of shares of a company and expect its share price to remain range-bound.
  • Sell a call of a higher strike price. If the stock price does not rise beyond the strike price till expiry, you pocket the premium.

You hold: 1,000 shares of Tata Motors priced at Rs 280.

Your trade: Sell Tata Motors call of strike price Rs 300 priced at Rs 3.05.

You receive: Rs 3,050 (lot size 1,000 shares x Rs 3.05).

If the stock stays below Rs 300 till the expiry date, you gain the premium of Rs 3,050.

If the stock rises above Rs 300 by expiry and the option is exercised, your will have to pay the buyer the value of the call.

My Note:- Not Recommended

3) Covered Put


Useful if:
  • You hold a sizeable number of shares of a company and expect its share price to remain range-bound.
  • Sell a put of a lower strike price. If the stock price does not fall below the strike price till expiry, you pocket the premium.

You hold: 500 shares of Tata Steel priced at Rs 392.

Your trade: Sell a put of strike price Rs 380 priced at Rs 4.30.

You receive: Rs 2,150 (lot size 500 shares x Rs 4.30).

If the stock stays above Rs 380 till the expiry date, you gain the premium of Rs 2,150.

If the stock falls below Rs 380 by expiry and the option is exercised, your will have to pay the buyer the value of the put.

My Note:- Not Recommended

4) Long straddle

Useful if:
  • The underlying either moves up or down significantly, especially when the results are to be announced.
  • You buy a call and a put of the same strike price and expiry date. This is a non-directional strategy that works if the security shows a big movement before expiry. Let us see how it works for Infosys, which is trading at Rs 2,334.

Your trade: Buy a Rs 2,350 call for Rs 43 and a Rs 2,350 put for Rs 57.

You Pay: Rs 12,500 (Rs 43+57 = Rs 100 x lot size of 125 shares).

The buyer will break even if the Infosys stock price rises beyond Rs 2,450 or falls below Rs 2,250 by expiry. If the stock closes at Rs 2,350, the buyer stands to lose the entire premium paid by him.


5) Short Straddle

Useful if:
  • The share price is trapped in a range and not showing any signs of breaking out.
  • You sell a call and a put of the same strike price and expiry date. You will gain if the security does not show a big movement before expiry. ITC is trading at Rs 301.

Your trade: Sell a Rs 300 call for Rs 7 and a Rs 300 put for Rs 4.60.

You receive: Rs 11,600 (Rs 7+4.6 = Rs 11.60 x lot size of 1,000 shares).

The seller will pocket the entire premium if ITC remains at Rs 300 by expiry. He will still gain if the stock does not rise beyond Rs 311.60 or falls below Rs 289.40 by expiry. If the movement is bigger, the buyer will lose.



6) Bull Spread

Useful if:
  • You are moderately bullish on a stock and don't expect too big an upside.
  • You buy a call of a strike price close to the share price and sell a call of a higher strike price. This recoups some of the premium you paid for the lower strike price call. Bharti Airtel is trading at Rs 324.70.

Your trade: Buy a Rs 320 call for Rs 12.70 and sell Rs 340 call for Rs 4.60.

You pay: Rs 8,100 (Rs 12.70-4.60 = Rs 8.10 x lot size of 1,000 shares).

The buyer will break even if the Bharti stock price rises beyond Rs 328.10. He will make Rs 12,900 if the price rises to Rs 340. But if it rises further, his gains won't go up. Selling the higher call helps contain the risk but also limits the upside.

My Note:- Not Recommended


7) Bear Spread

Useful if:
  • You are moderately bearish on a stock but don't expect too big a fall.
  • You buy a put of a strike price close to the share price and sell a put of a lower strike price. This helps you recover some of the premium you paid for the higher strike price put. Reliance Industries is trading at Rs 843.

Your trade: Buy Rs 840 put for Rs 18.40 and sell Rs 820 call for Rs 9.60.

You Pay: Rs 2,200 (Rs 18.40-9.60 = Rs 8.50 x lot size of 250 shares).

The buyer will break even if the Reliance stock price falls to Rs 834.20. He will make Rs 2,800 if the share price falls to Rs 820, but if it falls further, his gains will be curtailed. Selling the lower put helps contain the risk in the trade but also caps the upside.


My Note:- Not Recommended


8) Naked Puts & Calls

Useful if:
  • You want to speculate on the future rise or fall of a stock or indices.
  • Your gains are unlimited but your loss is limited to the premium paid by you.

Your trade: Buy a Nifty call of strike price Rs 6,000 priced at Rs 44.

You Pay: Rs 2,200 (lot size 50 shares x Rs 44).

If the Nifty index moves above 6,000 points by expiry date, your call will gain in value. Your profits will start when it moves above 6,044 points.

If the index remains below 6,000 or even crashes to 5,600, your loss will be limited to the premium paid by you.


Source:-

http://articles.economictimes.indiatimes.com/2012-12-10/news/35726500_1_share-price-expiry-date-lot-size

Sunday, 24 April 2016

STOP LOSS


1) For Buy and Sell:

a) ICICI BANK is trading at Rs. 280.55 at 10:35 AM. I feel that price may go up. 
b) So I am buying 100 Units at Rs. 280.60 in Limit Price Mode. My target is 290 plus. 
c) But for a safe side i don't want to loose more than Rs. 5/- a share. 
d) For that I am placing a Sell Order in Stop loss mode. With Sale Price is 274.50 and trigger price is 274.95.
e) I am choosing these values because, Round values are always strong. My guess is if it breaks 275 it may go further down. So I am using 274.95 as trigger price instead of using 275. 
f) For selling price i have give Rs. 274.50, reduced 45 Paise from the trigger price. Because when the price falls to 274.95 an sell order is placed immediatly for 274.50
g) It would help us if the price reduces fastly.
h) If the price crosses to 290 i would happily cancel the stop loss order and place a sell order for 290 and above.
Step One --  BUY ORDER -- Buying – 280.60 Limit Price
                    Target Price – 290
                    RISK = -5

Step Two – SELL ORDER -- Market Price -   274.5 and Trigger Price 274.95



2) For Sell and Buy:

a) ICICI BANK is trading at Rs. 280.55 at 10:35 AM. I feel that price come down. 
b) So I am Selling 100 Units at Rs. 280.60 in Limit Price Mode. My target is 270 plus. 
c) But for a safe side i don't want to loose more than Rs. 5/- a share. 
d) For that I am placing a Buy Order in Stop loss mode. With Buy Price of Rs. 285.50 and trigger price is 285.05.
e) My guess is if it breaks 285 it may go further up. So I am using 280.05 as trigger price instead of using 280. 
f) For selling price i have give Rs. 285.50, Increased 45 Paise from the trigger price. Because when the price increases to 285.05 an buy order is placed immediatly for 285.50
g) It would help us if the price increases fastly.
h) If the price drop to 270 i would happily cancel the stop loss order and place a buy order for 270.

Step One --  SELL ORDER – Short Selling – 280.60 Limit Price
                    Target Price – 270
                    RISK = 5

Step Two – BUY ORDER -- Market Price -   285.5 and Trigger Price 285.05

Friday, 11 September 2015

SSL Certificates Openssl Keytool Keystore



Creation of Keystore and CSR file

Follow below steps for creation of Keystore:

Create new folder on D drive. 
Example: D:/SSLCertificate
Go to command prompt
Go to D drive by entering d: and hit ENTER









Go to Program filesà Java à JDK version à Bin

Example: - D:\Program Files\Java\jdk1.7.0_67\bin




Enter below command on command prompt to generate KEYSTORE



Command for creation of Keystore:


keytool -genkey -alias tomcat -keyalg RSA -keystore "<<Full path withFolder name>>" -keysize 2048 


Example for creation of keystore:


keytool -genkey -alias tomcat -keyalg RSA -keystore "D:/SSLCertificateRenew/tomcat.keystore" -keysize 2048         


After entering above command it will ask for Password.
Enter password as “changeit” [All small characters]
Or get the password from the path “D:\TrackWiseWeb\apache-tomcat\conf\server.xml” attribute name key store Password
Below mandatory information needs to be filled after entering password



Common Name = <<Certificate URL>>
Organizational Unit = <<Organization unit>>
Organization = <<Organization name>>
Locality = <<Location where the server located>>
State = <<State of the location>>
Country = <<2 digit country code>>



Important Note:Common name, location, State & country will change as per certificate location. Organizational unit, Organization information will not be change.



Once above information provided it will show information like






Enter YES for confirmation of information. This will create keystore.

Below are the steps for creation of CSR:
On same command window enter below command for creation of
CSR File





Command for creation of CSR:

  
keytool -certreq -keyalg RSA -alias tomcat -file "<<Full Path for CSR file generation>>" -keystore "<<Full Path of Keystore file>>"



Example for creation of CSR:


keytool -certreq -keyalg RSA -alias tomcat -file "D:/SSLCertificateRenew/certreq-twqaint_2013.csr" -keystore "D:/SSLCertificateRenew//tomcat.keystore"



Once CSR command enter in to the command prompt, it will ask for the 
Password. Enter password as “changeit” [All small characters]








IMP Note: Keystore file needs for deployment activity, please keep file in Safe location.






Add certificate in keystore

Add newly received SSL certificate in keystore file, which was generated in previous steps  

Follow below steps for importing cer file to keystore.


Go to command prompt
Go to D drive by entering d: and hit ENTER




Go to Program filesà Java à JDK version à Bin




Download latest Primarty.cer and Secondary.cer files from http://www.verisign.com/support/roots.html site. Keep Primary and secondary files on same folder where keystore generated
Import Primary, Secondary and new certificate to keystore
Command to import files as:


Command to import Primary cer file in to keystore:

keytool -import -alias root -keystore "<<Keystore path>>" -trustcacerts -file “<<Primary Cer file path>>"

Example for Import Primary cer file:

keytool -import -alias root -keystore
"D:/SSLCertificateRenew/tomcat.keystore" -trustcacerts –file
"D:/SSLCertificateRenew/primary.cer"



keytool -import -alias root -keystore "D:/SSLCertificateRenewal/Latest/tomcat.keystore" -trustcacerts -file "D:/SSLCertificateRenewal/Latest/primary.cer"




Command to import Secondary cer file in to keystore:

keytool -import -alias intermediate -keystore "<<Keystore path>>" -trustcacerts -file “<<Secondary Cer file path>>"

Example for Import Secondary cer file:

keytool -import -alias intermediate -keystore 
"D:/SSLCertificateRenew/tomcat.keystore" -trustcacerts –file
"D:/SSLCertificateRenew/secondary.cer"


keytool -import -alias intermediate -keystore "D:/SSLCertificateRenewal/Latest/tomcat.keystore" -trustcacerts -file "D:/SSLCertificateRenewal/Latest/secondary.cer"






Command to import New Certificate cer file in to keystore:

keytool -import -alias tomcat -keystore "<<Keystore path>>" -trustcacerts -file “<<Secondary Cer file path>>"

Example for Import New Certificate cer file:

                                               keytool -import -alias tomcat -keystore
"D:/SSLCertificateRenew/tomcat.keystore" -trustcacerts –file

"D:/SSLCertificateRenew/cert.p7b"


keytool -import -alias tomcat -keystore "D:/SSLCertificateRenewal/Latest/tomcat.keystore" -trustcacerts -file "D:/SSLCertificateRenewal/Latest/cert.p7b"





 

How to move an SSL certificate from Tomcat to Apache Resolution

Note: Keytool and OpenSSL are third party tools which are not supported by Symantec


Steps: 1) Get TEPRD certificate with keystore from support team.


1.1: Use keytool to convert the keystore to a p12 file 1.
Run the following keytool command to create a p12 file:


keytool -importkeystore -srckeystore [originalkeystore] -destkeystore [new_keystore_mystore.p12] -deststoretype PKCS12 -srcstorepass [keystore_password] -deststorepass [new_password] -srcalias [original_alias] -destalias [new_alias] -srckeypass [original_alias_password] -destkeypass [new_password] -noprompt



1.2.The output file is [new_keystore_mystore.p12]



1.3.Use Openssl to extract the private key:

openssl.exe pkcs12 -in new_keystore_mystore.p12 -nocerts -out privatekey.pem



1.4.Use Openssl to extract the certificate:

openssl.exe pkcs12 -in new_keystore_mystore.p12 -clcerts -nokeys -out publicCert.pem



Save the two files (privatekey.pem and publicCert.pem) to the Apache server



Step 2): Import files into the Apache server:


2.1. Download the intermediate certificate. Symantec Intermediate CA certificates can be found here: AR657


2.2. Using a plain text editor, save the Intermediate CA certificate as intermediate.crt, to the appropriate folder.




 
 
keytool -import -alias root -keystore "D:/UpgradeRepos/_STAGING/Production_SSL/tomcat.keystore" -trustcacerts -file "D:/UpgradeRepos/_STAGING/Production_SSL/secondary.cer"





keytool -import -alias intermediate -keystore "D:/UpgradeRepos/_STAGING/Production_SSL/tomcat.keystore" -trustcacerts -file "D:/UpgradeRepos/_STAGING/Production_SSL/secondary.cer"





keytool -import -alias tomcat -keystore "D:/UpgradeRepos/_STAGING/Production_SSL/tomcat.keystore" -trustcacerts -file "D:/UpgradeRepos/_STAGING/Production_SSL/pww.trackwise-intf.amec.dharmaraj.com.cer"





keytool -import -alias tomcat -keystore "D:\UpgradeRepos\_STAGING\Production_SSL\tomcat.keystore" -trustcacerts -file "D:\UpgradeRepos\_STAGING\Production_SSL\cert.p7b"





keytool -import -alias tomcat -keystore "D:\UpgradeRepos\_STAGING\Production_SSL\tomcat.keystore" -trustcacerts -file "D:\UpgradeRepos\_STAGING\Production_SSL\cert.p7b"








keytool -list -v -keystore "D:/SSL_PK7/SSLCertificate/tomcat.keystore"



keytool -importkeystore -srckeystore "D:/SSL_PK7/SSLCertificate/tomcat.keystore" -destkeystore "D:/SSL_PK7/SSLCertificate/tomcat.keystoreNew.p12" -deststoretype PKCS12 -srcstorepass "changeit" -deststorepass "changeit" -srcalias "tomcat" -destalias "tomcat" -srckeypass "changeit" -destkeypass "changeit" –noprompt





3.Use Openssl to extract the private key:

openssl.exe pkcs12 -in new_keystore_mystore.p12 -nocerts -out privatekey.pem





openssl.exe pkcs12 -in "D:/SSL_PK7/SSLCertificate/tomcat.keystoreNew.p12" -nocerts -out "D:/SSL_PK7/SSLCertificate/privatekey.pem"


openssl.exe pkcs12 -in "D:/SSL_PK7/SSLCertificate/tomcat.keystoreNew.p12" -nocerts -out "D:/SSL_PK7/SSLCertificate/publicCert.pem"



 D:\SSL_PK7\openssl-0.9.8e_X64\bin\openssl.exe pkcs12 -in tomcat.keystoreNew.p12 -nocerts -out "D:/SSL_PK7/SSLCertificate/privatekey.pem"