Provide a way to customize via Spring framework a TTL for Netty's DNS cache

Problem
In k8s environment multiple instances of the same service are hidden by k8s Service name (like, my-test.my-namespace.svc.cluster.local). Same goes with DNS servers in k8s: multiple instances of it are hidden by k8s Service. In a case when one DNS server instance dies and emerges on a new k8s node with another IP address, due to DNS cache in Netty (transitive dependency of project-reactor) via DnsNameResolverBuilder and DefaultAuthoritativeDnsServerCache, IP addresses of DNS servers are cached for Integer.MAX_VALUE seconds by default and old/cached IP address is used for DNS resolution. This results in a request to the IP address with no listening DNS server and causes next error:
500 Server Error for HTTP GET "/my-test"
io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Failed to resolve 'my-test' [A(1)] and search domain query for configured domains failed as well: [production.svc.cluster.local, svc.cluster.local, cluster.local]
	at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1151)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
	*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
	*__checkpoint ⇢ HTTP GET "/my-test" [ExceptionHandlingWebHandler]
Original Stack Trace:
		at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1151)
		at io.netty.resolver.dns.DnsResolveContext.tryToFinishResolve(DnsResolveContext.java:1098)
		at io.netty.resolver.dns.DnsResolveContext.query(DnsResolveContext.java:457)
		at io.netty.resolver.dns.DnsResolveContext.access$700(DnsResolveContext.java:69)
		at io.netty.resolver.dns.DnsResolveContext$2.operationComplete(DnsResolveContext.java:526)
		at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
		at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583)
		at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559)
		at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492)
		at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636)
		at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:629)
		at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:118)
		at io.netty.resolver.dns.DnsQueryContext.finishFailure(DnsQueryContext.java:380)
		at io.netty.resolver.dns.DnsQueryContext$5.run(DnsQueryContext.java:315)
		at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
		at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153)
		at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
		at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
		at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
		at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
		at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994)
		at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
		at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
		at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: io.netty.resolver.dns.DnsNameResolverTimeoutException: [15365: /<IP_ADDRESS>:53] DefaultDnsQuestion(my-test.production.svc.cluster.local. IN A) query '15365' via UDP timed out after 5000 milliseconds (no stack trace available)

Steps to reproduce
Following suggestions by @violetagg and @spencergibb on customizing DNS cache TTL and TcpClient in Spring Cloud Gateway,  a next configuration was made:
@Component
@Configuration(proxyBeanMethods = false)
public class DnsCacheCustomizer implements HttpClientCustomizer {

    private static final int CACHE_TTL = 5;

    @Bean
    ClientHttpConnector clientHttpConnector(ReactorResourceFactory resourceFactory) {
        TcpClient tcpClient = TcpClient.create(resourceFactory.getConnectionProvider())
                .resolver(nameResolverSpec -> nameResolverSpec.cacheMaxTimeToLive(Duration.ofSeconds(CACHE_TTL)));
        return new ReactorClientHttpConnector(HttpClient.from(tcpClient));
    }

    @Override
    public HttpClient customize(HttpClient httpClient) {
        DnsNameResolverBuilder dnsResolverBuilder = new DnsNameResolverBuilder()
                .channelFactory(EpollDatagramChannel::new)
                .resolveCache(new DefaultDnsCache(0, CACHE_TTL, 0));
        httpClient
                .resolver(nameResolverSpec -> nameResolverSpec.cacheMaxTimeToLive(Duration.ofSeconds(CACHE_TTL)))
                .tcpConfiguration(tcpClient -> tcpClient.resolver(new DnsAddressResolverGroup(dnsResolverBuilder)));
        return httpClient;
    }
}

Having such a configuration, multiple instances of DnsNameResolverBuilder were created: 2 with the configured cache TTL and 2 with the default cache TTL:

But when an actual request comes in, the DnsNameResolverBuilder with a default cache TTL configuration is used and DNS cache with default TTL<PHONE_NUMBER> seconds) is applied:

Expected result
There is a way to configure DNS cache TTL via Spring Framework.
Versions
spring boot/spring-cloud-starter-gateway/spring-boot-starter-webflux: 3.2.8
reactor-netty-http: 1.1.21
netty: 4.1.111.Final

@spring-cloud-issues any update on this issue? i was also facing same problem mentioned in this issue and was looking for help.
I also commented in this open issue https://github.com/spring-cloud/spring-cloud-gateway/issues/561 . pls provide an update when we are getting this issue fixed?

@dimzul did you find any workarounds for this problem? I am happy to connect with you to discuss further.

@bindupatnaik, unfortunately, no: all provided solutions don't have any effect on DNS cache TTL in Netty. I've debugged it locally and tested in real cluster and got the same result with default TTL applied. Also no effect with switching to JVM built-in resolver via:
    @Override
    public HttpClient customize(HttpClient httpClient) {
        httpClient
                .resolver(DefaultAddressResolverGroup.INSTANCE)
                .tcpConfiguration(tcpClient -> tcpClient.resolver(DefaultAddressResolverGroup.INSTANCE));
        return httpClient;
    }

If you find a solution, please share it here.

@dimzul
This configuration is not quite correct. You either use the HttpClient#resolver or HttpClient#tcpConfiguration but never both.
I would recommend HttpClient#resolver. HttpClient#tcpConfiguration is deprecated and everything that you can configure there, you can configure with direct invocation of HttpClient.
@Override
    public HttpClient customize(HttpClient httpClient) {
        httpClient
                .resolver(DefaultAddressResolverGroup.INSTANCE)
                .tcpConfiguration(tcpClient -> tcpClient.resolver(DefaultAddressResolverGroup.INSTANCE));
        return httpClient;
    }

DefaultAddressResolverGroup.INSTANCE is the JDK's built-in domain name lookup mechanism so you need to use the JDK configuration for the ttl.

    @Override
    public HttpClient customize(HttpClient httpClient) {
        httpClient
                .resolver(DefaultAddressResolverGroup.INSTANCE)
                .tcpConfiguration(tcpClient -> tcpClient.resolver(DefaultAddressResolverGroup.INSTANCE));
        return httpClient;
    }

Note that the fluent config methods in reactor-netty's HttpClient don't modify the instance -- they configure and return a duplicated instance. This has bitten me before, and was ultimately solved by reassigning each call or returning the entire chain. Try this:
    @Override
    public HttpClient customize(HttpClient httpClient) {
        return httpClient
                .resolver(DefaultAddressResolverGroup.INSTANCE)
                .tcpConfiguration(tcpClient -> tcpClient.resolver(DefaultAddressResolverGroup.INSTANCE));
    }

Here is a working example that only requires creating a config class, there is no need to override anything.

import io.netty.channel.epoll.EpollDatagramChannel;
import io.netty.resolver.dns.DnsAddressResolverGroup;
import io.netty.resolver.dns.DnsNameResolverBuilder;
import org.springframework.cloud.gateway.config.HttpClientCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GatewayConfig {

  @Bean
  public HttpClientCustomizer httpClientCustomizer() {

    var dnsNameResolverBuilder =
        new DnsNameResolverBuilder()
            .datagramChannelType(EpollDatagramChannel.class) // Use Epoll for Linux
            .ttl(5, 5); // Set minimum and maximum TTL to 5 seconds

    return httpClient -> httpClient.resolver(new DnsAddressResolverGroup(dnsNameResolverBuilder));
  }
}


fix: add NEXT_PUBLIC_ to env

Fixes Issue
**My PR closes #601 **
👨💻 Changes proposed (What did you do ?)

add the NEXT_PUBLIC_ for Next.js
changes Next.js dev command to turn on debugging by default
installed cross-env for debugging

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title and description of the PR is clear and explains the approach.

@mathiasayivor pls review asap


Feature request: Pages

With large numbers pf objects per query, performance becomes an issue.
Especially when I click on load more, it increases the number of objects displayed and makijg performance even worse.
So, an option to show pages at the bottom instead of show more, i.e showing like 10 items per page or so.

How many rendered items are causing a noticeable performance issue in your case?

50+ with 7+ properties per item.
Number of properties displayed affects performance so much.
For example, 200+ objects with 2 properties doesn't cause any issues.


Limit Languages

It'd be nice if there was a way to only have some of the languages downloaded or added to helptags -- it's not a big deal to have the extra ones, but it'd be nice if they didn't show up in my tab complete.
Cool plugin :)

Oops, those don't show up in fzf's :Helptags.
I think I'll end up just moving out the additional langs to a separate directory, and a note in the en help file and readme for how add it back in, which is somewhat in line with :h help-translated
Thank you!

No problem :) thanks!


Flutter firebase_auth - userChanges() behavior without reload()

Hi,
I tested on user.emailVerified & the Stream userChanges() is not updating without  calling user.reload()
  /// Notifies about changes to any user updates.
  ///
  /// This is a superset of both [authStateChanges] and [idTokenChanges]. It
  /// provides events on all user changes, such as when credentials are linked,
  /// unlinked and when updates to the user profile are made. The purpose of
  /// this Stream is to for listening to realtime updates to the user without
  /// manually having to call [reload] and then rehydrating changes to your
  /// application.
  Stream<User> userChanges() => _pipeStreamChanges(_delegate.userChanges());

This part doesn't match the implementation:
The purpose of this Stream is to for listening to realtime updates to the user without manually having to call [reload] and then rehydrating changes to your application.

@zzterrozz
According to the document, reload() is called during below scenarios : credentials are linked, unlinked and when the user's profile is updated.  Are you using any of these scenarios while using userChanges() ?
If so,Please provide flutter doctor -v and a minimal code sample that shows the issue you are facing.

@darshankawar
In the documentation https://pub.dev/documentation/firebase_auth/latest/firebase_auth/FirebaseAuth/userChanges.html :
[...] The purpose of this Stream is to for listening to realtime updates to the user without manually having to call reload and then rehydrating changes to your application.
But in reality, when the user confirm's his email address, the emailVerified property https://pub.dev/documentation/firebase_auth/latest/firebase_auth/User/emailVerified.html new boolean value is not sent to the Stream without calling reload
void reloadUserData() async {
    await FirebaseAuth.instance.currentUser.reload();
  }

@zzterrozz
That seems to be correct if you look at this documentation where it says, if emailVerification is successful, reload the user.

FirebaseAuth auth = FirebaseAuth.instance;

// Get the code from the email:
String code = 'xxxxxxx';

try {
  await auth.checkActionCode(code);
  await auth.applyActionCode(code);

  // If successful, reload the user:
  auth.currentUser.reload();
} on FirebaseAuthException catch (e) {
  if (e.code == 'invalid-action-code') {
    print('The code is invalid.');
  }
}

@darshankawar
In this same documentation you can find:
Alternatively, if you need all user change events which also include authentication state changes and id token changes, you can subscribe via the userChanges() method. This stream provides realtime updates to the User class without having to call reload(), such as when credentials are linked, unlinked and when the user's profile is updated.
Whereas when you listen to this userChanges stream & a user is verifying his email address, the new emailVerified boolean value (from false to true) is not added to the sink.
It then requires to reload manually the user to update the emailVerified value.

Seeing the same behavior for email validation: emailVerified remains false until you do a user.reload().
This goes against what the docs claims as @zzterrozz says.
Was wondering why nothing was happened, so yeah, it's bugged.

I've looked into a bit of code. userChanges does not appear to be a native Android or iOS feature. Not sure how they're managing to listen for those changes when the underlying framework doesn't support it.

The same here. Please add this functionality because the documentation is misleading. I was surprised to find out that email verification doesn't trigger userChanges  after spending a day implementing my code around the idea of real-time user changes.

The reason userChanges was added is that because in reactive applications such as Flutter, most of the time you'd find yourself calling a method, then calling reload and passing the reloaded user into state. Instead we just do this for you to reduce code.
That being said, the documentation could be clearer. We can't trigger events for things such as email verification because we don't know about them. I'll get this actioned to improve the docs.

Hey @zzterrozz, there is a PR in the works that will clarify what to expect with auth events. To be clear, you will not receive a userChanges() event if you update the user.emailVerified property via the Firebase admin SDK for example.


NetworkError when attempting to fetch resource in Firefox

Reproduction
https://github.com/EvgeniyBudaev/remix-ant  In the Fox browser, if you press ctrl+R (reload browser) during fetching data, an error will appear on the page for a moment: "NetworkError when attempting to fetch resource"

System Info
System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
    Memory: 47.81 GB / 62.57 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.2/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Browsers:
    Chrome: 120.0.6099.109
  npmPackages:
    @remix-run/dev: ^1.12.0 => 1.12.0
    @remix-run/eslint-config: ^1.12.0 => 1.12.0
    @remix-run/node: ^1.12.0 => 1.12.0
    @remix-run/react: ^1.12.0 => 1.12.0
    @remix-run/serve: ^1.12.0 => 1.12.0
    vite: ^4.4.9 => 4.4.9

Used Package Manager
npm
Expected Behavior
No error on page view
Actual Behavior
Error: "NetworkError while trying to get resource" while getting data when trying to reload the page in the browser

I don't know that there is anything Remix can do here?  It seems like when Firefox aborts the pending request on a hard reload, it's lets the current JS thread continue executing which results in the network error triggering the error boundary (as it should).  Chrome must stop the current thread, or at least disconnect it from UI updates in some manner.

I experienced the same behaviour on Firefox in Production mode.
The only way I was able to get rid of the error is to wait with the hard reload until the fetcher is on idle state.


[Unblock Legitimate Site] boomchange.com

boomchange.com
We receive messages from our clients that the our site does not work via Google Chrome,
Someone made copies of our site and wants to close our site to scam our clients, we have already been fighting against them for 1 year.
*WE HAVE BEEN WORKING FOR ALMOST 2 YEARS, PLEASE FIX THIS PROBLEM,and remove from blacklist . Please check our revews
https://www.trustpilot.com/review/boomchange.com
https://bitcointalk.org/index.php?topic=5457875.0
https://techbullion.com/the-basics-of-crypto-trading-in-2022-a-guide-for-beginners/
https://evertise.net/best-way-withdraw-binance-to-paypal-in-2023/
https://www.tiktok.com/@boomchange
https://timebusinessnews.com/boomchange-review-is-it-the-right-crypto-trading-platform-for-you/*

I couldn't identify why we blocked id so I unblocked it.
Are there websites impersonating you?

See #14


save pgn after every completed game

save pgn after every completed game instead of at the end of tournament. cutechess already does this and i think this makes more sense as it safeguards against losing all match data if the system/program crashes. also andrew from OB needed this too i think

what? this isn't the case it might simply not be written because it isnt flushed straight away

what? this isn't the case it might simply not be written because it isnt flushed straight away

i just tested again with latest master, and it seems that closing the cmd does save the pgns yeah so some commit might have fixed it. but i notice now a different issue where it prints some pgns of matches that end with illegal bestmoves if you end it this way. oddly enough, this patch seems to fix that behavior too? https://github.com/Disservin/fast-chess/pull/391

what? this isn't the case it might simply not be written because it isnt flushed straight away

i just tested again with latest master, and it seems that closing the cmd does save the pgns yeah so some commit might have fixed it. but i notice now a different issue where it prints some pgns of matches that end with illegal bestmoves if you end it this way. oddly enough, this patch seems to fix that behavior too? #391

wait nvm


Pipe returns undefined

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
The transloco pipe returns undefined when the pipe gets executed before the translation got loaded.
Expected behavior
Either the TRANSLOCO_MISSING_HANDLER should be used or nothing gets returned until a translation was found.
Minimal reproduction of the problem with instructions

Install<EMAIL_ADDRESS>add an @Input with a setter to a component
use transloco pipe with this input
see result with console.log

What is the motivation / use case for changing the behavior?
We have a setter for an attribute that always expect a valid string. With ngx-translate it always worked fine.
Environment

@angular-devkit/architect          0.803.20
@angular-devkit/build-angular      0.803.20
@angular-devkit/build-optimizer    0.803.20
@angular-devkit/build-webpack      0.803.20
@angular-devkit/core               8.3.20
@angular-devkit/schematics         8.3.20
@angular/cdk                       8.2.3
@angular/cli                       8.3.20
@angular/flex-layout               8.0.0-beta.27
@angular/material                  8.2.3
@angular/material-moment-adapter   8.2.3
@ngtools/webpack                   8.3.20
@schematics/angular                8.3.20
@schematics/update                 0.803.20
rxjs                               6.5.3
typescript                         3.5.3
webpack                            4.39.2

Browser:
- [x] Chrome (desktop) version 78.0.3904.108

For Tooling issues:
- Node version: v12.13.0
- Platform:  Windows

I would have prefered on of the two options I expected but this works too I guess.


instruct secret gen controller to leave out certain annotations and labels while copying the secrets

Describe the problem/challenge you have
Shreyas Sreenivas  21 hours ago
Hi,
Needed some inputs regarding the Secret-Gen-Controller SecretImport implementation and possible changes.
Secret Import duplicates the secret into a new namespace. This duplicated secret duplicates all the Annotations and Labels from the source secret (DeepCopy of the secret). This is causing an issue in the TMC managedSecret controller, this duplicate secret is getting cleaned up as the controller use annotations to map it against the server intent and the duplicate secret has the same unique identifier (TMC related ID ) in the secret annotations.
Your thoughts and suggestion on solving this problem ? (edited)
Describe the solution you'd like
Request for change:
Can secret gen controller on duplication of the secret add an extra annotation which depicts that the secret is created via secret-import. In the present implementation, we see that the duplicate secret does have a owner ref to secret import CR, but annotation should be simpler. By this change we can avoid the secret getting deleted from the controller
OR, can the secret gen controller avoid copying the annotations of the secrets ?
Anything else you would like to add:
In slack thread it looked like there were two votes for the second proposal ("avoid copying certain annotations")

Implementation options:

