In this posting I will again be using WebGL. However as opposed to just drawing a triangle and doing a gradient fill, which you can see here. Gradient Triangle.
The code listed below will use WebGL to draw a cube and make it rotate.
WebGL is really a fascinating topic to me. Being able to utilize the power of a local machine’s GPU via the web browser is a very novel concept.
If one was to ask back in 1996 would you be able to render Open GL code in a web browser via GPU, even the most tech savvy may have replied, “Open GL? GPU? what are those things, you speak about?”
Traverse the tree in natural order and test if each node is between the previous and the next node. Properly detect duplicate values. If a wrong sub-tree is encountered immediately stop the script and indicate the error.
See code below
Standard problem of trying to maximize the values of item with a constraint. How many items can you put in a knapsack given the value and the weight of the items.
goal: maximize the value of items selected from the get_optimal_value
while the items selected combined weight is less than the inputted capacity
“Making a square peg fit into a round hole”
There are many times when dealing with data that you need to transfigure one data set to allow for comparison purposes.
SQL has built in functions that easily allow us to transfigure data. There are some considerations when using the functions, most importantly understanding what will happen to the data set during the process.
Today I will talk about the CAST function.