Monthly Archiv: May, 2020

PHP Download Files and Log

Package:
PHP Download Files and Log
Summary:
Serve local and remote files for download
Groups:
Files and Folders, HTTP, Logging, PHP 5
Author:
Pierre FAUQUE
Description:
This class can be used to serve local and remote files for download and log the download activity...

Read more at https://www.phpclasses.org/package/11635-PHP-Serve-local-and-remote-files-for-download.html#2020-05-08-08:26:48

Weekly News for Designers № 539

Envato Elements

Football Type 2 celebrates the beautiful typography of the beautiful game – A look at the type used by football clubs from around the world.
Example from Football Type 2 celebrates the beautiful typography of the beautiful game

Building Client-Proof WordPress Websites – Tips for building websites that can better prevent client mishaps.
Example from Building Client-Proof WordPress Websites

Picks of the month: the best design events to catch (indoors) in May – There are fun events happening online, even if you’re still stuck in quarantine.
Example from Picks of the month: the best design events to catch (indoors) in May

Color Theme Switcher – Learn how to add multiple color schemes to your website via CSS.
Example from Color Theme Switcher

Morphing Gooey Text Hover Effect – Check out these incredible morphing effects that use SVG filters.
Example from Morphing Gooey Text Hover Effect

Free UXUI Doc Kit for Sketch/Figma – Create documentation for your team with this free kit, which features 236 symbols.
Example from Free UXUI Doc Kit for Sketch/Figma

Alpine.js – Learn more about the JavaScript framework that’s used like jQuery, written like Vue, and inspired by TailwindCSS.
Example from Alpine.js

Best blog designs I want to steal everything from – Take a look at some of the sharpest blogs out there.
Example from Best blog designs I want to steal everything from

Design System Interview Questions – Things to ask stakeholders when building a design system for an organization.
Example from Design System Interview Questions

A Long Time Ago: Code Snippets Inspired by Star Wars – Celebrate the franchise with these stunning code snippets. May the fourth be with you!
Example from A Long Time Ago: Code Snippets Inspired by Star Wars

Faking 3D Elements with CSS – An example of how to create a 3D illusion with just two HTML elements and some CSS.
Example from Faking 3D Elements with CSS

Using CSS to Control Text Selection – Some neat text selection behaviors that can aid in usability.
Example from Using CSS to Control Text Selection

10 Beautifully Designed, Minimal & Name-Centric Business Cards – Gain inspiration from this collection of beautiful business cards.
Example from 10 Beautifully Designed, Minimal and Name-Centric Business Cards

Immersive Transition Effect – Grab a user’s attention with a scroll-based transition effect.
Example from Immersive Transition Effect

StyleStash – A Chrome browser extension that lets you inspect, edit and save any CSS element.
Example from StyleStash

A Guide to Using Commercial WordPress Themes and Plugins – Tips for utilizing commercial software in a sustainable way for clients and devs.
Example from A Guide to Using Commercial WordPress Themes and Plugins

coding.blog – A home for free, high-quality coding blogs that won’t try to sell you something.
Example from coding.blog

Teach Yourself Code – Learn with this free collection of curated video tutorials.
Example from Teach Yourself Code

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

PHP Order Array Trait (New)

Package:
PHP Order Array Trait
Summary:
Sort arrays of indexed strings with custom sorting
Groups:
Data types, PHP 5, Traits
Author:
Raphael Paez
Description:
This package can be used to sort arrays of indexed strings with custom sorting...

Read more at https://www.phpclasses.org/package/11640-PHP-Sort-arrays-of-indexed-strings-with-custom-sorting.html

PHP Download Files and Log

Package:
PHP Download Files and Log
Summary:
Serve local and remote files for download
Groups:
Files and Folders, HTTP, Logging, PHP 5
Author:
Pierre FAUQUE
Description:
This class can be used to serve local and remote files for download and log the download activity...

Read more at https://www.phpclasses.org/package/11635-PHP-Serve-local-and-remote-files-for-download.html#2020-05-07-13:11:07

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

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

Reasons to Be Thankful: Bright Spots for Web Designers

When the world seemingly changed overnight due to COVID-19, it was surreal. Maybe your surroundings looked exactly the same. Your to-do list contained the same projects. Even if things were completely different beneath the surface, it wasn’t easily recognizable.

