themes – How do I add a div class to the posts in a filter and not the entire filter element?

I am having some troubles with the Isotope filter gallery, as discussed in my Stackoverflow question here.

As per the first point of the accepted answer, I need to add the class .isotope, to the parent (the .row element) to make it work with URL hashes. Otherwise, it only works when you click on the filter links, as you can try on the live webpage.

Here is the element to which the user told me to add the class:

<div class="isotope row masonry" data-masonry-id="d2546a5a8aed79adf8c0b3b78a16b29f" style="position: relative; height: 969.6px;">

Notice the <div class ="isotope before row masonry bit? That is what I need to add.

However, I can only apply a custom class to the entire Posts element in Elementor. If I do that, it causes the JS to think that it needs to sort the whole grid itself and makes it disappear.

How do I target this specific row element?

Write 1000 word top class article for your blog for $7

Write 1000 word top class article for your blog

Hello there,

Looking for Content write? I am a professional Content writer and working in the indrustry since 2017. While writing content we need to focus on many things like SEO, Focusing keyword, Resourcing the right website etc. In this gig I will cover all things and deliver you an engaging and converting article which can help you to generate leads/customer/prospects. I can writer for a defined audience, if you want. In this Gig I will offer a 1000 word article along with:

1. 100% Unique and Original Content with no grammatical mistakes.

2. Your Subject Topic will be researched well before writing.

3. We will optiimize the article for Search Engine.

4. We will deliver a free schema markup for your article.

Your article will be delivered within 24 hour. You can Revice the article as many time as you want until you satisfied on our work.

Hope you enjoyed the gig

NB: YOU MUST CONTACT ME BEFORE ORDER

Thanks for your time

.

spring – How does class gets injected which implements interface method being called in Java or Groovy code?

I have below working groovy code from Spring framework project:

import org.springframework.oxm.Unmarshaller

public class ItemSearchService  {
    Unmarshaller unmarshaller;
public ItemSearchResponse getObject(InputStream xml) {
    
    ItemSearchResponse its = null;
    try {
        its = (ItemSearchResponse) unmarshaller.unmarshal(new StreamSource(xml));
    } finally {
        }
    return its;
}
}

Unmarshaller.unmarshaller is actually interface method:
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/oxm/Unmarshaller.html

Unmarshaller interface is implemented by several classes.

Who decides which implementing class to inject during runtime and how it decides which class to use?

Does Spring IoC mechanism does this? If so does it pick up one specific implementing class during build time when jar is generated or it does it during run time?

Will above code work outside of Spring in ordinary Java file assuming dependent jars in classpath?

asp.net core – Extension “IntelliSense for CSS class names in HTML” not work on file .cshtml

I create project MVC.Net Core by VSCode and VSCode have extension “IntelliSense for CSS class names in HTML”. The problem is when I type class like “btn btn-primary” IntelliSense not show, I have to press Ctrl+Spacebar everytime when I type class.
How to solve this problem?

8 – Cannot use another class in my class

I am using the following code.

use Drupaldrupal_moodle_integrationServicesCourseService;

// Class method.
public function submitForm(array &$form, FormStateInterface $form_state) {
    $c = new CourseService;
    dump($c->getCoursesList());
}

I got the following error after submitting the form.

ArgumentCountError: Too few arguments to function Drupaldrupal_moodle_integrationServicesCourseService::__construct(), 0 passed in U:UsersadminDocumentsOpenServer5OSPaneldomainsD8-bgippmodulesex_formex_formsrcFormExForm.php on line 51 and exactly 3 expected in Drupaldrupal_moodle_integrationServicesCourseService->__construct() (line 46 of modulescontribdrupal_moodle_integrationsrcServicesCourseService.php).

I don’t understand what that means. In another class,the CourseService constructor is called without arguments.

  /**
   * Construct for Course Controller.
   *
   * @param DrupalCoreEntityEntityTypeManagerInterface $entity_type_manager
   *   The entity type manager.
   * @param Drupaldrupal_moodle_integrationServicesCourseService $courseService
   *   Moodle course service.
   */
  public function __construct(EntityTypeManagerInterface $entity_type_manager, CourseService $courseService) {
    $this->entityTypeManager = $entity_type_manager;
    $this->courseService = $courseService;
  }

How should I use this class?

Zkoss Framework – Erro – Attempt to resolve method: appendChild() on undefined variable or class name

<zscript>
    ArrayList bm_Janelas = new ArrayList();

    EventListener fbOnNotify = new EventListener() {
        public void onEvent(Event fbEvento) {
            tabCad(fbEvento.getData());
        }
    };
    janPrincipal.addEventListener("onNotify",fbOnNotify);
