Nmfc code lookup

For those dedicated to practicing cold approach pickup.

2018.02.22 07:17 For those dedicated to practicing cold approach pickup.

“Pickup” consists of the mindsets, techniques, tactics, and strategies that a man can employ to meet, attract, and create romantic relationships with women. This subreddit is about the technical skills involved in approaching women cold (no prior social connection or bond) in various scenarios, getting them attracted to you, and engaging in various forms of romantic relationship with them (ranging from one-night stands to marriage, plus everything in between/lateral).
[link]


2015.10.08 17:02 aplumafreak500 Wiimmfi

A subreddit for the official Nintendo WFC replacement server, Wiimmfi.
[link]


2014.11.30 23:13 MGTS For all things bike related pre 1990

A place for pictures, articles, and discussion of bikes and parts pre 1990.
[link]


2023.06.10 06:05 AlvaroCSLearner C$50 Finance Error: "Expected to find select field with name "symbol", but none found"

I don't why this error is happening. I complete everything and I think all of it is Ok. I don't know what else i have to do to fix it. In my input field of sell.html it has everything even the name:symbol in the first input tag. What do you think is the error? I will leave the HTML codes and my app.py code. It'd be appreciated if you help me. Thanks!
Check50: https://submit.cs50.io/check50/c32d9038f344cb930b7cae76539e2b5b95208942
app.py code: ```Python import os import datetime
from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.security import check_password_hash, generate_password_hash
from helpers import apology, login_required, lookup, usd

Configure application

app = Flask(name)

Custom filter

app.jinja_env.filters["usd"] = usd

Configure session to use filesystem (instead of signed cookies)

app.config["SESSION_PERMANENT"] = False app.config["SESSION_TYPE"] = "filesystem" Session(app)

Configure CS50 Library to use SQLite database

db = SQL("sqlite:///finance.db")
invalid_chars = ["'", ";"]
@app.after_request def after_request(response): """Ensure responses aren't cached""" response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" response.headers["Expires"] = 0 response.headers["Pragma"] = "no-cache" return response
@app.route("/") @login_required def index(): """Show portfolio of stocks""" stocks = [] GrandTotal = 0 user_cash = db.execute("SELECT users.cash FROM users WHERE users.id = ?", session["user_id"]) if user_cash: cash = user_cash[0]['cash'] else: cash = 0 user_stocks = db.execute("SELECT stocks.symbol FROM stocks JOIN user_stocks ON user_stocks.stock_id = stocks.id JOIN users ON users.id = user_stocks.user_id WHERE users.id = ?;", session["user_id"]) if user_stocks: for stock in user_stocks: stockdata = lookup(stock['symbol']) db.execute("UPDATE stocks SET price = ? WHERE symbol = ?;", stockdata['price'], stockdata['symbol']) stocks = db.execute("SELECT SUM(user_stocks.shares) AS Total_Shares, stocks.symbol, stocks.price, stocks.price * SUM(user_stocks.shares) AS Total_Holding_Value FROM user_stocks JOIN stocks ON stocks.id = user_stocks.stock_id JOIN users ON users.id = user_stocks.user_id WHERE users.id = ? GROUP BY (user_stocks.stock_id);", session["user_id"]) gtotal = db.execute("SELECT user_stocks.cost * SUM(user_stocks.shares) AS Total_Grand FROM user_stocks JOIN users ON users.id = user_stocks.user_id WHERE users.id = ? GROUP BY (stock_id);", session["user_id"]) if gtotal: for stock in gtotal: GrandTotal += stock['Total_Grand'] GrandTotal = GrandTotal + cash return render_template("index.html", stocks=stocks, cash=cash, GrandTotal=GrandTotal)
@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy shares of stock""" # If the request.method is POST: if request.method == 'POST': # Getting the current time of the bought current_time = datetime.datetime.now().strftime("%H:%M:%S") # Getting the current date of the sell current_date = datetime.date.today().strftime("%d/%m/%Y") # Getting the symbol and the shares values from the input of "buy.html" symbol = request.form.get("symbol") shares = str(request.form.get("shares")) # Checking valid input for shares if shares.count('.'): return apology("Should be an integer", 400) elif any(char.isalpha() for char in shares): return apology("Should be an integer entirely", 400) elif shares.startswith('-'): return apology("Amount of shares must be positive",400) else: shares = int(shares) # If there's no symbol return an apology if not symbol: return apology("Must provide a Stock Symbol", 400) # Getting the stock values stockdict = lookup(symbol) # If the stock doesn't exits: if not stockdict: return apology("Stock Symbol doesn't exits", 400) # If the number of shares is not positive: if shares < 0: return apology("Number of shares must be positive", 400) # Getting the cash of the current user cash = db.execute("SELECT cash FROM users WHERE id = ?", session["user_id"]) # Getting the current price of the current stock symbol: price = str(stockdict['price']) if price.count('.'): price = float(price) symbol_stock = stockdict['symbol'] # Comparing the cash with the total price of the stock: if cash[0]['cash'] < (int(price)shares): return apology("Cannot afford stock", 400) # If everything is OK get all the symbols that the stocks table currently has stocks = db.execute("SELECT symbol FROM stocks;") # If there's no the wanted stock insert it into the stocks table otherwise update to the current price: if not stocks or not any(symbol_stock in stock.values() for stock in stocks): db.execute("INSERT INTO stocks (symbol, price) VALUES (?, ?)", symbol_stock, price) else: db.execute("UPDATE stocks SET price = ? WHERE symbol = ?;", price, symbol_stock) # Getting the stock's id: stock_id = db.execute("SELECT id FROM stocks WHERE symbol = ?", symbol_stock) # Inserting into the user_stocks table the user_id, the wanted stock_id and the cost of the total stock: db.execute("INSERT INTO user_stocks (user_id, stock_id, cost, shares, transaction_type, time, date) VALUES (?, ?, ?, ?, ?, ?, ?)", session['user_id'], stock_id[0]['id'], price, shares, 'BUY', current_time, current_date) # Updating the user's cash with the cost of the total stock: db.execute("UPDATE users SET cash = ? WHERE id = ?", (cash[0]['cash'] - (priceshares)), session['user_id']) return redirect("/") else: return render_template("buy.html")
@app.route("/history") @login_required def history(): """Show history of transactions""" history = db.execute("SELECT stocks.symbol, user_stocks.cost, user_stocks.shares, user_stocks.transaction_type, user_stocks.time, user_stocks.date FROM user_stocks JOIN stocks ON stocks.id = user_stocks.stock_id JOIN users ON users.id = user_stocks.user_id WHERE users.id = ?", session['user_id']) if not history: return apology("You don't have transactions", 400) return render_template("history.html", history=history)
@app.route("/login", methods=["GET", "POST"]) def login(): """Log user in"""
# Forget any user_id session.clear() # User reached route via POST (as by submitting a form via POST) if request.method == "POST": # Ensure username was submitted if not request.form.get("username"): return apology("Must Provide Username", 400) # Ensure password was submitted elif not request.form.get("password"): return apology("Must Provide Password", 400) # Query database for username rows = db.execute("SELECT * FROM users WHERE username = ?", request.form.get("username")) # Ensure username exists and password is correct if len(rows) != 1 or not check_password_hash(rows[0]["hash"], request.form.get("password")): return apology("Invalid Username and/or Password", 400) # Remember which user has logged in session["user_id"] = rows[0]["id"] # Redirect user to home page return redirect("/") # User reached route via GET (as by clicking a link or via redirect) else: return render_template("login.html") 
@app.route("/logout") def logout(): """Log user out"""
# Forget any user_id session.clear() # Redirect user to login form return redirect("/") 
@app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): """Get stock quote.""" if request.method == 'POST': symbol = request.form.get("symbol") if not symbol: return apology("Enter a symbol", 400) lookup_dict = lookup(symbol) if not lookup_dict: return apology("Invalid Symbol", 400) return render_template("quoted.html", stock=lookup_dict) else: return render_template("quote.html")
@app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" has_symbol = False has_lower = False has_upper = False has_number = False requirements_meeted = False if request.method == 'POST': username = request.form.get("username") password = request.form.get("password") confirmation = request.form.get("confirmation")
 usernames = db.execute("SELECT username FROM users;") if not username or username == '': return apology("Username not avaliable", 400) for char in username: if char in invalid_chars: return apology("Username has not appropiate characters", 400) for dict in usernames: if username == dict['username']: return apology("Username already exists", 400) if not password or password == '' or not confirmation: return apology("Password not avaliable", 400) if password != confirmation or confirmation == '': return apology("Passwords doesn't match", 400) for character in password: if character in invalid_chars: return apology("Password has not appropiate characters", 400) for char in password: if not char.isalnum() and not char.isspace(): has_symbol = True if char.islower(): has_lower = True if char.isupper(): has_upper = True if char.isdigit(): has_number = True if has_symbol and has_lower and has_upper and has_number: requirements_meeted = True if requirements_meeted == True: db.execute("INSERT INTO users (username, hash) VALUES (?, ?);", username, generate_password_hash(confirmation)) return redirect("/login") else: return apology("Password don't meet the requirements. Passwords must have symbols, digits, lower and upper letters", 400) else: return render_template("register.html") 
@app.route("/sell", methods=["GET", "POST"]) @login_required def sell(): """Sell shares of stock""" # If the request method is POST: if request.method == "POST": # Getting the current time of the sell current_time = datetime.datetime.now().strftime("%H:%M:%S") # Getting the current date of the sell current_date = datetime.date.today().strftime("%d/%m/%Y") # Getting the selled symbol symbol = request.form.get("symbol") if not symbol: return apology("Must enter a symbol", 400) # Getting the stock data: stock = lookup(symbol) # If there's no stock return an apology if not stock: return apology("Symbol doesn't exits", 400) # Getting the stocks symbols of the user stocks_symbol = db.execute("SELECT symbol FROM stocks JOIN user_stocks ON user_stocks.stock_id = stocks.id JOIN users ON user_stocks.user_id = users.id WHERE users.id = ?;", session["user_id"]) if stocks_symbol: # Getting all the symbols of the user as a list symbols = [each_symbol for stock_symbol in stocks_symbol for each_symbol in stock_symbol.values()] # If the symbol is not in the list return an apology if not symbol in symbols: return apology("Symbol not acquired", 400) else: return apology("Must buy stocks", 400) # Getting the shares that we want to sell shares = str(request.form.get("shares")) # Checking valid input for shares if shares.count('.'): return apology("Should be an integer", 400) elif any(char.isalpha() for char in shares): return apology("Should be an integer entirely", 400) elif shares.startswith('-'): return apology("Amount of shares must be positive",400) else: shares = int(shares) # If the number of shares is not positive or the number of shares is greater than the number of acquired shares return an apology if shares < 0: return apology("Shares must be positive", 400) if shares == 0: return apology("Amount of shares must be greater than 0", 400) # Getting the total shares of the selled symbol shares_symbol = db.execute("SELECT SUM(user_stocks.shares) AS Total_Shares, stocks.symbol FROM user_stocks JOIN users ON user_stocks.user_id = users.id JOIN stocks ON user_stocks.stock_id = stocks.id WHERE users.id = ? AND stocks.symbol = ? GROUP BY (user_stocks.stock_id);", session["user_id"], symbol) # Checking if the user has the appropiate amount of shares if shares > int(shares_symbol[0]['Total_Shares']): return apology("Amount of shares not acquired", 400) # Getting the current price of the stock Price_Symbol = db.execute("SELECT price FROM stocks WHERE symbol = ?;", symbol) # Getting the total dollars amount of the selled stock Total_AmountSelled = Price_Symbol[0]['price'] * shares # Getting the current cash of the user cash = db.execute("SELECT cash FROM users WHERE users.id = ?;", session["user_id"]) # Updating the cash of the user: current_cash = cash[0]['cash'] + Total_AmountSelled db.execute("UPDATE users SET cash = ? WHERE users.id = ?;", current_cash, session["user_id"]) # Getting the current shares of the stock symbol_id = db.execute("SELECT id FROM stocks WHERE symbol = ?;", symbol) Total_Shares = (shares * -1) # Updating the shares of the user: db.execute("INSERT INTO user_stocks (user_id, stock_id, cost, shares, transaction_type, time, date) VALUES (?, ?, ?, ?, ?, ?, ?);",session["user_id"], symbol_id[0]['id'], stock['price'], Total_Shares, "SELL", current_time, current_date) return redirect("/") else: return render_template("sell.html")
@app.route("/buycash", methods=["GET", "POST"]) @login_required def buycash(): if request.method == 'POST': cash = int(request.form.get("cashamount")) if cash > 10000 or cash < 1: return apology("Amount of cash invalid, must be positive and less than 10000", 400) user_cash = db.execute("SELECT cash FROM users WHERE users.id = ?", session["user_id"]) total_cash = user_cash[0]['cash'] + cash if total_cash > 20000: returned_amount = total_cash - 20000 total_cash = total_cash - returned_amount if user_cash[0]['cash'] == 20000: return apology("Cannot buy more cash", 400) db.execute("UPDATE users SET cash = ? WHERE users.id = ?;", total_cash, session["user_id"]) return redirect("/") else: return render_template("buycash.html")
@app.route("/changepassword", methods=["GET", "POST"]) def changepassword(): if request.method == 'POST': username = request.form.get("username") new_password = request.form.get("new_password") new_password_confirmation = request.form.get("new_password_repeated")
 usernamesdict = db.execute("SELECT username FROM users;") usernames = [username for dictionary in usernamesdict for username in dictionary.values()] if username not in usernames: return apology("Username not registered", 400) for char in username: if char in invalid_chars: return apology("Username has not appropiate characters", 400) if new_password != new_password_confirmation: return apology("Password not matched", 400) if not new_password or new_password == '': return apology("Password not avaliable", 400) for char in new_password: if char in invalid_chars: return apology("Password has not appropiate characters", 400) user_id = db.execute("SELECT users.id FROM users WHERE users.username = ?", username) db.execute("UPDATE users SET hash = ? WHERE users.id = ?;", generate_password_hash(new_password_confirmation), user_id[0]['id']) return redirect("/login") else: return render_template("changepassword.html") 
```
sell.html code: ```HTML {% extends "layout.html" %}
{% block title %} Sell {% endblock %}
{% block main %}
{% endblock %} ```
index.html code: ```HTML {% extends "layout.html" %}
{% block title %} Home {% endblock %}
{% block main %}
Cash Grand Total
{{ cash usd }} {{ GrandTotal usd }}
{% for stock in stocks %} {% if stock.Total_Shares != 0 %} {% endif %} {% endfor %}
Symbol Shares Price Total Value
{{ stock.symbol }} {{ stock.Total_Shares }} {{ "{:.2f}".format(stock.price) }} {{ "{:.2f}".format(stock.Total_Holding_Value) }}
{% endblock %} ````
submitted by AlvaroCSLearner to cs50 [link] [comments]


2023.06.10 04:00 cheech_chong_95372 Game only crashing when I create a new world

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 2023-06-09 18:47:29
Description: mouseClicked event handler

java.lang.RuntimeException: Mixin transformation of net.minecraft.class_31 failed
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray([KnotClassDelegate.java:427](https://KnotClassDelegate.java:427)) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass([KnotClassDelegate.java:323](https://KnotClassDelegate.java:323)) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass([KnotClassDelegate.java:218](https://KnotClassDelegate.java:218)) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass([KnotClassLoader.java:112](https://KnotClassLoader.java:112)) at java.base/java.lang.ClassLoader.loadClass([ClassLoader.java:520](https://ClassLoader.java:520)) at net.minecraft.class\_525.method\_41847(class\_525.java:468) at net.minecraft.class\_525.method\_45683(class\_525.java:451) at net.minecraft.class\_7196.method\_41892(class\_7196.java:303) at net.minecraft.class\_525.method\_2736(class\_525.java:451) at net.minecraft.class\_525.method\_19922(class\_525.java:404) at net.minecraft.class\_4185.method\_25306(class\_4185.java:94) at net.minecraft.class\_4264.method\_25348(class\_4264.java:56) at net.minecraft.class\_339.method\_25402(class\_339.java:189) at net.minecraft.class\_4069.method\_25402(class\_4069.java:38) at net.minecraft.class\_312.method\_1611(class\_312.java:98) at net.minecraft.class\_437.method\_25412(class\_437.java:409) at net.minecraft.class\_312.method\_1601(class\_312.java:98) at net.minecraft.class\_312.method\_22686(class\_312.java:169) at net.minecraft.class\_1255.execute(class\_1255.java:102) at net.minecraft.class\_312.method\_22684(class\_312.java:169) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback([GLFWMouseButtonCallbackI.java:43](https://GLFWMouseButtonCallbackI.java:43)) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout([GLFW.java:3474](https://GLFW.java:3474)) at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS([RenderSystem.java:237](https://RenderSystem.java:237)) at net.minecraft.class\_310.method\_1523(class\_310.java:1244) at net.minecraft.class\_310.method\_1514(class\_310.java:802) at net.minecraft.client.main.Main.main([Main.java:250](https://Main.java:250)) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch([MinecraftGameProvider.java:468](https://MinecraftGameProvider.java:468)) at net.fabricmc.loader.impl.launch.knot.Knot.launch([Knot.java:74](https://Knot.java:74)) at net.fabricmc.loader.impl.launch.knot.KnotClient.main([KnotClient.java:23](https://KnotClient.java:23)) 
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins([MixinProcessor.java:392](https://MixinProcessor.java:392)) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass([MixinTransformer.java:234](https://MixinTransformer.java:234)) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes([MixinTransformer.java:202](https://MixinTransformer.java:202)) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray([KnotClassDelegate.java:422](https://KnotClassDelegate.java:422)) ... 29 more 
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.cardinal_components_level.json:common.MixinLevelProperties from mod cardinal-components-level] from phase [DEFAULT] in config [mixins.cardinal_components_level.json] FAILED during APPLY
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError([MixinProcessor.java:638](https://MixinProcessor.java:638)) at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError([MixinProcessor.java:589](https://MixinProcessor.java:589)) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins([MixinProcessor.java:379](https://MixinProcessor.java:379)) ... 32 more 
Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: u/Inject annotation on initComponents could not find any targets matching 'Lnet/minecraft/class_31;(Lcom/mojang/datafixers/DataFixer;ILnet/minecraft/class_2487;ZIIIFJJIIIZIZZZLnet/minecraft/class_2784$class_5200;IILjava/util/UUID;Ljava/util/Set;Ljava/util/Set;Lnet/minecraft/class_236;Lnet/minecraft/class_2487;Lnet/minecraft/class_2487;Lnet/minecraft/class_1940;Lnet/minecraft/class_5285;Lnet/minecraft/class_31$class_7729;Lcom/mojang/serialization/Lifecycle;)V' in net.minecraft.class_31. Using refmap cardinal-components-level-refmap.json [PREINJECT Applicator Phase -> mixins.cardinal_components_level.json:common.MixinLevelProperties from mod cardinal-components-level -> Prepare Injections -> -> handler$zcl000$cardinal-components-level$initComponents(Lcom/mojang/datafixers/DataFixer;ILnet/minecraft/class_2487;ZIIIFJJIIIZIZZZLnet/minecraft/class_2784$class_5200;IILjava/util/UUID;Ljava/util/Set;Ljava/util/Set;Lnet/minecraft/class_236;Lnet/minecraft/class_2487;Lnet/minecraft/class_2487;Lnet/minecraft/class_1940;Lnet/minecraft/class_5285;Lnet/minecraft/class_31$class_7729;Lcom/mojang/serialization/Lifecycle;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.validateTargets([InjectionInfo.java:656](https://InjectionInfo.java:656)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findTargets([InjectionInfo.java:587](https://InjectionInfo.java:587)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation([InjectionInfo.java:330](https://InjectionInfo.java:330)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.([InjectionInfo.java:316](https://InjectionInfo.java:316)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.([InjectionInfo.java:308](https://InjectionInfo.java:308)) at org.spongepowered.asm.mixin.injection.struct.CallbackInjectionInfo.([CallbackInjectionInfo.java:46](https://CallbackInjectionInfo.java:46)) at jdk.internal.reflect.GeneratedConstructorAccessor60.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance([DelegatingConstructorAccessorImpl.java:45](https://DelegatingConstructorAccessorImpl.java:45)) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller([Constructor.java:499](https://Constructor.java:499)) at java.base/java.lang.reflect.Constructor.newInstance([Constructor.java:480](https://Constructor.java:480)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo$InjectorEntry.create([InjectionInfo.java:149](https://InjectionInfo.java:149)) at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse([InjectionInfo.java:708](https://InjectionInfo.java:708)) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections([MixinTargetContext.java:1329](https://MixinTargetContext.java:1329)) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections([MixinApplicatorStandard.java:1053](https://MixinApplicatorStandard.java:1053)) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin([MixinApplicatorStandard.java:395](https://MixinApplicatorStandard.java:395)) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply([MixinApplicatorStandard.java:327](https://MixinApplicatorStandard.java:327)) at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply([TargetClassContext.java:421](https://TargetClassContext.java:421)) at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins([TargetClassContext.java:403](https://TargetClassContext.java:403)) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins([MixinProcessor.java:363](https://MixinProcessor.java:363)) ... 32 more 


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray([KnotClassDelegate.java:427](https://KnotClassDelegate.java:427)) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass([KnotClassDelegate.java:323](https://KnotClassDelegate.java:323)) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass([KnotClassDelegate.java:218](https://KnotClassDelegate.java:218)) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass([KnotClassLoader.java:112](https://KnotClassLoader.java:112)) at java.base/java.lang.ClassLoader.loadClass([ClassLoader.java:520](https://ClassLoader.java:520)) at net.minecraft.class\_525.method\_41847(class\_525.java:468) at net.minecraft.class\_525.method\_45683(class\_525.java:451) at net.minecraft.class\_7196.method\_41892(class\_7196.java:303) at net.minecraft.class\_525.method\_2736(class\_525.java:451) at net.minecraft.class\_525.method\_19922(class\_525.java:404) at net.minecraft.class\_4185.method\_25306(class\_4185.java:94) at net.minecraft.class\_4264.method\_25348(class\_4264.java:56) at net.minecraft.class\_339.method\_25402(class\_339.java:189) at net.minecraft.class\_4069.method\_25402(class\_4069.java:38) at net.minecraft.class\_312.method\_1611(class\_312.java:98) at net.minecraft.class\_437.method\_25412(class\_437.java:409) at net.minecraft.class\_312.method\_1601(class\_312.java:98) at net.minecraft.class\_312.method\_22686(class\_312.java:169) at net.minecraft.class\_1255.execute(class\_1255.java:102) at net.minecraft.class\_312.method\_22684(class\_312.java:169) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback([GLFWMouseButtonCallbackI.java:43](https://GLFWMouseButtonCallbackI.java:43)) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout([GLFW.java:3474](https://GLFW.java:3474)) 

-- Affected screen --
Details:
Screen name: net.minecraft.class\_525 
Stacktrace:
at net.minecraft.class\_437.method\_25412(class\_437.java:409) at net.minecraft.class\_312.method\_1601(class\_312.java:98) at net.minecraft.class\_312.method\_22686(class\_312.java:169) at net.minecraft.class\_1255.execute(class\_1255.java:102) at net.minecraft.class\_312.method\_22684(class\_312.java:169) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback([GLFWMouseButtonCallbackI.java:43](https://GLFWMouseButtonCallbackI.java:43)) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout([GLFW.java:3474](https://GLFW.java:3474)) at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS([RenderSystem.java:237](https://RenderSystem.java:237)) at net.minecraft.class\_310.method\_1523(class\_310.java:1244) at net.minecraft.class\_310.method\_1514(class\_310.java:802) at net.minecraft.client.main.Main.main([Main.java:250](https://Main.java:250)) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch([MinecraftGameProvider.java:468](https://MinecraftGameProvider.java:468)) at net.fabricmc.loader.impl.launch.knot.Knot.launch([Knot.java:74](https://Knot.java:74)) at net.fabricmc.loader.impl.launch.knot.KnotClient.main([KnotClient.java:23](https://KnotClient.java:23)) 

-- Last reload --
Details:
Reload number: 1 Reload reason: initial Finished: Yes Packs: vanilla, fabric 
Stacktrace:
at net.minecraft.class\_6360.method\_36565(class\_6360.java:49) at net.minecraft.class\_310.method\_1587(class\_310.java:2413) at net.minecraft.class\_310.method\_1514(class\_310.java:821) at net.minecraft.client.main.Main.main([Main.java:250](https://Main.java:250)) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch([MinecraftGameProvider.java:468](https://MinecraftGameProvider.java:468)) at net.fabricmc.loader.impl.launch.knot.Knot.launch([Knot.java:74](https://Knot.java:74)) at net.fabricmc.loader.impl.launch.knot.KnotClient.main([KnotClient.java:23](https://KnotClient.java:23)) 

-- System Details --
Details:
Minecraft Version: 1.20 Minecraft Version ID: 1.20 Operating System: Windows 11 (amd64) version 10.0 Java Version: 17.0.3, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 376412792 bytes (358 MiB) / 973078528 bytes (928 MiB) up to 5368709120 bytes (5120 MiB) CPUs: 8 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx Identifier: AuthenticAMD Family 23 Model 24 Stepping 1 Microarchitecture: Zen / Zen+ Frequency (GHz): 2.10 Number of physical packages: 1 Number of physical CPUs: 4 Number of logical CPUs: 8 Graphics card #0 name: AMD Radeon(TM) Graphics Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002) Graphics card #0 VRAM (MB): 2048.00 Graphics card #0 deviceId: 0x15d8 Graphics card #0 versionInfo: DriverVersion=31.0.12028.2 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 3.20 Memory slot #0 type: DDR4 Virtual memory max (MB): 16270.26 Virtual memory used (MB): 11442.71 Swap memory total (MB): 10240.00 Swap memory used (MB): 1138.84 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance\_javaw.exe\_minecraft.exe.heapdump -Xss1M -Xmx5G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Fabric Mods: additionallanterns: Additional Lanterns 1.0.4-a advancednetherite: Advanced Netherite 2.0.1-1.20 audioplayer: AudioPlayer 1.20-1.5.2 fabric-api-base: Fabric API Base 0.4.29+b04edc7a27 fabric-command-api-v2: Fabric Command API (v2) 2.2.11+b3afc78b27 bebooks: Better Enchanted Books 1.4.3 cardinal-components: Cardinal Components API 5.2.0 cardinal-components-base: Cardinal Components API (base) 5.2.0 cardinal-components-block: Cardinal Components API (blocks) 5.2.0 cardinal-components-chunk: Cardinal Components API (chunks) 5.2.0 cardinal-components-entity: Cardinal Components API (entities) 5.2.0 cardinal-components-item: Cardinal Components API (items) 5.2.0 cardinal-components-level: Cardinal Components API (world saves) 5.2.0 cardinal-components-scoreboard: Cardinal Components API (scoreboard) 5.2.0 cardinal-components-world: Cardinal Components API (worlds) 5.2.0 cloth-config: Cloth Config v11 11.0.99 cloth-basic-math: cloth-basic-math 0.6.1 collective: Collective 6.56 connectedglass: Connected Glass 1.1.6 creativeonepunch: Creative One-Punch 1.3 dashloader: DashLoader 5.0.0-beta.1+1.20.0 com\_github\_luben\_zstd-jni: zstd-jni 1.5.2-2 dev\_notalpha\_taski: Taski 2.1.0 dev\_quantumfusion\_hyphen: Hyphen 0.4.0-rc.3 dyeallthethings: Dye All The Things 1.3.0-1.20 fabric-api: Fabric API 0.83.0+1.20 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.34+4d8536c927 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.10+b3afc78b27 fabric-block-api-v1: Fabric Block API (v1) 1.0.9+e022e5d127 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.39+b3afc78b27 fabric-client-tags-api-v1: Fabric Client Tags 1.0.20+b3afc78b27 fabric-command-api-v1: Fabric Command API (v1) 1.2.32+f71b366f27 fabric-commands-v0: Fabric Commands (v0) 0.2.49+df3654b327 fabric-containers-v0: Fabric Containers (v0) 0.1.61+df3654b327 fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.7+b3afc78b27 fabric-convention-tags-v1: Fabric Convention Tags 1.5.3+b3afc78b27 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.18+aeb40ebe27 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.1.10+b3afc78b27 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.51+b3afc78b27 fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.21+b3afc78b27 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.0+b3afc78b27 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.61+df3654b327 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.38+b04edc7a27 fabric-item-api-v1: Fabric Item API (v1) 2.1.26+b3afc78b27 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.7+b3afc78b27 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.36+fb8d95da27 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.34+df3654b327 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.20+b3afc78b27 fabric-loot-api-v2: Fabric Loot API (v2) 1.1.37+b3afc78b27 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.41+9e7660c627 fabric-message-api-v1: Fabric Message API (v1) 5.1.6+b3afc78b27 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.47+b3afc78b27 fabric-models-v0: Fabric Models (v0) 0.3.35+b3afc78b27 fabric-networking-api-v1: Fabric Networking API (v1) 1.3.8+b3afc78b27 fabric-networking-v0: Fabric Networking (v0) 0.3.48+df3654b327 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.0.6+b3afc78b27 fabric-particles-v1: Fabric Particles (v1) 1.0.28+b3afc78b27 fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.18+b3afc78b27 fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.2.6+b3afc78b27 fabric-renderer-api-v1: Fabric Renderer API (v1) 3.0.1+b3afc78b27 fabric-renderer-indigo: Fabric Renderer - Indigo 1.3.1+b3afc78b27 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.44+df3654b327 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.33+b3afc78b27 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.26+b3afc78b27 fabric-rendering-v0: Fabric Rendering (v0) 1.1.47+df3654b327 fabric-rendering-v1: Fabric Rendering (v1) 3.0.6+b3afc78b27 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.4+b3afc78b27 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.7+f7923f6d27 fabric-screen-api-v1: Fabric Screen API (v1) 2.0.6+b3afc78b27 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.27+b3afc78b27 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.12+b3afc78b27 fabric-transfer-api-v1: Fabric Transfer API (v1) 3.2.2+b3afc78b27 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.2.0+b3afc78b27 fabricloader: Fabric Loader 0.14.21 geckolib: Geckolib 4.2 com\_eliotlash\_mclib\_mclib: mclib 20 immediatelyfast: ImmediatelyFast 1.1.13 net\_lenni0451\_reflect: Reflect 1.1.0 jade: Jade 11.0.3 jamlib: JamLib 0.6.0+1.20 java: OpenJDK 64-Bit Server VM 17 midnightlib: MidnightLib 1.4.0 minecraft: Minecraft 1.20 modmenu: Mod Menu 7.0.1 reeses-sodium-options: Reese's Sodium Options 1.5.1+mc1.20-build.74 resourcefullib: Resourceful Lib 2.0.5 com\_teamresourceful\_yabn: yabn 1.0.3 rightclickharvest: Right Click Harvest 3.2.2+1.19.x-1.20-fabric smartbrainlib: SmartBrainLib 1.11 sodium: Sodium 0.4.10+build.27 stackrefill: Stack Refill 4.0 starterkit: Starter Kit 5.2 supermartijn642corelib: SuperMartijn642's Core Lib 1.1.9 terrestria: Terrestria 6.0.0 biolith: Biolith 1.0.0-alpha.4 
com_github_llamalad7_mixinextras: MixinExtras 0.2.0-beta.5
 terraform-biome-remapper-api-v1: Terraform Biome Remapper API (v1) 7.0.0-beta.1 terraform-config-api-v1: Terraform Config API (v1) 7.0.0-beta.1 terraform-dirt-api-v1: Terraform Dirt API (v1) 7.0.0-beta.1 terraform-shapes-api-v1: Terraform Shapes API (v1) 7.0.0-beta.1 terraform-surfaces-api-v1: Terraform Surfaces API (v1) 7.0.0-beta.1 terraform-tree-api-v1: Terraform Tree API (v1) 7.0.0-beta.1 terraform-wood-api-v1: Terraform Wood API (v1) 7.0.0-beta.1 terrestria-client: Terrestria: Client 6.0.0 terrestria-common: Terrestria: Common 6.0.0 terrestria-worldgen: Terrestria: World Generation 6.0.0 travelersbackpack: Traveler's Backpack 1.20-9.0.1 treeharvester: Tree Harvester 8.1 trinkets: Trinkets 3.7.0 varietyaquatic: Variety Aquatic [1.0.4.2](https://1.0.4.2) voicechat: Simple Voice Chat 1.20-2.4.8 xaerominimap: Xaero's Minimap 23.4.4 xaeroworldmap: Xaero's World Map 1.30.3 Launched Version: fabric-loader-0.14.21-1.20 Backend library: LWJGL version 3.3.1 SNAPSHOT Backend API: AMD Radeon(TM) Graphics GL version 3.2.0 Core Profile Context 22.20.28.220830, ATI Technologies Inc. Window size: 854x480 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fabric' Type: Client (map\_client.txt) Graphics mode: fast Resource Packs: vanilla, fabric Current Language: en\_us CPU: 8x AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx 
submitted by cheech_chong_95372 to fabricmc [link] [comments]


2023.06.09 23:53 Forsaken_Good7372 Which would be better to get between the two?

Which would be better to get between the two? submitted by Forsaken_Good7372 to AskMechanics [link] [comments]


2023.06.09 23:52 Forsaken_Good7372 Which would be better to get between the two?

Which would be better to get between the two? submitted by Forsaken_Good7372 to MechanicAdvice [link] [comments]


2023.06.09 19:01 AlvaroCSLearner Can't check until a frown turns upside down

Hi, I am currently at Week 9 doing the CS50 finance PSET, I have completed all the requirements of the problem but when I run Check50, It showed me a lot of problems one in particular is "can't check until a frown turns upside down" and I don't know why and what does that error mean?

Please, could you help me? It'd be appreciated :)

Check50:

https://submit.cs50.io/check50/b5fbcc57afacfbba32eef7bad97838e687ba7742

App.py code:

```Python import os import datetime
from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.security import check_password_hash, generate_password_hash
from helpers import apology, login_required, lookup, usd