Now that we’ve all had some time to process quarantines and widespread sickness, it’s starting to hit home. That is, if we and our loved ones are fortunate enough not to have fallen ill.

Personally, I’ve felt a wide range of emotions throughout this period of time. There’s worry and fear regarding the unknown. Gratitude for health and family – not to mention all of those people who are doing their part to save lives and help keep the world moving. Still, as uncertain as things are, it’s easy to feel a sense of despair.

While that’s understandable, it doesn’t have to be a 24/7 feeling. There are indeed some bright spots for those of us in the industry, if you know where to look. With that, here are some things we take solace in.

Web Designers Are Essential

During a time when the need for accurate information is vital, web designers are playing a key role. We’re helping our clients reach their audience and keeping the world informed.

For the past couple of decades, the web has been replacing or serving as an addendum to the physical world. In a way, that has prepared us to pitch in during a crisis such as this.

That prep time has allowed us to have at least some infrastructure in place to adapt to the rapidly-changing needs of clients. The websites we manage can disseminate information, tie in with third-party services like social media networks and take online transactions. Each of these areas are proving to be crucial during a global pandemic.

This (hopefully) means that there’s no need to start from scratch. In many cases, it’s a matter of augmenting the systems we already have.

The ability to turn on a dime when it’s needed the most is something to be proud of. And each of us has our own role to play.

A pair of glasses sitting on a desk.

Opportunity Is Still Out There

Businesses all over the world have been impacted by closings, modified hours and loss of revenue. Many have shifted strategies to try and stay afloat during the public health crisis. It’s a difficult situation and one that is likely to last into the foreseeable future.

Out of this uncertainty also comes opportunity. Web designers are in a position to help clients adapt to new ways of doing business. Those who have traditionally run their organization via offline methods will need help going online. Others will likely need to expand current online operations.

In addition, the unique circumstances may result in a new wave of startups. Companies will look to solve new problems that have surfaced and they’ll need an effective website as part of their efforts.

This isn’t to say that the sky is the limit. But if you have the right skillset, or are willing to learn, you could find yourself with a number of projects to tackle.

A woman talking on the phone.

We Work in a Unique Industry

The web design industry itself is, as always, a bright spot. This is a community, not an everyone-for-themselves affair. That’s something to be very proud of.

Web professionals are continuing to share knowledge and advice. However, that has expanded beyond the typical programming and design tutorials. Some are sharing tips for getting through the pandemic and how to help clients navigate uncharted waters.

There is also a highly-personal element that seems to be missing from a lot of industries. Perhaps that’s because there are so many small businesses, solo entrepreneurs and self-taught individuals involved.

This lends itself well to a lot of situations, but especially a crisis. People are letting us into their homes (virtually, of course) and discussing their experiences. That is highly relatable – regardless of your age, gender or nationality.

The human element is part of what makes this a special community. It’s something we can all lean on, even when there’s chaos all around us.

A person using a tablet device.

Staying Positive in Difficult Times

Despite a challenging environment, those of us in the web design industry have plenty of reasons to be thankful. Maybe things aren’t the same, but there’s still an opportunity to thrive and be of service to others. That’s something not a lot of people can say right now.

Yes, there’s a heavy weight on everyone’s shoulders. But you don’t have to look far to find some positives.

The post Reasons to Be Thankful: Bright Spots for Web Designers appeared first on Speckyboy Design Magazine.

PHP Internals News: Episode 52: Floats and Locales

PHP Internals News: Episode 52: Floats and Locales

In this episode of "PHP Internals News" I talk with George Banyard (Website, Twitter, GitHub, GitLab) about an RFC that he has proposed together with Máté Kocsis (Twitter, GitHub, LinkedIn) to make PHP's float to string logic no longer use locales.

The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news

Transcript

Derick Rethans 0:16

Hi, I'm Derick. And this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 52. Today I'm talking with George Banyard about an RFC that he's made together with Mate Kocsis. This RFC is titled locale independent floats to string. Hello, George, would you please introduce yourself?

George Banyard 0:39

Hello, I'm George Peter Banyard. I'm a student at Imperial College and I work on PHP in my free time.

Derick Rethans 0:47

All right, so we're talking about local independent floats. What is the problem here?

George Banyard 0:52

Currently when you do a float to string conversion, so all casting or displaying a float, the conversion will depend on like the current local. So instead of always using like the decimal dot separator. For example, if you have like a German or the French locale enabled, it will use like a comma to separate like the decimals.

