text:
Q: Java SQLite: Is it necessary to call rollback when auto commit is false and a transaction fails? When working with a SQLite database in Java, suppose I set auto commit to false. Is it necessary when a SQLException occurs that I call rollback() method? Or can I simply ignore calling it and the transaction will automatically be rolled back (all the changes I made during the transaction will be undone automatically)?

A: Quick answer: The fact that you're asking means you're doing it wrong, probably. However, if you must know: Yes, you need to explicitly rollback.
What is happening under the hood
At the JDBC level (and if you're using JOOQ, JDBI, Hibernate, or something similar, that's a library built on top of JDBC usually), you have a Connection instance. You'd have gotten this via DriverManager.getConnection(...) - or a connection pooler got it for you, but something did.
That connection can be in the middle of a transaction (auto-commit mode merely means that the connection assumes you meant to write an additional commit() after every SQL statement you care to run in that connection's context, that's all auto-commit does, but, obviously, if that's on, you probably are in a 'clean' state, that is, the last command processed by that connection was either COMMIT or ROLLBACK).
If it is in the middle of a transaction and you close the connection, the ROLLBACK is implicit.
The connection has to make a choice, it can't keep existing, so, it commits or rolls back. The spec guarantees it doesn't just commit for funsies on you, so, therefore, it rolls back.
The question then boils down to your specific setup. This, specifically, is dangerous:
try (Connection con = ...) {
  con.setAutoCommit(false);
  try {
    try (var s = con.createStatement()) {
      s.execute("DROP TABLE foobar");
    }
  } catch (SQLException ignore) {
    // ignoring an exception usually bad idea. But for sake of example..
  }

  // A second statement on the same connection...
  try (var s = con.createStatement()) {
    s.execute("DROP TABLE quux");
  }
}

A JDBC driver is, as far as the spec is concerned, free to throw an SQLException along the lines of 'the connection is aborted; you must explicitly rollback first then you can use it again' on the second statement.
However, the above code is quite bad. You cannot use transaction isolation level SERIALIZABLE at all with this kind of code (once you get more than a handful of users, the app will crash and burn in a cavalcade of retry exceptions), and it is either doing something useless (re-using 1 connection for multiple transactions when you have a connection pooler in use), or is solving a problem badly (the problem of: Using a new connection for every transaction is pricey).
1 transaction, 1 connection
The only reason the above was dangerous is because we're doing two unrelated things (namely: 2 transactions) in a single try-block associated with a connection object. We're re-using the connection. This is a bad idea: connections have baggage associated with them: Properties that were set, and, yes, being in 'abort' state (where an explicit ROLLBACK is required before the connection is willing to execute any other SQL). By just closing the connection and getting a new one, you ditch all that baggage. This is the kind of baggage that results in bugs that unit tests are not going to catch easily, a.k.a. bugs that, if they ever trigger, cost a ton of money / eyeballs / goodwill / time to fix. Objectively you must prefer 99 easy-to-catch bugs if it avoids a single 100x-harder-to-catch bug, and this is one of those bugs that falls in the latter category.
Connections are pricey? What?
There's one problem with that: Just use a connection for a single transaction and then hand it back, which thus eliminates the need to rollback, as the connection will do that automatically if you close() it: Getting connections is quite resource-heavy.
So, folks tend to / should probably be using a connection pooler to avoid this cost. Don't write your own here either; use HikariCP or something like it. These tools pool connections for you: Instead of invoking DriverManager.getConnection, you ask HikariCP for one, and you hand your connection back to HikariCP when you're done with it. Hikari will take care of resetting it for you, which includes rolling back if the connection is halfway inside a transaction, and tackling any other per-connection settings, getting it back to known state.
The common DB interaction model is essentially this 'flow':
someDbAccessorObject.act(db -> {
  // do a single transaction here
});

and that's it. This code, under the hood, does all sorts of things:

*

*Uses a connection pooler.

*Sets up the connection in the right fashion, which primarily involves setting auto-commit to false, and setting the right transaction isolation level.

*will COMMIT at the end of the lambda block, if no exceptions occurred. Hands back the connection in either case, back to the pool.

*Will catch SQLExceptions and analyse if they are retry exceptions. If yes, does nagle's algorithm or some other randomized exponential backoff and reruns the lambda block (that's what retry exceptions mean).

*Takes care of having the code that 'gets' a connection (e.g. determines the right JDBC url to use) in a single place, so that a change in db config does not entail going on a global search/replace spree in your codebase.

In that model, it is somewhat rare that you run into your problem, because you end up in a '1 transaction? 1 connection!' model. Ordinarily that's pricey (creating connections is far more expensive that rolling back/committing as usual and then just continuing with a new transaction on the same connection object), but it boils down to the same thing once a pooler is being used.
In other words: Properly written DB code should not have your problem unless you're writing a connection pooler yourself, in which case the answer is definitely: roll back explicitly.


All trays light cigarettes wholesalers & trays light cigarettes manufacturers come from members. We doesn't provide trays light cigarettes products or service, please contact them directly and verify their companies info carefully.
Shenzhen Ok Smart-Lcm Photoelectric Co., Ltd.


HEALTH CONCERNS: Mia Anderson; Linda Brewer; Brenda Bunting; Ellie Crawford; Whitney Czerwonka; DeDe Eversole; Janice Funk; Jim Harbaugh; Erica Kremitzki; Amy Lee; Steve Leonard; Laurie McMillen; Barb Pearson; Fred Rahn; Dana Stenger; Harold Wattjes.
HOMEBOUND: Bernita Ashwill; Bessie Benson; Cora Jahnke; Neil Oliger; Corinne Oye; Art Rahn; Ruth Rentschler.
NEXT WEEK'S READINGS . . . Rev 14:6–7; Rom 3:19–28; Matt 11:12–19.
ABOUT THIS WEEK'S READINGS . . . The Pharisees ask a Law question. Jesus asks a Gospel question. The Pharisees seek to test Jesus in His own words. Jesus seeks to "test" them in the saving reality of who He is as the Messiah (Matt. 22:34–46). The Law requires you to "fear the LORD your God, to walk in all his ways, to love him, to serve the LORD your God with all your heart and with all your soul" and to "love the sojouner" (Deut. 10:12–21). Failure to keep the Law perfectly brings judgment. On the other hand, the Gospel brings the grace of God given by Jesus Christ, that you may be blameless in the day of His return (1 Cor. 1:1–9). Jesus is David's Son yet David's Lord, true God and true man. He is Love incarnate who fulfilled all the demands of God's Law on our behalf, that we might be saved from the Law's condemnation and sanctified in the Gospel's forgiveness. Thereby we see that "God is faithful, by whom you were called into the fellowship of his Son, Jesus Christ our Lord" (1 Cor. 1:9).
THOUGHTS ABOUT STEWARDSHIP . . . Matthew 22:40 "On these two commandments depend all the Law and the Prophets." We serve God and our neighbor through the various vocations (holy callings) that God has given us. We do not need to go searching for or inventing good works: God has given us roles to fill in Home, Church, and Society and when we work hard at them as faithful Christians, God-pleasing works are the result.
ALTAR FLOWERS . . . are given by Jim Harbaugh to the glory of God in memory of Ethel Harbaugh and Ethel Rahn on the occasion of their birthdays.
SUNDAY SCHOOL TEACHERS NEEDED . . . We are still in need of one teacher for the 4th–6th grade class. If this position is not filled those grades will not have Sunday School. Also beginning in January, we will need one teacher for the 1st–3rd grade class.
THE YOUTH GROUP EVENT . . . for October is set for Sunday, October 26, 4:00 pm—6:00 pm. We will be joining the Youth Group from Grace Lutheran Church, Paris, Illinois, for some hiking and games at their park facilities. We will be leaving the church at 2:45 pm and we will be back home no later than 8:00 pm. Please notify Pastor Braaten by e-mail that you plan to attend by Monday, October 20.
PEACE MEAL BINGO . . . People over 60 are invited to play free bingo with prizes on Friday, October 24, after Peace Meal. Reservations must be made by noon on Thursday, October 23, to (217) 253-2278. The meal will be turkey with all of the trimmings. The meal cost is a donation of $3.50. Join us for the food, fellowship, and fun. Hope to see you there.


text:
Budget 2018: Will Canada offer up the funds needed to lead on the global stage?
Here are five international elements to watch for as the
budget is tabled Tuesday, from SDG financing to the Feminist International
Assistance Policy to a pat on the back over trade.
Aniket Bhushan
Canada's Finance Minister Bill Morneau on Parliament Hill in Ottawa, December 13, 2017. REUTERS/Chris Wattie
Finance Minister Bill Morneau will table Budget 2018 on February 27. Our expectations at the Canadian International Development Platform, where we conduct research and data analytics on Canada's international engagement, are very low.
Timing makes this a "nothing" budget — it is too far away from the next election (October 2019) to announce major new spending or directions. We expect it will be a combination of touting success and cautious optimism. It will no doubt contain the usual messaging on strengthening the middle class, progressive, equal opportunity, reconciliatory, gender-equal, feminist agenda, with a healthy dose of innovation and technology, but little by way of new money to make any of this more real. In preparation for our assessment of the figures that are released, here are five areas relating to Canada on the global stage we will watch for.
1. A possible G7 initiative on leveraging private finance.
On Canada's global role (which is usually expressed in the "Canada in the World" budget chapter), it is impossible to delink the budget from the far larger and more global photo-op that is the Charlevoix G7 summit in June. There has been much pontificating about the Canadian G7 presidency and the themes are set.
Of note, the G7 ministerial meeting to be held in Whistler at the end of May will mark the first time development and finance ministerials are combined. This, along with the fact that Canada has been playing a keen role in the "friends of Sustainable Development Goals (SDG) financing" initiative, as we have discussed previously, among other indications, leads us to expect that Canada is working to corral the others around a G7 initiative to leverage private capital into development — so-called 'blended finance' at scale.
The idea is deceptively attractive — for example, using aid to incentivize pension funds to invest in lower-income countries and "base of the pyramid" opportunities. Whether it works is a different story. (Spoiler: we think it will not in the way it is being conceived.) We will watch for any indication of this in the budget, and at the G7.
Also worth watching is whether the budget touts the success of FinDev Canada, the new development finance institution based in Montreal that was finally launched this month, three years after it was first announced, and which received mention in both Budget 2015 and 2017.
The key point is that on development, we expect the budget to punt any real announcements to the G7. And we don't expect the G7 in Charlevoix to announce a signature priority with new money, as was the case with the Muskoka Initiative on maternal newborn child health in 2010, which came with $1.1 billion in new money. This year's outcome may be more like that of the G7 summit Canada hosted in 2002 in Kananaskis, where Canada announced an investment fund for Africa to 'pioneer' private sector approaches to development (an approach that may have been novel at the time, but certainly not so any more.)
2. Costed framework for the Feminist International Assistance Policy.
Global Affairs Canada launched its Feminist International Assistance Policy (FIAP) in June of last year. (We studied the implications of the targets embedded in the new policy, the findings of which can be found here). The policy came out at the same time as the new defence strategy — but while the defence strategy came with a fully costed framework (and a 70 percent increase in spending), there was no such framework when it came to the FIAP.
This is emblematic of how seriously, or rather not, development is taken as a pillar of Canadian foreign policy at the moment. When pushed, the department's response was that a funding framework for achieving the lofty ideals of the FIAP was in the works and forthcoming. It has not been released to date.
Two things have happened since the policy's release last year. First, the contrast between the development minister's position (that Canada needs a more "ambitious" plan to really champion women's rights) and that of the finance minister (that development groups need to do more with less foreign aid) has grown extremely stark. Second, going into the G7, on the official development assistance-to-national income (or ODA/GNI) generosity index, Canada's already poor performance has gotten even worse, and is now at one of its lowest levels in history.
No one serious about development believes the ODA/GNI ratio is the definitive measure of commitment to development. But, as anyone who has experienced the reaction of our partners in international fora on development issues can attest, the reaction abroad has been one of bemused confusion. To paraphrase a question I was recently asked by a foreign senior official, "Why does your prime minister feel the need to constantly talk about feminist development if he has no intention of paying for it?"
3. A modest increase to international assistance and improved transparency.
We expect Budget 2018 to announce a modest increase to the international assistance envelope (IAE), the main fiscal source that funds Canadian aid. But this may only serve to draw attention to the historically low level of commitment and heighten disappointment from the Canadian development sector and our multilateral partners.
The FIAP promised greater transparency when it comes to the level and future path of the IAE. This again remains unfulfilled. It is important to remember this was not always the case. Between 2002 and 2010, under both Liberal and Conservative governments, Canada had a predictable (eight percent growth per year) fiscal anchor that guided development spending levels. That framework has essentially been abandoned since 2010.
We will watch for both the level of 'modest increase' and progress, if any, on IAE transparency. As we noted two years ago in this publication, Budget 2016 attempted to address these issues but caused even more confusion. We certainly hope Budget 2018 does better.
4. Touting success on trade and investment.
On the Canada-EU Comprehensive Economic and Trade Agreement (CETA) and the recently concluded Comprehensive and Progressive Agreement for Trans-Pacific Partnership (CPTPP), the budget could tout success in terms of concluding the agreements. It is certainly a coup to get the "comprehensive and progressive" branding on the TPP. But what either mean in the context of the deal remains a mystery.
These trade deals are billed as part of Canada's diversification strategy. But consider the following: the EU, with which Canada has concluded CETA, is our second largest export market and about twice the size of China. But that still makes it only one tenth the size of the US. So, it should come as little surprise that the predicted gain for Canada from CETA in terms of increased economic output over the long-term is only $8 billion, or 0.4 percent of GDP. Similarly, CPTPP, which is even further off given it is yet to be ratified, is expected to yield $4.2 billion in long-term economic gain, or less than one-fifth of a percent of current GDP.
The prime minister has also made high-profile trips to China and, most recently, India. The latter apparently yielded $1 billion in two-way investment (details are still light as the trip concludes this week). In the context of a mere $8 billion in total annual bilateral trade this may seem big, but Canada is not even among the top 25 exporters to India. And the $250 million Indian companies are set to invest in Canada following Trudeau's visit is a fraction even compared to the approximately $3 billion stock of Indian foreign direct investment already in Canada (which incidentally exceeds the level of Canadian direct investment in India).
The fact that Canada has been negotiating an investment agreement with India for nearly 13 years and a trade agreement for nearly eight is just not good enough. During this time fortunes have changed, and Canada has gone from sought after to desperate seeker. This speaks to the complacency that pervades both Canadian business and economic diplomacy.
The point is that moving the needle on trade and investment is just too hard for Canada given the preponderance of the US, which implies much more focused and aggressive efforts are needed given the global competition for trade and investment.
We will look to the budget to see whether recent deals are merely touted or whether there is a plan to push for a more concerted and aggressive diversification of Canada's trade and investment footprint.
5. Preparing for a post-NAFTA Canada.
Finally, the 600-pound gorilla. By now it should be clear that NAFTA as we know it is a slow-moving train wreck. The next election will be won or lost on dealing with the fallout. We will watch for whether the budget shows any indication of Canada's Plan B.
Whatever the outcome on NAFTA, it is going to be less optimal than the status quo for Canada. The move to repeal NAFTA coming as a surprise to Canadian policymakers is (a) symptomatic of pervasive complacency and (b) inexcusable. After all, in the 2008 US election campaign, two democratic hopefuls in the primaries named Barack Obama and Hillary Clinton both campaigned on repealing NAFTA.
For all the talk by Canadian Foreign Minister Chrystia Freeland viewing trade as more than a zero-sum game — and then proceeding to contradict herself by reaching for an obscure spin on US trade stats to demonstrate that Canada has a deficit with the US, laughable given our calculations show that over the long term Canada has enjoyed a cumulative surplus with the US worth over $1 trillion since the launch of NAFTA — Canadian policymakers under the Liberal government have yet to show what, if anything, they have by way of an actual global trade strategy. Budget 2018 should start in that direction, because 2019 will prove more than a day late and a dollar short.
Open Canada is published by the Canadian International Council, but that's only the beginning of what the CIC does. Through its research and live events hosted by its 18 branches across the country, the CIC is dedicated to engaging Canadians from all walks of life in an ongoing conversation about Canada's place in the world.
By becoming a member, you'll be joining a community of Canadians who seek to shape Canada's role in the world, and you'll help Open Canada continue to publish thoughtful and provocative reporting and analysis.
How Canada can leverage its new Equality Fund to lead on women's empowerment
Bridget Steele
Matthew Gouett
Did Budget 2018 deliver the funds Canada needs to lead? Nice try, but no
Canada's 2017 Budget: Why nothing new isn't all bad news
Budget 2017: How to decipher Canada's commitments
Three ways Canada can update its approach to global development
Follow the money: Where is Canada heading on the global stage?

redpajama_set_name: RedPajamaCommonCrawl


We, Pete and Pam, are residents of the big island of Hawaii, but store a 4WD truck with camper in Reno, Nevada for summer excursions on the mainland. Prior to moving to Hawaii we lived and worked for over twenty years in the Clearwater Mountains of Idaho.
We are well versed in mountain, and now, island living. I retired from the U.S. Forest Service (Fire Mgmt.) and Pam still works remotely as a grant writer via the internet or cell service. Depending on the location and/or length of the sit this access may not be necessary.
We have no pets or children and do not smoke or do drugs. My wife enjoys a glass of wine with dinner but I do not drink. We both enjoy animals of all stripes and through the years have had several dog and cat combinations. They have all passed on due to old age. We do miss our buddies but look forward to caring for yours! In all house sitting positions Pete would be the primary caretaker responsible for maintaining properties, tending to animals, and running errands as need be. After living in the woods the majority of his life he is very capable of operating power equipment I.e chainsaws, weed whackers, mowers, pumps, snowmachines, ATV's, solar power setups, and plenty of hand tool experience!
When we owned our very remote home in Idaho we utilized caretakers when we travelled, so we know the trust you are placing in someone. Our references from previous house/pet sitting engagements are excellent, and speak to our character and ability.
Whilst traveling we find that housesitting is an excellent way to gain a better appreciation of an area and see it more from a locals point of view. We enjoy getting out, walking and exploring the neighborhoods. What better way to do that than with a new canine friend?!
Our residences and prior caretaking experiences in the mountains and islands have exposed us to interesting challenges and at times have required odd solutions. We are handy with tools and being self-sufficient with home repairs, construction, and upkeep. Our past sits we've cared primarily for dogs (all sizes, breeds) and cats, an eighty year old turtle, horses, and a donkey. Many of the animals have required daily medications, different feeding regimens, and consideration for their various maladies. We've also lived amongst bears, moose, cougars and know the protocols for doing so. Catchment water, drilled wells, solar power, four wheel driving, snow storms, hurricanes, wildfire, and other natural elements have been and continue to be a part of our daily lives.
Thor was well taken care of and home was left in excellent condition. Will definitely welcome them back for a future sit.
Pete and Pam are the ideal home and pet caretakers. My dogs were obviously happy with them and they left my home in such a welcoming condition. If I could choose Pete and Pam for every home and pet sitting occasion, I most certainly would! They're great!
I had the privilege of having Pete and Pam house sit for for 15 days in August ,2017. They had the responsibility of taking care of two horses, one donkey, two dogs and two cats. I came home to very happy and healthy animals. They gave several updates along with pictures while we were away. It was their first time taking care of large animals and they did an excellent job.
Not only did they take good care of our animals but their communication was great from the start. We had made arrange 6 months ahead of the sit and they were very organized from the start to the finish.
We came home to a very clean and tidy house. They even mowed our huge lawn. Pete was very handy and was able to fix a broken fence not to mention a few other things.
We were able to have dinner and spend the evening with them before we left. I felt like I had know them all my life. They were very delight and fun to be around.
Yes, I highly recommend them to house sit for you and I hope we cross paths in the future.
Our frenchie has a detailed list of spoiled child requirements and our home was inconveniently in the middle of remodel/construction. Pete handled both wonderfully! We hope he'll be able to housesit in the future.
I am a long-time friend of Pete and Pam.
I know from first hand experience that Pete takes impeccable care of his own home/property.
They are honest, hard-working and capable people.
I am rating them a 5 in all categories below--it's true.
Do not hesitate to have Pete and Pam care for your property.
Pam and Pete treated my house and pets as I do, with care and attention. When I returned I found the house in at least as good condition as when I left. They are very responsible and communicative, and do what they say they will. You'll be lucky to have them as housesitters.


Get ready to ace your AP Physics 1 Exam with this easy-to-follow, multi-platform study guide. 5 Steps to a 5: AP Physics 1 introduces an easy to follow, effective 5-step study plan to help you build the skills, knowledge, and test-taking confidence you need to achieve a high score on the exam.
Get ready to ace your AP Computer Science Exam with this easy-to-follow study guide. 5 Steps to a 5: AP Computer Science introduces an easy to follow, effective 5-step study plan to help you build the skills, knowledge, and test-taking confidence you need to achieve a high score on the exam.
30/09/2009�� Best Answer: PR is better than 5stepstoa5 in my opinion. I think you should just look at the PR book at a book store and see if you like it. If you don't like it, check out 5 steps to a 5.


text:
Covid-19 and CVD: The heart in the time of crisis
Dr Blanche Cupido is President-Elect of The South African Heart Association
This story is sponsored
This Mail & Guardian webinar on Covid-19 and CVD was sponsored by the South African Heart Association (SA Heart). Speakers included Dr David Jankelow, Cardiologist at Netcare Linksfield Clinics and President of SA Heart; Dr Blanche Cupido, President-Elect of SA Heart and Consultant Adult Interventional Cardiologist and Professor Liesl Zühlke, a Paediatric Cardiologist in the Department of Paediatric Cardiology at Red Cross Children's Hospital. The webinar was moderated by Marcelle Gordon, an Anchor on TV news channel eNCA.
Prevention is always better than cure, so looking after your health is key for both heart conditions and recovery from Covid-19. Finding effective ways to get this message across is a constant concern for those who work for SA Heart, and the issue cropped up repeatedly during the discussion. On the up side, there has been an amazing amount of collaboration among medical professionals during the pandemic; but it has also caused massive loss and heartbreak.
About 225 people die each day in SA from cardiovascular disease (CVD), which is the world's biggest killer. Many patients with CVD were afraid of contracting the virus, so they were ignoring their symptoms and not coming in for check-ups and, despite calls to do so.
Dr David Jankelow is a Cardiologist at Netcare Linksfield Clinics and President of The South African Heart Association
Over 100 people tuned into the webinar, including those with various cardiovascular conditions and those who treat them. A poll was conducted to see if anyone with cardiovascular disease (CVD) avoided going for check-ups or collecting medication because of Covid-19; only 14% indicated "never", but over 30% said "sometimes".
Dr David Jankelow said there has been a lot of teamwork and camaraderie among his colleagues at Netcare, in their dealing with Covid-19. "I've never experienced anything like this," he said about the pandemic, describing the period as "a blur". He said there has also been a lot of fruitful correspondence with those researching Covid-19 overseas.
Dr Blanche Cupido said that there is an some overlap of cardiac and Covid-19 symptoms, such as shortness of breath, palpitations and chest pain, so this was very anxiety-provoking for cardiac patients: do I have Covid-19, or are these just my usual symptoms? However, "the vast majority of those with Covid-19 won't have heart palpitations", according to Jankelow.
Professor Liesl Zühlke said working in a paediatric situation means that all decisions made about patients involve their families. Public health and family economies have affected the children enormously. She said the way the staff were looked after was a whole issue on its own, and that PIMS (Paediatric Multisystem Inflammatory Syndrome) was another big concern.
An emergency meeting was called about two months ago with the minister of health to develop a position statement regarding CVD and Covid-19. SA Heart welcomed the engagement with the health department, especially in the light of the advent of NHI, said Jankelow, who described Covid-19 as the new "great mimicker" — its symptoms can easily be confused with those of other diseases or conditions.
Professor Liesl Zühlke is a paediatric cardiologist in the Department of Paediatric Cardiology at the Red Cross Children's Hospital
Cupido echoed this, saying that there has been a lot of difficulty regarding diagnosis, and then how to deal with the people around the person diagnosed, as concerns such as poverty and housing then came into play. There was also a shortage of staff, as many frontline workers caught Covid-19 themselves. A lot of new issues cropped up, so the staff had to be very adaptable and "roll with the punches".
The pandemic has generated an immense amount of data, and this had to be assessed and validated continually. "It was a time of great humility" admitted Zühlke, as tactics had to be changed if they weren't working. She said they lost two great stalwarts in their field, Professors Solly Levin and Lungile Pepeta, which impacted them all deeply, and brought them "face to face with their own mortality". New ways to work with nurses and volunteer staff had to be formulated, and how to test them.
There was much heartbreak, as relatives could not visit sick loved ones, and this was compounded if family members had emigrated. PPE had to be worn, which was very uncomfortable; the "real heroes" were the nurses who had to wear it for six hours at a time, said Jankelow.
Cupido said the usual processes of treatment were stuck to, with added Covid-19 precautions, for those presenting with CVD symptoms. Zühlke said children with comorbidities were most affected by Covid-19. This was also an issue for pregnant women; both women and children are vulnerable populations and harder to treat.
She talked about the "Covid bulge" — many people ate too much and did not exercise enough during the lockdown, which makes them more susceptible to CVD and Covid-19. This is something she wanted to emphasise during Heart Month.
Jankelow, who is about to turn 60, is a CrossFit fan and now has to do 60 burpees as part of the course. He said prevention is better than cure, but that up to 50% of Africans don't even do light exercise or go for regular check-ups. If you are middle-aged, it may be best to consult your physician if you are starting an exercise regime, he advised.
Marcelle Gordon, Anchor on TV news channel eNCA
On the issue of health, many South Africans cannot afford healthy food and some don't have time for exercise, but Cupido said many people don't want to take responsibility for their health and blame risk factors beyond their control. Repeated messaging does make a difference; she tries to set realistic, simple goals for her own patients, and help them own their issues and actions.
Zühlke said that children are agents of change, able to change the behaviour of the entire family. Maintaining your teeth can help lessen certain heart conditions, so strong messages are being sent out regarding sugar and fizzy drinks. Social media is an effective way of getting health messages across, but not everybody has access to data. Community radio is "incredibly useful" for getting health messages out, she said; other things like wearing red on Heart Day help.
Masks may be uncomfortable, but wearing them is very important to prevent the spread of the virus. Only very young children can be excluded. It's very important for people with heart conditions to wear masks, even if they are not comfortable, and even though the lockdown levels have dropped; masks don't decrease the level of oxygen, so heart patients should continue to wear them.
Does Covid-19 affect your heart? A recent test showed that those who had the virus have had some kind of affect on their hearts, so it's best if you have had it to begin exercise very gently. The long-term effects are not known.
There is some evidence that anticoagulants help if you have Covid-19, but if you are on anticoagulants already, it won't prevent you from getting the virus. Patients should not alter their medication if they catch Covid-19. Early diagnosis is always best to decrease long-term effects of CVD, so scanning for symptoms before and just after birth is recommended. "Raising the flag of awareness is absolutely crucial" said Zühlke — men and women have different symptoms for the onset of heart attacks, for instance — and early detection is crucial for PIMS.
Children with heart conditions often neglect their healthcare when they become adults, but this care should be maintained to prevent gaps, and a lot of work needs to be done in this area. Those most at risk of CVD are the people who are overweight, diabetic and hypertense, and this group is also most at risk of dying from Covid-19.
Jankelow said the biggest plus from the pandemic was the collaboration among experts. We must build on what we know, said Cupido, and work out what functioned most efficiently. She advised those who take medication to be proactive and keep a two-week supply handy. Zühlke said that data has determined policy; that those who have helped others in this time deserve recognition; and that we must all actively maintain our health; "health is not just taking a pill when we get sick".
To listen to the webinar, visit: https://event.webinarjam.com/replay/400/oy764s33s1zt8rsv0mm
September is Heart Awareness Month – an entire month dedicated to raising awareness about cardiovascular disease in South Africa, culminating with World Heart Day on September 29. For more information on CVD visit: https://www.saheart.org/
About Mail & Guardian Sponsored Stories
The Mail & Guardian's sponsored stories are produced in association with paying partners. We work closely with our partners to ensure all stories meet our standards of editorial quality, and offer information of value to readers.
If you would like to speak to our team, please contact us at this email address.
Covid-19 vaccine and the road to recovery
Contributing to lecturer professionalisation with the technical, vocational, education and training sector
Pivot your small business to online
POWER Business #OnTheMoney talks to Risenga Maluleke, South African Statistician-General
Failing to learn the lessons? The impact of Covid-19 on a Broken and Unequal Education System
Nurturing expert teachers
Racial bias against black medical practitioners 'reflects fissures of an...
The testimonials of black doctors have given credence to allegations of racial profiling. Of those listed on a Gems blacklist, 94% of general practitioners were black


text:
Q: hadoop cluster datanodes cannot be connected:all nodes has the same hostname is ok or not? I am now establishing a hadoop cluster(4 machines including 1 master to run namenode and jobTracker,  3 slaves to run dataNode and TaskTraker ).But it is a pitty that all the datanode cannot be connected.I run sudo netstat -ntlp on master machine,result is:
tcp        0      0 0.0.0.0:52193           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:39267           0.0.0.0:*               LISTEN      7284/rpc.mountd
tcp        0      0 0.0.0.0:33219           0.0.0.0:*               LISTEN      7284/rpc.mountd
tcp        0      0 0.0.0.0:41000           0.0.0.0:*               LISTEN      1539/mongos
tcp6       0      0 :::50030                :::*                    LISTEN      604/java
tcp6       0      0 :::57134                :::*                    LISTEN      32646/java
tcp6       0      0 :::111                  :::*                    LISTEN      13786/rpcbind
tcp6       0      0 :::57428                :::*                    LISTEN      -
tcp6       0      0 :::57173                :::*                    LISTEN      7284/rpc.mountd
tcp6       0      0 :::50070                :::*                    LISTEN      32646/java
tcp6       0      0 :::5910                 :::*                    LISTEN      2452/Xvnc
tcp6       0      0 :::22                   :::*                    LISTEN      32473/sshd
tcp6       0      0 :::50744                :::*                    LISTEN      7284/rpc.mountd
tcp6       0      0 :::55036                :::*                    LISTEN      14031/rpc.statd
tcp6       0      0 :::42205                :::*                    LISTEN      7284/rpc.mountd
tcp6       0      0 :::44289                :::*                    LISTEN      504/java
tcp6       0      0 :::2049                 :::*                    LISTEN      -
tcp6       0      0 :::38950                :::*                    LISTEN      604/java
tcp6       0      0 192.168.10.10:9000      :::*                    LISTEN      32646/java
tcp6       0      0 192.168.10.10:9001      :::*                    LISTEN      604/java
tcp6       0      0 :::50090                :::*                    LISTEN      504/java

And the exception message from my 3 datanodes machines are the same(of course they have different ips):
The error log for datanode 192.168.10.12:
2014-01-13 12:41:02,332 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source ugi registered.
2014-01-13 12:41:02,334 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists!
2014-01-13 12:41:03,427 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: mongodb/192.168.10.12:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-01-13 12:41:04,427 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: mongodb/192.168.10.12:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-01-13 12:41:05,428 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: mongodb/192.168.10.12:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-01-13 12:41:06,428 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: mongodb/192.168.10.12:9000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)

So ,what make me confused is that why is every datanode is trying to connect to itself?For example , the error log of datanode 192.168.10.12 shows that it is trying to connect 192.168.10.12 on port 9000,and there is no such a listening port on 12.
All my cluster nodes has the same hostname but different ips(master:192.168.10.10 slaves:192.168.10.11,192.168.10.12,192.168.10.13),All my configuration files ,including core-site.xml,hdfs-site.xml and mapred-site.xml use ip address directly.I use sudo ufw status ,it shows the firewall for all machines are **inactive**!
the configuration file for this 4 machines are the same(of course ip is different):
core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
    <property>
        <name>fs.default.name</name>
        <value>hdfs://192.168.10.12:9000</value>
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/var/hadoop/tmp</value>
    </property>
</configuration>

hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
     <property>
            <name>dfs.replication</name>
                <value>3</value>
         </property>
         <property>
        <name>dfs.name.dir</name>
        <value>/var/hadoop/name</value>
    </property>
        <property>
        <name>dfs.data.dir</name>
        <value>/var/hadoop/data</value>
    </property>
</configuration>

mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
     <property>
                  <name>mapred.job.tracker</name>
                  <value>http://192.168.10.12:9001</value>
     </property>
</configuration>

/etc/hosts in my master::
127.0.0.1       localhost
192.168.10.12   mongodb
192.168.10.12   localhost
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

in line 2 for file /etc/hosts,mongodb is the hostname of the cluster,and the hostname of other three slaves is also mongodb(Because these machines are used to be used as mongodb cluster).
I strongly suspect that it is  the tcp6 who causes the problems. So , how to start hadoop using tcp network instead of tcp6?
So ,my question is:
1.Is hadoop started in tcp6 instead of tcp  ok?
2.All the cluster machine has the same hostname but different LAN ips is ok for hadoop?
So ,any suggestions?

A: Two different mistakes leads to my problems:
1:for every core-site.xml file of 3 slaves,the value of fs.default.name means the namenode's ip address , thus all should   be the ip address of master , but what I write is each slave's ip address . So , when I use start-all.sh in the master , each slave is trying to connect to its own port 9000 ,instead of the master's.Since the slave is running as datanode ,instead of namenode , so connection is refused.
2: After I modified the ip address for core-site.xml for 3 slaves,although every slave becomes trying to connect to the master's port 9000 ,but connection is still refused.I run sudo netstat -ntlp on the master , it shows:
tcp6       0      0 127.0.0.1:9000      :::*                    LISTEN      32646/java

This 127.0.0.1 means that it is only listening to connection on 9000 which is from lcoalhost , all the connection on 9000 from outside cannot be received.So , problem goes to file /etc/hosts.My /ect/hosts file is below:
192.168.10.12   localhost
192.168.10.12   mongodb
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Since I am using ip address in the config file ,so in such a configuration file , ip address 192.168.10.12 will be translated to host name localhost ,and I run host localhost , it show :localhost has address 127.0.0.1.So , such a configuration will leads to hadoop will only listening to 127.0.0.1:9000.  So , I modified this file(switch line 1 and line 2):
    192.168.10.12   mongodb
    192.168.10.12   localhost
    127.0.0.1       localhost

    # The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I restart hadoop and sudo netstat -ntlp , it shows:
tcp6       0      0 192.168.10.10:9000      :::*                    LISTEN      32646/java

Every thing is ok.Since master is listening on its LAN ip address , instead of just loop back localhost.

A: Your core-site.xml must have the namenode Ip address, and your slaves must have different hostnames in /etc/hosts.
It should work like this.

redpajama_set_name: RedPajamaStackExchange


Welcome to the fifteenth post in our series of BAT Community-run AMAs.
The most recent AMA took place on April 10th and featured Des Martin, Jan Piotrowski, and Brad Flora, Business Development at Brave. Des, Jan, and Brad fielded both pre-submitted and live questions from Redditors concerning a variety of topics, like what the most frequent objections from prospective partners and advertisers have been, what some of the biggest differences between business development in Europe compared to the USA are, and how future use-cases for BAT outside of Brave might look.
Des, Jan, and Brad each offered their unique perspective on startup culture and on the challenges and significance of business development within that space.
The next AMA will take place on Wednesday, April 24th, and will feature Jimmy Secretan, VP of Services and Operations at Brave.
For the list of upcoming BAT Community AMAs through May 2019, see below.
murphD: What are the biggest business development challenges when pitching Brave/BAT?
Great question. Brave and BAT individually are huge concepts to explain to anyone, so explaining a next-gen browser + embedded token + decentralized ad platform really gets the eyes glazing. So I would say the biggest challenge (on our side) is explaining our vision in a concise and elegant way. Oftentimes, the idea of rewarding users for their attention is met with some degree of skepticism ("wait, why are we cutting users into the revenue share again?"). And of course, the conversation is very difficult with any publisher whose business model is entrenched in the existing ad ecosystem. On one hand there is certainly excitement to try better models, but on the other hand, there is fear of messing up their existing revenue streams (no matter how bad they are). For these publishers, it falls on the BD team to convey our value and make it an attractive offering.
Brave is a big project. I find the full end to end explanation is too much for people. So I tailor depending on the audience. So the key challenge is to work out what is relevant for the listener before I pitch.
Generally falls into buckets like: privacy-conscious users, advertisers looking for new ways to reach an audience, publishers looking for revenue opportunities.
I like to emphasize that we are launching the world's first privacy based ad platform.
We probably each have our own take on this one. The trickiest part for me is calibrating my pitch/talking points to what I think the audience will understand most quickly. Some folks know all about Brave's browser product and positioning but aren't familiar with BAT or our ad products. Others have no idea what a "browser" is! Then there are some discussions where both parties really need to come away with a full picture of where Brave's come from and where it's going...and that's a lot of ground to cover in an hour-long meeting, even with reasonably informed people working in the tech industry.
I_Like_Tech_Drawings: Not sure if this is too forward a question or not, but what's the sentiment so far from advertisers? Is the wait list what the team had hoped? Are many sites/companies on board?
We are still early in our engagement with advertisers so I won't pretend to have a comprehensive grasp on their sentiment. I will say there has been a desire in the industry to explore new things. Some advertisers may have noticed Brave simply because "blockchain" was such an industry buzzword, and then discovered the benefits of speaking to an opted-in, engaged audience that went far beyond the buzzword. However, they found Brave, their ongoing campaigns in our beta/dev releases are an awesome start, and we will only build from here.
We roll out Brave ads in the following countries first: Canda, USA, UK, France, Germany, and Japan.
Brave ads will be available on desktop first, then Android and then iOS. Should be on all devices by the summer.
Italy should be in the next phase of Brave ads rollout. Once we have enough users in a particular country it makes sense roll out Brave ads.
jankfrank: What compelled you to join Brave? And to Jan: Is Gregorian chanting a lucrative field? Would you be guaranteed a job upon graduation?
Working for a company with a real purpose.
I previously worked in digital marketing, first with my own agency in Dublin and then later leading marketing teams at Qualtrics, nearForm, and Perkbox. I saw first hand how broken the digital advertising space has become. It also became clear how many creators are struggling to make ends meet. These are talented people with real passion. The current digital advertising model does not serve these people well.
I see Brave as a chance to correct some of the things that have gone wrong online.
I wanted to join Brave because I spent a few years in the digital ad industry and came away pretty grossed out.
I believe Brave is one of the, if not the only, company actually making a good faith effort to make things better for consumer privacy online.
My last project was building an ad retargeting platform for small companies called Perfect Audience (http://perfectaudience.com). I kind of fell into that product after years of launching SaaS products that didn't take off, so I was somewhat new to the online advertising industry. I had a great time building that business and eventually selling it, but along the way, I spent a lot of time with execs at other digital ad companies, many of which were much larger and successful than us. One thing that bugged me about my interactions with these folks was the assumption that all of us were scamming our customers in one way or another. As I got to know the industry better I saw that yes, a lot of the players in it were doing sketchy things with customer or consumer data to make a buck.
So last year when I started looking around for a new project, I focused in on Brave. There are lots of companies taking incremental approaches to improving consumer privacy online. Brave's position of "nope, we need a full reset. We've got to build a new browser" is the one I believed and believe most in.
I used to be a venture capital investor before Brave and heard Brave's pitch. I came out of the meeting stunned that anyone would be attempting a vision so bold. The usual fears of competition crushing this idea flashed through my head constantly. The more I thought about it, though, the more excited I became. If the idea of venture investing is to find the biggest, most disruptive idea with the right team behind it to execute, I'd found it. When an opportunity to join came, I jumped on it.
DistantView: What does your typical day involve?
Every day is a surprise. In general, I try and focus on a few concrete goals for the day: progressing an ongoing deal, reaching out to specific publishers of interest, etc. Inevitably, reality gets in the way. Typically, I find that internal meetings take place in the morning (time zones...), and external meetings in the afternoon. After dinner is inhaled, I try and log in for a few hours to clean up all of the messages I neglected during the day...and oh yeah, get back to that goals list that I didn't finish (but tried).
Hi! My typical day involves answering emails from partners we're working with, prospective partners we'd like to be working with, and internal folks within the company. I typically slip in and out of 2-3 meetings a day, sometimes many more and maybe have an on-site visit with a partner if they're based in the Bay Area. About once a week someone comes to visit Brave HQ and I'll sit in on the meeting, take notes and share thoughts with the team afterward. Business Development is a bit of a nebulous job but it's basically "talk to people who want to work with your company"!
Days are varied. Usually starts with strong black coffee and then get stuck into emails and messages from the team stateside and general inbound inquiries. I try to do regular outreach each morning through different channels, like Linkedin, Twitter, and email. Conference calls with publishers and advertisers. I try and get out and meet people in London and regularly get to Paris and Berlin.
My personal opinion is that you start with (and continue to focus on) users first. Adding real value to users, and getting their support in return, is a powerful force that moves markets. The key is to do this in a way that doesn't hurt the other ecosystem stakeholders (just being an ad blocker, for example, hurts publishers, and so we have taken the approach of changing the nature of advertising, not trying to eliminate it). Luckily, I feel equally comfortable thinking about our value to all stakeholders because I think it is real.
DistantView: What have been some of the strangest questions or misunderstands from potential business partners?
Before trying, he seemed to think that Brave would require a developer background to use!
What we are doing is new, sometimes people think that means work on their side to figure things out.
I still get asked from time to time whether the browser is free (mostly from users, not potential partners). Which, in a vacuum, is not a strange question, and actually an interesting thought exercise.
Potential business partners still have a hard time retaining the concept that we block 3rd party ads and trackers. Sometimes I find that we get through an entire presentation that I believe went well, only to field questions about which trackers we will be white-listing.
This is a small thing and often leads to pleasant exchanges, but more and more we get notes from IT professionals who are Brave fans and are asking permission to put Brave on their machines at work. We point out that Brave is open source so there's no permission needed!
murphD: When you're talking to a potential ad buyer, what are their biggest or most frequent objections?
The sharpest minds in the industry get what we're doing. For them, the main objection stems from knowing that Brave's success could require a lot of the industry to rethink how it works.
For many who are more operationally minded, it's not uncommon to be asked repeatedly how and where we're tracking our users and what data we're profiling on them. Our refrain of "Well, we're not doing that" just doesn't make sense to some.
michaelchungu1: Will there be any other use case for BAT apart from the started and when will they be implemented?
We plan to release a BAT SDK (software development kit). This will allow BAT to live outside the Brave eco-system. I am sure lots of interesting use cases will emerge as projects add BAT wallets and new ways of paying for attention and content. Off the top of my head, podcasts and video streaming will be interesting to watch.
Can't comment on future plans, but I can say that every crazy, fun, out there or obvious use case for BAT that gets batted (!) around in this subreddit and elsewhere is on our minds.
I followed the Brave project before I joined the company, so I can relate to the feeling of looking in from the outside and wondering "Gosh, what are they working on? Are they thinking about the stuff the outside community hopes they get to?" The answer is "Yes" we're thinking about all those things, no matter how nutty they are. As a software company that wants to ship code that works, that means we have to ship slowly and thoughtfully, but there are many BAT use cases on Brave's radar.
@myusuf3: What's the largest push back you have seen from advertising partners?
Education about Brave is usually key when dealing with any pushback.
People often look at Brave through the lens of what exists already. So they ask how can targeted ads be privacy preserving? Because we bring the ad catalog to your device and your personal information never leaves the device. This is so radical that you can usually see the penny drop in real time as they realize the impact this will have on the ad tech industry.
The digital ad industry operates on top of a bunch of systems and assumptions put into place decades ago by products like Adwords (created by Google), DoubleClick (acquired by Google), Invite Media (acquired by Google), AdMob (acquired by Google) and others (probably acquired by Google if they were really good, notice the pattern?). These assumptions include things like: "You must build a detailed profile of every individual user's browsing history", "it's OK to run ads for toothpaste on a sports web site if we know the user was shopping for toothpaste somewhere else 10 minutes ago" and "you must track the user's purchasing behavior."
Brave runs against the grain on a lot of these things, which can be difficult to explain to people in the industry. What they DO get though, especially the people at the top of the ad buying decision tree at the best brands, is that consumers will respond to authentic messages presented fairly and in a respectful, timely, non-annoying manner. THAT's Brave's bread and butter!
Read Holli Bohren's AMA from March 27th here.


about us | Travel, emigration - where to live?
Our emigration and all travels we made should lead us to the answer for still bothering us, not easy at all, question: "where to live?". This question appered from our years-long discussion with other travellers and emigrants, so our brains started to work in this way to find the answer.
Thanks to our passion to travelling (freedom of move) we still discover and observe the world. Since few years we prefer to rent cars in the countries we visit, so we can leave common touristic paths and go there, where are only natives. We made thousands of kilometers behind the wheel ia. in Argentina, Thailand, Spain and Germany. Before every journey we are searching the internet looking for local "gems" – results of these searches, already on place, are very often amazing!
Engeneers, who always try to improve the website (everything on the website is hand-made!). If you have question in our topics: big data, web and civil engineering – contact us.
Moreover: minimalists, libertans, damned sparing, polish-correct (Robert), definite, maximal creative, always on the way, mobile, stability is for us destructive. We don't want to dim, jest read!
We love to leave so-called confort zone, so get out of the home and discover! Well!