Configure application

app = Flask(name)

Custom filter

app.jinja_env.filters["usd"] = usd

Configure session to use filesystem (instead of signed cookies)

app.config["SESSION_PERMANENT"] = False app.config["SESSION_TYPE"] = "filesystem" Session(app)

Configure CS50 Library to use SQLite database

db = SQL("sqlite:///finance.db")
invalid_chars = ["'", ";"]
@app.after_request def after_request(response): """Ensure responses aren't cached""" response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" response.headers["Expires"] = 0 response.headers["Pragma"] = "no-cache" return response
@app.route("/") @login_required def index(): """Show portfolio of stocks""" GrandTotal = 0 user_stocks = db.execute("SELECT symbol FROM stocks;") for stock in user_stocks: stockdata = lookup(stock['symbol']) db.execute("UPDATE stocks SET price = ? WHERE symbol = ?;", stockdata['price'], stockdata['symbol']) stocks = db.execute("SELECT SUM(user_stocks.shares) AS Total_Shares, stocks.symbol, stocks.price, stocks.price * SUM(user_stocks.shares) AS Total_Holding_Value FROM user_stocks JOIN stocks ON stocks.id = user_stocks.stock_id JOIN users ON users.id = user_stocks.user_id WHERE users.id = ? GROUP BY (user_stocks.stock_id);", session["user_id"]) user_cash = db.execute("SELECT users.cash FROM users WHERE users.id = ?", session["user_id"]) gtotal = db.execute("SELECT user_stocks.cost * SUM(user_stocks.shares) AS Total_Grand FROM user_stocks JOIN users ON users.id = user_stocks.user_id WHERE users.id = ? GROUP BY (stock_id);", session["user_id"]) if user_cash: cash = int(user_cash[0]['cash']) else: cash = 0 if gtotal: for stock in gtotal: GrandTotal += stock['Total_Grand'] GrandTotal = GrandTotal + cash else: GrandTotal = 0 return render_template("index.html", stocks=stocks, cash=usd(cash), GrandTotal=usd(GrandTotal))
@app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): """Buy shares of stock""" # If the request.method is POST: if request.method == 'POST': # Getting the current time of the bought current_time = datetime.datetime.now().strftime("%H:%M:%S") # Getting the current date of the sell current_date = datetime.date.today().strftime("%d/%m/%Y") # Getting the symbol and the shares values from the input of "buy.html" symbol = request.form.get("symbol") shares = request.form.get("shares") # Checking valid input for shares if shares.count('.'): return apology("Should be an integer", 400) elif any(char.isalpha() for char in shares): return apology("Should be an integer entirely", 400) elif shares.startswith('-'): return apology("Amount of shares must be positive",400) else: shares = int(shares) # If there's no symbol return an apology if not symbol: return apology("Must provide a Stock Symbol", 400) # Getting the stock values stockdict = lookup(symbol) # If the stock doesn't exits: if not stockdict: return apology("Stock Symbol doesn't exits", 400) # If the number of shares is not positive: if shares < 0: return apology("Number of shares must be positive", 400) # Getting the cash of the current user cash = db.execute("SELECT cash FROM users WHERE id = ?", session["user_id"]) # Getting the current price of the current stock symbol: price = stockdict['price'] symbol_stock = stockdict['symbol'] # Comparing the cash with the total price of the stock: if cash[0]['cash'] < (priceshares): return apology("Cannot afford stock", 400) # If everything is OK get all the symbols that the stocks table currently has stocks = db.execute("SELECT symbol FROM stocks;") # If there's no the wanted stock insert it into the stocks table otherwise update to the current price: if not stocks or not any(symbol_stock in stock.values() for stock in stocks): db.execute("INSERT INTO stocks (symbol, price) VALUES (?, ?)", symbol_stock, price) # Getting the stock's id: stock_id = db.execute("SELECT id FROM stocks WHERE symbol = ?", symbol_stock) # Inserting into the user_stocks table the user_id, the wanted stock_id and the cost of the total stock: db.execute("INSERT INTO user_stocks (user_id, stock_id, cost, shares, transaction_type, time, date) VALUES (?, ?, ?, ?, ?, ?, ?)", session['user_id'], stock_id[0]['id'], price, shares, 'BUY', current_time, current_date) # Updating the user's cash with the cost of the total stock: db.execute("UPDATE users SET cash = ? WHERE id = ?", (cash[0]['cash'] - (priceshares)), session['user_id']) return redirect("/") else: return render_template("buy.html")
@app.route("/history") @login_required def history(): """Show history of transactions""" history = db.execute("SELECT stocks.symbol, user_stocks.cost, user_stocks.shares, user_stocks.transaction_type, user_stocks.time, user_stocks.date FROM user_stocks JOIN stocks ON stocks.id = user_stocks.stock_id JOIN users ON users.id = user_stocks.user_id WHERE users.id = ?", session['user_id']) if not history: return apology("You don't have transactions", 400) return render_template("history.html", history=history)
@app.route("/login", methods=["GET", "POST"]) def login(): """Log user in"""
# Forget any user_id session.clear() # User reached route via POST (as by submitting a form via POST) if request.method == "POST": # Ensure username was submitted if not request.form.get("username"): return apology("Must Provide Username", 400) # Ensure password was submitted elif not request.form.get("password"): return apology("Must Provide Password", 400) # Query database for username rows = db.execute("SELECT * FROM users WHERE username = ?", request.form.get("username")) # Ensure username exists and password is correct if len(rows) != 1 or not check_password_hash(rows[0]["hash"], request.form.get("password")): return apology("Invalid Username and/or Password", 400) # Remember which user has logged in session["user_id"] = rows[0]["id"] # Redirect user to home page return redirect("/") # User reached route via GET (as by clicking a link or via redirect) else: return render_template("login.html") 
@app.route("/logout") def logout(): """Log user out"""
# Forget any user_id session.clear() # Redirect user to login form return redirect("/") 
@app.route("/quote", methods=["GET", "POST"]) @login_required def quote(): """Get stock quote.""" if request.method == 'POST': symbol = request.form.get("symbol") lookup_dict = lookup(symbol) if not symbol or not lookup_dict: return apology("Invalid Symbol", 400) # If everything is OK get all the symbols that the stocks table currently has stocks = db.execute("SELECT symbol FROM stocks;") # If there's no the quoted stock insert it into the stocks table: if not stocks or not any(lookup_dict['symbol'] in stock.values() for stock in stocks): db.execute("INSERT INTO stocks (symbol, price) VALUES (?, ?)", lookup_dict['symbol'], lookup_dict['price']) return render_template("quoted.html", stock=lookup_dict) else: return render_template("quote.html")
@app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" has_symbol = False has_lower = False has_upper = False has_number = False requirements_meeted = False if request.method == 'POST': username = request.form.get("username") password = request.form.get("password") confirmation = request.form.get("confirmation")
 usernames = db.execute("SELECT username FROM users;") if not username or username == '': return apology("Username not avaliable or already exists", 400) for char in username: if char in invalid_chars: return apology("Username has not appropiate characters", 400) for dict in usernames: if username == dict['username']: return apology("Username already exists", 400) if not password or password == '' or not confirmation: return apology("Password not avaliable", 400) if password != confirmation or confirmation == '': return apology("Passwords doesn't match", 400) for character in password: if character in invalid_chars: return apology("Password has not appropiate characters", 400) for char in password: if not char.isalnum() and not char.isspace(): has_symbol = True if char.islower(): has_lower = True if char.isupper(): has_upper = True if char.isdigit(): has_number = True if has_symbol and has_lower and has_upper and has_number: requirements_meeted = True if requirements_meeted == True: db.execute("INSERT INTO users (username, hash) VALUES (?, ?);", username, generate_password_hash(confirmation)) return redirect("/login") else: return apology("Password don't meet the requirements. Passwords must have symbols, digits, lower and upper letters", 400) else: return render_template("register.html") 
