Traveller Store CotI Features New Posts Mark Forums Read Register


Go Back TravellerRPG.com > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

Reply
 
Thread Tools Display Modes
  #11  
Old July 20th, 2019, 07:52 AM
timerover51's Avatar
timerover51 timerover51 is offline
Citizen: SOC-14
 
Join Date: Sep 2012
Location: North of Chicago
Posts: 6,353
Gallery : 4
Visit timerover51's Blog
timerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizentimerover51 Beloved Citizen
Default

HAPPY BIRTHDAY, LEITZ.

Personally, I would like to have a few more grey hares to feed carrots too.

I was at my 50th High School Reunion last weekend, and while I had no trouble recognizing some of the girls, the guys were a lot harder. And no, recognizing a lot of the girls does not mean that I dated in high school. The first time I went out on a date, the girl invited me. The odd thing is that she kept inviting me when she went off to college whenever she came home.
__________________
Star Port Administrator: El Paso, El Paso, Sword Sub-sector, Piper-Norton Out Rim Sector
Link to Piper Sector: http://www.zarthani.net/ridder-mankind_to_the_stars.htm
Do you have a security clearance? New July 10 Blog Entry-New Goodies
http://www.youtube.com/watch?v=ElI451TxsTg, 3:24 in.
I march to my own set of bagpipes. Caution: This individual thinks that studying logistics is FUN.

They that go down to the sea in ships,
that do business in great waters;
These see the works of the LORD,
and his wonders in the deep.
Reply With Quote
  #12  
Old July 20th, 2019, 08:02 AM
coliver988's Avatar
coliver988 coliver988 is offline
Baron
 
Join Date: Dec 2003
Location: Asheville
Posts: 1,487
Gallery : 102
Visit coliver988's Blog
coliver988 Citizen+coliver988 Citizen+coliver988 Citizen+
Default

I did leave a comment in the repo about DB vs flat files. Essentially serializing to/from JSON or XML may be easier, and SQLite, assuming your classes inherit from a base class that has the DB stuff integrated, is another option.

