instruction
stringlengths
0
30k
``` const Sidebar = () => { return ( <Box flex={1} height="100%"> <Box postion="fixed" height="100%" sx={{ boxShadow: '3' }}> <Box p={4}> <Stack sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', ...
I'll start by saying that I'm not a Java expert, and I'm facing a really strange problem that I'm not able to solve. I'm working on an application to which I decided to add a telegram bot in order to give some remote information. When I run the application from the IDE (currently I'm using IntelliJ IDEA) all works fin...
I've come up with a solution that requires a naming/styling convention on the bridge model, but other than that, everything works dynamically. You can seem the naming assumptions I made in the f-strings below. ``` from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, Strin...
I have a really cool kotlin/gradle lib that i want to use in a spring boot micro service developed in Java. Its is a market data API for Polygon [Client JVM GitHub][1] [1]: https://github.com/polygon-io/client-jvm I am bran new to Kotlin, have made my around in this project, they have some Sample Java Usage c...
I was having the same issue, then I try putting event.preventDefault() and worked. My notificationclick event looked like this: self.addEventListener("notificationclick", (event) => { event.preventDefault(); let distUrl = self.location.origin + "/specific-path"; const apntId = event.no...
I'm learning in detail how PGP system works but there are somethings that are not said everywhere I tried to look about it ; According to [this Wikipedia diagram:](https://upload.wikimedia.org/wikipedia/commons/4/4d/PGP_diagram.svg) [![enter image description here][1]][1] When we are encrypting, we use the D...
Unlike the 1st answer I disagree. Try both code segments with an `.explain()` and you will see the generated Physical Plan for Execution is *exactly the same*. Spark is based on `lazy evaluation`. That is to say: > All transformations in Spark are lazy, in that they do not compute > their results right away. ...
I want to start learing creating menu's, so, this is a script i found for testing. There are no faults in it, but he doesn't show a window with the menu's. I have looked for the reason and the problem is that he can't find the sys. First the code I use: ``` import sys ``` ``` print(sys.path) sys.path.inser...
I'm trying to set `AccessKeys` at `appsettings.Development.json` pointed to OneDrive folder. Since some team members have their OneDrive at different folders, I was tryng to use Windows environment variables like this: "AppSettings": { "AccessKeys": "%OneDrive%\\project123\\keys\\", } Howeve...
Windows environment variables at appsettings.json
|asp.net-core|environment-variables|appsettings|
You need to clone the `Carbon` object or change to immutable object. Carbon is a mutable object by default. Use `copy` or `clone` method : $booking_end = $booking_start->copy()->addMinute(45)->format("Y-m-d H:i:s"); $booking_end = $booking_start->clone()->addMinute(45)->format("Y-m-d H:i:s"); Use `o...
I'm working on a .NET 8 Blazor project and I'm trying to implement Azure AD B2C authentication. According to Microsoft's documentation, I'm using `RemoteAuthenticatorView`. It works fine in WebAssembly mode, but I'm encountering issues when using "Interactive Auto". When I use "Interactive Auto", I get the following...
Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
|c#|asp.net|.net|blazor|azure-ad-b2c|
I'm trying to make a bot with Discord.py, and I cant use discord-slash. I tried to install the pip. I will add pics (https://i.stack.imgur.com/6ygwM.png)(https://i.stack.imgur.com/6sBMO.png)(https://i.stack.imgur.com/ci4WB.png) Don't ask about the bot name, it was a discord bot for a Minecraft server originally... ...
After starting my code it closes immediately
|python|pygame|
null
|flutter|firebase|google-cloud-firestore|
null
Resolved it! The biggest problem that I didn't know what the problem was. After asking around people, I learned that the problem is called a "**circular referenc**e" and "**duplicate header**" issues. In short, these are problems that occur when objects reference each other, or when headers are compiled with dupl...
i have created a 10k lines dictionary for program iam making , some of the entries has duplicate keys because of the way the data need to be presented . the fix for this is to turn the "value" into a list removing duplicate keys . i was wondering if there is an automated way to do this ? (pycharm) for example : ...
Dictionary contains duplicate keys , automated fix help needed
|python|
null
|javascript|react-native|firebase-authentication|expo|google-signin|
null
I wonder about devops webdevolopment ? any can tell me about this please ? hello what is devops ? what lang should I learn I want to know lang to learn inorder to complete if it is same as backend devoloper ? or what else
What is devops meaning ? What requirement?
|computer-science|
null
Resolved it! The biggest problem that I didn't know what the problem was. After asking around people, I learned that the problem is called a "**circular referenc**e" and "**duplicate header**" issues. In short, these are problems that occur when objects reference each other, or when headers are compiled with dupl...
can'' find the sys modul
|python|sys|
null
The easiest thing to do is this. calculation = if then else ( result < 150 , 1 , 0 ) + if then else ( result >= 150 :and: result < 200 , 2 , 0 ) + if then else ( result > 200, 3, 0 ) I'd also remove the numbers (150 etc) and make them constants with units. It will make your model easier for others to understand...
The program basically sorts the datas. And remove the duplications considering the range of 5-29 characters. I am trying to sort some values on Mainframe accordingly : SORT FIELDS=(5,24,CH,A,45,10,CH,A) when I use > OUTFIL REMOVECC,NODETAIL, What I receive before and after running that command is differe...
Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL
|sorting|mainframe|jcl|
null
I'm trying to integrate PyDeequ with PySpark in my Streamlit application to perform comprehensive data quality checks on a CSV file. I want to use PyDeequ's functionalities to perform various tests including completeness, correctness, uniqueness, outlier detection, and date format correctness. However, I'm encountering...
I actually ended up solving this issue myself. The problem was I had List<GroupModel> instead of List<string. I changed it to List<string> and got all Active Directory Groups. Thanks :D
It's not a supported use case to link any number of anonymous accounts to full existing account. Once the user has chosen to [convert their anonymous account to a normal account][1], they should only then sign in directly using that account in order to continue using the app with their prior data. If you are creati...
null
Is it possible to change the timeout setting of a GCP load balancer backend service (a cloud run)? I tried with the command: gcloud compute backend-services update my-cloudrun-backend-service --global --project my-project \ --timeout=600 and I got the error: - Invalid value for field 'resource.ti...
Change the timeout setting of a GCP load balancer backend service
|google-cloud-run|gcp-load-balancer|
I've tackled this issue from a different angle, patches. It does require rather high resolution screen though (at least 200x200) for the trail to look nice. Taking inspiration from both @SethTisue and @Nigel. This is an example with black background and white fading trail, but the trail color can be altered given its n...
Quite annoying that there isn't a clear example documented in the cryptography module. Here's the magic incantation to convert pem files (cert + key) into a p12 file protected by a password. from cryptography import x509 from cryptography.hazmat.primitives.serialization import BestAvailableEncryption, load...
Instead of checking for multiple conditions simultaneously I think this approach is simpler, please check it out too: **Method:** - Iterating over each element in the array, you can increment a var integer each time current element is greater than the next element. - To include the additional condition of bounda...
{"Voters":[{"Id":22192445,"DisplayName":"taller"},{"Id":8422953,"DisplayName":"braX"},{"Id":478884,"DisplayName":"Tim Williams"}],"SiteSpecificCloseReasonIds":[11]}
I think the problem is that the funds are in your platform's balance. They need to be in your connected account's balance for you to make a payout. To clarify: - A Payout is a transfer of funds between the Stripe account's balance and a bank account connected to that account. - A Transfer is a transfer of fund...
I have a Java Spring Boot application running in a container within a Kubernetes pod. I'm wondering if there's a way to: Retrieve the Dockerfile configuration from the Kubernetes cluster namespace without pulling it from the repository. Suppose my Java application runs with JAVA_OPTS=X. I would like Kubernetes to...
Retrieve the Dockerfile configuration from the Kubernetes and also change container java parameter?
|docker|kubernetes|pods|
I'm using ```Make``` (```Automake```) to compile and execute unit tests. However these tests need to read and write test data. If I just specify a path, the tests only work from a specific directory. This is a problem, as first the test executables may be executed from a directory different than at compiletime by ```ma...
The difference in the size of `long` between Windows and Linux can indeed affect the result. If you want to ensure consistent behavior across platforms, you should consider using fixed-width integer types from the `<cstdint>` header. For example, you can use `int32_t` to ensure a 32-bit signed integer: #inclu...
Using any awk and 1 pass just storing the values for one $2 at a time in memory: $ cat tst.awk { if ( $2 == prev[2] ) { numUniq += ( $3 == prev[3] ? 0 : 1 ) } else { prt() numUniq = numVals = 0 } vals[++numVals] = $0 ...
I have a widget that uses the resizeToAvoidBottomInset property on a column. Here it is below with some irrelevant details like decoration taken out: Widget build(BuildContext context) { return Scaffold( body: Column( children: [ TextField( maxLi...
resizeToAvoidBottomInset is causing an overflow when the screen is popped
|flutter|dart|
I actually ended up solving this issue myself. The problem was I had `List<GroupModel>` instead of List<string. I changed it to `List<string>` and got all Active Directory Groups. Thanks :D
I hava a JTable into which I've placed a set of numbers representing gear ratios. There are some repetitions in the data and so I would like a different colored background for them; however, each  set of duplicates must have a different color.  Duplicates may consist of two, three or four cells.  The  list of duplicate...
Mixed color rendering in a JTable
|java|jtable|background-color|tablecellrenderer|
null
I actually ended up solving this issue myself. The problem was I had `List<GroupModel>` instead of `List<string>`. I changed it to `List<string>` and got all Active Directory Groups. Thanks :D
From my previous knowledge the (logical AND) has a higher precedence than the (logical OR), so for example in the following line of Java code `boolExp2 `will be compared with `boolExp3 `before comparing `boolExp1 `with `boolExp2`: `boolean b = boolExp1 || boolExp2 && boolExp3` Which is the same as: `boolean b ...
Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
|java|operator-precedence|control-flow|boolean-operations|short-circuiting|
null
What does char * argv[] mean?
I have table with two atribute 'first_interval' and 'second_interval' and I must add new coloumn 'date', but I cant do it. Connect to my table: database = boto3.resource( 'dynamodb', endpoint_url = config.USER_STORAGE_URL, region_name = 'ru-central1', aws_access_key_id = config.AWS_PUBLIC_KEY, ...
Problem with add new atribute in table with BOTO3 on python
|python|database|boto3|
null
I've been reading an [article][1] about inheritance strategies in Hibernate. An `Author` has publications, and a `Publication` can be a `Book` or a `BlogPost`. In the `join` inheritance strategy the following table structure is generated: [![enter image description here][2]][2] So the `publicationauthor` tabl...
I'm writing a bot to "archive" messages (move them but keep details of author etc) and threads to a specified channel based on date(s). I'm nearly there but I can't see how to delete the thread that is posted under the channel name: [enter image description here](https://i.stack.imgur.com/mPyPc.png) I can delete the...
How do I delete the thread under the channel name in discord with python?
|python-3.x|discord|
null
I had the same problem too, I'm running Flutter 3.16.5 on Windows 10. Upgrading Flutter to 3.16.7 DIDN'T WORK. but somehow Converting the partition (where Flutter SDK & My Flutter Project lives) from FAT32 to NTFS, Worked !
I tried the following select: ```sql SELECT (id,name) FROM v_groups vg INNER JOIN people2v_groups p2vg ON vg.id = p2vg.v_group_id WHERE p2vg.people_id =0; ``` And, I get the following error column reference `id` is ambiguous. If I try the same `SELECT`, but I only ask for `name` and not for `id` also, it ...
|sql|database|postgresql|select|ambiguous|
[items] list = 1,2,3 get using: nums = config.get('items', 'list') nums_list = nums.split(",") print(nums_list) Result should be: [1,2,3]
Based on the minimal example of stopping a QThread from @mahkitah. These are the snippets of the modified version of the code that is now able to cancel the thread (in a way). The StartProcessWorkerThread(QThread) from the main file (let's say main.py): class StartProcessWorkerThread(QThread): processi...
I started to write a discord bot using discord.js. I also followed the guid they provided until I was finished with "Event handling": https://discordjs.guide/creating-your-bot/event-handling.html#reading-event-files I wrote my first event where I want the bot to write a welcome message in a channel when somebody joi...
null
I am using miniedit to create topologies, the mininet version is 2.3.1b4, installed from git clone. Once I finish and want to export it, the terminal shows up error messages[![here is the error message. shown as TypeError: cannot concatenate 'str' and 'int' objects](https://i.stack.imgur.com/ajbl7.jpg)](https://i.stac...
The miniedit is unavailable to export topology
|python|mininet|sdn|ryu|pox|
null
If you don't use bootstrap components like me, you can use the **noninteractive** directive instead: <div v-b-tooltip.noninteractive="{title: `I'm a tooltip`}">Hover me!</div> For futher reference: [tooltip directives][1] [1]: https://bootstrap-vue.org/docs/directives/tooltip
I am trying to post to my group by a business app type facebook but getting below error: Fatal error: Uncaught Facebook\Exceptions\FacebookAuthorizationException: (#200) If posting to a group, requires app being installed in the group, and \ either publish_to_groups permission with user token, or bot...
It seems that you have a missing app. Go to **Help->Install New Software-> "select appropiate app"** in eclipse.
You should use a dictionary for the Parameters. Parameters = new Dictionary<string, object> { { "Name", "/my-param" }, { "WithDecryption", true } }
I didn't see any examples of this so I am wondering if this is a bad practice to extend DAG class. Is it a bad practice and why, if it is? Example of where I can see this useful follows... Let's say we have a number of DAGs which all share the same behaviour: calling a specific function as a very last thing, reg...
I am creating catchment zones based on points. I want to know the demographics of the catchment zones. Right now I have two shape files - one with the Census tracts and all of the demographic data and another with Thiessen polygons around points to create the catchment zones. I need the average of all tracts within ...
Averaging Census Tracts and their Demographics into Thiessen Polygons (ArcGIS, R)