Select Page

Author: admin

New Course: Learn Data Visualization With D3.js

We live in an age of increasing amounts of data and decreasing attention spans. The solution to this conundrum is data visualization: creating elegant charts to help people interpret data quickly and intuitively.  In our new course, Learn Data Visualization With D3.js, you’ll get a complete introduction to the D3.js data visualization library. Markus Mühlberger will show you how to build a whole series of useful and practical infographics. You’ll learn how D3.js uses SVG for drawing and rendering as you practice creating bar charts, area charts, pie charts, and more. You’ll learn how to customize your scales and axes,...

Read More

PHP Integers, Floats, and Number Strings

Working with numbers in PHP seems to be a trivial concept, but it can be quite confusing. It looks easy at first because PHP provides automatic type conversion. For example, you can assign an integer value to a variable, and the type of that variable will be an integer. On the next line, you can assign a string to the same variable, and the type will change to a string. Unfortunately, this automatic conversion can sometimes break your code. There are a lot of types for numeric values as well. In this tutorial, you’ll learn about integers and floats...

Read More

File Upload With Multer in Node.js and Express

When a web client uploads a file to a server, it is generally submitted through a form and encoded as multipart/form-data. Multer is middleware for Express and Node.js that makes it easy to handle this multipart/form-data when your users upload files.  In this tutorial, I’ll show you how to use the Multer library to handle different file upload situations in Node. How Does Multer Work? As I said above, Multer is Express middleware. Middleware is a piece of software that connects different applications or software components. In Express, middleware processes and transforms incoming requests to the server. In our case, Multer acts...

Read More

When’s the last time you SFTP’d (or the like) into a server and changed a file directly?

In the grand tradition of every single poll question I’ve ever posted, the poll below has a has a fundamental flaw. In this case, there is no option between “In the last month” and “Never” but, alas, the results are interesting: When’s the last time you SFTP’d (or the equiv) into a server and changed a file directly? — Chris Coyier (@chriscoyier) October 9, 2018 What I was trying to get at with this poll is how many people do and don’t do any sort of editing of production files directly and instead work locally. I don’t think I need to launch a major investigation to know that it’s most people and more than in the past. Most workflows these days have us working locally and pushing new and updated files through a version control system, and even through systems beyond that, perhaps continuous integration processes, testing processes, actions, deployment — it’s big world of DevOps out there! Rarely do we skip the line and dip our fingers into production servers and make live manipulations. Cowboy coding, they sometimes call it. But just because you don’t generally code that way doesn’t mean you never do it, which is another flaw of this poll. I know DevOps nerds who are constantly SSH-ing into servers to manipulate configuration files. I personally still hop into Coda and will directly SFTP into servers...

Read More

PHP Exceptions: Try Catch for Error Handling

In this post, you’ll learn how to use exception handling in PHP. As of PHP 5, we can use try catch blocks for error handling—this is a better way to handle exceptions and control the flow of your application. In this article, we’ll go through the basics of exception handling along with a couple of real-world examples. What Is an Exception? PHP 5 introduced a new error model which allows you to throw and catch exceptions in your application—this is a better way of handling errors than what we had in older versions of PHP. All exceptions are instances...

Read More
000webhost logo