Running docker install on Ubuntu 14.04 container a second time fails with HTTP:403 error

Output of docker version:
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:47:50 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:47:50 2016
 OS/Arch:      linux/amd64
vagrant@mesos-dev:~/mesosphere/docker-con

Output of docker info:
Containers: 3
 Running: 0
 Paused: 0
 Stopped: 3
Images: 9
Server Version: 1.11.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 17
 Dirperm1 Supported: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge
Kernel Version: 3.13.0-68-generic
Operating System: Ubuntu 14.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.798 GiB
Name: mesos-dev
ID: XRGB:MQ7T:ID2E:BHHG:BRDK:XXP5:HR64:C4AA:FH7V:JNR6:WITJ:3BE3
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Username: mesospheredocker
Registry: https://index.docker.io/v1/
WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:

Build a docker image using the following Dockerfile on Ubuntu 14.04 LTS

FROM ubuntu:14.04
MAINTAINER Mesosphere<EMAIL_ADDRESS>

RUN apt-get update && \
  apt-get -y install apt-transport-https ca-certificates && \
  apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
  echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list && \
  apt-get update && \
  apt-get -y install docker-engine

The image will build fine, with docker installed within the Ubuntu 14.04 container.
2.
Run the same build again, with a different image name and it will fail with the following error:
W: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-trusty-testing/main/binary-amd64/Packages  HttpError403

E: Some index files failed to download. They have been ignored, or old ones used instead.

Once the first build is done, you cannot access the docker ubuntu repo to install docker clients in any other docker image.

Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Vagrant box:
ubuntu/trusty64

OS:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

Kernel:
Linux mesos-dev 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Ran into the same issue when I try to build a Ubuntu 14.04 image with docker on an AWS Ubuntu 14.04 instance. In this case the docker build fails with the HTTP 403 error on the first attempt itself. The docker installation goes through fine on the host.
Just to add if I manually launch a Ubuntu 14.04 container and follow the install instruction for Ubuntu 14.04 https://docs.docker.com/engine/installation/linux/ubuntulinux/  it works perfectly.
So not sure why the same instructions don't work with docker build. The only thing I can imagine is that there is an issue the gpg keys ?

I can't replicate this. It looks to me like there might be a bad mirror in the pool? I don't think it is a docker issue.

Error looks to be because this is an invalid URL;
https://apt.dockerproject.org/repo/dists/ubuntu-trusty-testing/main/binary-amd64/Packages
(ubuntu-trusty-testing, instead of ubuntu-trusty)

Oh boy,
This would be my bad. Didn't realize our make files were mangling the repo names to trusty-testing incorrectly. Sorry for the noise. Going to close this issue.

no worries, glad it's resolved (I was worried some of our scripts did some mangling, haha)


Unable to run the eureka-examples project as guided in https://github.com/Netflix/eureka/wiki/Running-the-Demo-Application

I just cloned the repo in my local machine and was trying to follow the instructions provided at https://github.com/Netflix/eureka/wiki/Running-the-Demo-Application. However,

when i have launched the server using the war and tomcat it shows the replica as unavailable.

when i run the example service application it throws, the following error:-

