Latest Questions

Adding new key values in a dictionary that was imported from an CSV file?

Sorry But I can't use pandas. I have a sample input csv file that looks like this: Alfa,Beta,Charlie,Delta,Echo,Foxtrot,Golf,Hotel,India,Juliett,Kilo A1,B1,C1,D

Where does transformers save microsoft/DialoGPT-small?

when I run the code from transformers import AutoModelForCausalLM, AutoTokenizer import torch SML=input("small,medium or large: ").lower()#I pick small model_na

Java Mybatis to Python SQL Alchemy - is there resultMap mybatis equivalent in SQLAlchemy python. which logically maps join queries removing duplicates

Say we have a select query like select a.col1,a.col2,a.col3,b.col1,b,col2,c.col1 from a, b, c where a.col1(+)=b.col2 and b.col3(+)=c.col2 In mybatis xml we hav

How much effort should I put into a apache Camel route versus just writing the logic in a Processor?

I've used Camel to do some message processing, to take a message from a source, massage it a bit, and send it on to some target. But I'm trying to use it for a

WPF RichTextBox - How to get second line?

I would like to choose the second or other line from RichTextbox instead of the first or last line. I know this is the code for selecting the first line and the

Here I add a question.I want to add spinnner ..how can i add spinner in this code

import axios from 'axios'; import React, { useEffect, useState } from 'react'; import { useAuthState } from 'react-firebase-hooks/auth'; import auth from '../..

How do I extract two different keywords from two different lines in a file in bash shell?

I have a file called data.txt. when I read the file, the content looks like the below. $ cat data.txt name: linuxVol id: 6 type: Linux dir excludes: .snapshot*

Flutter android app doesn't have internet connection

I built an flutter app. I used url_launcher package to navigate social links and other external browser links. And it was perfectly working on android emulator.

How fix remember in Jetpack Compose?

The picture shows the code and logs For some reason startDate and endDate not recreated

Append nanosecond to millisecond Python datetime object

I am trying to append nanoseconds to an already existing millisecond datetime pandas object. So, for instance, I already have 08:02:36.715647 which reports upti

Bitbucket commits page - greyed out/faded out commits?

In bitbucket when I go to the 'commits' page to see my list of commits for a branch, I see that some commits are full brightness, but others are faded/greyed ou

Permission denied to google cloud secret on firebase function deploy

I have a firebase project with a google cloud function like this: export const myFun = functions.region("europe-west1") .runWith({ timeoutSeconds: 10, secre

How to load all classes from the byte array of a JAR file at runtime?

I have an array of bytes of a JAR file and I need to load all the classes from this array. How can I do this without converting this array to a file?

Passing token from one threadgroup to other and handling the token expiry time

I have generated the auth token in setup threadgroup and have passed the auth token to other threadgroups using setProperty and property.But the token expiry ti

converting a string to dot notation to access value in nested list in python

items={ "fruits": { "summerFruits": { "Mangoes":5, "melo

How to capture record versions by PaperTrail on bulk insert in Ruby on Rails?

I use Paper Trail gem to capture versions of my models and it works very nicely. But Paper Trail don't capture version on bulk insert. Example: User.bulk_import

How can I make a JMenuItem open a JTextField when I click it?

I am writing code that lets the user enter, search for and remove participants. Right now I have the JFrame that has a JMenu on it with a few JMenuItems. When I

One working ScrollView example and one refusing example

This is a working example of a ScrollView: var body: some View { ScrollViewReader { proxy in VStack { Button("Warp to line 10 o

Firefox extension DOM change weird behaviour

It's my first time trying to learn Firefox extension development. To get started, I'm trying to make a simple extension that alters some parts of the youtube.co

Tkinter window resize to fit content without touching

I have created an application that required to use the place() manager. I tried using pack() and grid() but after many tries and lots of effort it did not work

Interface and Implementations with Separate Templates

I have a Java interface with several implementing classes. Each implementation class needs its own associated (sub)template. At runtime I add a collection (Li

How to prevent Oracle SQL Developer from creating the product.conf file in %APPDATA%

In 2022, the question asked in how-to-prevent-oracle-sql-developer-from-writing-to-appdata-roaming is still a bit of a problem. While the -Dide.user.dir option

Intent from widget not taken into account since Android SDK 31

My app offers the possibility to launch it through as many widgets as wanted by the user. To determine which widget trigerred the launch, I use an extra paramet

SQL group by 7am to 7am

How do I simply group by a 24 hour interval from 7am to 7am in a manner similar to: select format(t_stamp,'yyyy-MMM') from mytable group by format(t_stamp,'yyyy

Google Cloud App Engine (GAE) Flexible: Load Balancer error: backend_connection_closed_before_data_sent_to_client

I have GAE flexible this app.yaml: # [START runtime] runtime: python env: flex entrypoint: gunicorn -b :$PORT ******.wsgi automatic_scaling: min_num_instance

How to use variable declared inside function outside of it?

How do I use a variable that I declared inside a function outside one. Do I have to declare a function first and then use it? Using global doesn't work, so what

Should i call StateHasChanged everytime a value is changed

look at this blazor server page: @page "/" <div>@Field1</div> <div>@Field2</div> <button @onclick="OnBtnClick">Btn</button>

May I link a relative path in some comments?

I want to show some help tips, and modify some files in config Example /** * Fix some issue * * @link file://$(workspaceFolder)/node_modules/xxxxxx/dist/inde

MYSQL based FulltextSearchable With Elemental blocks

Is it possible to use the mysql based fulltextsearchable functionality to search elemental blocks content? Elemental has integration features with Solr, but I'm

WinSCP.SessionLocalException: The winscp.exe executable was not found at location of the assembly WinSCPnet

I am new working in a lab that sends data from a local computer to an HPC. I have been all day working around the following problem I am not familiar with it at