23 April 2021

Homemade Khari in Belgium...

What is Khari?


Khari is a light and fluffy biscuit that is made from flour and butter. This is plain puff pastry. Dough made from flour and butter is baked until it becomes golden in color and crunchy. Khari can be made plain or sprinkled with spices for extra flavour. It is one of the snacks which is often served in Indian homes with Chai (tea). These are perfect dippers and taste enricher for a good cup of Tea. This is one of the bakery item like toast, bun pav, bread, etc..


I am currently in Belgium. I found Toast (Rusk) for Tea but not Khari. There are ample options of Biscuits, Breads, Cakes. But these options do not enriches taste of tea as much Khari (of course this is debatable statement and there are exceptions). 


Some weeks back during Pizza (homemade) party in nearby park, this idea struck. There are many types of fresh dough available in Belgium like Pizaadeeg, Bladerdeeg, etc. For this recipe I am referring to Bladerdeeg (puff pastry) base. You can make a good Khari out of this. Here are the steps


1. Get Bladerdeeg from grocery stores like Aldi, Colryut, Delhaize, etc..




2. Spread it on plane surface. Make it proper flat so there are no cuts in it. Do not press too much just spread it evenly.




















3. Take a pizza cutter and cut it in strips. Width should be around 4 cm. You can try different widths.



4. Place 2 strips on each other. You can try 3 or 4 layers.

5. Separate them from each other so that they don't get mixed up.


 

6. Put it in the oven/ Microwave. I used Oven, baked it for 15 mins at 200 degree Celsius.


 


7. You will see golden color and puffed Khari, it is a time to take out.
8. Keep it in open air and let it cool down. 
9. Taa-Daa you have crunchy, crispy, home-made Khari ready.  


Other option is to buy it from Indian grocery stores like Chirag Indian Grocery, Get Grocery Indian SpicesVita Natural, etc...


22 March 2021

शेअर मार्केटमध्ये दीर्घकालीन मालमत्ता कशी तयार करावी ??

(English Version)

गुंतवणूकीसाठी शेअर मार्केट हे खरोखर उत्तम परतावा देणारे आणि उच्च जोखीमचे क्षेत्र आहे. मी माझ्या बर्‍याच मित्रांसह (नकुल, योगेश, मनोज आणि इतर) शेअर मार्केटमध्ये दिर्घकालिन मालमत्ता तयार करण्याच्या कल्पनेवर चर्चा करीत होतो. एका म्हणीनुसार, मोठ्या गोष्टी एका रात्रीत तयार होत नाहीत, त्याचप्रमाणे मोठी मालमत्ता एका दिवसात किंवा अगदी अल्प कालावधीत तयार केली जाऊ शकत नाही. दीर्घकालीन मालमत्ता तयार करण्याचे बरेचे मार्ग आहेत, सगळ्यात जास्त वापरला जाणारा एक मार्ग म्हणजे घर/ जमिन/ दुकान (स्थावर मालमत्ता) विकत घेणे. माझ्या मते ते एक फार मोठे दायित्व आहे. आपण एकदा ते विकत घ्या आणि दीर्घ मुदतीसाठी खर्च करत रहा उदा, कर्जाचे हप्ते, नगरपालिकेचा मालमत्ता कर, मासिक देखभाल खर्च आणि नंतर बऱ्याच कालावधीनंतर ती मालमत्ता स्वतःच्या मालकीची होते. इतरही मार्ग आहेत जसे की छोटी रक्कम बऱ्याच मोठ्या कालावधीत गुंतवत रहा उदा म्युचुअल फंड, बॅंकेत आवर्ती ठेव (रिकरिंग डिपॉजीट). ह्या ब्लॉगमध्ये मी ह्या मार्गांवर काही भाष्य करु इच्छित नाही.


शेअर बाजारासारख्या उच्च-जोखमीच्या क्षेत्रात दिर्घकालिन मालमत्ता तयार करणे शक्य आहे काय?

