Subscribe: Blog of Leonid Mamchenkov
http://mamchenkov.net/wordpress/feed/atom/
Preview: Blog of Leonid Mamchenkov

Blog of Leonid Mamchenkov



Thoughts on technology, movies, and everything else



Updated: 2017-08-21T12:19:27Z

 



Using php-fpm as a simple built-in async queue

2017-08-21T12:19:27Z

Here’s an interesting solution for a poor man’s asynchronous queue using PHP-FPM: PHP-FPM already acts as a queue for Nginx/Apache FastCGI clients. While your web-request is running you can just send another FastCGI request to the same PHP-FPM socket asynchronously and non-blocking. This request is immediately executed in another php-fpm process in parallel and you … Continue reading Using php-fpm as a simple built-in async queue

Here’s an interesting solution for a poor man’s asynchronous queue using PHP-FPM:

PHP-FPM already acts as a queue for Nginx/Apache FastCGI clients. While your web-request is running you can just send another FastCGI request to the same PHP-FPM socket asynchronously and non-blocking. This request is immediately executed in another php-fpm process in parallel and you could wait for it to complete or just fire and forget.

Given the experimental nature of this approach, you probably won’t be running this in production.  And with many developers switching to the built-in PHP web server for the local development, this doesn’t work for those environments other.

But it makes me think what else can be used as a queuing mechanism.  After all, there are plenty of systems that rely on this already – email servers, printer spoolers, web and proxy servers, and probably more.




Full and empty

2017-08-21T09:47:49Z

Full and empty

(image)

Location: Platres




Platres

2017-08-21T09:47:55Z

Platres

(image)

Location: Platres




Right now

2017-08-21T09:48:08Z

Right now

(image)

Location: THE SHIP INN BAR/RESTAURANT




Charlottesville: Race and Terror

2017-08-17T13:01:39Z

Charlottesville was a lot in the news recently.  I didn’t pay much attention, but now I see why.  This is crazy.  It almost feels unreal, like a really long trailer or a promotion video to a new movie.  But it’s not.  It’s real life and it’s happening now. It’s far from funny, but standup comedians … Continue reading Charlottesville: Race and Terror
width="660" height="371" src="https://www.youtube.com/embed/P54sP0Nlngg?feature=oembed" frameborder="0" allowfullscreen>

Charlottesville was a lot in the news recently.  I didn’t pay much attention, but now I see why.  This is crazy.  It almost feels unreal, like a really long trailer or a promotion video to a new movie.  But it’s not.  It’s real life and it’s happening now.

It’s far from funny, but standup comedians are often some of the smartest people, with excellent observation skills and the unbeatable use of words.  So here’s Jim Jefferies take on this, with which I agree wholeheartedly.

width="660" height="371" src="https://www.youtube.com/embed/_GxQR6ssap4?feature=oembed" frameborder="0" allowfullscreen>



Scheduled pipelines now available in Bitbucket Pipelines

2017-08-17T08:01:21Z

BitBucket blog announces the support for scheduled Bitbucket Pipelines.  This is super cool and has been on the wishlist for a while now.  Here are a few examples of how this feature is useful: Nightly builds that take longer to run Daily or weekly deployments to a test environment Data validation and backups Load tests … Continue reading Scheduled pipelines now available in Bitbucket Pipelines

(image)

BitBucket blog announces the support for scheduled Bitbucket Pipelines.  This is super cool and has been on the wishlist for a while now.  Here are a few examples of how this feature is useful:

  • Nightly builds that take longer to run
  • Daily or weekly deployments to a test environment
  • Data validation and backups
  • Load tests and tracking performance over time
  • Jobs and tasks that aren’t coupled to code changes



EU General Data Protection Regulation (GDPR)

2017-08-17T07:38:51Z

Here are a few things to get you started with European Union General Data Protection Regulation (GDPR).  First is a little introduction: After four years of preparation and debate the GDPR was finally approved by the EU Parliament on 14 April 2016. It will enter in force 20 days after its publication in the EU Official Journal and … Continue reading EU General Data Protection Regulation (GDPR)

Here are a few things to get you started with European Union General Data Protection Regulation (GDPR).  First is a little introduction:

After four years of preparation and debate the GDPR was finally approved by the EU Parliament on 14 April 2016. It will enter in force 20 days after its publication in the EU Official Journal and will be directly application in all members states two years after this date. Enforcement date: 25 May 2018 – at which time those organizations in non-compliance will face heavy fines.

The EU General Data Protection Regulation (GDPR) replaces the Data Protection Directive 95/46/EC and was designed to harmonize data privacy laws across Europe, to protect and empower all EU citizens data privacy and to reshape the way organizations across the region approach data privacy.

And now a few key points from the Frequently Asked Questions page:

Who does the GDPR affect?
The GDPR not only applies to organisations located within the EU but it will also apply to organisations located outside of the EU if they offer goods or services to, or monitor the behaviour of, EU data subjects. It applies to all companies processing and holding the personal data of data subjects residing in the European Union, regardless of the company’s location.

What are the penalties for non-compliance?
Organizations can be fined up to 4% of annual global turnover for breaching GDPR or €20 Million. This is the maximum fine that can be imposed for the most serious infringements e.g.not having sufficient customer consent to process data or violating the core of Privacy by Design concepts. There is a tiered approach to fines e.g. a company can be fined 2% for not having their records in order (article 28), not notifying the supervising authority and data subject about a breach or not conducting impact assessment. It is important to note that these rules apply to both controllers and processors — meaning ‘clouds’ will not be exempt from GDPR enforcement.

What constitutes personal data?
Any information related to a natural person or ‘Data Subject’, that can be used to directly or indirectly identify the person. It can be anything from a name, a photo, an email address, bank details, posts on social networking websites, medical information, or a computer IP address.

Interesting, right? Have a nice day now.




The Seven Circles of Developer Hell

2017-08-16T15:09:27Z

I don’t usually like infographics, but this one nails it!

(image)

I don’t usually like infographics, but this one nails it!




CakePHP Events System

2017-08-15T09:55:43Z

Events are a great way to separate the business logic of your application and make things simpler and, often, faster.  CakePHP framework introduced an events system in version 2.1, and since then it got much better.  The official documentation covers current implementation pretty well.  But in this post I wanted to link to a few … Continue reading CakePHP Events System

Events are a great way to separate the business logic of your application and make things simpler and, often, faster.  CakePHP framework introduced an events system in version 2.1, and since then it got much better.  The official documentation covers current implementation pretty well.  But in this post I wanted to link to a few articles that provide more of a historical perspective.

First, goes this blog post by Martin Bean from back in 2013.  It shows how things were initially.  Even with all the improvements in version 3, the first implementation was still pretty useful.

Second, comes this review of the CakePHP events system (still in version 2), and some profiling of this new functionality.  These guys looked at all the details and eventually suggested some improvements.

Their effort didn’t go unnoticed.  Mark Story, one of the lead developers of CakePHP framework, wrote this blog post, explaining the upcoming (at the time) changes to the events system in CakePHP version 3.

As a result CakePHP 3 event system is a much simpler and cleaner implementation.  Have a look at this guide for a quick introduction.

I’m sure this is not the end of the road, as no software is ever perfect.  But it’s a good place to be.




The usual duckspects

2017-08-15T09:20:01Z

The usual duckspects

(image)

Location: THE SHIP INN BAR/RESTAURANT