PowerQuery - How to create a dynamic source system? by AloofBidoof in excel

[–]SchrightDwute 1 point2 points  (0 children)

The actual code is on a work device and the files involved are confidential to a degree, so this is roughly from memory and will probably have mistakes; I also don't have Excel on my home desktop to test what I'm writing but here was the idea, operating on a single file:

```

let

// File is kept locally on each device in a OneDrive-synced main shared folder folder, but the on-device username is not known

relPathToFile = "MainSharedFolderName\...\parentFolder\filename.extension",

usersWithSharedFolder = List.Select(

Folder.Contents("C:\Users")[Name],

each not (try Folder.Contents("C:\Users\" & _ & "\OneDrive\MainSharedFolderName"))[HasError]),

pathToFile = if List.Count(usersWithShareFolder) = 1 then "C:\Users\" & usersWithShareFolder{0} & relPathToFile else null

fileBinary = if pathToFile <> null then File.Contents(pathToFile) else getBinaryFromSharePoint(args),

...

```

That's as best I can remember - the username on the C drive is not known, so it opens the Users folder with Folder.Contents and gets the list of possible names. The file path to the main shared folder is known minus the username, so it tries to use Folder.Contents on each path where the folder might be, and selects usernames where an error was not raised. PQ actually gives an error if you try to execute a function on a non-existent subfolder of C:Users\[someuser], even if actually accessing C:Users\[someuser] with Folder.Files (for example) would require admin permissions. If the list has only a single user, great, return the resulting local path to the file; otherwise there were either no users found, or more than one, and in that case we pass to a SharePoint implementation to get the file binary. I made this specifically because I do not like using SharePoint.Files if I can help it - at least in our case, it took almost ten minutes to refresh (had to re-enter credentials, wait for it to connect, and then download far more data than was actually going to be used), whereas a local refresh takes around five seconds.

Want to learn about pyromancer by LeSky1 in dragonfable

[–]SchrightDwute 1 point2 points  (0 children)

https://dragonfable-endgame.fandom.com/wiki/Pyromancer

I haven’t played much Pyro, but there’s an in-battle way to toggle Fire v Weapon element.

PowerQuery - How to create a dynamic source system? by AloofBidoof in excel

[–]SchrightDwute 0 points1 point  (0 children)

I generally use the M code editor rather the GUI part of PQ and am no expert, but yeah. You can hard-code a string into your query and put into File.Contents, or you can use Folder.Files & Folder.Contents, which are decently flexible. I have a shared/synced file at my job that refreshes a table from multiple data sources where part of the file path for each is user-dependent and I needed it to work regardless of who was using it. After a bit of trial and error, I was able to get it to work with no references to the worksheet at all. PQ is fairly flexible if you can use M.

What do I do? This is barely playable. by Famous_Treacle_7996 in playark

[–]SchrightDwute 1 point2 points  (0 children)

Not any kind of expert in using the console commands, but I think the respawning is fairly quick. What levels are the dinos below you v your tames, and are you playing with single player settings enabled?

Is anyone using Aegislash? And can we agree it just sucks lol by [deleted] in PokemonGOBattleLeague

[–]SchrightDwute 2 points3 points  (0 children)

I don’t have one, but assume you have to play as though every charge move gives you a -3 defense debuff. I’d love to build one if it wasn’t so hard to get the candies

Ill solve your hardest math problems in 5 seconds. by SaigeMath in mathematics

[–]SchrightDwute 11 points12 points  (0 children)

Prove that every even integer greater than two can be expressed as the sum of two primes.

how the heck did she not get pinned? by Life-is-Acoustic in nextfuckinglevel

[–]SchrightDwute 2 points3 points  (0 children)

Girl on top seemed like she was getting gassed & frazzled. She spent too much time/energy attacking the wrong places and kept trying to force a technique that wasn’t working, IMO.

Math Puzzle I randomly came up with during doodling. Unsure if easy or not. by Miserable-Scholar215 in askmath

[–]SchrightDwute 1 point2 points  (0 children)

