Many of us end up working on such a diverse amount of programming languages/libraries to be able to make a living and serve customers needs that we find ourselves lacking confidence in any particular niche.
When working with events in React, Especially within forms after version 0.13, you may run into some event handling code that needs to make use of “this” and “bind”. If you’re familiar with what bind does you can ignore the below.
This is based on this article from Digital Ocean but modified to include, and addresses some .htaccess, directory structure issues as well as add support for FTP and phpMyAdmin. We also presume you have an existing domain registered somewhere that you want to point to your digital ocean server and you have an existing WordPress site you want to migrate.
If you’re in the stages of creating a webGL game or app using three.js you may find it useful to visualize what your code is doing. That’s where the need for a debugger/inspector comes into play. Here are a few ways to do it.
This can be used to shorten pretty much any text in WordPress. I recently had to use it to make sure recent comment titles didn’t cause them to spill over to the next line so I’ll use it as an example…
Why is this important knowledge? You may be looking into both options as whether you're planning to build online games, a plugin for your website, etc. Unity3D and three.js are certainly both great options that can accomplish similar things but definitely very different. I've fortunately been able to dip into both a bit. Hopefully you'll find this useful...
Want some advice on becoming a WordPress plugin developer? Here are a few things to consider from both a technical and business approach. These answers are provided by Slavi Marinov, dedicated WordPress plugin developer - whom I’ve had the pleasure to meet with recently and has kindly taken the time to answer some big questions I’ve had.
Vertex colors in three.js can be easily achieved using the built in geometry.vertices.push function and the THREE.VertexColors attribute when setting up a custom GLSL shader ...
Adding links within articles to related posts is a great way to polish the SEO on your WordPress site, but at times It can be redundant, time consuming and hard to remember what articles are related. So why now automate it!? Here is a great way to do so by displaying a non obtrusive list of related posts. Simply paste this below the content area of your article in single.php or whatever template file your single posts are reading from.
This tutorial explains how to rotate the camera with the mouse in three.js. This can be accomplished using the built-in TrackballControls.js. Test it out on the below. Rotating the object around by holding down the left mouse button and dragging. Zoom with the middle and pan from side to side with the right mouse button. Download the source code for this tutorial.