Monthly Archiv: July, 2019

Delicious Brains: PHP Scoper: How to Avoid Namespace Issues in your Composer Dependencies

Composer. If you’ve worked with PHP for any period of time you’ve likely heard of or used Composer. We’ve written about it whole bunch on the blog before, and it’s a great tool for grabbing dependencies for your project (especially for us that remember PEAR ). It’s not with...

500 Internal Server Error

While the 4xx-series errors are specifically for client-side errors, the 5xx-series errors are for server-side errors.

A server-side error generally means that there is a bug or outage. If you are developing a client and you encounter a 5xx-range error, generally you can assume it wasn’t your fault, and it might even be worth contacting the maintainers of the web service you’re trying to use.

The first error in this series is 500 Internal Server Error. This is a generic error, and a good error to choose if there is not a more specific error suitable for your problem.

Many server-side error handlers automatically convert any uncaught exception into this error code.

Example

HTTP/1.1 500 Internal Server Error
Content-Type text/plain

We broke it, sorry!

References

Community News: Latest PECL Releases (07.02.2019)

Latest PECL Releases:

  • redis 5.0.0
    This release contains important improvements and breaking changes. The most interesting are: drop PHP5 support, RedisCluster slots caching, JSON and msgpack serializers, soft deprecation of non-Redis commands.

    phpredis 5.0.0

    • Remove HAVE_SPL [55c5586c] (@petk)
    • Update Fedora installation instructions [90aa067c] (@remicollet)

    phpredis 5.0.0RC2

    • Allow compilation without JSON serialization enabled and fixes for deprecated helper methods. [235a27] (Pavlo Yatsukhnenko)
    • Fix php msgpack >= 2.0.3 version requirement. [6973478..a537df8] (Michael Grunder)

    phpredis 5.0.0RC1

    • Enable connection pooling by default [8206b147] (Pavlo Yatsukhnenko)
    • Soft deprecate methods that aren't actually Redis commands [a81b4f2d, 95c8aab9] (Pavlo Yatsukhnenko, Michael Grunder)
    • Enable pooling for cluster slave nodes [17600dd1] (Michael Grunder)
    • xInfo response format [4852a510, ac9dca0a] (Pavlo Yatsukhnenko)
    • Make the XREADGROUP optional COUNT and BLOCK arguments nullable [0c17bd27] (Michael Grunder)
    • Allow PING to take an optional argument [6e494170] (Michael Grunder)
    • Allow ZRANGE to be called either with true or ['withscores' => true] [19f3efcf] (Michael Grunder)
    • Allow to specify server address as schema://host [418428fa] (Pavlo Yatsukhnenko)
    • Allow persistent_id to be passed as NULL with strict_types enabled [60223762] (Michael Grunder)
    • Add server address to exception message [e8fb49be, 34d6403d] (Pavlo Yatsukhnenko)
    • Adds OPT_REPLY_LITERAL for rawCommand and EVAL [5cb30fb2] (Michael Grunder)
    • JSON serializer [98bd2886, 96c57139] (Pavlo Yatsukhnenko, Michael Grunder)
    • Add support for STREAM to the type command [d7450b2f, 068ce978, 8a45d18c] (Michael Grunder, Pavlo Yatsukhnenko)
    • Fix TypeError when using built-in constants in setOption [4c7643ee] (@JoyceBabu)
    • Handle references in MGET [60d8b679] (Michael Grunder)
    • msgpack serializer [d5b8f833, 545250f3, 52bae8ab] (@bgort, Pavlo Yatsukhnenko, Michael Grunder)
    • Add Cluster slots caching [9f0d7bc0, ea081e05] (Michael Grunder)
    • Drop PHP5 support [f9928642, 46a50c12, 4601887d, 6ebb36ce, fdbe9d29] (Michael Grunder)
    • Documentation improvements (@alexander-schranz, @cookieguru, Pavlo Yatsukhnenko, Michael Grunder)
  • xlswriter 1.2.5
    - FEAT cells background color. - FEAT checkout sheet. - FEAT format new font size. - FEAT format new strikeout. - FEAT insertText support resource format.
  • ast 1.0.2
    - Fix compatibility with (currently) PHP 7.4 and PHP 8.0. - Support AST_ARROW_FUNC for PHP 7.4. - Make $version a required parameter for `astparse_*`. Previously, the absence would throw a LogicException. - Make AST version 70 the current version.
  • xdebug 2.8.0alpha1
    Fri, May 28, 2019 - xdebug 2.8.0alpha1
    • Added features:

      • Implemented issue #1599: Add support for PHP 7.4
    • Improvements:

      • Implemented issue #1388: Support 'resolved' flag for breakpoints
      • Implemented issue #1664: Run breakpoint resolver when after a new breakpoint is added as well

    = Fixed bugs:

    • Fixed issue #1660: Return breakpoints for methods don't break immediately

    • Removed features:

      • Fixed issue #1666: Remove xdebug.extended_info setting
  • protobuf 3.9.0RC1
    GA release.
  • gRPC 1.22.0RC1
    - gRPC C Core 1.22 update
  • redis 5.0.0RC2
    This release contains important improvements and breaking changes. The most interesting are: drop PHP5 support, RedisCluster slots caching, JSON and msgpack serializers, soft deprecation of non-Redis commands.

    phpredis 5.0.0RC2

    • Allow compilation without JSON serialization enabled and fixes for deprecated helper methods. [235a27] (Pavlo Yatsukhnenko)
    • Fix php msgpack >= 2.0.3 version requirement. [6973478..a537df8] (Michael Grunder)

    phpredis 5.0.0RC1

    • Enable connection pooling by default [8206b147] (Pavlo Yatsukhnenko)
    • Soft deprecate methods that aren't actually Redis commands [a81b4f2d, 95c8aab9] (Pavlo Yatsukhnenko, Michael Grunder)
    • Enable pooling for cluster slave nodes [17600dd1] (Michael Grunder)
    • xInfo response format [4852a510, ac9dca0a] (Pavlo Yatsukhnenko)
    • Make the XREADGROUP optional COUNT and BLOCK arguments nullable [0c17bd27] (Michael Grunder)
    • Allow PING to take an optional argument [6e494170] (Michael Grunder)
    • Allow ZRANGE to be called either with true or ['withscores' => true] [19f3efcf] (Michael Grunder)
    • Allow to specify server address as schema://host [418428fa] (Pavlo Yatsukhnenko)
    • Allow persistent_id to be passed as NULL with strict_types enabled [60223762] (Michael Grunder)
    • Add server address to exception message [e8fb49be, 34d6403d] (Pavlo Yatsukhnenko)
    • Adds OPT_REPLY_LITERAL for rawCommand and EVAL [5cb30fb2] (Michael Grunder)
    • JSON serializer [98bd2886, 96c57139] (Pavlo Yatsukhnenko, Michael Grunder)
    • Add support for STREAM to the type command [d7450b2f, 068ce978, 8a45d18c] (Michael Grunder, Pavlo Yatsukhnenko)
    • Fix TypeError when using built-in constants in setOption [4c7643ee] (@JoyceBabu)
    • Handle references in MGET [60d8b679] (Michael Grunder)
    • msgpack serializer [d5b8f833, 545250f3, 52bae8ab] (@bgort, Pavlo Yatsukhnenko, Michael Grunder)
    • Add Cluster slots caching [9f0d7bc0, ea081e05] (Michael Grunder)
    • Drop PHP5 support [f9928642, 46a50c12, 4601887d, 6ebb36ce, fdbe9d29] (Michael Grunder)
    • Documentation improvements (@alexander-schranz, @cookieguru, Pavlo Yatsukhnenko, Michael Grunder)