</zscript>

tabCad(“wTestarConexao”);

            </menupopup>
        </menu>
        
    </menupopup>
</menu>
private void tabCad(String arg) {
    <!(CDATA(
                if (janPrincipal.getFellowIfAny("tabBoxPrincipal") == null) {
                    fbTabBox = new Tabbox();
                    fbTabBox.setId("tabBoxPrincipal");
                    fbTabBox.width = "100%";

                    fbTabs = new Tabs();
                    fbTabs.setId("tabsCad");
                    fbTabBox.appendChild(fbTabs);

                    fbTabPanels = new Tabpanels();
                    fbTabPanels.setId("tabpanels");
                    fbTabBox.appendChild(fbTabPanels);

                    janPrincipal.appendChild(fbTabBox);
                    fbTabs.align = "center";
                } else {
                    fbTabs = janPrincipal.getFellow("tabsCad");
                    fbTabPanels =  janPrincipal.getFellow("tabpanels");
                }                       
                
                if (arg.equals("wTestarConexao")) {

                    vTabTesConexao = "tabTesConexao";
                    vZul = "/testaConexao.zul";
                    vLabel ="Testa Conex√£o";

                    if (janPrincipal.getFellowIfAny(vTabTesConexao) == null) {
                        fbTabPanel = new Tabpanel();
                        vCadTesConexao = Executions.createComponents(vZul,null,null);

                        bm_Janelas.add("janTestarConexao");

                        fbTabPanel.appendChild(vCadTesConexao);
                        fbTabPanels.appendChild(fbTabPanel);

                        fbTab = new Tab();
                        fbTab.setLabel(vLabel);
                        fbTab.setId(vTabTesConexao);

                        fbTabs.appendChild(fbTab);
                    }

                    tabTesConexao.selected = true;
                }
    ))>
}

