Recent Questions - Stack Overflow |
- Xamarin: Sizing Issues when dynamically adding rows to a Grid
- How to access api-platform from a remote web browser?
- Modify background color of mark_text()
- valueerror invalid model reference, how can i reference correctly
- Headless Chromium support for wide-gamut colours in css
- Vertical lines in 3D Scatter Plot in plotly.js
- Drawing A Rotated Path2D Object on canvas
- C++ unordered_map weird size allocation
- Having a connection issue with Jupyter Notebook. Feeling hopeless at this point since nothing's working
- Convert string of numbers to array of numbers? [closed]
- React app not navigating programmatically, having to refresh page with link in address bar for it to navigate
- IntelliJ Checkout Git Branches
- How to creat multiple columns of dummies for intervals in R
- Unable to connect to oracle cloud autonomous database from linux environment
- How to Read a value from appsettings.json and mix it with the values returned by Entity Framework
- How to initialize bootstrap 4.6 collapse with javascript?
- Can we build Carrom Board game in flutter?
- How to write more shortly?
- I wanna make a form with Phone Number authentication in flutter with custom fields
- Java Spring API - continous status
- why does valgrind throw a conditional jump error? [closed]
- Trying to run additive transform_filter operations depending on separate interval selection endpoints in altair / vega-lite
- Accordion header not working when clicked
- Serverless Localstack lambda functions send requests to AWS when endpoints are specified
- In Starbasic Macros, in LibreCalc, I cant make a string to be passed as expression
- Scanf skips variable and reuses old one
- How can I fix "AttributeError: 'dict' object has no attribute 'append'" in Twython
- tkinter not updating value
- How would I distribute python code?
- How to make sure docker's time syncs with that of the host?
Xamarin: Sizing Issues when dynamically adding rows to a Grid Posted: 08 Sep 2021 09:31 AM PDT I am new to Xamarin and I'm trying to figure out some of the basic functionality. I have a simple content page containing a ScrollView with a nested StackLayout, then other nested controls within the StackLayout: I am attempting to dynamically add rows to the Grid on a button click: Unfortunately, the size of the StackLayout doesn't appear grow when the Grid grows. Before Example: https://i.imgur.com/3Ydfchc.jpg After Example: https://i.imgur.com/Y89IDRe.jpg What am I missing here? Can someone explain to me why this isn't working and what the correct way to do this would be? Thanks! Arthur |
How to access api-platform from a remote web browser? Posted: 08 Sep 2021 09:31 AM PDT I wish to install api-platform using the recommended API Platform Distribution, and access it via a remote web browser. Other services on the server are already using ports 80, 443, and 5432, and will need to continue using them. The project is still in development and not production and the options described under Deployment do not seem appropriate. How is this accomplished? Steps I've taken I've implemented the following and it mostly works, however, has two shortcomings as described at the bottom of this post, and I am evidently doing something wrong:
I am able to access it remotely as https://mysitename.com, however, have the following two shortcomings (and potentially to be discovered more):
|
Modify background color of mark_text() Posted: 08 Sep 2021 09:31 AM PDT I am using Altair to display a choropleth map. When trying to add labels to the map using mark_text(), I am unable to change the background color of these text boxes. I am following the code example on the London Tube Lines listed on the Altair website: In principle, setting a background color for a text box should be possible in Vega Lite, as shown here. Grateful for any hint. |
valueerror invalid model reference, how can i reference correctly Posted: 08 Sep 2021 09:31 AM PDT I had to change a number of my ManyToMany relations to reference a string instead of importing the model into the file so to avoid a number of circular importing errors. but when trying to run, now I am getting this error. I don't know what would be the best way to reference this and I'd love to get anyone's input on this. the reference in question settings.py installed modules the app folder structure |
Headless Chromium support for wide-gamut colours in css Posted: 08 Sep 2021 09:30 AM PDT I am maintaining a simple application that is using puppeteer with headless Chromium to take screenshots. One of requirements is that we take a screenshot with background color with wider color gamut than sRGB. We managed to run headless chromium instance with forced color profile Is there a way to actually declare colours in css with wide gamut and render it in chromium? |
Vertical lines in 3D Scatter Plot in plotly.js Posted: 08 Sep 2021 09:30 AM PDT I am trying to figure out a way to create separate vertical lines with a 3d scatter plot in plotly.js. Currently, the only way I have been able to get the desired effect is to create a separate trace for each line. This works great for a few traces, but sometimes I will need to have 1000+ lines. Relevant codepen: https://codepen.io/brga16/pen/QWgdZGJ Another possibility is toggling on/off the color transparency to keep all the lines in one trace (and have the connecting lines be transparent), but I wasn't able to find a way to immediately turn the alpha layer on/off to achieve the desired effect. Here's another codepen with an attempt to do that: https://codepen.io/cbuq/pen/rNwjrym Any suggestions on achieving a similar effect that will scale well? Thanks! |
Drawing A Rotated Path2D Object on canvas Posted: 08 Sep 2021 09:30 AM PDT I have a canvas where i want to draw a rotated svg. In order to achieve this, i created a Path2D object and used the context.fill() option to draw the svg. Moreover, I used context.translate(x , y) inorder to position the svg. Now, the issue i how to rotate this? I found some solutions where it stated that first use Now, both the translate are in conflict. Here is the code that I have tried so far. This code rotates the svg element. But from its top right corner. I want it to be rotated from center: Codepen link - https://codepen.io/asiancat54x/pen/jOwyeaR Here is the code snippet |
C++ unordered_map weird size allocation Posted: 08 Sep 2021 09:31 AM PDT I am experimenting with this code with a lockfree programming and running into weird problems. This is a dinning philosophers problem, and I am trying to implement that in a lockfree way. I am reserving the size of unordered_map and making sure that it is not relocating objs during runtime. But unfortunately what I see that during runtime size of |
Posted: 08 Sep 2021 09:30 AM PDT Image of an error message I see when I start up the notebook: connection error These are the three error messages I'm getting in my console. Any help will be greatly greatly appreciated. 1: 'main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:37971 WebSocket connection to 'ws://localhost:8888/api/kernels/5a8140ac-685e-4174-a5bd-ac19c41dc01e/channels?session_id=7f9e44450ab44258871538c45cf75462' failed: ' 2: 'DevTools failed to load source map: Could not load content for http://localhost:8888/static/notebook/js/main.min.js.map: Connection error: net::ERR_CONNECTION_REFUSED' 3: 'main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:24909 Uncaught (in promise) XhrError: error at wrap_ajax_error (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:24909) at Object.settings.error (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:24965) at c (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:2) at Object.fireWith [as rejectWith] (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:2) at l (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:2) at XMLHttpRequest. (main.min.js?v=7af39fe9ec3585e958e8637ace5e96fe0bf3ced51a8b8b5875c571f941299779fe746bf74f02bab0f3c6e08281d6ecadafcb5b08120e98f081c9c7dd824bdfdc:2)' |
Convert string of numbers to array of numbers? [closed] Posted: 08 Sep 2021 09:30 AM PDT I have a string of numbers I want to turn it into I've tried split, push and other ways to but seem to crack it |
Posted: 08 Sep 2021 09:31 AM PDT Here is my code: When I click on the sign in button, The url changes to /somelink/list however, the view does not change. In order for it to change, I have to manually refresh the page with the /somelink/list in the address bar. printing the object: Here is a snippet of the code above that checks if token is in localStorage: How to have it programmatically navigate to that endpoint automatically upon login, without the need to manually refresh the page ? |
IntelliJ Checkout Git Branches Posted: 08 Sep 2021 09:30 AM PDT I've just discovered that you may checkout branches within IntelliJ, without having to open the terminal. My question is: When we use the option to checkout to a certain branch, does it execute a |
How to creat multiple columns of dummies for intervals in R Posted: 08 Sep 2021 09:31 AM PDT The outcome must be multiple columns. This code creat just one column |
Unable to connect to oracle cloud autonomous database from linux environment Posted: 08 Sep 2021 09:30 AM PDT I am using a Node JS application that has Oracle Autonomous Database as a backend. It works perfectly on my local machine and I am able to connect it well without any issue. I tried deploying Node JS project to Azure WebAppService on Linux server. Initially after deployment I my project was not able to find the Oracle client and so after searching a lot I was able to fix that problem by below steps with this I was able to solve client issue. I have wallet files which I received from oracle which I have placed in admin folder but now the problem is when I make any request I am getting this error what I understood with this message is I am not able to connect to my cloud database and I am not sure how to solve this can anyone help me with it its been 2 weeks now with this problem. In Node JS project I am using simpleoracle library to connect my oracle cloud anonymous database |
How to Read a value from appsettings.json and mix it with the values returned by Entity Framework Posted: 08 Sep 2021 09:30 AM PDT Good morning, I have a Project in Asp.net Core 5 which has a Core project with entities. My question is, I need to know how to mix a property of the News Class with a value that is hosted in another ASP.Net Core API project. That is, when returning the value from Entity you must be able to mix the values of appsettings.json + the image field that is, in the GetNoticiacastList () method I need the FullPath property to mix with the values of the appsettings and the value of the image property. to form a URL of the my appsettings.json }, My class: My NoticiaRepository: |
How to initialize bootstrap 4.6 collapse with javascript? Posted: 08 Sep 2021 09:30 AM PDT Bootstrap 4.6 docs mention that we can enable/initialize the collapse menu with eaither As you can see, I am unable to initialize the collapse function through javascript alone. So my question is:
|
Can we build Carrom Board game in flutter? Posted: 08 Sep 2021 09:31 AM PDT can we build a carrom pool game clone in flutter? i know about the flutter flame but i can't find any tutorial where any one build some thing like that |
Posted: 08 Sep 2021 09:31 AM PDT I want to write more shortly. It might be written in one line. How can I do that? Which array methods should I use? Thanks for your help! |
I wanna make a form with Phone Number authentication in flutter with custom fields Posted: 08 Sep 2021 09:30 AM PDT I wanna make a form with Phone Number authentication in flutter with custom fields and want to store data in the firebase database. I know how to do Phone Number authentication and how to make forms in the flutter but the issue is I wanna get OTP at registration for a new user. Need help I am stuck in this. Here is my form picture Thanks in advance. |
Java Spring API - continous status Posted: 08 Sep 2021 09:31 AM PDT I have a question regarding how to build a Java Spring API that can continuously update the frontend with a status. How I want this to go about is that I can via a POST-request "update" the status of our application, and this to then be information that is obtainable from the frontend with a GET-request. The POST-request is to be used from within a VM. Just to try and make myself clear:
How would I go about to build this? Our backend is a Java Spring Boot REST API and out frontend is a React webapplication. |
why does valgrind throw a conditional jump error? [closed] Posted: 08 Sep 2021 09:31 AM PDT I have been trying many different things to figure out the error: It does not work, line 15 is some conditional test (it could be a The while loop is where it gives the Valgrind error For context the numbers is an array that holds a number and I am trying to combine them so |
Posted: 08 Sep 2021 09:31 AM PDT I work with data of sizes of particles of two classes (A and B) from n samples. I want to scatter-plot A against B as the percentages of particles that are within any possible size sub-range. For interactively selecting these size sub-ranges, I use two auxiliary plots (one for each class) where I added interval selections in order to set and move around the desired ranges. From another question here I already learned that aggregation operations can not be updated by interval selections (which is a vega-lite issue). So I prepared my dataframe to contain pre-calculated percentage values for any possible size bin and any possible combination of size bins of A and B. Now, I "only" need to find a way to filter this extended dataset down to what is currently selected in the auxiliary plots. Example of the dataframe structure: The code is using a To prevent empty selections from the filtering when interval boundaries are not at values which exist in the dataset (the lower and upper size limits are discrete at 0, 100, 200, 300, 400 and 500), the calculated endpoints are fix to the next full hundred by It seems to me that the problem must be in the way I am trying to get the endpoints from the selections: Example including a working toy dataframe: Can someone spot if I am doing something wrong here? Or give hints if I should tackle it in a completely different way? |
Accordion header not working when clicked Posted: 08 Sep 2021 09:31 AM PDT Hoping someone can help. Below is a javascript accordion. It works just the way I want for most part. See JS Fiddle below, accordion opens up when clicking on the red background however, I need it to open when clicked anywhere (red and blue). It's probably simple but can't work out why it doesn't work, would apppreciate some assistance. https://jsfiddle.net/xgjmnpt4/ EDIT: Below answer from Phoenix works, however not with multiple accordions. Would be great if someone could assist please. Thanks. |
Serverless Localstack lambda functions send requests to AWS when endpoints are specified Posted: 08 Sep 2021 09:31 AM PDT I have a pretty normal localstack setup, with this part in the and this is the serverless-localstack part I have in the You see I even tried different cases and The problem I'm having is that when I try to connect to the Secrets Manager (or any other service) my code is still trying to knock to the AWS service This part is going to try to reach this URL How can I make my code talk to the local service instances without "if env" hacks? |
In Starbasic Macros, in LibreCalc, I cant make a string to be passed as expression Posted: 08 Sep 2021 09:31 AM PDT In Starbasic Macros, in LibreCalc, I cant make a string to be passed as expression.
How I convert String as an expression ? |
Scanf skips variable and reuses old one Posted: 08 Sep 2021 09:31 AM PDT Im going through the C Programming Absolute Beginners Guide 3rd edition to learn programming and im having issues at Chapter8ex2.c where my program gets the cost and then is supposed to get the topping it instead passes by that and reuses the first variable instead of using the correct second one. here is my code here is the code being run |
How can I fix "AttributeError: 'dict' object has no attribute 'append'" in Twython Posted: 08 Sep 2021 09:31 AM PDT Im working on learning some python and I wanted to write a script that would pull my followers usernames from my twitter and save it to a file. The script comes from this website https://www.silkstream.net/blog/2014/06/playing-with-followers-with-twython-csv.html the code i've typed up is below when I run the program I get this output If I comment out line 19 it actually runs but i get this weird output in the saved file it looks like it thinks something is a dictionary(or at least that's my guess) but I don't have any in there do I? |
Posted: 08 Sep 2021 09:31 AM PDT in my code below im using tkinter to display two values. the first value updates just fine but the second one dosent seem to update. ive structured them the same so i figured it should update. is there any reason that it wont? |
How would I distribute python code? Posted: 08 Sep 2021 09:31 AM PDT Im working on a python project of mine and i wanted it to be able to run like a application. so i made a gui for it and i want to distribute it for other people to use. but i used packages like requests and tkinter. how would i make the program more portable? so people could just click on the .py file and my gui would just come up. EDIT: i found what i was looking for. i was looking for something to the effects of pyinstaller |
How to make sure docker's time syncs with that of the host? Posted: 08 Sep 2021 09:30 AM PDT I have dockers running on Linode servers. At times, I see that the time is not right on the dockers. Currently I have changed the run script in every docker to include the following lines of code. What I would ideally like to do however is that the docker should sync time with the host. Is there a way to do this? |
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