sgc always adds its own annotation to copied secrets (like a watermark)
sgc.secretImport and "placeholder" gets an "exclusion list" for annotations and it filters the annotations on the new secret against that exclusion list
sgc.secretImport and "placeholder" gets a "annotations list" of annotations that the user wants added to the new secret (like a custom watermark - a monogram!)
sgc secret copying avoids copying annotations entirely (based on skimming the current test suite, it doesn't look like we thought it was important to copy annotations previously?)

We'll allow a little period for comments / opinions re. the three above options to surface-  maybe 1 week?
Expectations that do still hold:

if a source secret is deleted, the source-secret's data should be deleted from the copy (the placeholder secret itself should remain, and if it had data from other secrets, that data should remain)

want to note per this test,  and contrary to the earlier writeup,  that actually placeholder secrets don't have annotations copied,  so it's actually only for secret imports.
I edited one of our existing tests to prove this:
https://github.com/vmware-tanzu/carvel-secretgen-controller/pull/48

My experience has been that copying across existing annotations/labels from a secret was always a bad idea. It would muck up things like kapp or other tools that used annotations/labels to track ownership for a deployment etc. In secret copiers I have written have thus never done that, although did allow in the custom resource rule for setting up copying of a secret to allow users to explicitly provide their own set of labels (not annotations) that should be set on the copy of the original secret. I would always add annotations to the copy indicating that what was copied by the secret copier operator, including a reference to namespace/name of resource for the copying rule, so you could track the origin and know where the copy of the secret came from.
It is unfortunate that annotations/labels were being copied because now it is going to be hard to unwind that and make the default not copy them, even though that is the better default strategy.


After resizing, some previous text content appears unexpectedly.

Environment
Microsoft Windows [Version 10.0.18363.778]
Windows Terminal version (if applicable): Version: 0.11.1121.0

Any other software?

Steps to reproduce

type htop
enter Alt+enter to Full Screen
enter Alt+enter to window mode
type q to quit htop
Type Enter
Type Enter
Type Enter
Type Enter * N times

Expected behavior
Just show one and one command prompt.
Actual behavior
After several Enters,  some blue lines appears

huh. I'd have a theory about this, but I actually can't get this to repro locally. Could you share your bash (or zsh or whatever your shell is) config for your prompt? There might be something special about your prompt that's making this easier to hit. I'd bet it's the timestamp at the end of the line...

@zadjii-msft
I use oh-my-zsh with my theme
https://gist.github.com/Po-wei/e09d9bb79f45ea940db078bc739684ba
I also think the problem might come from the RIGHT PROMPT

Since @zadjii-msft assigned himself, I've yanked Triage. 1.1 for now, but if it gets fixed earlier it's worthwhile.


Identify onchain transactions performed on Bison Wallet and provide a list of recognized atomic swaps

@trando1204 You're experiencing transcript error. It sounds like your query would be best dealt with by the support team.
I'll have to refer you to the official support live chat with the ticket ID BIS07638
Please see the link below to our dedicated support line:
Bison wallet Network DApps Support Ticket Requests.
Click on the live chat icon at the bottom corner of the page to initiate chat with a live support agent.


Update http4s-circe, http4s-dsl, ... to 0.23.1

Updates

org.http4s:http4s-circe
org.http4s:http4s-dsl
org.http4s:http4s-ember-server

from 0.23.0 to 0.23.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, semver-patch

Codecov Report

Merging #163 (2ea8873) into develop (9373f16) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #163   +/-   ##
========================================
  Coverage    50.00%   50.00%
========================================
  Files            5        5
  Lines           84       84
========================================
  Hits            42       42
  Misses          42       42

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9373f16...2ea8873. Read the comment docs.


Restructure dockerfile + make

The current flow appears to be:

stop services
remove anonymous volumes (database)
build app image
create + seed database
serve/test

this process takes a while to run, and there are some unnecessary steps in the mix.
This is initiated by running make serve.
as precompiling assets isn't needed for development, we have implemented a multi-stage dockerfile, so we don't precompile assets.
This also reduces the docker context to only needing to know about Gemfiles, which reduces the amount of false positive detections for a rebuild.
We will also avoid destroying volumes. This involves 2 changes:

introducing a make setup command, which currently creates + seeds the database
introducing a make clean command, which will remove docker volumes for you.

The new process will be running make setup once, then being able to run make serve going forward

Nice, thanks for looking into this.
Read through the PR and there is a lot of syntax I'm unfamiliar with.
How much of a performance impact does this have?


GDPR Compliant EULA

Small PR to update the EULA for Workbooks and Inspector to bring it in line with GDPR compliance.
@heiligerdankgesang @mhutch @dapont

FYI this has some formatting issues on the Mac:

I haven't checked Windows, but in the past we've seen inconsistencies between Windows and Mac RTF handling.

@mhutch yep, I've had to fix this before in our previous versions. Thanks for reminding me though!

This PR got in a weird build state. I'll close and open a new one. Thanks!


Multi-node setup: manage_resources invalid on Class[Zabbix::Server]

Documentation reports that "manage_resources" should be available to the following
zabbix::server, zabbix::proxy & zabbix::agent
Using manage_resources on zabbix::server returns an error
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter manage_resources on Class[Zabbix::Server] at /etc/puppetlabs/puppet/environments/production/manifests/zabbix.pp:41 on node HOSTNAME
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Puppet code used
 class { 'zabbix::server':
    database_host  => 'HOSTNAME',
    database_type  => 'mysql',
    manage_resources => true,
  }

Hi elricsfate,
Thank you for making time to create this issue. Also many thanks for creating an pull request!
Kind regards,
Werner

Howdy Werner,
No problem. Thanks for the swift inclusion.
Sincerely,
elricsfate


All trail failed while very first using default mnist-pytorch/config.yml

Describe the issue:
I follow the instruction in the official website: https://nni.readthedocs.io/zh/stable/installation.html. However when I running the command nnictl create --config nni/examples/trials/mnist-pytorch/config.yml and open the website it shows up, I notice all trail failed.
Environment:

NNI version:v2.6
Training service :remote
Client OS:Macos
Server OS (for remote mode only): Ubuntu 16.04
Python version: 3.8
PyTorch/TensorFlow version: NAN
Is conda/virtualenv/venv used?: use conda
Is running in Docker?: no

Configuration:

Experiment config (remember to remove secrets!): mnist-pytorch/config.yml
Search space: <default in mnist-pytorch/config.yml >

Here is the screen shoot:

Please check the trial log to see why it failed.
And check if mnist.py works without nnictl (run the python script directly).

Please check the trial log to see why it failed. And check if mnist.py works without nnictl (run the python script directly).

@21wang12 - had you reviewed the logs? wondering whether you had resolve the issue by review error messages logs.

Please check the trial log to see why it failed. And check if mnist.py works without nnictl (run the python script directly).

@21wang12 - had you reviewed the logs? wondering whether you had resolve the issue by review error messages logs.

No, after days debugging, the problem still not be solved. I am not using it anymore now. Thanks for your reply, and I am deciding to close this issue.


Minor fixes for going live

make the announcement bar less prominent
add GA ID for 2020
add news link to blog

After all these test failures, finally found a way to run pytest locally without docker :-)


Url change on article

This is in reference to https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/2328

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@nenonix I have looked all over, the end user wants that link back in the original MS article since they want to refer their clients to it. I don't see any other location for this unless the article can be saved and rather uploaded directly onto the MS side of things?

@jambirk Hi James, changes look correct. Could you please review and merge? Thanks!

Closing the PR, we are removing the section rather than updating the link.


Fixing SplitButton's handling on keyboard input

The SplitButton did not trigger its Command with keyboard input. It now does the same processing as the OS Xaml ButtonBase.
Updated the interactive test accordingly.

/azp run

Yes indeed teaP, you got it.


Mac-3.4 no mountable file systems

To Reproduce
Steps to reproduce the behavior:

First, downloaded the dmg
Tried opening after giving MacOS permission to do so
Get error saying disk image could be open since there is no mountable file system

This could be due to the code-signing process that we have introduced. Which version of MacOS are you using?

Hello Antonin,
I’m using MacOS Big Sur version 11.0 Beta (20A5374i). I had the permissions issue but was able to force the OS to open the dmg file before getting the message.
Thank you for your work on OpenRefine, it is one of my favorite data science utilities.
Kind regards,
Tony

On Sep 24, 2020, at 9:22 AM, Antonin Delpeuch<EMAIL_ADDRESS>wrote:
This could be due to the code-signing process that we have introduced. Which version of MacOS are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/OpenRefine/OpenRefine/issues/3199#issuecomment-698340649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCZD5V7FJL2XLVDPWPOS23SHNBZJANCNFSM4RU5HDXA.

We've had another report of the same issue on the Big Sur beta. It hasn't been tested on that platform. Since the beta has clearly changed/broken something I'd suggest opening a bug report against macOS.

This was solved by dropping the codesigning process. We need to reintroduce it properly by using our CI to do the entire packaging process on Mac.


How do you visualize e-mail views in development mode

I'm using this Gem and it's working very well. But I can't realize how to visualize the delivered e-mail with images.
I tried sending to my GMail account but I can't see the images (the generated HTML image path is just /images/mail/my-img.png). There is any config to add the http://<IP_ADDRESS>:3000 part to the image path?

Ok, I could do that. :)
Just a matter of curiosity: which convention didn't you agree with from premailer-rails3 gem?

The way it handles CSS didn't seem right. I also like to write my text parts for emails manually, and I needed to support UTF-8. The two gems are so tiny though, I guess there's probably no reason why we can't work together ...

Thanks for accepting the pull request. :)


