Some Youtube Annoyance

Some Youtube Annoyance

Youtube, the biggest video sharing website. Well, no need for me to explain. I’m sure you know about it. I’m sure you enjoying watching video on youtube as it is, but I feel like it can improve a bit more. I’m using Youtube heavily, especially when I’m working. I don’t know why, but when I’m …

Read More Read More

Stardew Valley

Stardew Valley

Stardew Valley, or should I say the new Harvest Moon? When I first knew the game when I open twitch to watch some starcraft stream, I can’t help but get the familiar feeling with the Harvest Moon game that I play when I was a child. Well, at least without the RPG elements in Stardew Valley, …

Read More Read More

Avoiding SQL Injection in PHP

Avoiding SQL Injection in PHP

Recently, I’m reviewing some web project that made using PHP. It nice website, responsive and can support both PC and mobile display. But, it seems that they didn’t keep security in mind when they develop that website. By security, I didn’t mean that unauthorized people can access certain login-only page or something. But it seems …

Read More Read More

Generate Your PHP Documentation

Generate Your PHP Documentation

In my last post, I tell you to make your code well documented, for a reason. But sometimes, making your code documented wasn’t that much help at all. I mean, to know what your code docs, you need at least code hinting that shows docs like IntelliSense, or you must open the source code. Of …

Read More Read More

Make Your Code Documented People

Make Your Code Documented People

In the last couple years, while working on collaborations projects with some companies. Working with different frameworks, people, database, and APIs. I notice several thing that doesn’t really suit me and I consider them as ineffective or bad practice. One of them is documentation. Some people I work with (not all), consider it as a …

Read More Read More

How to Run .phar Files

How to Run .phar Files

Couple days ago, when I working on a web project for some developer company. They ask me if I can tell them how to create API documentation like the one I use in my own framework. By API documentation, I mean like this one They know that I use apigen to generate the documentation but they don’t know …

Read More Read More

Basic Game Math: Vector Length

Basic Game Math: Vector Length

In the last couple post, I write about basic Vector operation addition, subtraction, multiplication, and division. Not only that, but I also give an example of how to use them in game development. Now, in this post, I will write about Length on Vector. Vector, as far as I know, mostly used to represent a position …

Read More Read More

Basic Game Math: Vector Subtraction

Basic Game Math: Vector Subtraction

Substracting vector, like addition vector, is basic and easy equation to do. Since you just need to subtract each axis from both vector. This can be expanded to: By subtracting a vector with vector, the result you get is vector direction from vec2 to vec1. See image: So if you do this equation: In vector …

Read More Read More

Basic Game Math: Vector Addition

Basic Game Math: Vector Addition

Usually, this is used to move object position to other position by some vector that represents directions in game object movement. Like if you want to move the object to some direction using vector or push object to the x-axis or anything. To do this, you just need to add both vector and the result is …

Read More Read More