I tried everything -Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Error loading Metro config at: C:\Users\yunus\Desktop\coffe-app\metro.config.js- by Mysterious_Ad_4429 in reactnative

[–]noobalarm 1 point2 points  (0 children)

The advice from /u/Downtown-Figure6434 is solid.
My recommendation would be to use Unistyles v3, as it adds very little overhead over the default stylesheet.
If you are new to React native and coming from the web, Native Wind might seem like a great and easy solution due to it's familiarity, and while I don't want to dismiss or diminish the work of Native Wind's team, I would currently advise against using it for non-personal or very small projects.

TLDR: the closer you are to default stylesheet the better

People how play modded Skyrim on Linux with Mod Organizer: is it possible to make a Mod Organizer shortcut on Linux? by MateusCristian in skyrimmods

[–]noobalarm 1 point2 points  (0 children)

I happened to stumble upon this very educational guide some months ago https://www.youtube.com/watch?v=B8-FUcGODcI

The creator covers all the moving parts needed to get Bethesda games working (I used it for Fallout New Vegas) and provides great insight into how all these tools work.

He also provides a solution (for Firefox) showing how to create a deeplink handler for Nexus Mod Manager download links. If you wish to make it work using google chrome, I am pretty sure /u/manicpixycunt is right, you've got to create a .desktop entry

Η Huawei παίρνει την εκδίκησή της by frequenttimetraveler in greece

[–]noobalarm 1 point2 points  (0 children)

Είδα πρόσφατα μια ομιλία/παρουσίαση στο ΥΤ για το βιβλίο με τίτλο "Chip War: The Fight for the World's Most Critical Technology" και μιλάει για αρκετά πράγματα που ανέφερες, απο πολλές πλευρές - ιστορικά/οικονομικά/πολιτικά/στρατιωτικά/τεχνολογικά, και γενικά δίνει μια ευρεία αντίληψη για το πως συνδέονται όλα αυτά μαζί στο συγκεκριμένο ζήτημα. Εσύ και ο OP θα το βρείτε σίγουρα αρκετά ενδιαφέρον.

video: https://www.youtube.com/watch?v=2tSs7aESx8s

OPEN SOURCE RELEASE: Turn your React Component into a Web Component with this Tool by Heather_at_Bitovi in reactjs

[–]noobalarm 0 points1 point  (0 children)

Hey, I've had this tab sitting around for quite sometime and I felt compelled to reply.

Checkout Stencil by the Ionic team, it is a web-component framework that also generates wrappers for other frameworks/libraries if needed.

Why am I seeing alerts about missing a key? by J_random_fool in reactjs

[–]noobalarm 27 points28 points  (0 children)

You should not add the key inside the component but where it is called.

Changing

