Home Remedies for Gas Pain


 

Gas pains can be really troublesome. The pain can be so intense that you feel it’s serious illness. The following passage provides you with the possible home remedies for gas pain relief, causes and symptoms to help you acknowledge the problem.

Top home remedies for gas pain for gas pain relief are:

  • Make a mixture of ginger powder, pounded carom seed(ajwain) and black salt in equal quantities. Take the mixture after meal (1 gram) for fast relief from gas pain.
  • Take a small piece of ginger. Sprinkle a few drops of lemon juice over it. Add a pinch of black salt and take this while you are having meal.
  • Make a powder out of cinnamon and boil it in a glass of water. Take this while it is warm half hour before meal. This will prevent the formation of gas.
  • Make a powder out of 2 grams of Asafoetida (hing) and mix it in a glass of warm water. Take about 20ml of it twice a day.
  • Try teas with peppermint, chamomile or fennel to relieve gas pain. Peppermint contains menthol, which appears to have an antispasmodic effect on the smooth muscles of digestive tract. This is one of the most effective home remedies for gas pain.
  • If you have a severe pain try lying on your back, pulling your legs up to your chest. This can help to expel your gas. This is an immediate home remedy for gas pain.
  • Avoid consuming foods that affect you the most, such as high-fiber foods, dairy products, soda content drinks, beer, and other food products that cause excess gas.
  • If you experience burning sensation while passing stool and if stool is foul smelling then it is a sign that your colon contains toxic material. Follow a fasting program to eliminate these toxins
  • For a fast relief from bloating or heartburn you could go for brown rice or barley broth. You have to boil the mixture containing five parts of water and one part of grain. Boil this mixture for 10 minutes, uncovered. Now cover it and boil it on simmer for 50 to 55 minutes. Cool the liquid after straining it. Sip the strained liquid during the day for fast relief from gas problems
  • Do not eat food when you are tensed, upset or overtired
  • Do not drink liquid while eating food as this prevents proper digestion by diluting stomach juices
  • You can temporarily cut high-fiber foods and gradually build up the intake over the weeks.
  • Eat several small meals instead of eating two or three larger ones a day.
  • One of the simpler and effective home remedies for gas pain is to increase the amount of fluid you drink, especially water.
Avoid these Gas Causing Foods
  • Baked beans
  • Vegetables: Brussels sprouts, Cabbage, Cauliflower, broccoli, onion
  • Chewing gum
  • Whole grain: whole wheat
  • Fruits: apples, peaches, pears
  • Sorbitol: Sugar free candies, gums
  • Carbonated drinks
Prevention from Gas

Let us have a look at some of the ways in which stomach gas can be prevented –

  • Eat Slowly: Eating fast can interfere with proper digestion of food.
  • Walk: Walk for a minimum of 500 mtrs after meals.
  • Reduce Fatty Foods: Digestion is slow if you take lot of fatty foods.
  • Avoid Food: With trial and error method you can find which foods affects you most. Avoid them.
  • Reduce Smoking: While inhaling smoke you can swallow air too hence avoid it for quick relief.
  • Straw: Avoid straw while drinking. You might swallow air while using straw for drinking liquids.
Causes of gas pain

Below are some of the primary causes of gas pain –

  • As we eat or drink we also swallow air. Sometime we may swallow air when we are nervous. This air finds its way into your lower digestive tract.
  • One of the main causes of gas pain is when bacteria in your colon, ferment carbohydrates that are not digested in your small intestines.
  • Even some of healthy foods such as, beans, peas and whole grains can cause gas to form, as these foods are high in fiber.
  • Dairy products consumption can also cause gas formation. It may be because your body is not able to break down the sugar (lactose) in dairy foods.
  • Use of certain medicines such as antibiotics and constipating drugs, also cause gas pain as they disrupt the normal bacterial flora that live in your bowel (part of the intestines).
  • Artificial sweetener like sorbitol and mannitol found in some sugar-free foods can also cause excess gas if your system cannot tolerate it.
  • Do eat in a hurry. Eating when you are on the run and under stress can interfere with digestion process and cause gas.
  • Smoking can also increase the amount of air you swallow.
Symptoms of gas pain

The primary gas pain symptoms includes sharp pains and jabbing cramps in your abdomen and these pains can change location quickly. Sometimes the pain is so intense that you feel it is serious illness like a heart problem, back pains and many others. This generally occurs when gas builds up in your intestines and are not expelled. The voluntary or involuntary passing of gas, either as belching (burp) or as flatus (gas generated in or expelled from the digestive tract) is also symptoms of gas pain.

