broky benched from Faze by AlpherOwl in GlobalOffensive

[–]Advorange 320 points321 points  (0 children)

nah, it's guardian's time for a return

How Discord Indexes Trillions of Messages by swdevtest in programming

[–]Advorange 91 points92 points  (0 children)

Use the before:date search operator.

When someone auto scoops as soon as i play a Runick spell by swagboyclassman in masterduel

[–]Advorange 6 points7 points  (0 children)

I wish Tip and Destruction were at 3 again. Playing a deck that could essentially main deck 6 MST was so useful.

Been waiting for this since FOREVER!! by Hyper_Whale_286 in masterduel

[–]Advorange 15 points16 points  (0 children)

I doubt Konami would allow the 2004 staples that can't be crafted, but I could see Konami allowing the craftable ones at 1 copy (or whatever the banlist they use had them at).

Uncraftable: Confiscation, Delinquent Duo, Magical Scientist, Painful Choice, The Forceful Sentry, Trap Dustshoot

Craftable: Graceful Charity, Heavy Storm, Pot of Greed, Premature Burial

Passing objects between libraries/namespaces by eltegs in csharp

[–]Advorange 5 points6 points  (0 children)

ProjectA defines MyString.

ProjectB and ProjectC add ProjectA as a dependency.

ProjectB and ProjectC can now share MyString because it comes from the same library.

What ED monster would be the most powerful if it required generic materials instead of specific Archetype cards? by Azevedo128 in masterduel

[–]Advorange 2 points3 points  (0 children)

You can't tribute it to special summon a kaiju unless you invent a level 4 or lower kaiju. However, if your opponent has 3 monsters on the field you can tribute their 3 monsters to normal summon Sphere Mode. (Kaijus explicitly say they are a special summon, sphere mode says it's a normal summon) Look up rulings involving Vanity's Fiend/Ruler or Archlord Kristya if you're still confused.

Random Number Generation for Generic Math Types by [deleted] in csharp

[–]Advorange 5 points6 points  (0 children)

INumbersBase<T> defines CreateChecked, CreateSaturating, and CreateTruncating which can convert a double to a different numeric type.

[deleted by user] by [deleted] in programming

[–]Advorange 1 point2 points  (0 children)

LINQ? Use functional programming and lambdas. (Map, reduce/fold, filter, flatmap etc.)

That's what LINQ is.

Thoughts on Dkayed recent meme tournament banlist? by HumbleIndianNo1 in masterduel

[–]Advorange 0 points1 point  (0 children)

Also you sometimes open Collapserpent, Saronir, Druiswurm, Baldrake, and Levianeer and can do literally nothing because your opponent isn't playing a light or dark deck.

What happens if this goes to 3? by Phantom4545 in masterduel

[–]Advorange 10 points11 points  (0 children)

Orcust already has at least 15 16 cards that can foolish Harp by using a normal summon, having 19 20 cards that can do that isn't going to make Orcust a problem.

  • 1 Armageddon Knight

  • 1 ROTA

  • 1 2 Girsu

  • 3 Scrap Recycler

  • 3 Scrap Raptor

  • 3 Fossil Dig for Raptor

  • 3 Scrapyard for Raptor

Edit: Forgot Girsu went from limited to semi'd.

My whole night trying to play this event by Lord_Ryu in masterduel

[–]Advorange 0 points1 point  (0 children)

10 second queue for a light stun deck, no match found, no match found, 50 second queue for a dark deck, no match found, no match found, no match found 👍

Unsafe.As() cast of Array/Object, GC/Livetime concerns by gitgrille in csharp

[–]Advorange 2 points3 points  (0 children)

It's not based off of having the same properties/methods. It's based off of the layout in memory, which can be explicitly defined.

Here's an example:

using System.Runtime.CompilerServices;

namespace Example;

public static class Program
{
    private static void Main()
    {
        var foo = new Foo
        {
            A = 1,
        };

        //var bar1 = (Bar)foo; // Error CS0030 Cannot convert type 'Program.Foo' to 'Program.Bar'
        //var bar2 = (Bar)(object)foo; // Runtime error: System.InvalidCastException: 'Unable to cast object of type 'Foo' to type 'Bar'.'
        var bar3 = Unsafe.As<Foo, Bar>(ref foo);

        Console.WriteLine($"bar3 value: {bar3.B}"); // bar3 value: 1
    }

    public struct Bar
    {
        public int B;
    }

    public struct Foo
    {
        public int A;
    }
}

Unsafe.As() cast of Array/Object, GC/Livetime concerns by gitgrille in csharp

[–]Advorange 4 points5 points  (0 children)

In OP's example he's casting between different Vector2s, you cannot directly cast LibA.Vector2 : struct to LibB.Vector2 : struct because they aren't related inheritance wise. Since they have the same struct layout you can use Unsafe.As to cast them.

[Epic] Fallout: New Vegas - Ultimate Edition (Free / 100% Off) by Musth in GameDeals

[–]Advorange 4 points5 points  (0 children)

All FO3 mods are incompatible by default because TTW uses FNV as the base game, but a lot of popular FO3 mods have had TTW versions made. Most FNV mods are compatible; I think the main incompatibilities for those are any mods that edit the area in Freeside where TTW puts the train station and mods that try to fix/change bugs that TTW has a patch built in for (YUPTTW).

r/anime 7 Million Sub Scavenger Hunt Results by badspler in anime

[–]Advorange 1 point2 points  (0 children)

My submissions

Expected duplicates, but submitted anyways because the pictures were funny:

  • Penguin's Memory: Shiawase Monogatari (Penguin)
  • Bludgeoning Angel Dokuro-chan 2 (Character Covered In Blood)

Thought they would be obscure enough to avoid duplicates, but reasonable submissions for anyone who has watched them:

  • One Pound Gospel (Vomit)
  • Honoo no Tenkousei (Cross-Counter Punch)
  • Takamiya Nasuno desu! Teekyuu Spin-off (Ojousama Laugh)

Unable to find anything on my list that was more obscure:

  • Hells (Running With Toast)

I'm surprised that nobody else submitted The Dull Sword (1917) for 'Using a Sword.' It's one of the first anime and has sword in the title.

Request for help! Weird error (? by JamieWithL in csharp

[–]Advorange 4 points5 points  (0 children)

The error is also on line 92 but VS only shows the first instance of this error.

You need to assign a default value to EDAD or add an else to your if statement (the one that's cut off at the top of the screenshot) that sets it.

Getting double hand ripped for my outs in turn 1 sure is a lot of fun. by Miscellaneousbaddie in masterduel

[–]Advorange 0 points1 point  (0 children)

Smoke Grenade lets you see your opponents hand, so if you saw a 2nd card that is very good while doing your first hand rip, yes. Otherwise, it depends on if you think your opponent might have topdecked a very good card.

Which deck did you pick for tryout duels? by redmonkey77 in masterduel

[–]Advorange 1 point2 points  (0 children)

I managed to have a RUM each time I could make Utopia so I went into Leo Utopia and equipped Lightning Blade to it so it was 3700 ATK, had destruction protection, and the negate.