Monthly Archiv: March, 2019

PSR-14: All about Events

PSR-14: All about Events

In the last installment we discussed the overall structure of PSR-14. Today I'd like to dive into the key aspect of any event system: The Events themselves.

Various different event systems structure events in different ways. Some require that it be an object. Others it's any arbitrary value. Others it's any number of arbitrary values, depending on the Event. Some really really want pass-by-reference arrays.

For PSR-14, we chose to standardize on an object and always an object. There were three main reasons for that:

Continue reading this post on SteemIt.

Larry 28 March 2019 - 11:03am

Using loops instead of higher order functions

I came across a great article from Kirstian Poslek, titled “One reduce() to rule them all”. It explains the reduce() function quite well.

I often feel though that using higher order functions are used in many cases where simple loops might be more legible.

The article ends with an example of a function that takes an array, and returns the maximum, minimum and average values. This is the sample from the article:

const data = [115, 26, 99];

const callbackFunction = function(
    accumulator,
    currentElement,
    currentIndex,
    array
) {
    // Get the maximum by checking first if there is a maximum from the previous step
    const maximum = accumulator.maximum
        ? // If there is, then check if the current element is higher than the previous maximum
          accumulator.maximum < currentElement
            ? currentElement
            : accumulator.maximum
        : // If there isn't, use the current element right away
          currentElement;

    // Get the minimum by checking first if there is a minimum from the previous step
    const minimum = accumulator.minimum
        ? // If there is, then check if the current element is lower than the previous maximum
          accumulator.minimum > currentElement
            ? currentElement
            : accumulator.minimum
        : // If there isn't, use the current element right away
          currentElement;

    // Get the average by checking if we're at the last step (where it we can finally calculate the average)
    const average =
        currentIndex === array.length - 1
            ? (accumulator.average + currentElement) / array.length
            : // If we're not at the last step, check if there even is a value from the previous step
            accumulator.average
                ? accumulator.average + currentElement
                : currentElement;

    // Return the value for the next element
    return {
        maximum,
        minimum,
        average
    };

Truncated by Planet PHP, read more at the original (another 3831 bytes)

Site News: Blast from the Past – One Year Ago in PHP (03.28.2019)

Here's what was popular in the PHP community one year ago today:

PHP Internals News: Episode 3: Abolish Narrow Margins and Weak References

PHP Facebook Messenger Bot Builder (New)

Package:
PHP Facebook Messenger Bot Builder
Summary:
Build bot to interact with Facebook Messenger user
Groups:
Chat, PHP 5, Social Networking, Web services
Author:
Chun-Sheng, Li
Description:
This package can used to build a bot to interact with Facebook Messenger users...

Read more at https://www.phpclasses.org/package/11147-PHP-Build-bot-to-interact-with-Facebook-Messenger-user.html

PHP Facebook Messenger Bot Builder

Package:
PHP Facebook Messenger Bot Builder
Summary:
Build bot to interact with Facebook Messenger user
Groups:
Chat, PHP 5, Social Networking, Web services
Author:
Chun-Sheng, Li
Description:
This package can used to build a bot to interact with Facebook Messenger users...

Read more at https://www.phpclasses.org/package/11147-PHP-Build-bot-to-interact-with-Facebook-Messenger-user.html#2019-03-27-23:17:41

WordPress 5.2 Beta 1

WordPress 5.2 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.

You can test the WordPress 5.2 Beta two ways:

WordPress 5.2 is slated for release on April 30, 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.

Block Editor

The block editor has received significant performance improvements since WordPress 5.1, shaving 35% off the load time for massive posts, and cutting the keypress time (how responsive it feels when you’re typing) in half!

Accessibility continues to improve, too. The block editor now supports your browser’s reduced motion settings. The post URL slug has better labelling and help text. The focus styling for keyboard navigating through landmarks is clearer and more consistent. There are a variety of new speak messages, and existing messages have been tweaked for more useful screen-reader behaviour.

We’ve added several new blocks:

  • An RSS block
  • An Amazon Kindle embed block
  • A Search block
  • A Calendar block
  • A Tag Cloud block

To help you keep track of these blocks, and only show the ones you need, there’s a new block management tool to switch blocks on and off.

Block Management Modal

We’re constantly working on existing blocks, too. There are hundreds of bug fixes and improvements in the block editor, you can read more about them in the Gutenberg plugin releases: 4.9, 5.0, 5.1, 5.2, and 5.3.

The WordPress Mobile Apps

The block editor isn’t just for websites, either. The WordPress mobile apps now include an experimental version of a built-in block editor. This is still under development, but you can try it out now!

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 (originally scoped for WordPress 5.1) is now included in WordPress 5.2. 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.

In addition, we’re adding a new Health Check tool to your Dashboard. Visit the Tools menu and click on Health Check to get information that can help improve the speed and security of your site.

PHP Version Bump

With this release, WordPress will increase its minimum supported PHP version to 5.6. To help you check if you’re prepared for this change, WordPress 5.2 will show you a warning and help you upgrade your version of PHP, if necessary.

For Developers

  • Plugins can now specify the minimum version of PHP that they support, so you can safely modernise your development practices without risking breaking your users’ sites. (#40934)
  • We’ve added the sodium_compat library, which provides backwards compatibility for the Sodium-based cryptography library added in PHP 7.2. (#45806)
  • There’s a new release of Dashicons, the WordPress Dashboard icon font. There are 25 new icons for you to use! (#41074)
  • You can now pass a label to get_search_form(), improving accessibility. (#42057)

There have been 130 tickets closed in WordPress 5.2 so far, with numerous small bug fixes and improvements to help smooth your WordPress experience.

Keep your eyes on the Make WordPress Core blog for developer notes (which are assigned the dev-notes tag) in the coming weeks detailing other changes in 5.2 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.


With each new release,
bearing multiple betas;
We fix, then we fly.

The Design Essentials of a Modern Business Flyer

What makes for a good business flyer? It is a symbiosis of the informational and inspirational. It strikes a balance between the pragmatic and motivational. It should unobtrusively lure in instead of scaring away with its too-serious looks and manners. It should be like a well-written creatively dished up “blurb” that summarizes the plot of the story behind your company.  At the same time, it should provide readers with intriguing details that ignite interest.

Whatever you want your flyer to be, it is vital to stick to the basics. It is a traditional handout advertisement that, as a rule, holds all of the company’s vital information on a small sheet of paper. Anywhere from A4 to postcard size gives you enough space to show off and, at the same time, avoid overwhelming onlookers. This limitation forces designers to pay particular attention to their choice of information to include as well as design features to use.

The Designer Toolbox
Unlimited Downloads: 500,000+ Print Templates, Actions, Brushes, Mockups & Design Assets

Business Flyers

DOWNLOAD NOW

Be Informative

As the times change, our priorities change as well. There was a time when your office address was of top priority, then a link to a website was enough. Let’s face it – the digital contacts are the front-runners nowadays. Even a phone number is not as important for potential clients as the ID of your Skype, Viber or Telegram accounts.

Links to a website, social media profiles and other platforms are must-haves. Also, do not forget about the QR code. It is much easier to use a scanner app and quickly open the necessary page or a chat with instant feedback instead of retyping a link manually.

What else should you include on your business flyer? Without a doubt, there should be some oldie-but-goodie information, such as:

  • Logotype;
  • Company name;
  • Slogan or tagline;
  • “About us” block;
  • Services;
  • Bonuses, and other promotional offers.

Must-Have Design Elements

Wondering how to turn your flyer into an effective marketing force? Here are the design-related features you’ll want to include:

Blue Tones

When it comes to a businesslike atmosphere, we always opt in favor of neutral coloring. Light shades like white, grey and beige are primary colors that are used for backgrounds.

As for the secondary color, in the majority of cases it is blue. The reason is simple: Designers rely on the psychological aspect: Blue inspires safety, serenity and creativity. It also instills a sense of trust and responsibility.

All of these feelings and moods are ideal for promoting your business. Add to this the fact that blue is considered to be one of the most favored colors, and you will get a reasonable, practical and time-proven option. Although, using blue will make it quite difficult to stand out from the crowd since everyone else is using it, too. However, the design will meet the expectations of those viewing it, and that means a lot.

Blue is good, blue is time-proven and with blue your flyer will certainly look businesslike. However, if you are a true fashionista, then you should follow examples of industry giants such as Apple and Samsung, whose teams use lots of bright colors in their promos. Stick to their doctrine and go for drastic color combinations and gradients to dazzle the audience with unique coloring.

Geometry

The current obsession with geometric details and stylistic choices that overpopulate the web design sphere has taken its toll on graphic design as well. With its sharpness, authenticity, openness, plainness, elegance and, in some way, brutality, the trend works great for business designs.

The trend manifests itself through various elements, such as:

  • Asymmetry in layouts;
  • Circles;
  • Triangles;
  • Narrow diagonal panels;
  • Polygons of various shapes, etc.

A Website-Like Layout

A Company flyer is kind of like a paper analog of a landing page. It bears the same key information such as provided services, contacts, advantages of choosing the company and more. As a rule, it is broken into three main sections.

The first one is a header with a prominent hero area, the second is content and the third is a footer. Sound familiar? Yes, the arrangement is the same as on a website. So why not to use some tricks from the latter?

Furthermore, the website layout is a time-tested method of displaying blocks. Modern flyer design has many similarities. For example:

A relatively big image located at the top. It could be a photo of a metropolis that feels urban and strong or a photo of an office routine that oozes confidence and professionalism. It can be corporate or motivational photography.

A bold statement. It can be a catchy slogan, a tagline or a short promo phrase.

A multi-column layout. The layout holds only the essential information such as a list of services, an “about us” block, etc.

Sometimes flyer designs adopt the same tricks, like an overlapping trend that is quite popular among web designers these days. Just take a look at Corporate Business Flyer by Humaiara Akter Shorna. It looks refreshing.

Icons

Like the previous trend, icons are an integral part of every website and have become an essential of business flyers as well. It’s something that you cannot just ignore or toss out from the design. It may seem that they are just accompanying details that bring nothing special to the project.

However, people need these visual cues. In the beginning, everyone scans rather than reads. Icons serve as focal points that lead a visitor’s eyes to the important information. When well chosen, they can even enhance the message by making it clearer and stronger.

Big, small, oversimplified or sophisticated – you can stumble upon various stylistic choices. An icon should support the statement. And if you need it to be bright, detailed and graphical, then that is the way it should be.

Spread Your Message with Just a Single Page

The pamphlet of present-days is not just a primitive, single-page leaflet that contains boring facts. It is a well-written synopsis that is presented in a beautiful package.

Designers use various tricks, including psychological ones, to make data presentation pleasing to the eye. They follow the trends and result in flyers that get straight to the point.

Now that you know the elements of a great business flyer, what will you create?

The post The Design Essentials of a Modern Business Flyer appeared first on Speckyboy Web Design Magazine.

The Lies People Tell You About Landing Freelance Gigs Online

A study from Payoneer found that the average freelancer makes $39,000. That’s… not great, if we’re being honest.

It’s lower than most salaries in major U.S. cities for design, development, and other creative work. Taxes and insurance alone would cut that number in half.

That means while many freelancers can make a decent living, it’s not exactly a great living, either. Top freelancers, on the other hand, repeatedly pull in well over $100,000 each year.

So what accounts for that wide margin? Top freelancers pull in over twice what the average makes in a year. There are obviously tons of potential answers. However, there are three major freelancing ‘lies’ that often contribute to people earning less than they could (or should).

Here’s how to spot and solve three major ones.

Lie #1. You can rely on job boards for new work.

Job boards are the easiest place to find new work. And they do work well to a certain degree. People (and companies) with money and a problem are looking for someone to help them solve it.

So on the surface, it seems like a match made in heaven. When you have a project or client winding down, you start scouring job boards for new potential ones to replace it.

What could possibly be wrong with this model? At first, nothing. But over the long haul? Everything.

Job boards are filled with the lowest hanging fruit. These jobs are cheap and competitive. Dozens of people might apply to a single job, helping the hiring company to simply stack them in order of cheapest to most expensive.

That’s not a big deal if you need the work. The problem is that these jobs keep you busy, but don’t deliver a ton of extra profit to keep you flush when the work ends, either.

It’s like a hamster wheel. You need to keep running in circles, making just enough money to pay your bills but not enough money to actually save for slower months, or reinvest in subcontractors, tools, etc.

Job boards also put you in a reactive position. The hiring organization dictates the terms they’re looking for, and you can either agree or move on to the next one. You don’t have a lot of control to help build the value behind your higher-than-average rates, or push back on the client when the scope is unreasonable. The client is definitely not always right. But the person paying the money always thinks they are.

The hard part is to not be so busy with cheap work that you don’t have time to build a name for yourself (or do the other two items on this list).

So pick up a few gigs from job boards if you need them. However, try to know what you’re looking for to separate the “pretty good” from the “bad” ones.

For example, this one looks pretty good on the surface:

Job application example

Here is the scope and timing:

Job application example

It looks like a decent option and I’m sure the company is great. But it does contain a few silent landmines if you’re not careful.

For starters, it’s open RFP casting call. They want a bunch of people to submit potential pricing for ill-defined deliverables. That means people replying to this will probably just be guessing based on each line item, and not pricing enough for fear of coming in too high and missing out on the gig.

Second, this was posted on March 24, they expect to start in April, and conclude in June. It’s going to take them at least one to three weeks to hire someone. That means the consultant essentially has around two months to do three months worth of work.

Third, they mention multiple times that you’ll be working closely with their internal team. Once you’ve been doing this awhile, you’ll realize that’s a euphemism for “we want you to basically be a full-time employee for two months, always on call, without actually compensating you like a full-time employee.”

I know this all sounds harsh. But the person that gets hired will need to hit the ground running, deliver immediately, and drop other client commitments, all while pricing “competitively” (aka not as high as they should price it).

Let’s say this project goes well. Awesome. Unfortunately, they probably won’t have any time left over during it to work on landing clients to start right as this project ends. And the “competitive” pricing means they didn’t include enough profit to live off for a few weeks while they can find something else to take its place.

See how this works? Rely too heavily on projects like this and you’re constantly stuck trying to keep up, instead of getting ahead.

Lie #2. You don’t need to specialize.

Certain types of doctors always make the most money.

The highest earners, every time a study is done, range from orthopedic surgeons to radiologists, cardiologists, and anesthesiologists. A study featured in Time confirms that all of these specialties make well over $300,000/year on average.

Now, guess who makes the least?

That’s right: generalists. Pediatricians and family practitioners, who are like jack-of-all-trades doctors, earn the least around $156,000 and $158,000.

This same trend applies to freelancing online.

The highest paid developers, for instance, are usually in a specialized programming language. Monster reports that Scala developers pull in an average salary of $125,000/year.

Compare that to someone helping small business owners of all shapes and sizes overhaul their basic WordPress site and you can see where this is going.

Part of it is supply vs. demand. But part of this is also the extra ‘value’ a specialized expert can deliver (in terms of a higher ROI, getting the job done at a higher quality and turned around faster, etc.).

In the writing space, the lowest common denominator for ‘generalists’ would be a service like Textbroker. Check out this pay table:

Job application example

Let’s do some quick math. Take a 2,000 word article, and the most you can make on that lowest tier is $14. Yes, $14 total. That would break down somewhere between $3.50-7 per hour–well below minimum wage in pretty much every state across the U.S.

The solution is to specialize as much as you can, in everything from the clients and projects you take, to the specific service you deliver.

Compare that $14 job that’s open to anyone for this job that’s going to pay at least $200+ per article for someone who has experience in this vertical:

That’s not even the top of the market for writing, but it’s already a 1,329% pay increase! In other words, you don’t have to be the best of the best in your field to see a huge jump in compensation like this.

You just need to carve out a specialty that makes you an expert at something difficult or rare.

Lie #3. Your portfolio will bring in new clients.

Companies don’t just hire freelancers because they cost less, but because they also have as much (or more) experience in a given specialty than their other in-house employees.


(Image Source)

So make a website to showcase your past work, projects, clients, skill sets, and case studies. That should be the very first step you take after deciding to freelance.


(image source)

Your future work will come as a byproduct of your past work, so keeping a portfolio website up to date is an absolute must.

However, just having a portfolio site sitting around isn’t going to help you land new clients. It will only help you convert them once they already know who you are.

For example, designer Robert Williams actually deleted his portfolio (not recommended) and actually made $30,000 in six weeks by diligently doing email outreach to new potential leads.

It wasn’t by sitting around, waiting for people to discover him.

Deleting his portfolio forced him to stop activities that weren’t working, like “twitter, facebook, blogging, dribbble, reading emails and more.” And instead, he started proactively reaching out to companies, pitching his value based on howhis design would improve the client’s business.

Compare that to most web designers, who want to talk to clients about specific design elements that they probably don’t understand. If a client doesn’t realize how pixel-perfect design might help them, they won’t be willing to pay for it.

So keep your portfolio up and ready to help prove what you can do. But just understand that you’re going to have to go out and find potential people who might benefit from what you do (as opposed to waiting for the ‘perfect’ opportunity to roll by on a job board).

LinkedIn’s Sales Navigator can help you create lists of the types of clients that typically work best for you. And then you can login each day to track what they’re posting, commenting, or doing to slowly start building up familiarity with each.

The bigger the potential opportunity or client, the more leg work you might have to do. That might mean attending a conference of people with your target clients even though it might set you back $3,000-10,000.

That sounds like a lot of money because it is. But committing to this big expense might also force you to do more leg work to contact people before you attend, set up private dinners with potential future clients, and knowing exactly where sponsor booths are going to be.

PipeCandy shared an excellent case study of how they ‘hacked’ a conference to land 120 high-value leads. These are the kinds of people who’re too busy to sit in a webinar or download your book. But you can get some valuable face time if you already know where they’re going to be and what they’re going to respond to.

Conclusion

Freelancers can (and should) make a lot of money. They’re risking a lot to control their own destiny and help clients of all shapes and sizes. However, according to the data, most freelancers don’t make enough.

One reason is because they’re too reliant on getting work from job boards, where the competition is immense and it’s difficult to price high enough to actually make any money. Another reason is the lack of specialization. General work is often average or replaceable. So only the specialists in a particular type or service, client, or project tend to make the most.

Last but not least, a portfolio is absolutely essential to landing new work. But it’s often not enough by itself! You need to combine it with more proactive outreach and networking to make sure your pipeline of projects is full months in advance.

What separates the best paid freelancers isn’t just their skill set or ability, but their lack of experience around the business of freelancing.

The post The Lies People Tell You About Landing Freelance Gigs Online appeared first on Speckyboy Web Design Magazine.

NUTRAFUELS INC (OTCMKTS:NTFU) Shorts Increased By 192%

NUTRAFUELS INC (OTCMKTS:NTFU) had an increase of its shares shorted by 192%. In March was published NTFU’s total 14,600 shares shorted by FINRA. The up change of 192% from 5,000 shares was reported. 0 days will cost NTFU with 100,800 average volume to recover its former position.

Ticker’s shares touched $0.1743 during the last trading session after 0.20% change.Currently NutraLife BioSciences, Inc. is after 0.00% change in last March 26, 2018. NTFU has 27,175 shares volume. NTFU underperformed by 4.37% the SP500.

NutraFuels, Inc. manufactures and distributes oral spray nutritional and dietary products to retail and wholesale outlets.The company has $19.17 million market cap. 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.Last it reported 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.

Another two news for NutraLife BioSciences, Inc. (OTCMKTS:NTFU) were briefly released by: Globenewswire.com on February 28, 2018 with title “Freedom Leaf Inc. Announces National Distribution Agreement Other OTC:FRLF – GlobeNewswire”. The other Marketwired.com‘s article was titled “NutraFuels (NTFU) Files its Application to Up List to the OTCQB OTC Market – Marketwired” and released on January 29, 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://enbulletin.com/2019/03/26/nutrafuels-inc-otcmktsntfu-shorts-increased-by-192/

Powered by Gewgley