Bloating and Gas Pain

Many people feel that they tend to pass gas or burp very often, which can be quite embarrassing and also cause much discomfort. On the whole the average adult tends to pass about 1 to 3 pints of gas every day, which comes out of the anus about 14 to 23 times in a day. Burping occasionally before having one’s meals is quite normal.

The amount of gas one produces depends upon one’s diet as well as other individual factors. Of course, most individuals who do complain of excessive gas actually pass usual amounts of gas.

Source of gas – Swallowing air is the most important source of the formation of the gas. It is of course quite natural to swallow small amounts of air while eating as well as drinking and when one is swallowing saliva. One may swallow more amounts of air when one was eating food rapidly, chewing gum, gulping liquids and even smoking.

Most of the air is got rid of through belching which results in only a relatively small amount of air passing through the stomach into one’s small intestine. One posture has an effect on how air passes into the small intestine.

Belching – Belching is either voluntary or may occur unintentionally. Involuntary belching is quite normal after one has one’s meals. This releases the air that enlarges or stretches one’s stomach. Belching is common with certain types of foods that tends to relax the ring shaped muscle. Located at the lower end of our esophagus where it tends to join the stomach. Such foods are chocolates, fats as well as peppermint.

Indigestion – Some carbohydrates are not easily digested, and results in gas. Quite a number of vegetables contain raffinose, such as Brussels sprouts, cabbage, asparagus, whole grains and broccoli. These cause a lot of flatulence and gas. Consuming a large amount of lactose can cause gas production.

Diseases – Those suffering from certain diseases such as scleroderma or diabetes usually experience the slowing down of the small intestine. This can result in the growth of bacteria in the inside one’s bowel. This causes poor digestion of nutrients as well as carbohydrates. These can also can cause gas production.

Functional dyspepsia – This refers to persistent pain in the upper part of the abdomen. Nerves that carry messages from our bowel movement tend to be overactive in the case of IBS. Many people complain of bloating.

Irritable bowel movement – This can also cause gas production and bloating. There are much changes in one’s bowel movement such as diarrhea or constipation. Nerves that carry messages from one’s bowel may be overactive.

Anus irritation or esophagus – Those who have irritation around their anus on account of hemorrhoids or several other problems may also face much discomfort and the passing of gas. Those who suffer from irritation of esophagus also experience burping that is quite painful.

Diet restrictions – One must avoid foods that tend to aggravate the condition. Foods such as dairy products, milk, some types of fruits as well as vegetables, artificial sweeteners and even carbonated beverages. One must maintain a record of foods that bother a person.

Yoga for the digestive system – Mayurasana

Mayura in Sanskrit means peacock. Mayurasana (the peacock posture) helps in the proper functioning of the digestive system. It enhances the circulation and supply of blood to the digestive organs and hence could prevent lots of digestive related problems.

  • Kneel keeping your knees twelve inches apart
  • Place the hands on the floor between the knees with your wrists facing forward and fingers pointing backward
  • Support both sides of the navel with your elbows
  • Balancing on your hands, raise your body and legs to a horizontal position. First raise the upper part of your body and then the legs
  • Stretch your legs a little wide like the letter V
  • Remain in this posture for few seconds
  • Return to the original position by slowly folding your legs and then placing your knees on the ground. Then sit on your soles

Encryption and Decryption for Java/Android and PHP


Use case

While working on an android app that retrieves it’s data from a PHP-API I needed to build a both-sided en- and decryption layer to secure the requests and responses properly.

I decided to use an AES encryption with IvParameterSpec, SecretKeySpec and “AES/CBC/PKCS5Padding” on Java side, and mcrypt_module “rijndael-128″ on PHP side.

Implementations
PHP


class ApiCrypter
{
private $iv = 'fdsfds85435nfdfs'; #Same as in JAVA
private $key = '89432hjfsd891787'; #Same as in JAVA

public function __construct() {
}

public function encrypt($str) {
$str = $this->pkcs5_pad($str);
$iv = $this->iv;
$td = mcrypt_module_open('rijndael-128', '', 'cbc', $iv);
mcrypt_generic_init($td, $this->key, $iv);
$encrypted = mcrypt_generic($td, $str);
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
return bin2hex($encrypted);
}

public function decrypt($code) {
$code = $this->hex2bin($code);
$iv = $this->iv;
$td = mcrypt_module_open('rijndael-128', '', 'cbc', $iv);
mcrypt_generic_init($td, $this->key, $iv);
$decrypted = mdecrypt_generic($td, $code);
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
$ut = utf8_encode(trim($decrypted));
return $this->pkcs5_unpad($ut);
}

protected function hex2bin($hexdata) {
$bindata = '';
for ($i = 0; $i strlen($text)) {
return false;
}
if (strspn($text, chr($pad), strlen($text) - $pad) != $pad) {
return false;
}
return substr($text, 0, -1 * $pad);
}
}

