Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,639,342 | 2 | null | 66,432,632 | 0 | null | > Is this a bug in Docker or do I fundamentally misunderstand how Docker works?
I think this is more of a Docker limitation than a bug.
> as far as I know, Docker should not produce different images when building the same thing on two different operating systems?
This is not entirely true. Docker does provide an "OS en... | null | CC BY-SA 4.0 | null | 2023-03-04T23:37:59.090 | 2023-03-04T23:37:59.090 | null | null | 675,721 | null |
75,639,343 | 1 | null | null | 0 | 10 | I'm trying to create a cascading select to define a category of a file
```
const categories = ["a", "b", "c", "d"];
<InputLabel id="category">Category</InputLabel>
<Select
labelId="category"
id="category"
value={category}
label="Category"
... | how do I create a menu that opens another menu when I click on an item? | CC BY-SA 4.0 | null | 2023-03-04T23:38:05.027 | 2023-03-05T01:39:25.470 | null | null | 10,381,286 | [
"reactjs",
"menu"
] |
75,639,340 | 2 | null | 66,107,210 | 0 | null | This is not well documented, as I'm increasingly finding with a lot of Laravel environment/infrastructure stuff, and this stuff is especially hard because between caching issues, slow migration times and there being no easy way to seeing whether the in-memory database is actually being used, it's both a hard and slow p... | null | CC BY-SA 4.0 | null | 2023-03-04T23:37:31.737 | 2023-03-04T23:44:57.893 | 2023-03-04T23:44:57.893 | 1,191,147 | 1,191,147 | null |
75,639,344 | 1 | null | null | 0 | 5 | I have docker script with following mount as readonly:
```
--mount type=bind,source=/opt/files,readonly,target=/media \
```
this works, docker has readonly right to this folder, however I have another drive mounted inside in subfolder via fstab:
```
UUID={uid_removed} /opt/files/_external ext4 noatime,errors=remount-r... | Docker readonly mount doesnt work for mounted drive in subfolder | CC BY-SA 4.0 | null | 2023-03-04T23:38:09.007 | 2023-03-04T23:38:09.007 | null | null | 571,816 | [
"docker",
"readonly"
] |
75,639,347 | 2 | null | 75,637,791 | 0 | null | if you do not specify an aggregation function inside of agg, the result will be a list.
This might be what you are looking for.
```
df.groupby('shipto').agg(
'order',
pl.sum('value')
)
# Result
shape: (2, 3)
┌────────┬────────────────────┬───────┐
│ shipto ┆ order ┆ value │
│ --- ┆ --- ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:38:23.180 | 2023-03-04T23:38:23.180 | null | null | 11,015,558 | null |
75,639,339 | 1 | 75,639,460 | null | 0 | 16 | I've implemented firebase realtime database in my project, what I want to do is to read from that database with swift's `Codable` I wrote this code but it doesn't seem to work because it prints `Fetched messages: []` empty string
```
database.child("\(id)").observe(.value) { snapshot in
guard let messagesSnapshot =... | read from firebase realtime database | CC BY-SA 4.0 | null | 2023-03-04T23:36:33.350 | 2023-03-05T00:06:41.857 | 2023-03-05T00:00:12.037 | 20,855,910 | 20,855,910 | [
"swift",
"firebase",
"firebase-realtime-database"
] |
75,639,346 | 1 | null | null | -1 | 23 | I'm trying to deploy my website using Github pages, but when I access the link, all of my website content displays except for the images. I have them in a file in the repository for the website which is labeled as "img", the file has been committed and shows up on Github but still won't display anything. Also, all of t... | Why won't my images display on my html file? | CC BY-SA 4.0 | null | 2023-03-04T23:38:20.690 | 2023-03-05T00:13:24.943 | 2023-03-05T00:13:24.943 | 19,468,931 | 19,468,931 | [
"html",
"image",
"github"
] |
75,639,351 | 2 | null | 50,413,542 | 0 | null | This worked:
```
button.send_keys(Keys.COMMAND,Keys.RETURN)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T23:39:18.933 | 2023-03-04T23:39:18.933 | null | null | 1,890,317 | null |
75,639,330 | 2 | null | 75,632,806 | 1 | null | The desired elements are within an [<iframe>](https://stackoverflow.com/a/53276478/7429447) so you have to:
- Induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the desired .- Induce [WebDriverWait](https://stackoverflow.com/a/52607451/7429447) for the [visibility_of_all_elements_located()](https:... | null | CC BY-SA 4.0 | null | 2023-03-04T23:34:25.013 | 2023-03-04T23:41:54.230 | 2023-03-04T23:41:54.230 | 7,429,447 | 7,429,447 | null |
75,639,352 | 2 | null | 75,639,298 | 1 | null | the reason you are getting the memory addresses for the functions is because both `balance` and `lines` are aliases to them. It seems as if you are trying to call those functions and assign the value they return to `balance` and `lines`. For this you have to `invoke` the functions by using `(` and `)`.
Good luck and we... | null | CC BY-SA 4.0 | null | 2023-03-04T23:39:19.350 | 2023-03-04T23:52:47.620 | 2023-03-04T23:52:47.620 | 12,628,138 | 12,628,138 | null |
75,639,349 | 1 | null | null | 0 | 21 | I have this code
```
from telethon.sync import TelegramClient, events
api_id =
api_hash = ''
bot_token = ''
client = TelegramClient('session', api_id, api_hash).start(bot_token=bot_token)
@client.on(events.NewMessage)
async def newMessageListener(event):
chat_id = event.chat_id
message_id = event.message.i... | Telethon: How to get the latest message id? | CC BY-SA 4.0 | null | 2023-03-04T23:38:39.597 | 2023-03-05T04:43:54.923 | 2023-03-05T04:43:54.923 | 20,101,867 | 20,101,867 | [
"python",
"bots",
"telegram",
"telegram-bot",
"telethon"
] |
75,639,350 | 1 | null | null | -2 | 23 | The code below does not run as coded. However if I take out the second to last line, `if __name__ == "__main()__":`, and remove the indent for `main()` on the last line it works properly. Codespaces shows no problems with the initial code. What have I done wrong?
```
#get input and then pass to convent
def main():
... | Program not running when if __name__ == "__main()__": is active | CC BY-SA 4.0 | null | 2023-03-04T23:39:02.853 | 2023-03-04T23:44:13.630 | 2023-03-04T23:44:13.630 | 68,587 | 15,524,237 | [
"python"
] |
75,639,348 | 2 | null | 73,383,044 | 0 | null | You can not access the props of a React component,
because the props don't exist before the "class" was instantiated
(i.e. the React element was created).
E.g. when passing the React component `Slider` to `ChildTypeMustBe`,
the component is still something that is supposed to be "called"
(aka. instantiated) with some p... | null | CC BY-SA 4.0 | null | 2023-03-04T23:38:25.990 | 2023-03-04T23:38:25.990 | null | null | 7,556,457 | null |
75,639,359 | 1 | null | null | -1 | 13 | how I can to put a password to app/file? I want to block access to app (exp: Minecraft) with a password, which script can suit me?
the Internet is full of options for encrypting a file or a script, but I don’t understand much about it and haven’t found an option to restrict access to a file using a password
| Password to file with Powershell | CC BY-SA 4.0 | null | 2023-03-04T23:41:40.313 | 2023-03-04T23:41:40.313 | null | null | 21,328,397 | [
"powershell",
"passwords",
"blocking",
"system-administration",
"file-security"
] |
75,639,358 | 2 | null | 75,639,200 | 0 | null | You can hide the "edit profile" button based on the profile owner's username. You can compare the username of the profile owner with the username of the user who is visiting the profile page. If the usernames match then show the button, otherwise, hide it using CSS style.
```
{% if request.user == profile.user %}
<a ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:41:39.767 | 2023-03-05T01:30:36.980 | 2023-03-05T01:30:36.980 | 3,443,037 | 3,443,037 | null |
75,639,355 | 1 | null | null | 0 | 4 | i try to make timestampable entity with StofDoctrineExtension. Unfortunatly i found that using trait works perfectly, but not using attributes.
Could someone says me what i does wrong ?
this works :
```
<?php
namespace App\Entity;
use App\Repository\UserPictureRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\O... | Symfony6- timestampable Doctrine Extension : trait works but not attributes | CC BY-SA 4.0 | null | 2023-03-04T23:40:03.640 | 2023-03-04T23:40:03.640 | null | null | 19,959,695 | [
"attributes",
"traits",
"symfony6",
"stofdoctrineextensions"
] |
75,639,362 | 2 | null | 75,639,281 | 2 | null | Use the Formula package. The part after | is the 2nd part of the right hand side so specify the argument rhs = 2.
```
library(Formula)
all.vars(formula(Formula(formula), lhs = 0, rhs = 2))
## [1] "cyl" "am"
```
| null | CC BY-SA 4.0 | null | 2023-03-04T23:42:01.283 | 2023-03-04T23:42:01.283 | null | null | 516,548 | null |
75,639,364 | 2 | null | 75,639,298 | -1 | null | You forgot to add parenthesis to the function calls in main().
Correction:
```
def main():
balance = user_deposit()
lines = get_num_of_lines()
print(balance, lines)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T23:42:17.797 | 2023-03-04T23:43:22.747 | 2023-03-04T23:43:22.747 | 20,620,999 | 20,620,999 | null |
75,639,365 | 1 | null | null | 0 | 6 | Is there any support for DB2 spatial types as parameters in .Net? I can't see any mention of any geo-spatial types in the documentation and no mention of it anywhere else. I could probably roll my own if someone knows the parameter format that would be used to pass the values in.
| Using DB2 Spatial Types in .Net | CC BY-SA 4.0 | null | 2023-03-04T23:42:29.747 | 2023-03-04T23:42:29.747 | null | null | 3,543,864 | [
"c#",
"geometry",
"db2",
"ado.net",
"geospatial"
] |
75,639,354 | 2 | null | 75,639,015 | 1 | null | Hope this example is helpful
```
class Port(object):
linkSpeeds = {'Fa': 'Fast',
'Gi': 'Gigabit',
'Te': 'TenGigabit',
'Fo': 'FortyGigabit'}
def __init__(self, linkSpeed, brick, port, module=None, cable=None):
self.__linkSpeed = self.linkSpeeds[linkS... | null | CC BY-SA 4.0 | null | 2023-03-04T23:39:36.643 | 2023-03-04T23:39:36.643 | null | null | 15,222,211 | null |
75,639,356 | 1 | null | null | 0 | 6 |
# Background
In [AutoGraph converts Python into TensorFlow graphs](https://blog.tensorflow.org/2018/07/autograph-converts-python-into-tensorflow-graphs.html) it says:
> We (AutoGraph) also support constructs like break, continue, and . When converted, this snippet’s Python assert converts to a graph that uses the ap... | Explanation on "Tensorflow AutoGraph support print and assert" | CC BY-SA 4.0 | null | 2023-03-04T23:40:08.200 | 2023-03-04T23:40:08.200 | null | null | 4,281,353 | [
"tensorflow2.0",
"tensorflow-autograph"
] |
75,639,363 | 1 | null | null | 0 | 2 | I want to know how we can set a `vmin` and `vmax` for a `PIL.Image` picture? The reason I have to use `PIL.Image` is I have to create a gif at the end. But the `matplotlib` cannot help me make a gif file.
Right now, my code is like
```
image = Image.new('RGBA', (200, 200))
draw = ImageDraw.Draw(image)
draw.ellipse((x-r... | Setting vmin and vmax for PIL.Image? | CC BY-SA 4.0 | null | 2023-03-04T23:42:10.193 | 2023-03-04T23:42:10.193 | null | null | 11,429,035 | [
"python-imaging-library"
] |
75,639,366 | 2 | null | 75,439,585 | 0 | null | ```
sudo cp mysql-connector-j-8.0.32/mysql-connector-j-8.0.32.jar /usr/lib/sqoop/lib
```
You need to add "sudo" command in prefix to your command and enter the password (assuming you have sudo access) because /usr/lib path is restricted only for the root user.
If you do not have a sudo/admin privileges, then you need ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:42:34.873 | 2023-03-04T23:42:34.873 | null | null | 21,333,932 | null |
75,639,371 | 1 | null | null | -3 | 21 | Can I do a client side form validation so that a clients must enter a particular value for the input to be valid?
I haven't really gone into it
| Form validation In client side | CC BY-SA 4.0 | null | 2023-03-04T23:43:08.717 | 2023-03-05T02:18:04.603 | null | null | 21,333,923 | [
"javascript",
"html"
] |
75,639,361 | 1 | null | null | 0 | 11 | I have a map that displays some markers based on a given location. The location is set using a ChangeNotifier in a separate widget. I have no problem updating the location for the markers however, I would also like to set a new center of the map when the markers are updated.
I know that I can use the `GoogleMapContro... | Update Google Map center after ChangeNotifier update | CC BY-SA 4.0 | null | 2023-03-04T23:41:52.670 | 2023-03-04T23:45:12.307 | 2023-03-04T23:45:12.307 | 16,124,033 | 498,699 | [
"flutter",
"dart",
"google-maps-flutter"
] |
75,639,357 | 1 | 75,639,456 | null | -1 | 28 | Let us suppose we have text like this :
`text ="new notebook was sold 8 times before 13:30 in given shop"`
here we have 3 number presented, one is single digit `8` and last two are two digit numbers, `13`,`30`, main point is , that `13:30` express time, they are not just numbers , but they express information abou... | Extracting specific string format of digits | CC BY-SA 4.0 | null | 2023-03-04T23:40:35.087 | 2023-03-05T02:35:57.057 | 2023-03-05T01:02:09.240 | 21,333,910 | 21,333,910 | [
"python",
"text",
"python-re"
] |
75,639,369 | 2 | null | 75,639,077 | 0 | null | Yes, you can achieve this using pure JavaScript without jQuery. Here's an example code snippet:
```
// Get the element you want to add/remove class to
const element = document.getElementById('element-id');
let lastScrollTop = 0; // Initialize the last scroll position
// Add an event listener to the window ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:43:01.290 | 2023-03-04T23:43:01.290 | null | null | 17,808,861 | null |
75,639,370 | 2 | null | 75,612,263 | 0 | null | Of course this can be done with the mapping dataflow. You can take those excel files as seperate sources, join them, if you need to select certain columns, use select transformation etc. In source you need to specify where the file will be coming from. You can add new source by adding a new dataset, and you can add man... | null | CC BY-SA 4.0 | null | 2023-03-04T23:43:03.363 | 2023-03-04T23:43:03.363 | null | null | 11,677,472 | null |
75,639,372 | 2 | null | 72,492,693 | 0 | null | I'm using win 11, got the same error running the cmd `ng --version`, so just ran `ng v` cmd and i'm all good. Didn't do any uninstall/install steps.
[](https://i.stack.imgur.com/6bF7O.jpg)
| null | CC BY-SA 4.0 | null | 2023-03-04T23:43:20.277 | 2023-03-04T23:43:20.277 | null | null | 3,049,036 | null |
75,639,375 | 2 | null | 74,121,080 | 0 | null | the value cannot be null , just add the question mark
[https://api.flutter.dev/flutter/dart-io/Stdin/readLineSync.html](https://api.flutter.dev/flutter/dart-io/Stdin/readLineSync.html)
modify this line and normally is done
String? name = stdin.readLineSync()!;
| null | CC BY-SA 4.0 | null | 2023-03-04T23:44:13.750 | 2023-03-04T23:44:13.750 | null | null | 21,333,815 | null |
75,639,376 | 2 | null | 75,639,305 | 0 | null | Simply use `getAssets()` method when you are calling inside the Activity class.
If you calling this method in non-Activity class then you need to call this method from Context which is passed from Activity class. So below is the line by you can access the method.
```
ContextInstance.getAssets();
```
`ContextInstance` ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:44:22.087 | 2023-03-04T23:44:22.087 | null | null | 2,991,440 | null |
75,639,377 | 1 | null | null | 0 | 8 | I try to add a Trigger Condition in "When a new email arrives (V3)" - Settings
The Trigger should check the email subject
I get an error :
> The power flow's logic app flow template was invalid.
The template condition expression 'contains(triggerOutputs()?['body/subject'],'ical')' at line '1' and column '2519' is not v... | Power Automate error with Trigger Condition: The power flow's logic app flow template was invalid | CC BY-SA 4.0 | null | 2023-03-04T23:44:46.793 | 2023-03-05T01:04:57.793 | 2023-03-05T01:04:57.793 | 5,772,095 | 4,423,942 | [
"power-automate"
] |
75,639,379 | 2 | null | 75,638,132 | 0 | null | You are stopping the propagation of the `pointerDown` event, but not the propagation of the onClick event, which is what the "under" div is listening for. There are lots of ways to fix this, but the easiest is to change your "under" div to
```
<button
type="button"
onPointerDown={() => console.log("Clicked und... | null | CC BY-SA 4.0 | null | 2023-03-04T23:44:52.497 | 2023-03-04T23:44:52.497 | null | null | 9,659,759 | null |
75,639,368 | 2 | null | 75,638,545 | 1 | null | In order to create the needed relationship when modifying shared state, you have to synchronize on the same object each time. Your `cnt` field is static, which means it's shared between all instances of `Runner`. Yet your `func()` method is an instance method. Making an instance method `synchronized` is the same as do... | null | CC BY-SA 4.0 | null | 2023-03-04T23:42:47.693 | 2023-03-04T23:42:47.693 | null | null | 6,395,627 | null |
75,639,381 | 2 | null | 75,639,254 | 0 | null | Looking at the docs: [https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/compile/CompileOptions.html#setAnnotationProcessorGeneratedSourcesDirectory-java.io.File-](https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/compile/CompileOptions.html#setAnnotationProcessorGeneratedSourcesDirectory-java.io.F... | null | CC BY-SA 4.0 | null | 2023-03-04T23:45:09.303 | 2023-03-04T23:45:09.303 | null | null | 3,703,819 | null |
75,639,304 | 1 | null | null | 0 | 9 | I'm making an app using Android Studio where I have to rename the ListView item as well as the Folder with same Input given in an Custom dialog box. After renaming is performed, the folder is renamed but the ListView item displays null value. Please help, I'm new to android programming and doing this app for Academic p... | ListView item displaying NULL value after renaming | CC BY-SA 4.0 | null | 2023-03-04T23:25:37.293 | 2023-03-04T23:25:37.293 | null | null | 21,290,464 | [
"java",
"android",
"android-studio",
"listview",
"android-sqlite"
] |
75,639,380 | 1 | null | null | -1 | 14 | I'm new to python and was trying to learn the try/except stuff but I seem to be stuck here. In the below program i entered hourly wage as t nut it still gave me a traceback call with the quit() command.
Code I entered:
```
try:
x = float(input('What is your hourly wage'))
y = float(input('What is your work time... | Error when I tried using the quit () command but got a traceback call | CC BY-SA 4.0 | null | 2023-03-04T23:44:59.707 | 2023-03-04T23:50:35.417 | 2023-03-04T23:50:35.417 | 1,080,064 | 21,333,903 | [
"python",
"python-3.x"
] |
75,639,383 | 2 | null | 3,090,302 | 0 | null | Simple way:
if query.exists():
do something....
or
if query.exists() is False:
do something...
| null | CC BY-SA 4.0 | null | 2023-03-04T23:45:48.750 | 2023-03-04T23:45:48.750 | null | null | 21,333,940 | null |
75,639,382 | 2 | null | 75,637,044 | 0 | null | Here is a hack that has worked for me (no guarantees):
```
class MyImage(Image):
def __init__(self, **kwargs):
self.num_frames = None
super(MyImage, self).__init__(**kwargs)
def on_texture(self, instance, texture):
super(MyImage, self).on_texture(instance, texture)
print('on tex... | null | CC BY-SA 4.0 | null | 2023-03-04T23:45:22.653 | 2023-03-04T23:45:22.653 | null | null | 7,254,633 | null |
75,639,373 | 2 | null | 75,638,052 | 0 | null | The workflow file would be checkout out from your `HEAD`, in this case the `feature` branch.
You can check from where you ran your workflow from your Actions tab:
[](https://i.stack.imgur.com/iHtHz.jpg)
Also, you can see which version of your workflow file ran it, after you click on the workflow you'll have this tab:
[... | null | CC BY-SA 4.0 | null | 2023-03-04T23:43:35.680 | 2023-03-04T23:56:21.727 | 2023-03-04T23:56:21.727 | 5,078,746 | 5,078,746 | null |
75,639,384 | 2 | null | 75,638,862 | 0 | null | > In Scala I could easily say:```
implicit def fromA[M: A]: B[M] = ...
```
I'm looking for an equivalent in Haskell
The literal translation of
```
// Scala
trait A[_[_]]
trait B[_[_]]
implicit def fromA[M[_]: A]: B[M] = ???
trait C[_]
implicit val ac: A[C] = ???
implicitly[B[C]] // compiles
```
is
```
-- Haskell
... | null | CC BY-SA 4.0 | null | 2023-03-04T23:45:50.520 | 2023-03-05T00:36:54.117 | 2023-03-05T00:36:54.117 | 5,249,621 | 5,249,621 | null |
75,639,387 | 1 | null | null | 0 | 21 | Apologies for the simplistic question - I'm just a hobbyist programmer.
In C# How do I save the LiteCollection to a CSV file?
I can see from the Documentation ([https://www.litedb.org/docs/collections/](https://www.litedb.org/docs/collections/)) that there is a
```
'SELECT $ INTO $FILE('customers.csv') FROM Customers'... | LiteCollection to CSV | CC BY-SA 4.0 | null | 2023-03-04T23:46:26.633 | 2023-03-05T00:23:30.543 | 2023-03-04T23:59:17.153 | 3,744,182 | 245,494 | [
"c#",
"csv",
"litedb"
] |
75,639,389 | 1 | null | null | 0 | 13 | I have developed an application that seems to be working properly on an iOS simulator.
I applied it for App Review on App Store, I gave them a demo account that works properly.
But they are unable to connect.
Today, I realized that I hadn't added the Auth APNs key on fireabase console.
1. I added it today. Is this eno... | Flutter: App Store Review firebase Sign in | CC BY-SA 4.0 | null | 2023-03-04T23:46:50.430 | 2023-03-04T23:46:50.430 | null | null | 13,858,576 | [
"flutter",
"firebase-authentication",
"apple-push-notifications",
"ios-simulator",
"appstore-approval"
] |
75,639,385 | 1 | null | null | 0 | 13 | What I'm currently doing is just calling `subprocess.run(['py', '-m', 'pip', 'install', '-r', 'requirements.txt'])` to install requirements (there's a prompt beforehand to skip this too), in a custom "wizard" script I'd written for this project, but I feel like there's a better way to do this. I've tried searching arou... | How should I go about automatically installing/updating requirements of my Python script for users who don't want to use the command line? | CC BY-SA 4.0 | null | 2023-03-04T23:45:56.570 | 2023-03-04T23:45:56.570 | null | null | 8,108,924 | [
"python",
"pip"
] |
75,639,378 | 1 | null | null | -2 | 9 | Im using this function to put values from my forms in to sqlite base. But I get error that my variables (name, class_character, race...) are NULL. When I change my schema.sql and I let values to be NULL its post to data base (with null values).
```
@bp.route('/character', methods=('GET', 'POST'))
@login_required
def c... | Can't post values from my forms to database using Flask: sqlite3.IntegrityError: NOT NULL constraint failed: character.character_name | CC BY-SA 4.0 | null | 2023-03-04T23:44:51.473 | 2023-03-04T23:44:51.473 | null | null | 10,928,085 | [
"python",
"sqlite",
"flask"
] |
75,639,392 | 1 | null | null | 0 | 9 | I have a PNPM monorepo that has a couple of different deployments and a large package with shared code including many dependencies (for example BigNumber.js).
The monorepo projects are:
1. shared utilities package
2. server
3. serverless api (many Lambda functions, built with Webpack)
4. web client (MPA, built with We... | Building a PNPM monorepo with Webpack - builds too large? | CC BY-SA 4.0 | null | 2023-03-04T23:47:49.597 | 2023-03-04T23:47:49.597 | null | null | 20,126,561 | [
"javascript",
"webpack",
"frontend",
"monorepo",
"pnpm"
] |
75,639,386 | 2 | null | 75,639,044 | 0 | null | A couple tips:
1. You’re only subtracting the deduction when status is single.
2. Like Sean said in his answer, you’re not assuming status as single if it’s not equal to 1 or 2.
Here is a way to implement both at once
```
// set deduction to 24000 for married
// otherwise 12000 (assume single)
int deduction = status... | null | CC BY-SA 4.0 | null | 2023-03-04T23:46:17.137 | 2023-03-04T23:58:55.610 | 2023-03-04T23:58:55.610 | 3,582,362 | 3,582,362 | null |
75,639,397 | 2 | null | 62,729,419 | -2 | null | Yeah, client side form validation. My bad
| null | CC BY-SA 4.0 | null | 2023-03-04T23:48:39.203 | 2023-03-04T23:48:39.203 | null | null | 21,333,923 | null |
75,639,394 | 1 | null | null | 0 | 5 | I am getting compilation errors in one of my Razor pages called Print.cshtml, (In Views->Meetings folers). The compilation errors refer to a file that does not exist, and I can't find, so I'm not sure what to do and I don't understand the errors.
The first error is:
```
Severity Code Description Project File ... | ASP.NET Core 7 Razor compilation errors in intermediate file | CC BY-SA 4.0 | null | 2023-03-04T23:48:11.793 | 2023-03-04T23:48:11.793 | null | null | 4,024,800 | [
"asp.net-core",
"razor"
] |
75,639,396 | 2 | null | 75,638,782 | 0 | null |
```
(?!\s)[\w\s]*(?<!\s)
```
- - -
| null | CC BY-SA 4.0 | null | 2023-03-04T23:48:38.323 | 2023-03-05T01:36:29.967 | 2023-03-05T01:36:29.967 | 20,959,773 | 20,959,773 | null |
75,639,374 | 2 | null | 75,636,910 | 0 | null | You must be using an old version of Electron to be utilising the `remote` module. This was withdrawn some time ago. Though there is a userland `remote` module, it is best to avoid it's use through better application design where possible.
To implement a well-structured Electron application one needs to read and underst... | null | CC BY-SA 4.0 | null | 2023-03-04T23:44:07.243 | 2023-03-04T23:44:07.243 | null | null | 2,627,338 | null |
75,639,399 | 2 | null | 75,630,346 | 0 | null | If the repo can't be found, there's an issue with the token - make sure it has full "repo" access.
| null | CC BY-SA 4.0 | null | 2023-03-04T23:48:58.553 | 2023-03-04T23:48:58.553 | null | null | 4,722,345 | null |
75,639,390 | 2 | null | 75,638,897 | 1 | null | As suggested by @jqurious, you can use mean() to obtain the mean, without adding an aggregation.
Examples.
```
import polars as pl
# sample dataframe
df = pl.DataFrame({
'text':['a','a','b','b'],
'value':[1,2,3,4]
})
shape: (4, 2)
┌──────┬───────┐
│ text ┆ value │
│ --- ┆ --- │
│ str ┆ i64 │
╞══════╪═══... | null | CC BY-SA 4.0 | null | 2023-03-04T23:47:06.030 | 2023-03-04T23:47:06.030 | null | null | 11,015,558 | null |
75,639,388 | 2 | null | 75,634,783 | 0 | null | not sure if this solves the task - Unfortunately I am note aware for the IPA symbols specificalities.
```
# for convienience of pipeing/cueing the function calls
library(dplyr)
# subtitute everyting with an underline
gsub(pattern = "*", replacement = "_", example_ipa) %>%
# remove trailing and leading underlines
... | null | CC BY-SA 4.0 | null | 2023-03-04T23:46:40.773 | 2023-03-05T00:13:19.347 | 2023-03-05T00:13:19.347 | 13,519,961 | 13,519,961 | null |
75,639,402 | 1 | 75,639,422 | null | 0 | 10 | Is a byte[] the best way to represent a BLOB in an Entity Framework class? Or is there something newer/better now?
This is in an underlying SQL Server database. It is not in distinct BLOB storage (it's rare this is populated so not worth the complexity of storing it distinct).
| EntityFramework representation of a BLOB | CC BY-SA 4.0 | null | 2023-03-04T23:49:53.607 | 2023-03-04T23:54:37.890 | null | null | 509,627 | [
"entity-framework",
"blob"
] |
75,639,404 | 2 | null | 75,639,297 | 2 | null | You have to place your ECS tasks/service in a [private](https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html) subnet with routes to a [NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html). NAT gateway should be in a public subnet.
| null | CC BY-SA 4.0 | null | 2023-03-04T23:50:06.450 | 2023-03-04T23:50:06.450 | null | null | 248,823 | null |
75,639,405 | 1 | null | null | 0 | 9 | I try to download YouTube Android Player API but I found This SDK is no longer supported or maintained by YouTube. It will be fully deprecated on or after May 1, 2023. This SDK should not be used, due to security vulnerabilities. Please use the YouTube IFrame Player API instead.
so I cannot load videos from youtube in ... | YouTube Android Player API not supported | CC BY-SA 4.0 | null | 2023-03-04T23:50:09.037 | 2023-03-04T23:50:09.037 | null | null | 13,315,559 | [
"android",
"youtube"
] |
75,639,401 | 1 | null | null | 0 | 18 | I performed multivariable logistic regression using glm.
```
example <- glm(Death ~ age + sex + time, db, family = binomial)
```
I just want to save the results into a simple matrix in R just like this:
[](https://i.stack.imgur.com/4RPKc.png)
Where columns A= odds ratio; B= lower 95%CI; C= upper 95%CI. Each row corres... | Save results of glm into matrix in R | CC BY-SA 4.0 | null | 2023-03-04T23:49:32.107 | 2023-03-05T03:59:29.647 | null | null | 19,745,561 | [
"r",
"dataframe",
"matrix",
"dataset",
"logistic-regression"
] |
75,639,398 | 1 | null | null | 0 | 16 | We are trying to upgrade our e-commerce site with multi language English and Arabic interface ,
but the Right to left RTL text direction got missed up in with
kindly give us suggestions to solve this issue , since we are super excited to work on the new version of #flutter
for example :
- -
Another Example :
- -
[c... | flutter 3.7.5 Issue on web html rendering | CC BY-SA 4.0 | null | 2023-03-04T23:48:47.870 | 2023-03-04T23:58:15.727 | 2023-03-04T23:58:15.727 | 21,333,892 | 21,333,892 | [
"flutter",
"dart",
"html-rendering",
"flutter3.7"
] |
75,639,395 | 1 | null | null | 0 | 7 | I'm writing a script to like photos on a specific Instagram hashtag with selenium. I decided to use pandas to scrape the info of the photos it likes, from which accounts are their, and at what time it did.
```
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui ... | Instagram script - My bot is not storing the data I ask with pandas | CC BY-SA 4.0 | null | 2023-03-04T23:48:35.907 | 2023-03-04T23:48:35.907 | null | null | 19,911,689 | [
"python",
"pandas",
"dataframe",
"web-scraping"
] |
75,639,400 | 1 | null | null | -1 | 7 | I'm trying to automate the process to replace existing table in TablePress Wordpress plugin with Python and selenium webdriver, but I stuck at the point where I should choose the existing table from a jquery dropdown. How can I select the "ID bcwd_stock_auto: (no name)" option of this jquery dropdown with selenium webd... | How can I select an option from jquery dropdown in Python? | CC BY-SA 4.0 | null | 2023-03-04T23:49:10.153 | 2023-03-04T23:49:10.153 | null | null | 21,333,818 | [
"python",
"jquery",
"wordpress",
"selenium-webdriver",
"tablepress"
] |
75,639,408 | 2 | null | 44,633,378 | 0 | null | Go to in Pycharm / your IDE environment and change the package versions or install them in these versions.
opencv-contrib-python == 4.4.0.46
opencv-python == 4.1.2.30
Check Screenshot for clarity.
[](https://i.stack.imgur.com/4sTtA.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T23:51:24.840 | 2023-03-04T23:51:24.840 | null | null | 13,139,873 | null |
75,639,410 | 2 | null | 75,515,884 | 0 | null | This is the query I ended up with (very similar to @ValNik’s):
```
with recursive rs as (
select id, mother, 1 as gen, id as path
from seed s1
where not exists (select 1 from seed s2 where s2.id = s1.mother)
union all
select s.id, s.mother, gen + 1, s.id || ',' || r.path
from rs r ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:51:38.573 | 2023-03-04T23:51:38.573 | null | null | 396,038 | null |
75,639,411 | 2 | null | 75,637,787 | 0 | null | To achieve the desired effect, you can try the following steps:
Create a new game object in your scene and add a Circle Collider 2D and a Line Renderer component to it. Set the Circle Collider 2D radius to the desired size of the cone and set the Line Renderer color and width to your liking.
In your player script, add ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:51:46.330 | 2023-03-04T23:51:46.330 | null | null | 21,200,345 | null |
75,639,414 | 1 | null | null | 0 | 5 | Ok, I know, these Motorola slash Symbol slash Zebra scan guns are really old, like over a decade old, and aren't in support anymore. But I really like them (and they're available on the secondary market for cheap) for my inventory control system for my storage unit.
Microsoft doesn't publish WMDC anymore, and it hasn'... | How do I get ActiveSync or Windows Mobile Device Center to work in Windows 11 with my MC9190 scan gun? | CC BY-SA 4.0 | null | 2023-03-04T23:52:22.403 | 2023-03-04T23:52:22.403 | null | null | 1,507,797 | [
"windows-mobile",
"windows-ce"
] |
75,639,413 | 2 | null | 41,273,435 | 0 | null | Iframes can be the best and fastest answer to a micro frontend management.
They have excellent isolation of both style and resources. They allow for independent deployment and simplify splitting layouts.
But would just like to point out a few disadvantages.
1. URLs are not synchronized. Difficulty managing routing.
2.... | null | CC BY-SA 4.0 | null | 2023-03-04T23:52:22.263 | 2023-03-04T23:52:22.263 | null | null | 2,893,733 | null |
75,639,409 | 1 | null | null | 0 | 9 | I am currently doing the basic macOS React Native tutorial where you install react native's cli and run the `AwesomeProject` with it to be familiarized with how it all works and got everything to work setup-wise. However, when I attempt to build and run the `AwesomeProject` I get a super long error with the following m... | Command PhaseScriptExecution failed with a nonzero exit code Xcode 14.2 | CC BY-SA 4.0 | null | 2023-03-04T23:51:36.380 | 2023-03-05T00:06:59.313 | 2023-03-05T00:06:59.313 | 16,961,399 | 16,961,399 | [
"ios",
"xcode",
"react-native",
"cocoapods"
] |
75,639,406 | 1 | null | null | 0 | 14 | I am working on recreating the functionality of this [website](https://skiff.com/) where when you click on the card and that card moves to the front.
I have managed to get this functionality working here as shown in the code below, but how would I get that slow smooth animation that takes place when the cards swap? Is ... | Smooth Transition when clicking card | CC BY-SA 4.0 | null | 2023-03-04T23:50:11.447 | 2023-03-04T23:50:11.447 | null | null | 11,557,710 | [
"javascript",
"html",
"css"
] |
75,639,416 | 2 | null | 75,639,357 | 0 | null | ```
import re
text = "new notebook was sold 8 times before 13:30 in given shop"
pattern = re.compile(r'\b(?:\d{1,2}:\d{2}|\d+)\b')
matches = pattern.findall(text)
print(matches)
# ['8', '13:30']
```
What you need are capturing groups `()` and OR `|`.
All capturing groups are returned if either a number `\d+` or a t... | null | CC BY-SA 4.0 | null | 2023-03-04T23:52:46.510 | 2023-03-04T23:52:46.510 | null | null | 11,971,785 | null |
75,639,417 | 1 | null | null | -1 | 12 | ```
Response.Listener { response: String ->
Log.e("TAG", "RESPONSE IS $response")
try {
val jsonObject = JSONObject(response)
jsonObject.put("status", "Signed Up")
Toast.makeText(this@SignUpActivity, jsonObject.toString(),
Toast.LENGTH_SHORT).show()
```
Logged an error messa... | Convert String to JSONObject in Kotlin | CC BY-SA 4.0 | null | 2023-03-04T23:52:52.873 | 2023-03-04T23:52:52.873 | null | null | 16,465,841 | [
"android",
"kotlin",
"qjsonobject"
] |
75,639,420 | 2 | null | 27,572,387 | 0 | null | This is not be possible for an existing table but if you can alter the table definition, a solution is to add a integer field to store the total size of fields (based on field types, string length, etc.) when inserting records in the table. Then a simple query like this will return the table size:
```
select sum(Record... | null | CC BY-SA 4.0 | null | 2023-03-04T23:53:49.820 | 2023-03-04T23:53:49.820 | null | null | 2,327,946 | null |
75,639,419 | 1 | null | null | 0 | 15 | I have a Visual Basic.net project with Database

```
(Column names = Textbox Name)
(NEM=TxtBook - PON=TxtPublisher-ANON=TxtPublish-DEN=TxtAuthor-TXTC=TxtNote-DATAC=TxtPage)
```
I made the listbox show only one column (NEM) from the table (castmer)
I... | Link text boxes with listview selected item vb.net | CC BY-SA 4.0 | null | 2023-03-04T23:53:18.073 | 2023-03-04T23:58:26.457 | 2023-03-04T23:58:26.457 | 21,333,933 | 21,333,933 | [
"vb.net"
] |
75,639,415 | 2 | null | 75,639,414 | 0 | null | It can be done!
Juniper Systems, who make a replacement line of devices, continue to host the software and published a fix for it. Their guide is at [https://junipersys.com/index.php/support/knowledge-base/support-knowledge-base-topics/desktop-connection-activesync-or-windows-mobile-device-center/wmdc-in-windows-10](... | null | CC BY-SA 4.0 | null | 2023-03-04T23:52:22.403 | 2023-03-04T23:52:22.403 | null | null | 1,507,797 | null |
75,639,424 | 2 | null | 75,638,497 | 0 | null | Since arrays are objects, and maps will give you the reference to that object, you can simply get the entry and then change the element at index 3 like this:
```
const userId = ctx.from.id;
if (userMap_secretkey.has(userId)) {
userMap_secretkey.get(userId)![3] = true;
} else {
// does not exist in map
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T23:55:52.623 | 2023-03-04T23:55:52.623 | null | null | 18,244,921 | null |
75,639,422 | 2 | null | 75,639,402 | 1 | null | Basic best practice is to use a `byte[]` along with [Table Splitting](https://learn.microsoft.com/en-us/ef/core/modeling/table-splitting) so the blob doesn't have to be loaded with the main entity.
If the `byte[]` is so large you don't want to ever load it in memory, you can omit it from the EF model, and use ADO.NET s... | null | CC BY-SA 4.0 | null | 2023-03-04T23:54:37.890 | 2023-03-04T23:54:37.890 | null | null | 7,297,700 | null |
75,639,418 | 2 | null | 75,630,015 | 0 | null | So I was starting to use waitpid to do some error handling, when I had a hunch that the underscores in the executable name were somehow the problem. And sure enough, when I renamed the executable to 'stockfish15' everything works as intended.
The code now looks like this
```
#include <iostream>
#include <sys/types.h>
... | null | CC BY-SA 4.0 | null | 2023-03-04T23:52:54.320 | 2023-03-04T23:52:54.320 | null | null | 12,724,654 | null |
75,639,423 | 2 | null | 75,638,714 | 0 | null | Store Guru's answer is fine, but if you have problem with two primary keys.
use this config
```
public class Recipe
{
[Key]
public int Id { get; set; }
[Required]
public required string Title { get; set; }
public virtual List<IngredientMapping> IngredientMappings { get; set; ... | null | CC BY-SA 4.0 | null | 2023-03-04T23:55:21.343 | 2023-03-04T23:55:21.343 | null | null | 21,302,617 | null |
75,639,425 | 2 | null | 75,639,232 | 0 | null | Here's a fairly simple version:
```
const extractDates = (ss) => Object.entries(ss.reduce (
(a, {startDate: sd}) => (((a[sd.slice(0, 10)] ??= []) .push (sd.slice(11, 17))), a),
{}
)).map(([startDate, time]) => ({startDate, time}))
const starts = [{startDate: "2023-03-05T08:00:00"}, {startDate: "2023-03-05T08:15:0... | null | CC BY-SA 4.0 | null | 2023-03-04T23:56:32.857 | 2023-03-04T23:56:32.857 | null | null | 1,243,641 | null |
75,639,427 | 2 | null | 75,632,287 | 0 | null | It's turnout that the installation of kubectl don't provide kubernetes cluster itself. After some googling I find out that I need to install more components on my system. There are at least 4 possible options for local kubernetes cluster
- [minikube](https://minikube.sigs.k8s.io/docs/start/)- [kind](https://kind.sigs.k... | null | CC BY-SA 4.0 | null | 2023-03-04T23:57:08.170 | 2023-03-04T23:57:08.170 | null | null | 1,071,908 | null |
75,639,403 | 1 | null | null | -2 | 19 | HornListener:
```
package me.devwojtus.totems.listeners;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
impor... | How can I use method from Class in other Class? | CC BY-SA 4.0 | null | 2023-03-04T23:50:03.167 | 2023-03-04T23:50:03.167 | null | null | 15,763,191 | [
"java",
"class",
"plugins",
"minecraft"
] |
75,639,407 | 1 | null | null | -2 | 25 | It's a little more complicated. For my mastery, a snippet of code (from main) will receive user input. Said input calls a set method in another program, then that program initializes its own variable using the variable from main. Usually how a setter works. However, when I try to use it in another method, it says "cann... | I'm having difficulty trying to apply a variable from a setter to a method; it keeps being read as void | CC BY-SA 4.0 | null | 2023-03-04T23:50:25.333 | 2023-03-04T23:50:25.333 | null | null | 21,315,417 | [
"java",
"setter"
] |
75,639,430 | 1 | null | null | 0 | 17 | I am trying to create a macro for my spreadsheet, however I have no idea how to write script. What I want to do, is have a macro (activated by drawing) to find specific checkboxes, change their value, and also clear the contents of specific nearby cells.
[Example Image](https://i.stack.imgur.com/raARw.png)
This is an e... | Google Sheets Script - Finding and Clearing/Editing cells that match a criteria | CC BY-SA 4.0 | null | 2023-03-04T23:57:45.937 | 2023-03-05T01:11:58.813 | null | null | 21,333,831 | [
"google-apps-script",
"google-sheets",
"macros"
] |
75,639,421 | 1 | null | null | 0 | 14 | I have a KPI report with 13 different datasets. For each KPI there is a measure to calculate the actual KPI score which later will be transformed to a score on a scale from 1-5.
There is also a Region/Country/Site core data with relationship to all datasets. So from slicers all of the measures are able to slice on regi... | Power BI - Dynamic measures inside disconnected table | CC BY-SA 4.0 | null | 2023-03-04T23:54:23.473 | 2023-03-04T23:54:23.473 | null | null | 13,144,476 | [
"powerbi",
"dax"
] |
75,639,429 | 1 | null | null | -1 | 6 | Im a newbie, thank u for your helping. I design a textbox without using class and it is very smooth, after I use layer I think time has delay down on looping code. You can see the error more clearly when creating more than two textbox at the same time. I don't know if it can be fixed. Please help me!!
```
import pygame... | I want to design textbox class but time delay | CC BY-SA 4.0 | null | 2023-03-04T23:57:35.297 | 2023-03-04T23:57:35.297 | null | null | 21,333,888 | [
"python",
"text",
"pygame",
"delay"
] |
75,639,434 | 1 | null | null | -1 | 12 | I'm trying to replace instances values based on some condition but I keep getting this error message
The code
```
copy['QH'] = np.where(copy['QH'] <= 49,'Very small company', copy['QH'])
copy['QH']
```
The error
```
---------------------------------------------------------------------------
TypeError ... | Pandas replacing column values with error message | CC BY-SA 4.0 | null | 2023-03-04T23:58:32.907 | 2023-03-04T23:58:32.907 | null | null | 20,365,004 | [
"python",
"pandas",
"numpy"
] |
75,639,432 | 1 | null | null | 0 | 17 | How can i get all the table from the site there are more in the table but my code only returns 229rows. Here is my code:
```
import pandas as pd
import requests
from bs4 import BeautifulSoup
url = "https://sosyalkedi.com/services"
soup = BeautifulSoup(requests.get(url).content, "html.parser")
all_data = []
for tr in s... | Beautiful Soup web scraping how to get all rows from table? | CC BY-SA 4.0 | null | 2023-03-04T23:58:00.213 | 2023-03-05T04:34:03.773 | null | null | 16,260,136 | [
"python",
"html",
"web-scraping",
"beautifulsoup"
] |
75,639,433 | 2 | null | 73,773,557 | 0 | null | I ran into the exact same situation, and discovered that the system is expecting you to invoke the command from the directory the project. (Which, in hindsight, makes sense since it's describing an out-of-tree build.) See this example:
```
❯ bdep new -l c++ -t exe demo
created new executable project demo in /Users/xx... | null | CC BY-SA 4.0 | null | 2023-03-04T23:58:17.083 | 2023-03-04T23:58:17.083 | null | null | 319,309 | null |
75,639,437 | 2 | null | 75,636,080 | 0 | null | There are two solutions here:
1. make import { config } from 'dotenv'; config() the first lne of your main.ts so that it populates process.env before anything else happens
or
1. use the forRootAsync/registerAsync module loaders instead of forRoot/register so that you can use inject and useFactory to inject the Conf... | null | CC BY-SA 4.0 | null | 2023-03-05T00:00:06.347 | 2023-03-05T00:00:06.347 | null | null | 9,576,186 | null |
75,639,439 | 1 | null | null | -2 | 34 | ```
class Order:
def __init__(self, ):
self.requests = dict()
def add_to_dict(self, product, quantity):
if product in self.requests:
self.requests[product] += quantity
else:
self.requests[product] = quantity
```
[Error screenshot](https://i.stack.imgur.com/S337... | Is possible to declare a dictionary variable within a class in Python? | CC BY-SA 4.0 | null | 2023-03-05T00:00:16.003 | 2023-03-05T00:31:45.813 | 2023-03-05T00:01:02.900 | 3,799,759 | 21,333,952 | [
"python",
"python-3.x",
"dictionary",
"class"
] |
75,639,435 | 1 | null | null | 0 | 3 | Why tf.executing_eagerly() returns True after `tf.config.run_functions_eagerly(False)`?
```
Python 3.9.13
TensorFlow version: 2.10.0
```
```
@tf.function
def my_func(a):
print("Python side effect")
return a + a
a_fn = tf.function(my_func)
```
[](https://i.stack.imgur.com/7RsWLl.png)
| tf.executing_eagerly() returns true even when in graph mode | CC BY-SA 4.0 | null | 2023-03-04T23:59:16.113 | 2023-03-04T23:59:16.113 | null | null | 4,281,353 | [
"tensorflow2.0",
"eager-execution"
] |
75,639,426 | 1 | null | null | 0 | 53 | I have been trying to improve the execution time of my program. The function below is a method of Class KAT, which also has references, samples and pointerMatrix as variables. There are 3 references and 3 samples. I started using smart pointers because the results from refAligner.align(sample) are large.
When I measure... | Execution times in C++ don't add up | CC BY-SA 4.0 | null | 2023-03-04T23:56:34.263 | 2023-03-04T23:57:26.237 | 2023-03-04T23:57:26.237 | 4,062,354 | 15,333,537 | [
"c++",
"execution-time"
] |
75,639,440 | 2 | null | 53,300,480 | 0 | null | I tried everything listed here. I'm using macOS. my cert was trusted and i ended up deleting it and getting back multiple times with the above commands and it still wasn't working when i did a docker-compose up through my terminal.
However using the play button in visual studio for mac, that worked Instantly.
| null | CC BY-SA 4.0 | null | 2023-03-05T00:01:23.117 | 2023-03-05T00:01:23.117 | null | null | 14,937,802 | null |
75,639,444 | 1 | null | null | 0 | 24 | When I add this after getting user input from the console, it adds time to total processing time. The timer doesn't start until after this and the program never returns anywhere above this
```
if ((vector%2) != 0)
{
printf("Total eighth curves is not an even number\n");
goto TRACK_INPUT;
}
```
Tr... | Why does adding an if statement before my C program starts tracking time add to processing time? | CC BY-SA 4.0 | null | 2023-03-05T00:02:22.910 | 2023-03-05T00:02:22.910 | null | null | 13,283,237 | [
"c",
"if-statement",
"clock"
] |
75,639,443 | 1 | null | null | 0 | 31 | I am trying to check if
caps lock is on or of to know to print either upper letter or lower letter.
```
import keyboard
import time
def pressed_key(key):
if keyboard.is_pressed(key):
if "shift+" in key:
time.sleep(0.08)
print(key.upper())
else:
time.sleep(0.08)
print(... | How to detect if capslock is on or of? | CC BY-SA 4.0 | null | 2023-03-05T00:02:00.373 | 2023-03-05T00:56:24.443 | 2023-03-05T00:02:28.857 | 21,328,771 | 21,328,771 | [
"python"
] |
75,639,436 | 1 | null | null | 0 | 26 | I am trying to do a liveness analysis where I need to show the upward exposure of kill per basic block with the variables a,b,c,e only. I have seen people using mem2reg, but I can not modify the IR with other opt passes. So I am wondering how I can get the variables b, c and later e, a.
I have tried the code below. But... | LLVM Getting variable names without mem2reg | CC BY-SA 4.0 | null | 2023-03-04T23:59:46.390 | 2023-03-05T01:49:49.240 | 2023-03-05T01:49:49.240 | 995,714 | 1,414,420 | [
"c++",
"assembly",
"llvm",
"llvm-ir"
] |
75,639,431 | 2 | null | 75,538,831 | 0 | null | After so many years working in `react-native`, here is the way I am handeling button icons:
```
.
├── App.tsx
├── Button.tsx
├── assets
│ ├── index.ts
│ └── A.tsx
│ └── B.tsx
│ └── C.tsx
```
: [SVGR](https://react-svgr.com/docs/cli/)
```
import * as React from "react"
import Svg, { SvgProps, Circle } from "re... | null | CC BY-SA 4.0 | null | 2023-03-04T23:57:50.227 | 2023-03-05T00:28:48.510 | 2023-03-05T00:28:48.510 | 11,692,562 | 11,692,562 | null |
75,639,445 | 1 | null | null | -2 | 23 | I need to open a file, find a "variable" given by the user and then proceed to write the line where I found it in a new file. What I tried to do was read character by character, append a 0 to indicate a line has been stored and proceed to use strncmp to compare it.
However, I have trouble when it comes to a stack smash... | Stack smashing when reading and writing lines in c | CC BY-SA 4.0 | null | 2023-03-05T00:02:40.867 | 2023-03-05T00:02:40.867 | null | null | 12,087,492 | [
"c"
] |
75,639,442 | 1 | null | null | 0 | 11 | ```
this.sink = this.context.store
.selectHoursToWorkForCurrentMonthAndEveryEmployee()
.subscribe((hoursToWork) => {
this.setState({ hoursToWork }, () => {
this.renderEmployeesTable();
});
});
```
Or...
```
this.sink = this.context.store
.selectHoursToWorkForCurrentMon... | Callback of setState doesn't call function even after state is really set? | CC BY-SA 4.0 | null | 2023-03-05T00:01:52.400 | 2023-03-05T00:01:52.400 | null | null | 20,241,054 | [
"reactjs",
"typescript",
"state"
] |
75,639,438 | 1 | 75,639,728 | null | -1 | 34 | Let's say for example I want to get the <head> tag of youtube or another remote website. Currently, I get an error that states:
> Access to XMLHttpRequest at ‘WebSite I request to get the head section’ from origin ‘My Website’ has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the re... | How to get <head> content of a remote website (I don't have access to modify that website) | CC BY-SA 4.0 | null | 2023-03-05T00:00:12.350 | 2023-03-05T03:05:03.467 | 2023-03-05T01:14:45.790 | 15,411,378 | 15,411,378 | [
"javascript",
"jquery",
"google-chrome-extension",
"xmlhttprequest",
"cross-domain"
] |
75,639,446 | 2 | null | 75,639,034 | 1 | null | In short, this method is not used for stopping, but to help clean up resources when the service is stopped.
The [OnStop](https://learn.microsoft.com/en-us/dotnet/api/system.serviceprocess.servicebase.onstop) method is a method of the [ServiceBase](https://learn.microsoft.com/en-us/dotnet/api/system.serviceprocess.servi... | null | CC BY-SA 4.0 | null | 2023-03-05T00:03:03.703 | 2023-03-05T00:03:03.703 | null | null | 5,649,561 | null |