Derick Rethans 1:14

Okay, I can understand that that could be a bit confusing. What are these locales exactly?

George Banyard 1:20

So locales, which are more or less C locales, which PHP exposes to user land is a way how to change a bunch of rules on how string and like stuff gets displayed on the C level. One of the issues with it is that like it's global. For example, if you use like a thread safe API, if you use the thread safe PHP version, then set_locale() is not thread safe, so we'll just like impact other threads where you're using it.

Derick Rethans 1:50

So a locale is a set of rules to format specific things with floating point numbers being one of them in which situations does the locale influence the display a floating point numbers in every situation in PHP or only in some?

George Banyard 2:06

Yes, it only impacts like certain aspects, which is quite surprising. So a string cast will affect it the strval() function, vardump(), and debug_zval_dump() will all affect the decimal locator and also printf() with the percentage lowercase F, but that's expected because it's locale aware compared to the capital F modifier.

Derick Rethans 2:32

But it doesn't, for example, have the same problem in the serialised function or say var_export().

George Banyard 2:37

Yeah, and json_encode() also doesn't do that. PDO has special code which handles also this so that like all the PDO drivers get like a constant treat like float string, because that could like impact on the databases.

Derick Rethans 2:53

How is it a problem that with some locales enabled and then uses a comma instead of the decimal point. How can this cause bugs and PHP applications?

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

PHP Internals News: Episode 52: Object Ergonomics

PHP Internals News: Episode 52: Object Ergonomics

In this episode of "PHP Internals News" I talk with George Banyard (Website, Twitter, GitHub, GitLab) about an RFC that he has proposed together with Máté Kocsis (Twitter, GitHub, LinkedIn) to make PHP's float to string logic no longer use locales.

The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news

Transcript

Derick Rethans 0:16

Hi, I'm Derick. And this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 52. Today I'm talking with George Banyard about an RFC that he's made together with Mate Kocsis. This RFC is titled locale independent floats to string. Hello, George, would you please introduce yourself?

George Banyard 0:39

Hello, I'm George Peter Banyard. I'm a student at Imperial College and I work on PHP in my free time.

Derick Rethans 0:47

All right, so we're talking about local independent floats. What is the problem here?

George Banyard 0:52

Currently when you do a float to string conversion, so all casting or displaying a float, the conversion will depend on like the current local. So instead of always using like the decimal dot separator. For example, if you have like a German or the French locale enabled, it will use like a comma to separate like the decimals.

Derick Rethans 1:14

Okay, I can understand that that could be a bit confusing. What are these locales exactly?

George Banyard 1:20

So locales, which are more or less C locales, which PHP exposes to user land is a way how to change a bunch of rules on how string and like stuff gets displayed on the C level. One of the issues with it is that like it's global. For example, if you use like a thread safe API, if you use the thread safe PHP version, then set_locale() is not thread safe, so we'll just like impact other threads where you're using it.

Derick Rethans 1:50

So a locale is a set of rules to format specific things with floating point numbers being one of them in which situations does the locale influence the display a floating point numbers in every situation in PHP or only in some?

George Banyard 2:06

Yes, it only impacts like certain aspects, which is quite surprising. So a string cast will affect it the strval() function, vardump(), and debug_zval_dump() will all affect the decimal locator and also printf() with the percentage lowercase F, but that's expected because it's locale aware compared to the capital F modifier.

Derick Rethans 2:32

But it doesn't, for example, have the same problem in the serialised function or say var_export().

George Banyard 2:37

Yeah, and json_encode() also doesn't do that. PDO has special code which handles also this so that like all the PDO drivers get like a constant treat like float string, because that could like impact on the databases.

Derick Rethans 2:53

How is it a problem that with some locales enabled and then uses a comma instead of the decimal point. How can this cause bugs and PHP applications?

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

mezon PHP POP3 Client

Package:
mezon PHP POP3 Client
Summary:
Retrieve email messages from a mailbox using POP3
Groups:
Email, Parsers, PHP 5
Author:
Alexey Dodonov
Description:
This class can retrieve email messages from a mailbox using POP3...

Read more at https://www.phpclasses.org/package/11639-PHP-Retrieve-email-messages-from-a-mailbox-using-POP3.html#2020-05-06-21:31:11
Powered by Gewgley