आपण हुशारीने वागल्यास, होय हे शक्य आहे. त्यातही हे करण्याचे बरेच मार्ग आहेत. त्यापैकी एक मार्ग खालील प्रमाणे मी सुचवू इच्छितो.

मी एशियन पेंट्सचे २५ शेअर्स प्रत्येकी १३७० रु. किमतीने मे २०१९ मध्ये विकत घेतले. डिसेंबर २०२० पर्यंत या शेअर्सची किंमत प्रत्येकी २७७० इतकी झाली. तस पाहिले तर ही वाढ १००% पेक्षा जास्त आहे. टीपः मी काही फार चांगला शेअर बाजारातील गुंतवणूकदार नाही. या कंपनीच्या धंद्याची मूलभूत माहिती असल्यामुळे आणि हे समभाग १ वर्षापेक्षा अधिक काळ धरून ठेवल्यामुळे मला हा परतावा मिळाला. माझे सर्वच समभाग काही इतका छान परतावा देत नाहीत.

डिसेंबर २०२० मध्ये मी प्रत्येकी २७०० या भावाने १३ समभाग (शेअर्स) विकले. त्यातून मला रु. ३५००० मिळाले. मे २०१९ मध्ये मी कर आणि दलालीची रक्कम धरुन एकुण रु. ३४४५० मध्ये २५ समभाग घेतले होते. आता माझ्याकाडे १२ शेअर्स उरले आहेत आणि खरतर त्यासाठी मी एकही रुपया भरलेला नाही. या पुढे १५-२० वर्षांसाठी हे १२ समभाग मी विकणारच नाही. हे समभाग एका मालमत्तेप्रमाणे कार्य करतील. यांची किंमत वाढतच जाईल असा अंदाज आहे.

जर एखाद्याने असे समभाग (शेअर्स) स्वतःच्या पोर्टफोलिओमध्ये गोळा करुन ठेवले तर १५-२० वर्षाच्या कालावधीत शेअर मार्केटमध्ये अशाप्रकारे दीर्घकालीन मालमत्ता निश्चितच तयार केली जाऊ शकते.


यावरील अधिक विचार

  1. काय मी त्या समभागांचा मागोवा घ्यायला पाहिजे?
    • शेअर बाजारासारख्या उच्च जोखमीच्या क्षेत्रात, स्टॉप-लॉस खूप महत्वाचे आहे. शेअर बाजार वाढतच जाईल पण हा समभाग वाढतोय की नाही हे पहाणे स्वतःचे काम आहे. गुंतवणूकीतून कधी बाहेर पडायचे हे देखील महत्वाचे आहे. शेअर बाजारात काहीही बंद डोळ्यांनी ठेवू नये. किंमतीचा मागोवा नक्किच करत रहावा. जर किंमत खाली पडली किंवा कंपनीची मूलभूत तत्त्वे नष्ट होत असतील तर समभाग विका आणि त्यातून बाहेर पडा. जरीही वर सांगितल्यानुसार मी काहीही रक्कम दिलेली नसेल तरीही किंमत कमी झाल्यास समभाग विकुन पैसे काढणे महत्वाचे आहे.
  2. समभाग विकण्यासाठी योग्य किंमत किती असायला हवी?
    • यासाठी कोणतेही एकच उत्तर नाही. जेव्हा आपल्याला स्वतःला वेळ योग्य वाटेल तेव्हा त्यातून बाहेर पडा. महागाईच्या दराने तुम्ही किंमत ठरवू शकता. तुम्ही १०० रुपायांचे समभाग २०२० मध्ये वरील पध्दतीने जमा केले होते. समजा ८% महागाईचा दर आहे. १० वर्षानंतर चक्रवाढ व्याजानुसार याची किंमत २१६ रुपये झाली पाहिजे. जर का समभागांची किंमत जास्त असेल तर विकु नका पण जर कमी असेल तर नक्कीच विचार करा. पणा हा निर्णय सर्वस्वी तुमचाच असला पाहिजे. 

 

19 January 2021

Backstage on Docker

This is WIP POST

 