Fastlane live build that was working now fails

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
The main problem seems to be deliver fails, but the subsequent slack lane still runs (sending the "success" message), but there is no binary in itunes. There is an error in the log:
ERROR [2017-04-20 14:01:52.88]: undefined method `[]=' for nil:NilClass
but it's hard to see what it is in reference to.
Also, the ipa does not get uploaded to hockeyapp, there is a log message:
INFO [2017-04-20 14:01:01.83]: ▸ Unable to find application named 'HockeyApp'
I don't recall having to install a hockeyapp app...
Also I see:
INFO [2017-04-20 14:30:46.91]: $ security set-key-partition-list -S apple-tool:,apple: -k "" /Users/Shared/Jenkins/Library/Keychains/login.keychain-db
security: SecKeychainItemSetAccessWithPassword: The user name or passphrase you entered is not correct.
But I am pretty sure nothing has changed there...
Complete output when running fastlane, including the stack trace and command used
attached, as it is large
fastlane.txt
Environment
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.4

Ruby
2.3.1

Bundler?
false

Git
git version 2.11.0 (Apple Git-81)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.12.4 (16E195)

Ruby Lib Dir
/usr/local/Cellar/ruby/2.3.1_2/lib

OpenSSL Version
OpenSSL 1.0.2j  26 Sep 2016

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.3

System Locale

Variable
Value

LANG
en_AU.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
fastlane_require "spaceship"

fastlane_version "2.0.3"

default_platform :ios

environments = [ "HC", "biyi", "detectahotel", "roomguru", "AR", "HE" ]

platform :ios do

  before_all do
    ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
  end

  private_lane :require_env do
    if(!ENV["app_identifier"])
      puts "No ENViroment"
      exit
    end
  end

  private_lane :setup_options_beta do |options|
    options[:env] = "beta"
    setup_options options
  end

  private_lane :setup_options_live do |options|
    options[:env] = "live"
    setup_options options
  end

  private_lane :setup_options do |options|
    require_env
    env = options[:env]
    options[:match_type] = (env == "live" ? "appstore" : "adhoc")
    options[:match_readonly] = !(options[:create_profile])
    options[:notifications_app_identifier] = ENV['app_identifier'] + (env == "live" ? "" : '.beta') + '.Notifications'
    options[:do_deploy] = !(options[:create_profile])
    options[:gym_scheme] = ENV["gym_scheme_prefix"] + (env == "live" ? " AppStore" : " Beta")
    options[:gym_output_name] = options[:output_name] ? options[:output_name] : options[:gym_scheme]
    options[:hockey_api_token] = ENV["hockey_api_token_" + env]
    options[:hockey_ipa] = options[:gym_output_name] + ".ipa"
    Dir.chdir("..") do
      options[:app_version] = sh "./scripts/getCFBundleShortVersionString.sh | tr -d '\n'"
      options[:app_build] = sh "./scripts/getCFBundleVersion.sh | tr -d '\n'"
    end
  end

  lane :test do |options|
    setup_options_beta options

    match(type: "appstore", readonly: !(options[:create_profile]))
    match(type: options[:match_type], app_identifier: options[:notifications_app_identifier], readonly: options[:match_readonly])
    if(!(options[:create_profile]))
      ipa = gym(scheme: "HCWeb TestFlight", output_name: options[:gym_output_name], export_method: "app-store")
      pilot(ipa: ipa)
      slack_deploy_message options
    end
  end

  lane :beta do |options|
    setup_options_beta options

    match(type: options[:match_type], readonly: options[:match_readonly])
    match(type: options[:match_type], app_identifier: options[:notifications_app_identifier], readonly: options[:match_readonly])
    if(options[:do_deploy])
      gym(scheme: options[:gym_scheme], output_name: options[:gym_output_name], export_method: "ad-hoc")
      hockey(api_token: options[:hockey_api_token], ipa: options[:hockey_ipa])
      slack_deploy_message options
    end
  end

  lane :preview_all do |options|
    for env in environments do
      Dir.chdir("..") do
        sh "fastlane preview --env " + env
      end
    end
  end

  lane :preview do |options|
    setup_options_live options

    Dir.chdir("..") do
      sh "deliver generate_summary -a " + ENV["app_identifier"]
      sh "mv Preview.html Preview-" + ENV["gym_scheme_prefix"] + ".html"
    end
  end

  lane :live do |options|
    setup_options_live options

    match(type: options[:match_type], readonly: options[:match_readonly])
    match(type: options[:match_type], app_identifier: options[:notifications_app_identifier], readonly: options[:match_readonly])
    if(options[:do_deploy])
      # snapshot
      gym(scheme: options[:gym_scheme], output_name: options[:gym_output_name], export_method: "app-store")
      deliver(app_version: options[:app_version], submit_for_review: !options[:skip_review])
      hockey(api_token: options[:hockey_api_token], ipa: options[:hockey_ipa])
      slack_deploy_message options
    end
  end

  lane :release do |options|
    setup_options_live options

    Spaceship::Tunes.login()
    app = Spaceship::Tunes::Application.find(ENV['app_identifier'])
    version = app.edit_version
    if(version)
      if(version.can_send_version_live)
        version.release!
        puts ENV["app_identifier"] + " released"
        slack_release_message options
      else
        puts ENV["app_identifier"] + " not releasable"
      end
    else
      puts ENV["app_identifier"] + " already released"
    end
  end

  lane :release_all do
    for env in environments do
      Dir.chdir("..") do
        sh "fastlane release --env " + env
      end
    end
  end

  lane :upload_screenshots do |options|
    setup_options_live options
    deliver(app_version: options[:app_version], skip_screenshots: false, skip_metadata: true, submit_for_review: false)
  end

  lane :upload_screenshots_all do
    for env in environments do
      Dir.chdir("..") do
        sh "fastlane upload_screenshots --env " + env
      end
    end
  end

  lane :init_match do
    match(type: "development", readonly: true, app_identifier: "com.hotelscombined.findhotels.dev")
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.beta)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.AR.beta)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.HE.beta)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.biyi.beta)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.detectahotel.beta)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.roomguru.beta)

    match(type: "development", readonly: true, app_identifier: "com.hotelscombined.findhotels.dev.Notifications")
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.beta.Notifications)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.AR.beta.Notifications)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.findhotels.HE.beta.Notifications)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.biyi.beta.Notifications)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.detectahotel.beta.Notifications)
    #match(type: development, readonly: true, app_identifier: com.hotelscombined.roomguru.beta.Notifications)
  end

  private_lane :slack_deploy_message do |options|
    payload = {
      "App Identifier" => ENV["app_identifier"],
      "Version" => options[:app_version],
      "Build" => options[:app_build]
    }
    if(options[:env] == "beta")
      payload["Download"] = ENV["hockey_download_link"]
    end
    slack(
      message: "iOS App successfully deployed.",
      payload: payload
    )
  end

  private_lane :slack_release_message do |options|
    payload = {
      "App Identifier" => ENV["app_identifier"],
      "Version" => options[:app_version],
      "Build" => options[:app_build]
    }
    slack(
      message: "iOS App successfully released.",
      payload: payload
    )
  end

  error do |lane, exception|
    slack(
      message: "iOS App deployment failed.",
      success: false,
      payload: {
        "App Identifier" => ENV["app_identifier"],
        "Exception" => exception.message
      }
    )
  end

end

`./fastlane/Appfile`
apple_id<EMAIL_ADDRESS>team_id "SE23A8X5U7"
for_lane :beta do
	app_identifier ENV['app_identifier'] + '.beta'
end
for_lane :live do
	app_identifier ENV['app_identifier']
end
for_lane :test do
	app_identifier ENV['app_identifier']
end
for_lane :upload_screenshots do
	app_identifier ENV['app_identifier']
end

fastlane gems

Gem
Version
Update-Status

fastlane
2.27.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.2

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.1

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.4.4

rouge
1.11.1

xcpretty
0.2.4

terminal-notifier
1.7.1

terminal-table
1.4.5

plist
3.1.0

addressable
2.3.8

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.4

excon
0.54.0

faraday
0.9.2

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20160826

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
1.6.8

gh_inspector
1.0.2

uber
0.0.15

representable
2.3.0

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

hurley
0.2

little-plugger
1.1.4

multi_json
1.12.1

logging
2.1.0

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
<IP_ADDRESS>

google-api-client
0.9.19

mini_magick
4.5.1

multi_xml
0.5.5

rubyzip
1.1.7

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.1.1

bundler
1.13.6

faraday_middleware
0.10.0

json
2.0.2

io-console
0.4.6

generated on: 2017-04-20

We are experiencing exactly the same issue as of earlier on today. Here's the stack trace:
/Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/spaceship/lib/spaceship/tunes/language_item.rb:20:in `[]=': [!] undefined method `[]=' for nil:NilClass (NoMethodError)
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:81:in `block (2 levels) in upload'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:78:in `each'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:78:in `block in upload'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:69:in `each'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:69:in `upload'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/runner.rb:62:in `upload_metadata'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/runner.rb:21:in `run'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:63:in `block (2 levels) in run'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:40:in `run!'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:164:in `run'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:12:in `start'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/fastlane/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
from /Users/appdeploy/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.27.0/bin/fastlane:20:in `'
from /Users/appdeploy/.fastlane/bin/bundle/bin/fastlane:22:in `load'
from /Users/appdeploy/.fastlane/bin/bundle/bin/fastlane:22:in `'

Same issue here, exact same stack trace as above.

@evilDave perhaps we could change the title of this issue to something that will get picked up by the search that Fastlane performs when encountering the error e.g. "Deliver Error: undefined method `[]=' for nil:NilClass in spaceship/tunes/language_item.rb"

I thought Apple may changed few JSON structure, some end point has been removed and cause this issue. In my case, I use Spaceship to edit my new app, but got the same error too. I found the support url had the "language" related Key in JSON structure before, but now is missing.  As workaround, i comment out the code which modify the support url and now Spaceship work as usual.

Same issue here
[14:36:29]: Writing to 'fastlane/metadata/zh-Hant/description.txt' [14:36:29]: Writing to 'fastlane/metadata/zh-Hans/description.txt' [14:36:29]: Writing to 'fastlane/metadata/en-US/description.txt' [14:36:29]: Writing to 'fastlane/metadata/zh-Hant/keywords.txt' [14:36:29]: Writing to 'fastlane/metadata/zh-Hans/keywords.txt' [14:36:29]: Writing to 'fastlane/metadata/en-US/keywords.txt' [14:36:29]: Writing to 'fastlane/metadata/zh-Hant/release_notes.txt' [14:36:29]: Writing to 'fastlane/metadata/zh-Hans/release_notes.txt' [14:36:29]: Writing to 'fastlane/metadata/en-US/release_notes.txt' [14:36:29]: Ran into error while trying to connect to iTunes Connect / Dev Portal: undefined method []' for nil:NilClass
[14:36:29]: Falling back to manual onboarding
[14:36:29]: undefined method []' for nil:NilClass [14:36:29]: An error occurred during the setup process. Falling back to manual setup!

Same issue here