@app.route("/sell", methods=["GET", "POST"]) @login_required def sell(): """Sell shares of stock""" # If the request method is POST: if request.method == "POST": # Getting the current time of the sell current_time = datetime.datetime.now().strftime("%H:%M:%S") # Getting the current date of the sell current_date = datetime.date.today().strftime("%d/%m/%Y") # Getting the stocks symbols of the user stocks_symbol = db.execute("SELECT symbol FROM stocks JOIN user_stocks ON user_stocks.stock_id = stocks.id JOIN users ON user_stocks.user_id = users.id WHERE users.id = ?;", session["user_id"]) # Getting the selled symbol symbol = request.form.get("symbol") # Getting the total shares of the selled symbol shares_symbol = db.execute("SELECT SUM(user_stocks.shares) AS Total_Shares, stocks.symbol FROM user_stocks JOIN users ON user_stocks.user_id = users.id JOIN stocks ON user_stocks.stock_id = stocks.id WHERE users.id = ? AND stocks.symbol = ? GROUP BY (user_stocks.stock_id);", session["user_id"], symbol) # Getting the shares that we want to sell shares = request.form.get("shares") # Checking valid input for shares if shares.count('.'): return apology("Should be an integer", 400) elif any(char.isalpha() for char in shares): return apology("Should be an integer entirely", 400) elif shares.startswith('-'): return apology("Amount of shares must be positive",400) else: shares = int(shares) # Getting the stock data: stock = lookup(symbol) # If there's no stock return an apology if not stock: return apology("Symbol doesn't exits", 400) # Getting all the symbols of the user as a list symbols = [symbol for stock_symbol in stocks_symbol for symbol in stock_symbol.values()] # If the symbol is not in the list return an apology if not symbol in symbols: return apology("Symbol not acquired", 400) # If the number of shares is not positive or the number of shares is greater than the number of acquired shares return an apology if shares < 0: return apology("Shares must be positive", 400) if shares > int(shares_symbol[0]['Total_Shares']): return apology("Amount of shares not acquired", 400) if shares == 0: return apology("Amount of shares must be greater than 0", 400) # Getting the current price of the stock Price_Symbol = db.execute("SELECT price FROM stocks WHERE symbol = ?;", symbol) # Getting the total dollars amount of the selled stock Total_AmountSelled = Price_Symbol[0]['price'] * shares # Getting the current cash of the user cash = db.execute("SELECT cash FROM users WHERE users.id = ?;", session["user_id"]) # Updating the cash of the user: current_cash = cash[0]['cash'] + Total_AmountSelled db.execute("UPDATE users SET cash = ? WHERE users.id = ?;", current_cash, session["user_id"]) # Getting the current shares of the stock symbol_id = db.execute("SELECT id FROM stocks WHERE symbol = ?;", stock['symbol']) current_shares = int(shares_symbol[0]['Total_Shares']) Last_Total_Shares = 0 Total_Shares = current_shares - shares if Total_Shares == 0: Last_Total_Shares = (shares * -1) else: Last_Total_Shares = ((Total_Shares) * -1) # Updating the shares of the user: db.execute("INSERT INTO user_stocks (user_id, stock_id, cost, shares, transaction_type, time, date) VALUES (?, ?, ?, ?, ?, ?, ?);",session["user_id"], symbol_id[0]['id'], stock['price'], Last_Total_Shares, "SELL", current_time, current_date) return redirect("/") else: return render_template("sell.html")
@app.route("/buycash", methods=["GET", "POST"]) @login_required def buycash(): if request.method == 'POST': cash = int(request.form.get("cashamount")) if cash > 10000 or cash < 1: return apology("Amount of cash invalid, must be positive and less than 10000", 400) user_cash = db.execute("SELECT cash FROM users WHERE users.id = ?", session["user_id"]) total_cash = user_cash[0]['cash'] + cash if total_cash > 20000: returned_amount = total_cash - 20000 total_cash = total_cash - returned_amount if user_cash[0]['cash'] == 20000: return apology("Cannot buy more cash", 400) db.execute("UPDATE users SET cash = ? WHERE users.id = ?;", total_cash, session["user_id"]) return redirect("/") else: return render_template("buycash.html")
@app.route("/changepassword", methods=["GET", "POST"]) def changepassword(): if request.method == 'POST': username = request.form.get("username") new_password = request.form.get("new_password") new_password_confirmation = request.form.get("new_password_repeated")
 usernamesdict = db.execute("SELECT username FROM users;") usernames = [username for dictionary in usernamesdict for username in dictionary.values()] if username not in usernames: return apology("Username not registered", 400) for char in username: if char in invalid_chars: return apology("Username has not appropiate characters", 400) if new_password != new_password_confirmation: return apology("Password not matched", 400) if not new_password or new_password == '': return apology("Password not avaliable", 400) for char in new_password: if char in invalid_chars: return apology("Password has not appropiate characters", 400) user_id = db.execute("SELECT users.id FROM users WHERE users.username = ?", username) db.execute("UPDATE users SET hash = ? WHERE users.id = ?;", generate_password_hash(new_password_confirmation), user_id[0]['id']) return redirect("/login") else: return render_template("changepassword.html") 
