问:
LaTeX regex working on RegExr but not in VSCode
I'm trying to match TeX commands like \def and \char in VSCode settings.json with the following regex:

```<code>(?<!%.*)(\\\\)(def|char)(\\b|[^[a-z]]|[0-9])
</code>```

This correctly matches \def and \char but also matches any uppercase version of them, like \Def or \chAr. When I put this into RegExr, making sure the \s aren't escaped a second time for the JSON file, it works perfectly. What's going wrong?

Edit: I'm using the Highlight extension.

Body:
I'm trying to match TeX commands like \def and \char in VSCode settings.json with the following regex:

(?<!%.*)(\\\\)(def|char)(\\b|[^[a-z]]|[0-9])

This correctly matches \def and \char but also matches any uppercase version of them, like \Def or \chAr. When I put this into RegExr, making sure the \s aren't escaped a second time for the JSON file, it works perfectly. What's going wrong?

Edit: I'm using the Highlight extension.


来源: stackexchange

问:
How to create Jira ticket using powershell
Here is the Script that I am using to create a Jira ticket, but it is not creating anything on Jira. It is running without any errors but not creating anything on Jira.
For $apiurl and key I have taken the url and key of my Jira instance but still cannot create any ticket on Jira.

```<code>$apiUrl = "https://your-jira-instance.com/rest/api/2/issue/"

# Set the required headers for the API request
$headers = @{
    "Content-Type" = "application/json"
    "Authorization" = "key"
}

# Set the data for the ticket you want to create
$ticketData = @{
    "fields" = @{
        "project" = @{ "key" = "Service Desk" }
        "summary" = "Test"
        "description" = "Description of the ticket"
        "issuetype" = @{ "name" = "Service Request" }
    }
}

# Convert the ticket data to JSON
$json = $ticketData | ConvertTo-Json

# Send the API request to create the Jira ticket
$response = Invoke-RestMethod -Method POST -Uri $apiUrl -Headers $headers -Body $json

# Print the response from the API
Write-Output $response
</code>```

ContentLicense: CC BY-SA 4.0

Body:
Here is the Script that I am using to create a Jira ticket, but it is not creating anything on Jira. It is running without any errors but not creating anything on Jira.
For $apiurl and key I have taken the url and key of my Jira instance but still cannot create any ticket on Jira.

$apiUrl = "https://your-jira-instance.com/rest/api/2/issue/"

# Set the required headers for the API request
$headers = @{
    "Content-Type" = "application/json"
    "Authorization" = "key"
}

# Set the data for the ticket you want to create
$ticketData = @{
    "fields" = @{
        "project" = @{ "key" = "Service Desk" }
        "summary" = "Test"
        "description" = "Description of the ticket"
        "issuetype" = @{ "name" = "Service Request" }
    }
}

# Convert the ticket data to JSON
$json = $ticketData | ConvertTo-Json

# Send the API request to create the Jira ticket
$response = Invoke-RestMethod -Method POST -Uri $apiUrl -Headers $headers -Body $json

# Print the response from the API
Write-Output $response


问:
Connection to KV Vault is only working through a WireMock
If I'm trying to connect to my Vault Engine, I get a Error 503 Service Unavailable. If I'm sending the call to a local WireMock which redirects the call with less headers to the same address, it works. Spring Cloud Version is 3.1.1

```<code>Cannot enhance VaultToken to a LoginToken: Token self-lookup failed: 503 <html><body><h1>503 Service Unavailable</h1>

</code>```

The bootstrap config looks like this

```<code>spring:
  cloud:
    vault:
      scheme: https
      host: <uri-to-the-vault>
      port: 443
      uri: <uri-to-the-vault>
      authentication: token
      token: "TOKEN"
      enabled: true
      kv:
        enabled: true
        backend: <backend-name>
        profiles: <profile-name>
        application-name: <application-name>
</code>```

I tried to setup a connection through WireMock to look if the call is incorrect. I tried to redirect the call. Wiremock takes the call and sends it just to the same base url written above but only with the token as a header and it works. Postman takes the same call and it works aswell.

Body:
If I'm trying to connect to my Vault Engine, I get a Error 503 Service Unavailable. If I'm sending the call to a local WireMock which redirects the call with less headers to the same address, it works. Spring Cloud Version is 3.1.1

Cannot enhance VaultToken to a LoginToken: Token self-lookup failed: 503
503 Service Unavailable

The bootstrap config looks like this

spring:
  cloud:
    vault:
      scheme: https
      host: <uri-to-the-vault>
      port: 443
      uri: <uri-to-the-vault>
      authentication: token
      token: "TOKEN"
      enabled: true
      kv:
        enabled: true
        backend: <backend-name>
        profiles: <profile-name>
        application-name: <application-name>

I tried to setup a connection through WireMock to look if the call is incorrect. I tried to redirect the call. Wiremock takes the call and sends it just to the same base url written above but only with the token as a header and it works. Postman takes the same call and it works aswell.


问:
Move project from Visual Studio C++ to VS Code
I have a working Visual Studio C++ project of about 4000 lines that I need to move the source to VS Code but I am not familiar with VS Code yet. Is there a defined method or tool for importing projects?

I have added a C++ extension and searched for vs code import discussions.


问:
How to Customize TabBar indicator Design Flutter
I am trying to create a custom tab bar and i need to customize its tabBar indicator design.
The design i am trying to build is.

I just tried below code but it doesnt work.
What can i do to get the above result?

```<code>class CustomTabBarView extends StatelessWidget {
  const CustomTabBarView({super.key});

  final tabs = const [
    AcheivementsView(),
    AcheivementsView(),
  ];

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 700,
      child: DefaultTabController(
        length: 2,
        initialIndex: 1,
        child: Column(
          children: [
            // tab bar
            TabBar(
              isScrollable: true,

              labelStyle: const TextStyle(
                fontSize: 18,
                color: Colors.lightBlue,
              ),
              labelPadding: const EdgeInsets.symmetric(horizontal: 50),
              unselectedLabelColor: Colors.black,

              indicatorWeight: 0,
              indicator: BoxDecoration(
                border: Border.all(),
                borderRadius: BorderRadius.circular(10),
              ),

              tabs: const [
                Tab(text: 'Details'),
                Tab(text: 'Achievements'),
              ],
            ),

            // views
            Expanded(child: TabBarView(children: tabs)),
          ],
        ),
      ),
    );
  }
}

</code>```

Body:
I am trying to create a custom tab bar and i need to customize its tabBar indicator design.
The design i am trying to build is.

I just tried below code but it doesnt work.
What can i do to get the above result?

class CustomTabBarView extends StatelessWidget {
  const CustomTabBarView({super.key});

  final tabs = const [
    AcheivementsView(),
    AcheivementsView(),
  ];

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 700,
      child: DefaultTabController(
        length: 2,
        initialIndex: 1,
        child: Column(
          children: [
            // tab bar
            TabBar(
              isScrollable: true,

              labelStyle: const TextStyle(
                fontSize: 18,
                color: Colors.lightBlue,
              ),
              labelPadding: const EdgeInsets.symmetric(horizontal: 50),
              unselectedLabelColor: Colors.black,

              indicatorWeight: 0,
              indicator: BoxDecoration(
                border: Border.all(),
                borderRadius: BorderRadius.circular(10),
              ),

              tabs: const [
                Tab(text: 'Details'),
                Tab(text: 'Achievements'),
              ],
            ),

            // views
            Expanded(child: TabBarView(children: tabs)),
          ],
        ),
      ),
    );
  }
}


问:
SwiftUI Update NavigationView > List > ForEach with .refreshable?
I have code with NavigationView and List view that contains a ForEach with NavigationLink. My problem is in the view when user pressing button save with user info id, username etc. in ContentView that info appears only after refreshing app, so my question what logic I can put in .refreshable modifier?

```<code>@ObservedObject var habit = Habit()
...
ForEach(0..<habit.items.count, id: .self) { index in
NavigationLink(destination: HabitView(habit: self.habit, index: index)) {
...
</code>```

I think that this link demonstrates one possible solution, for another way, but it exceeds my skills in programming: https://troz.net/post/2019/swiftui-data-flow/ .

I think in this situation is a simpler solution than to change all of the code.

Body:
I have code with NavigationView and List view that contains a ForEach with NavigationLink. My problem is in the view when user pressing button save with user info id, username etc. in ContentView that info appears only after refreshing app, so my question what logic I can put in .refreshable modifier?

