Skip to content

How I cured my acid reflux / gerd naturally.

I used  to get heart burn and acid reflux sometimes since my childhood. But it became regular last year and since last few months it become daily. I could not sleep in night. I used to get up and have fenugreek seeds to  get me relief but that was not helping me to cure the acid reflux permanently. I went to doctor and he suggested my pills may for life long . But I did not wanted to take pills. I never did in my past. I wanted to cure this naturally. Here are some of the things which worked for me and I am able to cure this diseases.

  • Raw Honey : – I searched the youtube and found this video which suggested RAW HONEY as miracle food for curing acid reflux. This video really helped me https://www.youtube.com/watch?v=qSp8etFbIdU
  • Sea Weed capsules: – Some one suggested sea weed capsules and they really worked miracle for me. I took these before meal. You can buy them here http://www.uncleharrys.com/store/nutrition/capsules/seaweed-100-vegetable-capsules
  • Drink 4 glass of water once you get from bed: This will clean of all the extra acidity from the night.
  • Exercise : Do regular exercise. Make sure you are sweeting while you do your exercise. Because that remove lot of toxicity from you body.
  • Eat lot of leafy green : Eat leafy green salad during your meals, this really help in reducing the acidity.
  • Eat chyawanprash : This is natural supplement made in India can be found on indian shops easily.
  • Apple cider vinegar : Although acidic but works wonder to give immediate relief from acidity

Once I applied all these for one month I don’t get acidity anymore. Hoping that this will help many to avoid going to doctor and taking any pills or surgery for gerd and avoid unnecessary medical costs.

 

Advertisements

How to configure Graphviz with lyx to generate PDF files

Lyx is awesome tool if you want create documents without being bogged down by formatting details. It provide lot of integration with other software like plantuml or graphviz. In this tutorial I am providing step by step guide how to configure GraphViz with lyx. These instructions are for windows but should not be very different for linux.

 

1) First install graphViz software on your system.

2) Configure the Graphviz path in the lyx

First open the perf dialog as shown in the figure tools->perferences..

gv1

 

Add the graphviz path

2015-02-02 18_00_55-LyX_ Preferences

 

3) configure new file format as shown in fig

 

2-LyX_ Preferences

4) configure converter as shown below.

3-LyX_ Preferences

New you should be able to use  Graphviz dot file into lyx to create diagrams. and you should be able to export your files as PDF.

How to get SDP from the browser.

I love small working sample to understand what is going under the hood without bogged down by unnecessary details. Here small step by step instruction along with full functional working code to generate SDP from the browser.

Here are steps.

1) Create stun config.


var pc_config = {
"iceServers": [{ "url": "stun:stun1.l.google.com:19302" }]
};

2) Create RTCPeerconnection with this config

try {
pc = new RTCPeerConnection(pc_config);
} catch (e) {
console.log("Failed to create PeerConnection, exception: " + e.message);
}

3)  Write callback for ice candidates

 

pc.onicecandidate = function (evt) {
if (evt.candidate) {
console.log('ICE candidate:');
console.log(evt.candidate);
} else {

console.log("End of candidates.");
if (pc != null) {
var sdp = pc.localDescription;
console.log(sdp);
}

}

};

 

4) call get user media and pass callback

 


navigator.webkitGetUserMedia({video: true,audio:true}, function(stream) {
video.src = window.URL.createObjectURL(stream);
video.controls = true;
localMediaStream = stream;

dumpOffer(stream);
}, errorCallback);

 

5 ) In callback set the local sdp in peer connection.

// st
pc.addStream(stream);

pc.createOffer(function(offer) {

pc.setLocalDescription(offer);

console.log("offer created");
console.log(offer.sdp);
}, errorCallback);

Here full functional code


<!DOCTYPE html>
<html>
<head>
</head>
<body>

<div style="text-align:center;">
 <video id="basic-stream" class="videostream" autoplay></video>
 <p><button id="capture-button">Capture video</button> <button id="stop-button">Stop</button></p>
</div>

<h2 id="toc-screenshot">Taking screenshots</h2>

