Ray's Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Boss is working on the security

Pages: 1 2 [3] 4
 21 
 on: November 28, 2018, 07:33:44 PM 
Started by rdl-admin - Last post by rdl-admin
Started development attracted by Django's modular structure, then finding that my chosen webhost doesn't support Django, so having to target another webhost as favourite for development.

Irritating . . . :'(

 22 
 on: October 15, 2018, 07:10:26 PM 
Started by rdl-admin - Last post by rdl-admin
After a few hours stumbling through ancient tutorials and dated support notes, I went from 20 easy minutes(https://www.ruby-lang.org/en/documentation/quickstart/) through a few hours debugging to a working script -

Code: [Select]
# http://www.techotopia.com/index.php/Working_with_Dates_and_Times_in_Ruby#Calculating_the_Difference_Between_Dates
require 'date'

# https://stackoverflow.com/questions/46717906/what-is-the-modern-equivalent-of-ruby-s-deprecated-date-day-fraction-to-time
class Date
  def self.day_fraction_to_time(fr)
fr *= 86_400
    ss,  fr = fr.divmod(1)
    h,   ss = ss.divmod(3600)
    min, s  = ss.divmod(60)
d, h  = h.divmod(24)
    return d, h, min, s, fr
  end
end

today = DateTime.now
puts "Today: " + today.to_s

timezone = today.to_s[19, 6]
birthdate = DateTime.new(1986, 12, 11, 0, 0, 0, timezone)
puts "Date of Birth: " + birthdate.to_s

birthday = DateTime.new(today.year, birthdate.month, birthdate.day, 0, 0, 0, timezone)

if birthday < today then birthday = DateTime.new(birthday.year + 1, birthday.month, birthday.day, 0, 0, 0, timezone) end

time_until = birthday - today
time_until.to_i             # get the number of days until my birthday
days,hours,minutes,seconds,frac = Date.day_fraction_to_time(time_until)
seconds += frac.fdiv(1)

puts "It is my birthday in #{days} days, #{hours} hours, #{minutes} minutes and #{seconds} seconds (not that I am counting)"

Generating this output -
Code: [Select]
Today: 2018-10-15T19:09:48+07:00
Date of Birth: 1986-12-11T00:00:00+07:00
It is my birthday in 56 days, 4 hours, 50 minutes and 11.446173 seconds (not that I am counting)

Moving on . . .

 23 
 on: October 03, 2018, 08:33:56 PM 
Started by rdl-admin - Last post by rdl-admin
The genesis of this project was a little top-down scrolling RPG called 'Lionheart' conceived by Mark Stimson and myself to run on the ZX-Spectrum back in 1984 or thereabouts. We never had the opportunity to complete this, but a few prototypes were put together and we came up with some natty ideas that later got implemented in other games of the time and later.

Fast-forward 30-odd years and I find myself seeing some medieval adventures being thrown around, along with great civilisation simulations and I'm thinking that there's room in the future for something along those lines but quite possibly more.

 24 
 on: October 03, 2018, 08:15:24 PM 
Started by rdl-admin - Last post by rdl-admin
I picked on this because the setting for this phase is a non-descript group of villages in the rural countryside - trying to be non-specific as to where, but someplace in the Angevin Empire. In pursuing the questlines, hopefully, the player will find themselves back in the the bosom of the royal court - presumably part of Henry's retinue travelling the countryside.

There will be evidence from the way that the player is received by the retinue showing which of Henry's children is being received - and thus, the player's character is decided.

 25 
 on: October 03, 2018, 07:42:35 PM 
Started by rdl-admin - Last post by rdl-admin
Just in the process of finalising the structure of the Patreon page for the Plantagenet saga, but a lot of filler information to add to the about page as well as the tiers.

Still deciding whether to include all the offspring, or just the legitimate siblings, but at the moment only the legitimate male heirs are tiered. there's the three girls, Matilda, Eleanor, and Joan I'd like to add, but then whether to include the other Geoffrey and William? Decisions, decisions . . .

Find the page here, btw - https://www.patreon.com/plantagenet

 26 
 on: August 27, 2018, 10:29:10 PM 
Started by Simple Machines - Last post by Simple Machines
Welcome to Simple Machines Forum!

We hope you enjoy using your forum.  If you have any problems, please feel free to ask us for assistance.

Thanks!
Simple Machines

Pages: 1 2 [3] 4

Page created in 0.075 seconds with 19 queries.