Surviving Holiday Heart Attack Season: A Cardiologist’s Advice

More people die from heart disease between December 25 and January 7 than at any other time of the year.

It’s almost that time of year: holiday heart attack season. More people die from heart disease between December 25 and January 7 than at any other time of the year. What’s the answer? Healthier food. As a cardiologist, I’m calling on hospitals to lead by example. Historically, some hospitals have been known for serving their heart attack patients breakfasts of bacon and eggs, conveying a message to patients and families that food does not matter.

That is all about to change. Earlier this year, the American College of Cardiology released Heart-Healthy Food Recommendations for Hospitals, which says that “hospitalization can be a ‘teachable moment’ for patients who are ready to embrace nutrition as part of the healing process.” The ACC recommends having plant-based main dishes available at every meal. It also says that processed meats—bacon, sausage, ham, hot dogs, and deli meats—should be off the menu entirely. The American Medical Association followed suit, calling for similar improvements in hospital food offerings: out with the bacon and sausage, in with the vegan choices.

The plan could save hundreds of thousands of lives a year. A study published this year in the Journal of the American Medical Association linked not eating enough fruits, vegetables and grains to more than 150,000 cardiovascular deaths a year and too much processed meat to 60,000 deaths.

Are you serious? you might be asking. Will hospitals really serve vegan (plant-based) meals, and will patients really eat them (and like them)? The answer is absolutely yes. A generation ago, hospitals banned cigarettes, and the grumbling from smokers ended almost immediately. It was a clear-cut message about what is healthy and what is not. It’s time to do the same with unhealthy foods.   

The ACC and AMA recommendations also have benefits beyond heart health. A recent report from the World Cancer Research Fund and the American Institute for Cancer Research found that eating three servings of whole grains per day reduces colorectal cancer risk by 17 percent, while eating just 50 grams of processed meat per day—about the size of a hot dog or a couple of slices of bacon—increases the risk of colorectal cancer by 18 percent. 

Other organizations, like the nonprofit Physicians Committee for Responsible Medicine, are working in hospitals to make healthful hospital food a reality. This year, the Physicians Committee successfully encouraged the University of Mississippi Medical Center and Arkansas Children’s Hospital to remove hot dogs from patient menus, and convinced others to kick out fast food restaurants. The doctors’ group also produced a Heart-Healthy Foods for Hospitals booklet, which includes delicious plant-based recipes: Apple Sweet Potato Breakfast Bake, Cheezy Potato and Veggie Breakfast Casserole, and Mexican Lasagna. It also makes hospital managers’ lives easier by providing list of contractors that provide heart-healthy foods, tips from professionals for how to successfully implement the plan, handouts for patients and cafeteria signage.

In other words, the change could not be easier. Let’s resolve to eat healthfully, and let’s start with our hospitals. While some hospitals are starting to do this, let’s see if we can get them all to take this on in a whole-hearted approach. Instead of being the riskiest time of year, let’s work together to make the holiday season the healthiest.

 

Related Stories

  • Meat-Eaters Have Significantly Higher Blood Pressure Than Vegetarians, Vegans
  • Do You Do These 5 Things With Your Cellphone That Health Officials Say You Shouldn’t?
  • Pharmaceutical Company Billionaire and Wife Found Dead in ‘Suspicious’ Circumstances

Gardmore Abbey 5E rerun – Session 4

This session started with an interesting fight in a wizard’s tower. It turned out the wizard was both undead and quite mad, wanting to preserve everything for eternity by freezing it. So the group was hit with a lot of ice magic which hindered their movement, while battling the wizard and his 4 icy mummies. But the group prevailed and scored another card from the deck of many things, which had been frozen in a block of ice together with a Barlgura demon. That caused quite some concern on how to get to the card without being attacked by the demon, however it turned out that the demon didn’t wake up at all and just got banished back to the abyss by defrosting him.

So the group moved on to the garrison, having found both possible ways to open the door there, a scroll from the wizard’s tower and the sword of the lost paladin. But there was another Barlgura demon in the garrison, together with some specters, and this time the demon was alive. I had the demon use his disguise spell to assume the same form as the specters, so the group didn’t immediately know where the main threat was. But otherwise the combat went without major events, and the group found the brazier, one of the three objects they were searching for Sir Oakley.

So they returned to Sir Oakley and rested in the temple. Then they decided to take the stairs in the temple leading down to a dungeon, where they encountered a band of gnolls. The group attacked immediately, while the gnolls tried to retreat. Most of the gnolls made it to the next room and barred the door, but the barbarian just crashed through that door with an exceptional strength check. So the group fought the gnolls from both rooms at once, which was a tough fight. After the fight we decided to stop for this session.

Death of a Legislator: Dan Johnson’s Suicide and the GOP’s Far-Right Drift

Before facing abuse allegations and taking his own life, Kentucky Rep. Dan Johnson was becoming a far-right leader.

While the national press is focused on how the #MeToo movement is affecting Congress, state and city governments have also experienced a surge of women accusing politicians of sexual harassment and abuse. Kentucky has been especially shaken by this, with at least four Republican state legislators and a Democratic city councilman being publicly accused of sexual harassment in the past couple of months.

But the story took a particularly gruesome twist after a fifth statehouse Republican, Kentucky state Rep. Dan Johnson, took his own life last Wednesday. That came shortly after the Kentucky Center for Investigative Reporting published a blockbuster exposé of Johnson’s disturbing history, including allegations that he molested a 17-year-old member of his Heart of Fire congregation, where he was a minister.

This entire sordid affair is already being twisted by conservative pundits to discredit the #MeToo movement. Kathleen Parker asks whether Johnson had “a right to some sort of dispassionate hearing,” ignoring the fact that the alleged victim went to the police, to no avail. A deeper look into Johnson’s career, however, suggests a different moral: It illustrates the growing problem of radical fundamentalists quietly infiltrating local state governments.

