Test Post Thread
Forum rules
- Keychain
-
Keychain she/herGrounded
- Keychain
she/her- Grounded
- Grounded
- Posts: 935
- Joined: November 16, 2014
- Pronoun: she/her
- Location: London UK
- Contact:
- Keychain
-
Keychain she/herGrounded
- Keychain
she/her- Grounded
- Grounded
- Posts: 935
- Joined: November 16, 2014
- Pronoun: she/her
- Location: London UK
- Contact:
- mastina
-
mastina SheFalse Prophet
- mastina
She- False Prophet
- False Prophet
- Posts: 16052
- Joined: October 7, 2016
- Pronoun: She
- Location: Between Snohomish and Monroe, WA
- Contact:
So this should work, but I need confirmation.
- ASpoiler: Dicey
- BSpoiler: Dicey
- CSpoiler: Dicey
- DSpoiler: Dicey
- ESpoiler: Dicey
- FSpoiler: Dicey
- GSpoiler: Dicey
- HSpoiler: Dicey
- ISpoiler: Dicey
- JSpoiler: Dicey
- KSpoiler: Dicey
- LSpoiler: Dicey
- MSpoiler: Dicey
- NSpoiler: Dicey
- OSpoiler: Dicey
- PSpoiler: Dicey
- QSpoiler: Dicey
- RSpoiler: Dicey
- ASpoiler: Dicey
- BSpoiler: Dicey
- CSpoiler: Dicey
- DSpoiler: Dicey
- ESpoiler: Dicey
- FSpoiler: Dicey
- GSpoiler: Dicey
- HSpoiler: Dicey
- ISpoiler: Dicey
- JSpoiler: Dicey
- KSpoiler: Dicey
- LSpoiler: Dicey
- MSpoiler: Dicey
- NSpoiler: Dicey
- OSpoiler: Dicey
- PSpoiler: Dicey
- QSpoiler: Dicey
- RSpoiler: Dicey
Let's see if it looks as I think it will.- mastina
-
mastina SheFalse Prophet
- mastina
She- False Prophet
- False Prophet
- Posts: 16052
- Joined: October 7, 2016
- Pronoun: She
- Location: Between Snohomish and Monroe, WA
- Contact:
Okay so I forgot that I needed a line break after the floats for the "let's see if this works as I expect", but yes.
It did in fact work the way I thought it would.
(What is this? This is me testing something out for modding, it'll be involved in my role randomization process.)- Pine
-
Pine In Your Head
- Pine
- In Your Head
- In Your Head
- Posts: 16763
- Joined: February 27, 2011
- Location: Upstate New York
- Alisae
-
Alisae lolbalance
- Alisae
- lolbalance
- lolbalance
- Posts: 38578
- Joined: October 31, 2016
- Location: Cali~ (PST)
- Contact:
Pine you should read this!In post 1329, Pine wrote:Need to figure out tables.
ColorsNumbers- Red
- Blue
- Yellow
- Green
- Orange
- Purple
- One
- Two
- Three
- Pine
-
Pine In Your Head
- Pine
- In Your Head
- In Your Head
- Posts: 16763
- Joined: February 27, 2011
- Location: Upstate New York
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
Code: Select all
public List<List<ProductCategory>> getProductCategoryChains(Connection connection, Collection<Integer> bottomLevelProductCategoryIds) throws SQLException { List<List<ProductCategory>> productCategoryChains = new ArrayList<List<ProductCategory>>(); Map<Integer, List<List<ProductCategory>>> currentCategoryIdToChainMap = new HashMap<Integer, List<List<ProductCategory>>>(); Set<Integer> currentProductCategoryIds = new HashSet<Integer>(); for(int productCategoryId : bottomLevelProductCategoryIds) { List<ProductCategory> productCategoryChain = new ArrayList<ProductCategory>(); productCategoryChains.add(productCategoryChain); miscUtil.pushToListMap(productCategoryId, currentCategoryIdToChainMap).add(productCategoryChain); currentProductCategoryIds.add(productCategoryId); } while(!currentProductCategoryIds.isEmpty()) { Map<Integer, ProductCategory> productCategoryMap = getProductCategoryMap(connection, currentProductCategoryIds); Set<Integer> nextProductCategoryIds = new HashSet<Integer>(); for(ProductCategory productCategory : productCategoryMap.values()) { List<List<ProductCategory>> tempProductCategoryChains = currentCategoryIdToChainMap.get(productCategory.getId()); tempProductCategoryChains.forEach(chain -> chain.add(0, productCategory)); if(productCategory.getParentId() != null) { nextProductCategoryIds.add(productCategory.getParentId()); if(currentProductCategoryIds.contains(productCategory.getParentId())) currentCategoryIdToChainMap.remove(productCategory.getId()); miscUtil.pushToListMap(productCategory.getParentId(), currentCategoryIdToChainMap).addAll(tempProductCategoryChains); } } currentProductCategoryIds = nextProductCategoryIds; } return productCategoryChains; }
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- MathBlade
-
MathBlade He/HimTechnical Support
- MathBlade
He/Him- Technical Support
- Technical Support
- Posts: 40490
- Joined: September 9, 2013
- Pronoun: He/Him
- Location: Western US
Getting tired of going back to my old post.
Spoiler: VoteCount Settings2
Spoiler: Day 1
Spoiler: VoteCount SettingsLast edited by MathBlade on Thu Jun 21, 2018 1:18 pm, edited 8 times in total.ScumBlade's eloquent performance left me utterly disoriented, debased, depraved and sent me spiraling into a horrific murky abyss with emotional turmoil and immense despair as my only companions until slowly I suffocate in my own gloom, surrounded by failure. I will never recover. -- Zachstralkita about Mini 1841
GTKAS -- MathBlade- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- BNL
-
BNL Micro Madness
- BNL
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
- BNL
-
BNL Micro Madness
- BNL
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
Wait so dice tags don’t work for 5058? Looks like we need a new way to generate roles for GIM- BNL
-
BNL Micro Madness
- BNL
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
- BNL
-
BNL Micro Madness
- BNL
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
- Kison
-
Kison TestPronoun.GIFted
- Kison
TestPronoun- .GIFted
- .GIFted
- Posts: 6699
- Joined: January 22, 2007
- Pronoun: TestPronoun
- Location: test
- Ircher
-
Ircher He / Him / HisWhat A Grand Idea
- Ircher
He / Him / His- What A Grand Idea
- What A Grand Idea
- Posts: 14133
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
Nope!In post 1342, BNL wrote:Wait so dice tags don’t work for 5058? Looks like we need a new way to generate roles for GIM
Maybe:
Original Roll String: 50d500-5050 500-Sided Dice: (114, 221, 486, 184, 369, 80, 140, 99, 155, 300, 218, 264, 247, 114, 284, 106, 445, 350, 280, 270, 109, 163, 383, 43, 111, 401, 344, 408, 290, 382, 307, 186, 349, 307, 58, 196, 374, 152, 294, 405, 458, 219, 117, 238, 351, 313, 229, 499, 36, 455)-50 = 12853
Original Roll String: 1d59-11 59-Sided Dice: (15)-1 = 14Links: User Page | Player Ratings | GTKAS | Test
"Do unto others as you would have them do unto you."- Ircher
-
Ircher He / Him / HisWhat A Grand Idea
- Ircher
He / Him / His- What A Grand Idea
- What A Grand Idea
- Posts: 14133
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
Original Roll String: 2d6*22 6-Sided Dice: (6, 5)*2 = 22
Original Roll String: 1d4*21 4-Sided Dice: (4)*2 = 8Links: User Page | Player Ratings | GTKAS | Test
"Do unto others as you would have them do unto you."- Ircher
-
Ircher He / Him / HisWhat A Grand Idea
- Ircher
He / Him / His- What A Grand Idea
- What A Grand Idea
- Posts: 14133
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
Original Roll String: 1d50(STATIC) 1 50-Sided Dice: (29) = 29
Original Roll String: 1d50*2(STATIC) 1 50-Sided Dice: (29)*2 = 58
Edit:
Original Roll String: 1d50*21 50-Sided Dice: (42)*2 = 84
Original Roll String: 1d50+21 50-Sided Dice: (13)+2 = 15Links: User Page | Player Ratings | GTKAS | Test
"Do unto others as you would have them do unto you."Copyright © MafiaScum. All rights reserved.
- Ircher
- Ircher
- Ircher
- Kison
- BNL
- BNL
- BNL
- BNL
- Kison
- Kison
- MathBlade
- Kison
- Kison
- Kison
- Kison
- Kison
- Kison
- Pine
- Alisae
- Pine
- mastina
- mastina
- Keychain
- Keychain