$str = "abc";

$ApiCrypter = new ApiCrypter();

$encrypted = $ApiCrypter -> encrypt($str);

echo "Encryption : " . $encrypted;

$decrypted = $ApiCrypter -> decrypt($encrypted);

echo "Decryption :" . $decrypted;

Encryption
Java


package cipher;

import java.net.URLDecoder;
import java.security.NoSuchAlgorithmException;

import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;

public class ApiCrypter {

private String iv = "fdsfds85435nfdfs";
private String secretkey = "89432hjfsd891787";
private IvParameterSpec ivspec;
private SecretKeySpec keyspec;
private Cipher cipher;

public ApiCrypter()
{
ivspec = new IvParameterSpec(iv.getBytes());
keyspec = new SecretKeySpec(secretkey.getBytes(), "AES");

try {
cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (NoSuchPaddingException e) {
e.printStackTrace();
}
}

public byte[] encrypt(String text) throws Exception
{
if(text == null || text.length() == 0) {
throw new Exception("Empty string");
}
byte[] encrypted = null;
try {
cipher.init(Cipher.ENCRYPT_MODE, keyspec, ivspec);
encrypted = cipher.doFinal(text.getBytes("UTF-8"));
}
catch (Exception e) {
throw new Exception("[encrypt] " + e.getMessage());
}
return encrypted;
}

public byte[] decrypt(String code) throws Exception
{
if(code == null || code.length() == 0) {
throw new Exception("Empty string");
}
byte[] decrypted = null;
try {
cipher.init(Cipher.DECRYPT_MODE, keyspec, ivspec);
decrypted = cipher.doFinal(hexToBytes(code));
}
catch (Exception e) {
throw new Exception("[decrypt] " + e.getMessage());
}
return decrypted;
}

public static String bytesToHex(byte[] data)
{
if (data==null) {
return null;
}
int len = data.length;
String str = "";
for (int i=0; i<len; i++) {
if ((data[i]&0xFF)<16) {
str = str + "0" + java.lang.Integer.toHexString(data[i]&0xFF);
}
else {
str = str + java.lang.Integer.toHexString(data[i]&0xFF);
}
}
return str;
}

public static byte[] hexToBytes(String str) {
if (str==null) {
return null;
}
else if (str.length() < 2) {
return null;
}
else {
int len = str.length() / 2;
byte[] buffer = new byte[len];
for (int i=0; i<len; i++) {
buffer[i] = (byte) Integer.parseInt(str.substring(i*2,i*2+2),16);
}
return buffer;
}
}

public static void main(String args[]) throws Exception
{
ApiCrypter obj = new ApiCrypter();
byte[] str = obj.encrypt("abc");
String encryptedRequest = obj.bytesToHex(str);
System.out.println(encryptedRequest);
String res = new String( obj.decrypt( encryptedRequest ), "UTF-8" );
res = URLDecoder.decode(res,"UTF-8");
System.out.println(res);
}
}

Purattasi


Purattasi or Purattasi Masam or Purattasi month is one of the auspicious months in Tamil calendar.

The month is considered auspicious on account of the following reasons.

1.Mahalaya Paksha or Pitru paksha falls in this period.
In the Puranas there’s a true story of an account of how important this period and day really is. The renowned hero of the Mahabharata, Karna (the Pandavas half brother), when he passed on, he ascended to the heavenly planets and the great charity he had performed in his lifetime was returned to him hundredfold. But, it was all gold and silver; there was no food, as he had not done any food-charity! He prayed to the god of death (Lord Yamaraja). So, he was sent back to earth for fourteen days, to make up for this deficiency.
For fourteen days, he fed Brahmins and the poor, and offered oblations of water. On his return to the heavenly planets, he had food in plenty. It is these fourteen days that are commemorated in the Mahalaya Paksha culminating in Mahalaya Paksha Amavasya.
2.Mahalaya paksha is followed by Devi Paksha. Goddess Durga visits the Earth. Navrathri
3. The period is devoted to Mahavishnu. Maavilakku signifies the invitation and puja of Venkatachala pathi. The mount of flour signifies Thiruvenkatam.
4.Sani is said to reduce his negative power during this month. Hence the beast phase to propitiate sani.
Geographically,
This is the month of the Autumn Equinox. Sept.23. This marks the end of the excessive heat of the summer and the fury of the monsoon in the Northern hemisphere. Hereafter it is Dakshinayana time and it is marked by pleasant cold of winter till the Vernal Equinox on March 21—-A time to enjoy life.
This is described as
“The entire DakshinayaNa (Mid July to Mid January) period is said to be of night time for the Devas. During these time, it is entirely devoted to prayer, offering and pooja etc. When the DakshinayaNa begin during Mid July, the Tamil month Aadi begin. From here on all the following six months known as Dakhsinaya is of festivities and celebrations and all to the Lord God. Beginning from the first Friday of Aadi, then Varalakshmi Vratham, Sri Jayanthi – Gokulashtami, Vinayakar Chathurthi, Deepavali (Diwali), Navaratri all the festivals aiming at offerings to the Lord Gods of various Status.”

Revealed: The best times to eat breakfast, lunch and dinner


IFyou want to lose weight – and

you need to make sure you’re up

by 7am

