instruction
stringlengths
0
30k
|sql-server|django|sql-server-2022|mssql-django|
`math.gcd()` is certainly a Python shim over a library function that is running as machine code (i.e. compiled from "C" code), not a function being run by the Python interpreter. See also: [Where are math.py and sys.py?](https://stackoverflow.com/questions/18857355/where-are-math-py-and-sys-py) **This should be it (...
I have a task and I need to copy data from one SQLite table to almost identical postgreSQL table. I wrote a code that doesn't work and I can't figure out what's the problem. It prints that connection was established successfull, shows to errors, but when I go to the terminal to check `content.film_work` table with comm...
How to copy data from SQLite to postgreSQL?
|python|postgresql|sqlite|
For some reason, the navbar is displayed below other content and I'm not sure where I've messed up... This applies to all other pages with the same navbar. Other content overlaps the navbar when scrolling. I'm not able to view the dropdown on .resources. I really can't find where the issue is as the same navbar has ...
null
For some reason, the navbar is displayed below other content and I'm not sure where I've messed up... This applies to all other pages with the same navbar. Other content overlaps the navbar when scrolling. I'm not able to view the dropdown on .resources. I really can't find where the issue is as the same navbar has ...
You need to send the message to the `HWND` that `CreateWindow()` creates. You can get that from the return value of `CreateWindow()`, or from `GetDlgItem()` after `CreateWindow()` is finished. The `LPARAM` needs to be a pointer to the 1st character of a null-terminated C-style string, eg: ``` char myline[size]; ...
I'm new to both android and java, now im trying to update a textview with the state of the call, but the view model doesn't get the value from the telephony callback class. Im using post value since app goes background when it rings. The permissions for read_phone_state and call_phone are given on mainActivity. ...
Flatlist Sometimes Capped at 10 Items Bug
|react-native|
null
I'm trying to create a plugin which hooks into Invision Community Suite's 'saved actions' functionality. Essentially, when a saved action is run against a topic, I want to ask for more information. This is for the latest version of IPS, no third-party applications/plugins installed. I have tried 'echo'ing the Jav...
Invision Community Suite - Display popup modal in PHP hook via plugin?
|php|invision|
null
I'm trying to create a thumbnail sheet (a grid of thumbnails) using ImageMagick with filenames beneath each image. The filenames are long UUID style strings, and using the -title option they overflow into each other to create an unreadable mess. So I thought I'd truncate the names to only show the first n characters. M...
I want to prepare a site to automatically compare prices with ready-made codes. I found a dashboard with ready-made codes on Bootstrap. Hosting was purchased for me to start the process. Now how can I continue the process? Are there sites for videos or other information? Code to try: I have 1 year of knowledge.
JSON file of 7000 meetings in multiple timezones and Flatlist
|react-native|datetime|react-native-flatlist|
null
InnoSetup error 193 after install Mysql Connector
I'm encountering an issue with passing the "size" parameter from my JavaScript function to my Django backend. Here's the relevant code snippet from my Django view: ```python def get_product(request, slug): try: product = Product.objects.get(slug=slug) if request.GET.get('size'): ...
Alternatively to what @kadina has posted, you could pass a pointer to a character to your `Get` function. You also need to eliminate the trailing newline character from your format string. void Get(char *ch) { scanf("%c", ch); } And in main, we declare a variable `ch` of type `char`, since th...
I am trying to make predictions with Bert, where the prediction of subsequent words in the first input of each paragraph may be aided, so can Bert make use of previous predictions in subsequent predictions like an autoregressive language model?
Give Bert an input and ask him to predict. In this input, can Bert apply the first word prediction result to all subsequent predictions?
|machine-learning|nlp|bert-language-model|
null
Within your working repo , Create a folder named templates and copy your html files to it .
When i tryied to light the LED from python with this code: ``` import serial arduino_port = 'COM5' arduino_baudrate = 9600 arduino = serial.Serial(arduino_port, arduino_baudrate) def send_command_to_arduino(command): arduino.write(command.encode()) send_command_to_arduino('2,1') ``` i have this error in...
How to fix python serial monitor parsing error?
|python|arduino|pyserial|arduino-uno|serial-monitor|
null
Intent Environment = new Intent().setAction(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION) .setData(Uri.parse("package:" + getPackageName())); if (Environment.resolveActivity(getPackageManager())!=null) { startActivity(E...
I'm using `py setup.py bdist_msi` to generate windows single executable file for my python application. this works fine on my computer, but it does not work when it is executed in GitLab pipeline. does anyone know how to solve this issue? i'm using Python 3.11.8 on my local machine and on the pipeline. here is the erro...
I am a beginner trying to build very simple inventory system using PHP + SQL I have 2 warehouse. I added 2 tables, 1 for each warehouse contains (item id)-(in)- (out) like shown below table1 | item id | in | out | | -------- | -- |-----| | item1 | 10 | 0 | | item1 | 5 | 0 | | item2 | 0 | 3...
I'm using this key ``` final GlobalKey<DropdownSearchState<ProductModel>> _productKey = GlobalKey(); ``` Using this key in the following dropdown_search ``` Widget loadProducts() { return DropdownSearch<ProductModel>( key: _productKey, asyncItems: (String filter) async { var resp...
TelephonyCallback.CallStateListener with LiveData and ViewModel
|java|android|mvvm|callback|mutablelivedata|
null
I'm working on a react-three-fiber website and can't get SSR (screen spaced reflections) working at the same time as Bloom. I'm using [@react-three/postprocessing](https://www.npmjs.com/package/@react-three/postprocessing) which I understand uses Effects rather than Passes, however I believe my real issue lies in libra...
Threejs Postprocessing Screen Spaced Reflections with Bloom
|three.js|react-three-fiber|post-processing|react-three-drei|bloom|
null
No, unfortunately, all IDE have limitations to display datasets. However, you can print row by row until you reach the end of your dataframe.
**The problem** In my Flutter app, there is a custom drawer that is accessed through a button. In this drawer, there is a widget (InfoCard) which displays some of the user's information. However, in this widget, there is a FutureBuilder, so every time the drawer is displayed it shows a CircularProgressIndicator unti...
I’m making an in app purchase for my game on Steam. On my server I use python 3. I’m trying to make an https request as follows: conn = http.client.HTTPSConnection("partner.steam-api.com") orderid = uuid.uuid4().int & (1<<64)-1 print("orderid = ", orderid) key = "xxxxxxxxxxxxxxxxxxx" # omitted for...
{"Voters":[{"Id":7582247,"DisplayName":"Ted Lyngmo"},{"Id":18519921,"DisplayName":"wohlstad"},{"Id":11294831,"DisplayName":"the busybee"}],"SiteSpecificCloseReasonIds":[13]}
If the packageManger field in package.json is not specified, Corepack will download the **global** version of the package manager that Corepack is configured with (Corepack also calls these 'Known Good Releases'). To update the Known Good Release, you can either: - Set the packageManger field in your project's pack...
THIS IS MY TRUFFLE-CONFIG.JS <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> require("babel-register"); const HDWalletProvider = require("truffle-hdwallet-provider"); require("dotenv").config(); module.exports = { networks: { ...
automatically compare prices with ready-made codes
|css|bootstrap-5|
null
I am looking for example to JUnit test KStream related scenarios with spring-cloud-stream kafka streams binder. Any example available with KStream, KTable? For example i want to test following function @Bean public Function<KStream<String, String>, KTable<String, String>> func() { return stringKStr...
How to JUnit test KStream related scenarios with spring-cloud-stream kafka streams binder? Any example available with KStream, KTable?
|spring-cloud-stream-binder-kafka|
null
I'm trying to create a plugin which hooks into Invision Community Suite's 'saved actions' functionality. Essentially, when a saved action is run against a topic, I want to ask for more information. This is for the latest version of IPS, no third-party applications/plugins installed. I have tried 'echo'ing the Jav...
grep -o 'CN=[^,]*' data | sed 's/^CN=//' The grep command extracts CN=*blahblahblah* by finding 'CN=' followed by anything that is not a comma. Then the sed command deletes 'CN=', leaving just the *blahblahblah*. Another way of doing it is grep -o 'CN=[^,]*' data | tail -c +4 where the tail commands ...
How to maintain the current state of global key in flutter
|flutter|dart|global-key|
null
I've just installed Wordpress 6.4.3 & MAMP and managed to edit functions.php and saved my changes. When I tried to make more changes to the file, Wordpress started displaying the following error message: > Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you...
I have created an ASP.NET Core 6 Web API using C#. When I changed `app.Run();` in `program.cs` file to this: ``` app.Run(async context => { await context.Response.WriteAsync("I'm upgrading!\nTRY AGAIN LATER"); }); ``` The application does not show me the message and does not open either! Does anybody...
ASP.NET Core Web API pipeline Does Not Work As expected
|c#|asp.net-core-webapi|asp.net-core-6.0|
I'm working on a program that processes arrays of coordinate points, with the goal of determining whether these points form geometric shapes such as circles, ellipses, arcs, straight lines, or polylines. If the points form a circle or an ellipse, the program needs to return the parameters of these shapes. I've looke...
Here is the scenario / task: The user is browsing online and as soon as he/she runs into a website that uses CDN (for example CloudFlare or any other reverse proxy) the browser the user is using has to do the following: Either 1. Warn the user that the site is on CDN / reverse proxy. or 2. Block the site by sa...
Here is the scenario / task: The user is browsing online and as soon as he/she runs into a website that uses CDN (for example CloudFlare or any other reverse proxy) the browser the user is using has to do the following: Either 1. Warn the user that the site is on CDN / reverse proxy. or 2. Block the site b...
{"Voters":[{"Id":10008173,"DisplayName":"David Maze"},{"Id":2395282,"DisplayName":"vimuth"},{"Id":213269,"DisplayName":"Jonas"}],"SiteSpecificCloseReasonIds":[13]}
**Explaination** I have visual studio to 17.9.5 when i publish an existing project or create a new one and publish it. It shows me only the http:5000 port. It does not run neither on cloud. **Question** Why is the https port disabled on publish? How can it be enabled? **The code i get when...
Why https is disabled on publish in .net core 7.0
|.net|asp.net-core|
|python|setuptools|setup.py|python-packaging|pipenv|
|node.js|database|jsx|
Since it was obvious nobody knew the answers I was looking for, I decided to experiment and discovered/remembered the following: for vertical spacing the first two keys are Alt+O V, and for horizontal spacing Alt+O Z. After this, you type E (to equalise), I (to increase) or D (to decrease). I'm using Access 2010 and t...
I have developed a social platform where users can upload text posts, each time a user opens the app text posts pubished on the database are showed, we also have a page including posts under top hashtags, in app notifications, personal page with our posts showing and the ability to search for hashtags. I have to admit ...
As @Paulie_D say, you can avoid this overflow issue by changing `height` to `min-height` <!-- begin snippet: js hide: false console: false babel: false --> <!-- language: lang-js --> document.body.addEventListener('click', function() { const elem = document.getElementById("aid"); if( elem...
Currently, I'm trying to get down basics of jetpack compose, and I'd like to ask you about the view model. Let's say we have an app which will make a few different api calls. As far as I know, before jetpack compose, we could have a few fragments for each api call (because they will serve completely different data). So...
Your question is definitely incomplete, and it's going to be hard to find a legit answer. How do you experience the cached file? I'm assuming that it is downloaded via https:// on the website? That's really the only time WordPress and cache is involved... So the answer is to rewrite the URL code inside to do this...
Windows 11 I would like to filter double values. [![enter image description here][1]][1] [![enter image description here][2]][2] [1]: https://i.stack.imgur.com/ZckkI.png [2]: https://i.stack.imgur.com/ICCrr.png 1. testo = text 2. numerico = numeric 3. valuta = currency ...
|sql|mysql|select|left-join|
Considering the following example: ```rust pub trait Fusion: Send + Sync { ... } let ff2: Arc<RefCell<(Box<dyn Fusion>, bool)>> = ...; ``` all Impls of Fusion already has atomic, lock-free algorithm built-in, they are safe to be shared in multiple threads. It should be noted that both RwLock and Mutex ca...
I don't know how to correctly calculate the accuracy of the relationship between how many tries I needed and how probable it was to find the number within this amount of tries. E.g. if I needed 1 try it should be 100% accuracy-score but if it took more tries, the accuracy-score gets decreased. My attempt was to divi...
I am a beginner trying to build very simple inventory system using PHP + SQL I have 2 warehouse. I added 2 tables, 1 for each warehouse contains (item id)-(in)- (out) like shown below table1 | item id | in | out | | -------- | -- |-----| | item1 | 10 | 0 | | item1 | 5 | 0 | | item2 | 0 | 3...
Why do I need to wait for SQFLite when data is stored in Firestore server
|flutter|google-cloud-firestore|sqflite|
In the index.html, does the <base href="/xxxxxxx/"> match the folder in IIS? Typically \inetpub\wwwroot\someapp but in your case d:\myapp If you have a pluralsight subscribtion, there are videos by Shawn Wildermuth specifically on using .net and angular together. Also, I am used to seeing Cors setup in tw...
The Logtalk distribution includes a [state-space searching](https://github.com/LogtalkDotOrg/logtalk3/tree/master/examples/searching) programming example implementing a framework for solving state-space search problems. It includes abstractions of heuristic and non-heuristic state spaces plus several search methods all...
There are two frontend websites in question. Upon user authentication on one website, a JWT token is generated. Subsequently, when the user accesses the second frontend, they should seamlessly retrieve their information without the need for reauthentication. How can I effectively implement this feature? I would appreci...
How to share JWT through 2 React.js Frontend
|javascript|reactjs|node.js|jwt|
# Material-UI Data-Grid v7 import { styled } from '@mui/system'; import { DataGridPro } from '@mui/x-data-grid-pro'; function DataGridGeneric(props) { return ( <CustomDataGridPro disableColumnMenu {...props} /> ); } export default DataGrid...
Another solution: ```cpp =LET(s,SEQUENCE(INT(LEN(A2)/2)),FILTER(LEFT(A2,s),LEFT(A2,s)=MID(A2,s+1,s))) ``` [![enter image description here][1]][1] The idea is the same as the other user. Generate all the potentially matching strings of length at most `INT(LEN(str)/2)` and only keep the ones that match, if the...
I'd like to create a speech bubble using pure CSS. There's a few requirements I have: - It must scale with either the content + some padding or a preffered size. - It's background color should be semi-transparent. - You should be able to set a border, with it's own level of transparency. - You should be able...
Pure CSS speech bubble with semi-transparent background and a border
|html|css|
I have a page similar to this: File: `[pid].tsx` type ProblemPageProps = { problem: Problem }; const ProblemPage:React.FC<ProblemPageProps> = ({problem}) => { ... return ( <div> <Workspace problem={problem} /> </div> ...
Detecting Circles and Ellipses from Point Arrays in Java