Making the Most of Slow Times at Your Web Design Business

Part of being a web designer means learning how to deal with extreme situations. One day, you could be faced with an insanely-busy, stress-filled work marathon. Clients need your help, stuff is breaking – you know the drill. It is those type of days that make you wonder how you’ll ever get through all of the obstacles in your way.

Yet you may encounter days or weeks where things are whisper quiet. At first, you may be thankful for some down time (everyone could use a break). But it doesn’t take long until your mind starts racing again, just impatiently waiting for something to do. This can be just as maddening as when you’re super-busy.

The difference is that slower times present you with a terrific opportunity. It’s a time when you can do something productive (or decidedly not), recharge your spirit and get ready for the inevitable marathon that is always lurking around the corner.

Here are a few things you can do to make the most of a slowdown:

Sharpen Your Skills

When life is hectic, the quest for self-improvement often takes a back seat to more pressing matters. But even a little bit of free time provides a chance to work on boosting your skills.

Depending on what you want to learn, you may only need to dedicate a few hours spread out over whatever period of time you like. For example, if you were to take an online course to learn the latest CSS layout techniques, you might break it up into bite-size chunks – say, 15 minutes a day. It may require a few weeks to complete the course, but the reward is that you’ll manage to learn something new without feeling overwhelmed.

The fun part is that it doesn’t really matter what particular subject you want to brush up on. Ideally, it would be something that helps you in your daily work. But just the process of learning itself helps to keep your brain occupied and will give you a sense of accomplishment.