Roy Moore may have lost his chance to be the U.S. senator from Alabama — if by an agonizingly narrow margin. But dozens of mini-Moores are flourishing in state legislatures, where they are pushing the Republican Party ever further to the right and quietly working to dismantle women’s access to reproductive health care.

While the molestation allegations against Johnson have been the focus, R.G. Dunlop and Jacob Ryan of the Kentucky Center for Investigative Reporting also uncovered a dizzying amount of disturbing information about Johnson that should have been disqualifying long before those accusations came to light. The man was a con artist who told lies about his own biography so outrageous they hardly needed fact-checking. He had repeatedly been in trouble with the law for running an illegal bar out of his church, and over several apparent arson incidents. During the 2016 election, he posted racist memes portraying Barack and Michelle Obama as monkeys and won his election over Democrat Linda Belcher anyway.

“I think that led him to believe there were lots of things he could do, yet his folks would still support him,” Marcie Crim, executive director of the Kentucky Health Justice Network, told Salon. 

When his Republicans colleagues came under fire in November for sexual harassment allegations, Johnson took to Facebook to offer a defense, writing, “I’m totally against anything that has to do with abuse, however there are no perfect people.”

Crim was not surprised by this, saying that both sexual abuse and anti-choice beliefs stem from an unwillingness to “believe that women’s bodies belong to the women.” Essentially, she said, right-wing men want to touch women “whenever they want, and they also want to tell them what kind of health care they can and can’t get access to.”

Johnson wasn’t just anti-abortion, which is par for the course in Republican politics. He was a radical anti-choice fanatic. He appears to have been closely working with Operation Save America, an extremist Christian organization that pushes what it calls the “doctrine of the lesser magistrates,” which holds that Christians shouldn’t obey laws that they believe conflict with God’s laws. It’s the same theory used to bolster the case of Kim Davis, the Kentucky clerk who refused to sign marriage licenses for same-sex couples. Now it is being used to argue that federal laws protecting abortion rights need not be respected.

In October, Johnson pre-filed a piece of planned legislation called the Abolition of Abortion Act, which would have criminalized abortion in Kentucky both for doctors and patients. The proposed bill explicitly instructed the state to enforce this ban “regardless of any contrary or conflicting state or federal laws, administrative regulations, executive orders, or judicial decisions.” It appears Johnson was trying to put this “lesser magistrate” notion into law.

In an emotional video released before Johnson committed suicide — but after the allegations of sexual misconduct had emerged — Rusty Thomas, the head of Operation Save America, blamed the “sexual revolution” for sexual harassment, saying, “God is lifting the skirt of our national whoredoms.”

Thomas went on to defend both Johnson and Roy Moore, saying that the “establishment will spend millions of dollars to dig up dirt” and that it has “successfully weaponized sex as a political weapon” to publicly shame those “seeking to stand for righteousness and for godliness in our nation.”

Thomas, it’s worth noting, spends his days organizing protests outside abortion clinics that are meant to publicly shame women seeking abortion. Johnson himself showed up at one of these protests and was photographed by clinic escorts.

In the video, Thomas calls Johnson “the congressman we have been working with to introduce a bill of abolitions.” This comports with what Rewire reporter Jenn Stanley discovered while working on her audio documentary “Marching Toward Gilead.” She called Johnson to ask him about his anti-abortion bill, and he had Joseph Spurgeon, a pastor who works with Operation Save America, call her back within seconds. 

“I didn’t tell Dan Johnson that this was a story about Operation Save America,” Stanley told Salon. “So Joseph Spurgeon must be a guy he sends out to talk to reporters.” Spurgeon and Thomas have also said they tried to call and text Johnson to prevent him from committing suicide, to no avail. 

(Full disclosure: My partner was an executive producer on Stanley’s documentary.)

Operation Save America was the group that spent decades harassing Dr. George Tiller, an abortion provider in Wichita, Kansas, until a regular clinic protester murdered him in 2009. When another clinic opened in the place of Tiller’s, Thomas declared, “OSA has some unfinished kingdom business in Wichita, Kansas. Tiller’s mill was reopened.”

But the main focus of Operation Save America has been the last remaining abortion clinic in Kentucky, which has been subject to the illegal clinic blockades that the groupused in the ’90s but abandoned for many years — until now. The group has been open about its desire to make Kentucky the home of the radical anti-abortion movement, especially now that it believes Donald Trump’s presidency has eased the path for more militant tactics.

The relationship between Johnson and Kentucky Gov. Matt Bevin also shines some light onto the political dynamics that are allowing Republicans to chip away at abortion access in red states. As Crim argued, people like Johnson “would have been fringe characters two years ago, five years ago, but now they’re getting elected to office.” 

Once in, legislators like Johnson embrace extreme and blatantly illegal positions, such as an effort to reclassify abortion as murder. This makes politicians like Bevin, whose strategy is to use ginned-up regulations to bury abortion clinics under red tape, look moderate by comparison. But in reality, as Crim put it, “The fringe has become the mainstream.”

There’s only one abortion clinic left in Kentucky, because Planned Parenthood was unable to get hospital transfer agreements required by a recently-passed (and medically unnecessary) law blatantly intended to shut down as many clinics as possible. Planned Parenthood says it has evidence showing that Bevin used defunding threats to prevent hospitals from helping Planned Parenthood follow the law.

There is also reason to believe that Bevin’s true sympathies lie with extremists like Dan Johnson and Operation Save America. In February, Bevin held a meeting with the leaders of Operation Save America, who say they gave him the book “Doctrine of the Lesser Magistrates” by Matt Trewhella, a pastor who has argued that murdering abortion doctors is justified. The group’s leaders further claimed Bevin had praised the book, even as he demurred on the question of signing legislation to classify abortion as murder.

(Bevin’s office and Operation Save America both failed to return Salon’s requests for comment.)

Stanley and Crim both told Salon that this entire situation highlights how easy it is for radicalized right-wingers to get power in state legislatures and start pushing a state’s politics to the right.

“Most people just have no idea who their state representatives are. People don’t go up to vote for that,” Stanley said. That makes the state legislature fertile ground for extremists to build a power base. “When you think about the things that really affect people’s personal lives,” she continued, “it’s the laws that are passed by these state legislators.”

Johnson’s death has certainly rattled the far-right fundamentalists who supported him, but it doesn’t seem to be slowing down their efforts to push their absolutist agenda through the Kentucky legislature. Even before Johnson’s death, his supporters were writing off the sexual abuse allegations as a politicized lie created by the “establishment” and largely ignoring the multitude of alarming claims about Johnson’s long history of fabrications. The day after Johnson’s death, his widow, Rebecca Johnson, announced plans to run for his legislative seat. “These high-tech lynchings based on lies and half-truths can’t be allowed to win the day,” she declared.

“People like to say it’s the last, dying gasp of previous generations,” Crim said of the rise of the far right in state legislatures. “And maybe it is the last gasp — but it’s a big gasp. It’s a very powerful breath they’re taking.”

 

 

 

Related Stories

  • Republican Senators Are Making Out Like Bandits with Special Real-Estate Tax Break
  • Paul Krugman: The GOP Is Completely, Hopelessly Corrupt
  • Is Trump an ‘Aspiring Despot’ or a ‘Bumbling Showman’? Why Not Both?

Reflection API : in Java

Reflection API : in Java


What is an API?

Application program interface (API) is a set of routines, protocols, and tools for building software applications. An API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together,and build his own application.

An example, You are buying an item in online through your credit card. You will provide credit card details and press continue button. It will tell you whether your information is correct or not. To provide these results, there are lot of things in the background.
The application will send your credit card details to a remote application which will validate your information and send the result back your application. API is used in this scenario.
Java application programming interface (API) is a list of all classes that are part of the Java development kit (JDK). It includes all Java packages, classes, and interfaces, along with their methods, fields, and constructors. These pre-written classes provide a tremendous amount of functionality to a programmer.

Reflection API:

As we now know what is API in java,So in simple terms we can say Reflection API is a collection of classes which are meant for Reflection operations in java.

What is Reflection?


In Java, the process of analyzing and modifying all the capabilities of a class at runtime is called Reflection.Reflection is a language’s ability to inspect and dynamically call classes, methods, attributes, etc. at runtime.

Reflection is important since it lets you write programs that do not have to know everything at compile time, making them more dynamic, since they can be tied together at runtime.

For example, using reflection at the runtime you can determine what method, field, constructor or modifiers a class supports.

Where it is used?

The Reflection API is mainly used in:
  • IDE (Integrated Development Environment) e.g. Eclipse, MyEclipse, NetBeans etc.
  • Debugger
  • Test Tools etc.
For example, say you have an object of an unknown type in Java, and you would like to call a ‘doSomething’ method on it if one exists. Java’s static typing system isn’t really designed to support this unless the object conforms to a known interface, but using reflection, your code can look at the object and find out if it has a method called ‘doSomething’ and then call it if you want to.
Using Java Reflection Classes you can obtain  information about:
  • Class Name
  • Class Modifies (public, private, synchronized etc.)
  • Package Info
  • Superclass
  • Implemented Interfaces
  • Constructors
  • Methods
  • Fields
  • Annotations
and much more information about java classes.

Java.lang.reflect:

java.lang.reflect package encapsulates several important interfaces and classes. These classes and interface define methods which are used for reflection.

java.lang.Class class:

The java.lang.Class class performs mainly two tasks:
  • provides methods to get the metadata of a class at run time.
  • provides methods to examine and change the run time behavior of a class.

Commonly used methods of Class class:

Method Description
1) public String getName() returns the class name
2)public static Class forName(String className)throws ClassNotFoundException  loads the class and returns the reference of Class class.
3)public Object newInstance()throws InstantiationException,IllegalAccessException creates new instance.
4) public boolean isInterface() checks if it is interface.
5) public boolean isArray() checks if it is array.
6) public boolean isPrimitive() checks if it is primitive.
7) public Class getSuperclass() returns the superclass class reference.
The following example shows the usage of java.lang.Class.getName() method.


import java.lang.*;

public class SCPTL {

public static void main(String[] args) {

// returns the Class object associated with this class
SCPTL cl = new SCPTL();
Class c1Class = cl.getClass();

// returns the name of the class
String name = c1Class.getName();
System.out.println("Class Name = " + name);
}
}
getClass() method returns the instance of Class class and  getName() method returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String(in this case name of class).
Above code will produce following output:

Uses of Reflection

Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java virtual machine. This is a relatively advanced feature and should be used only by developers who have a strong grasp of the fundamentals of the language. With that caveat in mind, reflection is a powerful technique and can enable applications to perform operations which would otherwise be impossible.
Extensibility Features
An application may make use of external, user-defined classes by creating instances of extensibility objects using their fully-qualified names.

Class Browsers and Visual Development Environments
A class browser needs to be able to enumerate the members of classes. Visual development environments can benefit from making use of type information available in reflection to aid the developer in writing correct code.

Debuggers and Test Tools
Debuggers need to be able to examine private members on classes. Test harnesses can make use of reflection to systematically call a discoverable set APIs defined on a class, to insure a high level of code coverage in a test suite.

Drawbacks of Reflection

Reflection is powerful, but should not be used indiscriminately. If it is possible to perform an operation without using reflection, then it is preferable to avoid using it. The following concerns should be kept in mind when accessing code via reflection.
Performance Overhead
Because reflection involves types that are dynamically resolved, certain Java virtual machine optimizations can not be performed. Consequently, reflective operations have slower performance than their non-reflective counterparts, and should be avoided in sections of code which are called frequently in performance-sensitive applications.
Security Restrictions
Reflection requires a runtime permission which may not be present when running under a security manager. This is in an important consideration for code which has to run in a restricted security context, such as in an Applet.

