Category: Programming
Programming guides, code snippets and general how-tos
I work with several NPM accounts on a daily basis – one for work and a couple for my open source work. npm login is a pain, which is why I wrote npm-user-switch: A simple CLI tool to help easily manage switching accounts without having to remember each …
Encryption allows an actor to obscure data in a day that prevents unwanted parties from viewing the raw contents. Using some kind of secret, an actor can encrypt data that can be later decrypted by using the same secret. With regards to the majority of encryption algorithms, this …
Detecting whether or not an ad is in view is paramount to estimating what advertising networks are measuring when deciding what to pay out. Most networks use the standard IAB 50% for 1 continuous second as the measurement of a viewable impression: Pixel requirement: greater than or equal …
Ray Casting is a graphics technique to determine what objects, if any, intersect with rays cast out from the camera. These rays, when intersecting with something like a wall, can be used to draw surroundings. Ray casting has been used in many older games, such as Rise Of …
The browser console is the place to start when debugging websites and webapps, and there’s absolutely no reason that it should be static and boring. The console in most modern browsers is almost a browser in itself, and you might be surprised with what it can actually render. …
PHP scripts have the ability to request content from other servers using cURL. cURL makes a request to a remote server page, fetches the content and returns it to the script. cURL can make GET and POST requests, retrieving and pushing data respectively, behaving very much like a …