(!(1)(1)(1)

c# – Using (Collections of) Tuples as Class Properties in a Public API

I have a parameter object that represents a single match in a competition, and one of its properties needs to contain that match’s game scores for both players. For example, in a match determined by a best of three games, the scores are 3 to 1, 1 to 2, and 10 to 0. I’m tempted to use tuples:

public class MatchParameters
{
    public IEnumerable<(int Player1Score, int Player2Score)> Scores { get; set; }
}

After some research on the matter, I’ve seen plenty of warnings against requiring the use of tuples in the public-facing side of an API. Do I introduce a MatchScore class/struct and use that as the type argument for Scores? I just really like the convenience of being able to do something like this:

public class Foo
{
    public SomeReturnType Bar()
    {
        var p = new MatchParameters()
        {
            Scores = new() { (3, 1), (1, 2), (10, 0) }
        };
        // More stuff...
    }
}

Though I guess I can see how a dedicated type would provide additional clarity for users of the API. Thoughts?

dnd 5e – Which class has access to the best ‘stay at home’ adventuring methods?

Any character with simulacrum, or better yet, wish.

At 20th level, you are a paragon among mortal creatures, being able to contend with fierce monsters on your own, and some of the most powerful enemies when in a group.

As such, a simulacrum (which is just a slightly weaker version of yourself) is the ideal companion to send with your party if your are sanctum-bound:

You shape an illusory duplicate of one beast or humanoid that is within range for the entire Casting time of the spell… the illusion uses all the statistics of the creature it duplicates.

This simulacrum lets you loan most of the abilities that you would contribute if you were physically present with two exceptions:

it has half the creature’s hit point

…and…

The simulacrum lacks the ability to learn or become more powerful, so it never increases its level or other abilities, nor can it regain expended spell slots.

Its inability to use spell slots is the most crippling, but you can get around this by using wish to create a new simulacrum each day:

The basic use of (wish) is to duplicate any other spell of 8th level or lower.

…and then having the simulacrum cast teleport to return to your party. This will dismiss the former, now spent simulacrum and provide your party with a brand new illusion of yourself with fresh spell slots (minus a 9th-level and 7th level one).

You will also need to have your simulacrum cast plane shift and then teleport if the party is on another plane of existence. This would cost the simulacrum’s 8th level slot as well. You could avoid expending the simulacrum’s 7th and 8th level slot if the character is willing to ferry the simulacrum to the party which would take less than a minute outside of the sanctum.

Which classes?

So which classes get access to these spells?

Simulacrum is a wizard spell, so you would need to be a wizard or a bard who can gain it through the Magical Secrets class feature:

By 10th level, you have plundered magical knowledge from a wide spectrum of disciplines. Choose two spells from any classes, including this one. A spell you choose must be of a level you can cast, as shown on the Bard table, or a cantrip.

(…)

You learn two additional spells from any classes at 14th level and again at 18th level.

Wish and teleport are available to sorcerers and wizards (and bards once again using Magical Secrets for wish). A cleric of the Arcane Domain could also gain one or both of these spells through the Arcane Mastery class feature:

At 17th level, you choose four spells from the wizard spell list, one from each of the following levels: 6th, 7th, 8th, and 9th. You add them to your list of domain spells. Like your other domain spells, they are always prepared and count as cleric spells for you.

In summary, these classes:

  • Bard
  • Cleric (Arcana Domain)
  • Sorcerer
  • Wizard

note: Sorcerer doesn’t get easy access to plane shift if that is necessary, and have no summoning spells which is mentioned later in this answer

note 2: Wizards have the most diverse access to summoning spells, so are likely the best choice, but clerics and bards still get enough to where they are not completely outshined

Magic Items

First, you want enough magic items to gear up your simulacrum. Preferably including a handful of staves or similar items that can regain charges if you aren’t using the wish and teleport option for when the simulacrum runs out of spell slots. If you are worried about the half-health, you could also send the simulacrum with an amulet of health to bolster its survivability.

Secondly, if on the same plane of existence, you can also help from your sanctum by using a crystal ball which affords unlimited scrying:

The typical crystal ball, a very rare item, is about 6 inches in diameter. While touching it, you can cast the scrying spell (save DC 17) with it.

Not only would this let a wished simulacrum see the location they are teleporting to (to avoid a mishap), you can also provide key intel to your party (either through sending for either class option except sorcerer, or by using a special variant of the crystal ball, see below).

If you have access to legendary magic items, each crystal ball variant could be extremely useful. One would let you attempt to read the minds of enemies you are scrying on, one would let you communicate with the party telepathically, and the other would provide truesight for your sensor.

Next, if you are using wish for fresh simulacra each day, get yourself a helm of teleportation. This way you can save your simulacrum from having to use their 7th level spell slot to get to the party. Make sure to tell the expended simulacrum to bring the helm back at the end of the day. Some days you won’t be able to do this, as you have to wait for the helm to regain slots (since it only regains 1d3 per dawn), but the extra power behind that 7th level slot is nothing to scoff at.

Other summons

Unfortunately, no summons other than found familiars and created homunculi (for wizards) and steeds (for bards with Magical Secrets) last more than an hour. To send more powerful summons, you will need to cast planar binding to extend the duration of the summoning spells. With this, the only real limitation is the cost since each casting of planar binding costs 1000 gp. Your best summons with this technique are:

  • conjure celestial for clerics to summon a couatl
  • conjure elemental for wizards to summon any of these elementals
  • infernal calling for wizards to summon any of these devils
  • summon greater demon for wizards to summon any of these demons

Bards can learn any one of these spells, or conjure fey, through Magical Secrets (assuming they used their other options for wish, teleport, and plane shift), but sorcerers don’t get access to any of them.

It is worth noting that any demon summoned will not be dismissed immediately after 24 hours but instead turn hostile for a few rounds. However, your party should be able to deal with them as they aren’t particularly high CR.

It is highly beneficial to cast planar binding at 9th level. Not only does this let you exert control over more summons, it saves money on any individual summon (since each planar binding costs 1000 gp). With time to prepare you could get your ideal set of summons bound for a year. Just send them with your simulacrum and the party gets a large power bump.

If you are using the wish and teleport strategy, your simulacrum could even bring 8 chosen summons per day.

Another good, yet costly, idea is to create new summons each day that are customized to the specific challenges that the party is facing. You could add to your team of summons using 7th or 8th level spell slots (since wish is taking up your 9th level slot) at the cost of 1000 gp per summon.

design – Java: Splitting a large unit test class

The project (Java/Spring) I currently work on has a rather large unit-test class for one of its services : more than 1000 lines, several Nested class (one per big functionality), some tests without a Nested class, …

Finding this file rather difficult to read, and to manage (a modification in the service, and you have to take time to find the corrects tests to fix/update), I proposed to split the class to have one test file per Nested Class, each one linked to a “principal” test file, which will be managing the Mock & the tests without Nested Class. All the tests files would be put into a specific package.

I am wondering if this would be a good thing to do? or if it was something to avoid to do ?

I hope i was clear enough.
Have a nice day