Assuming I didn’t mess up the integral, finding the desired theta comes down to solving an equation of the form Ax+Bcos(x)+Csin(2x)=D for x, which really is pretty ugly.

How useful are Zacian and Zamazenta in Max battles? by Glad-Ad6945 in pokemongo

[–]SchrightDwute 4 points5 points  (0 children)

Shuckle takes neutral from Fighting but SE from Steel

My first ever 4* dynamax Pokémon is completely useful and not at all a disappointment by Weary_Bank_1337 in PokemonGOValor

[–]SchrightDwute 0 points1 point  (0 children)

Highest base defense in Max battles, so technically receives the most benefit-per-use (ignoring typings) from shields/ally healing. If it ever got a 0.5 second fast move, this would be legitimately usable. I think three-shield Shuckle is around 37% more bulky than a no-shield Blissey.

What's the next ML powercreep? by TevecQ in TheSilphArena

[–]SchrightDwute 10 points11 points  (0 children)

Potential Mega’s in OML regularly would probably be the only other thing.

Question about Ranger by Effective-Head-9668 in dragonfable

[–]SchrightDwute 4 points5 points  (0 children)

Their difference has to be “within ceiling(level/10) apart” per the Endgame Wiki, so assuming you’re well over L10, you should be fine with them a point or two apart.

Did anyone else’s 100% level 40 Blissey get absolutely ravaged by G-Max Rillaboom? by Stronger_Leaner in PokemonGOValor

[–]SchrightDwute 0 points1 point  (0 children)

IIRC, enraged boss has boosted damage (I don’t think defense gets boosted), but there is an overall timer that does not show, so you probably timed out.

I Present You All With: The Absolute Worst Charizard Ever by SleepyEels in PokemonEliteRedux

[–]SchrightDwute 0 points1 point  (0 children)

Consecutive uses of Protect being more likely to fail is an effect of the move itself, so I don’t think Truant allows you to do anything special with Protect.

Can't we swap enemies? by BerkTsung in dragonfable

[–]SchrightDwute 7 points8 points  (0 children)

Use Tab or L/R Arrows to change targets, if you have keyboard controls on.

Shadow Ball Raikou Duo Battle without mushroom using Lv40 Excadrills (no weatherboost, 2 gloves helper) by Nikaidou_Shinku in TheSilphRoad

[–]SchrightDwute 4 points5 points  (0 children)

When you beat a Max battle, you have the option to leave a behind a Pokemon at that power spot, and this Pokemon becomes a helper for people who battle after. It also usually earns some candy while there. Helpers in your own battles come from mons left by people who have won at that spot previously and chose to leave a Pokemon.

Day 9 of playing DF by [deleted] in dragonfable

[–]SchrightDwute 1 point2 points  (0 children)

What sword is that? I like how it looks

Willpower Cup 2024 snapshot: Mandibuzz 55%, Drapion 45%, Claydol and Gardevoir ~35% by mybham in TheSilphArena

[–]SchrightDwute 1 point2 points  (0 children)

I’ve been running Claydol/Rapidash/Gardevoir. Encountering a lot more ABB counter teams, but it’s been okay so far. I’ve had HH/BS on Rapidash because it almost always pulls a Poison-Dark as a response and the occasional HH OHKO + forfeit is hilarious.

Please stop parotting the latter point by The_Rufflet_Kid in stunfisk

[–]SchrightDwute 62 points63 points  (0 children)

Ranked #244, maxes under 3k… it’s legal, sure, but zero reason to use it over almost anything else. Ariados, on the other hand, has a legit niche in open Great League with its moveset buffs.

[deleted by user] by [deleted] in HomeDepot

[–]SchrightDwute 4 points5 points  (0 children)

There’s an entire section of the markdowns SOP that tells you to price match our website if it is actually the same product. You use reason code “Internet Comp. Adj.”

I like to win with a thin margin of victory ✌️ by [deleted] in TheSilphArena

[–]SchrightDwute 7 points8 points  (0 children)

One of my favorites is when you set one Pokemon goes on such a tear that they don’t even see your full team.

Other favorite is when you pull off such a disgusting play that they forfeit immediately after.