instruction
stringlengths
0
30k
null
I have been working on this tree in PysimpleGUI, suddenly the `insert` method decides to stop working when I give it a list full of data. I debugged nearly everything about it, the function `insert` itself stopped working or adding anything to tree data. Here is code ```python import PySimpleGUI as sg from servic...
I have console application in dot net core. I have created profiles in launchSettings.json as below ``` { "profiles": { "Console.Dev": { "commandName": "Project", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "DEV" } }, "Console.UAT": { "commandName": "Pr...
How to publish dot net core console application with particular profile?
|c#|visual-studio|console-application|publish|
null
I want to deploy the test branch of my existing repository named 'engine' using Google Cloud Run, but Cloud Run is not allowing the deployment because the repository is already deployed. My question is this; How do we proceed when we want to deploy different branches of a repository? And how can I do this with Go...
I have a dataset in Spotfire where each row contains a TASK_START and TASK_END column, as well as several other columns containing values. As an example input, something like this: | TASK_START | TASK_END | USER | PROJECT | | 01-JAN-24 | 01-MAR-24 | name1 | project1 | | 01-JAN-24 | 01-APR-24 | name1 | pro...
Template Lubridate script for duplicating rows for a given start/end date
|lubridate|spotfire|
null
I'm trying to access xml data that's deep in an xml file with linq. I've been looking at these examples: [linq][1] [linq][2] I'm not seeing a good example that doesn't involve names. **mid-question Update:** Ideally, I should be able to access the conditions (1 or 2 usually), and for each condition, to chec...
Is anyone familiar with Proxmox API? Specificly on how to create VM, as part of my bootcamp I'm trying to develop a friendly UI (https://github.com/sbendarsky/Proxify.git) using next.js for proxmox and I cannot find a solution on how to do that. I tried to search the web on how to do that but didn't find anything, I...
How to create a VM with proxmox API?
|javascript|next.js|virtual-machine|proxmox|
I understand that you don't want to do it in every Activity, but with activities there is no other approach than setting theme in each one of them. I would suggest you to create abstract parent e.g. `BaseActivity` and call `setTheme()` here inside `onCreate()`. Then you will update your activities just to extend th...
your namespaces in the begining of the controller file should match the herirechy of the data sturcture it should implement [PSR-4 autoloading standard][1]. check [laravel doc][2] for more details so namespace for DokterController should be namespace App\Http\Controllers\docker; and the use should be...
A simple solution is to install JDK17 just for Jenkins: 1. Download: https://adoptium.net/temurin/releases/?arch=any&os=linux&version=17 2. Copy tgz to your jenkins node (agent) root e.g. to `/var/jenkins`. 3. Unpack tgz. 4. Rename unpacked directory from "jdk-..." to "jdk". 1. Check version: `/var/jenkins/jdk/bin...
Difficulty of CSS Inner Text-Shadow Effect
|css|text-shadow|
[enter image description here](https://i.stack.imgur.com/PkLMn.png) every time we open vscode,and use remote-ssh to link remote server, the port-forward info is diffrent?the port of localhost:xxx is changing every time... we want to persist store port-forward rule in local db, trying to have a same port-forward rul...
where is the port-forward rule file stored in vscode?
|portforwarding|vscode-remote|
null
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":6463558,"DisplayName":"Lin Du"}]}
I have deployed our website as a Cloud Run service. Added a Global external load balancer as per the doc listed in this link [here][1] Everything is perfect and My website is now runnings as `https://example.com` I am currently exploring redirecting `www.example.com` to `https://example.com` . Tried adding ...
I have deployed our website as a Cloud Run service. Added a Global external load balancer as per the doc listed in this link [here][1] Everything is perfect and My website is now runnings as `https://example.com` I am currently exploring redirecting `www.example.com` to `https://example.com` . Tried adding ...
Monthly Attendance Report In crystal report
|sql-server|vb.net|crystal-reports|
I have following model which forms one of the step in my overall model pipeline: import torch import torch.nn as nn class NPB(nn.Module): def __init__(self, d, nhead, num_layers, dropout=0.1): super(NPB, self).__init__() self.te = nn.TransformerEnc...
Automate the login on Google using an AWS Lambda function
In the page router, we can access the `headers` only in the `getServerSideProps` or `getInitialProps`. And if you want to access the headers using tRPC, you should enable its `ssr` flag as described in the official document: https://trpc.io/docs/client/nextjs/ssr Which will be like this: ```js import { httpBatchLi...
Understanding batching in pytorch models
|python|machine-learning|deep-learning|pytorch|transformer-model|
use `refreshCookie('name')` to update the cookie value on the browser. [source][1] [1]: https://nuxt.com/docs/api/utils/refresh-cookie#purpose
{"OriginalQuestionIds":[77204525],"Voters":[{"Id":45375,"DisplayName":"mklement0","BindingReason":{"GoldTagBadge":"powershell"}}]}
Try to use this in your `handleSubmit`: ```javascript import { router } from '@inertiajs/react'; router.reload({ only: ['user'] }); ``` You can see more details in the [Inertia.js documentation](https://inertiajs.com/partial-reloads). P.S.: It would be clearer if you could also paste your controller code.
Piggy-backing on @Thai's answer, I used `cy.then(async () => await func)` The short version: ```js cy.then(async () => await makeFirebaseUser()) .then(async (firebaseUser) => await makeRailsUser(firebaseUser)) ``` In context: ```js Cypress.Commands.add( 'createFirebaseGoogleOauthUser', ({ displa...
This following task, which signs a setup program using DigiCert Signing Manager Controller (smctl), works without any problem, if I use it in a Azure YAML pipeline. ``` - task: CmdLine@2 displayName: 'Sign setup file' inputs: script: smctl sign --verbose --keypair-alias=$(digicert-key-pair-alia...
Deploy different branchs with Google Cloud Run
|deployment|google-cloud-run|
I'd do it the way it was already suggested, either have the DB do all the heavy lifting, each query as a separate task, with staging tables in between. Or, if you're adamant, use Pandas, each transformation saved to a CSV - Airflow DB (XCOM) is simply not suitable for holding large sums of data.
I would simply *not* add a status, but check if the end timestamp is used. By defining a `status` field, you introduce *data duplication*, you specify the same thing *twice*. You probably should also *combine* the date and the time, since a timestamp is more than a date and a time because of *daylight saving time* f...
I'm doing a tutorial from Chris Courses on youtube with vertical platformer game using html and javascript, and I'm having some trouble. The error goes `Uncaught DOMException: CanvasRenderingContext2D.drawImage: Passed-in image is "broken"` The lines it's referencing (aka, whenever I'm trying to use the picture): ...
"Uncaught DOMException: CanvasRenderingContext2D.drawImage: Passed-in image is "broken"" error
|javascript|html|
null
Try adding a wrapping `<View>` around the `<SafeAreaView>`, and give the background color to that?
After some research what worked for me was the shadowJar plugin from the `com.github.johnrengelman.shadow`. this creates a fat JAR file that includes all the required dependencies. Here's what I did: I applied the shadowJar plugin in my `build.gradle` file: plugins { id 'com.github.johnrengelman...
See the following example where case B is undesirable and either we want case A or case C. I could envisage this being detected by (i) (ii) or (iii) below. (iii) is possible with rule "no-var" but I don't want to go through and change all of my code base. ``` function throw1 (j) { if (j == 1) throw j; return ...
I want to write a patterns that takes a string like this `/a/b/c` and extracts `a`, `b`, and `c`. a, b, and c are optional, so `///` is a valid input. Currently I have this: `"^%/(.-)%/(.-)%/(.-)$"`. This works, except if my input is `/</>/b/c`, I get matches: `<`, `>`, `b/c`. Obviously the second `/` should be escaped...
How to write a lua pattern that is aware of escaped characters?
|lua|
I'm trying to install a package called [ESL-bundle](https://gitlab.com/ElectronicStructureLibrary/esl-bundle/-/tree/master). One of its modules (called futile) went wrong when I tried to change the compiler. my operation: ``` git clone https://gitlab.com/ElectronicStructureLibrary/esl-bundle/-/tree/master mkdir i...
I guess what you are doing wrong over here is, columns array look out for title paramter instead of data to render column header. So can you try ahead with this $datos = "[{title: 'id'},{title: 'nombre'},{title: 'telefono'},{title: 'email'},{title: 'status'}]";
I'm trying to generate a list of ExpansionTiles that has another list of ExpansionTiles as children. The lists are generated by receiving data from the database. The problem is that when I click on an ExpansionTile it gives me this error and it doesn't expand: > The following assertion was thrown during performResiz...
Vertical viewport was given unbounded height. flutter
|flutter|flutter-list-tile|expansion-tile|
null
|sql-server|encryption|stored-procedures|sql-server-2022|
I would write a small parser based on a regex and [`operator`](https://docs.python.org/3/library/operator.html): ``` from operator import ge, lt, gt, le import re def logic(value, bid): # define operators, add other ones if needed ops = {'>=': ge, '>': gt, '<': lt, '<=': le} # split conditions on c...
I try my best to give a simple and understandable answer (may not be accurate). Each class or module should focus on doing just one main task(SRP). If it needs to do something else, a different class or module should handle that other task(IoC). E.g: I have a calculator class/module that sends the result to the u...
Why are encrypted stored procedures taking a long time to execute in SQL Server 2022?
I've developed an app for Autodesk Revit that processes models in our Autodesk Construction Cloud (ACC) Hub. Through 3-legged authentication users login and can see all the projects they are assigned to. This part is fine. We collaborate with other partners live in our Revit models (cloud worksharing). In some inst...
I am getting this error when I make changes the input field. I am not very good with react, still learning. If anyone can help me figure this out, that would be appreciated. const config = getConfig(); class MyModal extends Component { constructor(props) { super(props); ...
Error: React infinite loop. Maximum update depth exceeded. This can happen when a component repeatedly calls setstate
|reactjs|
In this project that I'm working on, I need to display the mean values on the parent-level(Reference area) and the actual values on the child-level(TIME_PERIOD) using plotly treemap. However, I fail to distinguish the parent and child hover data values. It either shows the sum of the child values as the parent hover va...
null
So I am just learning php and creating a OPG Clinic Management System as my first project. I am not watching any tutorials or reading books I am learning on the go. For example I didn't know what CRUD is until I needed to implement that in the System. Right Now I am facing an issue where I am unable to print only ...
Print The Receipt Only Using PHP or JS
|javascript|php|printing|
null
|azure|powershell|azure-active-directory|
null
I'm trying to get the difference in days between 1. the date each row of my table 2. The current date So I can then multiply it by a number. However I keep getting errors and exceptions. I searched Google, the Django docs, but couldn't find how. I even asked ChatGPT and Codeium but they keep giving completely wrong...
null
Hello guys I have an csv file from which I want to plot the data using dash. The csv file look like this: 141954,23.750\ 14200,23.750\ 14206,23.750\ 142012,23.750\ 142018,23.750\ 142023,23.750 Ive reached that I got both rows in different lists. Now I want to plot this. When I run my code everything works ex...
See example ``` with -- recursive -- for PostgreSql cte as( select expression_id,oid ,concat( case when lv in('*','+','-') then concat('[',lid,']') else cast(lv as varchar) end ,ov ,case when rv in('*','+','-') then concat('[',rid,']') else cast(rv as varchar) end ...
I maintain a GWT multi-module maven project dated back to the good old golden GWT-days. We were able to debug the GWT application till now relying on classic dev mode but now due to security concerns , we are trying to setup our dev environment (Eclipse IDE) to use Super Dev Mode. But when it comes to development...
Encountering bindException when running CodeServer
|gwt|gwt-maven-plugin|
null
This post is 7 years old but seeing as it's still an issue I would like to post my solution to this as well as my understanding of the problem. The issue is that when you type in a box using updatesourcetrigger=propertychanged is that after each character entered the application will run a parse into a double. The ...
I have a main category and quite a few sub-categories within that main category. When I enter the main category, I want to list all products of all sub-categories that belong to the main category. **What i do** **Model** class Category extends Model { public function children() { ...
Laravel: Show products of all subcategories
|laravel|eloquent|laravel-8|
null
Temporarily set `GIT_CONFIG=/dev/null` for the duration of `pre-commit install`. ``` GIT_CONFIG=/dev/null pre-commit install ``` I did not have success setting dummy `XDG_CONFIG_HOME` like previous answers suggested. Setting `GIT_CONFIG` works. With _my_ workaround, I am willing to accept the resolution on i...
null
null
null
null
when trying to visualize big datasets in python, the plot and date becomes unreadible. How to make sure the data always keeps readible? All solutions are welcome including making use of other packages. My code: ``` import json import matplotlib.pyplot as plt # Load the JSON data from the file with op...
If you try to invoke the method and if the channeling isn't setup correctly you will see error or warning logs on the console. And remember to setup your API interface to the flutter engine. Example code: class MainActivity: FlutterActivity() { override fun configureFlutterEngine(flutterEngine: Flut...
It sounds like you are using the built in blob url that the browser creates when you upload something on to the browser. This url is only temporarily when the browser keeps the file in memory and as soon as you refresh the page it will clear it, resulting in the url becoming invalid. If you want to access the file l...
Im try to get daily ATR for last 5 days. Code work perfect on D1 but take another result on lower timeframes. Why? Seems like [dh, dl] on lower TF contains only current day info ``` [dh,dl] = request.security(syminfo.tickerid, "D", [high,low], lookahead=barmerge.lookahead_on) if barstate.isrealtime log.info...
I have a dropdown to change currency, I have a problem On the checkout page, the product details are in pounds, but when paying with PayPal, it gives me euros. Is there a function or hook to change the payment currency? **WordPress, Woocommerce.** [the product details](https://i.stack.imgur.com/ExZNG.png) [p...
Change the payment currency - woocommerce
|php|wordpress|woocommerce|