[14:36:29]: Writing to 'fastlane/metadata/zh-Hant/description.txt'
[14:36:29]: Writing to 'fastlane/metadata/zh-Hans/description.txt'
[14:36:29]: Writing to 'fastlane/metadata/en-US/description.txt'
[14:36:29]: Writing to 'fastlane/metadata/zh-Hant/keywords.txt'
[14:36:29]: Writing to 'fastlane/metadata/zh-Hans/keywords.txt'
[14:36:29]: Writing to 'fastlane/metadata/en-US/keywords.txt'
[14:36:29]: Writing to 'fastlane/metadata/zh-Hant/release_notes.txt'
[14:36:29]: Writing to 'fastlane/metadata/zh-Hans/release_notes.txt'
[14:36:29]: Writing to 'fastlane/metadata/en-US/release_notes.txt'
[14:36:29]: Ran into error while trying to connect to iTunes Connect / Dev Portal: undefined method []' for nil:NilClass [14:36:29]: Falling back to manual onboarding [14:36:29]: undefined method []' for nil:NilClass
[14:36:29]: An error occurred during the setup process. Falling back to manual setup!

Same issue here
[!] undefined method []= for nil:NilClass (NoMethodError)

Same problem
    `/Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/spaceship/lib/spaceship/tunes/language_item.rb:20:in `[]=': [!] undefined method `[]=' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:81:in `block (2 levels) in upload'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:78:in `each'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:78:in `block in upload'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:69:in `each'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/upload_metadata.rb:69:in `upload'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/runner.rb:62:in `upload_metadata'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/runner.rb:21:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:63:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:40:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:164:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/deliver/lib/deliver/commands_generator.rb:12:in `start'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/fastlane/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.27.0/bin/fastlane:20:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'`

same