5:40:10 PM: Executing task 'ExampleEurekaService.main()'...
Inferred project: eureka, version: 1.9.13-SNAPSHOT
The testJar task is deprecated.  Please place common test harness code in its own project and publish separately.
The testJar task is deprecated.  Please place common test harness code in its own project and publish separately.
The testJar task is deprecated.  Please place common test harness code in its own project and publish separately.
Publication nebula not found in project :.
[buildinfo] Not using buildInfo properties file for this build.
Publication named 'nebula' does not exist for project ':' in task ':artifactoryPublish'.
:eureka-client:compileJava UP-TO-DATE
:eureka-client:processResources UP-TO-DATE
:eureka-client:classes UP-TO-DATE
:eureka-client:writeManifestProperties UP-TO-DATE
:eureka-client:jar
Note: /home/abdur/IdeaProjects/eureka/eureka-examples/src/main/java/com/netflix/eureka/ExampleEurekaGovernatedService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:eureka-examples:compileJava
:eureka-examples:processResources UP-TO-DATE
:eureka-examples:classes
[main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
[main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[main] INFO com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@621be5d1
[main] WARN com.netflix.discovery.internal.util.Archaius1Utils - Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
[main] INFO com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider - Setting initial instance status as: STARTING
[main] WARN com.netflix.discovery.internal.util.Archaius1Utils - Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
[main] INFO com.netflix.discovery.DiscoveryClient - Initializing Eureka in region us-east-1
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml
[main] INFO com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration
[main] ERROR com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver - Cannot resolve to any endpoints from provided configuration: {defaultZone=[]}
[main] ERROR com.netflix.discovery.shared.transport.EurekaHttpClients - Initial resolution of Eureka server endpoints failed. Check ConfigClusterResolver logs for more info
[main] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false
[main] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null
[main] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false
[main] INFO com.netflix.discovery.DiscoveryClient - Application is null : false
[main] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true
[main] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true
[main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server
[main] ERROR com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/rtx2080ti - was unable to refresh its cache! status = There is no known eureka server; cluster server list is empty
com.netflix.discovery.shared.transport.TransportException: There is no known eureka server; cluster server list is empty
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:108)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1069)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:983)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:430)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:276)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:272)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:268)
at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:260)
at com.netflix.eureka.ExampleEurekaService.initializeEurekaClient(ExampleEurekaService.java:52)
at com.netflix.eureka.ExampleEurekaService.main(ExampleEurekaService.java:63)
[main] WARN com.netflix.discovery.DiscoveryClient - Using default backup registry implementation which does not do anything.
[main] INFO com.netflix.discovery.DiscoveryClient - Starting heartbeat executor: renew interval is: 30
[main] INFO com.netflix.discovery.InstanceInfoReplicator - InstanceInfoReplicator onDemand update allowed rate per min is 4
[main] INFO com.netflix.discovery.DiscoveryClient - Discovery Client initialized at timestamp<PHONE_NUMBER>224 with initial instances count: 0
:eureka-examples:ExampleEurekaService.main()
Registering service to eureka with STARTING status
Simulating service initialization by sleeping for 2 seconds...
Done sleeping, now changing status to UP
[main] INFO com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1567858218229, current=UP, previous=STARTING]
Waiting ... verifying service registration with eureka ...
[DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/rtx2080ti: registering service...
[DiscoveryClient-InstanceInfoReplicator-0] WARN com.netflix.discovery.DiscoveryClient - DiscoveryClient_UNKNOWN/rtx2080ti - registration failed There is no known eureka server; cluster server list is empty
com.netflix.discovery.shared.transport.TransportException: There is no known eureka server; cluster server list is empty
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:108)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$1.execute(EurekaHttpClientDecorator.java:59)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.register(EurekaHttpClientDecorator.java:56)
at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:847)
at com.netflix.discovery.InstanceInfoReplicator.run(InstanceInfoReplicator.java:121)
at com.netflix.discovery.InstanceInfoReplicator$1.run(InstanceInfoReplicator.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

This is the snip of eureka dashboard.

Seems like it can't reach the Eureka server, make sure it's up and taking traffic.


[Feature request or question] jQuery & AngularJS suggestions in JS.

Can VSCode suggest a jQuery & AngularJS Code? like as:
$(document).re to -> $(document).ready(|) ... | = cursor move.
or
$sc to -> $scope.| ... | = cursor move.
Or if yes, how (how enable it)?

@Mlocik97-issues
You can add this by installing the type definitions for each of these libraries and then referencing them in a jsconfig.json. You can see this StackOverflow: https://stackoverflow.com/questions/38930984/how-to-set-intellisense-for-angular-js-and-javascript-in-visual-studio-code-with for details on this.

Yes, if you are using globals like $ for jquery, please try installing the typings for that library.
Automatic type acquisition should kick in if you use require or import statements


Issue7 - Accordion

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #7
Test URLs:

Before: https://main--octoral--aemsites.hlx.live/drafts/Meet/leftdiv
After: https://issue7--octoral--aemsites.hlx.live/drafts/Meet/leftdiv

Taken care by https://github.com/aemsites/octoral/pull/19


Missing #include , missing move constructor, missing move-assignment operator

It seems that there are a few problems with the current code:

The code needs #include <iterator> to compile properly.
ccapi::Session lacks a move constructor.
ccapi::Session lacks a move-assignment operator

I am using g++
# g++ --version
g++ (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2)
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

An example program which shows missing #include <iterator> and missing move constructor:
#include <ccapi_cpp/ccapi_session.h>

int main (void)
{
        ccapi::Session session {};
        ccapi::Session session2 {std::move (session)};
        return 0;
}

Trying to compile it gives:
# g++ -std=c++20 ./session.cpp
In file included from /usr/local/include/ccapi_cpp/ccapi_logger.h:76,
                 from /usr/local/include/ccapi_cpp/ccapi_event.h:5,
                 from /usr/local/include/ccapi_cpp/ccapi_session.h:241,
                 from ./session.cpp:1:
/usr/local/include/ccapi_cpp/ccapi_util_private.h: In static member function ‘static std::string ccapi::UtilString::join(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&)’:
/usr/local/include/ccapi_cpp/ccapi_util_private.h:174:60: error: ‘ostream_iterator’ is not a member of ‘std’
  174 |         std::copy(strings.begin(), strings.end() - 1, std::ostream_iterator<std::string>(joined, delimiter.c_str()));
      |                                                            ^~~~~~~~~~~~~~~~
/usr/local/include/ccapi_cpp/ccapi_util_private.h:30:1: note: ‘std::ostream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
   29 | #include "openssl/evp.h"
  +++ |+#include <iterator>
   30 | namespace ccapi {
/usr/local/include/ccapi_cpp/ccapi_util_private.h:174:88: error: expected primary-expression before ‘>’ token
  174 |         std::copy(strings.begin(), strings.end() - 1, std::ostream_iterator<std::string>(joined, delimiter.c_str()));
      |                                                                                ^
./session.cpp: In function ‘int main()’:
./session.cpp:6:53: error: use of deleted function ‘ccapi::Session::Session(const ccapi::Session&)’
    6 |         ccapi::Session session2 {std::move (session)};
      |                                                     ^
/usr/local/include/ccapi_cpp/ccapi_session.h:259:3: note: declared here
  259 |   Session(const Session&) = delete;
      |   ^~~~~~~

An example program which shows missing #include <iterator> and missing move-assignment operator:
#include <ccapi_cpp/ccapi_session.h>

int main (void)
{
        ccapi::Session session {};
        ccapi::Session session2 {};
        session2 = std::move (session);
        return 0;
}

Trying to compile it gives:
# g++ -std=c++20 ./session.cpp
In file included from /usr/local/include/ccapi_cpp/ccapi_logger.h:76,
                 from /usr/local/include/ccapi_cpp/ccapi_event.h:5,
                 from /usr/local/include/ccapi_cpp/ccapi_session.h:241,
                 from ./session.cpp:1:
/usr/local/include/ccapi_cpp/ccapi_util_private.h: In static member function ‘static std::string ccapi::UtilString::join(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&)’:
/usr/local/include/ccapi_cpp/ccapi_util_private.h:174:60: error: ‘ostream_iterator’ is not a member of ‘std’
  174 |         std::copy(strings.begin(), strings.end() - 1, std::ostream_iterator<std::string>(joined, delimiter.c_str()));
      |                                                            ^~~~~~~~~~~~~~~~
/usr/local/include/ccapi_cpp/ccapi_util_private.h:30:1: note: ‘std::ostream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
   29 | #include "openssl/evp.h"
  +++ |+#include <iterator>
   30 | namespace ccapi {
/usr/local/include/ccapi_cpp/ccapi_util_private.h:174:88: error: expected primary-expression before ‘>’ token
  174 |         std::copy(strings.begin(), strings.end() - 1, std::ostream_iterator<std::string>(joined, delimiter.c_str()));
      |                                                                                ^
./session.cpp: In function ‘int main()’:
./session.cpp:7:38: error: use of deleted function ‘ccapi::Session& ccapi::Session::operator=(const ccapi::Session&)’
    7 |         session2 = std::move (session);
      |                                      ^
/usr/local/include/ccapi_cpp/ccapi_session.h:260:12: note: declared here
  260 |   Session& operator=(const Session&) = delete;
      |            ^~~~~~~~

We prefer to create a new session if needed rather than moving an existing one.


datatracker format conversion seems broken

Describe the issue
The page
https://datatracker.ietf.org/doc/draft-nurpmeso-dkim-hash-adaptivity/
does not show the draft, but only says

Error; cannot read 'draft-nurpmeso-dkim-hash-adaptivity-00.txt'
.
I can download the XML file though, and it is the uploaded version.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

btw my other submission just works fine: https://datatracker.ietf.org/doc/draft-nurpmeso-smtp-tls-srv/
They are both small, maybe an expert can make some sense out of that.

Please see comment here.
I'm pretty sure this is the same issue, so I'm closing it to concentrate the attention. Thank you for reporting.


Copier update with switch to ruff and update bot

Contains the switch to ruff and the new bot to run nightly copier updates. The idea is to use ESSdiffraction to test the bot.

I'll merge this and try out the action.


Fix window state not saving on close

Description of the Change
Fix #13909. It seems there have been fixes for saving window state previously however these only save on blur, and beforeUnload. None of these are triggered if you immediately close the window.
Alternate Designs
None
Why Should This Be In Core?
It's a bug fix.
Benefits
The bug is fixed.
Possible Drawbacks
None
Applicable Issues
#13909

I would love some help on why the test case I added seems to cause a timeout when building.

Can someone please help on how to start contributing to open source, I am new.

@richardsimko can you uncomment the test?  In some cases, it helps to see the failing output.
(Also, you have a typo in the test: winodw -> window)

@50Wliu Sure thing! That typo might be the explanation, I'll check ;)

@50Wliu Any chance for a new review? :)

Just a heads up that @50Wliu is out till next week /cc https://github.com/atom/language-less/pull/82#issuecomment-334293564.

Oh, thanks for the heads up! It wasn't specifically directed at him really I'm just looking for some help getting the test to run ;)

Once we have green builds we're 👍 on this change.

I'm not sure why the test would be timing out the entire build rather than just the test itself.  The lack of any output is also annoying.  When I have time I may try to investigate locally.

I've created a PR addressing the merge conflicts but it seems that something in the test are still failing.
Also wanted to note while testing if you run window:close this will save the windows dimension but on mac if you close the window with the red x or run cmd+q this doesn't save the windows dimension.

That's annoying, I figured it would trigger the same event. Do you know if there's a different event to listen to?
The failing tests are weird as mentioned above, for some reason it times out waiting for something however I couldn't figure out a way to show what it's waiting for.


How to change batch size

I success compile and execute a pytorch model on vck190 board. The default {"target": "DPUCVDX8G_ISA3_C32B6"} arch.json is passed to vai_c_xir. The output xmodel is set to 6 batch size but I only need single batch. So I switch to {"target": "DPUCVDX8G_ISA3_C32B1"} arch.json and it compiles. Then I got fingerprint mismatch error on execute. It's seems I have to set DPU to C32B1 first.
from https://docs.xilinx.com/r/en-US/pg389-dpucvdx8g/Configuration-Options, the BATCH_N can be used to change DPU arch, but I don't know what to do exactly.

Hi @tkkcc
You can simply change BATCH_SingleCU  in file vitis_prj/xvdpu_config.mk as your requirement
And then re-compile xmodel with the newly generated arch.json file from the project

Thanks.


[in_app_purchase] restart the app cannot listen for uncompleted purchase for v1.0.6 on iOS

it is nothing to do when i restart the app, some purchases was uncompleted, but they purchased success. i want to retry the failed order.
void main() {
  WidgetsFlutterBinding.ensureInitialized();

  InAppPurchase.instance.purchaseStream.listen((event) {
    // this is nothing to do when i restart the app, some purchases was uncompleted, but they purchased success. i want to retry the failed order.
    print(event);
  });
  runApp(MyApp());
}

in older version it is ok.
@implementation InAppPurchasePlugin

.....

- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
  self = [self initWithReceiptManager:[FIAPReceiptManager new]];
  _registrar = registrar;
  _registry = [registrar textures];
  _messenger = [registrar messenger];

  __weak typeof(self) weakSelf = self;
  _paymentQueueHandler = [[FIAPaymentQueueHandler alloc] initWithQueue:[SKPaymentQueue defaultQueue]
      transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
        [weakSelf handleTransactionsUpdated:transactions];
      }
      transactionRemoved:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
        [weakSelf handleTransactionsRemoved:transactions];
      }
      restoreTransactionFailed:^(NSError *_Nonnull error) {
        [weakSelf handleTransactionRestoreFailed:error];
      }
      restoreCompletedTransactionsFinished:^{
        [weakSelf restoreCompletedTransactionsFinished];
      }
      shouldAddStorePayment:^BOOL(SKPayment *payment, SKProduct *product) {
        return [weakSelf shouldAddStorePayment:payment product:product];
      }
      updatedDownloads:^void(NSArray<SKDownload *> *_Nonnull downloads) {
        [weakSelf updatedDownloads:downloads];
      }];
  [_paymentQueueHandler startObservingPaymentQueue];  // ********------------ old version is start here ----------------********
  _callbackChannel =
      [FlutterMethodChannel<EMAIL_ADDRESS>                                  binaryMessenger:[registrar messenger]];
  return self;
}

- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
  if ([@"-[SKPaymentQueue canMakePayments:]" isEqualToString:call.method]) {
    [self canMakePayments:result];
  } else if ([@"-[SKPaymentQueue transactions]" isEqualToString:call.method]) {
    [self getPendingTransactions:result];
  } else if ([@"-[InAppPurchasePlugin startProductRequest:result:]" isEqualToString:call.method]) {
    [self handleProductRequestMethodCall:call result:result];
  } else if ([@"-[InAppPurchasePlugin addPayment:result:]" isEqualToString:call.method]) {
    [self addPayment:call result:result];
  } else if ([@"-[InAppPurchasePlugin finishTransaction:result:]" isEqualToString:call.method]) {
    [self finishTransaction:call result:result];
  } else if ([@"-[InAppPurchasePlugin restoreTransactions:result:]" isEqualToString:call.method]) {
    [self restoreTransactions:call result:result];
  } else if ([@"-[InAppPurchasePlugin presentCodeRedemptionSheet:result:]"
                 isEqualToString:call.method]) {
    [self presentCodeRedemptionSheet:call result:result];
  } else if ([@"-[InAppPurchasePlugin retrieveReceiptData:result:]" isEqualToString:call.method]) {
    [self retrieveReceiptData:call result:result];
  } else if ([@"-[InAppPurchasePlugin refreshReceipt:result:]" isEqualToString:call.method]) {
    [self refreshReceipt:call result:result];
  } else {
    result(FlutterMethodNotImplemented);
  }
}

new version cannot work.
@implementation InAppPurchasePlugin

.....

- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
  self = [self initWithReceiptManager:[FIAPReceiptManager new]];
  _registrar = registrar;
  _registry = [registrar textures];
  _messenger = [registrar messenger];

  __weak typeof(self) weakSelf = self;
  _paymentQueueHandler = [[FIAPaymentQueueHandler alloc] initWithQueue:[SKPaymentQueue defaultQueue]
      transactionsUpdated:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
        [weakSelf handleTransactionsUpdated:transactions];
      }
      transactionRemoved:^(NSArray<SKPaymentTransaction *> *_Nonnull transactions) {
        [weakSelf handleTransactionsRemoved:transactions];
      }
      restoreTransactionFailed:^(NSError *_Nonnull error) {
        [weakSelf handleTransactionRestoreFailed:error];
      }
      restoreCompletedTransactionsFinished:^{
        [weakSelf restoreCompletedTransactionsFinished];
      }
      shouldAddStorePayment:^BOOL(SKPayment *payment, SKProduct *product) {
        return [weakSelf shouldAddStorePayment:payment product:product];
      }
      updatedDownloads:^void(NSArray<SKDownload *> *_Nonnull downloads) {
        [weakSelf updatedDownloads:downloads];
      }];

  _transactionObserverCallbackChannel =
      [FlutterMethodChannel<EMAIL_ADDRESS>                                  binaryMessenger:[registrar messenger]];
  return self;
}

- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
  if ([@"-[SKPaymentQueue canMakePayments:]" isEqualToString:call.method]) {
    [self canMakePayments:result];
  } else if ([@"-[SKPaymentQueue transactions]" isEqualToString:call.method]) {
    [self getPendingTransactions:result];
  } else if ([@"-[InAppPurchasePlugin startProductRequest:result:]" isEqualToString:call.method]) {
    [self handleProductRequestMethodCall:call result:result];
  } else if ([@"-[InAppPurchasePlugin addPayment:result:]" isEqualToString:call.method]) {
    [self addPayment:call result:result];
  } else if ([@"-[InAppPurchasePlugin finishTransaction:result:]" isEqualToString:call.method]) {
    [self finishTransaction:call result:result];
  } else if ([@"-[InAppPurchasePlugin restoreTransactions:result:]" isEqualToString:call.method]) {
    [self restoreTransactions:call result:result];
  } else if ([@"-[InAppPurchasePlugin presentCodeRedemptionSheet:result:]"
                 isEqualToString:call.method]) {
    [self presentCodeRedemptionSheet:call result:result];
  } else if ([@"-[InAppPurchasePlugin retrieveReceiptData:result:]" isEqualToString:call.method]) {
    [self retrieveReceiptData:call result:result];
  } else if ([@"-[InAppPurchasePlugin refreshReceipt:result:]" isEqualToString:call.method]) {
    [self refreshReceipt:call result:result];
  } else if ([@"-[SKPaymentQueue startObservingTransactionQueue]" isEqualToString:call.method]) {
    [self startObservingPaymentQueue:result];   /// ********------------ new version is start here ----------------********
  } else if ([@"-[SKPaymentQueue stopObservingTransactionQueue]" isEqualToString:call.method]) {
    [self stopObservingPaymentQueue:result];
  } else if ([@"-[SKPaymentQueue registerDelegate]" isEqualToString:call.method]) {
    [self registerPaymentQueueDelegate:result];
  } else if ([@"-[SKPaymentQueue removeDelegate]" isEqualToString:call.method]) {
    [self removePaymentQueueDelegate:result];
  } else if ([@"-[SKPaymentQueue showPriceConsentIfNeeded]" isEqualToString:call.method]) {
    [self showPriceConsentIfNeeded:result];
  } else {
    result(FlutterMethodNotImplemented);
  }
}

- (void)startObservingPaymentQueue:(FlutterResult)result {
  [_paymentQueueHandler startObservingPaymentQueue];
  result(nil);
}

[✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.15.7 19H2 darwin-x64, locale
    zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.57.1)

Hi @cbahai

InAppPurchase.instance.purchaseStream.listen((event) {
// this is nothing to do when i restart the app, some purchases was uncompleted, but they purchased success. i want to retry the failed order.
print(event);
});

You are checking not any event here and please provide how to create this condition some purchases were uncompleted, but they purchased success.
Can you please provide a complete sample and reproducible, which version of in_app_purchase used to work
Thank you

Hi @TahaTesser
The previous version i use is in_app_purchase: ^0.5.1+1, it is work.
When I completed the payment to the Apple Store, the network was interrupted when verifying with our own server. We can only complete the payment if the server verifies successfully.

@cbahai

The previous version i use is in_app_purchase_ios-v0.1.0+1, it is work

Can you please explain it in more detail? What used to work?
Please provide a complete sample and reproducible,
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


replace "highlighted" column in the work list with "status"

This PR will fix https://github.com/antleaf/nims-mdr-development/issues/393. Spec files should be added.

I've tried this out and it seems to work but I've been having trouble writing the spec to complete this pull request

Check shows yellow here but if you go to the Codeship site itself it shows green.


Link checker failing

The link checker action is failling to run successfully. link to failed action When I click on most of the links (specifically links to Cartopy resources) flagged as broken they appear to still work. Two other links are flagged as broken both from the xarray computation-masking page. They are https://www.ncdc.noaa.gov/teleconnections/enso/indicators/sst/ and https://www.ncdc.noaa.gov/monitoring-content/teleconnections/nino-regions.gif. These two links both respond with 502 proxy errors. The action was run twice with the same results.

Thanks for pointing this out @jnmorley

Seems like this may now be resolved. I ran the link checker here.

Yes, the link-checker actions runs nightly and it hasn't been showing any failures recently (e.g. https://github.com/ProjectPythia/pythia-foundations/actions/runs/2562505060)
Usually these kind of failures are due to some temporary server glitches on the remote end (in this case ncdc.noaa.gov).
I'll close this issue now since no action is required from us.


Creation Time

generator.py should make files in order of most recently created to least, by default:
the code found in: files.py
Is approx:
for f in sorted(files, key=os.path.getctime, reverse=True):
    ...

This is not as intiuitive as it looks though

os.path.getctime gets back a timestamp for file creation as:
the seconds from the epoch
eg: these two files

10 Mar 01:52 01.mp4
10 Mar 01:56 02.mp4

Have these os.path.getctimes:

01.mp4 =<PHONE_NUMBER>.2249813
02.mp4 =<PHONE_NUMBER>.219965

If you give a key to sort, it orders by the values given to the key in increasing value, so:

times = [[0, 200], [1, 100]]
for t in sorted(times, key=lambda x: x[1]):
    print(t[0])

>>> 1, 0

and
times = [[0, 50], [1, 100]]
for t in sorted(times, key=lambda x: x[1]):
    print(t[0])

>>> 0, 1

So the sorts can be imagined as transforming each file into a tuple of:
(filename, seconds from epoch)
like:
[
   (1, 3.22), (2, 3.21)
]

sorted(..., reverse=True)
1, 2

sorted(..., reverse=False)
2, 1

Testing in:
Scrap Code/get-ctime

os.path.getctime gets back a timestamp for file creation as: the seconds from the epoch
eg: these two files

10 Mar 01:52 01.mp4
10 Mar 01:56 02.mp4

Have these os.path.getctimes:

01.mp4 =<PHONE_NUMBER>.2249813
02.mp4 =<PHONE_NUMBER>.219965

If you compare the decimal part
1709998113.2249813
>
1709998113.219965

hence, 01 was created more seconds from the epoch (ie. is older)

This logic is wrong:
Eg:
EPOCH                 ^ 1S AFTER     ^ 2S AFTER
So earlier files have a smaller os.path.getctime

Just use getmtime time?


[Concurrency] Annotate closures with their actor isolation.

Compute the actor isolation for every closure, noting whether it is
part of an actor instance (and which 'self' variable describes the
instance), global actor, or independent of any actor. This information
is required for propertly generating hop_to_executor instructions in
SIL.
Fixes rdar://71126554.

@swift-ci please smoke test

@swift-ci please test source compatibility


Switch build to Vite

This seems like it works, but it generates a lot of warnings about unscoped global styles. I didn't check if there's a way to disable those.
I had to clean up some imports because I was getting errors from importing things that don't exist.

Closes #1385

Ooh exciting, thank you for helping with this! I'll aim to take a closer look later tonight or tomorrow morning.

!build

!build

!build


[DS-3695] Solr 7 fixes for upgrading to DSpace 7

https://jira.duraspace.org/browse/DS-3695
This is changes needed for Solr 7 by sites upgrading to DSpace 7, excluding sharded statistics.  Thanks to Bill Tantzen for kicking off this phase by finding some problems with date fields.
Untested.

@mwoodiupui Thanks, these worked for me. I grabbed these changes, updated slightly for latest master, and added the libs as well, and put my copy here for reference: https://github.com/atmire/DSpace/tree/DS-3695-solr-fixes . I also wrote up steps I was able to successfully follow to upgrade a DSpace 6 repo to DSpace 7, then re-index discovery, here: https://gist.github.com/cwilper/50c33ab861e47936f45a8909a0ee7a8b

I think I've addressed all of the early comments.  I've updated the upgrade procedure in the v7 manual.  (https://wiki.duraspace.org/display/DSDOC7x/DSpace+7.x+Documentation)
I've loaded several years' worth of live data into the statistics core, reindexed search and OAI, and loaded some sample data into authority, all without incident  I sampled the statistics documents in the Solr console, and found nothing obviously wrong.

@cwilper Thank you for the review!
I had forgotten about RepairDump.  I needed it to make some of our older production data ingestable.  (We have some statistics documents which lack a value for the uid field, for some reason.)  It's not a mandatory part of the upgrade, but since I knew one site that had the problem and I had written the code anyway, I included it, in case others run into the same issue.  I can remove the tool if we don't want it.

Merging as this is now at +2


The settings directory path should be platform-dependant

From EditorSettings::create:
	if (OS::get_singleton()->has_environment("APPDATA")) {
		// Most likely under windows, save here
		config_path=OS::get_singleton()->get_environment("APPDATA");
		config_dir=String(_MKSTR(VERSION_SHORT_NAME)).capitalize();
	} else if (OS::get_singleton()->has_environment("HOME")) {

		config_path=OS::get_singleton()->get_environment("HOME");
		config_dir="."+String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
	}

The settings directory is decided and created here and the OS class has no way to set a custom settings directory.
I am working on the Haiku port and there we do not use ~/.appname for storing settings but ~/config/settings/appname.
So my proposal is to add an OS::get_settings_dir method and use it in EditorSettings::create.

makes sense
On Fri, Jan 29, 2016 at 7:26 PM, Костадин Дамянов<EMAIL_ADDRESS>wrote:

From EditorSettings::create:
if (OS::get_singleton()->has_environment("APPDATA")) {
    // Most likely under windows, save here
    config_path=OS::get_singleton()->get_environment("APPDATA");
    config_dir=String(_MKSTR(VERSION_SHORT_NAME))capitalize();
} else if (OS::get_singleton()->has_environment("HOME")) {

    config_path=OS::get_singleton()->get_environment("HOME");
    config_dir=""+String(_MKSTR(VERSION_SHORT_NAME))to_lower();
}

The settings directory is decided and created here and the OS class has
no way to set a custom settings directory
I am working on the Haiku port and there we do not use ~/appname for
storing settings but ~/config/settings/appname
So my proposal is to add an OS::get_settings_dir method and use it in
EditorSettings::create
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/3513.

offtopic but i like haiku os. good luck .i was actually wondering if there is a haiku os port .

Does Haiku define XDG_CONFIG_HOME? That's typically what we should try to use before defaulting to other custom paths. On most Linux distros it would be ${HOME}/.config, then "/godot" would have to be appended to get the full path.

It appears that it supports it:
~> echo $XDG_CONFIG_HOME
/boot/home/config/settings

So appending /godot would work :)