Want to learn more about java?

       

How to Survive a Wrong Career Choice?

Are you currently sitting at your desk, with your head in your hands, unsure whether you’re in the right place?or “did you take a wrong turn in your career?” are the kinds of ideas most job search websites build their promotional strategy upon. Similarly, career blogs and HR journals are also brimming over with write-ups on the same theme.

This is actually a very effective tactic which appeals to hundreds of employees who think that they might have made a false move in picking out current career. Convinced by this idea, more and more professionals become restless in their respective jobs, leading to a counter-productive working condition which becomes harmful for them.

So for the people engrossed in a career dilemma, the following write-up will explore different aspects of a so-called ‘wrong career choice’ and if it is really that wrong for your overall professional life.

Did you really make a wrong turn?

Before getting into the debate about the said topic, you first need to be sure if you actually made a wrong turn in your career.

A professional career is a complex amalgamation of a number of intrinsic and extrinsic motivational factors, and there is a whole bunch of things to be considered before quitting your job, or getting uneasy in your career chair.

Sometimes, people are not properly guided as how to tap their full potential in their career, and so they end up thinking that they made the wrong choice. In other cases, people don’t try hard enough to fit in their job and in turn blame it on the career they chose.

I am not suggesting that there is no such a thing as a wrong career. People end up in wrong careers all the time, sometimes in even the worst.

  • Ellen Degeneres was a paralegal and “oyster shucker.” Before being named Showtime’s Funniest Person in America in 1982, comedian and TV host
  • Johnny Depp was a telemarketer. He used to sold pens 
  • Anil Kumble – mechanical engineer who went on to become a Legendary leg spinner

The point however, is to fully understand your potential in your field, and before deciding that your current job is not giving out the expected results, you should give a thorough look at what ‘you’ are putting in.

The experience counts

There is no substitute for experience. It doesn’t matter which kind of experience you are getting or in which field, the things you’ll learn will always pay off. If you think that your wrong career choice will not look good on your CV, especially when you plan to apply in a totally different field, then you should feel good about being wrong.

You can make your wrong career look good for you by building upon the diversity of your experience. A diverse experience improves your ability to deal with unknown challenges and helps you to come up with solutions which may be known in one industry but not the other.

Another way your experience will empower you, is through making you aware of your professional deal-breakers.

You will know exactly the kind of questions to ask from your potential employer in the next job interview, so you can avoid another wrong turn.

Lastly, no matter how ill-fitting your career is for you, you’ll be able to learn certain skills and abilities that are relevant and helpful across all walks of life. Such are called transferable skills and may include things like; time management, effective communication and the spirit of teamwork etc.

Take the best out of the worst

Think about the positives about your job, no matter how trivial they are, and try to enjoy them to the fullest.

For instance, maybe the job you opted for is not fit for you but you’ve made some good friends among the colleagues, or perhaps your organization covers your family’s medical expenses. I would say even a free lunch facility can give you some reason to feel good about your choice.

Remember that good things come in small packages and as soon as you’ll learn to see these small packets of happiness lying all around, you’ll start to feel more positive and content.

It’s just a job

If you are ever stuck in a wrong career, don’t take it as an end-of-the-days scenario. I fully understand that once you realize the faults in your career choice, getting uneasy about it and seeing it as a downward trend in your career graph becomes inevitable.

However, in almost every person’s average professional life, one hops a number of jobs to reach the best one.

This idea has been supported by the Career Chaos Theory which says that, due to the unpredictable circumstances, for many people the career path is not linear because it is often influenced by certain unforeseen external factors.

Take your wrong career choice as a source to learn about your right career, and know that one job will not define your entire career.

Meanwhile, find the right job

After floating all the aforementioned arguments, my last piece of advice will be to look for the right career.

Once you are completely sure that the work you are doing is not meant for you, use all the time you can manage to first decide which career you want to go for, and then start searching ways to get into it.

You can use the time in your wrong job to prepare yourself for the right one, especially if your desired career is totally different than the current one. You can take online tutorials or join an evening school to get yourself acquainted with the field.

Networking with people from your potential career can also help, both in knowing about the job openings and the field itself.

At the end, it is important to remind yourself that by saying yes to a career that is not suitable for you, you have not committed professional suicide. A wrong career is after all a choice, and with every choice comes an opportunity.

You can continue to create opportunities for yourself by capitalizing on your decisions and making the best out of them.

Want to make your career in technical field?


What is PATH and CLASS-PATH all about in JaVa ?

What is PATH and CLASS-PATH 


Many problems in the installation and running of Java applications are caused by incorrect setting of environment variables (global system variables available to all the processes running under the system), in particular, PATH, CLASS-PATH.

PATH Variable:

PATH is basically an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located. In general, each executing process or user session has its own PATH setting.
When you launch a program from the command line, the operating system uses the PATH environment variable to search for the program in your local file system. PATH maintains a list of directories for searching executable programs.
If the program cannot be found in these directories, you will get an error. For example, if Java Compiler “javac.exe” is not found in the current directory and all the directories in the PATH, you will receive this error when compiling java source code:

ERROR:javac is not recognized as an internal or external command.



 For Java applications, PATH must include the following directories:
  • JDK’s “bin” directory (e.g., “c:Program Filesjavajdk1.7.0_{xx}bin”), which contains JDK programs such as Java Compiler “javac.exe” and Java Runtime “java.exe”.
  • “c:windowssystem32” and “c:windows” which contain console programs and commands.

How To set Path in java?

There are 2 ways to set java path:
  1. Temporary.
  2. Permanent.