me too
[10:45:06]: undefined method `[]=' for nil:NilClass

me too :(

This bug is due to inconsistency in keyword conversion table between iTunes Connect and fastlane, so fix it by correcting wrong keywords.
https://github.com/fastlane/fastlane/pull/8925/files

@kazuhidet worked for me thanks !

Same problem. We run Jenkins on several nodes, so applying https://github.com/fastlane/fastlane/pull/8925/files manually is difficult and error prone, and we are trying to submit to ITC today.
Any ETA on a fix?
Thanks, awesome tools BTW!!

@kazuhidet worked for me too! 👍

@kazuhidet thanks for the fix!

@kazuhidet worked for me, thank you!

We're looking at getting #8925 merged, just need to get something sorted out with CircleCi and it should be good to go, probably later on today.

@kazuhidet thanks!

@kazuhidet where do you fix this file ? Thanks

We're preparing a new release right now, it should be live in about 30 minutes 🚀

Wouhou, very cool !
Thanks !

Le 20 avr. 2017 à 18:15, Felix Krause<EMAIL_ADDRESS>a écrit :
We're preparing a new release right now, it should be live in about 30 minutes 🚀
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/fastlane/fastlane/issues/8922#issuecomment-295797337, or mute the thread https://github.com/notifications/unsubscribe-auth/AQxqPpp-F07P9toTFIsmPn47mQnSbgmVks5rx4S4gaJpZM4NCiTu.

Working now
Thanks!

Confirmed fixed in 2.28.1. Awesome work. Thanks so much!


mindreader should hash one-block files when writing to local filesystem

mindreader should hash one-block files when writing to local filesystem.
Some filesystems don't like it if you write 10k+ files into a single directory, so maybe hash files into subdirectories 5k at a time or so.
of course the merger would need to know how to handle this setup as well.

For testing, we put 300k one-block files in a single folder on zfs fliesystem, without issues.
However for people using ext filesystem, this issue may still be an issue.

This is also needed when writing to minio.  From minio devs:
It is fairly easy for MinIO to introduce a hierarchy internally by hashing the object keys. We chose to not do it for these reasons:

Applications will never be export to their filesystem or other storage targets because they won't be able to handle a large flat namespace.
MinIO's per-directory limit object limit is determined by the number of drives per erasure-set. This is 16 times the limit of the underlying filesystem.
Keep the backend human-readable for supportability.

You mean hash the whole thing? or some parts of it?
Their names are used for a few things, to ensure quick contiguousness (with prev_id, and block_id), and most importantly, they are used for sorting.. if the name was a pure hash, it wouldn't be sorted, and that's a basic assumption of the  merger's query with prefix-scans.

I mean like instead of a file like bucketname/0014999900.dbin.zst the file is instead bucketname/00/14/99/0014999900.dbin.zst  Or however you like so then this is less than 5000 files per directory.
When using ext4, you can only get 32K files in minio before it stops adding new ones.

Yes, that I agree.  That would apply to merged blocks files, as well as one-block files.
Let me rename this issue.

Ok, updated the issue, please comment if that's not what you meant.

Those are the places concerned with this:

In the node-manager, that's for the mindreader-driven bundler (when passed --mindreader-merge-and-store-directly) https://github.com/dfuse-io/node-manager/blob/develop/mindreader/merge_archiver.go#L145
In the merger:

https://github.com/dfuse-io/merger/blob/develop/storage.go#L70 (that's in the sort of quick detection algo, to simulate a scan with some prefix searches)
The function defined here: https://github.com/dfuse-io/merger/blob/develop/storage.go#L136
Where it's actually used: https://github.com/dfuse-io/merger/blob/develop/merger.go#L390

In bstream, assumed to be such here: https://github.com/dfuse-io/bstream/blob/develop/filesource.go#L134

Ideally, it could be backwards compatible!  That filesource.go file could first check with 000/000/0000.dbin.zstd, and then fallback on<PHONE_NUMBER>.dbin.zstd, perhaps with a ENV var set, otherwise, not even bother.
What would be the best format? 00/00/000000 (? 000/000/0000 ? on EOSIO, it's 10 digits, you can survive the length of the chain).

We could have a decorator for the Store abstraction, that automatically tweaks the files, on the fly, perhaps when passed with some option like: s3://blahblah/path?folderize=aa/bb/cccccccccccccccc or something. This could be declared on the CLI, and added only when needed, and the Store wrapper would handle it both ways.


Beta

Description
Merging down change to semantic release config file.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Create Buffer using current location

Hello,
I would like to create a buffer from my my current location point without having to touch the MapView.
The code below works but when a point is touched on the MapView. I'd rather like to get a point of the locationDisplay loaded  i.e  (loc = locationDisplay.getMapLocation();) and use it to create a buffer.
_

hospitals_MapView.setOnTouchListener(new DefaultMapViewOnTouchListener(this, hospitals_MapView)
{
@Override
public boolean onSingleTapConfirmed(MotionEvent motionEvent) {
// get the point that was clicked and convert it to a point in the map
            android.graphics.Point clickLocation = new android.graphics.Point(Math.round(motionEvent.getX()),
                    Math.round(motionEvent.getY()));

            Toast.makeText(Hospitals_Activity.this, ""+clickLocation, Toast.LENGTH_LONG).show();

            //graphicsOverlay.clearSelection();

            Point mapPoint = mMapView.screenToLocation(clickLocation);
            // only draw a buffer if a value was entered
            if (!bufferInput.toString().isEmpty()) {
                Polygon bufferGeometry = GeometryEngine
                        .buffer(mapPoint, miles.convertTo(meters, Double.valueOf(bufferInput.toString())));
                // show the buffered region as a green graphic
                Graphic bufferGraphic = new Graphic(bufferGeometry, fillSymbol);
                graphicsOverlay.getGraphics().add(bufferGraphic);
                // show a red marker where clicked
                Graphic markerGraphic = new Graphic(mapPoint, new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE,0xFFFF0000, 5));
                //graphicsOverlay.getGraphics().add(markerGraphic);
            } else {
                Toast.makeText(Hospitals_Activity.this, "Please enter a buffer distance first.", Toast.LENGTH_LONG).show();
            }
            return true;
        }
    });

_
When I try to use the point extracted from locationDisplay and call it from a Button Action nothing happens. I get no error but I also get no result. Kindly help.
Thanks.

You can get the geometry from locationDisplay, then use getMapLocation to get the point to create the buffer with. This should work, but are you not seeing the results?
Are you using an emulator?

Hi Eric,
I am actually using my Android Device for testing.  I did get good results with the .setonTouchListener but my major challenge is now getting a point of the current location and showing a buffer around it or even just showing the buffer on opening the activity. Well here's the code I'm trying to use.  Kindly advise if I'm doing it wrongly and what I should correct.
**>

ImageButton go = (findViewById(R.id.my_location_button));
    go.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            if (canGetLocation() == true) {
                locationDisplay = hospitals_MapView.getLocationDisplay();
                locationDisplay.startAsync();
                locationDisplay.setAutoPanMode(LocationDisplay.AutoPanMode.NAVIGATION);

                loc = locationDisplay.getMapLocation();

            } else {
                showSettingsAlert();
            }

            //Point wgs84Point = (Point) GeometryEngine.project(loc, SpatialReferences.getWgs84());

//
//                wgs84Point = new Point(Math.round(loc.getX()),Math.round(loc.getY()));
            double x = loc.getX();

            int intx = (int)x;

            double y = loc.getY();

            int inty = (int)y;

            //Toast.makeText(getApplicationContext(),"x : "+intx+" y : "+inty,Toast.LENGTH_LONG).show();

            android.graphics.Point locationPoint = new android.graphics.Point(Math.round(intx),Math.round(inty));

            //Toast.makeText(getApplicationContext(),locationPoint.toString(),Toast.LENGTH_LONG);

            final Integer bufferInput = 1;

            final LinearUnit miles = new LinearUnit(LinearUnitId.MILES);
            final LinearUnit meters = new LinearUnit(LinearUnitId.METERS);

            final SimpleFillSymbol fillSymbol = new SimpleFillSymbol(SimpleFillSymbol.Style.SOLID, 0x8800FF00, new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, 0xFF057e15, 5));

            GraphicsOverlay graphicsOverlay = new GraphicsOverlay();

            Polygon bufferGeometry = GeometryEngine.buffer(loc, miles.convertTo(meters, Double.valueOf(bufferInput.toString())));
            // show the buffered region as a green graphic
            Graphic bufferGraphic = new Graphic(bufferGeometry, fillSymbol);
            graphicsOverlay.getGraphics().add(bufferGraphic);
            // show a red marker where clicked
            Graphic markerGraphic = new Graphic(loc, new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE,0xFFFF0000, 15));
            graphicsOverlay.getGraphics().add(markerGraphic);

            //Point mapPoint = hospitals_MapView.screenToLocation(locationPoint);
            // only draw a buffer if a value was entered
            if (!bufferInput.toString().isEmpty()) {

            } else {
                Toast.makeText(Hospitals_Activity.this, "Please enter a buffer distance first.", Toast.LENGTH_LONG).show();
            }

        }
    });

**

You'll probably need to load the  LocationDisplay before trying to use it.
For example, here is my code that seems to work for me. I'm listening for when the location display has started, then I'll call my bufferLocation method:
        // get the MapView's LocationDisplay
        mLocationDisplay = mMapView.getLocationDisplay();

        // Listen to changes in the status of the location data source.
        mLocationDisplay.addDataSourceStatusChangedListener(new LocationDisplay.DataSourceStatusChangedListener() {
            @Override
            public void onStatusChanged(LocationDisplay.DataSourceStatusChangedEvent dataSourceStatusChangedEvent) {

                // If LocationDisplay started OK, then continue.
                if (dataSourceStatusChangedEvent.isStarted())
                    bufferLocation();

                   .....

                }
            }
        });

        mLocationDisplay.startAsync();

Hello Eric,
Thanks very much for at least giving me a first break through.
I bear good news and bad news.
The good news is clicking a button to load buffer around a point has finally worked. This will come in handy in case I completely cannot get the buffer when the Map Loads.
The bad news is  .addDataSourceStatusChangedListener seems not to work efficiently. The Content in the inner class can somehow not be accessed when the coordinates have been loaded.  See image below  where I toast the result. Therefore, I can still not load the Buffer when the location immediately loads without having to initiate the action by a button click.
Here is the code.
**>         locationDisplay = health_lab_mapview.getLocationDisplay();

    locationDisplay.getMapLocation();
    locationDisplay.setAutoPanMode(LocationDisplay.AutoPanMode.NAVIGATION);

    Toast.makeText(getApplicationContext(),"Location Loaded"+locationDisplay.getMapLocation(),Toast.LENGTH_LONG).show(); //This is outside the class and gives the result [0.00000,0.00000,0.00000,NaN]

    locationDisplay.addDataSourceStatusChangedListener(new LocationDisplay.DataSourceStatusChangedListener() {
        @Override
        public void onStatusChanged(LocationDisplay.DataSourceStatusChangedEvent dataSourceStatusChangedEvent) {
            if(dataSourceStatusChangedEvent.isStarted()&&locationDisplay.getMapLocation()!=null)
            {
                Toast.makeText(getApplicationContext(),"Data Source Location Loaded"+locationDisplay.getMapLocation(),Toast.LENGTH_LONG).show(); //This is inside the class and gives the result [0.00000,0.00000,0.00000,NaN]

            }
            else
            {
                Toast.makeText(getApplicationContext(),"Please wait for the Location to load",Toast.LENGTH_LONG).show();
            }
        }
    });**

Thanks for sharing.
The only difference is, in my code that works, simply check fo "isStarted()", instead of "isStarted()&&locationDisplay.getMapLocation()!=null)"
What happens when you omit "&&locationDisplay.getMapLocation()!=null)" from that check?

When I omit "&&locationDisplay.getMapLocation()!=null)" I still get the result above.
Is there a way I can get the point when it already has coordinates say perhaps delay it for 2 or 3 seconds?
I feel like the problem is when I call isStarted() immediately the MapView opens, I get the Point when the co-ordinates are still 0.000000.


When used within another data-toggle="...", then size set set incorrectly.

I notice this when used within data-toggle="tab" sections.

work around is to add data-width="60" or similar.


{AKS} Update AKS live test matrix

This checklist is used to make sure that common guidelines for a pull request are followed.

{AKS} Update AKS live test matrix

Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

AKS


Is there a way to make reset the flatpickr to the default date?

I'd like to make it so that the flatpickr has a button that "clears" it, but to the default date provided when it was initialized. Something like the 'data-clear' button. Is there a way to do this using vanilla flatpickr? If not, could anyone point me in the right direction on how to implement this myself?
Thanks!

Hello,
Of course that is possible.
While I won't implement it for you, here's how it would work:

onReady() - check if date is preloaded and save it somewhere
Create your own "clear" button, and use setDate() to reset the selected date to the one saved in step 1

Check out the documentation for details.
https://chmln.github.io/flatpickr/

For reference, a solution/workaround when one wants to reset via form.reset() (and using altInput): https://github.com/chmln/flatpickr/issues/816#issuecomment-338687240

flatpickr instanced stored in any invoked element as _flatpickr
you can get intanced using  element._flatpickr  and try any methods https://flatpickr.js.org/instance-methods-properties-elements/#methods
flatpickr instance doc is here https://flatpickr.js.org/instance-methods-properties-elements/#retrieving-the-flatpickr-instance


tiny - fix typo in mkdocs.yaml

Convergnce → Convergence

Thanks for catching this. Looks good to me.


Cannot modify context size through /set parameter num_ctx 8192

What is the issue?
I'm using Ollama as backend and using OpenAI's client.chat.completions.create to send messages.
I found the logs said the input has been truncated and n_ctx=2048.
INFO [update_slots] input truncated | n_ctx=2048 n_erase=14097 n_keep=4 n_left=2044 n_shift=1022 tid="62632" timestamp=1721797206
I followed this way to set the context /set parameter num_ctx 8192. But it doesn't work, when I sent another message. the logs still said input_truncated:
INFO [update_slots] input truncated | n_ctx=2048 n_erase=14097 n_keep=4 n_left=2044 n_shift=1022 tid="62632" timestamp=1721797206
[GIN] 2024/07/24 - 13:00:49 | 200 |   42.2955085s |       <IP_ADDRESS> | POST     "/v1/chat/completions"

I'm using the phi-3 128k. how can I use a context larger than 2048 using ollama + openai api?
Thank you.
OS
Windows
GPU
Nvidia
CPU
AMD
Ollama version
0.2.8

Add "options": { "num_ctx": 8192} to the call you are making to the API.  Alternatively,, create a new model with the default context size  that you want:
ollama show --modelfile phi3:14b-medium-128k-instruct-q4_K_M > Modelfile

Edit the Modelfile and add
PARAMETER num_ctx 8192

Create the new model:
ollama create phi3:14b-medium-128k-instruct-8k-q4_K_M -f Modelfile

As @rick-github mentioned, "options": { "num_ctx": 8192} can be set if using an ollama api. However, if using an oai compat api @nyl199310, the second approach is the only viable method right now (creating a new model with default num_ctx. The oai endpoint does not include a field for setting context length, so you can't pass in an argument for it right now. This is on our radar but no specific timeline for other methods at this time


Add Matter 1.2 clusters directly to drivers

Adds stripped down versions of clusters directly to drivers so that we do not need to depend on lua libs releases.
Also adds some test files for drivers where they were missing.

This still needs some clean up, but with these changes in place I am able to successfully test with the Matter 1.2 drivers on a hub with 52 lua libs (i.e. without the Matter 1.2 cluster definitions).
I will plan to do some more clean up, but this should be pretty close. With these changes in place, we shouldn't need to depend on a lua libs update to support Matter 1.2 device types on all hubs.
Overall, the driver memory footprint has some modest savings in most cases when using the built-in cluster definitions in the driver. However, there are large savings for Air Quality Sensor due to compressing the 12 optional concentration measurement clusters down and having them utilize one base ConcentrationMeasurement cluster definition. All other drivers had smaller memory decreases, but still noticeable. In all cases, the drivers are not near the driver disk space limit (different from memory limit) thanks to comment stripping and cutting out unnecessary bloat from the cluster definitions. There is probably opportunity for more trimming as well.
Here are some memory stats for each of the 4 drivers with a specific device type:
Matter Sensor - Air Quality Sensor
+-------------+----------------------------------+-------------------------------+
|    Value    | Using 53 with lua libs clusters  | Using 52 with driver clusters |
+-------------+----------------------------------+-------------------------------+
| Proto count |                             1724 |                          1286 |
| Proto size  |                          668004  |                        512640 |
| Heap        |                          3194880 |                       2744320 |
+-------------+----------------------------------+-------------------------------+

Matter Thermostat - Room AC
+-------------+---------------------------------+-------------------------------+
|    Value    | Using 53 with lua libs clusters | Using 52 with driver clusters |
+-------------+---------------------------------+-------------------------------+
| Proto count |                            1209 |                          1123 |
| Proto size  |                          519824 |                        489916 |
| Heap        |                         2187264 |                       2953216 |
+-------------+---------------------------------+-------------------------------+

Matter RVC - Robot Vacuum Cleaner

+-------------+---------------------------------+-------------------------------+
|    Value    | Using 53 with lua libs clusters | Using 52 with driver clusters |
+-------------+---------------------------------+-------------------------------+
| Proto count |                             882 |                           857 |
| Proto size  |                          417440 |                        409276 |
| Heap        |                         2523136 |                       1499136 |
+-------------+---------------------------------+-------------------------------+

Matter Appliance - Dishwasher

+-------------+---------------------------------+-------------------------------+
|    Value    | Using 53 with lua libs clusters | Using 52 with driver clusters |
+-------------+---------------------------------+-------------------------------+
| Proto count |                            1253 |                          1232 |
| Proto size  |                          557368 |                        554812 |
| Heap        |                         5353472 |                       2400256 |
+-------------+---------------------------------+-------------------------------+

Ticket Reference for this is :  CHAD-13240

Added a link to a confluence page summarizing the testing for this change here: https://smartthings.atlassian.net/wiki/spaces/~62de3b63b6b0b70770d7905d/pages/3238854850/Matter+1.2+VDA+Testing+with+Driver+Clusters
This is also linked in the top comment on this PR.
Ticket: https://smartthings.atlassian.net/browse/CHAD-13240

I added the embedded clusters for matter-pump since they were missing in my first pass of this.
Also, I added additional handing for the get_endpoints function for cases when we are running older lua libs and must rely on the embedded clusters for things like feature maps. I added the embedded-clusters-utils file to have this workaround for old hubs to allow the get_endpoints functionality to still work


Add types to public functions

can you add the linter rule too?

The linter rules ends up spamming us in tests and top-level final fields – things that should be inferred
...so I left it off


[EventHubs] Final docs update

Readme final update

Update links

update async sample in readme

Can one of the admins verify this patch?


Rick Roll terminal

Fun stuff here: http://osxdaily.com/2013/04/01/rickroll-terminal/

Do you want to take the credit and make a pull request for it? :)


Could not compile via Carthage.

Probably this project have not shared scheme for carthage.
$ carthage update --platform iOS BlueSignals
*** Cloning BlueSignals
*** Checking out BlueSignals at "1.0.10"
*** xcodebuild output can be found in /var/folders/mj/5zhy3sh11h18pdwrb4v04b300000gn/T/carthage-xcodebuild.kMm90v.log
*** Skipped building BlueSignals due to the error:
Dependency "BlueSignals" has no shared framework schemes for any of the platforms: iOS

If you believe this to be an error, please file an issue with the maintainers at https://github.com/IBM-Swift/BlueSignals/issues/new

$ carthage update BlueSignals
*** Fetching BlueSignals
*** Checking out BlueSignals at "1.0.10"
*** xcodebuild output can be found in /var/folders/mj/5zhy3sh11h18pdwrb4v04b300000gn/T/carthage-xcodebuild.x7e3Go.log
*** Skipped building BlueSignals due to the error:
Dependency "BlueSignals" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/IBM-Swift/BlueSignals/issues/new

Added framework target so that BlueSignals can be used by Carthage.  Version 1.0.11.

@billabt thanks for your response, but v1.0.11 still not compatible for carthage.
carthage required shared scheme.
$ carthage update BlueSignals
*** Fetching BlueSignals
*** Checking out BlueSignals at "1.0.11"
*** xcodebuild output can be found in /var/folders/2q/h0tfw5xj28qgdcs2rqkm62nm0000gp/T/carthage-xcodebuild.wIKZSn.log
*** Skipped building BlueSignals due to the error:
Dependency "BlueSignals" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/IBM-Swift/BlueSignals/issues/new

Sorry about that, I forgot to check in the shared scheme.  You should be good to go with version 1.0.12.  Thanks.


xTimeZone module should use .NET APIs instead of tzutil.exe

The xTimeZone module should use .NET APIs instead of the tzutil.exe program to perform automation tasks. Wrapping exe's is obviously an option, but should be used as a last resort, as it's less PowerShell-friendly, compared to using native APIs and cmdlets.
Thanks to @joeyaiello for this idea.
Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

I don't think there is a .NET API to set the system time zone. All examples out there are using either tzutil.exe or unmanaged code via pinvoke. That brings up the question what is preferred, calling an existing native exe or a Win32 function directly?

@hahndorf I don't know if there's a Win32 API, but generally it's considered bad PowerShell form to call external executables. I would personally prefer Win32 APIs over external executables.

This looks like the solution, but it's over my head on how to convert this to powershell, or maybe you don't have to and can just use the native code?
https://channel9.msdn.com/coding4fun/articles/Changing-time-zones

@pcgeek86, @hahndorf, @jbruettcva:
I took a brief look at this while I was updating the tests on the Resource and the only way I could see this being done was using Win32 via GetDynamicTimeZoneInformation and SetDynamicTimeZoneInformation. Will require using reflection to create the DYNAMIC_TIME_ZONE_INFORMATION structure.
WMI and .NET will allow us to read the Timezone, but it can't be set - so neither of these will work.
I'll take a look in a few weeks when I get time, unless someone else (with more experience defining structs using reflection) wants to have a go.

@PlagueHO I found a sample and converted it to a class, using it via add-type and put it here.  It still needs work (all console writes needs to be removed):
https://gist.github.com/TravisEz13/209b59c0fb7c919b977a64b6d2d47ac3
But it may help...
Note: I have serious concerns about this working on nano.

@TravisEz13  - That is some awesome work there! :smiley: I wasn't looking forward to attacking this one.
You're right about it probably not working on Nano though: I gave it a try, but Add-Type isn't even a supported cmdlet on Nano in TP4.

That said, could we detect for Nano and fall back to tzutil only on Nano? Not an ideal solution by no means, but still better than the current state perhaps.

Yeah, my only addition would be to wrap what I wrote in a helper function.  And, perhaps you should vote for this issue:  User Voice - Implement cmdlets for manipulating Timezone on workstations and servers
Once you have the wrapper done, you could even add a comment pointing to that.

@TravisEz13  - Good idea's. I'll get it done this week.

@TravisEz13 @PlagueHO very nice -- thanks for your efforts.


Fix image.getCanvas usage in renderColorImage

This makes sure that image.getCanvas exists before trying to use it in renderColorImage.
This addresses the issue raised here:
https://groups.google.com/forum/#!topic/cornerstone-platform/FHM4tWQcy8s
Don't merge this until it is confirmed to work!

Fixed this with the latest changes


Cross Validation always choose largest regularization parameter?

@zhangce
It seems that CV always choose the largest reg param in our application. We set the reg_param up to 50, then it chooses 50...
Can you confirm the CV code is correct? Thanks!

What is going on with this? Is this fixed?

@chrismre I think it is not fixed yet.  I will run a test on an example application to make sure if the problem actually exists, and send a report to Ce.

I just reproduced this bug, will fix it today
Ce
On Feb 2, 2015 3:05 AM, "chrismre"<EMAIL_ADDRESS>wrote:

What is going on with this? Is this fixed?
—
Reply to this email directly or view it on GitHub
https://github.com/HazyResearch/deepdive/issues/204#issuecomment-72414060
.

Is this fixed?!?

@zhangce wtf.


ENH: stats: add inline annotations for stats.py

Reference issue
na
What does this implement/fix?
I am trying to add inline annotations to scipy.stats. This PR is to make sure that the documentation builds without any warnings when autodoc_typehints='none' in the configuration file. It passes locally without warnings.
I am testing on ubuntu-latest with Python 3.9.0a5. The CircleCI builds on Debian but considering the similarity between them, it makes sense that I first try on ubuntu and if it passed, propose a PR on SciPy proper which then tests on Debian.
Additional information
na

Ok, so I can confirm that the warnings when autodoc_typhints='none' is because of this reason.

The warnings vanish when the argument sos is rendered as a code block "sos" instead of rendering it as italics "sos". Not a sphinx expert so can't tell if there is a proper fix for it but the current workaround makes a little difference in the documentation. So, is it OK for now to do this?


Allowing indexing into step results in config

For example, ref steps can now look like
{type: "ref", ref: some_step, key: 0}

Closes #334

@dirkgr yeup, good catch. Pretty sure I got them all now: b331b26


trim is broken in omnipaxos_storage::persistent_storage

I was planning to write my own implementation of the Storage trait, but as the details on how to implement it are not particularly clear I wrote some testcases against the existing implementations in omnipaxos_storage to compare my implementation against them. (https://gitea.h.glsys.de/soruh/validate_omnipaxos_storage).
Running these tests I noticed that on the current master  (The implementations in 0.2.2 have several other problems) the trim implementation of omnipaxos_storage::persistent_storage doesn't seem to set the length of the log correctly:
This fails for PersistentStorage but succeeds for MemoryStorage:
// --- ommited ---
let entries = random_entries(6);

storage.append_entries(entries.clone())?;
assert_eq!(storage.get_log_len()?, 6, "log has the correct length after first insert");

storage.trim(3)?;
assert_eq!(storage.get_log_len()?, 3, "log has the correct length after trim");
// --- ommited ---

running 1 test
test tests::persistent::functionality_after_trim ... FAILED

failures:

---- tests::persistent::functionality_after_trim stdout ----
thread 'tests::persistent::functionality_after_trim' panicked at src/lib.rs:119:5:
assertion `left == right` failed: log has the correct length after trim
  left: 6
 right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    tests::persistent::functionality_after_trim

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 15 filtered out; finished in 0.01s

Perhaps it would be a good Idea to properly document what exactly the methods of the Storage trait should do including their effect on the length of the log and how the index numbering should continue.

The test fails because PersistentStorage::get_log_len() internally uses the compacted_idx to calculate the log length, and in the test code,  trim() is called without doing set_compacted_idx().
The PersistentStorage (or any Storage implementation) is not intended to be used directly. Instead, it should only be used internally by the OmniPaxos struct. This is because OmniPaxos uses internal logic to interact with the Storage to make sure the state of it is correct. For instance, trimming (e.g., if you call OmniPaxos::trim()), will internally perform both Storage::trim() and Storage::set_compacted_idx(), which means that if OmniPaxos then performs get_log_len(), it will be correct. This is why we currently perform all storage-related tests in omnipaxos.
I do agree that the documentation for the Storage trait could be a bit more clear, and more importantly, we should have unit tests for our storage implementations that will make it easier for users to easier understand how it should be implemented and test their implementations (even from outside the OmniPaxos struct). I will create an issue for it.

The test fails because PersistentStorage::get_log_len() internally uses the compacted_idx to calculate the log length, and in the test code,  trim() is called without doing set_compacted_idx().  This is fine when we use PersistentStorage for OmniPaxos because we always update the compacted index when trimming. In general, PersistentStorage (and any Storage implementation) is not intended to be used directly.
However, I do agree that the documentation for the Storage trait could be a bit more clear, and more importantly, we should have unit tests for our storage implementations that will make it easier for users to understand how it should be implemented and test their implementations (even from outside the OmniPaxos struct). I will create an issue for it (#130).

Thank you! Sorry for the confusion.


[STORM-1165] - normalize the scales of CPU/Mem/Net when choosing the best node for Resource Aware Scheduler

+1 looks good.

Looks good. +1

@zhuoliu thanks for your thorough review!


Add marker clustering and progressively update markers on zoom

Currently we render all markers at once. This creates a pretty much unusable default US view because we are rendering 1800+ markers. We should integrate marker clustering for a better user experience: https://developers.google.com/maps/documentation/javascript/marker-clustering

I can hop on this


Issue closing multiple message federates with unequal time requests

I'm submitting a ...

[x] bug

(Note: suggest adjusting the issue template so that the check boxes don't envoke a TODO list treatment in github.com summary review)
Bug

What is the current behavior?
If two message federates requested final times do not match, the federate with the latest time will hang forever (waiting for a blocking call to helicsFederateRequestTime, after the other federate has finished) forcing a hard shutdown.

What is the expected behavior? What is the motivation / use case for changing the behavior?
This might be a more general concern, but at least for this situation, there either should be a way to either have a non-blocking call to request time, perhaps with some wall clock timeout value, or the ability for a message federate to be granted a time earlier than requested. Other solutions may be possibel

What are the steps to reproduce this bug? Please provide a minimal working example of the bug if possible.

Bug observed building the knock-knock Message federate example in MATLAB. See https://github.com/GMLC-TDC/HELICS-Examples/commit/b679c0431682f5bf887e5d538c637a2195be60f0
An easy way to reproduce this error is to change their_response_delay in knock_knock.m (near top of file, line 42) to 0.1 which will force non equal final time requests.

Please tell us about your environment:

HELICS version: 1.3.0 (07-31-18)

MATLAB support, with a manual copy of helicsDestroyFederate.m and the revised version of helicsStartup.m from a recent version of develop (such as https://github.com/GMLC-TDC/HELICS-src/commit/b5fd8e32dc916331d039b09c40e586e315d10fc6) copied from $HELICS_SRC/swig/matlab/ to $HELICS_INSTALL/matlab

Operating System: [all? tested under Mac]

Language Extension: [MATLAB]... may apply to all C library code, at least that with SWIG

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

let me make a test case about this in the C++ test case.  I am running into some possibly related issues in some things I am working on with the broker and core shutdown sequences.
Just to be clear.  You are calling finalize the federate that you stop first?   and what core type were you using?


GH-44389: [Java][Integration][Release] Use Python 3.12 for verify-rc-source-integration-linux-conda-latest-amd64

Rationale for this change
Because JPype doesn't support Python 3.13 yet.
See also:

GH-44389
https://discuss.python.org/t/api-for-python-3-13-prevents-use-of-3rd-party-gc-allocators/62709/5

What changes are included in this PR?
Pin Python 3.12.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

E       pickle disassembly:
E           0: \x80 PROTO      4
E           2: \x95 FRAME      58
E          11: \x8c SHORT_BINUNICODE 'pyarrow.tests.test_extension_type'
E          46: \x94 MEMOIZE    (as 0)
E          47: \x8c SHORT_BINUNICODE 'LegacyIntType'
E          62: \x94 MEMOIZE    (as 1)
E          63: \x93 STACK_GLOBAL
E          64: \x94 MEMOIZE    (as 2)
E          65: )    EMPTY_TUPLE
E          66: R    REDUCE
E          67: \x94 MEMOIZE    (as 3)
E          68: .    STOP
E       highest protocol among opcodes = 4
E
E
E       Reading of untrusted Parquet or Feather files with a PyExtensionType column
E       allows arbitrary code execution.
E       If you trust this file, you can enable reading the extension type by one of:
E
E       - upgrading to pyarrow >= 14.0.1, and call `pa.PyExtensionType.set_auto_load(True)`
E       - install pyarrow-hotfix (`pip install pyarrow-hotfix`) and disable it by running
E         `import pyarrow_hotfix; pyarrow_hotfix.uninstall()`
E
E       We strongly recommend updating your Parquet/Feather files to use extension types
E       derived from `pyarrow.ExtensionType` instead, and register this type explicitly.

/tmp/arrow-HEAD.LSNAi/venv-source/lib64/python3.11/site-packages/pandas/core/arrays/arrow/extension_types.py:158: RuntimeError

During handling of the above exception, another exception occurred:

    def test_legacy_int_type():
        with pytest.warns(FutureWarning, match="PyExtensionType is deprecated"):
            ext_ty = LegacyIntType()
        arr = pa.array([1, 2, 3], type=ext_ty.storage_type)
        ext_arr = pa.ExtensionArray.from_storage(ext_ty, arr)
        batch = pa.RecordBatch.from_arrays([ext_arr], names=['ext'])
        buf = ipc_write_batch(batch)

>       with pytest.warns((RuntimeWarning, FutureWarning)):
E       Failed: DID NOT WARN. No warnings of type (<class 'RuntimeWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

@github-actions crossbow submit verify-rc-source-integration-linux-conda-latest-amd64

@github-actions crossbow submit verify-rc-source--linux-

Revision: 27e56f01e87ce47ccd6d1ed7b8cd341a5e50d011
Submitted crossbow builds: ursacomputing/crossbow @ verify-rc-source-python-main-1

Task
Status

verify-rc-source-python-linux-almalinux-8-amd64

verify-rc-source-python-linux-conda-latest-amd64

verify-rc-source-python-linux-ubuntu-22.04-amd64

verify-rc-source-python-macos-amd64

verify-rc-source-python-macos-arm64

verify-rc-source-python-macos-conda-amd64

I am really confused, why is the almalinux job, for example, failing here but not on main, when the change here is not on the workflow for the job: https://github.com/ursacomputing/crossbow/actions/runs/11328978008/workflow

The failed job (that uses my fork) creates pyarrow-13.0.0.dev3160+gb543a5b94:
https://github.com/ursacomputing/crossbow/actions/runs/11328978008/job/31503426291#step:6:9674
  Created wheel for pyarrow: filename=pyarrow-13.0.0.dev3160+gb543a5b94-0.editable-cp311-cp311-linux_x86_64.whl size=25237 sha256=71df89345437a7dcc15e66625293a68b09065ac4e48c3e76ef6ada73a2657bfb

But the succeeded job (that uses apache/arrow) creates pyarrow-18.0.0.dev454+g27e56f01e:
https://github.com/ursacomputing/crossbow/actions/runs/11329033094/job/31503611194#step:6:9730
  Created wheel for pyarrow: filename=pyarrow-18.0.0.dev454+g27e56f01e-0.editable-cp311-cp311-linux_x86_64.whl size=25215 sha256=acd41891d2d298bfb3c56011eaeaa80d8bfa9049bfe6a08418f14f7aab266a04

I think that it's caused by my fork doesn't have all apache-arrow-* tags. I've pushed tags (git push --tags origin) and restarted failed jobs.


moving swagger to stable

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Please ensure to add changelog with this PR by answering the following questions.

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
If it's an update to existing version,  please select SDKs of specific language and CLIs that require refresh after swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No, no need to refresh for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[x] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
[x] Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
Adding a new service

[x] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[x] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

I am getting the following error in go sdk generation.
Any idea how to fix it?
2021-06-28T06:49:01.0309776Z 06:49:01.030 cmderr 	[generator automation] bad directory structure 'stable/elastic/mgmt/2020-07-01/elastic'

/azp run

The breaking changes detected in 'cross version breaking change' is caused by update the enum value of 'ApiVersionParamter'. In the future, the service will use the ApiVersionParamter in common/types indead of the one defined in special swagger file. For this PR, just ignore these breaking changes.


Errors fixes in expand-archive cmdlet

Hi!
Please fix errors in Expand-archive cmdlet.
Create output directory before expand-archive and change parameter "-DestinationPath" to "-OutputPath".

Cool, thanks for info and for making pull request!


Standardize Package

Follow strict naming conventions for NPM packages. Refer: https://docs.npmjs.com/files/package.json#name
Bump Major Version
Resolved #3

Why is major version bumped to v2?

Because these are file name changes. Assuming this is being used in production any minor version bump will lead to it being updated automatically whenever a npm install is performed. Hence a major version.


CSS Shaders -

CSS Shaders - http://www.adobe.com/devnet/html5/articles/css-shaders.html

This issue was imported from Google Moderator
Moderator votes: +4
Issue added by L on 2011-10-23

Probably already covered by http://caniuse.com/#feat=css-filter-function?
From https://developers.google.com/web/updates/2013/03/Introduction-to-Custom-Filters-aka-CSS-Shaders:

Custom Filters, or CSS Shaders as they used to be called …

https://developers.google.com/web/updates/2013/03/Introduction-to-Custom-Filters-aka-CSS-Shaders

only supported by chromium based browsers ?

But where can I find out whether I can already use custom CSS shaders (filter url(...))?

This feature seems to be abandoned.
From https://drafts.fxtf.org/filter-effects/#changes:

The following significant changes were made since the 26 November 2013 Working Draft.
Removed Custom Filters.

Spec:
https://drafts.fxtf.org/custom/

Yes, Custom Filters aka CSS Shaders are not a thing anymore, unfortunately. So I suggest to close this issue.
Sebastian