Google Lighthouse gives a warning that the Module.css files in my DotNetNuke (DNN) modules are render blocking resources

How can I fix my DotNetNuke modules from causing render blocking?

enter image description here

nodes – The Leaflet Map displays in maintenance mode, but when this mode is turned off, the map does not render

Leaflet map displays correctly in node view while in maintenance mode, but when maintenance mode is turned off, the map does not render.

This is not an issue in other views. It only happens in node view.

Thanks for your guidance.

8 – How would I create and render, but not save, an entire menu tree programmatically?

I’m trying to pull a number of links from several services, and combine them into a renderable menu tree:

Source one: pull links A, B and C

Source two: pull links D and E

Source three: pull links F, G, and H

Desired end result: a menu tree object that I can render using core and contrib menu theming functions, structured like:

  • Parent 1
  • Parent 2
  • Parent 3

It seems like this is simple enough to do with a menu that’s been saved to the database, but as the contents of the links from each of these sources may change at any time, I’m looking to build the menu on the fly. I can create menu items out of the data, but I’m having trouble creating and populating a tree with them. All the documentation and posts I’ve been able to find seem to assume you’re loading a tree from a pre-existing menu. I think what I need to do is create a new, empty tree, and add the links to it. Is there a way to do this?

Cuda API to render using Physically Based Rendering (PBR) in OpenGL-ES based project

Thanks for contributing an answer to Game Development Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

web development – Should server return error page or render form again on 400 Bad Request

I have a basic web app (not api) with pages and forms. If a user sends a for e.g. register form with values that cannot be validated, I render the form page again with status 422 indicating where faulty inputs were made.

When the syntax however is wrongly formed, should an error page be displayed to the user with the code 400 Bad request, or should it render the register form page again with a message saying that the request body was malformed (response still 400)?

My thoughts:
Arguments for error page: It seems that there is something wrong with the frontend (client) if it sends POST requests without or with a wrong body. Either the frontend has to be fixed, or the request body was manipulated. This should never happen* if the user sent the form normally and the frontend is not faulty.

*Why I doubt: I’m not 100% sure that it’s impossible that it could be a temporary error of the client or maybe a network issue or something else. If this is plausible, then the user has to be redirected to the form again with the info that the request body was wrong. He should be able to try again.
My related question basically is this: is it possible that in the normal flow of actions the server receives a request with a faulty body?

platformer – Change 3D Render Resolution in Godot

Simpler approach is to set “Stretch Mode” (in project settings under Display -> Window -> Stretch) to “Viewport”.

With “Stretch Mode” set to “Viewport”, the rendered resolution will match the design resolution (in project settings, under Display -> Window -> Size). This may result in enlarged “pixels”.

Adjust “Aspect” (in project settings under Display -> Window -> Stretch) to the behavior you want (e.g. “Keep” will keep the aspect ratio, but may introduce black bars, but “Ignore” may use rectangular “pixels”).

Refer to the article Multiple resolutions for details.


If you want to change the resolution of the Viewport at runtime, you can do the following:

    var root =  get_tree().root;
    root.size = Vector2(100,100);

Note: store the root in a variable, then edit it. Trying to edit it directly will result in a runtime error. This is a bug.

The following code also works:

    $"/root".size = Vector2(100,100);

Which is equivalent to:

    get_node("/root").size = Vector2(100,100);

You can also change the size of the window from code like this:

    OS.window_size = Vector2(100,100);

dnd 5e – Does Fog Cloud render a Beholder’s eyestalks ineffective?

Excellent Idea! (MAYBE there’s a loophole)

First of all, I’m impressed by this strategy! It’s a great idea, and turns the tables on the Beholder extremely well. You might have some trouble targeting the Beholder from within the cloud yourself, but characters normally know where other creatures are during combat (the fact that the Beholder hovers may complicate this, but probably not unless the Beholder takes the Hide action).

There is a small potential loophole I noticed, but it’s not ironclad (more open to interpretation).

Legendary Action & Lair Actions

The Beholder can use its eye rays with its Action during its turn, but must choose targets it can see. However, it can also use its eye rays in two other ways: one is with a Legendary action at the end of another creature’s turn. This legendary action is described as follows:

Eye Ray. The beholder uses one random eye ray.

It can also use lair actions, one of which is the following (MM, p. 27, bold added):

A spectral eye opens in the air at a point within 50 feet of the tyrant. One random eye ray of the tyrant shoots from that eye, which is considered to be an ethereal source, at a target of the tyrant’s choice. The eye then closes and disappears.

Note that neither of these descriptions require the Beholder to see its chosen targets.

It’s likely that the definition of the eye rays given in the Actions section of its description is meant to apply to the other rays as well. But this is ambiguously worded, and open to interpretation. Clearly, some parts of the description of the eye rays must apply (or else there would be no limit to the range of these Eye Rays, for example): exactly how much applies, though, is ultimately up to the DM.

Even if its lair and Legendary actions do not require sight, note that your strategy would pretty much halve the amount of opportunities that the Beholder has to target creatures directly (as opposed to lifting a heavy object above a character while they are in the Antimagic Cone, and dropping it). This makes this strategy an excellent idea in any case.

8 – Programatically render field widget inside dialog

I created a custom email field with a widget that has about 4 form elements inside (textfield, text area, checkbox). The UI becomes very messy when I add this field with unlimited cardinality to a custom entity.

My Requirements
(1) I need to have a link show on main UI (instead of the widget form with the “Add another item”. This link should open up the field widget form inside a dialog when clicked and values entered should be saveable to the entity on which the field is attached.
(2) I will use a table element to show the list of values of this custom field already added to the entity. This table should be updated with the newly added value after I add the new field in the dialog box.

What I Know
I know how to generate a link with “use-ajax” class to display the target in a dialog. What url to put in the link that will show the custom field’s widget form in the dialog is what I’m scratching my head…

Someone pls point me in right direction?
Thanks.

api – Render a component onPress(TouchableOpacity/Button) in React Native

I have a functional that has a fetch call to Wordnik Api and it returns one random word. It works all fine, but am trying to set up a TouchbaleOpacity/Button that will render that component onPress so I can get a random word every time the user clicks on the button. Any help.I have the other component in a separate file, how do call it on button Press?

`export default function HomeScreen({ navigation }) {
  const onPress = () => {
    //return component
  };
  return (
    <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
      <TouchableOpacity onPress={onPress}>
        <Button title="Next word" />
      </TouchableOpacity>
      <Wordnik />
    </View>
  );
}`

reactjs – How to render saved data in a form so I can be edited again?

So I have a Create Order page where you can add a part number, quantity, etc… and then you can click Save where it will then save this order to the backend. I have another page called Saved orders that renders all these saved orders in separate rows in a table with a “Edit” button next to each one. When you click “Edit” it should redirect you to the Create Order page, but instead of being empty, it should be populated with all the information for that order. So if you want you can add more items, change quantity, etc.. How would I do this? I am looking for a conceptual answer.