1.Temporary path of JDK in windows:

  • Open command prompt
  • copy the path of jdk/bin directory
  • write in command prompt: set path=copied_path

Let’s see it in the figure given below:


2.Permanent path of JDK in Windows:
  • Right click on ‘My Computers’ and open ‘Properties’.
  • In Windows Vista or Windows 7, go to “Advanced System Settings”. Else go to next step.
  • Go to ‘Advanced Tab’ and click on Environment Variables button.
  • click on new tab of user variables
  • write path in variable name and paste path of bin folder in variable value.
  • Click on OK botton.

Setting JAVA path in Linux OS:

Setting the path in Linux OS is same as setting the path in the Windows OS. But here we use export tool rather than set. Let’s see how to set path in Linux OS:

export PATH=$PATH:/home/jdk1.6.01/bin/


CLASS-PATH in java:

The CLASS-PATH is an Environment variable is one way to tell applications, including the JDK tools, where to look for user classes. Class-path in Java is the path to directory or list of the directory which is used by Class-Loaders to find and load classes in Java program.
It would be impractical to have the JVM look through every folder on your machine, so you have to provide the JVM a list of places to look.  Therefore you need to set your class-path such that, JVM should be able to locate all your resources like classes, files, jars etc.
Setting CLASS-PATH:

In order to set Classpath for Java in Windows you need to specify the value of environment variable CLASSPATH, the name of this variable is not case sensitive and it doesn’t matter if the name of your environment variable is Classpath, CLASSPATH or classpath in Java.

Steps:

    How to se Java Classpath in windows and Unix Linux

  1. Go to Environment variable window in Windows by pressing  or you can go from rig“Windows + Pause “–> Advanced –> Environment variable ht click on my computer than choosing properties and then Advanced and then Environment variable this will open Environment variable window in windows.
  2. Now specify your environment variable CLASSPATH and put the value of your JAVA_HOMElib and also include CURRENT DIRECTORY by including (dot or period sign).

Now to check the value of Java classpath in windows type “echo %CLASSPATH” in your DOS command prompt and it will show you the value of directory which is included in CLASSPATH.

  • You can also set classpath in windows by using DOS command like:
set CLASSPATH=%CLASSPATH%;JAVA_HOMElib;

This way you can set the class-path in Windows XP, windows 2000 or Windows 7 and 8, as they all come with command prompt.


Setting CLASS-PATH in LINUX:

To set Class-path for Java In Linux, you can simply export CLASSPATH=”your classpath” from either your .bash_profile or .bashrc script which will run whenever your login into your Linux or Unix Machine. Now to check the value of Java CLASSPATH in Linux type “echo ${CLASSPATH}” this will print the value of Classpath in command prompt. By using the export command, you can set the classpath for Java in Unix, Linux, Solaris, or any other UNIX operating system. 
What are main differences between CLASSPATH and PATH?

  1. Path is an environment variable which is used by the operating system to find the executables. Classpath is an environment variable which is used by the Java compiler to find the path, of classes.i.e in J2EE we give the path of jar files.
  2. PATH is nothing but setting up an environment for operating system. Operating System will look in this PATH for executables. Classpath is nothing but setting up the environment for Java. Java will use to find compiled classes.
  3. Path refers to the system while classpath refers to the Developing Environment.

Want to learn more about java?

The best tech gifts for men

Yes, the holidays are almost here again, and so if you haven’t finished shopping yet, it’s time to start thinking about what to get those special people in your lives. Or the people you want to suck up to – could go either way. So this year, we have a roundup of some of the best gifts you can give that will apply to most guys… though many of them will honestly make sense for anyone regardless of age or gender. Or you can go regift that fondue set from last year. We won’t judge. Should you decide not to go that route, here are some things you can think about.

Looking for even more options? Check out the following guides:

  • 10 cheap tech gifts that only look expensive
  • Best tech gifts under $25
  • Best tech gifts under $50
  • 11 cheap secret Santa gifts
  • These gifts look like they come straight out of Star Trek
  • 6 geeky gift ideas that aren’t just for nerds anymore

Exercise tracker

Exercise trackers are a thing these days. They allow you to track your steps, heart rate, and a number of other vital statistics to keep you healthy and happy. The Fitbit Blaze is Fitbit’s first foray into smartwatch territory. The Fitbit Blaze uses Fitbit’s custom software to track your body’s stats, and deliver some smartwatch notifications as well. The design is a little on the chunky side, but it can average around four days of battery life.

See more

If Fitbit isn’t his style, maybe give the Garmin Vivosmart a look.

Get Fitbit Blaze at Amazon
Get Garmin Vivosmart at Amazon
 

Home Assistant

Home assistants are one of those items that, once you have them, you can’t live without them. From checking on weather, appointments, or traffic to controlling your smarthome, a home assistant is one of the more futuristic technologies available today. But they can be a little pricey and it seems like something one wouldn’t buy for oneself, which is what makes it a perfect gift!

Google Home is a great product, and it even allows you to make phone calls and play movies and YouTube videos on your Chromecast-connected TVs. Google Home is a jack-of-all-trades kind of product, while other home assistants are a little more focused in one area or another. So, The home is definitely our recommendation in this gift guide. Check it out in the links below.

If your recipient is more Amazon-focused, then the second-generation Echo is also a great buy. Don’t forget both Google Home and the Amazon Echo have “mini” counterparts – you know, if you don’t love them THAT much.

See more
Get Google Home at Google
Get Amazon Echo at Amazon

VR Headset

In the world of VR, Oculus is by far the best known brand out there. While devices like the HTC Vive offer an outstanding experience the Oculus Rift headset is one of the go-to models in the world of VR. It offers a great array of games, plus support from a multi-billion dollar company which is always helpful. The Oculus Rift requires a pretty hefty computer to hook up to, much like the Vive, but the price is a bit lower – around $100 dollars lower.

