Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 132,711
» Latest member: 稲葉優子ewze465
» Forum threads: 4,492
» Forum posts: 4,495

Full Statistics

Online Users
There are currently 12786 online users.
» 0 Member(s) | 12780 Guest(s)
Facebook, Bing, Yandex, Google, Baidu, Applebot

Latest Threads
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 3,098
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 2,262
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 2,747
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 2,424
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 2,108
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 2,635
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 1,985
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 2,056
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 2,206
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 2,165

 
  Rebuild The Universe
Posted by: Qomplainerz - 03-01-2021, 11:37 AM - Forum: Archived posts - No Replies

Description:
Based on Scale of the Universe, Rebuild the Universe is an incremental game that starts with the smallest unit possible to end with the universe itself.

Link:
https://rebuildtheuniverse.com

Print this item

  The Universe Is Dark
Posted by: Qomplainerz - 03-01-2021, 10:04 AM - Forum: Archived posts - No Replies

Description: 
The Universe is Dark
You are a ball in dark space. Can you light up the universe?

Link:
https://heartosis.itch.io/the-universe-is-dark

Print this item

  Gray Bridge and Trees
Posted by: Qomplainerz - 02-28-2021, 11:53 AM - Forum: Landscape photography - No Replies

Title: Gray Bridge and Trees
Author: Martin Damboldt
Link: https://www.pexels.com/photo/gray-bridge...es-814499/

   

Print this item

  Predecessor in Ruby
Posted by: Qomplainerz - 02-28-2021, 10:31 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

If you want to get the predecessor of a number in Ruby you can do it as follows:


Quote:puts 1.pred


This will print 0 on the screen

Print this item

  Successor in Ruby
Posted by: Qomplainerz - 02-28-2021, 10:29 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

If you want to get the successor of a number in Ruby you can do it as follows:


Quote:puts 1.succ


This will print 2 on the screen

Print this item

  Greatest common divisor and least common multiple in Ruby
Posted by: Qomplainerz - 02-28-2021, 09:13 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

To get the greatest common divisor and the least common multiple of 2 numbers at the same time 
we can use the gcd_lcm function instead of gcd and lcm in two separated functions.
In this example we want to know the greatest common divisor 
and the least common multiple of 36 and 60.


Quote:num1 = 36
num2 = 60
gcd_lcm = num1.gcd_lcm(num2)

puts gcd_lcm


This will print 12 and 180 in two lines on the screen.

Print this item

  Least common multiple in Ruby
Posted by: Qomplainerz - 02-28-2021, 09:11 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

To get the least common multiple of 2 numbers we can use the lcm function.
In this example we want to know the least common multiple of 36 and 60.


Quote:num1 = 36
num2 = 60
lcm = num1.lcm(num2)

puts lcm


This will print 180 on the screen.

Print this item

  Greatest common divisor in Ruby
Posted by: Qomplainerz - 02-28-2021, 09:09 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

To get the greatest common divisor of 2 numbers we can use the gcd function.
In this example we want to know the greatest common divisor of 36 and 60.


Quote:num1 = 36
num2 = 60
gcd = num1.gcd(num2)

puts gcd


This will print 12 on the screen.

Print this item

  Floor and precisions in Ruby
Posted by: Qomplainerz - 02-28-2021, 08:40 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Example 1
Let's assume our number is 12.12 and we want to print the floor without any precision:


Quote:puts 12.12.floor


This will print 12 on the screen

Example 2
Let's assume our number is 12.12 and we want to print the floor with a precision of 1 decimal place:


Quote:puts 12.12.floor(1)


This will print 12.1 on the screen

Example 3
Let's assume our number is 12.12 and we want to print the floor with a precision of 2 decimal places:


Quote:puts 12.12.floor(2)


This will print 12.12 on the screen

Print this item

  Ceil and precisions in Ruby
Posted by: Qomplainerz - 02-28-2021, 08:35 AM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Example 1:
Let's assume our number is 1.1 and we want to print the ceil without any precision:


Quote:puts 1.1.ceil


This will print 2 on the screen, because 1.1 is rounded up to the next whole number.

Example 2:
Let's assume our number is 1.1 and we want to print the ceil with a precision of 1 decimal place:


Quote:puts 1.1.ceil(1)


This will print 1.1 on the screen, because 1.1 is rounded to the nearest 1st. decimal place.

Example 3:
Let's assume our number is 1.1 and we want to print the ceil with a precision of 2 decimal places:


Quote:puts 1.1.ceil(2)


This will print 1.11 on the screen, because 1.1 is rounded to the nearest 2nd decimal place.

Print this item