So we should probably change the above code to:
    if (OS::get_singleton()->has_environment("XDG_CONFIG_HOME")) {
        // FreeDesktop compliant path, we use it
        config_path=OS::get_singleton()->get_environment("XDG_CONFIG_HOME");
        config_dir=String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
    } else if (OS::get_singleton()->has_environment("APPDATA")) {
        // Most likely under windows, save here
        config_path=OS::get_singleton()->get_environment("APPDATA");
        config_dir=String(_MKSTR(VERSION_SHORT_NAME)).capitalize();
    } else if (OS::get_singleton()->has_environment("HOME")) {
        config_path=OS::get_singleton()->get_environment("HOME");
        config_dir="."+String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
    }

The above snippet means that on Windows if XDG_CONFIG_HOME == APPDATA, it will use a lowecase "godot" suffix instead of "Godot", but I'm not sure it's a big deal :) Or we can have APPDATA be checked first and only then XDG_CONFIG_HOME, though that kind of defeats the purpose of this variable on Windows platforms then.

never seen XDG_CONFIG_HOME, seems to be missing in Ubuntu. Also, I believe
we should maybe separate by major version, not minor version
On Mon, Feb 1, 2016 at 9:39 AM, Rémi Verschelde<EMAIL_ADDRESS>wrote:

So we should probably change the above code to:
if (OS::get_singleton()->has_environment("XDG_CONFIG_HOME")) {
    // FreeDesktop compliant path, we use it
    config_path=OS::get_singleton()->get_environment("XDG_CONFIG_HOME");
    config_dir=String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
} else if (OS::get_singleton()->has_environment("APPDATA")) {
    // Most likely under windows, save here
    config_path=OS::get_singleton()->get_environment("APPDATA");
    config_dir=String(_MKSTR(VERSION_SHORT_NAME)).capitalize();
} else if (OS::get_singleton()->has_environment("HOME")) {
    config_path=OS::get_singleton()->get_environment("HOME");
    config_dir="."+String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
}

The above snippet means that on Windows if XDG_CONFIG_HOME == APPDATA, it
will use a lowecase "godot" suffix instead of "Godot", but I'm not sure
it's a big deal :) Or we can have APPDATA be checked first and only then
XDG_CONFIG_HOME, though that kind of defeats the purpose of this variable
on Windows platforms then.
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/3513#issuecomment-177955381.

also, it's too late now to change this, don't want to break compatiblity.
Will write down to do it for 3.0
On Mon, Feb 1, 2016 at 9:41 AM, Juan Linietsky<EMAIL_ADDRESS>wrote:

never seen XDG_CONFIG_HOME, seems to be missing in Ubuntu. Also, I believe
we should maybe separate by major version, not minor version
On Mon, Feb 1, 2016 at 9:39 AM, Rémi Verschelde<EMAIL_ADDRESS>wrote:

So we should probably change the above code to:
if (OS::get_singleton()->has_environment("XDG_CONFIG_HOME")) {
    // FreeDesktop compliant path, we use it
    config_path=OS::get_singleton()->get_environment("XDG_CONFIG_HOME");
    config_dir=String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
} else if (OS::get_singleton()->has_environment("APPDATA")) {
    // Most likely under windows, save here
    config_path=OS::get_singleton()->get_environment("APPDATA");
    config_dir=String(_MKSTR(VERSION_SHORT_NAME)).capitalize();
} else if (OS::get_singleton()->has_environment("HOME")) {
    config_path=OS::get_singleton()->get_environment("HOME");
    config_dir="."+String(_MKSTR(VERSION_SHORT_NAME)).to_lower();
}

The above snippet means that on Windows if XDG_CONFIG_HOME == APPDATA, it
will use a lowecase "godot" suffix instead of "Godot", but I'm not sure
it's a big deal :) Or we can have APPDATA be checked first and only then
XDG_CONFIG_HOME, though that kind of defeats the purpose of this variable
on Windows platforms then.
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/3513#issuecomment-177955381
.

The ubuntu docs mention XDG_CONFIG_HOME: here

This variable is typically unset since a sensible default fall-back value was defined by the specifications.

Other distributions may have it though. So I think the solution suggested by @akien-mga makes sense except in the last case where we may fall back to ~/.config instead of HOME.

oh ok. I noted it down to fix this in 3.0, so we can happily break
compatibility
On Mon, Feb 1, 2016 at 10:21 AM, Костадин Дамянов<EMAIL_ADDRESS>wrote:

The ubuntu docs mention XDG_CONFIG_HOME: here
https://help.ubuntu.com/community/EnvironmentVariables
This variable is typically unset since a sensible default fall-back value
was defined by the specifications.
Other distributions may have it though. So I think the solution suggested
by @akien-mga https://github.com/akien-mga makes sense except in the
last case where we may fall back to ~/.config instead of HOME.
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/3513#issuecomment-177969221.

apparently is a bug in ubuntu https://bugs.launchpad.net/ubuntu/+source/xdg-user-dirs/+bug/1122613

after discussing, and like many other softwares, we decided for the time being to ignore XDG_CONFIG_HOME and/or similar environment variables and keep using ~/.godot on unix. Closing.

we decided for the time being to ignore XDG_CONFIG_HOME and/or similar environment variables and keep using ~/.godot on unix

Did we? :)

Reopening as I finally convinced reduz that it's not too bad an idea, and I'm working on this.
I'll implement support for XDG_CONFIG_HOME, XDG_DATA_HOME and XDG_CACHE_HOME and use the three of them for the editor, splitting config (editor settings, layouts, etc.) from data (export templates, logs, etc.) and cache (current "tmp" folder).
For games, we'll expose only XDG_DATA_HOME, as we consider it too confusing for devs to have several paths to their game data. So the default user:// will resolve to XDG_DATA_HOME/godot/app_userdata (~/.local/share/godot/app_userdata/ on most Linux distros), with an option to change that path to XDG_DATA_HOME/[<studio>/]<game>).
For Windows and co, nothing changes, everything will still be all in the same folder, the interface will be transparent to the user.


Refresh 2019

My name is Bright Lazarus
I am a front-end web developer
Updated the js/app.js of the landing page
I converted the landing page project from a static project to an interactive one.
View the README.md to know more about my project

Though we are a little delayed in responding, this PR contains your personal work that cannot be added to Udacity's repository (starter-code).
Although, feel free to suggest an update to the starter code.
Happy Learning
Udacity


build: add prettier (js style codemod) to npm build system

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

Uses Prettier configured with Google code styles provided by stylelint and eslint to format js, less, and css files.

#1056 should resolve some of the minified expansion issues currently being seen.

Invoking Lazy Consensus, barring objections this will be merged later today


More vale rules

Add rules for terminology and hyperbolic language.
Also tweak existing rules and add links to relevant sections of our style guide.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/363355a3329377919a006ed26d7c1dd9409b3fc2/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/122696747ee2ee2463468c8cd21aca3ac4044a08/


Function statement forms

We have function calls and macro calls, function operators and macro operators... why not statement forms that get invoked at runtime? Why only macro statements?
macro statement:given(expr, pblock) is parsed(/ <sym> <expr> <pblock> /) {
    quasi {
        my v = {{{expr}}};
        runtime.apply(pblock, [v]);   # handwave
    }
}

Now, wasn't that hard? What we want to express is much better suited for runtime-only:
func statement:given(expr, pblock) is parsed(/ <sym> <expr> <pblock> /) {
    pblock(expr);
}

That's embarassingly easy! But wait, it gets easier! How about (as an experiment, we give such function statement forms a default is parsed regex: / <sym> [<expr> <pblock>?]? /. That way, the user has three nice defaults that they can specify without even writing their own is parsed:
func statement:noParams() {}             # noParams;
func statement:oneParam(expr) {}      # oneParam 2 + 2;
func statement:twoParams(expr, pblock) {}    # twoParams "OH HAI" -> s {}

The reason to provide the defaults is twofold:

It seems like a nice, decent thing to do anyway. (And is in fact slightly analogous to what happens with operators.)
It allows us to try this today.

Note that expr and pblock are provided inside the func as runtime values, not as Qtrees. This is also in analogy with operators. I went back and forth on that one a bit. The pblocks are provided as Func values, which is technically wrong, but it feels so right.

Going through the issues one by one, I just noticed that #80 is the macro version of this issue.
Alarmingly, it doesn't believe in providing is parsed defaults. So... who's right — me, or me two years ago? It's not like we can duel each other.

I don't want to close this issue, because it seems to have the heart in the right place. But it's interesting to ask how much it could be subsumed by #479.

S04 seems to assume the things coming into macros are indeed runtime values, not Qnodes. I don't know if that's just a thinko, or an explicit desire for this feature, but nevertheless, interesting. (There, they use the macro declarator still, not sub. Still.)


[BUG] - MySQL doesn’t treat null as a valid default for NOT NULL fields

Describe the bug
Update Worker and Status Fields in CronJobLock to Use Compatible Default Values
To Reproduce
Steps to reproduce the behavior:
follow the example and exec:
db.AutoMigrate(&gormlock.CronJobLock{})
Version
github.com/go-co-op/gocron-gorm-lock v1.0.0
Expected behavior
The Worker and Status fields in the CronJobLock struct currently have gorm:"not null;default:null". Setting null as a default for NOT NULL fields leads to migration errors in MySQL because MySQL doesn’t support null as a default for NOT NULL columns.
To make this compatible with MySQL and similar databases, these fields should be updated to use an empty string ('') as the default. This will allow migrations to run smoothly without encountering Invalid default value errors.
Additional context
2024/10/28 09:29:11 failed to migrate database: Error 1067 (42000): Invalid default value for 'worker'
https://github.com/go-co-op/gocron-gorm-lock/blob/1a90c837c948be783ca949c88aa785c37e05d9c3/job_lock_struct.go#L18
https://github.com/go-co-op/gocron-gorm-lock/blob/1a90c837c948be783ca949c88aa785c37e05d9c3/job_lock_struct.go#L19

@cybereyes-sunny I created a PR, once it's merged the issue should be solved

Thanks for your work!

Version v1.0.1 with the fix has been released: https://github.com/go-co-op/gocron-gorm-lock/releases/tag/v1.0.1


