The formula to calculate the segment area of a circle:
Perpendicular (nearest) distance from a point to a line in 2D
Calculating the perpendicular distance from a point to a line in 2D is useful, when you want to find out what the nearest (i.e. closest or shortest) distance is from that point, to the line. Here is the formula:
C# UDP Communication
Communicating across UDP is useful for peer-to-peer and intermittent connections, where TCP is not practical. Below is an example of communicating via UDP using C#. To use it:
Ideal Methodology
Agile Is Not Ideal. SCRUM Is Not Ideal. Ideal Methodology picks up where Agile Methodology left off. Its motto is as follows: “Those who can, do. Those who can’t, complain.” Agile and Scrum represent the mindset that complaining and intimidating people are the main methods of achieving project requirements. Agile and Scrum is simply institutionalized …
Family tree genealogical data JSON format template
Below is an open-source JSON format template to store an individual’s genealogical data, for your family tree. { “surname”: “”, “maidenSurname”: “”, “name”: “”, “nickname”: “”, “idNumber”: “”, “gender”: “m/f”, “race”: “”, “ethnicGroup”: “”, “height”: “”, “firstLanguage”: “”, “otherLanguage”: [“”], “birth”: [“Year”, “Month”, “Day”], “birthWhere”: “”, “death”: [“Year”, “Month”, “Day”], “deathWhere”: “”, “deathCause”: “”, “married”: …
Generate a free and valid SAN SSL certificate for multiple domains
So, you want to generate a single, free and valid SSL certificate for all your domains? Well, you’ve come to the right place! A tool that will do exactly that for you, is called letsencrypt-win-simple: A Simple ACME Client for Windows. Download the tool from this link. The tool generates free and valid SSL certificates …
Bitcoin price prediction
The above map shows the concentration of Bitcoin nodes around the world (Date: 6 November 2017). Bitcoin nodes are the computers that make up the Bitcoin network, because they run Bitcoin software which allows people to broadcast transactions into the Bitcoin network, and they also store the Bitcoin blockchain, which is a collection of all …
What are Bitcoin signatures?
So, you heard that Bitcoin transactions need to be signed. But which transaction is actually signed? The new one that you want to send, or the old ones that were already sent? And when you “sign a transaction”, what is actually signed? Literally – what is the actual thing that is performed when someone “signs …
Take back your money and future
By now we’ve all heard about Bitcoin, and how it’s the best thing since sliced bread (or sliced coin?). Before you can appreciate the potential of Bitcoin (or any virtual money for that matter) you need to understand what traditional money is, and isn’t. It’s a given that money is power. Banks control the creation …
PHP PDO with MySQL, PostgreSQL or SQLite
I use PHP daily, and so should you. The fact that you’re here, says you know it too. PHP is a good language (and web ecosystem) that doesn’t force you to use any flavor of the week framework or design pattern, dreamt up by some self-made benevolent superhero zen guru who understands everything, and who …