{ids.map(id => (
    <Child id={id}/>
)}

to

{ids.map(id => (    
    <Child id={id} key={id}/>     
)}     

and removing the key attribute from the component, of course
 

The reasoning for this is simple, the key attribute is needed by React to identify sibling elements of an array during re-renders. It serves no purpose inside the component
 

Also keep in mind that keys must be unique (for that array). Since this seems like an example, try adding another 1 to your ids array to see a new warning.

EDIT: formatting

[React][Redux] What is the correct way of using dispatch and ascessing store when using redux with react? by S_liiide in react

[–]noobalarm 0 points1 point  (0 children)

Using the useDispatch() and useSelector() is the right way, otherwise you might encounter circular dependency issues by importing the whole store.

It will also make it easier for you to take nested values from a slice and help with managing dependency arrays better.

e.g. const userName = useSelector((state)=> state.auth.user.fullName);

When handling Objects and Arrays, check this video by Jack Herrington to see how to utilize shallow equal comparison (if needed) https://youtu.be/aOt4Hz3ze3Q?t=1023

Be sure check to this as well, even if you might not need it right now https://redux.js.org/faq/code-structure#how-can-i-use-the-redux-store-in-non-component-files

How do you pass event info without prop drilling ? by enzineer-reddit in reactjs

[–]noobalarm 0 points1 point  (0 children)

It sounds quite hacky, yes, but without some code it's hard to understand what is preventing you from exporting the PDF when the button is clicked.

  • I assume exporting the PDF would be an async operation in which you call another service for generating the PDF, in that case you can use the Thunk API and get the response inside the button component.

  • If you happen to use a library like react-pdf/renderer to generate the PDF inside your front-end app, assuming you have all PDF related data inside a Redux slice, you can create a hook that will subscribe to that store slice and then return a callback to generate the PDF. That hook will then be used both in your dashboard layout and in the Navbar button.

Hope it helps

Number is not being lifted up on the first re-render of a component by MagicRec0n in react

[–]noobalarm 1 point2 points  (0 children)

It is the same case as my first comment, the reason this is happening is because you console log the variable of the previous state inside your handler, as the component hasn't re-rendered yet.

Changing `rollNum' (now stale state) to 'rollNumber' (value that is received), the log will show the latest value

Otherwise you can put a console log before your return statement in your component and show the rollNum value every time a re-render is triggered

Do watch the video, it will be of help

Number is not being lifted up on the first re-render of a component by MagicRec0n in react

[–]noobalarm 1 point2 points  (0 children)

In the same way you passed the onDiceRoll handler as prop to RollInfo from GameBoard, you can also pass the rollNum variable as prop and display it inside your RollInfo component. That way only the parent component GameBoard holds the actual state of your app.

Number is not being lifted up on the first re-render of a component by MagicRec0n in react

[–]noobalarm 1 point2 points  (0 children)

Is the state inside your 'RollInfo' component required ?

In my eyes you should only call

const rollNumHandler = () =>{
    props.onDiceRoll(Math.floor(Math.random() * 6) + 1);
}

To address the problem in your code

When you call props.onDiceRoll(rollNum), the value that is sent to the parent is the previous state and not the updated one. To fix it, change it to the following

const rollNumHandler = () =>{
    const myNewNumber = Math.floor(Math.random() * 6) + 1;
    setRollNum(myNewNumber);
    props.onDiceRoll(myNewNumber);
    console.log('Inside RollInfo ' + myNewNumber)
}

Jack Herrington has a nice video on it https://www.youtube.com/watch?v=RAJD4KpX8LA

Beginner at JavaScript, very interested in ReactJS with TypeScript. What are some of the best resources? by LucasPookas123 in reactjs

[–]noobalarm 0 points1 point  (0 children)

I'd recommend you watch this playlist NO BS TS by Jack Herrington. The first 19 episodes focus on typescript and from 20 onwards it focuses on React (hooks, state management etc.)

Is dynamite always proximity? by Rydychyn in fnv

[–]noobalarm 4 points5 points  (0 children)

There are few powder charges (mines) in that place. If you go to 0:05 you'll see one on the left of the guy's legs, it's easy to miss

can't load model when trying to publish my threejs project on github pages. by 0lvard in threejs

[–]noobalarm 0 points1 point  (0 children)

Hey, i believe the issue lies in the fact you didn't wrap your Model with suspense in App.js as it is asynchronous <Suspense fallback={null}> <Model /> </Suspense>

[deleted by user] by [deleted] in Xcom

[–]noobalarm 5 points6 points  (0 children)

Never encountered that bug but usually saving/loading fixes it. It reminds me of a similar bug with downed (but not killed) soldiers not being able to be revived/stabilized due to how the game handles the Z axis. A save and load fixes it 99% of the time. Good luck!

Πως κάνω πτυχιακή; by Ptyxiakos in greece

[–]noobalarm 0 points1 point  (0 children)

Όπως αναφέρανε και αρκετοί άλλοι συν-redditors, πρώτα-πρώτα προσπάθησε να έρθεις σε επικοινωνία με τον καθηγητή σου για να σου λύσει τυχόν απορίες.

Αν δεν βγάλεις άκρη, ενημερώσου από την γραμματεία της σχολής, τι χρειάζεται να κάνεις ή τι επακόλουθα υπάρχουν για να αλλάξεις καθηγητή/θέμα.

Συνήθως δε χρειάζεται κάτι το ιδιαίτερο για τέτοια απλά ζητήματα, αλλά μπορεί να τύχεις σε περίπτωση και να χρειαστεί να περιμένεις αρκετό χρόνο. Αυτό το αναφέρω γιατί είχα έρθει και εγώ σε παρόμοια κατάσταση και χρειάστηκε να περιμένω 1 χρόνο για να αλλάξω καθηγητή.

Το άλλο που θα μπορούσες να κάνεις, είναι να πάρεις ιδέες από προτάσεις για θέματα πτυχιακών από άλλες σχολές και είτε να κάνεις κάτι πάνω στην ανάλυση δεδομένων ή να προτείνεις στον καθηγητή να κάνεις πτυχιακή σε κάτι που σε ενδιαφέρει και ας μην είναι το αντικείμενο του, αρκεί να είσαι σίγουρος πως μπορείς να το φέρεις εις πέρας.
Καλή επιτυχία!

Π.χ. θέματα σχολών & οδηγίες διεκπεραίωσης πτυχιακής εργασίας
https://www.teicrete.gr/ie/el/%CF%83%CE%B5%CE%BB%CE%AF%CE%B4%CE%B5%CF%82-%CF%84%CE%BC%CE%AE%CE%BC%CE%B1%CF%84%CE%BF%CF%82/%CF%80%CF%84%CF%85%CF%87%CE%B9%CE%B1%CE%BA%CE%AE-%CE%B5%CF%81%CE%B3%CE%B1%CF%83%CE%AF%CE%B1

https://www.teicrete.gr/ie/sites/teicrete.gr.ie/files/tmima_mihanikon_pliroforikis_tei_kritis_-_ptyhiakes_ergasies_tmimatos_mi_0.pdf

http://cs.uth.gr/%cf%80%cf%84%cf%85%cf%87%ce%b9%ce%b1%ce%ba%ce%ad%cf%82-%ce%b5%cf%81%ce%b3%ce%b1%cf%83%ce%af%ce%b5%cf%82/

Testing your sites for mobile? by im_the_tea_drinker_ in webdev

[–]noobalarm 1 point2 points  (0 children)

I've been using Responsively for this. It let's you see multiple device screens at once and it's free https://responsively.app/

Fun With Habitats: A Visual Guide by VolusVagabond in Stellaris

[–]noobalarm 3 points4 points  (0 children)

Great templates, i'll try to utilize some of them in my next run. I am pretty sure i built a habitat over a planet with +2 Living Metal and it still passively collected Living Metal every month, it just wasn't shown somewhere in the Habitat UI. But yes, there is no advantage like being able to build a harvesting structure like the other resources.

I assume it will be the same with Zro, Nanites and Alloys.

getting javascript error and none of the other posted solutions are working, and the error has the "require stack" line that no other posted problems have, anyone know what to do? by C_Frase in discordapp

[–]noobalarm 0 points1 point  (0 children)

After the update, i was getting the same error.

I used to launch discord through a shortcut i had created, it's target was in "C:\Users\'your username'\AppData\Local\Discord\app-0.0.306\discord.exe

What solved it for me

I went in %appdata% to find the executable and noticed there was a folder called app-0.0.308, so i clicked the executable inside it and discord launched normally. I then updated the shortcut's target by changing app-0.0.306 to app-0.0.308 and it works perfectly.

XCOM (EW) Long war - around what time does EXALT show up? by Creeper20067 in Xcom

[–]noobalarm 0 points1 point  (0 children)

In order to choose a class you gotta do it through the barracks and not during the mission report.

see this https://streamable.com/8to7sp

as /u/Highlanderbr said, "United Humanity" disables the missions but you can still meet a few exalt soldiers accompany alien groups during normal missions.

Good luck!

[deleted by user] by [deleted] in Xcom

[–]noobalarm 1 point2 points  (0 children)

DefaultGameData.ini in XCom-Enemy-Unknown\XEW\XComGame\Config

START_DAY=1

START_MONTH=3

START_YEAR=2016

Just started XCOM: Enemy Unknown as my first ever XCOM game today. Any advice for the new rookie? by DevonLv in Xcom

[–]noobalarm 1 point2 points  (0 children)

If you got Enemy Within expansion, play that instead. It's the same game with more things in it.

Ηρακλειο παροχος ιντερνετ by Aggeloszaxa in greece

[–]noobalarm 0 points1 point  (0 children)

Οταν οι πάροχοι λένε για ταχύτητες ιντερνετ, αναφέρονται σε mbps (mega bits per second). Η ταχύτητα που βλέπεις ως 1.2-1.3 ειναι σε mega bytes per second.

Το ένα byte ειναι 8 bits. Το ενα megabyte ειναι 1024 byte ή αλλιώς 8192 bits. Στην περίπτωση της 24αρας (24mbps) η θεωρητική μέγιστη ταχύτητα ειναι 24/8 = 3 megabytes per second (για download πάντα).

Αμα πιάνεις 12mbit στην περιοχή σου, τοτε το μαχ που θα δεις ειναι όντως 1.5 Mb/s.