Laravel News: Tips to Speed up Your Phpunit Tests

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.

Stitcher.io: New in PHP 7.4

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:

  • Preloading
  • Typed properties
  • Improved type variance
  • Null Coalescing Assignment Operator
  • Foreign Function Interface
  • ext-hash always enabled

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.

The truth about Garcinia and weight loss

garcinia cambogia weight lossgarcinia cambogia weight loss
Garcinia Cambogia fruit. Source: Pixabay ~ 
Related

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)

NUTRAFUELS INC (OTCMKTS:NTFU) Shorts Decreased By 32%

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/

Weekly News for Designers № 470

Exploring the Elegance of Line Typography in Web Design – A look at how an unorthodox style of type shines on the web.
Exploring the Elegance of Line Typography in Web Design

Top Pens of 2018 – The most-loved snippets on CodePen.
Top Pens of 2018

Blendy Background Color – A tool for previewing CSS blends for your backgrounds.
Blendy Background Color

Using Comic strips and Storyboards to test your UX Concepts – How these elements can add an extra dimension to your ideas.
Using Comic strips and Storyboards to test your UX Concepts

8 Most Interesting JavaScript Frameworks to Learn in 2019 – Where to focus your attention in the new year.
8 Most Interesting JavaScript Frameworks to Learn in 2019

Animated Mesh Lines – Using WebGL to create some incredible animation effects.
Animated Mesh Lines

The Ultimate Guide to Design Audits – Learn everything you need to know about this important process.
The Ultimate Guide to Design Audits

Visualise your year of Dribbbling – Have a Dribbble profile? Use this tool to create a year in review.
Visualise your year of Dribbbling

CSS Grid for Designers – A New York Times designer shares her insight into the power of CSS Grid.
CSS Grid for Designers

Microsoft’s Browser Legacy – With Microsoft’s impending change to Chromium, we look back at how they shaped the web (for better or worse).
Microsoft’s Browser Legacy

New year, new GitHub – Some big announcements, including unlimited free private repositories.
New year, new GitHub

HTML5 SVG Fill Animation With CSS3 And Vanilla JavaScript – Learn how to build an animated note display, similar to the one used by Awwwards.
HTML5 SVG Fill Animation With CSS3 And Vanilla JavaScript

Learn Mobile Design – A curated list of resources to level-up your skills.
Learn Mobile Design

How to name UI components – Using a shared language to improve your design system.
How to name UI components

Monetizing the Design – One designer’s year-long journey to creating a successful digital product.
Monetizing the Design

5 Ways to Design for Large Viewports – Techniques for handling those big screens.
5 Ways to Design for Large Viewports

Design Standup – A new podcast to help you grow your design knowledge.
Design Standup

Follow Speckyboy on Twitter, Facebook or Google+ for a daily does of web design resources and freebies.

The post Weekly News for Designers № 470 appeared first on Speckyboy Web Design Magazine.

New Free Setup Utility Maker (Installer): bundle your application with an installer

Are you looking for a way to bundle all the files for your application into a single setup executable that your users can easily run to install the program on their system? The newest addition to the Free Installers and Setup Utilities page is the tool used by Microsoft to create installers for many of its products. It can even create patch files so that you can release updates for existing users in the form of small patch files instead of getting them to download the entire application again.

WordPress 5.1 Beta 1

WordPress 5.1 Beta 1 is now available!

This software is still in development, so we don’t recommend you run it on a production site. Consider setting up a test site to play with the new version.

There are two ways to test the WordPress 5.1 beta: try the WordPress Beta Tester plugin (you’ll want to select the “bleeding edge nightlies” option), or you can download the beta here (zip).

WordPress 5.1 is slated for release on February 21, and we need your help to get there. Here are some of the big items to test so we can find as many bugs as possible in the coming weeks.

Site Health Check

Site Health Check is an ongoing project aimed at improving the stability and performance of the entire WordPress ecosystem. The first phase of this project is included in WordPress 5.1. For the first time, WordPress will catch and pause the problem code, so you can log in to your Dashboard and see what the problem is (#44458). Before, you’d have to FTP in to your files or get in touch with your host.

Additionally, in April 2019, WordPress’ will increase its minimum supported PHP version to 5.6. To help you check if you’re prepared for this change, WordPress 5.1 will show you a warning and help you upgrade your version of PHP, if necessary.

For Developers

  • The Cron system can now be more easily replaced with a custom cron handler (#32656).
  • When starting cron under PHP-FPM, the connection will return a response immediately, even for long running cron jobs (dev note).
  • WP_DEBUG_LOG can be set to a custom log location (#18391).
  • Introduced the wp_blogmeta table (#37923).
  • Added LIKE support to meta_key comparisons in WP_Meta_Query (#42409).

There have been over 360 tickets closed in WordPress 5.1, with numerous small bug fixes and improvements to help smooth your WordPress experience.

Keep your eyes on the Make WordPress Core blog for more developer notes (which are assigned the dev-notes tag) in the coming weeks detailing other changes in 5.1 that you should be aware of.

How to Help

Do you speak a language other than English? Help us translate WordPress into more than 100 languages!

If you think you’ve found a bug, you can post to the Alpha/Beta area in the support forums. We’d love to hear from you! If you’re comfortable writing a reproducible bug report, file one on WordPress Trac, where you can also find a list of known bugs.


Miss my haiku?
I will have plenty for you
in the coming weeks.

NUTRAFUELS INC (OTCMKTS:NTFU) Shorts Decreased By 32%

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.

Powered by Gewgley