Recent Questions - Stack Overflow |
- comma separated data display in angular on the basis of condition
- Arranging data from django model in chartsJS
- View cart button text color change Wordpress Storefront
- Segmentation Fault on fscanf() function
- How in PhpStorm 2019.3 to open view by ref in control?
- Python - Using accented letters
- ZipFile ExtractToDirectory Wrong Folder Name Unicode
- Select suite of tests for coverage with pytest
- PostGresSQL pgAdmin Database, How do i fix "relation does not exist error"?
- Create Grand Mean Centered Variables by Group Means in Pandas
- Problem with reading input from file properly
- JavaScript not getting the value
- How to compare two instances in Python?
- use of If function in selenium python
- Access xml tag value
- How to operate in pairs within a list (two by two)? [duplicate]
- React Typescript error TS2332: type '{...}' is not assignable to type '{...}'
- Using Evaluate with string variable not with range object
- Docker PhpMyAdmin configuration to access Joomla (local) Windows 10
- Creating a new column in pandas with respect to the values of other rows
- Find the position of an integer A in integer B for multiple occurence
- What is the correct behavior of std::get_time() for "short" input
- VeeValidate 4: two forms on one page
- How to bypass certificate errors using Microsoft-EDGE
- Show a SnackBar Above Modal Bottom Sheet
- Pagination not working with custom URL structure of CPT/Taxonomy
- How to search the group by the DisplayName using Microsoft Graph?
- Sublime Text - command to make first character uppercase
- Does IntelliJ support any kind of templating to create multiple files automatically?
- How to call an async method from a getter or setter?
comma separated data display in angular on the basis of condition Posted: 13 Apr 2021 08:39 AM PDT I am working on a angular application. I have a ngFor in my html code which is as follows. The problem is that myData array can have one single value or more than one value at run time. I want to have a display such that if one value is present then only one value is shown but if more that one value is present those should be separated by comma. In my above code I just put "," after span. It is working fine with more than one value but in case of single value comma still will be there. How can I do that? |
Arranging data from django model in chartsJS Posted: 13 Apr 2021 08:39 AM PDT I have a chartsJS chart that takes numbers from a django model and uses the values to populate the chart. Is it possible to perform data organisation that will organise the values from highest to lowest in the data section of chartsjs: |
View cart button text color change Wordpress Storefront Posted: 13 Apr 2021 08:39 AM PDT I am using storefront theme and I am struggling with changing the color of the text of the "view to cart" button. When you click on "add to cart", it shows the button but the text is the same color as the background of the button, so you can`t see what is written there. I have tried everything that I found on the internet, but none of it works.. I also tried to change every color on each that I found when clicking on "Inspect element"..adding the !important everytime.. You can try to click on the "Přidat do košíku" here and inspect it on your own - https://www.alloyware.cz/produkty/ . |
Segmentation Fault on fscanf() function Posted: 13 Apr 2021 08:39 AM PDT I am trying to load data from a file into an array and am getting a segmentation error, I am not quite sure where my issue is. Any help is appreciated. |
How in PhpStorm 2019.3 to open view by ref in control? Posted: 13 Apr 2021 08:38 AM PDT Working with laravel 8 app if there is a way in PhpStorm 2019.3.4 having view reference in the control like : return view('admin.users.index', to open view by clicking on view name ? I have several plugins installed as : Laravel (by Daniel Espendiller ) , LaravelStorm 1.1 but I did not get functionality I wrote above. Can I add this functionality? Thanks! |
Python - Using accented letters Posted: 13 Apr 2021 08:38 AM PDT I'm having an issue with accented letters in Python. It can't really replace accented letters with non-accented letters because it won't recognize the words when searching for them in the dataframe. The code below adds to new columns to the dataframe 'df_sb' and combines a string (Section Début or Section da Tête) with the content of another column. The thing is, when I run the block below in my main script file, it will correctly write and display the words with accented letters (Section Début and Section da Tête). However, this needs to be executed in a different file by calling a function. When I call the function and it returns me the df_sb dataframe (with the two columns), it messes up the accented letters for some reason. I don't understand why this is happening. How should deal with this? |
ZipFile ExtractToDirectory Wrong Folder Name Unicode Posted: 13 Apr 2021 08:38 AM PDT I have zip archive, with folders inside. Folder name contains unicode characters (Georgian letters). When I extract it I'm getting wrong folder names. For example Folder Name in Archive: 6001 SAHIN INOX 192MM სახელური Folder Name Extracted: 6001 SAHIN INOX 192MM fossyhew The machines where archive was created and where I'm trying to extract it are different. Here is my code with all different options I've tried, but non of them worked. Archive URL: 1.zip Any ideas? |
Select suite of tests for coverage with pytest Posted: 13 Apr 2021 08:38 AM PDT I'm running a set of tests with I have some decorators in my code, dividing the tests in several suites using something like: I need to find something like:
So that in this case only the first test, since it's in the correct suite, will be used to test coverage. The suites work correctly when I use directly Is there any way to configure |
PostGresSQL pgAdmin Database, How do i fix "relation does not exist error"? Posted: 13 Apr 2021 08:38 AM PDT i have verified in the pgAdmin page and in the plsql shell and the table exists but when i run my procedure i cant seem to get it to work... what do i have wrong here? my current table: my thought process was to input data into the database and use this procedure for an app, My Procedure: Call: This is my error code exactly: |
Create Grand Mean Centered Variables by Group Means in Pandas Posted: 13 Apr 2021 08:38 AM PDT I am trying to create grand mean centered variables by groups. The sample data is: I am trying to write a function that will estimate the grand mean centered variables by groups for all the variables in the dataset. My code to attempt that is below: However, when I do that, it returns a dataframe where the grouping variable, group, is also transformed, instead of getting the groups as in the brackets [] Just looking for some ideas on how to fix the code to keep the grouping variable, group, as is instead of transforming it. |
Problem with reading input from file properly Posted: 13 Apr 2021 08:38 AM PDT On my current project I have to read some numbers (first is coefficient, second is the exponent there of) from an input file. For some reason I get an error for using "Integer.parseInt". Does anyone know why/how to fix this? Current code below. Error Message: Input File: Driver: |
JavaScript not getting the value Posted: 13 Apr 2021 08:39 AM PDT I am trying to access the form id in the js file. but I can't get the id. i have check js file is link with the blade file and also check the value in the console but not getting it. Blade file Js file |
How to compare two instances in Python? Posted: 13 Apr 2021 08:39 AM PDT Is there possibility to compare two 'instances'? I have one variable and one list. Variable have type 'instance', items in list have also the same type. When I compare variable with the same item in list: I received 'False' as output. I'm 100% sure that both elements are the same. Thanks in advance! |
use of If function in selenium python Posted: 13 Apr 2021 08:39 AM PDT Below is the HTML where i would like to do an if check for 'test', if exists I want to click on rtPlus my code Hope this info is enough please leet me know what can be done here to click on the plus icon |
Posted: 13 Apr 2021 08:39 AM PDT I have a simple xml file and I can't access the tag value (The value in Person) in a loop, it returns me empty.
and my xml file is a number of users like this: |
How to operate in pairs within a list (two by two)? [duplicate] Posted: 13 Apr 2021 08:38 AM PDT I have a list of values I want to be able to operate in pairs in a way that I can do average (1,3), (6,8), (2,9) etc. I tried with: I expect to get: but I keep getting an error message How can I do that with a simple code with python? |
React Typescript error TS2332: type '{...}' is not assignable to type '{...}' Posted: 13 Apr 2021 08:39 AM PDT I'm trying to dynamically render a child component using a string I get in the props of the parent component. I'm creating an object and using an interface: But when I call the component in the html the linter tells me there is the following error (I abbreviated object attributes): Component A and Component B have both different attributes from each other. It is saying that an attribute that is required in component B is missing in component A. I'm not sure if I'm getting all this union types well. I just want to be able to tell the interface that it should either use one component type or the other without having to put all attributes optional. Thanks for your help! |
Using Evaluate with string variable not with range object Posted: 13 Apr 2021 08:38 AM PDT I have a line of code that returns 1d array based on a value in range A1. Example suppose there's a value I tried to replace A1 with the string variable but it seems this trick doesn't work. Simply I need to deal with a string not a range with the same technique. |
Docker PhpMyAdmin configuration to access Joomla (local) Windows 10 Posted: 13 Apr 2021 08:39 AM PDT My PHP is found at: I encounter an error when trying to log into PhpMyAdmin:
I have a local Docker Compose app running: I go to that route via my console, and execute the command docker-compose up, that way when i list my docker images i get as follows: I have checked my MySQL image and that works correctly. Joomla works correctly as I can log in and navigate without encountering any problems. I havent changed any PhpMyAdmin credentials in any PHP files so it should be default, as far as I am aware that is:
Here is my config.inic.php file: I allowed logging in using no password by changing And since I couldn't change the permissions to the file, I added the following line to the file: I also added a random blowfish as my auth mode is I have read on other sites that the error I am getting can be fixed by changing
I don't think I have any dockerfiles, if I did where would I find them? Does anyone know how to fix this problem? I appreciate the help, thanks! PS: If any more information is needed I'd be happy to edit the post and add it |
Creating a new column in pandas with respect to the values of other rows Posted: 13 Apr 2021 08:38 AM PDT I have a sample data as: I would like to create a new column(output) which shows 1 if all the row values of the dataframe are 1, otherwise 0. The sample output is shown below: |
Find the position of an integer A in integer B for multiple occurence Posted: 13 Apr 2021 08:38 AM PDT I am trying to find the position of
I am using
|
What is the correct behavior of std::get_time() for "short" input Posted: 13 Apr 2021 08:38 AM PDT I'm trying to understand what should be the correct behavior of C++11 std::get_time() when the input data is "shorter" than expected by the format string. For example, what the following program should print: Note that get_time() behavior is described in terms of std::time_get<CharT,InputIt>::get(). Based on the latter (see 1c paragraph) I would expect both eofbit and failbit to be set and so the program to print: However, for all the major Standard C++ Library implementations (libstdc++ 10.2.1, libc++ 11.0.0, and MSVC 16.8) it prints: Interestingly, that for MSVC before 16.8 it prints: But the commit "std::get_time should not fail when format is longer than the stream" suggests that this was fixed deliberately. Could someone clarify if (and why) the mentioned standard libraries behave correctly and, if that's the case, how it is supposed to detect that the format string was not fully used. |
VeeValidate 4: two forms on one page Posted: 13 Apr 2021 08:39 AM PDT I have a Vue component in a Vue component, and both of them contain one form each that I want to validate individually. Where the other component has a similar form. It appears when I use handleSubmit the main component will try to handle all the input fields, and the handleSubmit in OtherComponent does not work at all. I also tried a workaround where I instead used validate, manually ran a validation on button clicks and checking meta valid to see if the form was valid. The same thing happened here, since both components use validate useForm it messes up the OtherComponent's one. When I check the meta it says it's always valid even if it isn't. I have thought about putting them in the same component but don't see how that would make a difference. Is there a way to achieve this or do I have to someone work around it? |
How to bypass certificate errors using Microsoft-EDGE Posted: 13 Apr 2021 08:38 AM PDT When attempting to access the local git server page Microsoft Edge displays a certificate error because the git server is using a self-signed certificate. I would like to enable access to this specific web host and bypass the error message. This can be done in other browsers, but apparently EDGE doesn't provide a way to override certificate handling or make exceptions. Error message: "This site is not secure." DLG_FLAGS_INVALID_CA |
Show a SnackBar Above Modal Bottom Sheet Posted: 13 Apr 2021 08:39 AM PDT I tried to display a P.S.: Setting the SnackBar Behavior to Floating doesnt work. It still appears below the modal bottom sheet Thank you |
Pagination not working with custom URL structure of CPT/Taxonomy Posted: 13 Apr 2021 08:39 AM PDT I'm fairly new to posting here and I'll try to keep it as clear as possible! Any guidance is greatly appreciated! The Goal: I am trying to create a Custom Post Type and a Taxonomy where I can upload posts inside the Taxonomy and have a URL structure like this: I also need to be able to have pagination on both Currently: I have studied a few other posts that have gotten me 99% of the way there! I just can't quite figure out how to finish it at this point. I have done most of what this answer has suggested and i will show my code below for clarity. CPT registration Custom taxonomy registration Tell WordPress how to interpret my knowledge base URL structure: Handle the The problem: Overall the post I referenced makes a ton of sense, I feel I understand whats going on here and everything was good until I tried setting up Pagination on the page This page was working great. I was able to show all the posts per category and I was able to go from here and click any post or Taxonomy and have the URL structure mentioned above. However whenever I try to go to the next page or third page I either get a 404 error or I get redirected to a post in my CPT. As an example Here is my version of this user's suggestion: I have tested the pagination and my page template by creating a different page with a slug of From what I understand from the posts I mentioned above, WordPress has created rewrites based on the CPT and Taxonomy I set up and so its not able to go to Thank you ahead of time to anyone who takes the time to look through this and respond. I really think I must be super close but just cant quite get the last bit alone. Thanks everyone! ** UPDATE** First off thank you for everyone helping me format my question, much appreciated! I wanted to write a quick update to help answer this question for future viewers if I can. After working on this more I now realize I was very close with the code above. One thing I had to do was remove the So that's great! However I still have one remaining issue i'm working on. For some reason when I go to I'll keep working on this and update when I figure it out. In the mean time if anyone has any tips to help with this i'd appreciate any help! ** FINAL UPDATE** Turns out the last little issue of |
How to search the group by the DisplayName using Microsoft Graph? Posted: 13 Apr 2021 08:39 AM PDT According to the document, I can list the Office 365 Groups by using the following Graph API:
I have a C# Web application, and there is a input for searching by the Group DisplayName. Any idea how to query groups based on the DisplayName? I have tried the following URL: I get the following error. Any suggestion is welcomed. Thanks in advance. |
Sublime Text - command to make first character uppercase Posted: 13 Apr 2021 08:38 AM PDT There are I'm searching for command to capitalize the first letter of string, which can be assigned to custom shortcut. |
Does IntelliJ support any kind of templating to create multiple files automatically? Posted: 13 Apr 2021 08:39 AM PDT So I have a spring mvc application, and I am noticing there is allot of repetitive code I am doing (I'm newish to both java/spring). Each time I create a new entity I have to create the following files: All of the files except for the Entity.java file (say User.java or Product.java etc) are pretty much something that could be automatically generated. Is there anything out there that can help generate these files (in the correct folders)? |
How to call an async method from a getter or setter? Posted: 13 Apr 2021 08:38 AM PDT What'd be the most elegant way to call an async method from a getter or setter in C#? Here's some pseudo-code to help explain myself. |
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