<script>
function errorCallback(e) {
 if (e.code == 1) {
 alert('User denied access to their camera');
 } else {
 alert('getUserMedia() not supported in your browser.');
 }

}

window.IceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate || window.RTCIceCandidate;

 RTCPeerConnection = webkitRTCPeerConnection || mozRTCPeerConnection;
 var pc_config = {
 "iceServers": [{ "url": "stun:stun1.l.google.com:19302" }]
 };
 try {
 pc = new RTCPeerConnection(pc_config);
 } catch (e) {
 console.log("Failed to create PeerConnection, exception: " + e.message);
 }

//-------------------------------
 pc.onicecandidate = function (evt) {
 if (evt.candidate) {
 console.log('ICE candidate:');
 console.log(evt.candidate);
 } else {

 console.log("End of candidates.");
 if (pc != null) {
 var sdp = pc.localDescription;
 console.log(sdp);
 }

 }

 };

//----------------

function dumpOffer(stream){

 // st
 pc.addStream(stream);

 pc.createOffer(function(offer) {

 pc.setLocalDescription(offer);

 console.log("offer created");
 console.log(offer.sdp);

 }, errorCallback);

 //end

}

(function() {
var video = document.querySelector('#basic-stream');
var button = document.querySelector('#capture-button');
var localMediaStream = null;

button.addEventListener('click', function(e) {
 if (navigator.getUserMedia) {
 navigator.getUserMedia('video', function(stream) {
 video.src = stream;
 video.controls = true;
 localMediaStream = stream;
 dumpOffer(stream);
 }, errorCallback);
 } else if (navigator.webkitGetUserMedia) {
 navigator.webkitGetUserMedia({video: true,audio:true}, function(stream) {
 video.src = window.URL.createObjectURL(stream);
 video.controls = true;
 localMediaStream = stream;

 dumpOffer(stream);

 }, errorCallback);
 } else {
 errorCallback({target: video});
 }
}, false);

document.querySelector('#stop-button').addEventListener('click', function(e) {
 video.pause();
 localMediaStream.stop(); // Doesn't do anything in Chrome.
}, false);
})();
</script>
</body>
</html>

Some lyx quirks on windows.

Recently one of team member had to configure the Lyx with plant uml diagrams. Everything was working correctly. He made some changes to configuration and Suddenly export to PDF stopped for UML diagrams. After doing some investigation we discovered that Lyx expect the path(on windows platform )

 1) in converter in unix style

Image

2) In path it can be windows style.

Image

After following these convention problem got resolved. Hope this helps.

Surprising home remedy for acidity

I have tried many times this remedy personally and can say with conviction that this is best Home made remedy for acidity. What is it ? Very simple

“Just gulp a table spoon of Fenugreek seeds with a glass of water and you will see it works instantaneously” 

Hope this help you to avoid taking unnecessary chemicals.

 

How to configure lyx to include plant uml diagrams – update

1. Some users wanted to know where should we put plantuml.bat file ?

Ans: Add the batch file path as shown in the figure.

Image

 

 

 

How to configure lyx to include plant uml diagrams

Lyx is awesome tool to set up framework to creating professional document. But it is bit hard to get started. Recently I wanted to include plantuml sequence diagrams into the mater lyx document. Plantuml allows us  to create nice diagram just by using text commands.

Below are steps to include these text file into the lyx tool and it will automatically show these as diagram while loading the document. User need to configure new document type and corresponding converter to generate graphic on the fly.

1) configure the file format.

2014-01-22 14_31_10-LyX_ Preferences

2) Add the corresponding converter.

2014-01-22 14_34_14-LyX_ Preferences

Please note that plantuml.bat is batch file  which is copied as below.

c:\progra~1\Java\jdk1.7.0_45\bin\java.exe -jar <path to >plantuml.jar %*

Once these are correctly setup. User can include the file using include graphic lyx menu.

That’s all you need to include plantuml file into lyx doc.

 

Update: Recently I wanted to export the PLANTUML diagram in the pdf file. Following steps worked fine for me.

1) Add plantuml file format as above

2) Configure a converter as above

plantuml – > eps

This should work and you should have plantuml diagram into your pdf file.