I followed below steps (https://roadie.io/blog/backstage-docker-service-catalog/) to install backstage on docker on Mac machine

Pre-requisite

  1. Installed Docker for Mac using https://docs.docker.com/docker-for-mac/install/ 
    1. Once installed, verify by running "docker" command on terminal. 
    2. you will also need Docker compose which is a part of Docker desktop for Mac. 
    3. Validate it is available by running "docker-compose" command on terminal
  2. Install node.js on Mac machine
    1. verify the insalled version by running "node -v" command on terminal.
  3. Install yarn on mac machine
    1. Verify installed version by running "yarn" command on terminal. 

Step 1 - Scaffold a Backstage application


  1. Create a scaffold app
    1. Run "npx @backstage/create-app --version"
    2. Run "npx @backstage/create-app"
    3. Enter name of application "first-app"
    4. Use Database as "PostgreSQL"
    5. It will show "Successfully create first-app"

Step 2 - Building a Docker image

Now we will create docker image

  1. Go to packages directory of first-app
    1. run "cd first-app/packages"
  2. Here you will see 2 folders
    1. app
    2. backend
  3. Run command "yarn workspace backend build-image"
    1. This will take around 120 seconds. it will change based on internet speed. 
  4. Check if docker image is created
    1. Run "docker images" command
    2. You should see repository "backstage" with 1.1Gb size.   
  5. Now run this image
    1. Run "docker run backstage" command
    2. Here you will get an error about unable to connect "127.0.0.1:5432". It is expected as we have not started postgreSQL 


Next step is to integrate backstage with LDAP. 
There is no straight road to this solution. The details are discussed at https://github.com/backstage/backstage/issues/1807 page. In here they have discussed LDAP integration via keycloak (https://www.keycloak.org/). Below steps are followed to implement this
  1. Create docker image for keyCloak
    1. It is simple and mentioned https://www.keycloak.org/getting-started/getting-started-docker 
    2. Run command "docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:12.0.1"
    3. This will download and start the local docker for KeyCloak. The above command will take around 1 min to start image. 
    4. You should be able to see admin panel
      1. http://localhost:8080/auth/admin 
    5. Login with admin user with password as admin. This information is given while starting KeyCloak docker image. 
    6. Create realm
      1. Enter the name and click on Create button
      2. This will redirect you to this new realm. 
    7. Create User
      1. Click "users" in left hand menu
      2. Click on Click Add user (top-right corner of table)
      3. Fill in the form with the following values:
        1. Username: Vikrant
        2. First Name: Your first name
        3. Last Name: Your last name
      4. Click Save
    8. Create User Credential. The user will need an initial password set to be able to login. To do this:
      1. Click Credentials (top of the page)
      2. Fill in the Set Password form with a password (Test123)
      3. Click ON next to Temporary to prevent having to update password on first login
      4. Clock on "Set Password" button
      5. On creation you still see a new row with type password
    9. As user is created successfully, lets try to login with this new user
      1. open the realm which you have created above. Make sure the realm name is properly entered in URL. 
      2. http://localhost:8080/auth/realms/InfosysKeyCloak/account
      3. enter username and password
      4. This should show you the home page for this user. 

Create local image for OpenLDAP
  1. Get the "docker-compose.yml" file from https://github.com/osixia/docker-openldap/tree/stable/example location
  2. Store this file locally in a directory
  3. Open terminal. Navigate to the above directory. 
  4. Run "docker-compose up" command. First time it will take couple of minutes to download the files and start 2 dockers
  5. You may face an issue of port for phpldapadmin container. Its port can be changed by modifying port under "phpldapadmin" image configuration.
    1. I have changed port to 8081
  6. Using the instructions mentioned on https://scytalelabs.com/setup-and-configure-openldap-using-docker-image-on-ubuntu-16-04/ page setup some configuration in openLdap
  7. Open php ldap admin
    1. open url : http://localhost:8081/
  8. Enter credentials
    1. username: cn=admin,dc=example,dc=org
    2. password: admin


Integrate keyCloak with Ldap serer
  1. For this i am following steps mentioned https://www.janua.fr/ldap-integration-with-keycloak/ page.