Logic Shifter board testing confusion - put DIR & OE to GND instead of GPIO

In testing the Logic Shifter Board section 4 and Figure 22 indicate that the DIR and OE pins must be LOW (0V or GND).
DIR (pin 1, upper left) can be seen to connect on the schematic (via pathway "11" and demonstrated by following the PCB trace and proven by continuity check with a voltmeter) to header pin P4-3.
OE (pin 19, second right) connects (via pathway "10") to header pin P1-2.
These pins are shown connected by grey and white jumpers to Raspbery Pi GPIO pins 10 and 12.
However, unless there is a script running on the Pi to cause these pins to go LOW, they will "float" and be neither HIGH nor LOW preventing the chip from functioning properly.  There is no mention of running a script on the pi for this test.  Instead, we connected them to two of many spare GND pins on the RPi such as physical pins 9 and 14 to force them LOW.
+5V (P1-1) red wire to RPi +5V (pin 2).  Check.
GND (P4-4) black wire to RPi GND (pin 6).  Check.
During testing at each step the +3.3V purple wire to RPi +3.3V (pin 1) needs to march down the logic shifter headers P1-3 through P4-2.  At each step confirm the +3.3V on the corresponding Bx pin on the right side of the shifter (according to the schematic) and look for the +5V on its partner Ax on the left side one pin up.
Thanks to Roberto Pensotti, Electronics build & testing team, Mars Rover project, Houston Robotics
Jim Phelan, Mars Rover project lead & chief fault finder ;-) , Houston Robotics

@JHPHELAN It would be correct to either connect the DIR and OE pins to either a GPIO pin driven low (effectively grounds the pin) of straight to the GND pin. I guess one important distinction is that the above bolded statement should actually read "they CAN float". When I was testing the boards in the above manner I had both the OE and DIR not connected to anything, and in practice you shouldn't see any floating behavior, however it would be correct to connect them to GND or a GPIO driven low.

Closing as this is no longer relevant after the merging of the electronics-pcb-rework branch 1245e914998c893c12e6b350123e3883899f1534


[Feature request] Remember collapsed heading state

I don't use the auto-expand feature, and keep all headings expanded by default. Some notes have headings that I don't need to look at, such as "Archive" sections which I usually collapse. When I switch to another page and come back, it'd be really nice to reload the previous expanded header state.
Thank you for the plugin!

I am really with you man, Having option to remember what are expanded and what are collapsed for each page is really helpful that keeps me ton of time,
now without this feature each time I switch between notes I need to manually fold and unfold some heading to get only headings I need to see in each file, this is really frustrating
by the way thank you for your great plugin🥳🥳

Is this functionality implemented yet?
On the plugin readme page, it seems to claim this function is already built-in, but after several try, I feel it is not there yet.
I am a little confused.

State will be memorized when switching between two opened notes.
So if you close one then reopen it, state is already deleted.

Thanks for the clarification, Guo!
My previous move including reopen the app, now I see why it is not working as what I expected.
BTW, Since now it can remember states between different notes, can it be stored in some middleware file and auto imported by the reloaded app note to recover its previous state? Seems like a feasible way to me.

Thanks for the clarification, Guo! My previous move including reopen the app, now I see why it is not working as what I expected. BTW, Since now it can remember states between different notes, can it be stored in some middleware file and auto imported by the reloaded app note to recover its previous state? Seems like a feasible way to me.

When you open a new note, or reload app, obsidian will show show the note from top. If quiet-outline resumes last expand state, this will be inconsistent with note position, which is a good implementation. So the core problem is obsidian itself doesn't remember note read/edit position.

If quiet-outline resumes last expand state, this will be inconsistent with note position

It needs to resume last expanded state but not necessarily the last highlighted note (current position.)
Anyhow, I do use a plugin to restore the last open position in the note too :) Sounds like a good feature to integrate here, since it'll match the highlighted note, as well.


Add support for dark title bar on Windows 10 and later

Test Procedure

Start app with light theme enabled for apps (system-wide setting). The titlebar color should be light.
Change the theme to dark and observe that the titlebar color changes to dark.
Start app with dark theme enabled. The titlebar color should be dark.
Change the theme to light and observe that the titlebar color changes to light.

Test Results
Windows 10

Version
Supported

1607
no/only light

1809
yes*

1909
yes

2004
yes

21H1
yes

21H2
yes

22H2
yes

* 1809: Doesn't update titlebar until activating the window. This behavior is consistent with File Explorer.
Windows 11

Version
Supported

22H2
yes

Old OS Compatibility
These OS don't support dark mode but this PR must not cause any new issues on these OS.

Version
State

7
ok

8
ok

8.1
ok

@ttytm I consider this work to be done. Would be great if you could also give it a try before I merge it.

Good work :+1:
I corrupted my windows VM to an unrestorable state when trying to update it after title bars remained light with some first tests. I would need to re-setup this evening and can test the changes.
Based on the code the changes look good to me.

Do you know the exact version of Windows you were using?

Thanks for the feedback!
Tested 21H1 (build 19043) and 21H2 (build 19044) just in case and found no issues.

Tested with high contrast themes on a subset of OS and it looks OK to me. Regardless of whether light or dark mode is enabled, high contrast themes override the colors.

Windows 10 1809
Windows 10 22H2
WIndows 11 22H2


modal workspace trust dialog buttons feel out of balance

The buttons on the dialog feel out of balance.

not centered in dialog
not the same width
more padding on left (its aligned with the right side of the icon)

An alternative if we ever want to re-visit this again & given how many people have already seen this:

In case we decide to keep the buttons with the sub-text, we should align the buttons either with the icon (1) or with the text (2).
(1)

(2)


raspiblitz-1.8.0c web ui settings->shutdown button gives no feedback

Hi,
When shutting down a node through the web ui settings->shutdown option, you won't get any visual feedback when confirming a shutdown.
Meaning, I tend to keep on clicking on it although it is already in the shutdown process.
Gr, J

Yeah thats something on our todo to improve.

Related to https://github.com/cstenglein/raspiblitz-web/issues/382

Done


wasm: move implementation details into WasmVm abstraction layer.

Signed-off-by: Piotr Sikora<EMAIL_ADDRESS>

@jplevyak in the interest of cleaning up the interface, I pulled getFunction() into the abstraction layer. It doesn't leak any VM implementation details, which I think is beneficial. The only downside is that there are no templates for virtual methods in C++, so the interface gets a bit more noisy, but it seems worth it. What do you think?
(I'll migrate registerCallback() and makeGlobal() as well, but I didn't want to spend too much time on this, if you disagree with the direction of this change)
cc @silentdai

@jplevyak I agree that it adds a bit noise. Ideally, we'd be able to get/register any function passed as argument, but that doesn't seem to be possible. I definitely prefer that those methods are part of the runtime implementation, and not leaked into the abstraction layer, though... If you have any better idea on how to achieve that, I'm all ears.


Unable to filter Dynamic Groups

Environment

Nautobot version (Docker tag too if applicable): v1.5.16
Python version: 3.10.11
Database platform, version: Postgres 15.1
Middleware(s): N/A

Steps to Reproduce

<nautobot_url>/extras/dynamic-groups/?&content_type=ipam.prefix&q=

Expected Behavior
Dynamic groups would show only entries where content_type is 'ipam.prefix' (not specific to ipam.prefix)

Observed Behavior
Server Error:
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'KeyError'>

'dynamic groups'

Python version: 3.7.16
Nautobot version: 1.5.7

FWIW: also able to reproduce here: https://demo.nautobot.com/extras/dynamic-groups/?&content_type=dcim.device&q=

Thanks for the report! Looks like a bug in the get_filterset_parameter_form_field function - it's looking for content-types corresponding to the feature dynamic groups but the feature is registered as dynamic_groups.

Thanks for the report! Looks like a bug in the get_filterset_parameter_form_field function - it's looking for content-types corresponding to the feature dynamic groups but the feature is registered as dynamic_groups.

I did a little triage and determined that this occurs with the model._meta.verbose_name_plural being passed through without being slugified. I suspect we would run into this issue on other objects but it's somewhat hidden from other models of content_type relationships because most of them have single-word names.


Facebook Messenger The URL couldn't be validated. Response does not match challenge, expected value="3ffgldflkdf", received="\u003C!doctype html>\r\n\u003C..."

Setting the webhook is failling, I am using ngrok for local tunneling and it is working perfectly but it seems there is something wrong with the code of the bot.
Here are the images from ngrok inspect:

I've not registrer for the bot studio token but I don't think that could be the problem, I cloned the bot from howdyai/botkit-starter-facebook repository page  and here is the code in my bot.js file :
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           ______     ______     ______   __  __     __     ______
          /\  == \   /\  __ \   /\__  _\ /\ \/ /    /\ \   /\__  _\
          \ \  __<   \ \ \/\ \  \/_/\ \/ \ \  _"-.

# RUN THE BOT:
  Follow the instructions here to set up your Facebook app and page:
    -> https://developers.facebook.com/docs/messenger-platform/implementation
  Run your bot from the command line:
    page_token=<MY PAGE TOKEN> verify_token=<MY_VERIFY_TOKEN> node bot.js

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
require("dotenv").load();
if (!process.env.page_token) {
    console.log('Error: Specify a Facebook page_token in environment.');
    usage_tip();
    process.exit(1);
}

if (!process.env.verify_token) {
    console.log('Error: Specify a Facebook verify_token in environment.');
    usage_tip();
    process.exit(1);
}

var Botkit = require('botkit');
var debug = require('debug')('botkit:main');

// Create the Botkit controller, which controls all instances of the bot.
var controller = Botkit.facebookbot({
    // debug: true,
    receive_via_postback: true,
    verify_token: process.env.verify_token,
    access_token: process.env.page_token,
    studio_token: process.env.studio_token,
    studio_command_uri: process.env.studio_command_uri,
});

// Set up an Express-powered webserver to expose oauth and webhook endpoints
var webserver = require(__dirname + '/components/express_webserver.js')(controller);

// Tell Facebook to start sending events to this application
require(__dirname + '/components/subscribe_events.js')(controller);

// Set up Facebook "thread settings" such as get started button, persistent menu
require(__dirname + '/components/thread_settings.js')(controller);

// Send an onboarding message when a user activates the bot
require(__dirname + '/components/onboarding.js')(controller);

