instruction
stringlengths
0
30k
null
Ok , I think to resolve this problem of cyclic dependency! The problem is that the language gathered by translateservice, if source of browser or manual setting by a combobox changer, is a "behavior" value that need to be syncronize by all components (indipendently if a interceptor, resolver, other component, service,...
How should I upgrade Cypress tests that relied on preserveOnce beforeEach?
Devexteme ngautocomplete is lagging and drop down is not showing after api call everytime search is performed Below is code ``` <dx-autocomplete #autocompleteRef [dataSource]="employeesIAM" valueExpr="login" [grouped]="false" [searchExpr]="['login','firstName','lastName']" label="Enter login or name" labelMo...
ngautocomplete devextreme is lagging to show dropdown and sometimes not load
|javascript|angular|devexpress|devextreme|
I am getting the error An Error Was Encountered Unable to load the requested class: Email I can see the site OK. This is an older version of EE. I tried looking through the config files to see if there is anything that might need updating but couldn't find anything except pointing the site to the new s...
Cannot access Admin after site was moved to new server
|expressionengine|
null
A few suggestions: 1. You have an error in console, that say you "can not read properties of undefined" in meta-new-button.component.ts. So there you have a variable that you expect have value but it's not. You need check before if (my-variable) other-variable=my-variab...
{"OriginalQuestionIds":[75344626],"Voters":[{"Id":12046409,"DisplayName":"JohanC","BindingReason":{"GoldTagBadge":"python"}}]}
I am trying to add an Windows AltRoot to my p4 client automatically in command line without needing to edit the client form interactively. I am doing this from a Linux machine. Below is the command I tried: ``` p4 client -o | sed "s@AltRoot:@AltRoot:\n\tN:\\\path\\\to\\\the\\\client@" | p4 client -i ``` However...
*from chatgpt* In CSS, the `auto` and `fit-content` values are often used with properties like `width` and `height` to define the size of elements. - **Auto:** When `auto` is used, the browser calculates the size of the element based on its content and any other constraints applied. For example, if you have a blo...
I'm encountering difficulties with extracting request data in a Flask-Lambda application deployed on AWS Lambda using AWS SAM (Serverless Application Model). Here's a breakdown of my concerns: 1. **Background:** - I've developed a Flask-Lambda application intended to handle various HTTP requests, including POS...
So I have a navbar, and in this navbar I have the logo, the options and then the button. Whenever I apply padding to the button it pushes everything else to the left? Any advice cause I have never had this happen before. This happens with other stuff as well, so if I give the logo any padding it also pushes the items a...
I have two endpoints, /login and /index. The /login is for authentication and getting an access_token. The /index is protected and user should login first. After authentication, the /login sends the access token to the client. The client should be redirect to the /index page after receiving an access token. It...
Trouble Extracting Request Body in Flask-Lambda Application Deployed on AWS Lambda via AWS SAM
|python-3.x|amazon-web-services|flask|aws-lambda|request|
null
Threading paradigm
What are the best thing to do to implement a dashboard with summaries, like chart, real time summaries like total establishments, total compliants etc., Also, I wanted to implement a inspection scheduling for the establishments, and had a notification reminders. I am using React and Node Js here, it will really...
Dashboard - for React and Node Js
|reactjs|node.js|mongodb|
null
I need to process JSON from different sources who use different models. One is sending me ```json { "addressData": { "street": "Foostreet 1", "zip": "12345", "city": "Metropolis" } } ``` and the other ```json { "addressData": { "address": { "street": "Foostreet 1", ...
Deserialize object that might be wrapped
I created a return icon while designing, but this text appeared on it. what is this text and how do I solve it? there does not seem to be an error in my code, I searched the internet but could not find any results.I don't know how to investigate.
I created an icon and this text appeared
|flutter|dart|user-interface|
null
The design of your step definitions wasn't done right. Unlike JUnit where a single class with a `@Test` annotated method is instantiated for a test, when using Cucumber all classes with step definition annotations are instantiated for each test. This also means you'll want to [share state between steps][1], you can...
I know that this question is not related to `javascript` but its really easy to import CSV or JSON to `Cloud Firestore` via Javascript. **Steps:** 1. [Add Firebase to your JavaScript project][1] 2. Convert your CSV data to `JSON` using online tools and paste your data in below function. 3. Add function named...
I have a Python/Flask code that executes an SQL query : `***def valeurs_thematiques(): query_thematiques = """ SELECT NOMTHEMATIQUE FROM THEMATIQUES """ connection = connect(path) cursor = connection.cursor() cursor.execute(query_thematiques) res_them = cursor.fetchall() ...
Troubleshooting Checkbox Parameters Retrieval in Python/Flask Application
|python|sql|list|for-loop|flask|
null
{"Voters":[{"Id":2860711,"DisplayName":"MaxPower15"}]}
This produces a python float error: In [28]: 11.6 ** 422.5 --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) Cell In[28], line 1 ----> 1 11.6 ** 422.5 OverflowError: (34, 'Result t...
I'm struggling to implement dynamic role-based routing with the latest version of react-router-dom (v6.22.3). I have some ideas, but I'm finding it difficult to implement them fully. Notes: 1. I familiar with examples described here [link][1] 2. Goal description : 1. define roles in the router 2. consu...
To pre-select *color* in iris you can use "color" option and pass the color which you need to set. ***Demo Code***: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> $(document).ready(function() { $(".couleurpicker").iris({ width: 300, ...
#include <stdio.h> void main() { int arr[] = {10,20,30,40}; int *p1 = arr; int *p2 = &arr[2]; printf("%d",p2-p1); } Output : 2 I was suprised to see the output as 2. I don't know why the output is 2.
I would like to inform earlier that i have not built any code for this as of yet, but have this idea, and want to know how far is this feasible? So i have this video link: https://youtu.be/Y8xhrUa3KH4?si=7MTdlcXMlnrWggfG this is an excel video of length 52 mins that includes all the excel formula and functions, now c...
Extract timestamp of an educational video for extracting particular topics with the respective timestamp using python
|python|video-streaming|
I have created a table from Firebase using ListViewBuilder. I also want to view the table in the form of PDF but I have no idea on how to do that. I checked some examples but non of them satisfies what I'm looking for. StreamBuilder( stream: FirebaseFirestore... builder: (context, snapshot){ ...
|gdal|
Try `gdalinfo --version` if you have an error like this : `gdalinfo: error while loading shared libraries: libgdal.so.31: cannot open shared object file: No such file or directory` do this: 1. Find the location of libgdal.so.31 with the command `find / -name libgdal.so*`. for me the result was : `/usr/local/lib64/...
It's simple without trim method. ``` String s = "your string"; System.out.println(s.substring(10,21)); ```
null
It's simple without `trim` method: ``` String s = " Hello World "; System.out.println(s.substring(10, 21)); ```
{"Voters":[{"Id":23839105,"DisplayName":"Dodgy Programmer"}]}
I currently have a simple controller written in kotlin using spring. When hit, it will call `ServiceA` which will do some validation. If `ServiceA` throws an `AccountNotFoundException`, my controller has a `RetryPolicy` class that will be executed to retry. However in my tests, I am finding it difficult to verify m...
null
Given a **host** compiler that supports it, you can use `std::bit_cast` in CUDA C++20 **device** code to initialize a `constexpr` variable. You just need to tell nvcc to make it possible by passing [`--expt-relaxed-constexpr`][1]. This flag is labeled as an "Experimental flag", but to me it sounds more like "this fl...
I have to convert a rvalue to integer, boolean or string i am unable to convert it is giving the error error: inconsistent deduction for auto return type: ‘int’ and then ‘bool’ ```cpp auto convertData(const crow::json::rvalue &data) { std::string type = get_type_str(data.t()); if(type == "Numbe...
In this code: for arg in env::args().skip(1) { numbers.push(u64::from_str(&arg) .expect("error parsing argument")); } I understand u64 is a type, from_str is from trait FromStr. So it means u64 implements FromStr. But here I am able to call from_str without creating instance of u64. ...
calling a method on a type(not instance)
|rust|
You can not write anything to DOM when there is no DOM. Just like you can not put a sofa in your livingroom when there is no house yet. That means you have to check with ``this.isConnected`` if the element is attached to the DOM, in the ``set record`` method. Its an instance of a JavaScript class/object; You c...
Your output: ```lang-none this is thread 1 this is thread 2 main exists thread 2 exists thread 1 exists thread 1 exists ``` Before I see that *"it prints "thread 1 exists" twice."*, I see that it prints after "main exists": This behavior can lead to unpredictable results. -- First, you should array y...
Create PDF file with data from firebase
``` $upgradeInvoke = Invoke-Command -Session $session -ScriptBlock { try { Shutdown.exe /r /f /t 1200 /d p:4:2 /c "Triggerd Reboot Timer for 20 minitus" $arguments = "/s", "/v`"/qn REBOOT=ReallySuppress`"" $process = Start-Process -FilePath $using:setupFullPath -...
Start-Process is not working in Invoke-Command
|powershell|virtual-machine|invoke-command|start-process|
null
I have table which represents sequence of points, I need to get sum by all possible combinations. The main problem is how to do it with minimum actions because the Real table is huge |Col1|col2|col3|col4|col5|col6|ct| |Id1 |id2 |id3 |id4 |id5 |id6 |30| |Id8 |id3 |id5 |id2 |id4 |id6 |45| The expected resul...
{"Voters":[{"Id":2343618,"DisplayName":"user2343618"}],"DeleteType":1}
I am developing a simple test web application with registration and ability to log in. I try to add a new row to the database via Postman using this POST request: ``` https://localhost:7239/api/Auth/Register ``` But I get this issue: ``` System.InvalidOperationException: Unable to resolve service for type 'We...
I am a newbie to c# and ASP.NET Core. I have an issue with connection of my web application to PostgreSQL
|c#|asp.net-mvc|postgresql|connection|
null
[enter image description here][1]I have a block of code that creates a modal window and styles for it. I need to make sure that the styles of the modal window are not affected by the rest of the table styles, because the modal window is not displayed as expected. For example, there is a style for the body and because o...
I have created a database that has one table that keeps track of employee skills and another which displays projects that these employees can be assigned to. I need to have multiple employees asigned to the same project but i do not know how i would do this and when i try to use query to fill in this space with anythin...
Starting the development server... Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:68:19) at Object.createHash (node:crypto:138:10) at module.exports (E:\Farooq\Software Development\React JS Project\ReactWebSite\react_website\node_modules\webpack\lib...
i have installed react bootstrap in my terminal but i have found this error
|reactjs|react-bootstrap|
null
I have so many problems trying to install some mail clients like Squirrel or postfix ... I try to install a mail client but i recieve so many fails like cannot conect smtp server or similars and in squirrel only shows a white screen instead the client. Can someone make a guide to install it please ?
How can i install a mail client in ubuntu?
|phpmailer|
null
|yaml|swagger|documentation|
at least in 2024 the real reason is "forms" included in the tailwind config, if you remove it from the plugins section, outlines are back to normal and elements are not bloated in size ignoring e.g. box sizing and other odd things.
I'm attempting to send a PATCH request as follows, convert it to PSR7 and then validate the request using OpenAPI PSR-7 Message (HTTP Request/Response) Validator, which fails with the following message, "Schema(or data) validation failed: All of the required rules must pass for `{ }`". I suspect its the request itse...
It's not possible yet (March 2024), but it will be soon! Check out this [Microsoft Blog post about upcoming `GROUPBY` and `PIVOTBY` functions][1] (currently in beta versions). As part of implementing these functions, they've discuss **Functions as Arguments** - basically using `LAMBDA` functions. Many existing fu...
[enter image description here][1]I created a return icon while designing, but this text appeared on it. what is this text and how do I solve it? there does not seem to be an error in my code, I searched the internet but could not find any results.I don't know how to investigate. [1]: https://i.stack.imgur.com...
``` const Slider = () => { const [activeIndex, setActiveIndex] = useState(0); const handleSlideChange = (swiper) => { setActiveIndex(swiper.activeIndex); }; return ( <div className="slider-container"> <Swiper spaceBetween={30} centeredSlides={true} autoplay={...
The above answer is close. You need to add widgets to the Panel or Frame and not the Layout itself. The Layout just tells the panels/frames how to organize the widgets added to it. panel.setLayout(new GridLayout(1,2)); panel.add(<your panel widget>);
I'm just curious. Do you remember `$(elem).data('somekey', 'somevalue')`, when used NOT for `data-attributes`, but for storing arbitrary values/objects on the jquery element? In fact, data() was used to store anything, often entire object instancies 'on the element'. It was used a lot and quite handy. Is there any v...
jquery's data() [storage object] in vanilla javascript?
|javascript|jquery|
Based on the comments I think that the problem why the first instance Multi (Maybe a) (Fam a) does not work and if the second one is due to the memory allocation why when you implement this solution it works ```hs instance (b ~ Fam a) => Multi (Maybe a) b ``` because in this one you are moving (b ~ Fam a) to Multi ...
null
I have a SSRS report that I need to export as PPT file In order to generate the slides, I put rectangles of the exact size of a slide in cm (33.867 x 19.05 cm), for each slide with the necessary content inside There is a footer on each page (2cm) so each rectangle has a height of 17,05cm instead of 19,05 I rem...
SSRS report exporting as PPT file
|reporting-services|export|powerpoint|
null
Ok. So while I was working to my current Android Jetpack Compose project, I managed to get stuck on the following concept related to property delegates, more exactly the keyword "by". I've already read this post on stackoverflow which was pretty well received: [Difference between "remember" and "MutableState" in Je...
When the loop mode is on in Swiper, animations are not triggered in Gsap animation because they cannot be indexed. How can I do it?