The settings.php file is the main configuration file for a Drupal site where a number of system variables, among other things, may be configured. In Drupal 7, there is an optional setting, $base_url, which specifies the absolute URL of the installation. This is often used when generating site URLs, for example, when using Drush to log in as another user. drush user-login This will log you in as admin user (uid: 1). To log in as another user, yo [...]

Functional programming (FP) has seen a rise in usage within the past half decade with the introduction of libraries like React. We get to use some of these libraries that encourage declarative programming and functional paradigm, yet many are intimidated by the term functional programming because it is often followed by jargon terminology like monads, factoids, lambda calculus, currying, transducers... When the year started, we explored the state [...]

In a previous post, we covered the basics of Three.js and the concept of 3D on the web. If you have not already read that, you should. Some real-world examples of 3D on the web were shown in that post. Now, we will just try to get comfortable with building such experiences. I will start with the hello world of 3D design, which is making cubes. For you to build along, I have made a codepen template you can pick up from. Let us try to understand wh [...]

Drupal implements the Front Controller design pattern. All HTTP requests are directed to the index.php file, and a response is generated and returned. With the architectural decision to use Object-Oriented Programming and Symfony Components, the file has remained very short and concise. However, the request and response aspects of the process are given prominence. This is the index.php without comments: <?php use Drupal\Core\DrupalKernel; u [...]

Can't watch the video right now? Read the transcript below. Something strange happens when you can work from anywhere. It gives you the ultimate gift -- true freedom, freedom to plan out your day, to live anywhere in the world, to go anywhere at any time, to go to the gym finally, to achieve the goals you've put off for so long. We ascend to the dream way of living and working, and yet...why is it so hard to capitalize on it? Why is it when you [...]

The web has been the most used platform for software development since the start of the 21st century as it transitioned from a document sharing platform to a home for scalable applications. We have had the animation and gaming industry also move from traditional and 2D graphics/animations to 3D. More recently, there has been much innovation around virtual reality (VR) and augmented reality (AR), and most of that is also coming to the web. As an o [...]

In Part I of the tutorial, we handled very basic data retrieval from our "database", i.e., spreadsheet. Today, we will build a basic "REST-ish" API to access it. It will not adhere to all the rules of REST because of some Google-Apps-Script limitations, but it will be intuitive enough for anyone who has ever worked with REST. It will also be very simplistic, since the point of the tutorial is to give you a basic understanding of how this could ea [...]

Encouraged by the reaction of our community to the fitness quest that we have run recently, we decided to take a swing at improving our productivity in a series of fun challenges. The goal was to try out different approaches to improving how we work and share our opinions on it. We designed ProductivityQuest to be a 3-week collaborative Slack game and hoped for some interest. Instead, we got a ton of positive feedback, far more than we had dared [...]

If you are like me, when you have an idea, you like to jump on it and build a proof-of-concept app for it. That is all nice and well, but what if it is a shared idea and the other participants know nothing about coding? Have you ever tried explaining curl or postman to a complete beginner? The intricacies of how to properly make a POST request to fill the database with data can confuse any non-tech-savvy person. Well, it turns out that you do not [...]

Is Fiber ready yet? Yes, it is. Getting a little late to the react scene, I found it weird that people anticipated a feature so enthusiastically. I kept asking why people are not happy enough about the state of React at 15. Why not embrace 16 when it comes without so much anticipation? But people wanted it like Yesterday before it even arrived. Little did I know that React 16 is indeed a pack of awesomeness worth the anticipation and it is a comp [...]