Recent Questions - Stack Overflow |
- Java Socket Client-Server Application
- Dealing with multiple Azure Pipelines with multiple Environment targets
- How can i fix this Indentation Error I cant seem to find?
- How to connect and disconnect a surfshark vpn server with python?
- Pandas how to count when string values converted to_numeric is greater than N?
- DirectoryInfo GetFiles without wildcard
- ElasticSearch: My analyzers aren't having an effect on sorting
- Is there a way to programmtically check via an API on that status of Google Workspace Apps?
- Is there a way to display the first two results of each unique id?
- When executing pytest from the root of the project, ModuleNotFoundError: No module name 'main'
- What are True,False and NULL in R functions and How can I character be converted To it?
- how to crop image to text bound using python
- How to get geolocation data on mobile browser in a react application at development environment?
- Write a function to add key-value pairs
- ('float' object cannot be interpreted as an integer) problem is there another built-in function I could possibly use instead of linspace for plotting
- Create a buffer zone around a point of a shapefile which starts at a specific distance from point
- Write a program using Java programming language that asks the user to enter a string of characters [closed]
- I am getting type String is not a subtype of type int in my flutter project
- "The method 'SplashScreen' isn't defined for the type 'MyApp'.". I have tried a lot of things and nothing. Any solution?
- Dynamically Binding parameters to push to SQL Server
- Convert image to webp and send it to nodejs [closed]
- Add String to New Line After Final Pattern Match
- Need a quick start guide to configure SAML 2.0 Single Sign On in Azure Active directory
- Http response cannot be deserialized when it's created from test case
- bar plot in 3d following a given line
- Elasticsearch document -- what does the "input" key do?
- Select a ComboBoxItem when button is clicked
- Android Studio Compose preview render problem
- Snyk Code Upload Results To Dashboard like Monitor
- AWK script- Not showing data
Java Socket Client-Server Application Posted: 24 May 2022 12:47 PM PDT I have to create a client-server application where the client reads input as a string and sends the message to the server, then the server accepts the message, analyzes it(counts length, letters, numbers, digits, and whitespace), and adds those to global statistics. If the client messages a "." the server will send the global stats to the client and close and of course, the client will print the stats. If a normal message it will send the stats for the current entry and the client will print it out and close it. The issue I'm having is my code doesn't seem to run all the way through and I'm not getting my correct output. I'm very new to this so I don't know what I'm doing wrong. Can someone help? And here is my server code |
Dealing with multiple Azure Pipelines with multiple Environment targets Posted: 24 May 2022 12:47 PM PDT I'm trying to set up a pipelines template to streamline releases. We have numerous repos, and multiple team environments that need to utilize this. The release pipeline should look like this: Build -> Dev Deploy -> Test Deploy -> UAT Deploy -> Prod Deploy When the user manually runs the pipeline they should be allowed to specify which environment they are running for (ie: Team 1, Team 2; then the Dev Deploy step knows to use the Team 1 Dev environment for example). I first attempted to use a separate variable template that contained the environments in one spot. This does not work according to Azure Pipelines parameter value from variable template, other than allowing users to type a freeform string which is not ideal. The workarounds as far as I know are:
This is my current workaround, which "works" but is not ideal. UAT/Prod is not tied to a successful Test stage completion, because it would require all Test stages to succeed, and we typically will only deploy to the team's environment that is currently working on the repo. And since not all stages will always run, an app deployed to prod will still show the pipeline is still waiting on stages to run with the blue clock. Has anyone else ran in to a similar problem and come up with a solution besides hardcoding a list of environments in every azure-pipelines.yml? Thanks for the help in advance. |
How can i fix this Indentation Error I cant seem to find? Posted: 24 May 2022 12:47 PM PDT I keep getting a indentation error when trying to add a blit to almost the end of this code, or trying to add anything, Ive been looking for the problem for over an hour but i can't seem to find it could somebody please have a look at it? |
How to connect and disconnect a surfshark vpn server with python? Posted: 24 May 2022 12:46 PM PDT How to connect and disconnect a surfshark vpn server with python? How can I change the vpn location every minute? |
Pandas how to count when string values converted to_numeric is greater than N? Posted: 24 May 2022 12:46 PM PDT I have monthly dataframe (df) that is already in min - max ranges like the below: I want to know the number of times the max wind speed was below the calib number each month. So I am trying to create a column Speed below calib (sbc) like below. The above code is not working and I am getting the error |
DirectoryInfo GetFiles without wildcard Posted: 24 May 2022 12:46 PM PDT is using DirectoryInfo GetFiles without "*" in the parameter ok? This would just get 1 file everytime? |
ElasticSearch: My analyzers aren't having an effect on sorting Posted: 24 May 2022 12:46 PM PDT I'm trying to use analyzers to return alphabetically sorted data, however my changes are always returned in lexographical order. I've tried multiple implementations from here and other sources to no avail. Is the issue in my tokenizer? Or possibly my use of custom analyzers i wrong? Thanks in advance |
Is there a way to programmtically check via an API on that status of Google Workspace Apps? Posted: 24 May 2022 12:46 PM PDT Google has a Google Workspace Status Dashboard where they indicate whether any of their core services are experiencing an outage or not. Accordingly, I would like to be able to fetch the status for a particular service. For example, I would like to check whether
I would like to make an API call in Is there a way I can achieve this? |
Is there a way to display the first two results of each unique id? Posted: 24 May 2022 12:46 PM PDT I have a list of ids that have different number of instances when running a query. I want to figure out a way to limit those instances to just two for each id. For example: If my initial query results are: A 1 B 1 B 2 C 1 C 2 C 3 D 1 D 2 D 3 D 4 I want to modify the script so the query results look like: A 1 B 1 B 2 C 1 C 2 D 1 D 2 Any help would be great! |
When executing pytest from the root of the project, ModuleNotFoundError: No module name 'main' Posted: 24 May 2022 12:46 PM PDT When I execute pytest from the root of the project in the cmd What I am trying to achieve is to create a .yml file from the root of the project that will run the pytest and other tests in other directories. here is what my file structure looks like. in my tests.py file, I have |
What are True,False and NULL in R functions and How can I character be converted To it? Posted: 24 May 2022 12:46 PM PDT I am writing a shiny app and some options in function are NULL, TRUE and FALSE example: How can I make sure that character is converted to NULL or False from text input. I am using right now a series of if, else if but find so many combinations is tedious is there a simple so works for me. |
how to crop image to text bound using python Posted: 24 May 2022 12:46 PM PDT |
How to get geolocation data on mobile browser in a react application at development environment? Posted: 24 May 2022 12:46 PM PDT I'm trying to test a React application which uses Geolocation API on my mobile browser. I'm having trouble obtaining the geolocation data, I have read that it only works on HTTPS URLs. I would like to know if there is a way to test my code in development, since I'm using my computer IP which is a HTTP URL, to access my application on my mobile browser. |
Write a function to add key-value pairs Posted: 24 May 2022 12:47 PM PDT I'd like to write a function that will take one argument (a text file) to use its contents as keys and assign values to the keys. But I'd like the keys to go from 1 to n: {'A': 1, 'B': 2, 'C': 3, 'D': 4... }. I tried to write something like this: Base code which kind of works: The output: {'A': 1, 'B': 1, 'C': 1, 'D': 1... }. Attempt to make the thing work: The output: {'A': 99, 'B': 99, 'C': 99, 'D': 99... }. My attempt doesn't work. It gives all the keys 99 as their value. Bonus question: How can I optimaze my code and make it look more elegant/cleaner? Thank you in advance. |
Posted: 24 May 2022 12:46 PM PDT This is my code: The problem lies here as i would like to plot the points from -0.4 to 0.8 in increments of 0.01 as there is an important part of the graph that im missing which happens after x = 0.6 |
Create a buffer zone around a point of a shapefile which starts at a specific distance from point Posted: 24 May 2022 12:46 PM PDT I have a shapefile containing a few thousands of points. My goal is to create a buffer zone around each point which starts at a radius of 3 meters away of each point and ends at a radius of 15 meters. I usually create buffer zones with st_buffer (sf package), however if I use I now created two different buffer zones for each point consisting of a 3 meter and a 15 meter radius. My idea was to bind them to together into one data frame containing each points ID and the the two buffer zones. However I am missing a function which could exclude the overlapping areas of each points buffer zones, without excluding the areas of overlapping buffer zones from different points. Does anyone have an idea? Thanks for the help in this matter. |
Posted: 24 May 2022 12:47 PM PDT My assignment:
|
I am getting type String is not a subtype of type int in my flutter project Posted: 24 May 2022 12:46 PM PDT I downloaded a flutter project and tried to run it, but I get this error And the error is pointing me the this code IDENTIFIED is defined in a file called const IDENTIFIED = "identified"; as well as other strings such as I notice the problem causing the error is because IDENTIFIED is a string. What I don't understand is, in the same file where there is an error there are other variables like this And they all return data in a text widget So I don't understand how the string is been used to return data and why I am getting an error PS - This might sound confusing, and I hope you understand the question |
Posted: 24 May 2022 12:47 PM PDT main.dart: splashScreen.dart(2nd page) ///The code isn't working and its saying that"The method 'SplashScreen' isn't defined for the type 'MyApp'". I know the solution probably is on the "Container" but I can't solve it. |
Dynamically Binding parameters to push to SQL Server Posted: 24 May 2022 12:46 PM PDT I have a lot of historical data I'm pushing to SQL. As a stop gap I'm coding this in VBA first. I open the Code: |
Convert image to webp and send it to nodejs [closed] Posted: 24 May 2022 12:46 PM PDT I am using express and I need to make a form with an image upload, that when receiving the image converts it to webp and after that when the user sends the form to be able to receive the image and save it on the server with unique id, is this possible? |
Add String to New Line After Final Pattern Match Posted: 24 May 2022 12:47 PM PDT I am trying to add the follow string after the last pattern match in a text file. Text File Attempted Code This code inserts Current Result Expected Result |
Need a quick start guide to configure SAML 2.0 Single Sign On in Azure Active directory Posted: 24 May 2022 12:46 PM PDT I have a SAML 2.0 based Single Sign On working with Pingfederate, wso2 Identity server as well as ADFS. Its also working with Azure AD SAML 2.0 fedration. But I need to have my own setup to incorporate the recent changes by Azure on using multiple certificates for signing it responses which they claim to change dynamically. Please point me to a quick setup resouce on this as I am new to Azure. |
Http response cannot be deserialized when it's created from test case Posted: 24 May 2022 12:47 PM PDT I'm trying to run this test: Problem is, when I try to deserialize the response, I get 3 empty entities If I examine the content of The code works fine with real HttpRequests, the issue rises only during unit tests. What am I missing here? Other classes involved: HttpClientService BaseAutoDataAttribute |
bar plot in 3d following a given line Posted: 24 May 2022 12:46 PM PDT I want to draw a bar plot in 3d. I know how to do that using the following code: This will render something like this: https://i.stack.imgur.com/KK2If.png However, my goal is to make the bar plot follows a line that I give as parameter. For example here, the parameter zdir='y' makes the plot have its current direction. Ideally I want to pass a parameter that makes the plot follows a given line for example y=2x+1. Could someone help arrive at the desired result? |
Elasticsearch document -- what does the "input" key do? Posted: 24 May 2022 12:46 PM PDT I am working in a legacy codebase, and I have documents that are being indexed in ElasticSearch that look like the below image. I am trying to determine what feature or functional part of ElasticSearch is being used in the image below, with these The reason I need to know is because I have reason to suspect that this feature or whatever it is, is not supported by OpenSearch, due to bugs cropping up around these fields in particular (I recently upgraded). However, I can perform a search that successfully queries for these fields when using my current version of ElasticSearch, doing something like the below. However, the same code does not work in an updated version of OpenSearch: I can't find any reference to It looks a bit like this feature, related to "watchers", but the format is different: https://www.elastic.co/guide/en/elasticsearch/reference/6.3/input-simple.html. The version we were using of ElasticsSearch was possibly version 6.3.2. |
Select a ComboBoxItem when button is clicked Posted: 24 May 2022 12:47 PM PDT I want to set the ComboBox yrComBox that selects the ComboBoxItem when I click the button. Combobox in WPF: Button: C#: |
Android Studio Compose preview render problem Posted: 24 May 2022 12:46 PM PDT Up to one point, everything was working. Then this error appeared and the preview stopped working when I try to call "LocalContext.current" and make "context.applicationContext as Application" both in this project and in another one. Where it used to work with "LocalContext.current" Tried on different versions of Compouse, kotlin, gradle.
|
Snyk Code Upload Results To Dashboard like Monitor Posted: 24 May 2022 12:47 PM PDT I'm trying to run Snyk on bitbucket pipeline. I'm running the pipes for composer and npm and things are working but I also want to run it for static code analysis. None of the documentation shows how this is possible. I have tried installing snyk with NPM followed by running but the static code analysis doesn't showup on the Snyk dashboard. Looking for commands or documentation to run static code analysis through the bitbucket pipline. |
Posted: 24 May 2022 12:46 PM PDT I'm trying to create a variable to sum columns 26 to 30 and 32. SO far I have this code which prints me the hearder and the output format like I want but no data is being shown. Input data: Output expected: This script will be called like Currently when calling this is the output (It seems to be calculating the variable but the rest of fields are empty) |
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