// Enable Dashbot.io plugin
require(__dirname + '/components/plugin_dashbot.js')(controller);

var normalizedPath = require("path").join(__dirname, "skills");
require("fs").readdirSync(normalizedPath).forEach(function(file) {
  require("./skills/" + file)(controller);
});

// This captures and evaluates any message sent to the bot as a DM
// or sent to the bot in the form "@bot message" and passes it to
// Botkit Studio to evaluate for trigger words and patterns.
// If a trigger is matched, the conversation will automatically fire!
// You can tie into the execution of the script using the functions
// controller.studio.before, controller.studio.after and controller.studio.validate
if (process.env.studio_token) {
    controller.on('message_received', function(bot, message) {
        if (message.text) {
            controller.studio.runTrigger(bot, message.text, message.user, message.channel).then(function(convo) {
                if (!convo) {
                    // no trigger was matched
                    // If you want your bot to respond to every message,
                    // define a 'fallback' script in Botkit Studio
                    // and uncomment the line below.
                    controller.studio.run(bot, 'fallback', message.user, message.channel);
                } else {
                    // set variables here that are needed for EVERY script
                    // use controller.studio.before('script') to set variables specific to a script
                    convo.setVar('current_time', new Date());
                }
            }).catch(function(err) {
                if (err) {
                    bot.reply(message, 'I experienced an error with a request to Botkit Studio: ' + err);
                    debug('Botkit Studio: ', err);
                }
            });
        }
    });
} else {
    console.log('~~~~~~~~~~');
    console.log('NOTE: Botkit Studio functionality has not been enabled');
    console.log('To enable, pass in a studio_token parameter with a token from https://studio.botkit.ai/');
}

function usage_tip() {
    console.log('~~~~~~~~~~');
    console.log('Botkit Studio Starter Kit');
    console.log('Execute your bot application like this:');
    console.log('page_token=<MY PAGE TOKEN> verify_token=<MY VERIFY TOKEN> studio_token=<MY BOTKIT STUDIO TOKEN> node bot.js');
    console.log('Get Facebook token here: https://developers.facebook.com/docs/messenger-platform/implementation')
    console.log('Get a Botkit Studio token here: https://studio.botkit.ai/')
    console.log('~~~~~~~~~~');
}

What am I missing. Where is the problem?

Do you have your subscriptions setup properly on the facebook side to point to the ngrok generated endpoint? Are the urls correct in your facebook settings?

What do you mean by

your subscriptions setup properly
I just took the url ngrok generated and then paste it as callback url .

For me I think there is a problem may be with setting maybe the server or ... because the response it should return when validating should be a json data return the hub_challenge if I am not wrong but it is returning an html page.
I couldn't see even this code :
var bot = controller.spawn({
});

// if you are already using Express, you can use your own server instance...
// see "Use BotKit with an Express web server"
controller.setupWebserver(process.env.port,function(err,webserver) {
  controller.createWebhookEndpoints(controller.webserver, bot, function() {
      console.log('This bot is online!!!');
  });
});

In the files, so I wonder where the server is configured and which code handle the webhook validation request in the bot.

The starter kit locally shouldn't require much in the way of tweaking to get working with ngrok. What I was talking about was on the facebook side, did you double check your app subscriptions and webhooks were configured properly there?

yes they are, I followed all steps and I went back in the app setting the only thing I did not put is the app domain and where the explain the steps for setting up the bot there is no way where the precised the app domain must be given too.
But as the response is being html and not json , even when I access the link generated directly from the browser, I think the problem is within the code.

I've found the problem this should be put in the step explain the webhook url to pass to facebook. The problem was I was accessing https://a0rflbf.ngrok.io  yet the bot is accessible on on https://a0e0b5bf.ngrok.io/facebook/receive so should be the callback url too.

@MagSag good idea, we will make a ticket for that internally!

Its live! Thanks again for pointing that out!

Can Enyone Help Me How to create a Chatbot From The Begining Using node js ..

@9880649203 start here! https://github.com/howdyai/botkit#start-with-botkit-studio

@9880649203 see this. very nice blog for the beginners


Show System.exit(0) in comments

I described why I wanted to add it in Issue #1239 .

@anguillanneuf - It also looks like google-cloud-pubsub has fallen out of date (1.38.0 to 1.49.0). I would suggest upgrading and see if perhaps the issue was already fixed before filing a bug against the client library.


meross_lan: Setting last_reset for entities with state_class other than 'total' is not supported.

Version of the custom_component

v2.4.3
Configuration
Auto Configuration
Describe the bug
WIth the update to core-2022.2.0b0 the meross_lan custom component is reporting issues with state_class
Debug log

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:317
Integration: Sensor (documentation, issues)
First occurred: 10:49:05 PM (2 occurrences)
Last logged: 10:49:05 PM

Entity sensor.fridge_energy (<class 'custom_components.meross_lan.sensor.MerossLanSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.
Entity sensor.microwave_energy (<class 'custom_components.meross_lan.sensor.MerossLanSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.

Hello, thank you for signaling this I'll get back at code as sson as possible

+1
The issue still exists in the core-2022.2.0 update.

Hello, will fixed code be available in next release (2.4.4)? Thank you for your precious work.


Why is FM modulation factor limited to [0, 1]?

Currently freqdem limits modulation factor _kf to [0, 1]:
https://github.com/jgaeddert/liquid-dsp/blob/9423d76cec21e18c1dab55b5cc7d4c40ef8a4bc2/src/modem/src/freqdem.proto.c#L46-L48
In comparison, LuaRadio uses 1.25 as the default value for wide band FM demodulation:
https://github.com/vsergeev/luaradio/blob/ff82019f88098ff2f0f5d3786535b492070c64f8/radio/composites/wbfmmonodemodulator.lua#L28
https://luaradio.io/docs/reference-manual.html#frequencydiscriminatorblock
(LuaRadio calls it modulation index, but looking at the formula it's the same thing as liquid-dsp's modulation factor.)
Who is in the wrong here, and does it even matter?

It should be allowed to exceed 1; I think I was expecting this number to be normalized, but this doesn't preclude it from being larger than 1.

Relaxed constraint in 21b6db62


Analyze methods for running a DAG locally

Please describe the feature you'd like to see
A clear and concise description of what problem feature solves or what use-case it would enable.
Since the SQL CLI will be a new method for SQL engineers to develop Airflow DAGs on their local machines, we should take a broader look at how we can optimize the local DAG writing experience. The current airflow dags test command is incredibly slow and requires running an entire scheduler on the user machine, creating confusing scheduler-level logs that do not help the user debug.
Describe the solution you'd like
We want to create a local DAG writing solution that is both faster and only gives relevant information to the user regarding their task logs and status. This solution does not necessarily need all scheduler features (e.g., parallelization, retries, etc.). Part of this analysis would be determining which of these features are necessary.
Are there any alternatives to this feature?
That is what we would like to find out
Additional context
No
Acceptance Criteria

[x] A decision document that outlines potential improvements to the local airflow dev experience
[ ] An AEP similar to our table cleanup proposal with possible ways to run a DAG locally, their pros and cons, and recommendations for future development

@dimberman to add a TL;DR

tl;dr of part 1: How we've improved DAG running
We've added https://github.com/apache/airflow/pull/26400 to the open source airflow project that will be released in Airflow 2.5. This feature felt like a critical piece of debugging architecture that we wanted to offer to the entire airflow community.
This new DAG runner no longer requires running a backfill job with a scheduler heartbeat. It also offers much more concise error logging and IDE integrations.
tl;dr of part 2: Steps on how we're going to offer local DAG development to astronomer customers
After discussing with @jedcunningham and @sunkickr I think we've come to the following conclusions:

Backports to earlier airflow versions are purely for critical bugfixes and shouldn't add extra functionality. We'd be opening a can of works by making an exception to this functionality, so backporting https://github.com/apache/airflow/pull/26400 is out of the question.

Adding an extra file to the runtime images is also not ideal and would make runtime building more complex

With these in mind, here is how I think we will proceed:
In the short run, I'm going to make a runnable script for @sunkickr to unblock him so he can start testing user flows with this local DAG running capability. We will use a docker image as the backend to avoid the complexities of the different user system setups. This can be re-visited later.
In the medium term, I'm going to add the dag.test functionality to the astro python SDK. Users with <2.5 can access this functionality by installing the python SDK and running astro.run_dag(dag). We will also add more features to this than we will to the OSS since we can have a much faster iteration speed and don't need to worry about backporting.
The main blocker in us using the  astro.run_dag(dag) method is that we need to merge https://github.com/astronomer/astro-sdk/pull/970 and release it. XCOM_PICKLING is a non-starter for a number of users so we can't have it as a requirement if we are going to make astro python SDK a default download for our runtime images.

Ok so speaking with @tatiana further I think we have an even better solution.
We're going to include the dag running script in the SQL CLI project initially.
Since the SQL CLI is not yet yet 1.0, we have much more flexibility in what we include. This can also make sure that we don't need the DAG testing code as a part of astro SDK 1.2. So the plan is as follows:

the astro run command will be added to SQL CLI
Astro runtime images with import SQL CLI and astro SDK >=1.2
We will add the dag testing code to astro-python-sdk for version 1.3.
from version 1.3+ users will be able to run the dag testing code in their IDEs.


Error for batch-size

i got this error TypeError: predict() got an unexpected keyword argument 'batch_size'
how to solve that?

more info?


Deep link to any heading; FAQ

All headers (h1-6) with an id attribute on any page are deep linkable. When a user hovers over the heading, a clickable link-icon appears that can be used for deep linking within a page.
Furthermore, FAQs have the same link-icon on hover; however, in the case of FAQs, a deep link will open the appropriate accordion panel as well.
Implementation Note
Kramdown automatically generates IDs for Markdown headers based upon the content, e.g., # Header becomes
Header
. This is all well and good until you need to include Markdown content in another page where those headings may not necessarily be unique... as is the case with the FAQs.
Therefore, for now, we must disable auto ID generation on every FAQ item under _faq/ until an issue within Jekyll is fixed. I've reported the issue to Jekyll.
Once that is fixed, we should be able to access the unrendered Markdown and disable auto ID generation programatically before rendering.

Adding cla: yes label, as the PR author is covered by CLA.


Could you upgrade pubspec.yaml of sentry?

Now: quiver: ">=0.25.0 <2.0.0"
quiver has been upgraded
dependencies:
quiver: '>=2.0.0 <3.0.0'

cc @yjbanov


[ble mesh] static oob issue (IDFGH-1290)

Hi,
I want to implement a function that only allows a specific provisioner to add devices to the ble mesh network. For example, the ble mesh device we developed can only be provisioned through the APP we developed, and other APPs cannot be provisioned.
As far as I know, static oob should be able to implement this function. For example, the device and the provisioner must set the same static oob value, so that two-way authentication can be achieved. This is just my guess, I don't know if it is correct.
So I made the following changes in the ble_mesh_node demo:
/* Disable OOB security for SILabs Android app */
static esp_ble_mesh_prov_t provision = {
    .uuid = dev_uuid,
#if 0
    .output_size = 4,
    .output_actions = ESP_BLE_MESH_DISPLAY_NUMBER,
    .input_actions = ESP_BLE_MESH_PUSH,
    .input_size = 4,
#else
    // .output_size = 0,
    // .output_actions = 0,
#endif
    // .oob_pub_key = 1,
    .static_val = {0x01,0x02,0x03,0x04},
    .static_val_len = 4,
};

After compiling and flashing, I found that using nRF mesh can still directly provision the device into the Mesh network. The phenomenon of using ble_mesh_provisioner demo provision device is also the same. It feels that static oob seems to be useless. Is this the problem of my operation or your SDK? Haven't implemented static oob yet?

Hi @zhanlej,
Thanks for the question. I had a try with the nRF Mesh App and your test code, it turns out to be the same. On the App side, it have discovered the device Static OOB ability, but the App chooses No OOB in its Provisioning Start PDU, and here is the log:
W (54838) BLE_MESH: Algorithm:   0x00
W (54838) BLE_MESH: Public Key:  0x00
W (54838) BLE_MESH: Auth Method: 0x00
W (54838) BLE_MESH: Auth Action: 0x00
W (54838) BLE_MESH: Auth Size:   0x00

So better to find some App which supports Static OOB.
Thanks.

Hi @Campou
I think it's very strange. According to my understanding, my code should set the device to only support Static OOB. If the APP does not support Static OOB, the provisioning should fail, but the result is successful.

Hi @zhanlej,
The authentication method should be decided  by the Provisioner side in my opinion. Even if the device supports the Static OOB, Output OOB or Input OOB, but the Provisioner only supports No OOB, then i think No OOB will be used for provisioning.
Also the Provisioning Capbilities PDU only indicates that wthether the device supports Static/Output/Input OOB, no indication of whether No OOB is supported or not.
Thanks.

Thanks!

Hi @zhanlej,
The authentication method should be decided by the Provisioner side in my opinion. Even if the device supports the Static OOB, Output OOB or Input OOB, but the Provisioner only supports No OOB, then i think No OOB will be used for provisioning.
Also the Provisioning Capbilities PDU only indicates that wthether the device supports Static/Output/Input OOB, no indication of whether No OOB is supported or not.
Thanks.

I think this interpretation is wrong. suppose I have some unprovisioned node, then anyone can download the nrf mesh app and provisioned my nodes by using the no oob method.
Also check this video https://www.youtube.com/watch?v=XthbU9NP0Yg, in this example the guy uses the output OOB method.

I think this interpretation is wrong. suppose I have some unprovisioned node, then anyone can download the nrf mesh app and provisioned my nodes by using the no oob method.

I agree.
I can confirm that when using static key on an ESP32 node (same example as above), I can provision it with the nRF Mesh app if I select "no OOB" during the provisioning process.
Do I miss something that should block the node provisioning by a provisioner without static key?

I think this interpretation is wrong. suppose I have some unprovisioned node, then anyone can download the nrf mesh app and provisioned my nodes by using the no oob method.

I agree.
I can confirm that when using static key on an ESP32 node (same example as above), I can provision it with the nRF Mesh app if I select "no OOB" during the provisioning process.
Do I miss something that should block the node provisioning by a provisioner without static key?

@florian-ats please follow this for more updates...   https://github.com/espressif/esp-idf/issues/5281

@florian-ats please follow this for more updates...   https://github.com/espressif/esp-idf/issues/5281


[Add-ins] (Visual Studio) Update guidance related to developing add-ins with Visual Studio.

This PR updates the Outlook add-in quick start to specify different content in the Next steps section depending on whether guidance being shown is for the Yeoman generator or Visual Studio.

Docs Build status updates of commit dfa91aa:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/add-ins/quick-start.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit cd4d57b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/add-ins/quick-start.md
:white_check_mark:Succeeded

docs/amphtml/index.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@mscharlock FYI, this PR contains the Outlook changes related to https://github.com/OfficeDev/office-js-docs-pr/pull/1514.

I'm assuming you've put the date as the 28th because that is the day you will pull this in? Otherwise, looks fine to me, I will approve :)

@mscharlock thanks for the quick review! I was hoping to publish this tomorrow (12/27), and since the date shown on the web page is always one day behind the value of ms.date, I set that attribute to 12/28 (so that the web page will show last updated = 12/27). Thanks again!


The CLA link in readme seems invalid or broken.

What You Are Seeing?
The CLA link on the readme.md file seems to be invalid or broken.
What is Expected?
To get linked to the actual CLA page.
What version of Cake are you using?
None yet.
Are you running on a 32 or 64 bit system?
x64
What environment are you running on?  Windows? Linux? Mac?
Windows
Are you running on a CI Server?  If so, which one?
No

How Did You Get This To Happen? (Steps to Reproduce)

Read the readme on github down the the CLA part.
Click the CLA word.
Get linked to a webpage that never loads.

Output Log

I do not have a log yet as cake is not installed yet and seen this issue on github only.

@AraHaan thank you for pointing this out!


b3sum crate missing Cargo.lock

trying to make an os package for b3sum and the Cargo.lock is missing causing failures. can it be added please?
official docs suggest the lock should be included in version control for binaries
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

There is a Cargo.lock file created automatically when we publish releases to crates.io. If you like you can fetch it with:
curl -L https://crates.io/api/v1/crates/b3sum/1.2.0/download | tar xz "b3sum-1.2.0/Cargo.lock" --to-stdout

Alternatively, you can build your own lockfile at packaging time, using cargo generate-lockfile or similar. Would one of these approaches work for you?

the package i am working on doesnt have the ability to fetch from crates.io oddly. i might be able to temporarily work around with a prebuild step, but ideally the repo would have the lock file to make things smoother. i can try my work around and report back in the interim though might take a bit to get fully tested.

We could create one, but then I'd want to keep it updated at all times, which would be kind of annoying to maintain. b3sum is a pretty simple application as far as its dependency tree goes, and I don't expect to run into many build breaks over time, so the actual value of a committed lockfile is low. But maybe you could tell me more about the packaging system you're working with? If this is a common requirement for many different packaging systems, maybe I should just make everyone's lives eaiser and include it upstream...

the official rust docs say the lock should be in version control. im working on openbsd right now, though same requirement is likely true for freebsd. having the lockfile will also help distros like debian, fedora, and arch for their reproducible builds. same reasoning for people building from source.
really you only need to update it in the repo when tagging a release, not all the time.

@oconnor663 any update on getting the lockfile added to the repo?

Thank you for reminding me about this. When I'm generating the Cargo.lock file myself, is there a flag that says "ignore path dependencies (the blake3 crate in the parent dir) and act like I'm getting everything from crates.io"? I noticed that the default lockfile doesn't include a package hash for blake3, but I'm not sure if anyone actually cares about this.

you can specify that in your Cargo.toml. if found it will use the path, otherwise it goes to crates.io.
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-path-dependencies

Yes that's what we currently do. But I notice that when I use e.g. cargo build to generate a lockfile, the entry for blake3 looks like this:
[[package]]
name = "blake3"
version = "1.2.0"
dependencies = [
 "arrayref",
 "arrayvec",
 "cc",
 "cfg-if",
 "constant_time_eq",
 "digest",
 "rayon",
]

On the other hand, the entry in the lockfile on crates.io looks like this:
[[package]]
name = "blake3"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "526c210b4520e416420759af363083471656e819a75e831b8d2c9d5a584f2413"
dependencies = [
 "arrayref",
 "arrayvec",
 "cc",
 "cfg-if",
 "constant_time_eq",
 "digest",
 "rayon",
]

It seems like if we're going through the trouble of publishing a lockfile, we should make sure it actually locks all the dependencies. But the only way I can figure out how to do this locally is to run cargo publish --dry-run and fish the lockfile out of build artifacts. That makes me wonder whether I'm fighting the system here, or maybe just missing some obvious flag.

In fact, if I copy that build artifact to b3sum/Cargo.lock, I have a problem, because regular build commands will overwrite it and delete those source and checksum entries. And of course I don't want the regular build commands to dirty the repo.

im not sure the resulting binary/lib itself can really record a hash see https://github.com/rust-lang/rfcs/pull/3127 for a limitation on rust compiler itself. even then so long as most things get recorded its probably fine as a start

Just pushed the lockfile. If I forget to bump it during a release, please remind me :)


Barrier Layer Styling

A legend of how BIOS styles the barrier layer is in google docs.
However, we're more likely to want to distinguish the following categories:

Barrier WILL be treated in solution (user forced)
Barrier CAN be treated in solution
Barrier WILL NOT be treated in solution (user forced OR 'ignore' downstream)

Of course, this may be influenced by other factors like natural barriers that cannot be treated.

1st stab at legends (we don't have all the same info as BIOS).
Need to check with Anne & Brett
Need Legends


Contribution.md Creation

I just wanted to ask that can I create the contribution.md file which can allow the contributors know in which ways they can contribute and also what rules and code of conduct all they have to follow and also some other section. Please can you assign me this issue.

Hello @milansamuel609
Thanks for raising this issue. We acknowledge that there is a need for CONTRIBUTIONS.md but it will be covered in #28
So as of now we don't need a pr on this.
Thankyou


feat(curriculum): add Introductions in team meeting block 1.2

Challenges for the second block of the English Curriculum.
Checklist:

[ x] I have read and followed the contribution guidelines.
[ x] I have read and followed the how to open a pull request guide.
[ x] My pull request targets the main branch of freeCodeCamp.
[ x] I have tested these changes either locally on my machine, or GitPod.

Ref: #52400

I'll implement the changes now, @moT01. And, thank you for the alternative description you gave me. It was very helpful!

I pushed the updated titles to the meta.json file


Is it possible to retrieve TV's status?

I would love to see whether the TV is currently playing. Or which input it is on. Is it possible to get that info? And relay it to home assistant?

You can find out whether the tv is on by taking advantage of a bug in the code.
Issue a get_mute command. You will either get a response if the tv is on, or it will throw and exception.  Unfortunately the remote will no longer work, as it is out of sync with the tv. To fix this, increment _session_seq_num by one and you are good to go

Hello,
I would like to track (with Homeassistant) when the TV is or on/off. So I came to this library.
Switching off the TV with the remote is not triggering an exception on a Panasonic Viera TX-40DX730W.
The Android TV App (TV Remote 2) seems to know if the TV is on / off as the on/off Button in the App changes the color if the TV is.
Any chance to figure out how the App is doing it ?

@sgthree, thanks for your reply! I was actually trying to find out whether the TV was playing something (in the home-assistant sense). Home assistant already uses the exception trick to check if the TV is online, I believe.

A new function "upnp_service_subscribe()" appeared in the lib. Although i am unable to use it neither with nrc/ddd.xml nor nrc/event_0 to track TV status. I've only got "HTTP Error 400: Bad request"


🐛 BUG: Auto add missing imports dont work well

Describe the Bug
in my vscode config i have this line of code, this let me save the file and let vscode auto import the missings imports, but this dont work well
{
  "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.addMissingImports": true
  },
}

as you can see in the photo, this add the import in the top of the line not where it should go

Steps to Reproduce
{
  "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.addMissingImports": true
  },
}

Thank you for this issue! Mapping imports is always a bit tricky, ha.


How to uninstall?

After first successful installation, I can enter the terminal using CentOS.exe.
Then I want to see if I can move the folder, so I move it from desktop (C:\Users\nitromelon\Desktop\CentOS8) to another place ( X:\CentOS8).
After moving,  running CentOS8.exe will get stuck forever. I tried deleting all files, rebooting my system, and unzip CentOS8.zip again, but it still gets stuck when running CentOS8.exe
What should I do now?

Have you tried using wsl.exe to manage your WSL distros?
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#unregister-and-reinstall-a-distribution

Thank you so much. It's all good now with the help of wsl.exe.


Level Selection Screen

The level selection screen should be able to be rendered on top of whatever is going on in the background. The menu that pops up should have level selection on one side (left or right), then have a description of the selected level on the other side and a button to start the level on that side.
This screen should not be a priority unless we are running out of things to do.

Relates to #23
This issue is now pretty much complete. We did have a "nice to have" that was displaying the selection screen over whatever is currently going on on screen, but this currently becomes the current screen, which isn't a huge deal.
Going to close this now.


Fix/air: Deprecated GOPATH reliability

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
Problem/Feature
Closes #74;
Description of Changes:

Changed make watch to rely on command null command respons instead to check if air is installed of checking for GOPATH.

Checklist

[X] I have self-reviewed the changes being requested

this should close #111 too 👍

this should close #111 too 👍

It probably does. I will close this one and open a new PR with to clean this one.


[v0.16.x] V16 more backports

https://github.com/dashpay/dash/pull/3710 had conflicts
https://github.com/dashpay/dash/pull/3701 had conflicts
https://github.com/dashpay/dash/pull/3707 had conflicts
All others had no conflicts

@xdustinface I expect you to create a replacement for https://github.com/dashpay/dash/pull/3732/commits/065300715fd0826757b963632169cd3fa20f293f :D

@xdustinface I expect you to create a replacement for 0653007 :D

See 2eb91ad423ff93adeb122754f53930304367feee

@xdustinface see latest

(weird kindof self-)utACK https://github.com/dashpay/dash/pull/3732/commits/dbfdf8cb157954ec350edfbc2ccc5a96582ddc1b


NormHead

Do you use NormHead?

Sorry I am not sure what normhead exactly is, but the structure of the attention layer is basically something like:
RMS norm layer -- Alibi based attention layer --- Another RMS norm layer --- Dense layer. (and of course there is a llm_head at the end to generate tokens).


POWER OFF not working every time

Version of the custom_component
Current version, installed 15 days ago.
Describe the bug
During 8 days the plugin worked flawlessly with my EPSON LS12000B.
Now, every two times when I turn the projector OFF using a send command, the projector goes OFF but the HA state goes to ON instead of OFF (1s after the actual "turn off" message, see log). Then HA stays ON until I restart and stop the projector.
Debug log
8:15:17 PM - changed to cooldown triggered by service epson_projector_link.send_command
8:15:18 PM - turned on triggered by service epson_projector_link.send_command
Command sent using the send_command :
"PWR OFF"
I looked at the code, there seems to be some code to manage "future state" and status updates, so things don't seem to be simple IRL.

Well,
I spent hours trying to get logs of the problem but the problem only occurred when I wasn't recording the logs.
I finally understood yesterday that the problem occurs when the projector is seeking signal.
So to reproduce the problem one need to turn the source AND the projector off at the same time. Same time means "less that 4s delay between the two events".
I will try to get logs now I can reproduce.


UpdateSystem must poll after call of StopSystem function

To prevent accidents with resource management  in client application, UpdateSystem must poll after call of StopSystem function.

Implemented.
I close this issue.


fix : last name shows null when left blanked on sign up

Fixes #1965
Checklist:

[x] I have checked for PMD and check-style issues
[x] I have read the Contribution & Best practices Guide and my PR follows them.
[x] My branch is up-to-date with the Upstream development branch.

Changes: last name is shown only when it is not null .
Screenshots for the change:

Circle CI build failed. Check for errors

Ignore Circle CI for now, just check Travis.


Fix typos

Found via codespell -H -L crate

Thanks alot !

:partying_face: :partying_face: :partying_face: :partying_face: :partying_face:


Issue with Python SDK to create Azure VM

Package Name: azure-mgmt-compute
Package Version: N/A
Operating System: Linux
Python Version: 3.11

Describe the bug
When using the Python SDK to create a VM from an image in the Azure compute gallery, there is no resource group check during the deployment process. This means that even if the wrong resource group name is provided (a random name that does not exist under the specified subscription), the VM can still be successfully created. This can lead to the VM being associated with an incorrect image reference.
To Reproduce
Steps to reproduce the behavior:
1.Use the Python SDK to create a VM with an image from the Azure compute gallery.
SIG.txt
2.Provide a random, non-existent resource group name in the image reference.
3.Deploy the VM.

Expected behavior
We want to know if the resource group no check is by design. The deployment process should validate the resource group name and fail if the specified resource group does not exist or does not contain the desired image gallery. The VM should only be created if the correct resource group name is provided.
Screenshots

Additional context
After the VM is created, we checked the JSON file of the new VM and found that the image reference is pointing to the wrong resource group. This issue can lead to inconsistencies and potential problems in managing VM resources.

For the group, I am working with Emma on this offline. I will update this issue once we have more details on the issue.

@TravisCragg-MSFT, could you work with Emma to debug this issue. At first, I thought that maybe there were two images, one in the RG "repro" and one in the RG "abc-test" that maybe Emma just forgot about. But she confirmed that the RG abc-test does not exist. So that means that she is inputting a URI to an image that is completely bogus and CRP proceeds to create a VM using some other image, and then returns in the GET response for that new VM that the image URI is the completely non-existent image.
Furthermore, Emma shared that this only reproduces when using the Python SDK, and it will not repro with PowerShell, CLI or the portal. So, I think we need to debug this from the server side to see what payload CRP is actually getting in the repro scenario, and how it is actually creating a VM using an image that doesn't exist.... Something seems very odd here.

Hi @Travis @.***>,
Greetings of the day and hope you are doing well.
Thank you very much for your help on the below issue:
Issue with Python SDK to create Azure VM · Issue #36490 · Azure/azure-sdk-for-python (github.com)https://github.com/Azure/azure-sdk-for-python/issues/36490
Issue:
When using the Python SDK to create a VM from an image in the Azure compute gallery, we found that even if the wrong resource group name is provided (a random name that does not exist under the specified subscription, such as 'test-abc'), the VM vm-base-1 can still be successfully created. This can lead to the VM being associated with an incorrect image reference.
[cid:afa60a73-c33e-4840-9b9e-a54ff9ce9bb1]
[cid:c8f1e66d-50da-4d61-ab87-8fd1bb275cf6]
Looking forward to your reply!
Best regards,
Emma Zhang
Tech Support Eng SE | Azure Virtual Machine
+86 (21) 6188 9521 /<EMAIL_ADDRESS>Working Hours: 7:00am - 4:00pm UTC+8, Mon – Fri
Manager: Steven Xiao /<EMAIL_ADDRESS>Can’t reach me? Email – Azure Backup  |<EMAIL_ADDRESS>[cid:d24072d9-f59c-4e23-b5f5-3324e492ea06]

From: Drew McDaniel @.>
Sent: Wednesday, July 17, 2024 2:26 PM
To: Azure/azure-sdk-for-python @.>
Cc: Emma Zhang @.>; Author @.>
Subject: Re: [Azure/azure-sdk-for-python] Issue with Python SDK to create Azure VM (Issue #36490)
@TravisCragg-MSFThttps://github.com/TravisCragg-MSFT, could you work with Emma to debug this issue. At first, I thought that maybe there were two images, one in the RG "repro" and one in the RG "abc-test" that maybe Emma just forgot about. But she confirmed that the RG abc-test does not exist. So that means that she is inputting a URI to an image that is completely bogus and CRP proceeds to create a VM using some other image, and then returns in the GET response for that new VM that the image URI is the completely non-existent image.
Furthermore, Emma shared that this only reproduces when using the Python SDK, and it will not repro with PowerShell, CLI or the portal. So, I think we need to debug this from the server side to see what payload CRP is actually getting in the repro scenario, and how it is actually creating a VM using an image that doesn't exist.... Something seems very odd here.
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-for-python/issues/36490#issuecomment-2232524728, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJ3WB2KHV5A26YJS5LIV6E3ZMYFCFAVCNFSM6AAAAABK5VQ4QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGUZDINZSHA.
You are receiving this because you authored the thread.

@EmmaZhang0626 Thank you for informing us, we will be adding this validation ASAP, and further tracking will be done internally.