background preloader

Programming

Facebook Twitter

Getting Ready For HTTP/2: A Guide For Web Designers And Developers. The Hypertext Transfer Protocol (HTTP) is the protocol that governs the connection between your server and the browsers of your website’s visitors.

Getting Ready For HTTP/2: A Guide For Web Designers And Developers

For the first time since 1999, we have a new version of this protocol, and it promises far faster websites for everyone. In this article, we’ll look at the basics of HTTP/2 as they apply to web designers and developers. I’ll explain some of the key features of the new protocol, look at browser and server compatibility, and detail the things you might need to think about as we see more adoption of HTTP/2. By reading this article, you will get an overview of what to consider changing in your workflow in the short and long term.

I’ll also include plenty of resources if you want to dig further into the issues raised. A Brief History Of HTTP Link. How Will Docker (and Containers) Improve The Future of Web Development? The short answer?

How Will Docker (and Containers) Improve The Future of Web Development?

It already is! And along with that, you may be asking yourself the following questions: Superpowers — Free 2D+3D game maker, open source. Cleaner Code with Functional Concepts. Composer install in CI - Because yes. Logging in a Docker Hosting World. Docker is reinventing the way we package and deploy our applications, bringing new challenges to hosting.

Logging in a Docker Hosting World

In this blog post I will provide a recipe for logging your Docker packaged applications. Goals. Getting Started with Gulp. Much like Grunt, Gulp.js is a taskrunner that aids with automating front-end build tasks.

Getting Started with Gulp

Gulp depends on Node.js and uses a “pipe” based streaming process. This means Gulp allows you to chain tasks together in system memory and won’t write to disk until you tell it to do so. For this reason, it’s very swift. Demystifying RegEx with Practical Examples. A regular expression is a sequence of characters used for parsing and manipulating strings.

Demystifying RegEx with Practical Examples

They are often used to perform searches, replace substrings and validate string data. This article provides tips, tricks, resources and steps for going through intricate regular expressions. There are many books, articles, websites and the PHP official documentation that explain regular expressions, so instead of writing another explanation I’d prefer to go straight to more practical examples. The new code – Upload and Upgrade: The HTML File Form Input. From a UI perspective, uploading files from a web page is handled by the file form input.

the new code – Upload and Upgrade: The HTML File Form Input

But until very recently, this method had serious issues: it wasn’t supported on mobile. Starting this month, the file input is supported natively in iOS9 and Android 5, making uploads a lot easier for everyone. Frameworks. Over the past few years, we’ve been learning how to adapt our layouts to the infinite canvas of the web.

Frameworks

Our sites can be viewed on any size screen, at any time, and responsive design is one approach that lets us accommodate the web’s variable shape. But with all of the challenges we’re facing and those yet to come, we need to begin building not just patterns, but principles for responsive design—principles that will allow us to focus not just on layout, but on the quality of our work. Article Continues Below If each part of your responsive interface is more or less self-contained—with its own layout rules, content needs, and breakpoints—then the code behind each element’s design is far less important than thinking carefully about how and why an element should adapt. In other words, how do we move beyond thinking in terms of columns and rows, and start talking about the quality of our responsive designs? 10 Ways to Write Cleaner Code - Code School Blog. If you’ve ever worked on a development team, or even looked back at some of your old code, there’s probably a chance you came across a certain block of code that looked like someone had a fight on a keyboard while the text editor was open.

10 Ways to Write Cleaner Code - Code School Blog

Messy syntax, unclear variable definitions, and jumbled, cramped code can be a pain to read through — not to mention a nightmare when you’re pushing deadlines and are tasked with sorting through someone else’s sloppy code. So spending some time and learning to keep your code neat, concise, and easy to read is well worth it. Sometimes it can just flow as you’re coding and thinking at the same time, but nothing stops you from going back and cleaning it up once the code works. With a bit of practice, writing clean code will come naturally (and your coworkers will thank you for it), so here are 10 tips I’ve found that can help keep you from being that programmer.

Testing PHP code using Docker. Heading.jpg Setting up a testing environment can be a rewarding pursuit - if you do your testing before you deploy code, your tests can signal errors and stop you from deploying a critical mistake to production.

Testing PHP code using Docker

Testing requires various software, depending on your development process. One of the most common php testing frameworks is phpunit. Let’s see how we can set up a Docker driven test environment. Docker: A Minimalist's Choice - ActiveLAMP. A little over a year ago the ActiveLAMP website had undergone a major change – we made the huge decision of moving away from using Drupal to manage its content in favor of building it as a static HTML site using Jekyll, hosted on Amazon S3.

Docker: A Minimalist's Choice - ActiveLAMP

Not only did this extremely simplify our development stack, it also trimmed down our server requirements to the very bare minimum. Now, we are just hosting everything on a file storage server like it’s 1993. Anwendungen mit Docker transportabel machen. Jede Anwendung hat Abhängigkeiten. Die Palette reicht von der Konfiguration des lokalen Betriebssystems bis zur Integration von Netzwerk- und Webdiensten. Das erschwert das Verteilen von Anwendungen auf unterschiedliche Systeme.

Das Open-Source-Werkzeug Docker verspricht Abhilfe. Die grundlegende Problematik ist rasch erklärt: Jede Anwendung hängt von einigen Elementen ihrer Umgebung ab, die sich auf unterschiedlichen Systemen nur schwerlich garantieren lassen. Bereits die verwendete Programmiersprache kann ein Problem darstellen, wenn unterschiedliche Versionen gemischt zum Einsatz kommen: Brüche in der Abwärtskompatibilität sind in der Praxis keine Seltenheit.

Dieses Beispiel zeigt nur einen winzigen Ausschnitt aus der Palette der potenziellen Schwachstellen: Weitere Faktoren sind unter anderem das installierte Betriebssystem, dessen Version und Einstellungen, sämtliche hinzugefügten Pakete und Module oder auch die Konfiguration des Netzwerks. . # Insert network configuration here. A 'Star Wars' Game Designed to Teach Kids to Code. 162 1ShareNew Getting your kids interested in coding might be as easy as saying “Hey, do you like Star Wars?” Code.org, a nonprofit invested in expanding the participation of women and underrepresented minorities in computer science, introduced the Star Wars tutorial this week as part of its Hour of Code. The organization's program contains one-hour intros to the basics of coding made for classroom use—just in time for Computer Science Education Week in early December.

This year, the tutorial stars Princess Leia and Rey, a new character from the upcoming Star Wars film The Force Awakens. The game allows you to drag-and-drop basic codes to solve puzzles, enacting commands like directing a droid to pick up scrap metal. Image Credit: Screenshot via Code.org. Save Bash Shell Script Output To a File. ByVivek GiteonAugust 14, 2006 inAIX, BASH Shell, CentOS, Fedora Linux, File system, FreeBSD, HP-UX Unix, Linux, Openbsd, Solaris-Unix, Ubuntu Linux, UNIX How do I save my bash shell script output to a file? You can save bash shell script output to a file using the following syntax: $ .

/yourscript.sh > output.txt $ /path/to/your/script.sh > output.txt To append output to existing data.txt file, enter: $ . /yourscript.sh >> data.txt $ /path/to/your/script.sh >> data.txt Before a command is executed, its input and output may be redirected using a special notation interpreted by the shell. Redirecting Output Redirection of output causes the file whose name results from the expansion of word to be opened for writing on file descriptor n, or the standard output (file descriptor 1) if n is not specified. [n]> output.txt command> output.txt script.sh> output.txt Appending Redirected Output [n]>>append.txt command>> append.txt script.sh>> append.txt.