  • The optimum time to have breakfast is 7.11am, dieters say
  • The best time for lunch is 12.38pm and the best for dinner is 6.14pm
  • Leaving dinner later than 7pm can be a dieting disaster
  • People are less active in the evening, so calories are not burned

All slimmers want to maximize their potential weight loss by eating the right foods and avoiding the wrong ones.

According to research, however, the key to success lies in the timing of meals.

A survey has pinpointed the best times to eat breakfast, lunch and dinner if you want to shed as many pounds as possible.

The optimum time to have breakfast is shortly after 7am, with 7.11am picked as ideal. Lunch is best enjoyed earlier rather than later with the key time between 12.30pm and 1pm – 12.38pm being spot on.

Dieters say the best time to eat breakfast is 7.11am, the optimum time for lunch is 12.38pm and the best time to eat dinner is 6.14pm. They also say breakfast is the most important meal of the day

Dieters say the best time to eat breakfast is 7.11am, the optimum time for lunch is 12.38pm and the best time to eat dinner is 6.14pm. They also say breakfast is the most important meal of the day

Leaving dinner later than 7pm can be ruinous for diets – the best time is between 6pm and 6.30pm, with 6.14pm the best.

The timings come from a new survey by the diet company Fora Supplements, which asked 1,000 slimmers when was the best time to eat to maximize weight loss.

The research revealed 84 per cent of dieters think sticking to defined mealtimes is crucial for people who want to lose weight.

A further 76 per cent said breakfast was the most important meal of the day – and eating it daily had helped them cut calories.

'It's quite sweet she won't touch her food until exactly 6.14'

‘It’s quite sweet she won’t touch her food until exactly 6.14’

Three-quarters of those polled said they had benefited by having a light lunch – and never skipping a midday meal.

Dinner must be eaten early to maximize weight loss because people are less active in the evening – meaning extra calories are more likely to turn to fat.

Two-thirds of slimmers recommended eating dinner before 7pm.

Most dieters – 72 per cent – said the key was not to exceed their lunchtime calorie intake at dinner – so they have even calorie intake throughout the day.

Six out of ten respondents said that skipping any meal would make losing weight more difficult.

The research proves the truth of the dieting mantra: Eat breakfast like a king, lunch like a prince and dinner like pauper.

The findings showed that the crucial four hours between 6pm and 10pm was when most diets went wrong.

The majority of respondents – 56 per cent – said they consumed the most calories during this time.

A further 54 per cent said they ate more than half their daily calorie intake during this period.

What scuppered many diets was snacking around 8pm in front of the TV – a lapse suffered by 62 per cent of those polled.

Fora Supplements managing director Lee Smith said: ‘The key for many dieters is not how much they eat but when they do it.

‘We found that the optimum times were 7.11am for breakfast, 12.38pm for lunch and 6.14pm for dinner but obviously no one is going to stick to those times rigidly.

‘Most dieters recommended these meals be supplemented with low-fat snacks when you get hunger pangs in later morning or mid-afternoon.’

Mr Smith said the key to successful weight loss was never to skip meals.

He added: ‘The results show that breakfast really is the most important meal of the day for successful dieters.

Most diets fail at about 8pm when people start snacking in front of the television

Most diets fail at about 8pm when people start snacking in front of the television

‘Skipping it just makes you hungrier and more likely to over-indulge in later meals – causing a surge in blood sugar.

‘What you need to do is ease your body into a more consistent blood-sugar pattern by eating three meals a day of between 400 and 600 calories.

‘The most important message is not to skip meals and not to leave dinner too late.

‘Calories get burned up no matter when you eat them – but if you eat dinner late, you’re not as likely to get rid of those calories before going to bed.

‘What you don’t burn off is more likely to be stored as fat, as you become less active towards the end of the day.

‘Eating too close to bedtime increases your blood sugar and insulin, which makes it harder to sleep.

‘Your last meal should be lightest of the day and should be eaten at least three hours before you go to sleep.’

Script for uploading ZIP file and unzip it on the server using PHP


 

<?php
/* Simple script to upload a zip file to the webserver and have it unzipped
  Saves tons of time, think only of uploading WordPress to the server
  I have modified the script a little to make it more convenient
  Modified by: Prabhu (22.08.2014)
 */

function rmdir_recursive($dir) {
    foreach (scandir($dir) as $file) {
        if ('.' === $file || '..' === $file)
            continue;
        if (is_dir("$dir/$file"))
            rmdir_recursive("$dir/$file");
        else
            unlink("$dir/$file");
    }
    rmdir($dir);
}

if (!empty($_FILES["zip_file"]["name"])){
    $filename = $_FILES["zip_file"]["name"];
    $source = $_FILES["zip_file"]["tmp_name"];
    $type = $_FILES["zip_file"]["type"];

    $name = explode(".", $filename);
    $accepted_types = array('application/zip', 'application/x-zip-compressed', 'multipart/x-zip', 'application/x-compressed');
    foreach ($accepted_types as $mime_type) {
        if ($mime_type == $type) {
            $okay = true;
            break;
        }
    }

    $continue = strtolower($name[1]) == 'zip' ? true : false;
    if (!$continue) {
        $message = "The file you are trying to upload is not a .zip file. Please try again.";
    }

    /* PHP current path */
    $path = dirname(__FILE__) . '/';  // absolute path to the directory where zipper.php is in
    $filenoext = basename($filename, '.zip');  // absolute path to the directory where zipper.php is in (lowercase)
    $filenoext = basename($filenoext, '.ZIP');  // absolute path to the directory where zipper.php is in (when uppercase)

    $targetdir = $path . $filenoext; // target directory
    $targetzip = $path . $filename; // target zip file

    /* create directory if not exists', otherwise overwrite */
    /* target directory is same as filename without extension */

    if (is_dir($targetdir))
        rmdir_recursive($targetdir);
    mkdir($targetdir, 0777);

    /* here it is really happening */

    if (move_uploaded_file($source, $targetzip)) {
        $zip = new ZipArchive();
        $x = $zip->open($targetzip);  // open the zip file to extract
        if ($x === true) {
            $zip->extractTo($targetdir); // place in the directory with same name  
            $zip->close();

            unlink($targetzip);
        }
        $message = "Your .zip file was uploaded and unpacked.";
    } else {
        $message = "There was a problem with the upload. Please try again.";
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Unzip a zip file to the webserver</title>
    </head>

    <body>
<?php if (!empty($message)){ echo "<p>$message</p>"; }?>
        <form enctype="multipart/form-data" method="post" action="">
            <label>Choose a zip file to upload: <input type="file" name="zip_file" /></label>
            <br />
            <input type="submit" name="submit" value="Upload" />
        </form>
    </body>
</html>

 

Four must eat white vegetables


veg

New York : If white coloured clothes have a soothing effect on people, eating white vegetables is beneficial too and you should include more of cauliflower and garlic in your diet, says IANS. Here’s a list of healthy white vegetables that you should consume more, reports huffingtonpost.com:

Cauliflower: It contains sulfur compounds that are associated with fighting cancer, strengthening bone tissue and maintaining healthy blood vessels.

Mushroom: Mushrooms are low in calories, fat-free, cholesterol-free, gluten-free, with barely any sodium, and yet they carry a wealth of selenium, potassium, riboflavin, niacin and vitamin D. Mushrooms are also filling, so they can help you control your weight.

Garlic: It is believed to help in growing hair, cause acne to disappear and keep colds and flu at bay. Its antioxidant properties can help boost your immune system.

Potatoes: The white potato provides as much fibre as and more potassium than other commonly consumed vegetables or fruit. A medium skin-on baked potato weighs in at just 163 calories, a whopping 941 milligrams of potassium and 3.6 grams of fibre. Potatoes also provide vitamin C, vitamin B6 and magnesium in addition to small amounts of high quality protein.

%d bloggers like this: