DB Classes (New)
Read more at https://www.phpclasses.org/package/11028-PHP-Access-different-types-of-databases.html
The Laravel News site has posted an announcement about the latest in their series of Laracon events: Laracon Online 2019.
Laracon Online 2019 is coming to a couch near you on March 6th, 2019! Back and better than ever in this 2019 edition, you will hear from the likes of Laravel creator Taylor Otwell, Tighten Partner and Laracon US speaker Matt Stauffer, Refactoring UI tag-team Adam Wathan and Steve Schoger, Laracon US speakers Freek Van Der Herten and Samantha Geitz, and Laracon 2018 EU speaker Marcel Pociot.Just like last year, the event is hosted entirely online and the event is super affordable for the early bird price of $12. No hotels, no airfare, just signup and spend the day watching some of the best speakers right from your computer.
And there's good news for those out there wanting to attend the event - they're giving away 355 tickets for free based on the generous donations from several sponsors. Naturally, if you can afford the $12 (that's like 2 cups of fancy coffee!) then don't enter the drawing. They want as many people as possible to enjoy the event. If you're interested in the kind of content presented at these events, check out last year's talks or just head over and get your ticket now.
Matt Glaman has written up a post for his site showing how you can write better Drupal code using PHPStan, the PHP static analysis tool.
PHP is a loosely typed interpreted language. That means we cannot compile our scripts and find possible execution errors without doing explicit inspections of our code. It also means we need to rely on conditional type checking or using phpDoc comments to tell other devs or IDE what kind of value to expect. Really there is no way to assess the quality of the code or discover possible bugs without thorough test coverage and regular review.If you use PhpStorm, you will notice all of their helpers which analyze your code and add static analysis. [...] That's awesome. It's pretty amazing that PhpStorm and a few plugins can give us some stability in our PHP code.
While the functionality in PhpStorm is useful, there are some pitfalls including the fact that everyone would have to use PhpStorm. He makes the suggestion that PHPStan can effectively replace these helpers and, with a bit of customization, provide just as much quality control for your Drupal code. He links over to a custom PHPStan extension for Drupal and an example YAML configuration. He also includes helpful tips around bootstrapping the autoloader, return typing and changes it provides for using the entity manager.
In a new post to his site Tomas Votruba walks you through the process he followed for moving his site [away from the Jekyll static site generator over to Statie], PHP-based static site generator.
Jekyll is great to start for micro websites like Go Monorepo. But Jekyll has one big problem - the language. How would you add custom Twig or Latte filter to Jekyll?I wanted to migrate gomonorepo.org and <a href="https://gophp71.org/>gophp71.org from Jekyll to Statie. Can new init command make this piece of cake? And what needs to be done next?
He goes through each step of the process (nine of them), providing code and configuration examples along the way:
The final step in the process are the commands to run the project locally and ensure that everything it working as expected before deployment.
On the Laravel News site Tim MacDonald has written up a post sharing some tips on how you can speed up your PHPUnit tests, making them easier to run and more useful during the development process.
Having a fast test suite can be just as important as having a fast application. As a developer, getting feedback quickly about the state of your code allows for a much quicker development turnaround. Here we are going to run through some tips you can implement today to make your tests run faster.The example test suites have been made intentionally slow to simulate a broader set of tests and also to emphasize the improvements possible. Your real-world mileage may vary.
He makes recommendations around the use of ParaTest to run the tests in parallel, re-running only failed tests, grouping slow tests, lowering the password hash "rounds" count and disabling XDebug. Each item in the list includes instructions on what changes need to be made and screenshots of the results of the change.
On the Sticher.io blog Brendt has written up a guide looking forward to PHP's next major release and what's planned to be included in PHP 7.4.
PHP 7.4 will probably be released somewhere December 2019. This page will receive regular updates meanwhile.
In the current version of the page (as of this post) it includes details on the following:
For each item in the list he links over to the related RFC on the PHP wiki and provides a brief summary (sometimes with code) of what the feature provides.
We are all aware of the fact that slimming is a mega-dollar industry. With millions, if not billions of people of all ages struggling to lose weight, and very few pharmaceutically effective medications available to assist them, the desperate public will literally clutch at straws.
Every week sees the launch of a new “miracle” diet pill or potion and a “surefire” diet guaranteed to help believers shed kilos like magic.
Recently Garcinia cambogia became the flavour of the year. If you search the internet for information on this exotic fruit extract you will be assured that this is finally the miracle we have all been waiting for, which will produce dramatic weight loss. Endorsements by various TV personalities and other luminaries have added to the allure of Garcinia cambogia slimming products.
According to a recent local study from the Tshwane University of Technology (TUT) “this small fruit, reminiscent of a pumpkin in appearance, is currently most popularly used and widely advertised as a weight-loss supplement”.
The good side
But just how effective is this plant for shedding the kilos?
The comprehensive overview from TUT suggests that studies have shown that “the extracts as well as (-)-hydroxycitric acid (HCA), a main organic acid component of the fruit rind, exhibited anti-obesity activity”. It also regulates the serotonin levels related to satiety, leading to reduced food intake.
“According to clinical trial reports, Garcinia extracts were beneficial to obese individuals in many cases. In addition, studies on the toxicity and observations during clinical trials indicate that Garcinia is safe to use. Most of the negative reports have been related to cases where multi ingredient formulations were consumed and the effect could not be attributed to a specific ingredient.”
The research does, however, caution against an increase in serotonin, especially in people who take medicines that are already increasing serotonin levels, such as SSRIs. Research into these effects has not been conducted.
“Moreover, regulatory authorities should provide and enforce legislation requiring the compulsory basic safety demonstration of supplements pre-marketing and develop post-marketing surveillance systems,” the study concluded.
The bad side
Dr Ingrid van Heerden, a registered dietitian, is of opinion that we should be cautious of Garcinia, since it has not undergone rigorous testing. What follows is reviewed information from her pen, including her final verdict:
Often, once a person who wants, or needs to lose weight, is hooked on the promise of a slim, sexy figure, they are sucked into the deception. If the drops, wafers or powders don’t work, well then it is the fault of the user who did not adhere to one or other often impossible instruction such as “stick to a 500 kcal/day diet” or “drink 5 litres of water a day”, never that of the diet pill.
When eventually science and legislation catch up with the manufacturers, they calmly take product A off the market, change their formulation slightly, change the name to product B, and then blithely sell product B using the same advertising gambits as before, raking in the money and pulling the wool over everyone’s eyes all over again.
In keeping with the ever-changing slimming product ranges, there are what one can call “ingredients of the year” (sometimes an ingredient lasts for only three to six months, but some have longer life spans, and then of course some are resurrected every two to three years).
We have had apple cider vinegar (which has made many a comeback over the years), green tea (which has earned some merit in scientific studies), hoodia (which just does not manage to produce the research results that will make it a front-runner), willow bark (or salicylic acid which is good for aches and pains but not as efficacious for slimming), and good old caffeine (which has a diuretic effect thus helping you lose weight until you replenish the water in your body, and also a stimulant effect when taken in large quantities that can be potentially dangerous), to name but a few.
While it is perfectly possible that more extensive and well controlled scientific studies will reveal that an extract of Garcinia cambogia which contains a chemical called hydroxycitric acid (HCA) will assist weight loss, we are at present not yet sure how this tamarind or brindall berry or brindleberry or Garcinia gummi-gutta works, what side-effects it may or may not have and what dosage is required to achieve really significant weight loss.
But I hear you say: “For once we have a number of scientific studies that were carried out with Garcinia cambogia, so what’s the problem?”
Well some of the studies did not show any weight loss differences between patients who took Garcinia pills and those who took dummy pills, while other studies did show differences in weight loss with the subjects taking pills containing Garcinia losing slightly more weight than those that did not (Marquez et al, 2012).
Some of these weight loss differences were not exactly exciting either, so we can’t say for sure that Garcinia cambogia does promote weight loss. It also seems likely that this is not the wonder pill it is made out to be.
In addition, many of the studies conducted to date have been flawed (Critchley, 2013) . What that means is for example that in one study the control and experimental subjects were not well matched (i.e. they did not have the same starting weight, age, percentage of body fat etc.), while in other studies too few subjects were used for the results to be significant.
For the results of studies to be plausible one has to compare “apples with apples” (i.e. well-matched subjects and controls) and you need more than just a handful of subjects to produce the same result.
On the positive side, we can say that there is some evidence that Garcinia cambogia products may aid weight loss over a period of 12 weeks. No studies have been conducted for longer periods as yet (Marquez et al, 2012), which is also regarded as a drawback.
Safety issues
There is also at present an argument about the safety of pills containing Garcinia cambogia – one group of researchers slates the pills as dangerous and hepatotoxic (causing liver damage) (Kim et al, 2013), while another group refutes this (Clouatre Preuss, 2013). Marquez and his coworkers (2012) state that “at the doses usually administered, no differences have been reported in terms of side effects or adverse events (those studied) in humans between individuals treated with G. cambogia and controls.”
Ano Lob (2009), a public health consultant in the United States has published a warning regarding the hepatotoxicity of a weight loss product called “Hydroxycut”, which contains Garcinia cambogia. The author collected case reports of patients who developed liver toxicity associated with the above mentioned weight loss product.
Evidently approximately one million units of this hydroxycitric acid product are sold per year in the USA. The patients who developed hepatotoxicity reported symptoms of fatigue, nausea, vomiting, cramps, fever, chills, abdominal pain, and jaundice.
While the number of hepatotoxicity cases reported were very few, Lob points out that monitoring of adverse events associated with dietary supplements such as these weight loss products is woefully inadequate in America (as is the case in many other countries, including South Africa), with the FDA only receiving about 1% of these negative reports.
According to Lob (2009), the Poison Control Centres in the USA are more likely to receive reports of adverse events associated with dietary supplements but are not equipped to coordinate such findings.
He cites the truly sobering example of a product called “Metabolife 356″ which was sold as a weight loss supplement in America. Lob’s states that the manufacturers received 14 000 reports over a period of five years that documented “serious adverse events associated with their ephedra-containing product” which included heart attacks, strokes, convulsions and fatalities.
The manufacturers did not inform the FDA or any other US government authority of these reports. As astounding as this may sound, manufacturers of dietary supplements are not required to meet any of the specifications that are strictly enforced when it comes to food and pharmaceutical products (medicines), so they can use this “ethical loophole” not to publish reports of negative and harmful events.
Eventually these events came to light and ephedra-containing products for slimming and other uses were banned in the USA.
The implication contain in Lob’s warning is that HCA or Garcinia cambogia extract may also be potentially toxic unless sufficient, reliable evidence to the contrary is made available.
Conclusion
At the present moment, we do not know enough about slimming products that contain Garcinia cambogia extract or HCA to freely recommend its use. I tend to agree with Astell and coworkers (2013) who conducted a systematic review of double blind randomised controlled clinical trials to assess the evidence available on the efficacy of current dietary supplements used to control appetite and/or weight.
These authors concluded that “According to the finding from this systematic review, the evidence is not convincing in demonstrating that most dietary supplements used as appetite suppressants for weight loss in the treatment of obesity are effective and safe.”
While we wait for more extensive and conclusive evidence obtained with larger numbers of well-matched test subjects treated for longer periods with the “gold standard” of double blind randomised controlled clinical trials, rather avoid using any weight-loss supplement that has not been tested thoroughly.
References:
(Astell KJ et al (2013). Plant extracts with appetite suppressing properties for body weight control: a systematic review of double blind randomized controlled clinical trial. Complement Ther Med, 21(4):407-16; Clouatre DL Preuss HG (2013). Hydroxycitric acid does not promote inflammation or liver toxicity. World J Gastoenterol. 19(44):8160-2; Crtichley G (2013). Garcinia cambogia – is it really a miracle weight loss supplement?; Lob A (2009). Hepatotoxicity associated with weight-loss supplements: A case for better post-marketing surveillance. World J Gastoenterol. 15(14):1786-1787; Marquez F et al (2012). Evaluation of the safety and efficacy of hydroxycitric acid or Garcinia cambogia extracts in humans. Crit Rev Food Sci Nutr, 52(7):585-94)
It was recorded a decrease on NUTRAFUELS INC (OTCMKTS:NTFU)’s shares shorted with 32%. In January was issued NTFU’s total 8,500 shares shorted by FINRA. The 12,500 previous shares are down with 32%. Previous NTFU’s position will need 0 days to restore. It has 78,600 average volume.
NTFU is touching $0.1805 during the last trading session, after increased 0.28%.NutraFuels, Inc. is after having 0.00% since January 10, 2018. NTFU has 108,699 volume or 118.28% up from normal. The stock the SP 500 by 0.00%.
NutraFuels, Inc. manufactures and distributes oral spray nutritional and dietary products to retail and wholesale outlets.The firm is worth $17.40 million. The companyÂ’s products include sleep spray to support a healthy sleep cycle and improve the quality of restful sleep; energize spray to enhance energy, and restore vigor and vitality; and garcinia cambogia spray, an appetite and weight management spray.Currently it has negative earnings. It also offers NRG-X extreme energy spray to enhance energy and stamina; headache and pain spray to relieve headaches and pain; and hair, skin, and nails spray to nourish and encourage hair, skin, and nail growth.
There’s a substantial NutraFuels, Inc. (OTCMKTS:NTFU) news posted by Globenewswire.com. It’s an article titled: “Freedom Leaf Inc. Announces National Distribution Agreement Other OTC:FRLF – GlobeNewswire” on February 28, 2018.
Receive News Ratings Via Email – Enter your email address below to receive a concise daily summary of the latest news and analysts’ ratings with our FREE daily email newsletter.
Article source: https://ztribune.com/2019/01/10/nutrafuels-inc-otcmktsntfu-shorts-decreased-by-32/
Popular posts from PHPDeveloper.org for the past week: