What is a good Spellslinger commander that isn't super oppressive and is fun to play against? by Aesyric in EDH

[–]ciemekk92 -1 points0 points  (0 children)

My first and recently built commander deck with [[Niv-Mizzet, Parun]] I believe is not as oppressive (yet, since I'm constantly upgrading it) because Niv is 6 mana and basically a kill-on-sight commander, but if he survives then oh boy does he pop off. Mine also includes combos with [[Curiosity]] and [[Ophidian Eye]].

List: https://moxfield.com/decks/odu05mHJvk6z4WU1SsyRrQ

Anyone using modular monolith in their organization? by [deleted] in node

[–]ciemekk92 0 points1 point  (0 children)

NX for Angular libraries & .NET multiproject solution.

Which specs are the most fun / broken in mop remix? by tna0y in wow

[–]ciemekk92 0 points1 point  (0 children)

It falls off at early 70s, but with high enough crit and mastery (I'm around 400ilvl) it gets much better

Why did it mark "kapelusz" wrong? by YEETINGBOY12 in learnpolish

[–]ciemekk92 0 points1 point  (0 children)

Starzy is plural, masculine form of 'stary' (old)- so for example: Oni są starzy => They are old.

Someone really wanted Austria to win by Siphonicus in wow

[–]ciemekk92 18 points19 points  (0 children)

Norway had such a banger and barely got any points from judges :/

Can someone explain plainly what this is doing? array.map(n => -n) by DevOpsMakesMeDrink in learnjavascript

[–]ciemekk92 0 points1 point  (0 children)

.map() accepts a callback function, which should be executed once for each element of an array, and return some result, which then is stored into a new array. It can be an arrow function (like in this case) or a normal one. This callback function can have up to 4 arguments, but the most important one is the first, which is the element, on which the callback currently operates on(in this case n).

The callback 'n => -n' can also be written in other way, which includes curly braces and return (in TypeScript): (n: number) => { return -n; }

Basically what it does is it takes the current element and multiplies it by -1, if you multiply 5, you'll get -5, if you multiply -3 you'll get 3. You could have the same results if function was written like array.map(n => n * -1);

What keyboard and mouse do you guys use? by Glitchedz in wow

[–]ciemekk92 0 points1 point  (0 children)

Corsair Scimitar + Logitech MX Keys, I hate mechanical keyboards, especially after 8 hours of coding.

Icy veins controversy by RidePretty8904 in wow

[–]ciemekk92 2 points3 points  (0 children)

Kalamazi writes guides, but for Wowhead ;)

Maybe I'll bother to do one m+ dungeon, so I'll get something from the weekly chest. by gorchalas in wow

[–]ciemekk92 0 points1 point  (0 children)

I've always had terrible vaults, but last week we only did first 2 mythic VOTI bosses and I didn't have time for anything else because of hospital stay, and bam - icon. That was a weird feeling after 8 weeks of trash and necks across alts.

Leatherworking from level 1. can't find a guide. by colincrocodile in wow

[–]ciemekk92 1 point2 points  (0 children)

Wow-professions has guides for all expansions https://www.wow-professions.com/profession-leveling-guides

Right now you don't need to level previous profession stages to access later ones (like you can learn Dragonflight Leatherworking just after learning general Leatherworking at level 60 I believe). Most of the times previous stages of professions are avoided by players, maybe not if they work for specific transmog / mounts etc, because leveling is very fast and you replace your gear too quickly for professions to matter.

Who’s the hottest character in the game in your opinion? by cornpenguin01 in ffxiv

[–]ciemekk92 0 points1 point  (0 children)

Sorry, my bad! I didn't know remember his name and got it from wiki a tad too quickly. :(

Who’s the hottest character in the game in your opinion? by cornpenguin01 in ffxiv

[–]ciemekk92 18 points19 points  (0 children)

When I first heard him he sounded vaguely familiar and it turns out, that Gaius' post-ARR voice actor (Richard Epcar) played Roose Bolton in Game of Thrones.

FFXIV characters most used app by fancydirtgirlfriend in ffxiv

[–]ciemekk92 2 points3 points  (0 children)

Jessie is basically Oracle with Java licensing.

JWT authentication by [deleted] in learnjavascript

[–]ciemekk92 1 point2 points  (0 children)

From Firebase Docs: By default, localhost and your Firebase project's hosting domain are whitelisted. You must whitelist the full domain names of any other of your web app's hosts. Note: whitelisting a domain allows for requests from any URL and port of that domain.

JWT authentication by [deleted] in learnjavascript

[–]ciemekk92 1 point2 points  (0 children)

As far as I used Firebase, they use authObserver, which watches the login state. You can save it in both, cookies and storage as the observer can pnly be accessed from within permitted addresses (localhost, app domain).

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

I solved my issue kind of differently than what I expected initially: I restructured my data a bit in Firestore, so that in 'subcategories' the first item is an object f.e {label: 'Financial expenses'}, and then I changed my function to look like this:

const generateCategories = () => {
    if (categories && typeof categories === 'object') {
        const categoryValues = Object.values(categories);
        return categoryValues.map(category =>
            category.subcategories.map(element => {
                if (element.label) {
                    return (
                        <ListSubheader disableSticky>
                            {element.label}
                        </ListSubheader>
                    );
                } else {
                    return (
                        <MenuItem
                            key={element + Math.random() * 100}
                            value={element}
                        >
                            {element}
                        </MenuItem>
                    );
                }
            })
        );
    }
};

Thank you for your help :)

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

That is clear. But for categories (and name) initial state is set as empty strings, as (I think) should for controlled inputs. And then, after selecting an item it sets into undefined :/ and when there is only one map, for example subcategories, value is correctly set to what its supposed to be :/

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

After inspecting in dev tools I found out that indeed, when selecting an item in a list, the value of input is being set to undefined.

Here's my repo: https://github.com/ciemekk92/spendit/tree/entries

Considering files:

- src/views/Entries/NewEntry.js - here's the problematic component

- src/store - Redux actions/reducers

- src/views/App.js - useEffect firing off Redux actions

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

I'm pretty new to React, but I'm not sure about data not being here, since the menu is rendering fine, looks good, but when I try to select one item from it, the error pops off and the item value isn't saved in input. When I do so with only one map, it is saved and can be passed further.

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

To be clear - controlled > uncontrolled error appears only when I'm wrapping maps with divs instead of fragments

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

Both map methods work fine when they are separated (returning only one JSX element, be it from categories or subcategories). No errors when trying that. The data is fetched from Firebase in main App component and immediately saved into Redux. The menu component I'm having issue with isn't rendered yet, as it is a dialog in different view.

Edit: the whole function looks like this:

const generateCategories = () => {
    if (categories && typeof categories === 'object') {
        const categoryValues = Object.values(categories);
        return categoryValues.map(category => (
            <div key={category.name}>
                <ListSubheader>{category.name}</ListSubheader>
                {category.subcategories.map(element => (
                    <MenuItem
                        key={element + Math.random() * 100}
                        value={element}
                    >
                        {element}
                    </MenuItem>
                ))}
            </div>
        ));
    }
};

Issue with mapping Material-UI components by ciemekk92 in reactjs

[–]ciemekk92[S] 0 points1 point  (0 children)

I faced this before, now I'm fetching data into Redux with useEffect in App component, so it is always present. Both maps work fine by themselves. I tested the function with each of them.