A woman works at a laptop computer.

Start a Side Project

If you took the opportunity to learn something new, a side project may be the perfect place to apply those new skills.

Now, this doesn’t mean that you necessarily have to go all-in with a new venture. You can pick and choose how seriously you want to take things.

The project itself can run the gamut in terms of size and the effort required to make it happen. It could be a full-fledged web application that will turn the world upside down. Or it might be a little JavaScript UI that you never share with another soul.

The point is in creating something you’re passionate about and maybe even utilizing some things that you don’t get to do in your typical daily work. This can stir your creativity and renew your enthusiasm.

JavaScript code on a screen.

Take Stock of Your Business

The day-to-day grind of running a design business tends to leave little room for looking at the bigger picture. So, this could be the right time to look at where you are and where you want to be.

One great use of this time would be to study your current clients. See who’s paid and who hasn’t. You might also perform a review of their sites to look for redesign opportunities. Quite often, clients are thinking of these very same things, but don’t get around to brining it up. By being proactive, you might convince them to act – and boost your revenue at the same time.

It’s also worthwhile to perform a quick analysis of your workflow. This will allow you to address common roadblocks and pain points that make it harder to get things done. It might be an opportunity to test out a new tool or just a different way of working.

There are plenty of other areas to explore. Everything from the types of projects you’re working on to the services you offer. Both you and your business can benefit from this type of review.

Man writing notes at a desk.

Get out of the Office

One of the most common traps for business owners is trying to make every moment a productive one. Sure, it can be effective during the work day. However, there’s also the danger of giving yourself a case of burnout.

Therefore, it’s important to take advantage of some down time. Use it to do something fun and relaxing – and do so without feeling guilty. Take a trip, anywhere. It doesn’t have to be far away. You don’t even have to leave your own town. But spending some time away from your office can do wonders.

As much as we may love our jobs, work can still take up a disproportionate amount of our lives. There’s great benefit to adding some balance, when possible.

A garden pathway.

Time Is a Gift: Use It Wisely

The one thing we don’t seem to have enough of on a daily basis is time. That’s why a slow period at work can be such a great gift. It affords us a chance to do some things that we might not otherwise do.

So, the next time you find yourself with a clear schedule, take it as an opportunity. Learn something, practice your skills, improve your business or take a well-deserved break. Regardless of what you do, make sure you take advantage of that extra time.

The post Making the Most of Slow Times at Your Web Design Business appeared first on Speckyboy Design Magazine.

Free Network Attached Storage (NAS) Software: store/share files on your own home network

A new open source distribution has been added to the Free Network Attached Storage (NAS) Distributions. Such software allow you to set up a disused (or old) computer as a file server, attached to your router. All computers on your home network can then access that computer to store or share files. (For example, you can use it as an always-accessible hard disk, to back up your system.)

Corner

Package:
Corner
Summary:
Implements exceptions and errors with more details
Groups:
Language, PHP 7
Author:
Scott Arciszewski
Description:
This package implements exceptions and errors with more details...

Read more at https://www.phpclasses.org/package/11260-PHP-Implements-exceptions-and-errors-with-more-details.html#2019-07-01-16:08:16
Powered by Gewgley