```

quote.html:

```Html {% extends "layout.html" %}
{% block title %} Enter a Stock symbol {% endblock %}
{% block main %}
{% endblock %} ```

quoted.html code:

```HTML {% extends "layout.html" %} {% block title %} Stock {% endblock %}
{% block main %}
Symbol Price
1 {{ stock['symbol'] }} {{ stock['price'] }}
{% endblock %} ```
submitted by AlvaroCSLearner to cs50 [link] [comments]


2023.06.09 18:11 Fimeg Encountering DNS resolution issue with Lemmy and NPM (Nginx Proxy Manager)

Hello everyone, I'm facing an issue with my Lemmy instance that's being proxied through NPM (Nginx Proxy Manager). My Lemmy instance seems to be up and running as expected but it's having trouble connecting to other servers, presumably due to a DNS resolution problem. Here's what the logs spit out:
error sending request for url (https://lemmy.ml/.well-known/webfinger?resource=acct:[email protected]): error trying to connect: dns error: failed to lookup address information: Try again 
It seems the application can't resolve the address information which indicates a possible DNS issue.
As far as I can tell, the issue doesn't seem to be with my network setup. I can ping the address successfully, and the DNS settings seem fine. However, the error persists which leads me to believe that the issue might be related to the configuration with NPM. I've tried checking for any firewall rules blocking the outbound connections from the Lemmy instance, verifying the DNS server settings within my Docker container, and even attempting to manually connect to the problematic URL from within the Lemmy container. Unfortunately, none of these steps have resolved the issue.
Has anyone else encountered a similar problem with Lemmy and NPM? Is there something specific about the way Lemmy interacts with NPM or vice versa that I might have missed? I would really appreciate any insights or suggestions on how to troubleshoot and resolve this issue. Below is the error excerpt from the logs for reference.
logs
lemmy_1 2023-06-09T15:54:35.914184Z ERROR HTTP request{http.method=GET http.scheme="https" http.host=lemmy.REDACTED.net http.target=/api/v3/ws otel.kind="server" request_id=f9490221-8bda-4172-979f-1be74ccbacf6 http.status_code=101 otel.status_code="OK"}: lemmy_server::api_routes_websocket: couldnt_find_object: Request error: error sending request for url (https://lemmy.ml/.well-known/webfinger?resource=acct:[email protected]): error trying to connect: dns error: failed to lookup address information: Try again 

Any help or guidance would be much appreciated. Thank you in advance!
EDIT: Fixed via link: Can't access communities from different instances. · Issue #2990 · LemmyNet/lemmy (github.com)

submitted by Fimeg to selfhosted [link] [comments]


2023.06.09 17:15 Steezycoom Matching two columns in two separate sheets

Hello. I am working on organizing county data using household income and number of households.
One sheet has the county data and median household income. While the other sheet has county data and number of households .
The issue is that the two sets of data are from two separate sources so the data is organized differently. The only matching variable on both sheets is the zip codes, but sheet 1 has more zip codes listed than sheet 2. Is there a way to make both sheets have only the same matching zip codes? And then from there sort them in ascending order to line up with each other? I’ve tried V and X lookup, but keep getting an N/A error. If anyone has any suggestions it would be helpful! Thank you!!!
submitted by Steezycoom to excel [link] [comments]


2023.06.09 11:45 icestormstickstone StubHub Order Lookup

Follow this link for StubHub Order Lookup. Access the latest deals and promotions by visiting the link, featuring a constantly updated list of coupons, promo codes, and discounts.
submitted by icestormstickstone to IrisedOffers [link] [comments]


2023.06.09 11:33 MeseNerd Mod menu keeps crahing my game when trying to use it

---- Minecraft Crash Report ----
// There are four lights!

Time: 6/9/23 4:31 AM
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
at com.terraformersmc.modmenu.gui.ModsScreen$1.method\_25394([ModsScreen.java:150](https://ModsScreen.java:150)) at net.minecraft.class\_437.method\_25394(class\_437.java:81) at com.terraformersmc.modmenu.gui.ModsScreen.method\_25394([ModsScreen.java:344](https://ModsScreen.java:344)) at net.minecraft.class\_757.method\_3192(class\_757.java:616) at net.minecraft.class\_310.method\_1523(class\_310.java:1048) at net.minecraft.class\_310.method\_1514(class\_310.java:681) at net.minecraft.client.main.Main.main([Main.java:215](https://Main.java:215)) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch([MinecraftGameProvider.java:462](https://MinecraftGameProvider.java:462)) at net.fabricmc.loader.impl.launch.knot.Knot.launch([Knot.java:74](https://Knot.java:74)) at net.fabricmc.loader.impl.launch.knot.KnotClient.main([KnotClient.java:23](https://KnotClient.java:23)) 


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
at com.terraformersmc.modmenu.gui.ModsScreen$1.method\_25394([ModsScreen.java:150](https://ModsScreen.java:150)) at net.minecraft.class\_437.method\_25394(class\_437.java:81) at com.terraformersmc.modmenu.gui.ModsScreen.method\_25394([ModsScreen.java:344](https://ModsScreen.java:344)) 

-- Screen render details --
Details:
Screen name: com.terraformersmc.modmenu.gui.ModsScreen Mouse location: Scaled: (121, 140). Absolute: (243.000000, 280.000000) Screen size: Scaled: (512, 375). Absolute: (1024, 749). Scale factor of 2.000000 
Stacktrace:
at net.minecraft.class\_757.method\_3192(class\_757.java:616) at net.minecraft.class\_310.method\_1523(class\_310.java:1048) at net.minecraft.class\_310.method\_1514(class\_310.java:681) at net.minecraft.client.main.Main.main([Main.java:215](https://Main.java:215)) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch([MinecraftGameProvider.java:462](https://MinecraftGameProvider.java:462)) at net.fabricmc.loader.impl.launch.knot.Knot.launch([Knot.java:74](https://Knot.java:74)) at net.fabricmc.loader.impl.launch.knot.KnotClient.main([KnotClient.java:23](https://KnotClient.java:23)) 

-- System Details --
Details:
Minecraft Version: 1.16.5 Minecraft Version ID: 1.16.5 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0\_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 747331816 bytes (712 MB) / 1912602624 bytes (1824 MB) up to 3817865216 bytes (3641 MB) CPUs: 4 JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance\_javaw.exe\_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m Fabric Mods: adorn: Adorn 1.14.2+1.16.5 angerable-patch: Angerable Patch 1.1.0-1.16.4 armor\_hud: BerdinskiyBear's ArmorHUD 0.3.1 artifacts: Artifacts 4.0.3+fabric autoconfig1u: Auto Config v1 Updated 3.3.1 bclib: BCLib 0.1.45 bettercaves: YUNG's Better Caves 1.16.5-1.2 betterdungeons: YUNG's Better Dungeons 1.16.5-1.0.1 betterend: Better End 0.9.8.5-pre bettermineshafts: YUNG's Better Mineshafts 1.16.4-1.0.2 betternether: Better Nether 5.0.7 bettersleeping: Better Sleeping 0.4.0 betterstrongholds: YUNG's Better Strongholds 1.16.5-1.1.1 bettervillage: Better village 3.1.0 blue\_endless\_jankson: jankson 1.2.0 bobby: Bobby 1.2.0 cardinal-components: Cardinal Components API 2.8.3 cardinal-components-base: Cardinal Components API (base) 2.8.3 cardinal-components-block: Cardinal Components API (blocks) 2.8.3 cardinal-components-chunk: Cardinal Components API (chunks) 2.8.3 cardinal-components-entity: Cardinal Components API (entities) 2.8.3 cardinal-components-item: Cardinal Components API (items) 2.8.3 cardinal-components-level: Cardinal Components API (world saves) 2.8.3 cardinal-components-scoreboard: Cardinal Components API (scoreboard) 2.8.3 cardinal-components-util: Cardinal Components API (utilities) 2.8.3 cardinal-components-world: Cardinal Components API (worlds) 2.8.3 chipped: Chipped 1.1.1 cloth-api: Cloth API 1.6.59 cloth-armor-api-v1: Cloth Armor API v1 1.6.59 cloth-basic-math: cloth-basic-math 0.6.1 cloth-client-events-v0: Cloth Client Events v0 1.6.59 cloth-common-events-v1: Cloth Common Events v1 1.6.59 cloth-config2: Cloth Config v4 4.16.91 cloth-datagen-api-v1: Cloth Datagen v1 1.6.59 cloth-durability-bar-api-v1: Cloth Durability Bar API v1 1.6.59 cloth-dynamic-registry-api-v1: Cloth Dynamic Registry API v1 1.6.59 cloth-scissors-api-v1: Cloth Scissors API v1 1.6.59 cloth-utils-v1: Cloth Utils v1 1.6.59 com\_typesafe\_config: config 1.4.1 confabricate: confabricate 2.0.3+4.0.0 dynamicsoundfilters: Dynamic Sound Filters 1.2.0+1.16.5 eldritch\_mobs: Eldritch Mobs 1.8.0 emerald\_tools: Emerald Tools 1.1.4 expandability: ExpandAbility 2.0.1 extraorigins: Extra Origins 1.16.5-13 fabric: Fabric API 0.42.0+1.16 fabric-api-base: Fabric API Base 0.4.0+3cc0f0907d fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.3.1+3cc0f0907d fabric-biome-api-v1: Fabric Biome API (v1) 3.1.13+3cc0f0907d fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.6+3cc0f0907d fabric-command-api-v1: Fabric Command API (v1) 1.1.3+3cc0f0907d fabric-commands-v0: Fabric Commands (v0) 0.2.3+3cc0f0907d fabric-containers-v0: Fabric Containers (v0) 0.1.12+3cc0f0907d fabric-content-registries-v0: Fabric Content Registries (v0) 0.2.5+3cc0f0907d fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.4+3cc0f0907d fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.8+3cc0f0907d fabric-entity-events-v1: Fabric Entity Events (v1) 1.2.4+3cc0f0907d fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.5+3cc0f0907d fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.2+3cc0f0907d fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+3cc0f0907d fabric-item-api-v1: Fabric Item API (v1) 1.2.2+3cc0f0907d fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.1+3cc0f0907d fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.5+3cc0f0907d fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.2+3cc0f0907d fabric-language-kotlin: Fabric Language Kotlin 1.9.4+kotlin.1.8.21 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.2.2+3cc0f0907d fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.3+3cc0f0907d fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.4+3cc0f0907d fabric-models-v0: Fabric Models (v0) 0.3.1+3cc0f0907d fabric-networking-api-v1: Fabric Networking API (v1) 1.0.5+3cc0f0907d fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.9+3cc0f0907d fabric-networking-v0: Fabric Networking (v0) 0.3.3+3cc0f0907d fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.9.6+3cc0f0907d fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+3cc0f0907d fabric-particles-v1: Fabric Particles (v1) 0.2.5+3cc0f0907d fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.6+3cc0f0907d fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.5+3cc0f0907d fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.5+3cc0f0907d fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 2.3.1+3cc0f0907d fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.6+3cc0f0907d fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.15+3cc0f0907d fabric-rendering-v0: Fabric Rendering (v0) 1.1.3+3cc0f0907d fabric-rendering-v1: Fabric Rendering (v1) 1.6.1+3cc0f0907d fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+3cc0f0907d fabric-screen-api-v1: Fabric Screen API (v1) 1.0.1+3cc0f0907d fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.6+3cc0f0907d fabric-structure-api-v1: Fabric Structure API (v1) 1.1.12+3cc0f0907d fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.1.2+3cc0f0907d fabric-textures-v0: Fabric Textures (v0) 1.0.7+3cc0f0907d fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.8+3cc0f0907d fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.0+3cc0f0907d fabricenchantments: Fabric Enchantments 0.4.1 fabricloader: Fabric Loader 0.14.19 fallflyinglib: FallFlyingLib 1.1.0 farmersdelight: Farmer's Delight 1.16.5-0.0.7 ferritecore: FerriteCore 2.1.1 harvest\_scythes: Harvest Scythes 2.0.4 hidearmor: Hide Armor 2.4 inventorysorter: Inventory Sorter 1.7.9-1.16 io\_leangen\_geantyref\_geantyref: geantyref 1.3.11 jankson: Jankson 3.0.1+j1.2.0 java: Java HotSpot(TM) 64-Bit Server VM 8 kanos\_config: Kanos Config 0.4.0+1.14.4-1.19.4 kyrptconfig: Kytpt Config 1.1.6-1.16 lambdynlights: LambDynamicLights 1.3.4+1.16 libcd: LibCapableData 3.0.3+1.16.3 libgui: LibGui 3.3.3+1.16.5 libipn: libIPN 3.0.1 libraryferret: Library ferret 4.0.0 lithium: Lithium 0.6.6 medieval\_origins: Medieval Origins 1.1.1 minecraft: Minecraft 1.16.5 mixedslab: Mixed Slab 1.16.3-1.2 moborigins: Mob Origins 1.4.0 modifiers: Modifiers 0.1.1 modmenu: Mod Menu 1.16.10 mooblooms: Mooblooms 1.4.0 morediscs: More discs 1.16.5-28-fabric morevillagers-fabric: MoreVillagersFabric 1.4.1-SNAPSHOT mostructures: Mo' Structures 1.2.0-1.16.5 omega-config: OmegaConfig 1.0.4 org\_aperlambda\_lambdajcommon: lambdajcommon 1.8.1 org\_jetbrains\_kotlin\_kotlin-reflect: kotlin-reflect 1.8.21 org\_jetbrains\_kotlin\_kotlin-stdlib: kotlin-stdlib 1.8.21 org\_jetbrains\_kotlin\_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.8.21 org\_jetbrains\_kotlin\_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.8.21 org\_jetbrains\_kotlinx\_atomicfu-jvm: atomicfu-jvm 0.20.2 org\_jetbrains\_kotlinx\_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.6.4 org\_jetbrains\_kotlinx\_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.6.4 org\_jetbrains\_kotlinx\_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.4.0 org\_jetbrains\_kotlinx\_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.5.0 org\_jetbrains\_kotlinx\_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.5.0 org\_jetbrains\_kotlinx\_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.5.0 org\_spongepowered\_configurate-core: configurate-core 4.0.0 org\_spongepowered\_configurate-extra-dfu4: configurate-extra-dfu4 4.0.0 org\_spongepowered\_configurate-gson: configurate-gson 4.0.0 org\_spongepowered\_configurate-hocon: configurate-hocon 4.0.0 origins: Origins 0.7.3 pehkui: Pehkui 3.7.3+1.14.4-1.20 phosphor: Phosphor 0.8.0 reach-entity-attributes: Reach Entity Attributes 1.1.1 repurposed\_structures: Repurposed Structures 1.16.5-1.11.6-fabric roughlyenoughitems: Roughly Enough Items 5.12.385 roughlyenoughitems-api: REI (API) 5.12.385 roughlyenoughitems-default-plugin: REI (Default Plugin) 5.12.385 roughlyenoughitems-runtime: REI (Runtime) 5.12.385 seasons: Fabric Seasons 1.2-BETA sodium: Sodium 0.2.0+build.4 spruceui: SpruceUI 2.0.4+1.16 step-height-entity-attribute: Step Height Entity Attribute 1.0.0 trinkets: Trinkets 2.6.7 voicechat: Simple Voice Chat 1.16.5-2.4.8 voyager: Voyager 1.0.0 xaerominimap: Xaero's Minimap 23.4.0 yungsapi: YUNG's API 1.16.5-Fabric-9 Launched Version: fabric-loader-0.14.19-1.16.5 Backend library: LWJGL version 3.2.2 build 10 Backend API: NVIDIA GeForce GT 1030/PCIe/SSE2 GL version 4.6.0 NVIDIA 516.94, NVIDIA Corporation GL Caps: Using framebuffer using OpenGL 3.0 Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fabric' Type: Client (map\_client.txt) Graphics mode: fancy Resource Packs: vanilla, Fabric Mods, file/-+BetterDefault\_1.5.zip (incompatible), file/Default-Dark-Mode-1.16-v1.4.0.zip, file/Crops-3D\_MC1.16.5\_v1.0.0.zip, file/NoZ-Fighting-v1.2.1-(1.19.4).zip (incompatible), file/Inventory+Flat+Pack+\[Addon\].zip (incompatible) Current Language: English (US) CPU: 4x Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz 
submitted by MeseNerd to fabricmc [link] [comments]


2023.06.09 09:05 AutoModerator /r/NintendoSwitch's Daily Question Thread (06/09/2023)

/NintendoSwitch's Daily Question Thread

The purpose of this thread is to more accurately connect users seeking help with users who want to provide that help. Our regular "Helpful Users" certainly have earned their flairs!

Before asking your question...

Helpful Links

Wiki Resources

Wiki Accessory Information

  • Accessories - Starter information about controllers, chargers, cables, screen protectors, cases, headsets, LAN adapters, and more.
  • MicroSD cards - Some more in-depth information about MicroSD cards including what size you should get and which brands are recommended.
  • Carrying Cases - An expanded list of common carrying cases available for the Switch.

Helpful Reddit Posts

Third Party Links

Reminders

  • We have a #switch-help channel in our Discord server.
  • Instructions and links to information about homebrew and hacking are against our rules and should take place in their relevant subreddits.
  • Please be patient. Not all questions get immediate answers. If you have an urgent question about something that's gone wrong, consider other resources like Nintendo's error code lookup or help documents on the Switch.
  • Make sure to follow Rule #1 of this subreddit: Remember the human, and be polite when you ask or answer questions.
submitted by AutoModerator to NintendoSwitch [link] [comments]


2023.06.09 05:09 Fantastic-Address-44 odd crash occurs only when launching galacticraft rockets, appears to be ticking entity

at first i thought it had something to do with starmaker because the log speaks of unregistered dimensions or nuclearcraft because it was mentioned the first time, but after removing some of my planets and systems the crash still occurs. here is the log for that latest session. this is not a server and its not the questing data.
[23:02:40] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:553]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Admin\AppData\Roaming\PrismLauncher\instances\1.12.2\.minecraft\crash-reports\crash-2023-06-08_23.02.39-server.txt
[23:02:40] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
[23:02:40] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[23:02:40] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Starmakertest'/overworld
[23:02:40] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Starmakertest'/Storage Cell
[23:02:40] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Starmakertest'/planet.55_cnc_e
[23:02:41] [Server thread/INFO] [FML]: Unloading dimension 0
[23:02:41] [Server thread/INFO] [FML]: Unloading dimension 2
[23:02:41] [Server thread/INFO] [FML]: Unloading dimension -1100
[23:02:43] [Server thread/INFO] [FML]: Applying holder lookups
[23:02:43] [Server thread/INFO] [FML]: Holder lookups applied
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1100
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1101
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1102
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -30
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1103
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1030
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1007
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1023
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1009
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -29
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1005
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1008
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1025
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1338
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -31
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1022
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1017
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1015
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1016
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1014
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1024
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -28
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1012
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1018
[23:02:43] [Server thread/INFO] [Galacticraft]: Unregistered Dimension: -1021
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Server Info Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Network Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Data Factory
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Wireless Data Manager
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Wireless Redstone Manager
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Cable Connection Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Redstone Connection Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Server Display Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Chunk Viewer Handler
[23:02:43] [Server thread/INFO] [practicallogistics2]: Cleared Client Info Handler
[23:02:43] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[23:02:43] [Client thread/INFO] [FML]: Server terminated.
[23:02:43] [Thread-6/INFO] [jsg]: Good bye! Thank you for using Just Stargate Mod :)
[23:02:43] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server
[23:02:43] [Client Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving players
AL lib: (EE) alc_cleanup: 1 device not closed
Process exited with code -1.
and the crash report:

Time: 6/8/23 11:02 PM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 1
at starmaker.utils.json.ParseFiles.getBlock([ParseFiles.java:638](https://ParseFiles.java:638)) at starmaker.dimension.WorldProviderBody.genSettings([WorldProviderBody.java:265](https://WorldProviderBody.java:265)) at asmodeuscore.core.astronomy.dimension.world.worldengine.WE\_ChunkProviderSpace.(WE\_ChunkProviderSpace.java:85) at asmodeuscore.core.astronomy.dimension.world.worldengine.WE\_WorldProviderSpace.func\_186060\_c(WE\_WorldProviderSpace.java:93) at net.minecraft.world.WorldServer.func\_72970\_h([WorldServer.java:848](https://WorldServer.java:848)) at net.minecraft.world.WorldServer.([WorldServer.java:118](https://WorldServer.java:118)) at net.minecraft.world.WorldServerMulti.([WorldServerMulti.java:18](https://WorldServerMulti.java:18)) at net.minecraftforge.common.DimensionManager.initDimension([DimensionManager.java:263](https://DimensionManager.java:263)) at net.minecraft.server.MinecraftServer.func\_71218\_a([MinecraftServer.java:832](https://MinecraftServer.java:832)) at micdoodle8.mods.galacticraft.api.prefab.entity.EntityTieredRocket.func\_70071\_h\_([EntityTieredRocket.java:203](https://EntityTieredRocket.java:203)) at galaxyspace.core.prefab.entities.EntityTier6Rocket.func\_70071\_h\_([EntityTier6Rocket.java:282](https://EntityTier6Rocket.java:282)) at net.minecraft.world.World.func\_72866\_a([World.java:1996](https://World.java:1996)) at net.minecraft.world.WorldServer.func\_72866\_a([WorldServer.java:832](https://WorldServer.java:832)) at net.minecraft.world.World.func\_72870\_g([World.java:1958](https://World.java:1958)) at net.minecraft.world.World.func\_72939\_s([World.java:1762](https://World.java:1762)) at net.minecraft.world.WorldServer.func\_72939\_s([WorldServer.java:613](https://WorldServer.java:613)) at net.minecraft.server.MinecraftServer.func\_71190\_q([MinecraftServer.java:767](https://MinecraftServer.java:767)) at net.minecraft.server.MinecraftServer.func\_71217\_p([MinecraftServer.java:668](https://MinecraftServer.java:668)) at net.minecraft.server.integrated.IntegratedServer.func\_71217\_p([IntegratedServer.java:279](https://IntegratedServer.java:279)) at [net.minecraft.server.MinecraftServer.run](https://net.minecraft.server.MinecraftServer.run)([MinecraftServer.java:526](https://MinecraftServer.java:526)) at [java.lang.Thread.run](https://java.lang.Thread.run)(Unknown Source) 

(MixinBooter) Mixins in Stacktrace:
[net.minecraft.world.World](https://net.minecraft.world.World): stevekung.mods.stevekunglib.mixin.WorldMixin (mixins.stevekung's\_lib.json) \[SteveKunG's-Lib-mc1.12.2-v1.3.0.jar\] net.minecraft.world.WorldServer: stevekung.mods.stevekunglib.mixin.WorldServerMixin (mixins.stevekung's\_lib.json) \[SteveKunG's-Lib-mc1.12.2-v1.3.0.jar\] 

im at the end of my wit, ive tried everything with this mod and every time one problem is solved another takes its place.

submitted by Fantastic-Address-44 to ModdedMinecraft [link] [comments]


2023.06.08 23:32 suineg Intermittent Error Popping Up

This is a low impact issue that sometimes makes my web interface all wonky and sometimes 1 refresh fixes it and sometimes a couple of. I figured it might go away after the next update but it just doesn't seem to have. Googling some of the things I feel are relevant in the log comes up with python version errors but I'm running it in an LSIO container. So here's all the important information as far as I can tell.
WebUI :: Mako template render error: (SystemError) AST constructor recursion depth mismatch (before=150, after=145) ("data = defaultdict(lambda: 'Unknown', **session)\ns") in file '/app/tautulli/data/interfaces/default/current_activity_instance.html' at line: 69 char: 1 
Traceback (most recent call last): File "/app/tautulli/lib/mako/lookup.py", line 241, in get_template return self._check(uri, self._collection[uri]) ~~~~~~~~~~~~~~~~^ KeyError: 'current_activity_instance.html'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/app/tautulli/lib/mako/pyparser.py", line 36, in parse return _ast_util.parse(code, "", mode) File "/app/tautulli/lib/mako/_ast_util.py", line 91, in parse return compile(expr, filename, mode, PyCF_ONLY_AST) SystemError: AST constructor recursion depth mismatch (before=150, after=145)
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/tautulli/plexpy/webserve.py", line 136, in servetemplate template = _hplookup.get_template(templatename) File "/app/tautulli/lib/mako/lookup.py", line 252, in get_template return self._load(srcfile, uri) File "/app/tautulli/lib/mako/lookup.py", line 313, in _load self._collection[uri] = template = Template( ^ File "/app/tautulli/lib/mako/template.py", line 317, in __init_ module = self.compile_from_file(path, filename) File "/app/tautulli/lib/mako/template.py", line 393, in _compile_from_file code, module = _compile_text(self, data, filename) File "/app/tautulli/lib/mako/template.py", line 677, in _compile_text source, lexer = _compile( ^ File "/app/tautulli/lib/mako/template.py", line 657, in _compile node = lexer.parse() ^ File "/app/tautulli/lib/mako/lexer.py", line 248, in parse if self.match_python_block(): File "/app/tautulli/lib/mako/lexer.py", line 392, in match_python_block self.append_node( File "/app/tautulli/lib/mako/lexer.py", line 129, in append_node node = nodecls(args, *kwargs) File "/app/tautulli/lib/mako/parsetree.py", line 158, in __init_ self.code = ast.PythonCode(text, *self.exceptionkwargs) File "/app/tautulli/lib/mako/ast.py", line 42, in __init_ expr = pyparser.parse(code.lstrip(), "exec", *exception_kwargs) File "/app/tautulli/lib/mako/pyparser.py", line 38, in parse raise exceptions.SyntaxException( mako.exceptions.SyntaxException: (SystemError) AST constructor recursion depth mismatch (before=150, after=145) ("data = defaultdict(lambda: 'Unknown', **session)\ns") in file '/app/tautulli/data/interfaces/default/current_activity_instance.html' at line: 69 char: 1
Docker Host: Ubuntu 22.04
Container: Docker LSIO
Tautulli Current Version: v2.12.4
Docker Compose:
 tautulli: 
image: lscr.io/linuxservetautulli container_name: tautulli environment: - PUID=1000 - PGID=1000 - TZ=America/New_York

ports:

- 8181:8181

labels: - "traefik.enable=true" - "traefik.http.routers.tautulli-rtr.entrypoints=websecure" - "traefik.http.routers.tautulli-rtr.rule=Host(tautulli.kinkycoeds.gov)" - "traefik.http.routers.tautulli-rtr.tls=true" - "[email protected]" - "traefik.http.routers.tautulli-rtr.service=tautulli-svc" - "traefik.http.services.tautulli-svc.loadbalancer.server.port=8181" volumes: - /opt/tautulli:/config - /opt/plex/Library:/logs:ro restart: unless-stopped
I can give any relevant information necessary from the docker host but as far as I can tell that shouldn't be a factor since my entire stack is inside of docker including the reverse proxy. As you can see it never exits the docker stack.
submitted by suineg to Tautulli [link] [comments]


2023.06.08 17:55 Xcissors280 1.20 fabric server crash

im trying to set up a fabric crossplay server but when i run it everything includinjg the mods load but i get the error code: Exception in server tick loop, is there whyting i can do about this? also if i turn off online mode do i need to use floodgate?


server log:
---- Minecraft Crash Report ----
// Shall we play a game?

Time: 2023-06-08 11:51:06
Description: Exception in server tick loop

java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable([CompletableFuture.java:332](https://CompletableFuture.java:332)) at java.base/java.util.concurrent.CompletableFuture.completeThrowable([CompletableFuture.java:347](https://CompletableFuture.java:347)) at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete([CompletableFuture.java:874](https://CompletableFuture.java:874)) at java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage([CompletableFuture.java:887](https://CompletableFuture.java:887)) at java.base/java.util.concurrent.CompletableFuture.whenComplete([CompletableFuture.java:2325](https://CompletableFuture.java:2325)) at org.geysermc.geyser.GeyserImpl.startInstance([GeyserImpl.java:378](https://GeyserImpl.java:378)) at org.geysermc.geyser.GeyserImpl.initialize([GeyserImpl.java:216](https://GeyserImpl.java:216)) at org.geysermc.geyser.GeyserImpl.start([GeyserImpl.java:710](https://GeyserImpl.java:710)) at org.geysermc.geyser.platform.fabric.GeyserFabricMod.startGeyser([GeyserFabricMod.java:143](https://GeyserFabricMod.java:143)) at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2([ServerLifecycleEvents.java:49](https://ServerLifecycleEvents.java:49)) at net.minecraft.server.MinecraftServer.handler$zdj000$fabric-lifecycle-events-v1$afterSetupServer([MinecraftServer.java:2842](https://MinecraftServer.java:2842)) at net.minecraft.server.MinecraftServer.method\_29741([MinecraftServer.java:650](https://MinecraftServer.java:650)) at net.minecraft.server.MinecraftServer.method\_29739([MinecraftServer.java:265](https://MinecraftServer.java:265)) at java.base/java.lang.Thread.run([Thread.java:833](https://Thread.java:833)) 
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind([Net.java:555](https://Net.java:555)) at java.base/sun.nio.ch.DatagramChannelImpl.bindInternal([DatagramChannelImpl.java:1194](https://DatagramChannelImpl.java:1194)) at java.base/sun.nio.ch.DatagramChannelImpl.bind([DatagramChannelImpl.java:1164](https://DatagramChannelImpl.java:1164)) at [io.netty.util.internal.SocketUtils$6.run](https://io.netty.util.internal.SocketUtils$6.run)([SocketUtils.java:133](https://SocketUtils.java:133)) at [io.netty.util.internal.SocketUtils$6.run](https://io.netty.util.internal.SocketUtils$6.run)([SocketUtils.java:130](https://SocketUtils.java:130)) at java.base/java.security.AccessController.doPrivileged([AccessController.java:569](https://AccessController.java:569)) at io.netty.util.internal.SocketUtils.bind([SocketUtils.java:130](https://SocketUtils.java:130)) at io.netty.channel.socket.nio.NioDatagramChannel.doBind0([NioDatagramChannel.java:201](https://NioDatagramChannel.java:201)) at io.netty.channel.socket.nio.NioDatagramChannel.doBind([NioDatagramChannel.java:196](https://NioDatagramChannel.java:196)) at io.netty.channel.AbstractChannel$AbstractUnsafe.bind([AbstractChannel.java:562](https://AbstractChannel.java:562)) at io.netty.channel.DefaultChannelPipeline$HeadContext.bind([DefaultChannelPipeline.java:1334](https://DefaultChannelPipeline.java:1334)) at io.netty.channel.AbstractChannelHandlerContext.invokeBind([AbstractChannelHandlerContext.java:506](https://AbstractChannelHandlerContext.java:506)) at io.netty.channel.AbstractChannelHandlerContext.bind([AbstractChannelHandlerContext.java:491](https://AbstractChannelHandlerContext.java:491)) at io.netty.channel.DefaultChannelPipeline.bind([DefaultChannelPipeline.java:973](https://DefaultChannelPipeline.java:973)) at io.netty.channel.AbstractChannel.bind([AbstractChannel.java:260](https://AbstractChannel.java:260)) at org.cloudburstmc.netty.handler.codec.raknet.ProxyOutboundRouter.bind([ProxyOutboundRouter.java:48](https://ProxyOutboundRouter.java:48)) at io.netty.channel.AbstractChannelHandlerContext.invokeBind([AbstractChannelHandlerContext.java:506](https://AbstractChannelHandlerContext.java:506)) at io.netty.channel.AbstractChannelHandlerContext.bind([AbstractChannelHandlerContext.java:491](https://AbstractChannelHandlerContext.java:491)) at io.netty.channel.DefaultChannelPipeline.bind([DefaultChannelPipeline.java:973](https://DefaultChannelPipeline.java:973)) at org.cloudburstmc.netty.channel.proxy.ProxyChannel.bind([ProxyChannel.java:188](https://ProxyChannel.java:188)) at [io.netty.bootstrap.AbstractBootstrap$2.run](https://io.netty.bootstrap.AbstractBootstrap$2.run)([AbstractBootstrap.java:356](https://AbstractBootstrap.java:356)) at io.netty.util.concurrent.AbstractEventExecutor.runTask([AbstractEventExecutor.java:174](https://AbstractEventExecutor.java:174)) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute([AbstractEventExecutor.java:167](https://AbstractEventExecutor.java:167)) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks([SingleThreadEventExecutor.java:470](https://SingleThreadEventExecutor.java:470)) at [io.netty.channel.nio.NioEventLoop.run](https://io.netty.channel.nio.NioEventLoop.run)([NioEventLoop.java:569](https://NioEventLoop.java:569)) at [io.netty.util.concurrent.SingleThreadEventExecutor$4.run](https://io.netty.util.concurrent.SingleThreadEventExecutor$4.run)([SingleThreadEventExecutor.java:997](https://SingleThreadEventExecutor.java:997)) at [io.netty.util.internal.ThreadExecutorMap$2.run](https://io.netty.util.internal.ThreadExecutorMap$2.run)([ThreadExecutorMap.java:74](https://ThreadExecutorMap.java:74)) at [io.netty.util.concurrent.FastThreadLocalRunnable.run](https://io.netty.util.concurrent.FastThreadLocalRunnable.run)([FastThreadLocalRunnable.java:30](https://FastThreadLocalRunnable.java:30)) ... 1 more 


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.20 Minecraft Version ID: 1.20 Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.1, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation Memory: 1147282080 bytes (1094 MiB) / 2751463424 bytes (2624 MiB) up to 7491026944 bytes (7144 MiB) CPUs: 16 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 7 5700G with Radeon Graphics Identifier: AuthenticAMD Family 25 Model 80 Stepping 0 Microarchitecture: Zen 3 Frequency (GHz): 3.79 Number of physical packages: 1 Number of physical CPUs: 8 Number of logical CPUs: 16 Graphics card #0 name: NVIDIA GeForce GTX 1660 SUPER Graphics card #0 vendor: NVIDIA (0x10de) Graphics card #0 VRAM (MB): 4095.00 Graphics card #0 deviceId: 0x21c4 Graphics card #0 versionInfo: DriverVersion=31.0.15.3598 Graphics card #1 name: AMD Radeon(TM) Graphics Graphics card #1 vendor: Advanced Micro Devices, Inc. (0x1002) Graphics card #1 VRAM (MB): 4095.00 Graphics card #1 deviceId: 0x1638 Graphics card #1 versionInfo: DriverVersion=31.0.12027.9001 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 3.20 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 8192.00 Memory slot #1 clockSpeed (GHz): 3.20 Memory slot #1 type: DDR4 Memory slot #2 capacity (MB): 8192.00 Memory slot #2 clockSpeed (GHz): 3.20 Memory slot #2 type: DDR4 Memory slot #3 capacity (MB): 8192.00 Memory slot #3 clockSpeed (GHz): 3.20 Memory slot #3 type: DDR4 Virtual memory max (MB): 32915.84 Virtual memory used (MB): 22713.66 Swap memory total (MB): 4352.00 Swap memory used (MB): 81.85 JVM Flags: 0 total; Fabric Mods: fabric-api: Fabric API 0.83.0+1.20 fabric-api-base: Fabric API Base 0.4.29+b04edc7a27 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.34+4d8536c927 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.10+b3afc78b27 fabric-block-api-v1: Fabric Block API (v1) 1.0.9+e022e5d127 fabric-command-api-v1: Fabric Command API (v1) 1.2.32+f71b366f27 fabric-command-api-v2: Fabric Command API (v2) 2.2.11+b3afc78b27 fabric-commands-v0: Fabric Commands (v0) 0.2.49+df3654b327 fabric-containers-v0: Fabric Containers (v0) 0.1.61+df3654b327 fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.7+b3afc78b27 fabric-convention-tags-v1: Fabric Convention Tags 1.5.3+b3afc78b27 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.18+aeb40ebe27 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.1.10+b3afc78b27 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.51+b3afc78b27 fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.21+b3afc78b27 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.0+b3afc78b27 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.61+df3654b327 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.38+b04edc7a27 fabric-item-api-v1: Fabric Item API (v1) 2.1.26+b3afc78b27 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.7+b3afc78b27 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.20+b3afc78b27 fabric-loot-api-v2: Fabric Loot API (v2) 1.1.37+b3afc78b27 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.41+9e7660c627 fabric-message-api-v1: Fabric Message API (v1) 5.1.6+b3afc78b27 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.47+b3afc78b27 fabric-networking-api-v1: Fabric Networking API (v1) 1.3.8+b3afc78b27 fabric-networking-v0: Fabric Networking (v0) 0.3.48+df3654b327 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.0.6+b3afc78b27 fabric-particles-v1: Fabric Particles (v1) 1.0.28+b3afc78b27 fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.18+b3afc78b27 fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.2.6+b3afc78b27 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.33+b3afc78b27 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.26+b3afc78b27 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.4+b3afc78b27 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.7+f7923f6d27 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.27+b3afc78b27 fabric-transfer-api-v1: Fabric Transfer API (v1) 3.2.2+b3afc78b27 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.2.0+b3afc78b27 fabricloader: Fabric Loader 0.14.21 floodgate: Floodgate-Fabric 2.2.0-SNAPSHOT adventure-platform-fabric: adventure-platform-fabric 5.8.0-SNAPSHOT 
net_kyori_adventure-api: adventure-api 4.13.0
net_kyori_adventure-key: adventure-key 4.13.0
net_kyori_adventure-platform-api: adventure-platform-api 4.2.0
net_kyori_adventure-text-logger-slf4j: adventure-text-logger-slf4j 4.13.0
net_kyori_adventure-text-minimessage: adventure-text-minimessage 4.13.0
net_kyori_adventure-text-serializer-gson: adventure-text-serializer-gson 4.13.0
net_kyori_adventure-text-serializer-plain: adventure-text-serializer-plain 4.13.0
net_kyori_examination-api: examination-api 1.3.0
net_kyori_examination-string: examination-string 1.3.0
 cloud: Cloud 1.8.3 
cloud_commandframework_cloud-brigadier_: cloud-brigadier 1.8.3
cloud_commandframework_cloud-core_: cloud-core 1.8.3
cloud_commandframework_cloud-services_: cloud-services 1.8.3
io_leangen_geantyref_geantyref: geantyref 1.3.13
 geyser-fabric: Geyser-Fabric 2.1.1-SNAPSHOT fabric-permissions-api-v0: fabric-permissions-api 0.2-SNAPSHOT java: Java HotSpot(TM) 64-Bit Server VM 17 minecraft: Minecraft 1.20 Server Running: true Player Count: 0 / 20; \[\] Data Packs: vanilla, fabric Enabled Feature Flags: minecraft:vanilla World Generation: Stable Is Modded: Definitely; Server brand changed to 'fabric' Type: Dedicated Server (map\_server.txt) 
submitted by Xcissors280 to admincraft [link] [comments]


2023.06.08 09:16 Cit1zeN4 The SSL connection could not be established

I am developing a project using ASP.NET Core WebAPI, and when I try to debug this one, I get the following error message:
System.Net.WebException: The SSL connection could not be established, see inner exception. - System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. - System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request) at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate) at PuppeteerSharp.BrowserFetcher.DownloadAsync(String revision) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\BrowserFetcher.cs:line 200 at WebAPI.Services.DownLoaderService.GetLoadedPage(String uri, String body, Dictionary`2 headers, Boolean waitNavigation) in /media/MYDATA/Dev/WebApi/WebAPI/Services/DownLoaderService.cs:line 272 at WebAPI.Services.Parsers.SberbankService.Test() in /media/MYDATA/Dev/WebApi/WebAPI/Services/Parsers/SberbankService.cs:line 17 at WebAPI.Controllers.ParseController.Sberbank(String codeStart, Int32 pageCount) in /media/MYDATA/Dev/WebApi/WebAPI/Controllers/ParseController.cs:line 151 at lambda_method24(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 
I used the following commands to solve this problem, but it didn't work:
dotnet dev-certs https --clean dotnet dev-certs https --trust 
I know that the last command cannot be executed automatically and I followed the instructions from Microsoft, but it also didn't work.
But when I decide to validate my certificate with openssl, I get the following message:
openssl verify dotnet-devcert.crt CN = localhost error 18 at 0 depth lookup: self signed certificate error dotnet-devcert.crt: verification failed 
I think the problem is in openssl because it doesn't validate the certificate.
Please help me solve the problem, I don't want to install Windows again. I have already decided for too long to switch to Linux
submitted by Cit1zeN4 to pop_os [link] [comments]


2023.06.08 09:15 Cit1zeN4 The SSL connection could not be established

I am developing a project using ASP.NET Core WebAPI, and when I try to debug this one, I get the following error message:
System.Net.WebException: The SSL connection could not be established, see inner exception. - System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. - System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request) at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate) at PuppeteerSharp.BrowserFetcher.DownloadAsync(String revision) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\BrowserFetcher.cs:line 200 at WebAPI.Services.DownLoaderService.GetLoadedPage(String uri, String body, Dictionary`2 headers, Boolean waitNavigation) in /media/MYDATA/Dev/WebApi/WebAPI/Services/DownLoaderService.cs:line 272 at WebAPI.Services.Parsers.SberbankService.Test() in /media/MYDATA/Dev/WebApi/WebAPI/Services/Parsers/SberbankService.cs:line 17 at WebAPI.Controllers.ParseController.Sberbank(String codeStart, Int32 pageCount) in /media/MYDATA/Dev/WebApi/WebAPI/Controllers/ParseController.cs:line 151 at lambda_method24(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 
I used the following commands to solve this problem, but it didn't work:
dotnet dev-certs https --clean dotnet dev-certs https --trust 
I know that the last command cannot be executed automatically and I followed the instructions from Microsoft, but it also didn't work.
But when I decide to validate my certificate with openssl, I get the following message:
openssl verify dotnet-devcert.crt CN = localhost error 18 at 0 depth lookup: self signed certificate error dotnet-devcert.crt: verification failed 
I think the problem is in openssl because it doesn't validate the certificate.
Please help me solve the problem, I don't want to install Windows again. I have already decided for too long to switch to Linux
submitted by Cit1zeN4 to linuxquestions [link] [comments]


2023.06.08 09:14 Cit1zeN4 The SSL connection could not be established

I am developing a project using ASP.NET Core WebAPI, and when I try to debug this one, I get the following error message:
System.Net.WebException: The SSL connection could not be established, see inner exception. - System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. - System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request) at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate) at PuppeteerSharp.BrowserFetcher.DownloadAsync(String revision) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\BrowserFetcher.cs:line 200 at WebAPI.Services.DownLoaderService.GetLoadedPage(String uri, String body, Dictionary`2 headers, Boolean waitNavigation) in /media/MYDATA/Dev/WebApi/WebAPI/Services/DownLoaderService.cs:line 272 at WebAPI.Services.Parsers.SberbankService.Test() in /media/MYDATA/Dev/WebApi/WebAPI/Services/Parsers/SberbankService.cs:line 17 at WebAPI.Controllers.ParseController.Sberbank(String codeStart, Int32 pageCount) in /media/MYDATA/Dev/WebApi/WebAPI/Controllers/ParseController.cs:line 151 at lambda_method24(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 
I used the following commands to solve this problem, but it didn't work:
dotnet dev-certs https --clean dotnet dev-certs https --trust 
I know that the last command cannot be executed automatically and I followed the instructions from Microsoft, but it also didn't work.
But when I decide to validate my certificate with openssl, I get the following message:
openssl verify dotnet-devcert.crt CN = localhost error 18 at 0 depth lookup: self signed certificate error dotnet-devcert.crt: verification failed 
I think the problem is in openssl because it doesn't validate the certificate.
Please help me solve the problem, I don't want to install Windows again. I have already decided for too long to switch to Linux
submitted by Cit1zeN4 to linux4noobs [link] [comments]


2023.06.08 09:05 AutoModerator /r/NintendoSwitch's Daily Question Thread (06/08/2023)

/NintendoSwitch's Daily Question Thread

The purpose of this thread is to more accurately connect users seeking help with users who want to provide that help. Our regular "Helpful Users" certainly have earned their flairs!

Before asking your question...

Helpful Links

Wiki Resources

Wiki Accessory Information

  • Accessories - Starter information about controllers, chargers, cables, screen protectors, cases, headsets, LAN adapters, and more.
  • MicroSD cards - Some more in-depth information about MicroSD cards including what size you should get and which brands are recommended.
  • Carrying Cases - An expanded list of common carrying cases available for the Switch.

Helpful Reddit Posts

Third Party Links

Reminders

  • We have a #switch-help channel in our Discord server.
  • Instructions and links to information about homebrew and hacking are against our rules and should take place in their relevant subreddits.
  • Please be patient. Not all questions get immediate answers. If you have an urgent question about something that's gone wrong, consider other resources like Nintendo's error code lookup or help documents on the Switch.
  • Make sure to follow Rule #1 of this subreddit: Remember the human, and be polite when you ask or answer questions.
submitted by AutoModerator to NintendoSwitch [link] [comments]


2023.06.08 06:19 planetidiot How to make enum-driven CustomEditor script that allows me to drag prefabs to each field in the inspector, and then instantiate them in code?

How to make enum-driven CustomEditor script that allows me to drag prefabs to each field in the inspector, and then instantiate them in code?
I've never messed with the CustomEditor stuff before and was hoping to figure this out.
Normally I would just use a public Generic List, assign the prefabs and internally keep track of the enum order whenever I change things (manually reassign which prefab goes with what, shuffle and reassign if I insert something). But I'd ideally like to be able to add, remove and change the enum values during development until I've settled on the final ones, have the ones that didn't change stick, and be able to read the names in the inspector so I easily can tell what's missing or if something is incorrectly assigned.
This is the CreatureSpawnerEditor script that goes along with a CreatureSpawner script (which currently does nothing so I've not included it here):

using UnityEngine; using UnityEditor; namespace Creatures { [CustomEditor(typeof(CreatureSpawner))] public class CreatureSpawnerEditor : Editor { public override void OnInspectorGUI() { serializedObject.Update(); CreatureSpawner creatureSpawner = (CreatureSpawner)target; foreach (CreatureLookup.CreatureTypes creatureType in System.Enum.GetValues(typeof(CreatureLookup.CreatureTypes))) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(creatureType.ToString(), GUILayout.Width(100)); EditorGUILayout.ObjectField(null, typeof(GameObject), false); EditorGUILayout.EndHorizontal(); } serializedObject.ApplyModifiedProperties(); } } } 
This *looks* really good, I get all the creatures listed from the enum in the inspector. There's a field for the GameObject next to each one, but of course it doesn't *do* anything, and I have no idea how I would get the values back out again. Is there a way to do this?

The currently useless but nice-looking custom editor bits
-----------------------
EDIT! nulldiver over in /UnityHelp got me on the right path. This code does pretty much exactly what I want. It doesn't "reorder" if I delete an enum, but since I can read the labels I can clearly tell when things are out of whack. The only slight issue is if I delete an enum, there's an extra value at the end, which I've added a Remove Empty button to sort out. Here's the example code and it seems good to me!

using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEditor; using UnityEngine; [Serializable] public class EnumObject : IEnumerable { [SerializeField] private List enumList = new List(); [SerializeField] private List gameObjectList = new List(); public EnumObject() { enumList = Enum.GetValues(typeof(SimpleExample.ExampleEnum)).Cast().ToList(); gameObjectList = new List(enumList.Count); // Initialize gameObjectList with null values for (int i = 0; i < enumList.Count; i++) { gameObjectList.Add(null); } } public GameObject this[SimpleExample.ExampleEnum index] { get => gameObjectList[(int)index]; set => gameObjectList[(int)index] = value; } public void RemoveEmpties() { enumList = Enum.GetValues(typeof(SimpleExample.ExampleEnum)).Cast().ToList(); if (enumList.Count < gameObjectList.Count) { int diff = gameObjectList.Count - enumList.Count; gameObjectList.RemoveRange(gameObjectList.Count - diff - 1, diff); } } public IEnumerator GetEnumerator() => enumList.GetEnumerator(); } public class SimpleExample : MonoBehaviour { public enum ExampleEnum { One, Two, Four } [SerializeField] public EnumObject enumObject = new EnumObject(); private void Start() { GameObject.Instantiate(enumObject[ExampleEnum.One]); GameObject.Instantiate(enumObject[ExampleEnum.One]); GameObject.Instantiate(enumObject[ExampleEnum.One]); GameObject.Instantiate(enumObject[ExampleEnum.One]); GameObject.Instantiate(enumObject[ExampleEnum.One]); } } [CustomEditor(typeof(SimpleExample))] public class SimpleExampleInspector : Editor { public override void OnInspectorGUI() { var simpleExample = (SimpleExample)target; foreach (SimpleExample.ExampleEnum exampleEnum in simpleExample.enumObject) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(exampleEnum.ToString(), GUILayout.Width(100)); EditorGUI.BeginChangeCheck(); simpleExample.enumObject[exampleEnum] = (GameObject)EditorGUILayout.ObjectField(simpleExample.enumObject[exampleEnum], typeof(GameObject), false); if (EditorGUI.EndChangeCheck()) { EditorUtility.SetDirty(simpleExample); } EditorGUILayout.EndHorizontal(); } if (GUILayout.Button("Remove Empty")) { // Call the empty method for Remove button simpleExample.enumObject.RemoveEmpties(); } } } 

submitted by planetidiot to Unity3D [link] [comments]


2023.06.08 04:27 planetidiot How to make enum-driven CustomEditor that allows me to drag prefabs to each field, and get them in code?

I've gotten this much:
using UnityEngine; using UnityEditor; namespace Creatures { [CustomEditor(typeof(CreatureSpawner))] public class CreatureSpawnerEditor : Editor { public override void OnInspectorGUI() { serializedObject.Update(); CreatureSpawner creatureSpawner = (CreatureSpawner)target; foreach (CreatureLookup.CreatureTypes creatureType in System.Enum.GetValues(typeof(CreatureLookup.CreatureTypes))) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(creatureType.ToString(), GUILayout.Width(100)); EditorGUILayout.ObjectField(null, typeof(GameObject), false); EditorGUILayout.EndHorizontal(); } serializedObject.ApplyModifiedProperties(); } } } 
It got me really excited to see the creature types showing up! However, I have absolutely no idea how to get these values OUT. How do I use them from my CreatureSpawner code? I want to be able to call SpawnCreature(creatureType) and have it instantiate the prefab assigned in the editor.

submitted by planetidiot to UnityHelp [link] [comments]


2023.06.08 01:51 TheBlackMini 'Patching' YAML using Ansible?

RESOLVED: See comment below
I've got this weird problem and I'm hoping it's easy to resolve.
Basically the code below will bring in the yaml and combine the yaml from the vars but instead of parsing the jinja ansible_hostname it prints {{ ansible_hostname }} in the yaml!? Keep in mind that this is just an example of what I'm trying to do.
Also, if there is a simpler way to achieve this I'm all for it.
yaml yaml test: ansible: fun: sometimes terraform: fun: kinda
ansible playbook

```yaml

actual output
yaml test: ansible: fun: sometimes terraform: fun: kinda '{{ ansible_hostname }}': node: node01 ip: 10.0.0.1
desired output yaml test: ansible: fun: sometimes terraform: fun: kinda node01: node: node01 ip: 10.0.0.1
EDIT: Swapped to markdown for easy code formatting
submitted by TheBlackMini to ansible [link] [comments]


2023.06.07 18:08 Joadm Ayuda con CORS en .NET Core 6 Desespreadisímo

Estoy teniendo problemas con el CORS hace como 5 días y no puedo resolverlo, ya estoy hasta las pelotas. El soporte del hosting tampoco ayuda mucho. En la consola del navegador me tira todo el tiempo este error:
XHRPOST
https://api2.miPaginaWeb.com
CORS Missing Allow Origin
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api2.miPaginaWeb.com. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.
Y el log del servidor a ellos les da este error:
Application '/LM/W3SVC/60/ROOT' with physical root 'E:\Inetpub\vhosts\pymgestionesprueba.online\server\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs: warn: Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository[50] Using an in-memory repository. Keys will not be persisted to storage. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[59] Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {3c8c9530-643c-4234-98fb-11927a5206b9} may be persisted to storage in unencrypted form. crit: Microsoft.AspNetCore.Hosting.Diagnostics[6] Application startup exception System.InvalidOperationException: The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the CORS policy by listing individual origins if credentials needs to be supported. at Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder.Build() at Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions.AddPolicy(String name, Action`1 configurePolicy) at Program.<>c.<
$>b__0_2(CorsOptions options) in C:\Users\JoacoPC\Documents\GitHub\pymgestiones\pym_server\PyM\Program.cs:line 62 at Microsoft.Extensions.Options.ConfigureNamedOptions`1.Configure(String name, TOptions options) at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name) at Microsoft.Extensions.Options.UnnamedOptionsManager`1.get_Value() at Microsoft.AspNetCore.Cors.Infrastructure.CorsService..ctor(IOptions`1 options, ILoggerFactory loggerFactory) at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.Internal.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_0.b__0(RequestDelegate next) at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build() at Microsoft.AspNetCore.Builder.WebApplicationBuilder.b__27_0(RequestDelegate next) at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build() at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) Unhandled exception. System.InvalidOperationException: The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the CORS policy by listing individual origins if credentials needs to be supported. at Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder.Build() at Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions.AddPolicy(String name, Action`1 configurePolicy) at Program.<>c.<
$>b__0_2(CorsOptions options) in C:\Users\JoacoPC\Documents\GitHub\pymgestiones\pym_server\PyM\Program.cs:line 62 at Microsoft.Extensions.Options.ConfigureNamedOptions`1.Configure(String name, TOptions options) at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name) at Microsoft.Extensions.Options.UnnamedOptionsManager`1.get_Value() at Microsoft.AspNetCore.Cors.Infrastructure.CorsService..ctor(IOptions`1 options, ILoggerFactory loggerFactory) at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.Internal.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_0.b__0(RequestDelegate next) at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build() at Microsoft.AspNetCore.Builder.WebApplicationBuilder.b__27_0(RequestDelegate next) at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build() at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at Microsoft.AspNetCore.Builder.WebApplication.Run(String url) at Program.
$(String[] args) in C:\Users\JoacoPC\Documents\GitHub\pymgestiones\pym_server\PyM\Program.cs:line 96
Mi código de CORS en el Program.cs es este:
builder.Services.AddCors(options => { options.AddPolicy("production", builder => { builder.WithOrigins("https://miPaginaWeb.com") .WithMethods("POST", "PUT", "GET") .AllowAnyHeader() .AllowCredentials() .SetIsOriginAllowed(origin => true); }); }); 
Alguien tiene alguna idea como puedo solucionar esto? Los del soporte me mandaron este link, pero intenté lo que dicen y tampoco funciona.
submitted by Joadm to devsarg [link] [comments]


2023.06.07 09:05 AutoModerator /r/NintendoSwitch's Daily Question Thread (06/07/2023)

/NintendoSwitch's Daily Question Thread

The purpose of this thread is to more accurately connect users seeking help with users who want to provide that help. Our regular "Helpful Users" certainly have earned their flairs!

Before asking your question...

Helpful Links

Wiki Resources

Wiki Accessory Information

  • Accessories - Starter information about controllers, chargers, cables, screen protectors, cases, headsets, LAN adapters, and more.
  • MicroSD cards - Some more in-depth information about MicroSD cards including what size you should get and which brands are recommended.
  • Carrying Cases - An expanded list of common carrying cases available for the Switch.

Helpful Reddit Posts

Third Party Links

Reminders

  • We have a #switch-help channel in our Discord server.
  • Instructions and links to information about homebrew and hacking are against our rules and should take place in their relevant subreddits.
  • Please be patient. Not all questions get immediate answers. If you have an urgent question about something that's gone wrong, consider other resources like Nintendo's error code lookup or help documents on the Switch.
  • Make sure to follow Rule #1 of this subreddit: Remember the human, and be polite when you ask or answer questions.
submitted by AutoModerator to NintendoSwitch [link] [comments]