Archives (2008 - 2023)

Archives (2008 - 2023)

1501 bookmarks
Newest
Doctrine filters in a Symfony2 application to improve security and code readability
Doctrine filters in a Symfony2 application to improve security and code readability

"You probably know that a user should only see his orders, his messages and so on, but should never see others’ data. But it probably happened you forgot at some point to add this little WHERE condition that restricts the user to what he should see, in a Symfony param converter for instance.

I’m going to introduce an elegant and automatic solution to never forget these conditions in all of your queries, whatever the table (i.e. the Doctrine entity), whatever the page in your Symfony application."

Doctrine filters in a Symfony2 application to improve security and code readability
InfoQ eMag: Microservices
InfoQ eMag: Microservices

"Microservices are more than just a passing fad. Not just an extension of Service Oriented Architecture and more than just smaller surface areas for service deployments, Microservices combine the best ideas of Agile software, DevOps, and Reactive Systems. Teams which adopt the Microservice philosophy find that they end up deploying their software more frequently and are able to satisfy the needs of their business more consistently. Despite this growing complexity of operational management, the march of business spurs innovation; yielding new tools, practices, and services to support the lifecycle of Microservices and the benefits they promise. Within this eMag, we have chosen articles which highlight the pros and cons of Microservices, we offer insights from industry leaders, and hopefully we spark a few ideas for our readers so that they may leverage Microservices within their own domain."

InfoQ eMag: Microservices
sobstel/metaphore
sobstel/metaphore

"PHP cache slam defense using (memcached) semaphore to prevent dogpile effect (aka clobbering updates, stampending herd or Slashdot effect).

Problem: too many requests hit your website at the same time to regenerate same content slamming your database. It might happen after the cache was expired.

Solution: first request generates new content while all the subsequent requests get (stale) content from cache until it's refreshed by the first request."

sobstel/metaphore
Understanding OpCache
Understanding OpCache
"Over the web you will easily find a lot of tutorials covering all the OpCache installation and configuration steps (it is enabled by default on 5.5, but can be installed as an extension on older versions). Read the article below to find the answers to some of the typical questions regarding different practical aspects of working with this particular cache engine."
Understanding OpCache
stripe/payment-tag
stripe/payment-tag

"The Payment Tag makes it even easier to integrate Stripe directly into your website.

It'll take care of building credit card inputs, validation, error handling, and sending the encrypted card number securely to Stripe."

stripe/payment-tag
Less is better, than tail | Libin's Blog
Less is better, than tail | Libin's Blog

"less +F works exactly like tail -f, with more:

Simply press ctrl+c to switch to editing model, so you can scroll backward and using any more/vi command, such as /pattern to search Press shift+f again to switch back to tail model"

Less is better, than tail | Libin's Blog
Welcome - Polymer
Welcome - Polymer
"Web Components usher in a new era of web development based on encapsulated and interoperable custom elements that extend HTML itself. Built atop these new standards, Polymer makes it easier and faster to create anything from a button to a complete application across desktop, mobile, and beyond."
Welcome - Polymer
peco/peco
peco/peco
"peco can be a great tool to filter stuff like logs, process stats, find files, because unlike grep, you can type as you think and look through the current results."
peco/peco
Ten Docker Tips and Tricks That Will Make You Sing A Whale Song of Joy | Docker Blog
Ten Docker Tips and Tricks That Will Make You Sing A Whale Song of Joy | Docker Blog

"So I’m going to share ten of my favorite tips and tricks with you guys. Ready?

Run Docker on a VPS for extra speed Bind mount the docker socket on docker run Use containers as highly disposable dev environments bash is your friend Insta-nyan Edit /etc/hosts/ with the boot2docker IP address on OSX docker inspect -f voodoo Super easy terminals in-browser with wetty nsenter

docker"

Ten Docker Tips and Tricks That Will Make You Sing A Whale Song of Joy | Docker Blog
jpetazzo/nsenter
jpetazzo/nsenter

"It is a small tool allowing to enter into namespaces. Technically, it can enter existing namespaces, or spawn a process into a new set of namespaces. "What are those namespaces you're blabbering about?" We are talking about container namespaces.