Truth be told, the HTC Vive is a great experience too – you won’t really go wrong with either one. But Oculus has the name recognition and has a much stronger source of cash, tipping the scales in its favor.

Of course, if your recipient has a Playstation, the Sony Playstation VR is a great headset as well.

Get Oculus Rift at Amazon
Get HTC Vive at Amazon
Get PlayStation VR at Amazon

Headphones

In case you haven’t noticed, wired headphones are a dying breed. At least, those with a 3.5mm jack are. It remains to be seen what will happen with USB Type-C connectors or lightning connectors (hashtag #courage). For now, it’s best to adapt or die, so let’s talk about some bluetooth headphones.

The Jaybird X3 bluetooth in-ear headphones are sleek and stylish with great connectivity. These headphones come with a nice carrying case as well, making them a nice little package. That being said, these are in-ear monitors, which isn’t for everyone. The sound coming from them tends to be good, but not great, so if sound quality is of the utmost importance, or you’re not a fan of in-ear headphones, you may want to look at the Grado SR60e instead.

Get Jaybird X3 at Amazon
Get Grado SR60E at Amazon

Media Streaming

More and more of our content is coming from the internet these days. With the somewhat recent introductions of cable replacement services, like YouTube TV, Sling TV, and others, cord-cutting is becoming a real possibility for many folks out there. Of the wide variety of set top boxes that are out there, Roku stands above the rest. First and foremost, Roku has been doing this for a long time – long before the cord cutting phenomenon began. The Roku Express is an inexpensive, but not underpowered little box that can load up all of your cord-cutting apps without breaking a sweat, and without breaking the bank.

Roku’s UI is also very nice and very streamlined. Oddly enough, Amazon’s Instant video app works much better on the Roku than it does on the Fire Stick. Go figure. Speaking of the Fire Stick, that’s not a bad alternative to a Roku, if you happen to like Amazon’s interface and ecosystem.

See more
Get Roku Express at Amazon
Get Amazon Fire TV Stick at Amazon

Tablet

The future of tablets doesn’t really look all that bright if we’re going to be totally honest. But, there are still some solid use-cases for tablets today. The aforementioned cord-cutting/media streaming is a big one. Gaming is a solid number two. Whatever the case, tablets are still here, and they’re still fun to play with. And in the tablet space, the industry leader is far and away the iPad. From its inception the iPad has handled the transition from small phone screen to large tablet screen the best. Apps are designed exclusively for the iPad, and not just scaled up.

Sure, the iOS interface is about as exciting as watching paint dry in a cornfield in Iowa after 8 hours of fishing having caught no fish. I may be overstating, but the point is, even though the interface is not exciting, the apps make the ecosystem, and iPad app development is not going anywhere any time soon. However, if you’re a fan of thumbing your nose at industry trends, the runner up in the tablet market – the Amazon Fire also sports a solid lineup of devices to choose from with its own app ecosystem – assuming you can live without Google services.

Editor’s Pick
Get iPad Pro at Amazon
Get Fire tablets at Amazon

Phones

Of course if you really want to blow away a man during the holidays, who doesn’t love a new phone to play with. And recently, the Google Pixel 2 XL is one of the most solid phones you can buy today. It’s true, there may or may not be some screen issues, and until those can be addressed it’s hard to throw a lot of weight behind this recommendation. But, by the time you procrastinators out there are looking to shop for the holidays, perhaps we might have more clarity.

That being said, the Samsung Galaxy Note 8 is also a great phone to pick up for the holidays. Samsung has been absolutely killing it in the hardware department, and the Note 8 takes real advantage of that stylus. For a powerful phone that will last and last, the Note 8 might just be your phone of choice this holiday season – especially when it comes to snapping photos and sending them to friends and family.

See more
Get Google Pixel 2 XL at Verizon
Get Samsung Galaxy Note 8 at Amazon

Laptop

But since we’re talking about computing power, why settling for a phone or tablet when a full-blown laptop might be just what the doctor ordered. And in that area, the Dell XPS 13 is a beautiful line of laptops that absolutely kills it in the hardware department. The Dell XP 13 laptop can be just as powerful as you need it to be – it’s a very versatile line of laptops and comes in a number of configurations. But all of them come in the same gorgeous package.

If you’re not a Windows fan, give a long hard look at the ASUS Chromebook Flip. With a full touchscreen, tablet mode, USB-C ports and more, this is a solid contender in the Chromebook space.

Get Dell XPS 13 at Amazon
Get Asus Chromebook Flip at Amazon

Robot vacuum

When you think of robot vacuums, you think of Roomba. Sometimes you think of a puppy on a Roomba, but that’s a different conversation. Having a robot vacuum wandering around the house, doing what you hate to do is one of those wonderful things that you don’t think you need, until you have it. Giving this as a gift to someone is another one of those “you won’t buy it for yourself, so here” gift ideas. The Roomba 690 is one of the midrange options which gets you a lot of bang for your buck. It has WiFi connectivity and can be controlled using an app, plus there’s a host of other bonuses and add-ons that are pretty huge.

If the Roomba doesn’t float your boat, you can also take a look at the iLife A4. We also have a breakdown of a number of different robot vacuums over on DGiT.

Get Roomba at Amazon
Get iLife A4 at Amazon

Smart Coffee Pot

Coffee is arguably one of the most important parts of waking up in the morning. Millions of customers standing in line at Starbucks, Dunkin’ Donuts, and more every day can’t be wrong. But this is the future, and the future of coffee is in the smart Coffee Pot. Not to mention, we all like to drink coffee while we watch radar; everyone knows that. Enter the Mr. Coffee Smart WeMo Coffee Maker. This app-controlled coffee pot lets you automate much of the coffee making process – check the status of the coffee pot, set daily schedules for brewing, etc.

Alternatively, you could also take a look at the Behmor Connected Coffee Pot. We also wrote up a comprehensive look at smart coffee pots over a DGiT. Take a look!

Get WeMo Coffee Maker at Mr. Coffee
Get Belmor Coffee Maker at Amazon

TV

Vizio.com

Nothing says love during the holidays like a new TV, but getting the best new TV, without busting your budget can be a pretty big ask. The Vizio M Series 55-inch TV offers a lot of bang for your buck, and comes with an Android tablet to boot. The downside is, you use this android tablet as a remote which can be less than ideal. But to wrap up a TV and a tablet for the holidays, is a pretty big win in our opinion, so this would be a good way to go.

If you’re looking for a TV for gamers, the TCL P607 is a solid buy as well. Both TV’s are full array backlit instead of edge lit resulting in better black levels.

Get Visio TV at Amazon
Get TCL TV at Amazon

Drone

What man doesn’t want a drone? For the money, the DJI Spark is one of the best out there. Remarkably slim and stable, you can even fly the DJI spark using gestures, rather than a remote. Sure, it’s mostly a parlor trick at the moment, but it’s still pretty awesome tech and fun to brag about at parties. The DJI Spark is a great, “Grab and go” type of drone which will get you some great shots, and has a fair bit of range as well.

But it you want to really blow their doors off, take a look at the Phantom 4, also by DJI. The Phantom 4 is the Cadillac of drone flying with a range of two miles and more. Learn even more about your drone options over at DroneRush.

Get DJI Spark at Amazon
Get DJI Phantom 4 at Amazon

Home Game Console

At the beginning of the year, Nintendo came out with its new gaming console, the Nintendo Switch. At first, the console was tough to get hands on. Now the system can be had at most retail outlets without much hassle. The Nintendo Switch is one of the most versatile gaming systems out there. The tablet-like console has controllers on either side that slide off, the tablet itself has a kickstand, plus there’s an included dock to hook the console up to a TV. It is very close to an optimal gaming solution.

It’s not without its drawbacks – it’s a little underpowered compared to most modern gaming consoles. But the versatility of gaming scenarios, from family game nights, to road trips is pretty much unparalleled by any other system. If you know a gamer who doesn’t have a Nintendo Switch, this would put a smile on their face. Of course you could also get an Xbox or PS4, but odds are the person in your life already has one if they are into games at all. 

Get Nintendo Switch at Amazon

Smartwatch

Smartwatches are one of those fun accessories to a smartphone that you need to use, in order to understand. Unlike many accessories of this nature, there’s a pretty high barrier of entry to get in on this trend. So, what better way to bring joy to a man’s heart than with the gift of a smartwatch. The Samsung Gear S3 Frontier smartwatch is a stylish smartwatch that works great with his Android smartphone. The Tizen-based watch even add Samsung Pay ability through the watch, making contactless or magnetic stripe payments fun and easy. The days of cash are numbered and contactless payment opportunities are becoming more and more widespread. Best get on that wagon now.

Of course, if you need a watch for an iPhone user, look no further than the Apple Watch Series 3. No seriously, look no further, because that’s basically the only smartwatch that will work. The Apple Watch Series 3 adds LTE connectivity to the fold, which can be a great addition to the smartwatch family.

Looking for more options? Be sure to check out our guide to the best smartwatches.

Get Samsung Gear S3 Frontier at Amazon
Get Apple Watch at Amazon

Power bank

You can’t anticipate what’s going to happen on a daily basis, especially when it comes to your smartphone battery. So many smartphones today boast “all day battery life” which frankly leaves little room for error if your day is going to be longer than planned. Sometimes, you’ve just had a heavy gaming day. Whatever the reason, it’s always a good idea to have some extra juice on you when you need to tether on the train ride home, or entertain the kid while in line at the DMV. Does that seem to specific? Because believe me, it happens.

In cases like those, the Anker Powercore+ 20,000 mAh power bank might be a little on the beefy side, but it is very slick looking and slips easily into a bag. Plus it gives you PowerIQ technology and even a USB Type-C port for charging. This will top you off at the end of a long day, or keep you going during an overnight camping trip.

If you need something a little more compact, take a look at the Eighty Plus 10,000 mAh power bank. It’s a lot more sleek and also more attractive. We have a full rundown of a number of other power banks here on Android Authority. If neither of these two are exciting – well, that’s because they’re power banks, but we also have a longer list to look at.

Get Eighty Plus 10,000 at Amazon
Get Anker External Battery at Amazon

Tracking Beacon

People lose stuff. Like always. Which is why there has been a recent surge in tracking tags that attach to your stuff, so you can locate it when you lose it. Use cases for these things extend from wallets and purses, to bikes, to keys – you name it. Many of these tracking tag systems rely on the crowd to throw a blanket of coverage over an entire area. Connectivity range is limited, so in order to track items beyond 30 feet away from your phone, Tile users can report items they come across to their owners. It’s an elegant solution that requires a ton of user adoption in order to saturate an area.

Tile, and similar competitor Trackr have both gotten the type of widespread adoption required to make this somewhat of a reality. There are still gaps, to be sure, but GPS enabled trackers have miserable battery life and cost a lot of money. If you know someone who tends to misplace items, Tile or Trackr might just be a good stocking stuffer this holiday season.

Get Tile at Amazon
Get Tracker at Amazon

So that’ll do it for our holiday gift guide for the men in your life. ‘Are any of these items on your shopping list? Think we left something out? Hit us up in the comments below and let us know what you’ll be camping out on Black Friday for.

Disclosure: E-Commerce Content is independent of editorial content and we may receive compensation in connection with your purchase of products via links on this page. This post may contain affiliate links. See our disclosure policy for more details.

Samsung Pay update allows users in India to pay bills inside the app

  • Samsung Pay is being updated to allow users to pay monthly bills within the app.
  • The bills include mobile postpaid bills, electricity, television, and more.
  • This update follows Google Tez rolling out similar features just a few weeks ago.

It seems like every day we hear about new mobile payment apps. But one of the biggest and most successful so far has been Samsung Pay. Even though the app is limited to Samsung’s devices, it has great features like utilizing Magnetic Secure Transmission (MST) to pay on machines that don’t have NFC.

Now, users in India are getting another fantastic feature. Samsung Pay is now letting users pay their monthly bills right from inside the app. According to SamMobile, the options include mobile postpaid bills, electricity, DTH (Direct-to-home television), and utility bills. Users can also save bank account and IFSC information for their friends and family so they can easily transfer money to them.

See also

Adding bills to Samsung Pay comes shortly after Google made a similar move. You might remember that a few weeks ago, Google’s Tez rolled out billpaying options for household and utility bills from major companies like Airtel, DishTV, Tata Power, ACT Fibernet, and DoCoMo. The service will eventually cover 70 different billers and cover national and state electricity providers, gas, water, and more.

Competition for customers in India is really heating up. Samsung is currently battling companies like Xiaomi and Huawei for supremacy in the country, and it is finding success. Even though Xiaomi may have come level with the South Korean juggernaut, Samsung is still a force. It recently added more than a million users to Samsung Pay in a single month and it continues to add features like UPI payments via Bharat QR codes.

Google is also working on its presence in the country through the Next Billion Users program. With affordable Android Go devices hitting the market, the competition is only going to get more fierce.

To get the new payment options, all you have to do is update the Samsung Pay app on your Galaxy device.

Advanced Excel Charts: Sooo Muuch Data – Analysis Needed !

Data visualization is the presentation of data in a pictorial or graphical format.

Today, we see data visualization being embraced like never before. Organizations that know and understand it, love its very existence. Since Big Data is a popular lingo in the tech world today across industries ranging from finance to communications, the need to drive better business decisions is the need of the hour. As a result, organizations are looking for better data visualization tools, to turn their essential load of data into something that is more comprehensible.
Excel charts are an efficient means to visualize the data to convey the results. In addition to the chart types that are available in Excel, some application charts are popular and widely used.
The importance of advanced charts
  • They provide consolidated information in a single chart that makes it easier to compare more than one data set and make decisions quickly
  • They allow us to customize the look and feel of the charts
Lets see some important Advanced Charts in Excel:

1. Band Chart

A Band chart is a Line chart with added shaded areas to display the upper and lower boundaries of the defined data ranges.
Band charts provide by far more context to your visualization and more insight into your data. Especially if you have to explore unknown data sets.

Why is a band chart more efficient than a line chart? Because it provides more context. Unlike a single line chart displaying only the development of the selected data series over time, a band chart provides a variety of additional information at a glance.

2. Waffle Chart:

A Waffle chart is a square divided by 10×10 cells. The value is displayed as percentage, so you can clearly see the difference down to 1%.
Pie charts are often criticized because while at the outset they do seem to convey the information, people still have a hard time comparing the angles and sizes of each element.
Making pie healthier resulted in the Waffle chart! A Waffle chart is essentially a squarified pie. Since it does not involve angles, it’s easier for the reader to compare accurately as well as evoke emotional comparisons.
You can use it with just one measure…
or with a category.


3.Heat Map

A Heat Map is a visual representation of data in a Table to highlight the data points of significance.
For example, in the dataset below, I can easily spot which are the months when the sales were low (highlighted in red) as compared with other months.
In the above dataset, the colors are assigned based on the value in the cell. The color scale is Green to Yellow to Red with high values getting the green color and low values getting the red color.

4.Waterfall Chart:

A Waterfall chart is a form of data visualization that helps in understanding the cumulative effect of sequentially introduced positive or negative values.
The columns are color coded so you can quickly tell positive from negative numbers. The initial and the final value columns often start on the horizontal axis, while the intermediate values are floating columns. Because of this “look”, waterfall charts are also called bridge charts.

5.Pareto Chart:

Pareto chart is widely used in Statistical Analysis for decision-making.It represents the Pareto principle, also called 80/20 Rule, which states that 80% of the results are due to 20% of the causes.
A Pareto or sorted histogram chart contains both columns sorted in descending order and a line representing the cumulative total percentage. Pareto charts highlight the biggest factors in a data set, and are considered one of the seven basic tools of quality control as it’s easy to see the most common problems or issues.

Want to learn Data Analytics?

Oculus Rift gets a last minute holiday price cut to $379, VR game bundles also available

We are now just one week away from Christmas, but many of you might still looking for the perfect gift to give to your favorite PC gamer. The folks at Oculus have made that easier with a last minute holiday price cut promotion for their Oculus Rift VR headset. You can get the Rift, plus two Oculus Touch controllers, for the price of $379, which is a $20 reduction from its normal $399 cost.

See also: Best Oculus Touch games

As revealed on the Oculus blog, the price cut promotion will last from now until 11:59 pm Pacific Time on Wednesday, December 20 (2:59 am Eastern Time on December 21). The discount is available from a number of online retailers, including Amazon, Best Buy, and Newegg.

In addition to the holiday price promotion, Oculus is also selling three downloadable VR game bundles for $89.99 each. All three bundles contain seven Oculus Rift games, which if bought separately would cost far more than their bundle prices. In addition, the Oculus Store has cut the prices of 250 games by as much as 80 percent during its Winter Sale, along with even deeper discounts for games selected for Daily Deals promotions. The Winter Sale on the Oculus Store will last until January 2, which means if you get that Oculus Rift for yourself or your family this week, you can also save a ton of money on great games like Star Trek: Bridge Crew, Lone Echo, Rick and Morty: Virtual Rick-ality and many more.

Get it at Amazon
Get it at Best Buy
Get it at NewEgg