Wednesday, March 29, 2017

One Pound A Week

http://www.menshealth.com/fitness/pound-of-size

Maybe you've had sand kicked in your face. Maybe you've lost one too many attainable women to beefier guys. Or maybe you've read so much about weight loss that actually admitting you want to gain weight is a societal taboo. Whatever the reason, you want to bulk up, now.
But forget about your alleged high-revving metabolism, says Doug Kalman, R.D., director of nutrition at Miami Research Associates. "Most lean men who can't gain muscle weight are simply eating and exercising the wrong way," he says.
Here's your fix: Follow these 10 principles to pack on as much as a pound of size.
Maximize Muscle Building
The more protein your body stores—in a process called protein synthesis—the larger your muscles grow. But your body is constantly draining its protein reserves for other uses—making hormones, for instance. The result is less protein available for muscle building. To counteract that, you need to "build and store new proteins faster than your body breaks down old proteins," says Michael Houston, Ph.D., a professor of nutrition at Virginia Tech University.
Eat Meat
Shoot for about 1 gram of protein per pound of body weight, which is roughly the maximum amount your body can use in a day, according to a landmark study in the Journal of Applied Physiology. (For example, a 160-pound man should consume 160 grams of protein a day—the amount he'd get from an 8-ounce chicken breast, 1 cup of cottage cheese, a roast-beef sandwich, two eggs, a glass of milk, and 2 ounces of peanuts.) Split the rest of your daily calories equally between carbohydrates and fats.
Eat More
In addition to adequate protein, you need more calories. Use the following formula to calculate the number you need to take in daily to gain 1 pound a week. (Give yourself 2 weeks for results to show up on the bathroom scale. If you haven't gained by then, increase your calories by 500 a day.)
A. Your weight in pounds.
B. Multiply A by 12 to get your basic calorie needs.
C. Multiply B by 1.6 to estimate your resting metabolic rate (calorie burn without factoring in exercise).
D. Strength training: Multiply the number of minutes you lift weights per week by 5.
E. Aerobic training: Multiply the number of minutes per week that you run, cycle, and play sports by 8.
F. Add D and E, and divide by 7.
G. Add C and F to get your daily calorie needs.
H. Add 500 to G. This is your estimated daily calorie needs to gain 1 pound a week.
Work Your Biggest Muscles
If you're a beginner, just about any workout will be intense enough to increase protein synthesis. But if you've been lifting for a while, you'll build the most muscle quickest if you focus on the large muscle groups, like the chest, back, and legs. Add squats, deadlifts, pullups, bent-over rows, bench presses, dips, and military presses to your workout. Do two or three sets of eight to 12 repetitions, with about 60 seconds' rest between sets.
Have a Stiff Drink
A 2001 study at the University of Texas found that lifters who drank a shake containing amino acids and carbohydrates before working out increased their protein synthesis more than lifters who drank the same shake after exercising. The shake contained 6 grams of essential amino acids—the muscle-building blocks of protein—and 35 grams of carbohydrates.
"Since exercise increases bloodflow to your working tissues, drinking a carbohydrate-protein mixture before your workout may lead to greater uptake of the amino acids in your muscles," says Kevin Tipton, Ph.D., an exercise and nutrition researcher at the University of Texas in Galveston.
For your shake, you'll need about 20 grams of protein—usually about one scoop of a whey-protein powder. Can't stomach protein drinks? You can get the same nutrients from a sandwich made with 4 ounces of deli turkey and a slice of American cheese on whole wheat bread.
But a drink is better. "Liquid meals are absorbed faster," says Kalman. So tough it out. Drink one 30 to 60 minutes before your workout.
Lift Every Other Day
Do a full-body workout followed by a day of rest. Studies show that a challenging weight workout increases protein synthesis for up to 48 hours immediately after your exercise session. "Your muscles grow when you're resting, not when you're working out," says Michael Mejia, C.S.C.S., Men's Health exercise advisor and a former skinny guy who packed on 40 pounds of muscle using this very program.
Down Carbs After Your Workout
Research shows that you'll rebuild muscle faster on your rest days if you feed your body carbohydrates. "Post-workout meals with carbs increase your insulin levels," which, in turn, slows the rate of protein breakdown, says Kalman. Have a banana, a sports drink, a peanut-butter sandwich.
Eat Every 3 Hours
"If you don't eat often enough, you can limit the rate at which your body builds new proteins," says Houston. Take the number of calories you need in a day and divide by six. That's roughly the number you should eat at each meal. Make sure you consume some protein—around 20 grams—every 3 hours.
Make One Snack Ice Cream
Have a bowl of ice cream (any kind) 2 hours after your workout. According to a study in the American Journal of Clinical Nutrition, this snack triggers a surge of insulin better than most foods do. And that'll put a damper on post-workout protein breakdown.
Have Some Milk Before Bed
Eat a combination of carbohydrates and protein 30 minutes before you go to bed. The calories are more likely to stick with you during sleep and reduce protein breakdown in your muscles, says Kalman. Try a cup of raisin bran with a cup of skim milk or a cup of cottage cheese and a small bowl of fruit. Eat again as soon as you wake up. "The more diligent you are, the better results you'll get," says Kalman.

Tuesday, March 14, 2017

Hortonworks SandBox on Azure



Bitwise or Putty for Port Forwarding

0. Ambari - localhost:8080 admin/admin

1. Login to VM (public Ip Address) provided with user Id specified while creating  it              .    pankaj/LetsDoIt2017
2. sudo su - root   <<>>
3. After login in Make sure yo do ssh to docker container, not the VM. Do this:
ssh -p2222 root@127.0.0.1
Password: Pankaj123

and then try all the commands you want to.
Like --> ambari-admin-password-reset
     admin/admin

----
FIles on hdf with command line
1. Login to sandbox
2. ssh root@127.0.0.1 -p 2222
su hdfs
cd
wget https://github.com/pankajchopra/togaf/blob/master/Hadoop/driver_data/drivers.csv

hdfs dfs -moveFromLocal drivers.csv /user/pankaj/drivers.csv


hdfs list of commands
hdfs dfs < list of file system commands>



Tuesday, March 7, 2017

Spring Cleaning - Table Topic

In Table Topics® is to help members develop their ability to organize their thoughts quickly and respond to an impromptu question.
After brief introduction I will question, which you can respond or I will pick someone at random.
Time limit 1-2 minutes, Green at 1 minutes, Yellow at 1:30 and red at 2:00 minutes

With such a warm February we are in march, days get longer and warmer, it is the perfect time to shake-off your winter blues (
and get organized and start new
("New year Resolution" is a Fading memory)
February has broken lots of temperature records, hope we will continue this winning streak in March also.

Spring Cleaning: "Cleaning", hmm lots of work?
Cleaning Garage, Kitchen garden,
- Carpet, Floors
- Wash Wall and Cabinets
- Light Fixtures
- Open Windows and
+++++++++What does spring cleaning in your house involves?
+++++++++What are your plans this spring? Are they different/new from last year?
+++++++++Spring Cleaning Tips to Get It Done Faster

Generally we are never happy with winter, but we cannot do anything, it brings discontent, uneasiness, unhappiness, (less sunlight may also be the reason)
It becomes our habit to allow negativity to dominate our thoughts and words.
****Springtime is often seen as a time of new beginnings and hope.
Spring is the time to Spring Clean our attitude, spring clean our life and be bold and bloom.
Just like "NEW YEAR RESOLUTION", do you have Spring Resolution?

+++++++Spring Clean Your Virtual Footprint, how much you are on the net
+++++++Take the Spring Healthy Eating Challenge
+++++++Spring cleaning is a reality in some people's lives. What is the relevance of spring cleaning in your life?




We moved the clocks forward March 12th and lost an hour of sleep.
How does that affect you? What are your thoughts on the pros and cons of Daylight Savings Time?

Do you have allergies? What are some remedies that you use and how do they work for you?


++++++++++++++What are some of your favorite things you do in Spring?




* Ideas for Spring Outings ( what is your plan)
* Strategies to start new this spring










Saturday, April 16, 2016

Oracle LDAP connection String in context.xml

Connection string format to connect to Oracle DB through LDAP



If your an Oracle database and its details are configured in LDAP.

Rename or delete tnsnames.ora
(default location in most cases is at C:\Oracle\product\11.2.0\client_1\NETWORK\ADMIN\)

Ask for Directory Servers, Default Admin Context and server type information from DBA.


You need to configure the LDAP.ORA and SQLNET.ORA files appropriately.

#########################################################################
# Filename......: ldap.ora                                              #
# Version: 10.x.X.1                                                     #
# Create Date...: 05.04.2014 00:00:00 -                                 #
# ALL OID ALIASES POINT TO GSLB ENTRY THAT ROUND ROBINS         #
#########################################################################

DIRECTORY_SERVERS=(brahma.decimalSolutions.com:9901:9911,brahma.decimalSolutions.com:9901:9911,brahma.decimalSolutions.com:9901:9911)

DEFAULT_ADMIN_CONTEXT = "dc=decimalSolutions, dc=com"

DIRECTORY_SERVER_TYPE = OID



#########################################################################
# Filename......: sqlnet.ora                                              #
#########################################################################
# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES = (NTS)

#NAMES.DIRECTORY_PATH = (TNSNAMES)
#NAMES.DIRECTORY_PATH = (LDAP)
#NAMES.DIRECTORY_PATH = (TNSNAMES,LDAP)
NAMES.DIRECTORY_PATH = (LDAP,TNSNAMES)






                auth="Container"
                type="javax.sql.DataSource"
                factory="com.decimalSolutions.launchpad.encryption.EncryptedDataSourceFactory"
                driverClassName="oracle.jdbc.OracleDriver"
                url="jdbc:oracle:thin:@ldap://brahama.decimalSolutions.com:9901/hlpd1,cn=OracleContext,dc=decimalSolutions,dc=com ldap://brahama.decimalSolutions.com:9901/hlpd1,cn=OracleContext,dc=decimalSolutions,dc=com ldap://brahama.decimalSolutions.com:9901/hlpd1,cn=OracleContext,dc=decimalSolutions,dc=com"
                username="FT_GUEST"
                password="Rnl1eF82MTI="
                maxActive="400"
                maxIdle="25"
                maxWait="5000"
                removeAbandoned="true"
                removeAbandonedTimeout="120"
                logAbandoned="true"/>



How to Add Power button and the Shut Down, Restart, Sleep, and Hibernate



  1. Press the Windows key + R to bring up the Run box. Type gpedit.msc and press Enter to open the Local Group Policy Editor.
  2. In left-side pane, navigate to Computer Configuration -> User Configuration  -> Administrative Template -> Start Menu and Taskbar.
  3. In the right pane select the “Remove and prevent users from access to Shut Down, Restart, Sleep, and Hibernate commands” double-click on it. Select Disable and click Apply and OK.




Sunday, December 6, 2015

Router not getting DHCP address from Cable Modem

 

Router not getting DHCP address from Cable Modem


1. Connect your computer directly to the cable modem. Do an ipconfig /renew on your computer so it pulls the IP from the cable modem.




2. Plug the cable modem back into the router, and your computer back into the router. go to the router's menu via 192.168.1.1. clone the 
MAC address of your computer onto the router.
 


3. Go to the Status in the Menu and see modem's IP address. by the time you get to this screen, it should have already pulled the IP address. Press DHCP Renew IP Address, it will get the IP address from the cable modem.

These steps are when your router is not able to get the IP via standard procedures.

Tuesday, January 3, 2012

Drop Down Tab menu obscured by page content in IE

Either change your style sheet and add z-index:10000



.sidebarmenu {
z-index: 10000;
}

to your stylesheet should take care of the problem. It shouldn't adversely affect other browsers, but might. Try it out and out it and put it through its paces. Make sure to refresh and/or clear your browser's cache to make sure you are viewing the page with the updated style directive.


If you do not want to change the style sheet of the menu, here is an example:



         <%@ include file="/pages/sidemenu.jsp" %>







  • Find Patient


  • Find an Event

  • ...
    ...
    ...

    Followers