nsenter can do many useful things, but the main reason why I'm so excited about it is because it lets you enter into a Docker container."

jpetazzo/nsenter
Web Fundamentals — Google Developers
Web Fundamentals — Google Developers

"Web Fundamentals is a comprehensive resource for multi-device web development. We're just getting started and want your help, if you see something amiss or have a suggestion file an issue or submit a pull request. You can use Google Web Starter Kit to start creating new sites in minutes that follow all of our best practice guidance."

Web Fundamentals — Google Developers
Baseimage-docker: A minimal Ubuntu base image modified for Docker-friendliness
Baseimage-docker: A minimal Ubuntu base image modified for Docker-friendliness

"Cool, it seems to work. Pretty easy, right?

Not so fast.

You just built a container which contains a minimal operating system, and which only runs your app. But the operating system inside the container is not configured correctly. A proper Unix system should run all kinds of important system services. You're not running them, you're only running your app."

Baseimage-docker: A minimal Ubuntu base image modified for Docker-friendliness
CoreOS is Linux for Massive Server Deployments
CoreOS is Linux for Massive Server Deployments
"CoreOS is a new Linux distribution that has been rearchitected to provide features needed to run modern infrastructure stacks. The strategies and architectures that influence CoreOS allow companies like Google, Facebook and Twitter to run their services at scale with high resilience."
CoreOS is Linux for Massive Server Deployments
What Are Self-Organising Teams?
What Are Self-Organising Teams?
"We have observed that real teams have a compelling mission, clear boundaries, authority to self-manage and stability. We have observed that self-organisation in teams is built on a tricky balance of similarities and differences between team members; self-organisation requires clear boundaries and a supportive context; self-organisation is characterised by distributed control, continuous adaptation, emergent structure, feedback and resilience. Lastly we have observed that self-organisation takes time."
What Are Self-Organising Teams?
SlexAxton/css-colorguard
SlexAxton/css-colorguard
"Every CSS project starts out with good intentions, but inevitably, one too many people eye-dropper colors into nooks and crannies that you never knew existed. CSS Colorguard helps you maintain the color set that you want, and warns you when colors you've added are too similar to ones that already exist. Naturally, it's all configurable to your tastes."
SlexAxton/css-colorguard
flaka - Simplifying Ant build scripts. - Google Project Hosting
flaka - Simplifying Ant build scripts. - Google Project Hosting

"Flaka is a plugin for Ant providing

An Expression language allowing access to data objects Conditional and repetitive control structures like when, unless, while, for, choose, switch .. Exception handling Additional tasks, types and macros .. What Flaka is not:

No new syntax, it's still XML It's still Ant."

flaka - Simplifying Ant build scripts. - Google Project Hosting
Introducing Orchestrator: manage and visualize your MySQL replication topologies and get home for dinner | code.openark.org
Introducing Orchestrator: manage and visualize your MySQL replication topologies and get home for dinner | code.openark.org

"I'm happy to announce the availability of Outbrain's Orchestrator: MySQL replication management & visualization tool.

Orchestrator reads your replication topologies (give it one server - be it master or slave - in each topology, and it will reveal the rest). It keeps a state of this topology. It can continuously poll your servers to get an up to date topology map. It visualizes the topology in a clear and slick D3 tree. It allows you to modify your topology; move slaves around. You can use the command line variation, the JSON API, or you can use the web interface."

Introducing Orchestrator: manage and visualize your MySQL replication topologies and get home for dinner | code.openark.org
OpenALPR -- Home
OpenALPR -- Home
"OpenALPR is a free and open source library for recognizing vehicle license and number plates. The C++ library can be easily integrated into your own apps. Check out the online demo."
OpenALPR -- Home
Hide your header on scroll - Headroom.js
Hide your header on scroll - Headroom.js
"Headroom.js is a lightweight, high-performance JS widget (with no dependencies!) that allows you to react to the user's scroll. The header on this site is a living example, it slides out of view when scrolling down and slides back in when scrolling up."
Hide your header on scroll - Headroom.js