Thanks for the Hobbit present: I do need to learn Ruby (we use Rails at work) but so far am stuck in the world of Filemaker (basically Access for Macs). We are converting the FM stuff to Rails for a variety of reasons, and this could be a low barrier way for me to pick it up (as mentioned, Ruby, and especially Rails, has some opinions I just don't agree with, but hey, I am an old developer with old habits. And get off my lawn!)
__________________
Mostly lurking about...CT is still my favorite with T5 as a neat tool box to plunder.


Duke of The Solomani RimLANGELOS A4249A6-FLangelos Write Up AlphaTrane / Glisten 2038
Baron, IpkurIpkur C564543-9Ipkur Write Up AlphaRomar / Glisten 2140
Knight of the Third Imperium [x2]Rhylanor A434934-FCyan / Trojan Reach 2102
Knight of the Third ImperiumIkuna E000410-AKryslion / Trojan Reach 2002
MCG For Conspicuous GallantryThe Assault On AlellSelshor / Trojan Reach 1402
Travellers Aid Society 2798Dudid B510526-9Blog - mix of OTU and MTUhttp://traveller-ct.blogspot.com/
Pilots Guide To D'Arlee QuadrantTraveller Github spacehttps://github.com/COliver988/Traveller
Reply With Quote
  #13  
Old July 20th, 2019, 08:03 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Hey timerover51, I think you pre-date me by a year or two. Not more than a decade, though, is my guess.

I find programming to be rejuvenating and I really don't want to retire. Ruby is great for rapid prototyping and a hoot to code in; hopefully I can keep learning until I croak off.

Back in high school I was aware of girls. Not sure the awareness was mutual.
__________________
Chronicler, the Domici War
Reply With Quote
  #14  
Old July 20th, 2019, 08:11 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Quote:
Originally Posted by coliver988 View Post
I did leave a comment in the repo about DB vs flat files. Essentially serializing to/from JSON or XML may be easier, and SQLite, assuming your classes inherit from a base class that has the DB stuff integrated, is another option.

Thanks for the Hobbit present: I do need to learn Ruby (we use Rails at work) but so far am stuck in the world of Filemaker (basically Access for Macs). We are converting the FM stuff to Rails for a variety of reasons, and this could be a low barrier way for me to pick it up (as mentioned, Ruby, and especially Rails, has some opinions I just don't agree with, but hey, I am an old developer with old habits. And get off my lawn!)
For some reason my wife thinks city ordinance forbids placing live ordnance around the lawn perimeter. Not sure why...

In various incarnations I've used JSON, flat files, SQLite, and MongoDB. Part of the future state is to write up documentation so someone could take the code, easily change the various lists (skills by career, appearance, names) to suit their own campaign and needs. To that end I'm looking more at flatfiles and SQLite, which are currently used.

If you're a RoR shop, you have my condolences! The web app uses Sinatra, a route based web server with easy syntax. I'm also using Erb, which is still the RoR template of choice, right?
__________________
Chronicler, the Domici War
Reply With Quote
  #15  
Old July 20th, 2019, 01:00 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

coliver988, I looked at some of your code. It should take you less than a week to get as good at Ruby as I am. There are some Ruby-isms to be aware of, like automatically generated getters and setters with the "attr_accessor" statement. Also, a Ruby method automatically returns the result of the last statement evaluated, absent an explicit "return" statement. So the above returns true of @upp[:soc] is > 10, false otherwise.

And yes, a method ending in "?" is valid. The convention is to use them for booleans, but they can be use however you like.
__________________
Chronicler, the Domici War
Reply With Quote
  #16  
Old July 20th, 2019, 11:34 PM
ShawnDriscoll's Avatar
ShawnDriscoll ShawnDriscoll is offline
Citizen: SOC-13
 
Join Date: Apr 2017
Posts: 870
Gallery : 0
ShawnDriscoll Citizen+ShawnDriscoll Citizen+
Default

Quote:
Originally Posted by Leitz View Post
I can see the utility in that, you could make the dict key based on the header. Since my code is pretty raw, and others might want to add to and use it without my snake case name scheme, I'll holding off for the nonce. I do like the idea, though...
I'm using pandas now. So CSV headers are a must.
Reply With Quote
  #17  
Old July 21st, 2019, 08:28 AM
Maksim-Smelchak's Avatar
Maksim-Smelchak Maksim-Smelchak is offline
Citizen: SOC-12
 
Join Date: Nov 2005
Location: Sacramento
Posts: 280
Gallery : 0
Maksim-Smelchak Citizen
Default

Mazel Tov!

Quote:
Originally Posted by Leitz View Post
Hobbits give others presents on their birthday. I'm a bit tall for a hobbit but well rounded enough to do for. Today is my birthday and I wanted to give us both a present.

Star Merchant actually runs! While it has lots of tests it is still fragile, there's very little error checking and user input is only nominally validated. So far. I wanted to prove to myself that I could take a slightly larger than my usual program and make it work.
Thanks for sharing it.

Shalom,
M.
__________________
Lord Maksim-Smelchak,
Marquis and Master of Sophontology of the Imperial Ministry of Science of the Third Imperium,
Master Traveller Chronicler, Wiki Guy & FFE Chief Gopher
Reply With Quote
  #18  
Old August 1st, 2019, 04:43 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Quote:
Originally Posted by coliver988 View Post
I did leave a comment in the repo about DB vs flat files. Essentially serializing to/from JSON or XML may be easier, and SQLite, assuming your classes inherit from a base class that has the DB stuff integrated, is another option.

Thanks for the Hobbit present: I do need to learn Ruby (we use Rails at work) but so far am stuck in the world of Filemaker (basically Access for Macs). We are converting the FM stuff to Rails for a variety of reasons, and this could be a low barrier way for me to pick it up (as mentioned, Ruby, and especially Rails, has some opinions I just don't agree with, but hey, I am an old developer with old habits. And get off my lawn!)
coliver88, I replied to your comment on github so others could see the design process and join in the conversation. My real assumption is that folks might take the code and change it to suit their needs. Making that easier is a design goal. However, there's also the design goal of "have a project to demo for a job interview". So making it too simplistic can be an issue, as well.

At this point there's data in two formats; plain text with one "thing" per line, and the SQLite DB for names. That makes it very easy to add or change, and if someone wants to re-write the entire thing in Go or Python, they are welcome to. Well, I can save them some time in Go, some of it is already written.
__________________
Chronicler, the Domici War
Reply With Quote
  #19  
Old August 1st, 2019, 05:09 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Of course, the down side of flat files is their number:

https://github.com/makhidkarun/ftl_c...ee/master/data
__________________
Chronicler, the Domici War
Reply With Quote
  #20  
Old August 24th, 2019, 10:34 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,734
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Saw a DriveThru advert for an adventure seed generator or somesuch. One place it had adventures starting was in a bar, which made me think it needed people. Mangled the starship crew into a list of patrons at a bar. Still needs work, but here's a sample:

Code:
 
Welcome to Joe's Bar and Blowfish Emporium, a small club

Patrons:

    Rayna Forbes [ F ] 7B4288 ( 5 terms) Age: 39    Brawling-1, Computer-1, Gamble-1
    Abigail Seguin [ F ] C69665 ( 2 terms) Age: 27    Carouse-1, Survival-1
    Jade Rivero [ F ] 68888A ( 2 terms) Age: 27    Carouse-1, GunCbt-1
    Erminia Ramos [ F ] 7549BB ( 5 terms) Age: 39    Admin-2, Legal-1
    Sonny Cornelis [ M ] 879954 ( 4 terms) Age: 34    Brawling-1, Gamble-1, Stealth-1
__________________
Chronicler, the Domici War
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[TravellerCON/USA] Touting the present, improving the future FreeTrav TAS News Feed 13 August 5th, 2015 07:01 AM
"The Hobbit", Sovietsky Style Blue Ghost Random Static 9 December 9th, 2014 11:12 AM
The Hobbit movie Qstor2 Random Static 59 January 16th, 2013 09:46 PM
The reprints past, present and future Crimson Cat The Lone Star 4 October 30th, 2003 03:03 PM

This website and its contents are copyright ©2010- Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.