Recent Questions - Stack Overflow |
- How to remove � unicode block in string with python?
- How to run a SC Orchestrator runbook for each data in a CSV file?
- how to use Application.WorksheetFunction.CountA to count sheets from 1 to 31
- Which tree strategy to choose that saves sibling position?
- SonarQube-scan-action cannot find out the files
- get original position of x and y after transform of UIView in swift
- Looping through tagged resources in Python
- In Jetpack Compose Vector Image is not working with Android 5.0
- How to get Newvalue in next line
- Limit concurrent requests to php in Apache
- Is it possible to create referring column / foreign keys in same table
- Lambda is not working on text column to create new column
- Assign values of array 1 to array 2 in such a way that no value should repeat using PHP
- How to add style only to specific column based on its id using React Table
- What is date format for 07th November 2021?
- Is there any way to allow generate_otp_backup_codes using validate_and_consume_otp?
- How to get raw date string from date picker?
- Transact SQL - Get first character every 5 characters of a variable length string
- Extract text between 2 similar or different strings separately in shell script
- Why method in in mixin returns object Promise? [duplicate]
- Get the final price with discount but only if column is not NULL. SQL
- Reddit Notification Bot
- Why Selenium headless mode give problems?
- When sending embeds, should the last line be channel.send({ embeds: [exampleEmbed] })?
- How should work with student files in Python like this one?
- Google Cloud Data Catalog - Node JS Library giving Error: 5 NOT_FOUND: Project does not exist
- Spring Boot, OAuth2 authentication is lost between requests
- Android Studio Emulator error "The emulator process for AVD was killed"
- Import msg file with outlook Web
- How to get Spring RabbitMQ to create a new Queue?
| How to remove � unicode block in string with python? Posted: 12 Jan 2022 03:08 AM PST how to remove the unknown � unicode block in json string using python: "U+FFFD � REPLACEMENT CHARACTER used to replace an unknown, unrecognized, or unrepresentable character" | ||||||||||||||||||||||||||||||||||||||||||
| How to run a SC Orchestrator runbook for each data in a CSV file? Posted: 12 Jan 2022 03:08 AM PST I have a CSV file with a list of users that need to be created. However, depending on a specific parameter of the user the process of its creation is different. Here is the format of my csv file: I was thinking on creating a runbook like this: My Run .Net Script, retrieves all the information from the file and stores the users in different variables depending on their Type: Then the variable will be sent through Published Data to their respective Runbook to be created. My question is, is there a way to run the runbooks Create User Type A and Create User Type, for each user? The problem that I keep running into is that the type of the variable is an Object[] and Orchestrator only passes String[] type. I hope my issue made sense. I'm open to respond to any question in case of doubt. | ||||||||||||||||||||||||||||||||||||||||||
| how to use Application.WorksheetFunction.CountA to count sheets from 1 to 31 Posted: 12 Jan 2022 03:08 AM PST need help with that > i try to use how to use Application.WorksheetFunction.CountA to count sheets from 1 to 31 i can't do it .. any help that what i try : number = Application.WorksheetFunction.CountA(Worksheets("1:31")) thanks for any help | ||||||||||||||||||||||||||||||||||||||||||
| Which tree strategy to choose that saves sibling position? Posted: 12 Jan 2022 03:08 AM PST Within a node, when the position of the children matters, which tree pattern (Adjacency List, Materialized Path, Nested Set, Closure Table, etc...) adopt to store and fetch the whole tree ordered by these positions? Which is the best in terms of ease of use and performances? Example Given these hierarchical data: I want to be able to switch the position of the given nodes | ||||||||||||||||||||||||||||||||||||||||||
| SonarQube-scan-action cannot find out the files Posted: 12 Jan 2022 03:08 AM PST I set up self-hosted runners on EKS, and I am using "SonarSource/sonarcloud-github-action@master" in Github Actions. I face the issue that sonarcloud-github-action cannot find out "Project code" in correct path. If i am using the Runner hosted by github, SonarQube find the files. The configuration is exact the same. Even I use -Dsonar.projectKey to pass the project key, there is no files which SonarQube can scan. | ||||||||||||||||||||||||||||||||||||||||||
| get original position of x and y after transform of UIView in swift Posted: 12 Jan 2022 03:08 AM PST I've created CustomView which is equal to UIView. Nothing did in subclass. When I add that customView's instance to ViewController run time I need to apply rotate and scale transformation which I did via PinchGesture and RotateGesture. Here is my question, How can I get original position of X and Y after apply transformation? I've followed this solution but it not giving correct result | ||||||||||||||||||||||||||||||||||||||||||
| Looping through tagged resources in Python Posted: 12 Jan 2022 03:08 AM PST Basically Im trying to target clusters based on their tag. In the code below I can target the cluster with the tag 'AutoOn' and 'true' However if I have one other cluster with tags how can I also include that in my script so I can also start it up? Is it another if statement? Im a noob to Python but have created this script that successfully targets the first cluster | ||||||||||||||||||||||||||||||||||||||||||
| In Jetpack Compose Vector Image is not working with Android 5.0 Posted: 12 Jan 2022 03:08 AM PST I am trying to import a vector like so: It looks like it works in all versions of android except Following is is the error log: Is there a workaround or shall I make it .png? In that case it works fine but I would prefer .svg for a crisper image. | ||||||||||||||||||||||||||||||||||||||||||
| How to get Newvalue in next line Posted: 12 Jan 2022 03:08 AM PST I have a drop down list in excel and a mutiple choice code. But the new values doenst show in a new line with normal excel settings and vbCrLf doesn't work. The new value has to be in the same cell but in a new line. thanks in advance | ||||||||||||||||||||||||||||||||||||||||||
| Limit concurrent requests to php in Apache Posted: 12 Jan 2022 03:08 AM PST Config is following: I want to limit number of concurrent requests to 10 per host in php. For example host1.example.com 10 host2.example.net 10 But only for .php, other requests not counted. How to achieve this with mod_qos or other module for Apache? I have not found examples in howtos on this subject. | ||||||||||||||||||||||||||||||||||||||||||
| Is it possible to create referring column / foreign keys in same table Posted: 12 Jan 2022 03:08 AM PST I hope I explain this as clear as needed. I would like to create a column referring to a different column in the same table, while both these columns aren't PK's and the first(existing column) isn't a FK yet, just a column. The second one does not exist. The table already exist and has data. Existing situation example: Desired situation example: Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||
| Lambda is not working on text column to create new column Posted: 12 Jan 2022 03:08 AM PST I'm trying to add a column with lambda but it doesn't seem to work. What I want is to create a new column called "flag_risk_and_sentiment" that will take a binary value. if sentiment == "NEG" and flag_risk == 1 , then it should return 1 , else 0. That's my attempt: However I get this message : Any idea why? | ||||||||||||||||||||||||||||||||||||||||||
| Assign values of array 1 to array 2 in such a way that no value should repeat using PHP Posted: 12 Jan 2022 03:08 AM PST I have 2 arrays as given below I am trying to find a way to assign a value from Example:- This way as many combinations as possible, I have tried many ways but could not able to figure it out. The following thing should not happen | ||||||||||||||||||||||||||||||||||||||||||
| How to add style only to specific column based on its id using React Table Posted: 12 Jan 2022 03:08 AM PST I cannot figure out how to style specific column based on its And below You can see how implementation of few columns looks like: I was going through the docs but didn't find the answer. | ||||||||||||||||||||||||||||||||||||||||||
| What is date format for 07th November 2021? Posted: 12 Jan 2022 03:08 AM PST I want the date format as 07th November 2021. Kindly let me know the format. thanks in advance. | ||||||||||||||||||||||||||||||||||||||||||
| Is there any way to allow generate_otp_backup_codes using validate_and_consume_otp? Posted: 12 Jan 2022 03:08 AM PST I am using device-two-factor gem for otp generation in rails. I am using generate_otp_backup_code to a specific user for testing purpose which is generating otp successfully. validate_and_consume_otp allows otp created via generate_otp_secret whereas validate_and_consume_otp dosen't allow the backup code otp to login. Is there any way to allow generate_otp_backup_codes via validate_and_consume_otp? tinfoil /devise-two-factor gem 'devise-two-factor' In user.rb devise :two_factor_authenticatable, otp_secret_encryption_key:Rails.application.secrets.secret_key_base devise :two_factor_backupable, otp_backup_code_length: 6, otp_number_of_backup_codes: 10 To generate backup codes: codes = current_user.generate_otp_backup_codes! current_user.save! | ||||||||||||||||||||||||||||||||||||||||||
| How to get raw date string from date picker? Posted: 12 Jan 2022 03:08 AM PST I'm struggling for hours with this seemingly trivial issue. I have a Whenever I choose a date, instead of giving me the date I chose, it gives me a messy moment object, which I can't figure out how to read. All I want is that when I choose "2020-01-18", it should give me precisely this string that the user chose, regardless of timezone, preferably in ISO format. This is not a multi-national website. I just need a plain vanilla date so I can send it to the server, store in db, whatever. Here are some of my trials, so far no luck: It keeps on moving with a few hours, probably to compensate for some timezone bias Thanks! | ||||||||||||||||||||||||||||||||||||||||||
| Transact SQL - Get first character every 5 characters of a variable length string Posted: 12 Jan 2022 03:08 AM PST I have a string that looks like the following A1234B1234C1234 I would like to take the first character every 5 characters. The result would be ABC The string length is variable so the length could be 5, 10 , 20 , 30 ect | ||||||||||||||||||||||||||||||||||||||||||
| Extract text between 2 similar or different strings separately in shell script Posted: 12 Jan 2022 03:08 AM PST I want to extract text between each I've tried something like this Expected Output: | ||||||||||||||||||||||||||||||||||||||||||
| Why method in in mixin returns object Promise? [duplicate] Posted: 12 Jan 2022 03:08 AM PST In vuejs3 app I want to use common method, so I put it into mixin resources/js/appMixin.js as : but calling this method in vue file : and outputting about var I see Which is the valid way? That question seems a bit specific then provided link, as method is inside of mixin... Thanks in advance! | ||||||||||||||||||||||||||||||||||||||||||
| Get the final price with discount but only if column is not NULL. SQL Posted: 12 Jan 2022 03:08 AM PST I use these sql tables with these columns: customers:
orders:
orderitems: (in this table one customer can have multiple rows(items)
products:
So in this case if I want to get the FULL price from the order from customer I use this query: This query is working perfectly. But what if I want to add to this query a discount from discount table: discount:
So I think I will need to create one more column in orders table with name for example: discount_code and if the discount_code column is not empty than subtract the discount value from productprice. SELECT sum( productprice - discount.value ) as fullprice but how can I make this query? Thank you for help! BTW I use MariaDB Have a very nice day! | ||||||||||||||||||||||||||||||||||||||||||
| Posted: 12 Jan 2022 03:07 AM PST I am looking to create a bot for Reddit that looks at a single forum that I'm interested in and notifies me in real time every post that happens. I wanted to create this due to reddit notification system not being great and timing is off. How could I go about creating something like this? Thanks | ||||||||||||||||||||||||||||||||||||||||||
| Why Selenium headless mode give problems? Posted: 12 Jan 2022 03:08 AM PST I have problem running in headless mode with selenium. Here is the options i tried. I have tried all, some, combined, etc: I also added some pics to show you my code so maybe its easier to understand: | ||||||||||||||||||||||||||||||||||||||||||
| When sending embeds, should the last line be channel.send({ embeds: [exampleEmbed] })? Posted: 12 Jan 2022 03:08 AM PST I'm kind of stuck with this portion of the code. I'm currently coding a discord bot for a school project as well as personal use. The main purpose of the discord bot is to send embeds and casual commands where someone says "goodnight" and the bot will respond goodnight. For the goodnight part of the code, I have it pretty much written correctly, but how do I get it to respond by tagging the persons discord tag? such as instead of my current code being Secondly, the embed portion of the code is what I'm struggling with the most. I'm pretty much following the guides on https://discordjs.guide as well as some youtube videos, but I seem to not be able to find the answer. I'm getting the error "channel.send({ embeds: [exampleEmbed] }); ^
My code for the example embed is: | ||||||||||||||||||||||||||||||||||||||||||
| How should work with student files in Python like this one? Posted: 12 Jan 2022 03:08 AM PST The first part includes 6 students with first and last names. The second part includes 3 lessons(java, c#, python). The third part shows which student has taken these courses. These three parts are separated with (#) and located in a text file(a.txt). The output should be a list with the sample format, like this: output: | ||||||||||||||||||||||||||||||||||||||||||
| Google Cloud Data Catalog - Node JS Library giving Error: 5 NOT_FOUND: Project does not exist Posted: 12 Jan 2022 03:08 AM PST I am trying to use Nodejs Library for Google Cloud Data Catalog. For one project, it is working perfectly fine but for others it is giving me Project does not exist error, while I can see the project with that ID in GCP. Example error received in application code here is a sample code that causes this error Auth is happening via key generated for service account. I tried comparing roles/permissions for the working project with non-working one but couldn't find anything obvious. I am sure I must be missing something. Any help would be appreciated. Thanks | ||||||||||||||||||||||||||||||||||||||||||
| Spring Boot, OAuth2 authentication is lost between requests Posted: 12 Jan 2022 03:07 AM PST I use spring security builtin oauth2 social login option, I implemented an OAuth2LoginSuccess class with the onAuthenticationSuccess method and inside of it I fetch the user the corresponds to the social id I got from the oauth: If I debug inside the onAuthenticationSuccess I can see a valid auth with all the user details. after the login I redirect to the home page and i send a auth get request to the server to check if there is a user logged in. the problem is that 50% of the times the request is completed successfuly and the user can make authenticated requets. but the other 50% i get redirected automaticly to Login page and when i check the log is see that Spring boot says that the user is unauthenticated and the auth is lost. But in the onAuthenticationSuccess i can always see the correct auth. My ApplicationSecurityConfig looks like this: And this is the function i check if the user is logged in: but when the problem occur it dosen't get to run the controller because spring security return unauthrozed error before. Thank you in advance for your help | ||||||||||||||||||||||||||||||||||||||||||
| Android Studio Emulator error "The emulator process for AVD was killed" Posted: 12 Jan 2022 03:08 AM PST This is the error I'm getting: The emulator process for AVD Pixel_XL_API_30 was killed. All virtual devices don't run. I've tried deleting the directory for them and then creating new ones. | ||||||||||||||||||||||||||||||||||||||||||
| Import msg file with outlook Web Posted: 12 Jan 2022 03:08 AM PST Is it possible to open a msg file with Outlook Web? I have tried to upload the msg file to onenote, but i do not know how to put it into the Web Interface. I just need a already prepared msg file from another person to save it as draft in my outlook web interface. | ||||||||||||||||||||||||||||||||||||||||||
| How to get Spring RabbitMQ to create a new Queue? Posted: 12 Jan 2022 03:08 AM PST In my (limited) experience with rabbit-mq, if you create a new listener for a queue that doesn't exist yet, the queue is automatically created. I'm trying to use the Spring AMQP project with rabbit-mq to set up a listener, and I'm getting an error instead. This is my xml config: I get this in my RabbitMq logs: And a similar error from AMQP: It would seem from the stack trace that the queue is getting created in a "passive" mode- Can anyone point out how I would create the queue not using the passive mode so I don't see this error? Or am I missing something else? |
| 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