Occasionally you will need to convert a callback based function to an async/await function. One example of this is below, calculating a map route appears to be only available as a callback based one. Below is an example of how to convert it to an async function. This code is […]
Do you know the difference between echo and print in PHP?
There isn’t very many differences they both can be used to output to the page, however print also returns a 1.
How do you get the JSON body in PHP?
$_POST doesn’t always get you what you need. If you are passing in JSON as the body of a request, you can’t get it using $_POST. You will have to use file_get_contents(‘php://input’);. I found this to be extremely annoying and not well documented.
How to give good constructive feedback?
When giving feedback here is are some good rules to follow. Always have something positive to say even if you are giving bad feedback. Give good clear things that they can improve. Be clear about what you are suggesting. Don’t make it sound like they have to do the improvements. […]
Sharpening My Tools Part 2
Developing an iOS application is full of small bits of repetitive tasks. When you develop User Interface in code, you must create and handle constraints in code. Depending on what you have to do this could become extremely repetitive and complicated. You can write each constraint yourself, but this gets […]
Sharpening My Tool Part 1
I’ve been working on a full fledged pdf reader application for iOS. During the process of developing for this I have wanted to use Icons from Font Awesome; as buttons in the app. Apple’s iOS doesn’t like SVG files or the font awesome font files, to work around this I’ve […]
Unity Mesh Modification
As part of the technical preview for a project I’m working on I have ran into an interesting problem that I’m trying to solve. In Unity when you use the OnCollisionEnter/OnCollisionExit collision handling and need the information about the mesh it is colliding with. Modifying the mesh requires knowledge of […]
Unity Custom Editor
This week I have been working on a Unity custom editor, with the goal of making meshes easier to work with. It made sense to show this editor for the MeshFilter type, since that’s the script unity uses to store the Mesh object on. Anytime the MeshFilter selected in the […]
Solution #1 Unity Mesh Walls
The solution I have chosen is as follows. Use bezier curve that has 2 control points, these are each end of the line. Then set the rotation based on the tangent at the midpoint. Code shown below.
Problem #1 Unity Mesh Walls
This is a problem I have encountered while working on my personal side project, a simulation game. Unity mesh allows developers to dynamically create meshes at runtime. Meshes take an array of Vector3s and an array of Integers to create the mesh. Vector3 is a data type that stores the […]