@ObservedObject var habit = Habit()
...
ForEach(0..<habit.items.count, id: .self) { index in
NavigationLink(destination: HabitView(habit: self.habit, index: index)) {
...

I think that this link demonstrates one possible solution, for another way, but it exceeds my skills in programming: https://troz.net/post/2019/swiftui-data-flow/ .

I think in this situation is a simpler solution than to change all of the code.


问:
Run Android Emulators from windows in a Hyper-V virtual machine
The Set Up

I have a personal (gaming) Windows 10 Pro PC and I want to use it for some home development work without loading up the gaming side with extra installs.  Win10 Pro allows you to create virtual machines using Hyper-V and the Hyper-V Manager.

I used the quick start to create a Win11 Dev environment.  When I logged in I downloaded and installed Visual Studio 2022 community, and Myql Workbench.  I have a MySql Server on a separate box on my network and the Win11 VM can connect to it.

There is a program I wrote using VS2022 and Ximiran to learn Mobile App development and thar is what I want to work on again.  It was written on a regular Dev box where I could launch android emulators and/or connect my mobile device to test.

I tried setting up the Android ADM with the standard emulator (Pixel 5 API 30), a more generic 6.7dpi (API 32) and while I was able to DL and install them, they failed.

The Issue

I did read many google and SO entries and I saw that the emulators would not work in Virtual Box, but I did not see anything with hyper-v.  I did changes the windows features to use hyper-v, windows hypervisor, and set up the SDK > tools > Extras > intel x86 ... (HAXM accelerator).

When I start either emulator I get an error then when boiled down says "ERROR | x86-64 emulation currently requires hardware acceleration." ... "Android Emulator requires an intel processor with VT-x and NX support.  (VT-x is not supported).

The Question

Is this just a situation where no matter what I try this combination of a PC running a VM running an Emulator will just not work?

If it can, what piece am I missing?

The VM knows I have a Intel(R) Core(TM) i7-4970K CPU @ 4.00GHz and this is a 64bit OS.  This  also has a GeForce RTX 3060 gpu which the VM does not see.

Any thoughts would be welcomed.  I would like to keep my two environments separate and though I can code almost anything else, I would like to work on my android app in VS2022.

(I may try plugging in my mobile device...hmmmm)


问:
How to retrieve a specific page number in an html code (for pdf file generator) and then display it elsewhere (in a TOC for example)?
I am currently working on a pdf generator with html/css code. Everything is already functional, including page number generation in the footer. My current problem is that I want to create a table of contents with a dynamic page number (since depending on the content, the page numbers of the different chapters are different). Is it possible to do this with just html/css?

The generator is working properly. But I have no idea how to proceed to get the page number of the pdf file.


问:
Thread-Safety of System.Diagnostics.Metrics calls
In order to add metrics support to some of my libraries I have been looking into the documentation for System.Diagnostics.Metrics. I am wondering which part of the API/SDK is therad-safe, because it's mentioned here in best practices, but could not see any further reference to thread safety. Therefore, few questions here:

Again in the best practices section, it says
The APIs to create instruments and record measurements are thread-safe. In .NET libraries, most instance methods require synchronization when invoked on the same object from multiple threads, but that's not needed in this case. My understanding is any Create...() method defined by the Meter class is thread safe, however records measurement here refers the Add(...) or RecordMasurement(...) in the Counter<T> class here?

Second question is about Observable Insturements like ObservableGauge. While creating an ObservableGauge we pass a Func which returns a value possibly updated by the code, so needs to be thread safe in order to be consumed in a consistent manner by the Metrics SDK. I wonder if a lock would be necessary to make this call thread-safe or is there any other way exists which does not have the overhead of a lock?


问:
In report builder while computing the sub totals - by default it groups for all the data set
In report builder while computing the sub totals - by default it groups for all the data set.
if you see for 23rd december i am getting "something" 3 times, so instead of giving the count of 3 its giving me 9 because for that particular date i have "something" 9 times in my database, hope this helps .

Attaching the report for reference. We need the sub totals of only the count highlighted in report body for the respective dates.

We tried grouping the numbers

Tried handling using the sum expression


问:
Add IP parameter to proxy with http-proxy-middleware
I am using http-proxy-middleware for a proxy to a new version of an api. But I need to apped the URL with the request client IP address.

Example:
/api?param1=ok&param2=ok proxies to newapi.example.com/request?param1=ok&param2=ok, but I need it to be proxied to newapi.example.com/request?param1=ok&param2=ok&ip=x.x.x.x

Here is what I am using now.

```<code>const { createProxyMiddleware } = require('http-proxy-middleware');

const apiProxy = createProxyMiddleware({
  target: "https://newapi.example.com/request",
  changeOrigin: true,
  pathRewrite: {
    "^/api": "" // strip "/api" from the URL
  },
  onProxyRes(proxyRes) {
    //proxyRes.headers['x-added'] = 'foobar'; // add new header to response
    //delete proxyRes.headers['x-removed']; // remove header from response
  }
});

// Expose the proxy on the "/api/*" endpoint.
export default function (req, res) {
  return apiProxy(req, res);
};
</code>```

Any clue will help greatly, thank you.

Body:
I am using http-proxy-middleware for a proxy to a new version of an api. But I need to apped the URL with the request client IP address.

Example:
/api?param1=ok&param2=ok proxies to newapi.example.com/request?param1=ok&param2=ok, but I need it to be proxied to newapi.example.com/request?param1=ok&param2=ok&ip=x.x.x.x

Here is what I am using now.

const { createProxyMiddleware } = require('http-proxy-middleware');

const apiProxy = createProxyMiddleware({
  target: "https://newapi.example.com/request",
  changeOrigin: true,
  pathRewrite: {
    "^/api": "" // strip "/api" from the URL
  },
  onProxyRes(proxyRes) {
    //proxyRes.headers['x-added'] = 'foobar'; // add new header to response
    //delete proxyRes.headers['x-removed']; // remove header from response
  }
});

// Expose the proxy on the "/api/*" endpoint.
export default function (req, res) {
  return apiProxy(req, res);
};

Any clue will help greatly, thank you.


问:
Check request headers in an S3 static site
I am hosting a website on an S3 bucket using the static website functionality.

In between the client and the website there is CloudFlare.

I have enabled a CFlare functionality that adds some custom headers to the requests reaching the S3.

Is there a way to check if these headers do reach my website?


问:
haproxy starts empty (without tcp service section)
we use haproxy-ingress v0.13.6 (HA-Proxy version 2.3.17-d1c9119 2022/01/11) (and the previous haproxy-ingress versions performed the same) on k8s 1.19
and from time to time we have a problem when haproxy pod restarts due to liveness, node, or other reasons, it starts without the servers section
in that case the lines listed below are not appearing inside /etc/haproxy/haproxy.cfg file

```<code>  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# #   TCP SERVICES (legacy, via configmap)
# #
#
listen _tcp_namespace_project-haproxy-stats_111
    bind :111
    mode tcp
    log-format "[%t] %ci:%cp %si:%sp %bi:%bp %fi:%fp %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq"

    option log-health-checks
    option tcp-check
    tcp-check send "AAA"
    tcp-check expect string "BBB"

    # Recognized options podMaxConn: 2
    default-server check port 111 inter 2s maxconn 2 observe layer4 error-limit 1 on-error mark-down
    server-template project-worker.namespace- 3 project-worker.namespace.svc.cluster.local:111 resolvers kubernetes resolve-prefer ipv4 init-addr none
</code>```

I'm able to reproduce that problem by manually issuing 'reboot' command using k8s exec, that needs several attempts.

k8s rollout restart deployment resolves that problem
else patching tcp-service configmap helps, if I'm modifying, appending, or deleting some lines in the configmap, haproxy reloads the config and starts working according to the configmap content
reload manually with /haproxy-reload.sh doesn't help

Another difference between working and not working correctly instances

```<code>/ # ps axjf | more
PID   USER     TIME  COMMAND
...
   34 root      0:00 haproxy -f /etc/haproxy -p /var/run/haproxy/haproxy.pid -D -sf
...
</code>```

and that's from the healthy one

```<code>/ # ps axjf | more
PID   USER     TIME  COMMAND
...
   43 root      0:00 haproxy -f /etc/haproxy -p /var/run/haproxy/haproxy.pid -D -sf 31 -x
...
</code>```

Body:
we use haproxy-ingress v0.13.6 (HA-Proxy version 2.3.17-d1c9119 2022/01/11) (and the previous haproxy-ingress versions performed the same) on k8s 1.19
and from time to time we have a problem when haproxy pod restarts due to liveness, node, or other reasons, it starts without the servers section
in that case the lines listed below are not appearing inside /etc/haproxy/haproxy.cfg file

  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# #   TCP SERVICES (legacy, via configmap)
# #
#
listen _tcp_namespace_project-haproxy-stats_111
    bind :111
    mode tcp
    log-format "[%t] %ci:%cp %si:%sp %bi:%bp %fi:%fp %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq"

    option log-health-checks
    option tcp-check
    tcp-check send "AAA"
    tcp-check expect string "BBB"

    # Recognized options podMaxConn: 2
    default-server check port 111 inter 2s maxconn 2 observe layer4 error-limit 1 on-error mark-down
    server-template project-worker.namespace- 3 project-worker.namespace.svc.cluster.local:111 resolvers kubernetes resolve-prefer ipv4 init-addr none

I'm able to reproduce that problem by manually issuing 'reboot' command using k8s exec, that needs several attempts.

k8s rollout restart deployment resolves that problem
else patching tcp-service configmap helps, if I'm modifying, appending, or deleting some lines in the configmap, haproxy reloads the config and starts working according to the configmap content
reload manually with /haproxy-reload.sh doesn't help

Another difference between working and not working correctly instances

/ # ps axjf | more
PID   USER     TIME  COMMAND
...
   34 root      0:00 haproxy -f /etc/haproxy -p /var/run/haproxy/haproxy.pid -D -sf
...

and that's from the healthy one

/ # ps axjf | more
PID   USER     TIME  COMMAND
...
   43 root      0:00 haproxy -f /etc/haproxy -p /var/run/haproxy/haproxy.pid -D -sf 31 -x
...


问:
Quickitem in qml image is blured when image is sacled
I place a quickitem component in qml Image and draw some polygons with a pen of 0 line-width when I scale the image with the mouse wheel, the polygon looks blurred, how can the polygon look the same as they do(0 line-width graphicsitem should look very thin?) in QGraphicsView?

what can I do to make the 0 line-width polygon looks like the 0 line-width polygons in QGraphicsView?


问:
Autocorrelation: Error Message 'lag.max' must be at least 0, even though I set a lag.max
I have a error in R, which I cant repair.

I have a nested dataframe "dfNEST" with ID's and the data from each person.

In the data I have the column "steps", which have some NA's. Thats why I use na.action = na.exclude.

```<code>map(dfNEST$data,~acf(.$steps, lag.max = 30, na.action = na.exclude))
</code>```

When I run this code, I get the message "'lag.max' must be at least 0, even though I set the max to = 30. How can I get this code to run?

Body:
I have a error in R, which I cant repair.

I have a nested dataframe "dfNEST" with ID's and the data from each person.

In the data I have the column "steps", which have some NA's. Thats why I use na.action = na.exclude.

map(dfNEST$data,~acf(.$steps, lag.max = 30, na.action = na.exclude))

When I run this code, I get the message "'lag.max' must be at least 0, even though I set the max to = 30. How can I get this code to run?


问:
android load library blocked and cause ANR
I found a android ANR stuck on load system library!

Code stucked:

```<code>static {
    System.loadLibrary("imsmedia_jni");
}
</code>```

stack:

```<code>"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x71cc7c28 self=0xaa778e00
  | sysTid=2618 nice=0 cgrp=default sched=0/0 handle=0xaab91470
  | state=D schedstat=( 230859220 290687092 197 ) utm=8 stm=14 core=7 HZ=100
  | stack=0xbe4ff000-0xbe501000 stackSize=8192KB
  | held mutexes=
  native: (backtrace::Unwind failed for thread 2618: Thread has not responded to signal in time)
  at java.lang.Runtime.nativeLoad(Native method)
  at java.lang.Runtime.nativeLoad(Runtime.java:1131)
  at java.lang.Runtime.loadLibrary0(Runtime.java:1085)
  - locked <0x0e7b2512> (a java.lang.Runtime)
  at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
  at java.lang.System.loadLibrary(System.java:1664)
  at com.qualcomm.ims.vt.ImsMedia.<clinit>(ImsMedia.java:198)
</code>```

Anyone knows what does below error message means:

```<code>Unwind failed for thread 2618: Thread has not responded to signal in time)
</code>```

stuck on nativeLoad API looks weird!

Body:
I found a android ANR stuck on load system library!

Code stucked:

static {
    System.loadLibrary("imsmedia_jni");
}

stack:

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x71cc7c28 self=0xaa778e00
  | sysTid=2618 nice=0 cgrp=default sched=0/0 handle=0xaab91470
  | state=D schedstat=( 230859220 290687092 197 ) utm=8 stm=14 core=7 HZ=100
  | stack=0xbe4ff000-0xbe501000 stackSize=8192KB
  | held mutexes=
  native: (backtrace::Unwind failed for thread 2618: Thread has not responded to signal in time)
  at java.lang.Runtime.nativeLoad(Native method)
  at java.lang.Runtime.nativeLoad(Runtime.java:1131)
  at java.lang.Runtime.loadLibrary0(Runtime.java:1085)
  - locked <0x0e7b2512> (a java.lang.Runtime)
  at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
  at java.lang.System.loadLibrary(System.java:1664)
  at com.qualcomm.ims.vt.ImsMedia.<clinit>(ImsMedia.java:198)

Anyone knows what does below error message means:

Unwind failed for thread 2618: Thread has not responded to signal in time)

stuck on nativeLoad API looks weird!


问:
Avro message serialized within flink application fails to deserialize outside flink
I have a generated Avro class (i.e. extends SpecificRecordBase) which happens to be named PeopleTransformation.  I'm not using a schema registry and am hoping not to have to use one to solve this problem.

I am explicitly serializing constructed instances of PeopleTransformation in my flink application using:

```<code><dependency>
  <groupId>org.apache.avro</groupId>
  <artifactId>avro</artifactId>
  <version>1.7.7</version>
</dependency>
</code>```

The code is as follows (I recognise there there should be a try catch finally but that's a separate issue)

```<code>public static byte[] serialize(PeopleTransformation record) throws IOException {
  DatumWriter<PeopleTransformation> writer = new SpecificDatumWriter<PeopleTransformation>(record.getSchema());
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  BinaryEncoder encoder = EncoderFactory.get().binaryEncoder(out, null);
  writer.write(record, encoder);
  encoder.flush();
  IOUtils.closeQuietly(out);
  return out.toByteArray();
}
</code>```

I send the resulting byte array out through my FlinkKafkaProducer, via Kafka, to a Kafka consumer (separate JVM, non-Flink simple Java application) where I attempt to deserialize it using the same avro library.

```<code>public static <T extends SpecificRecordBase> T deserializeRecord(byte[] bytes, Class<T> avroClass)
  throws IOException {
  SpecificDatumReader<T> reader = new SpecificDatumReader<>(avroClass);
  return reader.read(null, DecoderFactory.get().binaryDecoder(bytes, null));
}
</code>```

This results in the following exception:

```<code>java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.avro.io.parsing.Symbol$Alternative.getSymbol(Symbol.java:402)
at org.apache.avro.io.ResolvingDecoder.doAction(ResolvingDecoder.java:290)
......
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:142)
</code>```

After investigation I've noted that my flink application contains the following dependency (which seems to be necessary even though my application makes no explicit use of its classes):

```<code><dependency>
  <groupId>org.apache.flink</groupId>
  <artifactId>flink-avro</artifactId>
  <version>1.14.2</version>
</dependency>
</code>```

and that that package introduces an org.apache.flink.formats.avro.typeutils.AvroInfoType class (https://github.com/apache/flink/blob/release-1.14.2/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroTypeInfo.java#L82-L85)
which, if I'm understanding correctly, seems to be used to automatically convert each CharSequence in a schema to a Utf8. The javadoc for this class (https://nightlies.apache.org/flink/flink-docs-master/api/java/org/apache/flink/formats/avro/typeutils/AvroTypeInfo.html)
says:

"Special type information to generate a special AvroTypeInfo for Avro POJOs
(implementing SpecificRecordBase, the typed Avro POJOs). Proceeding: It
uses a regular pojo type analysis and replaces all
GenericType with a GenericType<avro.Utf8>. All other types
used by Avro are standard Java types. Only strings are represented as
CharSequence fields and represented as Utf8 classes at runtime.
CharSequence is not comparable. To make them nicely usable with field
expressions, we replace them here by generic type infos containing Utf8
classes (which are comparable)".

Could the above substitution explain the incompatibility I'm seeing?  If not is there any other explanation?  (I've tried removing the flink-avro dependency from my flink application but I then
get a missing class exception with respect to AvroTypeInfo)?

Any explanation or insight would be very welcome. Note that in production use the messages will be consumed by third-party applications into which it would be difficult to introduce any Flink specifics.

Body:
I have a generated Avro class (i.e. extends SpecificRecordBase) which happens to be named PeopleTransformation.  I'm not using a schema registry and am hoping not to have to use one to solve this problem.

I am explicitly serializing constructed instances of PeopleTransformation in my flink application using:

<dependency>
  <groupId>org.apache.avro</groupId>
  <artifactId>avro</artifactId>
  <version>1.7.7</version>
</dependency>

The code is as follows (I recognise there there should be a try catch finally but that's a separate issue)

public static byte[] serialize(PeopleTransformation record) throws IOException {
  DatumWriter<PeopleTransformation> writer = new SpecificDatumWriter<PeopleTransformation>(record.getSchema());
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  BinaryEncoder encoder = EncoderFactory.get().binaryEncoder(out, null);
  writer.write(record, encoder);
  encoder.flush();
  IOUtils.closeQuietly(out);
  return out.toByteArray();
}

I send the resulting byte array out through my FlinkKafkaProducer, via Kafka, to a Kafka consumer (separate JVM, non-Flink simple Java application) where I attempt to deserialize it using the same avro library.

public static <T extends SpecificRecordBase> T deserializeRecord(byte[] bytes, Class<T> avroClass)
  throws IOException {
  SpecificDatumReader<T> reader = new SpecificDatumReader<>(avroClass);
  return reader.read(null, DecoderFactory.get().binaryDecoder(bytes, null));
}

This results in the following exception:

java.lang.ArrayIndexOutOfBoundsException: 40
at org.apache.avro.io.parsing.Symbol$Alternative.getSymbol(Symbol.java:402)
at org.apache.avro.io.ResolvingDecoder.doAction(ResolvingDecoder.java:290)
......
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:142)

After investigation I've noted that my flink application contains the following dependency (which seems to be necessary even though my application makes no explicit use of its classes):

<dependency>
  <groupId>org.apache.flink</groupId>
  <artifactId>flink-avro</artifactId>
  <version>1.14.2</version>
</dependency>

and that that package introduces an org.apache.flink.formats.avro.typeutils.AvroInfoType class (https://github.com/apache/flink/blob/release-1.14.2/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroTypeInfo.java#L82-L85)
which, if I'm understanding correctly, seems to be used to automatically convert each CharSequence in a schema to a Utf8. The javadoc for this class (https://nightlies.apache.org/flink/flink-docs-master/api/java/org/apache/flink/formats/avro/typeutils/AvroTypeInfo.html)
says:

"Special type information to generate a special AvroTypeInfo for Avro POJOs
(implementing SpecificRecordBase, the typed Avro POJOs). Proceeding: It
uses a regular pojo type analysis and replaces all
GenericType with a GenericType<avro.Utf8>. All other types
used by Avro are standard Java types. Only strings are represented as
CharSequence fields and represented as Utf8 classes at runtime.
CharSequence is not comparable. To make them nicely usable with field
expressions, we replace them here by generic type infos containing Utf8
classes (which are comparable)".

Could the above substitution explain the incompatibility I'm seeing?  If not is there any other explanation?  (I've tried removing the flink-avro dependency from my flink application but I then
get a missing class exception with respect to AvroTypeInfo)?

Any explanation or insight would be very welcome. Note that in production use the messages will be consumed by third-party applications into which it would be difficult to introduce any Flink specifics.


问:
Apache Airflow task runs twice
I'm running Dataflow jobs on GCP by scheduling DAGs with Cloud Composer.
This is my DAG graph. The maf_to_bq_X tasks are grouped together with Airflow TaskGroup; they are BeamRunPythonPipelineOperator Operators that execute on Dataflow. These taks perform the same operations:

Get a file path in variables_conf

Read and process the file

Write the output to BigQuery

I set max_active_runs=1 and max_active_tasks=3.

Every time I run the pipeline, one of those tasks is repeated twice.
After the set_variables_conf task, 3 tasks are taken from the queue and run in parallel; one of these is marked as up_for_retry but still in execution on Dataflow. Since there are no errors, the task is completed and marked as successfull but Airflow schedules the task another time.

This is a big problem because, at the end, I will have duplicates in my BigQuery table.
What's the problem with this DAG?

PS. I've also tried to assign a priority weigth to each task but it still doesn't work

This is the DAG's code:

    with models.DAG(
        "ieo_dima_extraction",
        default_args={
            "start_date": pendulum.today('Europe/Rome'),
            'retries': 3,
            "dataflow_default_options": {
                "project": project_id,
                "region": "europe-west1",
            }
        },
        on_success_callback=cleanup_xcom,
        is_paused_upon_creation=True,
        render_template_as_native_obj=True,
        max_active_runs=1,
        max_active_tasks=3,
        schedule_interval=None
    ) as dag:
        set_variables = PythonOperator(
           task_id='set_variables_conf',
           python_callable=set_variables_conf,
           op_kwargs={'bucket_name': 'dima_landing_area'},
           do_xcom_push=True
        )

    list_of_maf = Variable.get('dima_maf_paths', default_var={}, deserialize_json=True)
    mapping_file_path = Variable.get('dima_mapping_path', default_var='')
    dima_bucket = 'dima_landing_area'

    with TaskGroup(group_id='process_maf_files', prefix_group_id=False) as process_maf_files:
        if list_of_maf['files']:
            for index, maf_file in enumerate(list_of_maf['files']):
                maf_to_bq = maf_to_bq_job(index, processing_path, maf_file, bq_data_table, dataset_name, temp_location,
                                          staging_location, project_id, dataflow_region, mapping_file_path)

    truncate_map_tmp_start = truncate_job("start", dataset_name, bq_mapping_tmp_table, bq_job_region)
    with TaskGroup(group_id='process_mapping', prefix_group_id=False) as process_mapping:
        map_to_bq = mapping_to_bq(update_map_path, bq_mapping_tmp_table, dataset_name, sql_view_file, temp_location,
                                  staging_location, project_id, dataflow_region, mapping_file_path)
        merge_map = merge_job(query_merge, dataset_name, bq_mapping_table, bq_job_region)
        truncate_map_tmp_end = truncate_job("end", dataset_name, bq_mapping_tmp_table, bq_job_region)
        update_view = create_view_job(sql_view_script, dataset_name, bq_job_region)
        chain(map_to_bq, merge_map, truncate_map_tmp_end, update_view)

    chain(set_variables, truncate_map_tmp_start, [process_maf_files, process_mapping])
```

Title: Apache Airflow task runs twice


问:
In flutter, integer values from firebase are put into a double list and averaged
In the application I made in Flutter, information on how many pages a student read per day comes from firebase, and in the application, it assigns them to a double list and then takes the weekly average. But something goes wrong while adding it to the list.</p>
```<code>
List<ModelData> students = [];

for (var student in students) {
FirebaseFirestore.instance
            .collection('students_data')
            .where('mail', isEqualTo: student.userID)
            .where(
              'date',
              isGreaterThanOrEqualTo: startDate,
            )
            .where('date', isLessThanOrEqualTo: finishDate)
            .get()
            .then((value2) {
          try {
            for (var i = 0; i < value2.docs.length; i++) {
              data.add(
                ModelData(
                  date: value2.docs[i]['date'] ?? "",
                  readingbookvalue: value2.docs[i]['readingbookvalue'] ?? "",
                  mail: value2.docs[i]['mail'] ?? "",
                ),
              );

              if (data[i].readingbookvalue == "") {
                double value = 0;
                setState(() {
                  student.readingbooks?.add(value);
                });
              } else {
                double value = double.parse(data[i].readingbookvalue ?? "0");
                setState(() {
                 student.readingbook?.add(value);
                });
              }

            student.readingbook_average =
                student.readingbook!.reduce((a, b) => a + b) /
                    student.readingbook!.length;
          } catch (e) {
            e.toString();
          }
        }).whenComplete(() {
          setState(() {
            loading = false;
          });
        });
}

class ModelData{
  String? date;
  String? readingbookvalue;
  int? mail;
  double? readingbook;
  List<double>? readingbook_average;

  ModelOgrenci({
    this.readingbook,
    this.readingbook_average,
  });

}
</code>```

Body:
In the application I made in Flutter, information on how many pages a student read per day comes from firebase, and in the application, it assigns them to a double list and then takes the weekly average. But something goes wrong while adding it to the list.

List<ModelData> students = [];

for (var student in students) {
FirebaseFirestore.instance
            .collection('students_data')
            .where('mail', isEqualTo: student.userID)
            .where(
              'date',
              isGreaterThanOrEqualTo: startDate,
            )
            .where('date', isLessThanOrEqualTo: finishDate)
            .get()
            .then((value2) {
          try {
            for (var i = 0; i < value2.docs.length; i++) {
              data.add(
                ModelData(
                  date: value2.docs[i]['date'] ?? "",
                  readingbookvalue: value2.docs[i]['readingbookvalue'] ?? "",
                  mail: value2.docs[i]['mail'] ?? "",
                ),
              );

              if (data[i].readingbookvalue == "") {
                double value = 0;
                setState(() {
                  student.readingbooks?.add(value);
                });
              } else {
                double value = double.parse(data[i].readingbookvalue ?? "0");
                setState(() {
                 student.readingbook?.add(value);
                });
              }

            student.readingbook_average =
                student.readingbook!.reduce((a, b) => a + b) /
                    student.readingbook!.length;
          } catch (e) {
            e.toString();
          }
        }).whenComplete(() {
          setState(() {
            loading = false;
          });
        });
}

class ModelData{
  String? date;
  String? readingbookvalue;
  int? mail;
  double? readingbook;
  List<double>? readingbook_average;

  ModelOgrenci({
    this.readingbook,
    this.readingbook_average,
  });

}


问:
Some lottie animations that were created in After Effects are not rendering correctly and there are some layers missing in iOS, they look fine on web
We created a file by making Rotoscope in After effect. Then we auto-trace the Rotoscope made file and exported vector. Then we colored the layers by adding fill. We were planning to use it in our application.

When we tried to save it as a dotLottie file, the exports appeared as white in iOS but they were rendering fine in lottifiles.com. Another layer of white was added on top of fill inside the lottie. We repainted the color of the added white layers with the same color as fill we added, and then exported it as dotLottie.

Here you can see the screenshots:
enter image description here
enter image description here

When we added it to the application, we saw that some layers disappeared while others are rendering OK. There is no set number of layers missing and they all appear to be identical in the way they are created.


问:
Monkey C: Is it possible to receive a physical button press event while my app is int the background?
I'm developing an emergency assistance app for the Garmin smartwatch platform and would like to be able to send an alarm with the (double) press of a button. In Android there is usually a kind of broadcast you can subscribe to. This broadcast will be sent to your app when the corresponding physical button is pressed.

Does anybody know if a similar thing exists for Garmin smartwatches?
Or at the very least the option to start your app with the press of a button?

Thanks you!

Vince

I tried looking through the Monkey C documentation about user input and background processes, but was unable to find anything.
I checked the example apps provided by Garmin as well.


问:
open cmd / shell from yarn command in vscode (script in package.json)
I am trying to configure my package.json to execute a script to:

open a new cmd and execute a command (open a ssh tunnel)

and then do something else.

this is what I have tried:

```<code>  "scripts": {
    "dev": "ssh -L 5432:internal_server:5432 user@sshd.url.de -p 2222 && yarn rw dev"
  },
</code>```

the problem is, that the ssh command starts and opens the new terminal - but the yarn rw dev command does not start, because (of course) the first command keeps running until closed so it never gets behind the && (or single & which also does not change the behavior)

what would be the way to go here? and is there a way to do that on win and *nix systems the same way?

Thanks and cheers

Body:
I am trying to configure my package.json to execute a script to:

open a new cmd and execute a command (open a ssh tunnel)

and then do something else.

this is what I have tried:

  "scripts": {
    "dev": "ssh -L 5432:internal_server:5432 user@sshd.url.de -p 2222 && yarn rw dev"
  },

the problem is, that the ssh command starts and opens the new terminal - but the yarn rw dev command does not start, because (of course) the first command keeps running until closed so it never gets behind the && (or single & which also does not change the behavior)

what would be the way to go here? and is there a way to do that on win and *nix systems the same way?

Thanks and cheers


问:
NUCLEO-F411RE Openocd "Cannot identify target as a STM32 family."

Nucleo with STM32F103RB

STM32F3DISCOVERY

Nucleo with STM32F411RE

I am currently trying to learn rust embedded thanks to 3 stm32 based developpement board :

I have no issue with the first two ones but I can not make work the F411RE with gdb & openocd. Everytime I try to flash (the same program that works fine with the two others) I receive this :

Openocd :
`

```<code>Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V2J33M25 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.261538
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f3x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006431
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected`
</code>```

`
As you can see my board is detected but as soon as I try to connect to GDB, the board is not recognized.

Just so that you can check memory parameter :

`

```<code>FLASH : ORIGIN =   0x08000000, LENGTH = 512K
  RAM : ORIGIN = 0x20000000, LENGTH = 128K
</code>```

`

I don't really know what to do knowing that it works very well on an other nucleo with an ARM cortex M3 and also with an other board but this time with an ARM cortex M4F.

Thank you for your help

Body:
Nucleo with STM32F103RB

STM32F3DISCOVERY

Nucleo with STM32F411RE

I am currently trying to learn rust embedded thanks to 3 stm32 based developpement board :

I have no issue with the first two ones but I can not make work the F411RE with gdb & openocd. Everytime I try to flash (the same program that works fine with the two others) I receive this :

Openocd :
`

Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V2J33M25 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.261538
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f3x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006431
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected`

`
As you can see my board is detected but as soon as I try to connect to GDB, the board is not recognized.

Just so that you can check memory parameter :

`

FLASH : ORIGIN =   0x08000000, LENGTH = 512K
  RAM : ORIGIN = 0x20000000, LENGTH = 128K

`

I don't really know what to do knowing that it works very well on an other nucleo with an ARM cortex M3 and also with an other board but this time with an ARM cortex M4F.

Thank you for your help


问:
React Native Fetch Request with at Risk Response header
Is there any way to launch a "fetch" to a server that doesn't have the needed "access" response headers?

I've been checking the responses through Browser Networking, those that don't have the "access" headers in their response throw "TypeError: Failed to fetch"

UPDATE

I mean when these headers are not available in the response:

```<code>Access-Control-Allow-Origin: https://normal-website.com
Access-Control-Allow-Methods: PUT, POST, OPTIONS
Access-Control-Allow-Headers: Special-Request-Header
Access-Control-Allow-Credentials: true
</code>```

Body:
Is there any way to launch a "fetch" to a server that doesn't have the needed "access" response headers?

I've been checking the responses through Browser Networking, those that don't have the "access" headers in their response throw "TypeError: Failed to fetch"

UPDATE

I mean when these headers are not available in the response:

Access-Control-Allow-Origin: https://normal-website.com
Access-Control-Allow-Methods: PUT, POST, OPTIONS
Access-Control-Allow-Headers: Special-Request-Header
Access-Control-Allow-Credentials: true


问:
Is there a way to define different pytest "profiles" in setup.cfg or pyproject.toml?
I want to define two different "profiles" for my tests and I'm using setup.cfg. I want to know if it's possible to configure this all under [tool:pytest].

I want to do more than just change markers I want to change other settings too.

The two different executions would look something like this and might include even more diverging args and settings in the future (I want to be able to define them arbitrarily):

```<code>profile_name: unit # "profile_name" doesn't exist just using as example of the kind of thing I'm looking for
    addopts = --verbose -m "unit" --capture=yes --disable-pytest-warnings
    python_files = *_test.py
    testpaths =
        tests/unit
</code>```

And:

```<code>profile_name: integration # "profile_name" doesn't exist just using as example of the kind of thing I'm looking for
    addopts = --verbose -m "integration" --capture=no
    python_files = *_test.py
    testpaths =
        tests/integration
</code>```

It would be great if I didn't have to create two pytest inis or just override everything via command line. I'd like to be able to run a command akin to pytest --profile="unit" and centralize all my pytest settings in setup.cfg.

Is such a thing supported?

I also use a pyproject.toml so if this is supported there I would be able to use that file too.

Body:
I want to define two different "profiles" for my tests and I'm using setup.cfg. I want to know if it's possible to configure this all under [tool:pytest].

I want to do more than just change markers I want to change other settings too.

The two different executions would look something like this and might include even more diverging args and settings in the future (I want to be able to define them arbitrarily):

profile_name: unit # "profile_name" doesn't exist just using as example of the kind of thing I'm looking for
    addopts = --verbose -m "unit" --capture=yes --disable-pytest-warnings
    python_files = *_test.py
    testpaths =
        tests/unit

And:

profile_name: integration # "profile_name" doesn't exist just using as example of the kind of thing I'm looking for
    addopts = --verbose -m "integration" --capture=no
    python_files = *_test.py
    testpaths =
        tests/integration

It would be great if I didn't have to create two pytest inis or just override everything via command line. I'd like to be able to run a command akin to pytest --profile="unit" and centralize all my pytest settings in setup.cfg.

Is such a thing supported?

I also use a pyproject.toml so if this is supported there I would be able to use that file too.


问:
navbar wont shrink when in dev tools with responsive design
im having trouble with media query's and responsive designs

I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code

```<code>
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&display=swap');

*{  margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family:'DM Sans', sans-serif;
    ;
}

.header-top{
    width: 100%;
    height: 65px;
    background:#A4E0EB;
    padding: 0 50px;
    display: flex;
    justify-content: right;
  }

.header-top .header-top-container
{display: flex; align-items: center;
 }

.header-top .header-top-container .header-top-quickSearch input[type="text"]
{border:1px solid#A4E0EB;
padding: 5px 10px;
outline: none;
border-radius: 4px;}

.header-top .header-top-container .header-top-quickSearch input[type="text"]:focus
{width: 250px}

.header-top .header-top-container ul{display: flex;
margin-right: 5rem;}

.header-top .header-top-container ul li{margin:0 12px;
font-size: 14px;
}

.header-top ul li a{color: #fff;}
.header-top ul li a:hover{color:#FFB5C3;}

/* header container */
.header-container { display: flex;
background-color:#f6f8f5;
font-family:'DM Sans', sans-serif;}

.header-container1{display: flex;
position: relative;}

img.header-logo{right: 60em; bottom:-5em;
  position: absolute;}

  /* header container end */

  /* Links inside the navbar */
  .header-container a {
    float:left;
    font-size: 14px;
    color: #6F7378;
    padding: 14px 16px;
    text-decoration: none;
    z-index: 5;}

  /* The dropdown container */
  .dropdown {
    float: left;
    overflow: hidden;
    z-index: 5;}

  /* Dropdown button */
  .dropdown .dropbtn {
    font-size: 14px;
    border: none;
    outline: none;
    color: #6F7378;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    z-index: 5;}

    .dropdown-content-grid{display: grid;
      grid-template-columns: repeat(4, max-content);}

      .blank{text-decoration: none;
          cursor:default;
          pointer-events: none;
      }

/* a tag & buttons underline */
*,
*:before
*:after {padding: 0;
margin: 0;
box-sizing: border-box;}

button{position: relative;
text-decoration: none;
font-family:'DM Sans', sans-serif;
color: #6F7378;
font-size: 1px;
letter-spacing: 0.5px;
padding:0 10px;}

button:after{content: "";
position: absolute;
background-color: #FFB5C3;
height: 3px;
width: 0%;
left: 0;
bottom: -0.4px;}

button:hover:after{width: 100%;}

.home{position: relative;
    text-decoration: none;
    font-family:'DM Sans', sans-serif;
    color: #6F7378;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding:0 10px;}

.home:after{content: "";
    position: absolute;
    background-color: #FFB5C3;
    height: 3px;
    width: 0%;
    left: 0;
    bottom: -0.4px;}

.home:hover:after{width: 100%;}

.header-container > .home:focus, .home:hover {color: #FFB5C3;}
.dropdown > button:focus, button:hover {color: #FFB5C3;}

/* a tag & buttons underline end */

  /* Add a red background color to navbar links on hover */
  /* .navbar a.home:hover,.dropdown:hover .dropbtn {
    background-color: #FFB5C3;
  } */

  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    z-index: 5;

  }
  .dropdown button:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;}

  /* Links inside the dropdown */
  .dropdown-content a {
    float: none;
    color: #6F7378;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    z-index: 5;

  }

  .navPages a:hover{  color: #FFB5C3;}
  .navPages button:hover{color: #FFB5C3;}

  /* Add a grey background color to dropdown links on hover */
  /* .dropdown-content a:hover {
    background-color:#FFB5C3;
  } */

  /* Show the dropdown menu on hover */
  .dropdown .dropdown-content {
    display: none;
    z-index: 5;

  }

.navPages{
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;}

.header-container{
display: flex;
justify-content: center;
align-items: center;
}

/* .toggle-button{position: absolute;
top: 0.75rem;
right: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 20px;}

.toggle-button .bar{height: 3px;
width: 100%;
background-color: #FFB5C3;
border-radius: 10px;} */

.wholebodycontainer{margin-top: 3rem;}

h1{display: flex;
justify-content: center;
align-items: center;
margin-bottom: 3rem;
font-size:35px;
letter-spacing: 0.75rem;
color: #506671;}

  /* Image Slider */

  *{Margin:0;
    padding: 0;
    box-sizing: border-box;}

    .swiper{width: 65%;
    height: fit-content;
  border-radius: 5px;}

    .swiper-slide img {width: 100%;}

    .swiper .swiper-button-prev, .swiper .swiper-button-next {color: #FFB5C3;}

    .swiper .swiper-pagination-bullet-active{background: #FFB5C3;}

     /* Image Slider End */

@media screen and (max-width:1340px) {}

</code>```

^^^CSS^^^

```<code><!DOCTYPE html>
<html lang="en-uk">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cake & a'Cuppa Website</title>
    <link rel="stylesheet" href="Cake-and-Cuppa-Website-Up-To-Date-Style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>
</head>

<body>

    <div class="body-wrapper">

      <header class="header" role="banner">

            <div class="header-top">
              <div class="header-top-container">

                  <div class="header-top-quickSearch">
                      <input type="text" placeholder="Search the store">
                  </div>
                        <ul class="header-top-menu">
                            <li class="header-top-menu-item"><a href="#">CONTACT US</a></li>
                            <li class="header-top-menu-item"><a href="#">DELIVERY SERVICE</a></li>
                            <li class="header-top-menu-item"><a href="#">TEL:01904 690283</a></li>
                        </ul>

              </div>
                </div>

         <div class="header-container">

         <header class="header">
            <div class="navPages-container">
                                <div class="header-container1"><img class="header-logo"-image src="c:\Users\micha\Desktop\cake-svg.png" alt="" width="155px" height="155px"></div>

                <nav class="navPages">
                  <a href="#" class="toggle-button">
                    <span class="bar"></span>
                    <span class="bar"></span>
                    <span class="bar"></span>
                  </a>

                   <a class="home" href="#home">HOME</a>

                            <div class="dropdown">
                          <button class="dropbtn">CELEBRATION CAKES
                            <i class="fa fa-caret-down"></i>
                          </button>
                          <div class="dropdown-content">
                            <div class="dropdown-content-grid">
                            <a href="#">BIRTHDAY CAKES</a>
                            <a href="#">OCCASION CAKES</a>
                            <a href="#">SEASONAL CAKES</a>
                            <a href="#">TODDLER CAKES</a>
                            <a href="#">CAKES FOR HIM</a>
                            <a href="#">ANNIVERSARY CAKES</a>
                            <a href="#">THANKSGIVING CAKES</a>
                            <a href="#">NUMBER CAKES</a>
                            <a href="#">CAKES FOR HER</a>
                            <a href="#">WEDDING CAKES</a>
                            <a href="#">CHRISTMAS</a>
                            <a href="#">PRINCESS CaKES</a>
                            <a href="#">TODDLER CAKES</a>
                            <a href="#">CHRISTENING CAKES</a>
                            <a href="#">BURNS NIGHT GIFTS</a>
                            <a href="#">ROMANTIC CAKES</a>
                            <a href="#">GIRLS BIRTHDAY CAKES</a>
                            <a href="#">NEW BABY CAKES</a>
                            <a href="#">VALENTINE'S DAY</a>
                            <div></div>
                            <a href="#">BOYS BIRTHDAY CAKES</a>
                            <a href="#">RETIREMENT CAKES</a>
                            <a href="#">ST DAVID'S DAY CAKES</a>
                            <div></div>
                            <a href="#">TEEN BIRTHDAY CAKES</a>
                            <a href="#">GRADUATION CAKES</a>
                            <a href="#">ST PATRICK'S DAY CAKES</a>
                            <div></div>
                            <a href="#">NUMBER CAKES</a>
                            <a href="#">RELIGIOUS CAKES</a>
                            <a href="#">MOTHER'S DAY</a>
                            <div></div>
                            <a href="#">CAKES WITH TOYS</a>
                            <a href="#">GET WELL SOON CAKES</a>
                            <a href="#">EASTER</a>
                            <div></div>
                            <a href="#">ANIMAL CAKES</a>
                            <a href="#">GOOD LUCK CAKES</a>
                            <a href="#">ST GEORGE'S DAY CAKES</a>
                            <div></div>
                            <a href="#">HANDBAG & SHOE CAKES</a>
                            <a href="#">WELL DONE CAKES</a>
                            <a href="#">EID CAKES</a>
                            <div></div>
                            <a href="#">PRINCESS CAKES</a>
                            <div></div>
                            <a href="#">FATHERS DAY CAKES</a>
                            <div></div>
                            <a href="#">SUPERHERO CAKES</a>
                            <div></div>
                            <a href="#">PRIDE DAY CAKES</a>
                            <div></div>
                            <a href="#">SPORTING CAKES</a>
                            <div></div>
                            <a href="#">HALLOWEEN CAKES</a>
                            <div></div>
                            <a href="#">TECHNOLOGY CAKES</a>
                            <div></div>
                            <div></div>
                            <div></div>
                            <a href="#">ROMANTIC CAKES</a>
                            <div></div>
                            <div></div>
                            <div></div>
                            <a href="#">TWO~TIER CAKES</a>
                            <div></div>
                            <div></div>
                            <div></div>
                            <a href="#">RUDE BIRTHDAY CAKES</a>
                        </div>
                      </div>
                    </div>

                    <div class="dropdown">
                      <button class="dropbtn">GIFT CAKES
                          <i class="fa fa-caret-down"></i>
                        </button>
                        <div class="dropdown-content">
                          <a href="#">Link 1</a>
                          <a href="#">Link 2</a>
                          <a href="#">Link 3</a>
                        </div>
                      </div>
                      <a class="home" href="#home">PHOTOCAKES</a>
                      <div class="dropdown">
                        <button class="dropbtn">CUPCAKES
                        <i class="fa fa-caret-down"></i>
                      </button>
                      <div class="dropdown-content">
                        <a href="#">Link 1</a>
                        <a href="#">Link 2</a>
                        <a href="#">Link 3</a>
                      </div>
                    </div>
                    <a class="home" href="#home">CAKES IN-A-TIN</a>
                    <div class="dropdown">
                      <button class="dropbtn">CORPORATE CAKES
                        <i class="fa fa-caret-down"></i>
                      </button>
                      <div class="dropdown-content">
                        <a href="#">Link 1</a>
                        <a href="#">Link 2</a>
                        <a href="#">Link 3</a>
                      </div>
                    </div>
                </nav>

            </div>
         </div>

        </header>

  <div class="wholebodycontainer">
<h1>YORKSHIRES FAVOURITE CAKE STORE</h1>

    <!-- image slider -->
    <div id="container-body">
        <div class="container">

          <div class="swiper">

            <div class="swiper-wrapper">

              <div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
              <div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
              <div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
              <div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>

            </div>

            <div class="swiper-pagination"></div>

            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>

          </div>
          </div>

          <script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
          <script>
          const swiper = new Swiper('.swiper', {
            autoplay:{delay: 5000,
            disableOnInteraction: false,},

            loop: true,

            pagination: {
              el: '.swiper-pagination',
              clickable: true,
            },

            navigation: {
              nextEl: '.swiper-button-next',
              prevEl: '.swiper-button-prev',
            },

          });
          </script>
    </div>
    <!-- image end -->
            </div>
  </div>

</body>
</html>
</code>```

^^^HTML^^^

I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code

Body:
im having trouble with media query's and responsive designs

I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&display=swap');

*{  margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family:'DM Sans', sans-serif;
    ;
}

.header-top{
    width: 100%;
    height: 65px;
    background:#A4E0EB;
    padding: 0 50px;
    display: flex;
    justify-content: right;
  }

.header-top .header-top-container
{display: flex; align-items: center;
 }

.header-top .header-top-container .header-top-quickSearch input[type="text"]
{border:1px solid#A4E0EB;
padding: 5px 10px;
outline: none;
border-radius: 4px;}

.header-top .header-top-container .header-top-quickSearch input[type="text"]:focus
{width: 250px}

.header-top .header-top-container ul{display: flex;
margin-right: 5rem;}

.header-top .header-top-container ul li{margin:0 12px;
font-size: 14px;
}

.header-top ul li a{color: #fff;}
.header-top ul li a:hover{color:#FFB5C3;}

/* header container */
.header-container { display: flex;
background-color:#f6f8f5;
font-family:'DM Sans', sans-serif;}

.header-container1{display: flex;
position: relative;}

img.header-logo{right: 60em; bottom:-5em;
  position: absolute;}

  /* header container end */

  /* Links inside the navbar */
  .header-container a {
    float:left;
    font-size: 14px;
    color: #6F7378;
    padding: 14px 16px;
    text-decoration: none;
    z-index: 5;}

  /* The dropdown container */
  .dropdown {
    float: left;
    overflow: hidden;
    z-index: 5;}

  /* Dropdown button */
  .dropdown .dropbtn {
    font-size: 14px;
    border: none;
    outline: none;
    color: #6F7378;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    z-index: 5;}

    .dropdown-content-grid{display: grid;
      grid-template-columns: repeat(4, max-content);}

      .blank{text-decoration: none;
          cursor:default;
          pointer-events: none;
      }

/* a tag & buttons underline */
*,
*:before
*:after {padding: 0;
margin: 0;
box-sizing: border-box;}

button{position: relative;
text-decoration: none;
font-family:'DM Sans', sans-serif;
color: #6F7378;
font-size: 1px;
letter-spacing: 0.5px;
padding:0 10px;}

button:after{content: "";
position: absolute;
background-color: #FFB5C3;
height: 3px;
width: 0%;
left: 0;
bottom: -0.4px;}

button:hover:after{width: 100%;}

.home{position: relative;
    text-decoration: none;
    font-family:'DM Sans', sans-serif;
    color: #6F7378;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding:0 10px;}

.home:after{content: "";
    position: absolute;
    background-color: #FFB5C3;
    height: 3px;
    width: 0%;
    left: 0;
    bottom: -0.4px;}

.home:hover:after{width: 100%;}

.header-container > .home:focus, .home:hover {color: #FFB5C3;}
.dropdown > button:focus, button:hover {color: #FFB5C3;}

/* a tag & buttons underline end */

  /* Add a red background color to navbar links on hover */
  /* .navbar a.home:hover,.dropdown:hover .dropbtn {
    background-color: #FFB5C3;
  } */

  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    z-index: 5;

  }
  .dropdown button:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;}

  /* Links inside the dropdown */
  .dropdown-content a {
    float: none;
    color: #6F7378;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    z-index: 5;

  }

  .navPages a:hover{  color: #FFB5C3;}
  .navPages button:hover{color: #FFB5C3;}

  /* Add a grey background color to dropdown links on hover */
  /* .dropdown-content a:hover {
    background-color:#FFB5C3;
  } */

  /* Show the dropdown menu on hover */
  .dropdown .dropdown-content {
    display: none;
    z-index: 5;

  }

.navPages{
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;}

.header-container{
display: flex;
justify-content: center;
align-items: center;
}

/* .toggle-button{position: absolute;
top: 0.75rem;
right: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 20px;}

.toggle-button .bar{height: 3px;
width: 100%;
background-color: #FFB5C3;
border-radius: 10px;} */

.wholebodycontainer{margin-top: 3rem;}

h1{display: flex;
justify-content: center;
align-items: center;
margin-bottom: 3rem;
font-size:35px;
letter-spacing: 0.75rem;
color: #506671;}

  /* Image Slider */

  *{Margin:0;
    padding: 0;
    box-sizing: border-box;}

    .swiper{width: 65%;
    height: fit-content;
  border-radius: 5px;}

    .swiper-slide img {width: 100%;}

    .swiper .swiper-button-prev, .swiper .swiper-button-next {color: #FFB5C3;}

    .swiper .swiper-pagination-bullet-active{background: #FFB5C3;}

     /* Image Slider End */

@media screen and (max-width:1340px) {}

^^^CSS^^^

<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cake & a'Cuppa Website</title>
    <link rel="stylesheet" href="Cake-and-Cuppa-Website-Up-To-Date-Style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>

                      <input type="text" placeholder="Search the store">

CONTACT US

DELIVERY SERVICE

TEL:01904 690283

                   HOME

                          <button class="dropbtn">CELEBRATION CAKES

                          </button>

                            BIRTHDAY CAKES
                            OCCASION CAKES
                            SEASONAL CAKES
                            TODDLER CAKES
                            CAKES FOR HIM
                            ANNIVERSARY CAKES
                            THANKSGIVING CAKES
                            NUMBER CAKES
                            CAKES FOR HER
                            WEDDING CAKES
                            CHRISTMAS
                            PRINCESS CaKES
                            TODDLER CAKES
                            CHRISTENING CAKES
                            BURNS NIGHT GIFTS
                            ROMANTIC CAKES
                            GIRLS BIRTHDAY CAKES
                            NEW BABY CAKES
                            VALENTINE'S DAY

                            BOYS BIRTHDAY CAKES
                            RETIREMENT CAKES
                            ST DAVID'S DAY CAKES

                            TEEN BIRTHDAY CAKES
                            GRADUATION CAKES
                            ST PATRICK'S DAY CAKES

                            NUMBER CAKES
                            RELIGIOUS CAKES
                            MOTHER'S DAY

                            CAKES WITH TOYS
                            GET WELL SOON CAKES
                            EASTER

                            ANIMAL CAKES
                            GOOD LUCK CAKES
                            ST GEORGE'S DAY CAKES

                            HANDBAG & SHOE CAKES
                            WELL DONE CAKES
                            EID CAKES

                            PRINCESS CAKES

                            FATHERS DAY CAKES

                            SUPERHERO CAKES

                            PRIDE DAY CAKES

                            SPORTING CAKES

                            HALLOWEEN CAKES

                            TECHNOLOGY CAKES

                            ROMANTIC CAKES

                            TWO~TIER CAKES

                            RUDE BIRTHDAY CAKES

                      <button class="dropbtn">GIFT CAKES

                        </button>

                          Link 1
                          Link 2
                          Link 3

                      PHOTOCAKES

                        <button class="dropbtn">CUPCAKES

                      </button>

                        Link 1
                        Link 2
                        Link 3

                    CAKES IN-A-TIN

                      <button class="dropbtn">CORPORATE CAKES

                      </button>

                        Link 1
                        Link 2
                        Link 3

YORKSHIRES FAVOURITE CAKE STORE

^^^HTML^^^

I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code


问:
How can google sheets notify user when only a special cells are changed?
There is a ROW WITH DATES. Users fill in the dates and information. At the begining of the next month a report on the data is made. It is necesary to know wether thr ROW WITH DATES was changed. Neeв to know the exact cells.

Tried nothing. I expect an e-mail notification with changes or a separate table with the infirmation.


问:
How to hide files on USB [Python]
The goal is to prevent unauthorized copying from USB Drive. I need to block visibility of selected files on other devices (upon USB insertion) not using attribute "Hidden". Is there a way to do that theoretically?</p>

Title: How to hide files on USB [Python]


问:
Need help for loading Autodesk Forge reference in AutoCAD run time?
When i use Autodesk.Forge dll as reference in AutoCAD customization, I am able to use the reference in visual studio debugging.

If i use the customized dll into AutoCAD (standalone without Visual Studio), I am getting the following error,

System.IO.FileNotFoundException: Could not load file or assembly 'Autodesk.Forge, Version=1.9.7.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Could some one help me on this?

I tried to change the app config but no use. Need someone's help.


问:
.htaccess / mod_rewrite - adding a temporary mandatory string to the URL doesn't take effect
I want to make my website temporarily accessible only at example.com/unfinished-version.
All URLs like /style/main.css or /public/style/main.css would point to /soon.html, then all URLs like /unfinished-version/style/main.css would point to URLs like /public/style/main.css.

The rule I wrote doesn't work, because /public/style/main.css or  /public/some-page still works.

```<code>RewriteRule ^(?!unfinished-version).*$ soon.html [L,NC]
</code>```

URLs like example.com/gibberish show soon.html, so it does partly work.

I'll show you full .htaccess, although I find it unnecessary. (The rules shouldn't interfere with this, plus the L flag should avoid processing of any further rules in the first place.)

.htaccess in the root:

```<code><IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /

    RewriteRule ^(?!unfinished-version).*$ soon.html [L,NC]

    RewriteRule ^unfinished-version(.*)$ public/$1 [L,NC]

</IfModule>
</code>```

.htaccess in public/:

```<code><IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]

</IfModule>
</code>```

P.S.: Not even RewriteRule ^(.*)$ soon.html [L,NC] works.

Body:
I want to make my website temporarily accessible only at example.com/unfinished-version.
All URLs like /style/main.css or /public/style/main.css would point to /soon.html, then all URLs like /unfinished-version/style/main.css would point to URLs like /public/style/main.css.

The rule I wrote doesn't work, because /public/style/main.css or  /public/some-page still works.

RewriteRule ^(?!unfinished-version).*$ soon.html [L,NC]

URLs like example.com/gibberish show soon.html, so it does partly work.

I'll show you full .htaccess, although I find it unnecessary. (The rules shouldn't interfere with this, plus the L flag should avoid processing of any further rules in the first place.)

.htaccess in the root:

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /

    RewriteRule ^(?!unfinished-version).*$ soon.html [L,NC]

    RewriteRule ^unfinished-version(.*)$ public/$1 [L,NC]

</IfModule>

.htaccess in public/:

<IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]

</IfModule>

P.S.: Not even RewriteRule ^(.*)$ soon.html [L,NC] works.


问:
HERE Maps API for JavaScript v3.1: adding event listener "tap" to domMarker doesn't work on android devices
I'm using latest version for HERE Maps API for JavaScript (v3.1) and when trying to add an event listener "tap" to domMarker doesn't work on android devices. With 'click' event it works on IOS devices but also doesn't work for android devices. Can you help me with that please?
Thank you!

I was expecting that with the 'tap' it would work for both android and IOS devices but it doesn't trigger the event.

Here is the code:

```<code>    addMarkersModal (map,points:Array<Points>,pos:PointsCoordinates) {
        const group = new H.map.Group();
        const objects = [];

        map.addObject(group);

        // Add markers around the target position.
        for (let i = 0; i < points.length; i++) {
          objects.push(this.addDOMMarker(points[i].address.coordinates.latitude, points[i].address.coordinates.longitude, points[i]._id, 'typePoint'));
        }

        group.addObjects(objects);
        map.addObject(group);

        this.setViewBoundsFitAllMarkers(map, objects, pos, this.boundingMarkersMargin);
        return map;
}

addDOMMarker(lat: number, lng: number, id: string, type: string) {
        const wrapperElement = document.createElement('div'),
        markerElement = document.createElement('div');
        wrapperElement.className = 'marker-wrapper';
        markerElement.className = 'marker ' + type;
        markerElement.id = 'marker-' + id;

        wrapperElement.appendChild(markerElement);

        const domIcon = new H.map.DomIcon(wrapperElement, {
          onAttach: (clonedElement: any) => {
            clonedElement.addEventListener('tap', (evt) => {
              this.selectMarker(id, false);
              evt.stopPropagation();
            });
          }
        });

        return new H.map.DomMarker({lat: lat, lng: lng}, {icon: domIcon});
 }
</code>```

Body:
I'm using latest version for HERE Maps API for JavaScript (v3.1) and when trying to add an event listener "tap" to domMarker doesn't work on android devices. With 'click' event it works on IOS devices but also doesn't work for android devices. Can you help me with that please?
Thank you!

I was expecting that with the 'tap' it would work for both android and IOS devices but it doesn't trigger the event.

Here is the code:

    addMarkersModal (map,points:Array<Points>,pos:PointsCoordinates) {
        const group = new H.map.Group();
        const objects = [];

        map.addObject(group);

        // Add markers around the target position.
        for (let i = 0; i < points.length; i++) {
          objects.push(this.addDOMMarker(points[i].address.coordinates.latitude, points[i].address.coordinates.longitude, points[i]._id, 'typePoint'));
        }

        group.addObjects(objects);
        map.addObject(group);

        this.setViewBoundsFitAllMarkers(map, objects, pos, this.boundingMarkersMargin);
        return map;
}

addDOMMarker(lat: number, lng: number, id: string, type: string) {
        const wrapperElement = document.createElement('div'),
        markerElement = document.createElement('div');
        wrapperElement.className = 'marker-wrapper';
        markerElement.className = 'marker ' + type;
        markerElement.id = 'marker-' + id;

        wrapperElement.appendChild(markerElement);

        const domIcon = new H.map.DomIcon(wrapperElement, {
          onAttach: (clonedElement: any) => {
            clonedElement.addEventListener('tap', (evt) => {
              this.selectMarker(id, false);
              evt.stopPropagation();
            });
          }
        });

        return new H.map.DomMarker({lat: lat, lng: lng}, {icon: domIcon});
 }


问:
How do I change the SubSystem to a window in SDL2 without the symbols failing to load?
I've been using SDL2/c++ for a while and now that some of my projects are finished I started trying to find a way to run them without the console showing up. I was told to go to Project > Properties > Linker > System > SubSystem (change to /SUBSYSTEM:WINDOWS) and that's exactly what I did. The problem is that now I get errors related to the symbols.

This is the simple code I've been trying to run without the console showing up.

```<code>#include <iostream>
#include "SDL.h"

int main(int argc, char* argv[])
{
    if (SDL_Init(SDL_INIT_EVERYTHING) == 0)
        std::cout << "I";
    return 0;
}
</code>```

And these are the errors I keep getting:

'finstream.exe' (Win32): Loaded 'C:\Users\Sorin\Desktop\finstream\x64\Debug\finstream.exe'. Symbols loaded.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Users\Sorin\Desktop\finstream\finstream\SDL2.dll'. Module was built without symbols.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbase.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\user32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\dinput8.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\hid.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\XInput1_4.dll'. Symbol loading disabled by Include/Exclude setting.
The thread 0x2ae0 has exited with code 0 (0x0).
The thread 0x60ac has exited with code 0 (0x0).
The thread 0x6b6c has exited with code 0 (0x0).
The thread 0x4dbc has exited with code 0 (0x0).
The thread 0x4668 has exited with code 0 (0x0).
The thread 0xaa4 has exited with code 0 (0x0).
The thread 0x5ddc has exited with code 0 (0x0).
The program '[32192] finstream.exe' has exited with code 0 (0x0).
```

Keep in mind that this works just fine when the SubSystem is set to console.

EDIT: I'm using visual studio.

Body:
I've been using SDL2/c++ for a while and now that some of my projects are finished I started trying to find a way to run them without the console showing up. I was told to go to Project > Properties > Linker > System > SubSystem (change to /SUBSYSTEM:WINDOWS) and that's exactly what I did. The problem is that now I get errors related to the symbols.

This is the simple code I've been trying to run without the console showing up.

#include <iostream>
#include "SDL.h"

int main(int argc, char* argv[])
{
    if (SDL_Init(SDL_INIT_EVERYTHING) == 0)
        std::cout << "I";
    return 0;
}

And these are the errors I keep getting:

'finstream.exe' (Win32): Loaded 'C:\Users\Sorin\Desktop\finstream\x64\Debug\finstream.exe'. Symbols loaded.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Users\Sorin\Desktop\finstream\finstream\SDL2.dll'. Module was built without symbols.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbase.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\user32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\dinput8.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\hid.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbol loading disabled by Include/Exclude setting.
'finstream.exe' (Win32): Loaded 'C:\Windows\System32\XInput1_4.dll'. Symbol loading disabled by Include/Exclude setting.
The thread 0x2ae0 has exited with code 0 (0x0).
The thread 0x60ac has exited with code 0 (0x0).
The thread 0x6b6c has exited with code 0 (0x0).
The thread 0x4dbc has exited with code 0 (0x0).
The thread 0x4668 has exited with code 0 (0x0).
The thread 0xaa4 has exited with code 0 (0x0).
The thread 0x5ddc has exited with code 0 (0x0).
The program '[32192] finstream.exe' has exited with code 0 (0x0).

Keep in mind that this works just fine when the SubSystem is set to console.

EDIT: I'm using visual studio.