Tutorials

Random Numbers in Java

Submitted by GeePee on
In today's tutorial, we are going to cover how to generate random numbers in Java. Random numbers are used for a wide number of applications. They can be used for random sampling, simulations, generation of keys, lotteries, and games. One of the most common uses for random numbers is in video gaming. The outcomes of many events are determined by a random number generator. One of the simplest applications of random numbers is simulating a dice roll. That is what we will simulate in this application today.

PHP easter_days()

Submitted by alpha_luna on

PHP easter_days()

easter_days() function returns the number of days after March 21, on which Easter falls for a specified year.
Syntax of this function:
easter_days(year,method) year - defines the year to calculate the midnight on Easter from. If the year parameter is omitted, the current year is used. (optional) method - allows you to calculate Easter dates based on other calendars. E.g. it uses the Gregorian calendar during the years 1582 - 1752 when set to CAL_EASTER_ROMAN.

Creating your own calendar in VB.NET

Submitted by donbermoy on
This is a tutorial that will teach you how to create and design your own calendar using vb.net. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.

Basic Conditionals in Java

Submitted by GeePee on
In this tutorial, we will cover how to use conditional statements. Conditional statements work by executing code if a certain statement is true. There is also the option of running a different set of code if the conditional is not true. Conditionals use the "if" statement, and "else" is optional.

How to Convert Julian Day into a Specified Calendar in PHP

Submitted by alpha_luna on

PHP cal_from_jd()

The cal_from_jd() function converts the specified Julian day into a date of the specified calendar.

Syntax of this function:

cal_from_jd(jd,calendar) jd - A number (a Julian day count). (required) calendar - specifies the calendar to use. (required) The following calendar values can be used:
  • CAL_GREGORIAN
  • CAL_JULIAN
  • CAL_JEWISH
  • CAL_FRENCH

Animation Timing Function in CSS3

Submitted by alpha_luna on

Good day!

In this tutorial, we are going to learn about animation-timing-function. What is animation-timing-function? animation-timing-function property specifies the speed curve of the animation. The speed curve defines the amount of time an animation uses to change from one set of CSS styles to another. Syntax of this property: animation-timing-function: linear | ease | ease-in | ease-out | ease-in-out | cubic-bezier (n,n,n,n) | initial | inherit ; Property Values

How to Shake a Form in VB.NET

Submitted by donbermoy on
This is a tutorial that will teach you how to create a form shaker in vb.net. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next, add two Buttons named Button1 for Left-Right shake and Button2 for Up-Down shake button.

Display Windows User Properties in VB.NET

Submitted by donbermoy on
Today, I will teach you how to create a program that displays the Windows User Properties in VB.NET. It will have Windows user properties like Username, Guest User, System, Anonymous, Authentication, Impersonation Level, Authentication Type, Groups, Owner Value, User Value, and Token Size. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.