Recent Questions - Stack Overflow |
- approximating Euler’s number e to within 0.001 in python
- How to use 2 text files at once in python
- Checking For Duplicates While Decoding JSON (SWIFT)
- inserting brokenly formatted text into PostgreSQL table despite encoding errors with \copy
- max weight on code and current weight not changing and staying equal on a hx711 load cell attached to an lcd
- Is there a way to make my aside be aligned to the right?
- Best practices for managing modules in a Node project
- What is the current status of the Oauth 2.0 Assited Token Flow draft?
- Spyder won't start in any environment or standalone
- Why XOR value is empty in BitSet in java?
- Unknown Error Cause While Debugging WPF - 'System.AccessViolationException' occurred in SkiaSharp.dll
- Where should I addTarget() for UIButton in a custom UICollectionViewCell view or model?
- POST Status Code: 404 Not Found ERROR: Cannot POST /api/users/signup
- Is there a way around SyntaxError: unexpected EOF while parsing? [closed]
- Compiler says to add type parameters, but I don't think I can in this context
- C++ program with no error goes into a never end input cycle
- Making a search form display inline with Bootstrap 5
- Flutter : best way to store maps locally?
- How to create sorted linked list using array of structure in c
- Where is located the “needs-validation” class in Bootstrap 5?
- Why Bi-LSTM Performed poorly?
- C/C++ Compilation terminated in VS Code [closed]
- How to apply Interface segregation principle?
- A .db file won't open from the server, but will open when copied to hard drive
- Issue with merge task for CDC snowflake using stream and task
- Force User to Select Slicer/Parameter Before Executing SQL
- How do I add job posting schema in my wordpress posts using pandas
- String matching in CUDA shows different result when increase blocks
- How to load extension within chrome driver in selenium with python
- How to request administrator privileges?
approximating Euler’s number e to within 0.001 in python Posted: 28 May 2022 04:25 PM PDT I need to write an algorithm that approximates e using a while loop and returns the number of terms needed to approximate the number. It seems to me like the loop stops after the first iteration but I cannot figure out why. Here's my code: |
How to use 2 text files at once in python Posted: 28 May 2022 04:26 PM PDT I have made a Spanish verb conjugation function which has 2 parameters for the pronoun and verb as shown below: Addionally, I have two text files. One with all of the verbs, and a second one with all of the pronouns. I want to make a for loop which takes the pronoun from one file and the verb from the another and conjugate it. However, I do not know how to do so. Below is what it tried to do: However, in the terminal, instead of the conjugations, I just get the word "None" over and over. I am new to python and am requesting someone to show how to do this properly. Thanks in advance. |
Checking For Duplicates While Decoding JSON (SWIFT) Posted: 28 May 2022 04:23 PM PDT I am writing swiftUI code in xcode, i need to decode some json. im using the decoder i see online, and I understand how it works and it is working perfectly. What i am doing is parsing a json full of data about a list of photo albums. however i want to check for DUPLICATE photo albums and do soemthing when i find one. here is the decoding code im using: Thanks in advance :) |
inserting brokenly formatted text into PostgreSQL table despite encoding errors with \copy Posted: 28 May 2022 04:23 PM PDT I have a text field (utf8) that misbehaves a little. originally fetched it includes the character sequence So I just want to insert the raw data as is. I have tried 2 ways to insert this row.
So far so good.
(when printing the data from the python script to console it shows up as Thus clearly there is a difference between what peewee does and my naive printing of the string from python (peewee and print receive the same string as input). How do I encode this string correctly so I can use \copy to populate the row? |
Posted: 28 May 2022 04:22 PM PDT I am building a hx711-based weight scale that displays the measured weight on an LCD, along with the weight the LCD shows a "max weight" If weight>max weight the buzzer will buzz. I have written code to perform these functions but, the weight always goes to zero no matter what and I cant set the max weight. I will include a schematic and the code here: |
Is there a way to make my aside be aligned to the right? Posted: 28 May 2022 04:22 PM PDT So, I'm working on a project for my web design class and a sidebar is required to get to other pages. The teacher recommended I use the aside tag, so I have, however I've run into a rather annoying issue that I cant find an answer to. Whenever I try to align the aside to the center right, it clips into the footer, or does the complete opposite, I'm not sure what to do, as w3 schools and other sources have been little to no help. I'm not sure if its just my lack of understanding, or if there's code I'm missing. Either way its rather frustrating. I've included a picture of all my code, just incase some code may be interfering. |
Best practices for managing modules in a Node project Posted: 28 May 2022 04:22 PM PDT So I am building a project in node and for better separation and management of different concerns, I am trying to divide into different modules pieces of code that are not directly associated with my business logic (definitions, extended errors, etc). For improved readability I am using internal packages exploiting this package.json syntax: I am aware of different more evolved tools for managing these kinds of situations or the possibility to create private npm packages but I would like to keep things simple and not deal with the overhead of learning new tools for now. Could this be considered good practice or something to totally avoid? I couldn't find a really satisfying answer searching around so thanks to anyone who can give me some insight or even a suggestion. |
What is the current status of the Oauth 2.0 Assited Token Flow draft? Posted: 28 May 2022 04:21 PM PDT Does anyone know the current status of this draft http://www.watersprings.org/pub/id/draft-ideskog-assisted-token-00.html#:~:text=The%20OAuth%202.0%20authorization%20flow,the%20implicit%20grant%20type%20flow. regaring the Oauth Assisted Token Flow. I tried to search on the internet, but was not able to find this auth flow as a widely adopted method. I wonder what is the current status on this. I might as well contact the author of the draft. Thanks |
Spyder won't start in any environment or standalone Posted: 28 May 2022 04:21 PM PDT Spyder won't start in any environment or standalone.
I've tried,
|
Why XOR value is empty in BitSet in java? Posted: 28 May 2022 04:22 PM PDT I just entered into Advance Java. I don't know why xor() function returning empty set. As i know, XOR return zero for two same bits and 1 for two different bits. So, if I XOR first two bit from Bits One and Bits two that is, 0 and 1 respectively, why does it return empty set. Please explain in detail, if possible and/or necessary. Code } OUTPUT |
Posted: 28 May 2022 04:20 PM PDT I am incredibly new to C# (my knowledge comes exclusively from YouTube tutorials), so please keep this in mind when viewing my novice code! I apologize in advance. I am trying to develop a WPF desktop application using VS2022. Without going into extensive detail, the application needs to be capable of loading and displaying SVG files, as well as storing the path data. For this, I am using the SkiaSharp and Skia.Svg nuget packages. As in the title, when the program tries to run the 'draw' function, it gives the following error: The following are how I initialized the canvas, as well as the 'draw' function itself: canvas: draw function: The "path" string is simply the filepath for the desired svg. The one I've been feeding it for debug purposes is on my desktop, and I am running VS as admin. Again, I'm new to this, so I'm not sure where the error lies or what really causes it. Seeking help in determining the root cause! Please let me know if you need more info, and thank you in advance. |
Where should I addTarget() for UIButton in a custom UICollectionViewCell view or model? Posted: 28 May 2022 04:20 PM PDT I'm struggling with a The problem is that the I've added custom state as well to track the checkbox's state, and I can now set the custom state flag in the data model, but I'm not sure therefore how to trigger the refresh of content when the checkbox is clicked. It's a lot of code and if I have to try to figure out a way to bring it in as an example, I will, but I'm hoping this scenario makes sense to people with more experience with it and they can just steer me in the right direction. Besides the problem I'm having with that, everything works. I have a checkbox, label with SFsymbol, chevron disclosure ... |
POST Status Code: 404 Not Found ERROR: Cannot POST /api/users/signup Posted: 28 May 2022 04:23 PM PDT I'm working on a project using react.js in the frontend and node.js in the backend. I keep getting a Frontend: SignInScreen: userActions.js backend: server.js userRouter.js |
Is there a way around SyntaxError: unexpected EOF while parsing? [closed] Posted: 28 May 2022 04:22 PM PDT I've tried everything, including changing input to raw_input. I'm just looking to see what I'm doing wrong? Error 'Traceback (most recent call last): File "/Users/haydenbradford/Desktop/Python projects/Hospital Patient System/main.py", line 8, in selection = input("Enter 1 or 2 to Select an Option: ") File "", line 0 SyntaxError: unexpected EOF while parsing |
Compiler says to add type parameters, but I don't think I can in this context Posted: 28 May 2022 04:22 PM PDT The compiler complains that type annotations are needed. I was able to fix it by creating an unused variable with type parameters, commented out in the code snippet below. This feels like a weird workaround though, is there some way to add type parameters without needing to do this? It just seems like rust should know the type of Error msg: edit: for clarity I'm using the dashmap crate, which tries to mimic the api of std::hashmap closely, but allows multithreaded access. |
C++ program with no error goes into a never end input cycle Posted: 28 May 2022 04:20 PM PDT This is a simple binary search program, but for some reason, the program just doesn't move on after asking for the value of the key from the user. At first, I thought it is an issue with my compiler, but happens wherever I paste the code, and I don't know why. |
Making a search form display inline with Bootstrap 5 Posted: 28 May 2022 04:24 PM PDT I am trying to create a search form within a page using Bootstrap 5 and the following code: I want the form to be inline, with the text box stretched to fill unused space in the row. I can't figure out how to achieve this. Any help on it? Thanks! |
Flutter : best way to store maps locally? Posted: 28 May 2022 04:23 PM PDT what is the best way to store data locally. Assuming that I'm creating an app that stores transaction and I need to save id(because they may be many transactions with the same name), title, amount and time. Can I do it with shared preferences or is there another way to do it ? Thank you for answering. |
How to create sorted linked list using array of structure in c Posted: 28 May 2022 04:24 PM PDT
Who can find my mistake in the code and explain it? Here is the code: |
Where is located the “needs-validation” class in Bootstrap 5? Posted: 28 May 2022 04:20 PM PDT It's a class used in the form component. One extract here: I used the |
Posted: 28 May 2022 04:24 PM PDT I performed 8 machine learning algorithms on a transliterated English text there bi-lstm accuracy was very poor only 43% can anyone explain the reason behind it? |
C/C++ Compilation terminated in VS Code [closed] Posted: 28 May 2022 04:21 PM PDT Whenever I tried to compile it produce error. |
How to apply Interface segregation principle? Posted: 28 May 2022 04:23 PM PDT I have a public interface that creates a bunch of different specific objects by client, and the only thing in common is that they all need to be serialized as xmls. Something like this: Now this interface started to get big, and I'm definitely sure this is not a good sign. Also every time I inject the interface into a client specific class, that client specific class has access to all the other object creation methods for other clients. Now the first thing I thought about was to just move the object creation method as a private method in client specific class, but this results in quite some big files. Then I thought to use the factory method pattern to create a IXmlFactory with a BuildXml method for the object creation part, but this doesn't seem to work since I have different objects to return. Can anyone give me some advice about what design pattern should I look for? |
A .db file won't open from the server, but will open when copied to hard drive Posted: 28 May 2022 04:21 PM PDT I have a strange issue where I can not open a .db file from my server using RSQLite package in R, but when I copy the file onto my HD I can open it. Other .db files on the server open fine without this error. It's not a permissions issue for the folder, as I can copy a .db file from another folder into this folder and open it fine. The ls -l command on the NAS shows that I have rwx access and all of the other .db files in other folders have the same permissions anyway. Finally, if I move the offending .db file into another folder on the server, I still can not open it. |
Issue with merge task for CDC snowflake using stream and task Posted: 28 May 2022 04:22 PM PDT I have a basic task which merges data from the source table into the target table using a stream.
If the target has a row of id 1 And I insert multiple rows of same id to source at the same time The new data doesn't update and is stuck in the stream. Any ideas on what's causing this issue and how to fix it? |
Force User to Select Slicer/Parameter Before Executing SQL Posted: 28 May 2022 04:23 PM PDT My Power Query expression is mostly a SQL query, taking advantage of query folding with a Snowflake SQL database. My where clause references two parameters that an end user sets in slicers: How can I require that the user selects the slicer/parameter value before the SQL is executed? Currently the SQL executes when the report is opened, and again when the parameter is changed. Perhaps I can make better default values, but most users will still need to adjust the slicers/parameters. The full SQL is complex and has a noticeable load time. I have tried making the two parameters optional, but the Power Query expression becomes invalid:
|
How do I add job posting schema in my wordpress posts using pandas Posted: 28 May 2022 04:24 PM PDT I have this code for adding schema: Then I use this variation for job schema: I combine these two variations like this: this is my content part (which doesn't have problems, this part is working)
|
String matching in CUDA shows different result when increase blocks Posted: 28 May 2022 04:21 PM PDT I'm trying to implement string matching program with CUDA in C and I have th following issue. When I set 1 block and 1 thread per block the result for pattern The text file is:
This is my code: |
How to load extension within chrome driver in selenium with python Posted: 28 May 2022 04:23 PM PDT All my efforts to open chrome browser with Browsec extension enabled are failing. Here is what i tried in last - This results in error "Failed to load extension from . Manifest files is missing or unreadable" After search for this error I get that Manifest.json file should be renamed to manifest.json.txt but doing this resulted in same error. Any help will be highly appreciated |
How to request administrator privileges? Posted: 28 May 2022 04:21 PM PDT Applications must be run with administrator privileges. How to ask the user is? How to verify that he agreed to? How do I know whether already running application as an administrator? Made as described here by the user ChrisW67. The result is not received. If possible, give an example of "Hello world" project. P.S Windows 7. Am writing in Qt Creator. Qt5.2 |
You are subscribed to email updates from Recent Questions - Stack Overflow. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment