fix(firebase_firestore): Fixed issue with retrieving data when the app returns to the foreground.

Description
Update the Andriod SDK to Version 28.1.0. The updated Andriod Firebase SDK contains a fix that skips backoff when App enters Foreground
Related Issues
Fixed Issue #4305 https://github.com/FirebaseExtended/flutterfire/issues/4305
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the [Flutter Style Guide].
[x] I signed the [CLA].
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

@googlebot I signed it!

@googlebot I fixed this

@googlebot I consent

@googlebot I consent.

@googlebot I consent.


Fix scan failures after updating kube-bench to v0.6.8 and Go version to 1.17

Related: https://github.com/rancher/cis-operator/issues/156
NOTE: Need to rebase after the following PRs gets merged https://github.com/rancher/security-scan/pull/85, and https://github.com/rancher/security-scan/pull/86

K3s related fixes for all the profiles (all the fixed are pretty much same):

2.2 and 2.5: added bin_op = or. Some nodes that doesn't have ETCD, it'll thorow errors so it's helpful in cases like this.
1.1.15, 1.1.16, : added the schedulerkubeconfig path /var/lib/rancher/k3s/server/cred/scheduler.kubeconfig
1.1.17: added the controllermanagerkubeconfig path /var/lib/rancher/k3s/server/cred/controller.kubeconfig
1.1.19: corrected PKI directory
1.2.2, 1.2.13, 1.2.14, 1.2.15, 1.2.17, 1.2.26: added -v grep it's basically grepping the test item using the result of previous grep.
(k3s 1.6, 1.20, 1.23 permissive): 1.2.19, 1.2.20, 1.2.21, 1.2.22, 1.2.23, 1.2.24, 1.2.25: Skipped because these are hardened tests and it'll fail in permissive profiles.
4.2.1: Modified the script a bit which will hardcode anonymous-auth to false when it doesn't find kube-apiserver on a node (when the node has only etcd role or worker role)
4.2.2: Modified the script a bit which will hardcode authorization-mode when it doesn't find kube-apiserver on a node (when the node has only etcd role or worker role)
4.2.3: Modified the script a bit which will hardcode client-ca-file when it doesn't find kube-apiserver on a node (when the node has only etcd role or worker role)
1.1.11: moved this test inside etcd.yaml for k3s 1.6 permissive profile cz 1.1.11 test is etcd based.

RKE1 related fixes for all the profiles(all the fixed are pretty much same):

1.1.11, 1.1.12: check only the permission of /node/var/lib/etcd
1.1.20, 1.1.21: move the .pem path inside single quotes, else the command will throw error
1.1.19: edit the PKI dir to /node/etc/kubernetes/ssl
4.1.5, 4.1.6, : add /node before $kubeletkubeconfig
4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.2.9, 4.2.10, 4.2.11, 4.2.12, : added the kubeletconf within a condition for audit_config
Edited package/run_sonobuoy_plugin.sh and set kubeletbin=kubelet

RKE2 related fixes for all the profiles(all the fixed are pretty much same):

1.1.11: edited the audit to stat -c permissions=%a /var/lib/rancher/rke2/server/db/etcd
1.1.1, 1.1.5, 1.1.13, 1.1.15, 1.1.17: added permissions= in audit
4.2.6: added bin_op: or
1.1.20, 1.1.21: move the .pem path inside single quotes, else the command will throw error
4.1.7: used check_cafile_permissions.sh in audit

K3s Hardened multi-node:

K3s Permissive multi-node:

K3s Permissive single-node:

RKE1 Permissive multi-node:

RKE1 Permissive single-node:

RKE2 Permissive multi-node: (1.1.13 test is failing which is a genuine failure)

RKE2 Permissive single-node: (1.1.13 test is failing which is a genuine failure)

In RKE2 1.23 profiles (hardened and permissive) the check is "Ensure that the admin.conf file permissions are set to 600 or more restrictive", see https://github.com/rancher/security-scan/blob/master/package/cfg/rke2-cis-1.23-permissive/master.yaml#L131-L143
That's why the value is set to 600 and the operator is bitmask. But when we logged into the node and checked the permission, it's 644. that's why the check is failing for 1.23 profiles. and it's genuine.

What are the node permissions on a node for rke1, wonder how the test 1.1.13 passes on rke1? Are they already at 600?

I see the test 1.1.13 is marked as skip in rke1 1.23 profile. The test has 600 permission check as well.
So should we update it to 644? (and remove skip for rke1 1.23 profile?)

I see the test 1.1.13 is marked as skip in rke1 1.23 profile. The test has 600 permission check as well. So should we update it to 644? (and remove skip for rke1 1.23 profile?)

Yes that sounds good. We should document this change ("600" to "644") in release notes for our scan profiles.

@prachidamle I have updated RKE2 1.23 check 1.1.13 to 644 now. And it's passing.
For RKE1 1.1.13 check is not applicable that's why it's marked as skipped. The reason is "Cluster provisioned by RKE does not store the kubernetes default kubeconfig credentials file on the nodes." and the PR that added skip for 1.1.13 is this https://github.com/rancher/security-scan/commit/70215d5aa77e8ab1b15a4bf2e59a66bcc99aa440

Rebased after merging the PR #85


Use fog-aws gem

Use fog-aws gem as includes less dependencies than fog gem.

Since this changes the gem completely I would think this should be released as 0.5.0 (which we'll update in metadata before release)..
However, I would also like to hear if there are any objections moving to the fog-aws gem. Is there loss of functionality anywhere else from this change? (I doubt in this context) /cc @cwjohnston?

@slyness I ran the integration suite and everything went smoothly

would this pull request fix #69 ?  If so, I would like to see this fix put in ASAP.

I'd propose closing this PR in favor of #70  to remove nokogiri entirely from the picture.

What's the status of this? I think we should use fog-aws as a dependency to be able to override specific fog-aws version whilst aws-sdk issue is ready.

@josacar I will try and get this reviewed on Friday.

thanks @slyness

@slyness Any update?

This cookbook is on a path to replace fog with aws-sdk. So I will close this PR. The latest release 0.4.2 includes fog 1.37.0 as the default.


Using latest YamlDotNet causes TypeLoadException

What happened?
I have project that uses Pulumi.Automation. When I've added latest YamlDotNet NuGet package to generate some config file the Pulumi.Automation code started throwing System.TypeLoadException. I need to use naming conventions available in recent YamlDotNet.
Example
System.TypeLoadException: Method 'ReadYaml' in type 'Pulumi.Automation.Serialization.Yaml.ProjectRuntimeYamlConverter' from assembly 'Pulumi.Automation, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' does not have an implementation.
      at Pulumi.Automation.Serialization.LocalSerializer.BuildYamlDeserializer()
      at Pulumi.Automation.Serialization.LocalSerializer..ctor()
      at Pulumi.Automation.LocalWorkspace..ctor(PulumiCommand cmd, LocalWorkspaceOptions options, CancellationToken cancellationToken)
      at Pulumi.Automation.LocalWorkspace.CreateStackHelperAsync(InlineProgramArgs args, Func`4 initFunc, CancellationToken cancellationToken)
...

Output of pulumi about
CLI
Version      3.134.1
Go Version   go1.23.1
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure-native  2.60.0
resource  cloudflare    5.37.1
language  dotnet        unknown
resource  random        4.16.4
resource  tls           5.0.5

Host
OS       darwin
Version  15.0
Arch     arm64

This project is written in dotnet: executable='/opt/homebrew/bin/dotnet' version='8.0.402'

Backend
Name           pulumi.com
URL            ***
User           ***
Organizations  ***
Token type     personal

Dependencies:
NAME                                                  VERSION
FluentValidation                                      11.9.2
JetBrains.Annotations                                 2024.2.0
Pulumi                                                3.66.2
Pulumi.AzureNative                                    2.60.0
Pulumi.Cloudflare                                     5.37.1
Pulumi.Random                                         4.16.4
Pulumi.Tls                                            5.0.5

Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Hi @jirikopecky
Any idea when will this be shipped?
We are hitting this issue in a project as we want to use Yamldotnet 16.2.0 with Pulumi.Automation 3.67.1.
For now, I will pin Yamldotnet to 15.3.0 as a workaround.

Hi @realrubberduckdev, I'm not affiliated with Pulumi 🙂 Maybe @justinvp can help answer this question.


How to add pageview event

I am trying to add events for pageview which should be visible in Behavior -> Site Contant -> All Pages
Can anybody help me regading adding pageview events.

same issue


Can't View Entry after going to Main Form

I have made a Journal, added a title, and entered some HTML code into the source tab, reviewed the code in the normal tab, and pressed the save button at the bottom. When I go back to look at it after going to the main form, there is nothing in the text box. I have attached pictures to show you what I mean. (I understand that not all of the page elements are not going to work, but the text is still there.)

Awesome program so far!

Since this is a JavaScript HTML editor, it works properly with a regular browser. However, this application only uses an embedded browser so right now I can't do anything about it other than to disable source editing

The problem is not with the editor but with the Max allowed characters in the database table colume

I will change the database column size and that should fix the problem

Lol, the average web page size is 2 MB now, I guess I am going to make the DB column at lease 5 mb

wow

The size problem is fixed. However, for the source editing to work, HTML must be self contained. Meaning that there can be no external script, css, or any other files of this kind. Otherwise, the editor won't save properly. Also, since this is not an actual webpage, no some tags will be discarded automatically

Copied an entire web page of Romeo and Juliet into the editor and it works


[Question]: Inconsistent behaviour between DDOSLogger & DDASLLogger (Console.app)

New Issue Checklist

[x] I have read and understood the CONTRIBUTING guide
[x] I have read the Documentation or CocoaDocs
[x] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
iOS

Platform Version
12.1

CocoaLumberjack Version
3.4.2

Integration Method
Carthage

Xcode Version
10.1

Repro rate
100%

Demo project link
code example is below

Issue Description and Steps
Hello there.
It seems that CocoaLumberjack behaves differently for DDOSLogger and DDASLLogger in the same situation. For me, all DDOSLogger messages that are higher than DDLogLevelInfo are missing in Console.app but the same DDLog* calls via DDASLLogger are okay.
For example, imagine that you have the following functions:
private func checkDDOSLogger() {
    DDLog.removeAllLoggers()
    DDLog.add(DDOSLogger.sharedInstance)
    self.logEverything()
}

private func checkDDASLLogger() {
    DDLog.removeAllLoggers()
    DDLog.add(DDASLLogger.sharedInstance)
    self.logEverything()
}

private func logEverything() {
    guard let currentLogger = DDLog.allLoggers.first else { fatalError() }
    let prefix = "[x] \(type(of: currentLogger))"
    DDLogDebug  ("\(prefix): DDLogDebug")
    DDLogVerbose("\(prefix): DDLogVerbose")
    DDLogError  ("\(prefix): DDLogError")
    DDLogInfo   ("\(prefix): DDLogInfo")
    DDLogWarn   ("\(prefix): DDLogWarn")
}

When I call checkDDOSLogger() then I see the following output in Xcode:

[x] DDOSLogger: DDLogDebug
[x] DDOSLogger: DDLogVerbose
[x] DDOSLogger: DDLogError
[x] DDOSLogger: DDLogInfo
[x] DDOSLogger: DDLogWarn

but in Console.app I see only this:

error	12:15:59.528635 +0000	...	[x] DDOSLogger: DDLogError
info	12:15:59.528868 +0000	...	[x] DDOSLogger: DDLogInfo
info	12:15:59.529031 +0000	...	[x] DDOSLogger: DDLogWarn

In the situation with checkDDASLLogger(), I see this in Xcode:

[x] DDASLLogger: DDLogDebug
[x] DDASLLogger: DDLogVerbose
[x] DDASLLogger: DDLogError
[x] DDASLLogger: DDLogInfo
[x] DDASLLogger: DDLogWarn

and in Console.app:

default	12:18:02.496514 +0000	...	[x] DDASLLogger: DDLogDebug
default	12:18:02.496714 +0000	...	[x] DDASLLogger: DDLogVerbose
default	12:18:02.496942 +0000	...	[x] DDASLLogger: DDLogError
default	12:18:02.497211 +0000	...	[x] DDASLLogger: DDLogInfo
default	12:18:02.497416 +0000	...	[x] DDASLLogger: DDLogWarn

As you can see, there are no Debug and Verbose message in case of DDOSLogger and I'm trying to understand why. Any thoughts?
P.S. This is important to me because historically we use a lot of levels to separate logs in our apps. I recently switched to DDOSLogger and now it's almost impossible to use Console.app due to this problem.

The reason for this lies here.
DDOSLogger logs with the correct levels. While Xcode shows all levels by default, Console.app only shows info and error levels by default. But you can enable debug and verbose messages in Console.app:
In the Action Menu, there are these entries:

If you enable both, you'll also see debug messages.

@ffried, thanks but I forgot to mention that all levels are enabled in Console.app and tried most obvious solutions (change default log level, etc.). Also, in the description, I mentioned that Info messages are visible.

Thanks for clarifying. I just tried to reproduce the problem, but for me all messages show up:

I'm closing this issue, since there's not much CocoaLumberjack can do here. It's up to Apple to fix this. 🙂

@ffried, thank you, Florian! Let's hope Apple will fix it in the next release.


wip: update: bump libs and driver versions

What type of PR is this?
/kind cleanup
/kind feature
Any specific area of the project related to this PR?
/area build
/area engine
/area tests
What this PR does / why we need it:
This bumps the libs version and syncs with the recent AST definition changes that broke the previous interfaces, thus causing building failures.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Waiting for the changes of https://github.com/falcosecurity/libs/pull/556 to get merged.
Does this PR introduce a user-facing change?:
update: bump libs and driver versions

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.33.0

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 053a8772906f89bd5fa9e815323de3eca1e9d623

uh codeql failed :/


Element Query?

Hello, can I use this as element query? I Just realize that this library will watch the container of asigned element, and add class to it.
But what if i want to watch the element itself, not the container? So for example i want to change the style when the width of element is on certain size.

Element queries and container queries are basically the same, the only difference is that with container queries you cannot style an element based on a query for itself. The reason for that is to prevent recursion. You can read more about that topic here: au.si/css-container-queries.

Well, i have read all about them, and understand how hard this concept to be implemented due to performance impact. I thought i can use this prolyfill for element-query as well. Do you have any best workaround for this or do i need another polyfill?
Thanks.

The best workaround would be to write the queries as container queries and adding a container in the markup if necessary. E.g. instead of this:

you could write it this way with container queries:

But in most cases you wouldn’t need to add an extra element because there is already one. Can you give a concrete example of how you want to use element queries?
You can find a list of other container/element query prolyfills here: https://gist.github.com/davatron5000/bbede54cf189bf53e4de#attempts-to-polyfill

Here is my problem.

So basically I want to change the width of .grid-item.w2 on certain width. If i do like this:
.grid-item.w2:container(width<450px){ ... }

Then it will check the .grid-container width instead of .grid-item right?
Well this is definitely the element-query case, and I guess I'll need another polyfill for this to work :)

Yes, .grid-item.w2:container(width<450px) would check the query against the .grid-container. But changing the width based on the width of the same element doesn’t really makes sense IMO. The following element query would not work correctly:
.grid-item.w2:media(width < 450px) {
	width: 600px;
}


Use "ID" instead of "name" for tables in new RPCs

Use TableId and NamespaceId instead of tableName and namespaceName in
new RPCs for 2.1

Standardize naming conventions for table and namespace IDs and names
in thrift IDL files
Create Tid ("thrift ID") wrapper for strings, to avoid string types
directly in thrift IDL
Change client code where necessary to pass ID types instead of string
names, by looking up the ID right away, and using that in the RPC
methods, and change corresponding server code to eliminate unnecessary
ID lookups
Eliminate redundant name validation in client code (it's done in the
ID lookup)

I'm going to take another pass at this, using TTable and TNamespace instead.


Use invariant culture in JSON parser

Fixes https://github.com/aspnet/Configuration/issues/470.
This is technically a breaking change: previously, a float value bound to string would set it using the current culture, with this change, it would use the invariant culture. But I'd argue that:

Such behavior is incorrect, configuration should never use the current culture.
It's worth it to be able to bind a float value to float (when having non-English current culture).

cc: @HaoK, @divega

@svick,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Merged thanks @svick !


environments option

Is your feature request related to a problem? Please describe.
I want to use the different docker host for different projects. The projects boot by tmuxinator. So that, I have to run the export environments command in every windows and every panels. I know the command of pre_window, but it does not work for new window or panel after tmux ran.
Describe the solution you'd like
It is better to add an option like environments. It effective for every window and panel, even the new window.

Hi, @griffinqiu.
I think one solution here might be to introduce a hook class for window events (similar to the existing Tmuxinator::Hooks::Project class).
In the meantime, you could use tmux hooks from within your tmux config file* to achieve this behavior. If need be, you could create a config file for this project and have your tmuxinator project use it via the tmux_options option (e.g. tmux_options: -f ~/.tmux.conf-with-exports).

set-hook before-new-window 'run "export FOO=bar"'
set-hook before-split-window 'run "export FOO=bar"'

I'm going to close this as stale. Please feel free to reopen if there's anything more to discuss.


Wrong popover arrow direction on iPad using Forms

Using Xamarin Forms with Share Plugin, the popover view is always archored to the top-left of the root view.

Bump

It is already fixed in a PR, but haven't tested it and I am not sure about the code to be honest, but you could test.

Is it possible to push a alpha or beta release to NuGet with the changes from the PR? I tested the PR in one project and it seems to work fine there and it would be much cleaner just to update the NuGet package in the other projects for me.


tube-based mpc

Hi, have you ever consider combing the tube-based MPC with machine learning methods?  I've seen some work related to this recently.

I did not research this area anymore.
Maybe you can read this paper"https://ieeexplore.ieee.org/document/9180076"


Listener has failed, address already in use

Following the quick setup guide, I got as far as running tootik, but I ran into this snag:
{"time":"2023-12-18T02:16:45.351946743Z","level":"INFO","msg":"Collecting garbage"}
{"time":"2023-12-18T02:16:45.352876769Z","level":"INFO","msg":"Starting HTTPS server"}
{"time":"2023-12-18T02:16:45.353559439Z","level":"ERROR","msg":"Gemini listener has failed","error":"listen tcp :1965: bind: address already in use"}
{"time":"2023-12-18T02:16:45.353788972Z","level":"INFO","msg":"Updating poll results"}
{"time":"2023-12-18T02:16:45.355657219Z","level":"ERROR","msg":"Failed to update poll results","error":"context canceled"}
{"time":"2023-12-18T02:16:45.355193575Z","level":"ERROR","msg":"HTTPS listener has failed","error":"listen tcp :443: bind: address already in use"}
{"time":"2023-12-18T02:16:45.355990915Z","level":"WARN","msg":"Failed to accept a connection","error":"accept tcp [::]:79: use of closed network connection"}
{"time":"2023-12-18T02:16:45.356152332Z","level":"WARN","msg":"Failed to accept a connection","error":"accept tcp [::]:70: use of closed network connection"}
{"time":"2023-12-18T02:16:45.356332647Z","level":"ERROR","msg":"Failed to receive a packet","error":"read udp [::]:6775: use of closed network connection"}
{"time":"2023-12-18T02:16:45.356433595Z","level":"INFO","msg":"Shutting down"}
{"time":"2023-12-18T02:16:45.356627584Z","level":"ERROR","msg":"Failed to collect garbage","error":"failed to remove posts by authors without followers: context canceled"}

I do already have ports 443 and 1965 in use by Apache and Agate respectively. I tried using different ports to see what would happen and tootik seemed to run just fine, but when visiting the domain in Gemini I get a TLS/SSL handshake error, and when running curl to test the HTTPS server (or just visiting the address) it directs me to my already-existing website???
Help, what do.

Actually, visiting the domain redirects me to my extant website even if tootik isn't running. And... so does visiting any other domain I have attached to my Digital Ocean droplet, even if they aren't the domains I set up through Apache. So ignore that complaint, I guess I have to fix that on my own, lol :|

Exactly as you say, the ports are already in use. You'll need to run tootik with something like -addr :1234 -gemaddr :5678.

In Lagrange:
TLS/SSL handshake failed - Failed to communicate with the server.

In Bombadillo:
TLS Dial Error: remote error: tls: access denied

In Amfora:
Failed to connect to the server: remote error: tls: access denied

I tried manually adding my chosen port to the domain, and in that case the connection simply times out. (It also does this if I try an invalid port that isn't in use at all.)

Can you share a list of commands you ran to set up your instance, from start to finish? (you can omit domain)

certbot certonly --standalone
sudo systemctl stop apache2
certbot only --standalone
sudo systemctl restart apache2

lol
mkdir tootik-config
mv tootik-config/ tootik-cfg
cp /etc/letsencrypt/live/[domain]/fullchain.pem tootik-cfg/https-cert.pem
cp /etc/letsencrypt/live/[domain]/privkey.pem tootik-cfg/https-key.pem
mv tootik-cfg/ /tootik-cfg
nano /etc/letsencrypt/renewal-hooks/deploy/tootik.sh
chmod 755 /etc/letsencrypt/renewal-hooks/deploy/tootik.sh
openssl ecparam -name prime256v1 -genkey -out /tmp/ec.pem
openssl req -new -x509 -key /tmp/ec.pem -sha256 -nodes -subj "/CN=[domain]" -out /tootik-cfg/gemini-cert.pem -keyout /tootik-cfg/gemini-key.pem -days 3650
curl -L https://github.com/gardenfence/blocklist/raw/main/gardenfence-mastodon.csv > /tootik-cfg/gardenfence-mastodon.csv
nano /tootik-cfg/gardenfence-mastodon.csv [to see what was in there. yikes.]
mkdir /tootik-data
useradd -mr tootik
chown -R tootik:tootik /tootik-cfg /tootik-data/
curl -L https://github.com/dimkr/tootik/releases/latest/download/tootik -o /usr/local/bin/tootik
ls /usr/local/
mkdir /usr/local/bin
mkdir /usr/local/bin/tootik
curl -L https://github.com/dimkr/tootik/releases/latest/download/tootik -o /usr/local/bin/tootik
rm -r /usr/local/bin/tootik/
curl -L https://github.com/dimkr/tootik/releases/latest/download/tootik -o /usr/local/bin/tootik
chmod 755 /usr/local/bin/tootik
ls /tootik-cfg/
cp /etc/letsencrypt/live/[domain]/fullchain.pem /tootik-cfg/https-cert.pem
cp /etc/letsencrypt/live/[domain]/privkey.pem /tootik-cfg/https-key.pem

I'm not sure how my HTTPS cert and key wound up not being in /tootik-cfg/ there at the end. But that was the last thing I did before I tried running tootik.
First I used this:
tootik -domain [domain] -addr :443 -gemaddr :1965 -gopheraddr :70 -fingeraddr :79 -blocklist /tootik-cfg/gardenfence-mastodon.csv -cert /tootik-cfg/https-cert.pem -key /tootik-cfg/https-key.pem -gemcert /tootik-cfg/gemini-cert.pem -gemkey /tootik-cfg/gemini-key.pem -db /tootik-data/db.sqlite3

Then when I had troubles with the addresses being in use, I switched to this:
tootik -domain [domain] -addr :8443 -gemaddr :8965 -gopheraddr :70 -fingeraddr :79 -blocklist /tootik-cfg/gardenfence-mastodon.csv -cert /tootik-cfg/https-cert.pem -key /tootik-cfg/https-key.pem -gemcert /tootik-cfg/gemini-cert.pem -gemkey /tootik-cfg/gemini-key.pem -db /tootik-data/db.sqlite3

What does curl -v https://$domain:8443 say?

*   Trying [IP address]:8443...
* connect to [IP address] port 8443 failed: Connection timed out
* Failed to connect to [domain] port 8443 after 131413 ms: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to [domain] port 8443 after 131413 ms: Connection timed out

Does this curl line work if you run it from the same machine and note a remote machine?

Oh! Yes, it does!
*   Trying [IP address]:8443...
* Connected to [domain] ([IP address) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=[domain]
*  start date: Dec 18 00:45:57 2023 GMT
*  expire date: Mar 17 00:45:56 2024 GMT
*  subjectAltName: host "[domain]" matched cert's "[domain]"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x55edea0d8e90)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/2
> Host: [domain]:8443
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 301
< location: gemini://[domain]
< content-length: 0
< date: Mon, 18 Dec 2023 16:17:40 GMT
<
* Connection #0 to host [domain] left intact

Would you recommend I regenerate my certs with :8443 and :8965? I'm not a fan of requiring ports to be specified in URLs, but if that's what I have to do to avoid spinning up another droplet...

Your problem is probably a firewall or something else that blocks outside traffic to :8443. Wait with re-generating certificates because validation passed in this curl output.
Maybe try this:
iptables -I INPUT -p tcp --dport 8443 -j ACCEPT
iptables -I OUTPUT -p tcp --sport 8443 -j ACCEPT
ip6tables -I INPUT -p tcp --dport 8443 -j ACCEPT
ip6tables -I OUTPUT -p tcp --sport 8443 -j ACCEPT

Then repeat curl -v https://$domain:8443 from a remote machine.

curl works from a remote machine now! Navigating to https://domain:8443 in my web browser gives me a Gemini redirect as expected. (Unfortunately, the redirect does not have a port at the end, so Lagrange tries to open it with the default port.)
Trying to visit gemini://domain:8965 in Lagrange gives me a different error now:
Wrong host -- The request was for a resource at a domain not served by the server and the server does not accept proxy requests.

Are you sure that -domain is correct? For example, in hd.206267.xyz, I pass -domain hd.206267.xyz.

By the way, I don't think this is going to work. The code uses what you put -domain for everything, including user IDs, and IDs must be valid URLs. Without the port, other servers won't be able to access these URLs.

Yeah, I'm getting that notion too. (And it seems that certbot isn't even able to generate HTTPS certificates for ports other than 443. Amazing, I love technology.)
Thanks for all the help, I'll just spin up a second droplet for this.

I took a second look, and I see that tests pass only because they don't rely on incoming requests, and all things that construct object IDs do it the same way (based on domain, without port). Opened #25, which means really supporting a port that's !=443.


R95

@alexanderdean this is done.
Dev mirror works: http://iglucentral-dev.com.s3-website-us-east-1.amazonaws.com/release/r95/schemas/com.snowplowanalytics.snowplow/ua_parser_config/jsonschema/1-0-1

Sorry to be a pain, can you preface the non-schema tickets with "Infrastructure: lowercase next word"? Like:
https://github.com/snowplow/iglu-central/blob/master/CHANGELOG#L511

@alexanderdean done!


Increase visibility of ConsumerControl*Config::new

I think these were meant to be pub in the first place, since the constructors for the other config types are also public.

Yes, looks like an oversight on my part.
Thanks for the PR.


Ability scores moved out of place when rendering PNG

Ability scores move out of place when rendering the stat block as a PNG for unknown reasons. Does not fix on refresh, using Google Chrome.

Happened again while making a new statblock using the Poisonous Snake as a base. Not sure what's causing this, but it seems to be an issue tied to something I did, I just don't know what.

duplicate #79
thanks for the additional report! This is has been reported along with a couple oddities found in the PNG renderer. I'll take a look to see what we can do, might be anything from a recent change in chrome/edge to something that was in the renderer to begin with.

Alright, I'll try rendering it over on Firefox and see what happens.

hmm yep looks like a recent chrome/edge change. Wasn't able to reliably reproduce on my desktop until I updated to Edge Version 107.0.1418.42. Will check to see if the library used for that operation also updated or if the formatting can be adjusted to fix the issue

stat container wasn't enforcing no-wrap so I added that to ensure the PNG renderer matches in that regard.
while i was at it, I also updated the fonts to be closer matches of published stat blocks.
marking this issue as closed, please re-open if the issue persists :)


bug: Re list Fut Bid dont work

Prerequisites

[X] I have searched for existing issues that already report this problem, without success.

Script Version
1.2.2
Platform
Webapp
Current Behavior
fud bid list dont work
Expected Behavior
a
Steps to Reproduce
a
Additional Information
a

Check if you can list manually. Sounds like a list softban.

have same problem but i can list in game and my mobile app

@Walden-gif , softban doesnt carry over to ingame and mobile app, that's why you are able to list.
Wait for some time, the listing soft ban will eventually be lifted and then you should be able to list again.


Example of Multi-Key encryption

This is mostly a question and not issue/Feature, etc
Are there any examples of mult-key operations with this library (in c#)?  (or rather, is that even possible currently)?
i noticed a line in Efficient Multi-Key Homomorphic Encryption with Packed Ciphertexts with Application to Oblivious Neural Network Inference  that stated as much
We then generalize the bootstrapping techniques for HE to obtain multi-key fully
homomorphic encryption schemes. We provide a proof-of-concept implementation of both MKHE
schemes using Microsoft SEAL

but i can't really tell how thats implemented with SEAL (eg beyond pseudocode).
(note, i've only started tinkering w/ the library in my own repo here.  I'd like to incoporate multi-key as well.  thx.

There is no publicly available multi-key implementation. In that paper we designed two multi-key somewhat homomorphic encryption schemes and implemented them with a modified version of SEAL. We then presented bootstrapping methods for both schemes, but did not implement the bootstrapping. The evaluation of CNN does not require bootstrapping.
The reference code is internal fork of SEAL. The modification does break SEAL's single-key schemes. To elaborate on this, we tweaked SEAL's code such as Evaluator::multiply(), reused existing data structures such as Ciphertext, RelinKeys, and SecretKey, and implemented MKEvaluator, MKEncryptor, etc. that are built with SEAL's methods. We are seeking a good way to integrate it into or combine it with SEAL. And very likely we will create a .NET wrapper.

Thanks.  yeah, i'd be happy to try/test the .net wrapper once its available even its on some dev branch in this repo,

I am not sure whether this implementation was ever made public. I will be glad to take a look at the implementation


Android: Custom activity transitions for Android 14

https://forum.newsblur.com/t/new-graphical-glitch-android/10565
https://developer.android.com/guide/navigation/custom-back/support-animations#custom-activity
https://developer.android.com/reference/android/app/Activity#overrideActivityTransition(int, int, int)

Available in v13.2.5


ManualTrigger doesn't populate BindingData

Since our ManualTrigger isn't a first class extension, it isn't populating binding data. That means for early bound languages (e.g. C#), binding data won't be populated. Things work already for Node.
We addressed this issue recently for HttpTrigger - same issue and resolution here. We should introduce an extension for ManualTrigger.

I've checked in a skipped test for this: https://github.com/Azure/azure-webjobs-sdk-script/blob/dev/test/WebJobs.Script.Tests/SamplesEndToEndTests.cs#L60


WebApi bug for QueryAsync

Env:VS2019+ASP.NET CORE3.1。When i write tow methods(QueryAsync,Query) in a controller,swagger ui error.So i try to use QueryAsync only,but the ui show API "Query",not "QueryAsync ".

not nearly enough info here

not nearly enough info here


SPARKTA-198 add input/outputs when a policy is submitted

The idea is to extract input and outputs out of the policy and parse them into fragments so the policy, inputs and outputs could be shown in the user interface.
Given an user using Sparkta with the command line
When posts a policy thought policyContext endpoint with a standard policy (see attached file)
Then input, outputs and policy should be shown in the user interface
Given an user using Sparkta with the command line
When posts a new policy using policyContext endpoint with a standard policy which contains existing input/outputs (exactly equals as existing ones: same name, type and property map)
Then existing input/outputs should be shown in the user interface and policy will start. No error will be thrown and already existing input/outputs will be reused.
Given an user using Sparkta with the command line
When posts a new policy using policyContext endpoint with a standard policy which contains no existing input/outputs (different name, type or property map)
Then new input/outputs should be shown in the user interface and policy will start. No error will be thrown.
Given an user using Sparkta with the command line
When posts a new policy using policyContext endpoint with a standard policy which contains existing input/outputs (same name but different type or property map)
Then error should be thrown trying to create input/outputs with existing name

+1

Thanks for all your comments. I think the code looks pretty clean now.

+1


[Feature Request] add react-with-styles support

react-with-styles
This is the last thing preventing me to use rekit 😁
The component style for the "Style" tab could be exported like this and just displayed as an object.
export const getComponentStyle = (styles) => ({
  firstLink: {
    color: styles.color.primary
  },
  secondLink: {
    color: styles.color.secondary
  }
});

export default withStyles(styles => getComponentStyle(styles))(MyComponent);

Thanks for the suggestion! We are just creating the extension system for Rekit Studio then we can support more features. But, this should not prevent you from using Rekit Studio because you can just create the style js as usual and manage other things with Rekit Studio 😜


Infer analysis an android project aborted every time.

Infer version v0.15.0
JavaPath: /usr/bin/java
Java version "1.8.0_181"
Python 2.7.10
After I execute "infer run -- ./gradlew :app:assembleDebug" for a while, infer always aborted with following err. but I can build success without infer as above assemble command. Thanks for any help.
... ...
cannot find com.mycompany.kit.R$styleable.RecyclerView_fastScrollVerticalThumbDrawable
Skipping because of: Cannot find fieldname
cannot find  com.mycompany.kit.R$styleable.RecyclerView_fastScrollVerticalTrackDrawable
Skipping because of: Cannot find fieldname
Uncaught Internal Error: (Sys_error
"/Users/cimacpro/.gradle/caches/transforms-1/files-1.1/crashlytics-2.8.0.aar/75fc603595e306264c80c6a60f5b6c00/jars/classes.jar: Too many open files")
Error backtrace:
Raised by primitive operation at file "pervasives.ml", line 389, characters 28-54
Called from file "pervasives.ml" (inlined), line 397, characters 2-47
Called from file "zip.ml", line 221, characters 11-42
Called from file "jFile.ml", line 76, characters 20-35
Called from file "extList.ml", line 154, characters 12-15
Called from file "extList.ml", line 162, characters 2-14
Called from file "java/jClasspath.ml", line 300, characters 44-72
Called from file "java/jMain.ml", line 86, characters 16-57
Called from file "java/jMain.ml" (inlined), line 147, characters 40-79
Called from file "integration/Javac.ml", line 88, characters 48-87
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54
... ...
Traceback (most recent call last):
File "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py", line 203, in
main()
File "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py", line 185, in main
capture_exitcode = imported_module.gen_instance(args, cmd).capture()
File "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/lib/python/inferlib/capture/gradle.py", line 214, in capture
capture_code = util.run_compilation_commands(cmds)
File "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/lib/python/inferlib/capture/util.py", line 46, in run_compilation_commands
if cmd.start() != os.EX_OK:
File "/usr/local/Cellar/infer/0.15.0/lib/infer/infer/lib/python/inferlib/jwlib.py", line 35, in start
raise e
... ...
<EMAIL_ADDRESS>returned non-zero exit status 2
Internal Error:   /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py
-j 16 --project-root
/Users/cimacpro/Documents/coderepo/xproject --out
/Users/cimacpro/Documents/coderepo/xproject/infer-out --
./gradlew :app: assembleDebug:
exited with code 1
Error backtrace:
Raised at file "base/Die.ml" (inlined), line 25, characters 6-36
Called from file "base/Logging.ml", line 314, characters 58-80
Called from file "integration/Driver.ml", line 159, characters 2-16
Called from file "integration/Driver.ml", line 280, characters 6-420
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54

We are facing the exact same issue.

Findbugs is not being run in the build.
Ran the following commands
a. ./gradlew clean then infer run -- ./gradlew assembleDebug
b. ./gradlew clean then infer run -- ./gradlew assembleRelease
c. ./gradlew clean then infer run -- ./gradlew build
All the above commands yield the same error

Internal Error: /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py
-j 8 --project-root /Users/ravisharora/KCInd/Android/app --out
/Users/ravisharora/KCInd/Android/app/infer-out -- ./gradlew assembleDebug:
exited with code 1
Error backtrace:
Raised at file "base/Die.ml" (inlined), line 25, characters 6-36
Called from file "base/Logging.ml", line 314, characters 58-80
Called from file "integration/Driver.ml", line 159, characters 2-16
Called from file "integration/Driver.ml", line 280, characters 6-420
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54
infer-out/logs has the following output
[35572][environment] Analyzer: capture
[35572][environment] Active checkers: annotation reachability (Java), biabduction (C/C++/ObjC, Java), fragment retains view (Java), immutable cast (Java), liveness (C/C++/ObjC), printf args (Java), ownership (C/C++/ObjC), RacerD (C/C++/ObjC, Java), SIOF (C/C++/ObjC), uninitialized variables (C/C++/ObjC)
[35572][ debug] Current working directory: '/Users/ravisharora/KCInd/Android/app'
[35572][ debug] Trying to execute: javac '-J-Duser.language=en'<EMAIL_ADDRESS><EMAIL_ADDRESS>2>'/var/folders/fc/hfpr883x57b0mbqdgk87454w0000gn/T/javac.tmp.ecfa89.out'
[35572][ debug] *** Success. Logs:
[35572][ debug] setting processing env to javac ProcessingEnvironment
Translating 1784 source files (5075 classes)
[35572][environment] Infer log identifier is
[33285][ intern err] /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py
-j 8 --project-root /Users/ravisharora/KCInd/Android/app --out
/Users/ravisharora/KCInd/Android/app/infer-out -- ./gradlew assembleDebug:
exited with code 1
[33285][ intern err]_
Any help here would be appreciated.


added 18 terms and additional dbxrefs as per ticket 10873

Apologies for the opacity of the error report.
@dougli1sqrd  will implement this which is the proper way to check https://github.com/ontodev/robot/issues/177
we are using a hacky perl wrapper over the sparql query. It should be reporting the axiom that has the trailing space but it isn't. I suspect you may have done something like pasted in an odd character

So that's what the orange means; can't tell just by looking at line

The line is highlghted orange because I provided a hyperlink to that line.

Ah, well removing the extra space solved the problem and it appears there is nothing else wrong. Thanks for your help!


Caret ranges not respected properly

I've been seeing several issues with caret ranges not being respected in package dependencies.
Several of the linter-* packages depend on the atom-linter package, so there are usually several instances of it installed in a particular Atom installation. The issue is that when a package with an older version of the library loads it before a package asking for a newer version loads, the older version is used instead.
For example:
linter-js-yaml had version 3.3.7 installed of atom-linter, which is perfectly fine for its asked for version of "^3.3.7". When testing linter-php which had "^3.3.9" specified in its package.json however, I was getting errors that had been fixed in 3.3.8 and checking the trace it showed that it was using the 3.3.7 from linter-js-yaml's installation.
According to semver's definiton of caret ranges a request for "^3.3.9" should be equivalent to ">=3.3.9 <4.0.0", but Atom is loading 3.3.7 which does not fall within that range.
I've been seeing this on Windows 10 x64, on Atom 1.3.0-beta6. (And older versions of each before in the past).
I think I've seen it before on Ubuntu, but can't verify that at the moment.
If this has already been reported please point me in the right direction as I could not find it.

I was debugging a problem with a guy in #linter this morning and we experienced this same issue. He was on windows too (I haven't experienced this on linux yet). He had installed the latest linter-phpcs and still had a previous version of atom-linter installed.

Atom purposefully does not allow packages to depend on other packages in any way. Atom can only load one version of a given package at a time; packages aren't like npm modules, where multiple versions can be loaded in different local scopes. It's not possible with Atom, because packages mutate global state (e.g. event handlers on DOM nodes and global variables like atom.workspace).
 This is a problem with these packages, and not something under Atom's control. I think those packages should remove that code.
We're strongly opposed to any feature where packages explicitly depend on other specific packages, because it creates an unnecessarily tight coupling between those packages that could be avoided using services. With services, another package can implement the same interface with improvements (e.g. someone could create their own linter package that provides the same service, but uses a different UI).
We have an open issue on apm, https://github.com/atom/apm/pull/387, that discusses adding a new feature called 'required services' that will allow packages to specify that certain services (e.g. linter) are required in order to use the package. The plan was to have apm automatically install the most popular package that provides that service. We haven't yet started implementing that feature.

This issue isn't about packages, but their dependencies. All of these Atom packages have this in their package.json:
...
  "dependencies": {
    ...
    "atom-linter": "some version specification",
    ...
  }

Let's say packageA specifies "atom-linter": "^3.3.7" and packageB specifies "atom-linter": "^3.3.9".
If Atom loads packageA first, then packageB will be using the atom-linter loaded in packageA, even though it is below the minimum version that should be allowed.

The "required services" sounds great, subscribed to that issue, but package level dependency has absolutely nothing to do with this problem.

Just for clarification: linter is an atom package, atom-linter is an npm package

linter is an atom package, atom-linter is an npm package.

Oh I see. Thanks @steelbrain. Yeah, maybe this is a bug in the module-cache.

I'm going to close this issue, I haven't noticed it recently. I'm not sure if that's just because it's no longer an issue, or there hasn't been a situation that exposes it, in either case though if it's still a problem later this can be re-opened or re-filed.


Fix font generation where width >=16 by reworking the chargen logic

This this pull request rewrites the character generator outer loop to be
based on which uint8 the character starts in, rather an an "index +
subunit." They're largely fungible, but there's a straightforward
transformation from u8 index to u32 position plus subunit.
The original code had an issue where it would preferentially store
glyphs in the 0- and 3- subunits when the font width was a multiple of 8
pixels. Because of that, it would cut off glyphs when the width was from 16
to 31. See Examples below for more info.
To simplify some of the logic, I also made it preallocate the entire character
data array so there's no more guesswork around whether to append or update.
For ease of understanding (and reproduceability!) I made it sort the
character map before inserting it into the packed bitset, and added a
huge block comment explaining how pixel font packing works.
This change in packing logic didn't require an equivalent change in the
font renderer, and I've tested and verified the generated fonts in a
couple applications.
Examples
I ran a quick test with fonts of width 7, 8, 9, 16, 17 and 32. Glyph "A"
is a repeating "XXX___" pattern, glyph "B" is "XX__XX__" and glyph "C"
is "X_X_X_"
Before
width_07.txt
_________CCCCCCC_BBBBBBB_AAAAAAA
00000000010101010011001101000111

width_08.txt
________CCCCCCCC________BBBBBBBB
00000000010101010000000000110011
________________________AAAAAAAA
00000000000000000000000011000111

width_09.txt
_______CCCCCCCCC_______BBBBBBBBB
00000001010101010000000100110011
_______________________AAAAAAAAA
00000000000000000000000111000111

width_16.txt
AAAAAAAA&&&&&&&&CCCCCCCCCCCCCCCC
11000111000000000101010101010101
________________BBBBBBBBBBBBBBBB
00000000000000000011001100110011

width_17.txt
BBBBBBBB&&&&&&&AAAAAAAAAAAAAAAAA
00110011000000000111000111000111
_______________CCCCCCCCCCCCCCCCC
00000000000000010101010101010101

width_32.txt
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
11000111000111000111000111000111
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
00110011001100110011001100110011
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
01010101010101010101010101010101

The bits marked with & were erroneously skipped, and the 16/17-width
fonts had glyphs A and B cut off (respectively). The 8-pixel-wide font
was packed sparsely (at approximately double the space it should
require)
After
width_07.txt
_________CCCCCCC_BBBBBBB_AAAAAAA
00000000010101010011001101000111

width_08.txt
________CCCCCCCCBBBBBBBBAAAAAAAA
00000000010101010011001111000111

width_09.txt
_______BBBBBBBBB_______AAAAAAAAA
00000001001100110000000111000111
_______________________CCCCCCCCC
00000000000000000000000101010101

width_16.txt
BBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
00110011001100110111000111000111
________________CCCCCCCCCCCCCCCC
00000000000000000101010101010101

width_17.txt
_______________AAAAAAAAAAAAAAAAA
00000000000000000111000111000111
_______________BBBBBBBBBBBBBBBBB
00000000000000010011001100110011
_______________CCCCCCCCCCCCCCCCC
00000000000000010101010101010101

width_32.txt
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
11000111000111000111000111000111
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
00110011001100110011001100110011
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
01010101010101010101010101010101

I recognize that coming into somebody's project and rewriting some core logic is not often a winning strategy, so please feel free to reject this. I have a couple other fontgen improvements waiting in the wings, as well, but I'm also happy to maintain a fork of the font generator :smile:

Alright, I reworked the big block comment. Even I was having trouble following it 😅.
I also pulled the packing logic out of generatePixFont so that it could be tested, and introduced some tests based on my original test files.
Because of the signature change, the incremental diff for the two most recent commits is probably going to be easier to follow than the entire PR diff!

=== RUN   TestGlyphPacking
=== RUN   TestGlyphPacking/7x1
=== RUN   TestGlyphPacking/8x1
=== RUN   TestGlyphPacking/9x1
=== RUN   TestGlyphPacking/16x1
=== RUN   TestGlyphPacking/17x1
=== RUN   TestGlyphPacking/32x1
--- PASS: TestGlyphPacking (0.00s)
    --- PASS: TestGlyphPacking/7x1 (0.00s)
    --- PASS: TestGlyphPacking/8x1 (0.00s)
    --- PASS: TestGlyphPacking/9x1 (0.00s)
    --- PASS: TestGlyphPacking/16x1 (0.00s)
    --- PASS: TestGlyphPacking/17x1 (0.00s)
    --- PASS: TestGlyphPacking/32x1 (0.00s)
PASS
ok      github.com/pbnjay/pixfont/cmd/fontgen   0.038s

😀

Ah, this isn't quite right yet. I added the little 5x5 font containing ABCDE to the test cases, and it miscalculates the number of u32s it'll need.


hardcoded minimum color threshold makes less sense for thumbnails

images with less than, say, 4096 pixels can't have 4096 colors, so optimization is skipped. does it matter?

A possible fix would be to use some sort of ratio "amount of colors / amount of pixels"...?

Possibly, but we'd need test cases.


First two reviews

[ ] Program Purpose and Function: The video shows the function and the written response shows the purpose
[x] Data Abstraction: Written response shows data stored in a list and that data being used meaningfully in the program
[x] Managing complexity: Written answer shows and explains a list managing complexity including why the program is named that way
[x] Procedural Abstraction: Two code segments, one showing a student-developed procedure and one showing where the procedure was called, describes how it contributes to the overall functionality
[x] Algorithm implementation: written response includes code of a student-developed algorithm that has sequencing, selection, and iteration.
[x] Testing: Describes 2 calls, describes conditions and shows results.

Comments/Reasons:
Purpose is the same as function. Doesn't explain how the code could or couldn't be created without the list.

[x] Program Purpose and Function: The video shows the function and the written response shows the purpose
[x] Data Abstraction: Written response shows data stored in a list and that data being used meaningfully in the program
[x] Managing complexity: Written answer shows and explains a list managing complexity including why the program is named that way
[x] Procedural Abstraction: Two code segments, one showing a student-developed procedure and one showing where the procedure was called, describes how it contributes to the overall functionality
[x] Algorithm implementation: written response includes code of a student-developed algorithm that has sequencing, selection, and iteration.
[x] Testing: Describes 2 calls, describes conditions and shows results.

Comments/Reasons:
Really good overall, full credit.


SEC - Web Modeler forced to use unsafe-eval CSP directive

Problem you would like to solve
Recently we implemented CSP header in Web Modeler in response to a L1 security issue. The connector template live preview broke in the dev environment after this was merged. See the slack thread.
The reason is that Ajv JSON schema validator used in @bpmn-io/json-schema-validator requires the unsafe-eval directive to function properly as described here. We had to add this directive to the CSP header to fix the issue.
We want to remove this to directive to have a more secure CSP.
Proposed solution
The proposal from Ajv to use it without relaxing CSP is to use the standalone mode which supports generating standalone validation functions from JSON Schemas and use this to do validation without initialising Ajv.
This will also help addressing the problems with bundle size that is mentioned here.
Alternatives considered
Use a different solution instead of Ajv.
Additional context
Not sure this is the right place to add the issue, but didn't want to open this in the public repository for https://github.com/bpmn-io/json-schema-validator as this is a security issue.

Do you use the project for element templates validation? If so, I'd rather suggest to use strict CSP-friendly element-templates-validator. We do it in Desktop Modeler and other projects as well.


Upgrade the LuaJIT version used in Envoy

Title: Upgrade the LuaJIT version used in Envoy
Description:
The current LuaJIT version used in Envoy is 1d8b747c161db457e032a023ebbff511f5de5ec2, which is created on 2020-10-12, more than 2 years ago. Plenty of bugfix and new features happen after that.
For example, https://github.com/envoyproxy/envoy/blob/6c18a51ea75b8b184e65acdb8364403df4b35e37/tools/code_format/check_format.py#L726-L730 claims that lua_pushlightuserdata is unsafe but this problem is already fixed in the latest LuaJIT.
I recommend upgrading the version to https://github.com/LuaJIT/LuaJIT/commit/a04480e311f93d3ceb2f92549cad3fffa38250ef, which is also the version used in the latest OpenResty: https://github.com/openresty/luajit2/commits/v2.1-20230119.
If this is acceptable, I can work on this and update the patch we apply to the LuaJIT.

Seems reasonable to upgrade.
cc @wbpcode

SGTM. Do you willing to create a PR for this?

Yes. Please assign it to me.

/assign @spacewander


Explicit query support for Android TPA

The smart glasses should say "listening..." when a wake word is detected.
Then they should say "Processing query: {query}"
Then when the answer comes, it should say: "Response: {convoscope_answer}"

Basically 2 things.

Small thing - show a "Listening..." screen when wake word is shown.
Slightly larger things -  the ui_poll is now too complex to not have memory on the frontend. This leads to annoying things like sometimes a result is only shown for very short time as a new result comes in and overwrites it. We need to hold in memory all of the queries, results, insights, definitions, etc and then implement some timers/buffer in the Convoscope app. Keep it very simple for now should be enough. Either me or @alex1115alex should do it

Also let's not hardcode "Mira" in the frontend - "Mira" is a just a standin name for now...


Trouble running dgen_model.py

Have an error calculating system financial performance function
I was trying to run the model using the default example that you develop at the tutorial video (delaware case), I followed the video step by step but I am having an error in line 226 (solar_agents.chunk_on_row(financial_functions.calc_system_size_and_performance, sectors=scenario_settings.sectors, cores=cores, rate_switch_table=rate_switch_table). I have not changed anyting from the default case that you use as an example, so I do not know excatly why the error is coming out. It seems something is missing in the pandas dataframe that is been filling from the previous calculations, as the error says "single positional indexer is out-of-bounds"
Details
I attached images of the error showed up at the spyder terminal

I'm getting the same error as well.   Is there any help out there?

Hi @greg-otterpeak,
I believe this issue arises due to which Pandas version you are using as some formatting changes have occurred for some functionality. Unfortunately, I am currently having some issues with the Conda environment on my side so I cannot fully replicate this issue and look into a solution. In the meantime, I would recommend trying to use Pandas version 1.1.5 and see if the issue resolves.

Yeah. That was my first issue. I had to convert to the C version so it would work faster.
Get Outlook for Androidhttps://aka.ms/ghei36

From: Michaela Sizemore @.>
Sent: Tuesday, February 13, 2024 2:41:01 PM
To: NREL/dgen @.>
Cc: Gregory Barrett @.>; Mention @.>
Subject: Re: [NREL/dgen] Trouble running dgen_model.py (Issue #26)
Hi @greg-otterpeakhttps://github.com/greg-otterpeak,
I believe this issue arises due to which Pandas version you are using as some formatting changes have occurred for some functionality. Unfortunately, I am currently having some issues with the Conda environment on my side so I cannot fully replicate this issue and look into a solution. In the meantime, I would recommend trying to use Pandas version 1.1.5 and see if the issue resolves.
—
Reply to this email directly, view it on GitHubhttps://github.com/NREL/dgen/issues/26#issuecomment-1942274073, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE334ZAUN67ZYVDHTJHGXC3YTO6U3AVCNFSM5YHBT7U2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUGIZDONBQG4ZQ.
You are receiving this because you were mentioned.Message ID: @.***>

I have Python 3.11 installed, which seems to be a problem going back to the older version of Pandas.
I have pandas  2.1.4 installed.
conda install pandas=1.1.5
Retrieving notices: ...working... done
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package pandas-1.1.5-py36hd77b12b_0 requires python >=3.6,<3.7.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ pandas 1.1.5**  is installable with the potential options
│  ├─ pandas 1.1.5 would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ pandas 1.1.5 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ pandas 1.1.5 would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  └─ pandas 1.1.5 would require
│     └─ python >=3.9,<3.10.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.11.* , which conflicts with any installable versions previously reported.

I was able to get my Conda issues resolved and have not had this issue pop up. I am running the model with Pandas 2.1.4 and Python 3.10.13. I'm thinking this may be an issue with the load_profile_df not being read in or created correctly and instead returning an empty dataframe, hence Pandas saying that the first index is out of range. Can you add in something like print("load_profile_df vals: ", load_profile_df)
above
pv['consumption_hourly'] = pd.Series(load_profile_df['consumption_hourly']).iloc[0] in financial_functions.py and let me know what comes back from that? I would imagine an empty load_profile_df would have been caught much earlier on the model when load growth is applied to agents via apply_load_growth in elec.py, but sometimes bugs sneak through and are only caught when they compound later on.

Good news!  I got it to work.  The problem was I forgot I downloaded the WA SQL and ran a DE scenario… ☹  Once I fixed that, it worked like a charm.
Thanks for clueing me in.
From: Michaela Sizemore @.>
Sent: Wednesday, February 14, 2024 1:17 PM
To: NREL/dgen @.>
Cc: Gregory Barrett @.>; Mention @.>
Subject: Re: [NREL/dgen] Trouble running dgen_model.py (Issue #26)
I was able to get my Conda issues resolved and have not had this issue pop up. I am running the model with Pandas 2.1.4 and Python 3.10.13. I'm thinking this may be an issue with the load_profile_df not being read in or created correctly and instead returning an empty dataframe, hence Pandas saying that the first index is out of range. Can you add in something like print("load_profile_df vals: ", load_profile_df)
above
pv['consumption_hourly'] = pd.Series(load_profile_df['consumption_hourly']).iloc[0] in financial_functions.py and let me know what comes back from that? I would imagine an empty load_profile_df would have been caught much earlier on the model when load growth is applied to agents via apply_load_growth in elec.py, but sometimes bugs sneak through and are only caught when they compound later on.
—
Reply to this email directly, view it on GitHubhttps://github.com/NREL/dgen/issues/26#issuecomment-1944357122, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE334ZEGKPYX4RLBSHWM5GDYTT5SPAVCNFSM5YHBT7U2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUGQZTKNZRGIZA.
You are receiving this because you were mentioned.Message ID: @.***>


Rdar27110616

LGTM.

@swift-ci Please test

It looks like the failures here are related to lldb. Once this is merged, I will follow up with them and fix this issue.

Actually, there is an additional compiler-rt failures. All of these are related to 3978820. That is not necessary for this (I just thought it would clean some things up).
I am going to push to the branch without that commit.

@swift-ci Please test


[Bug]: Can't try/catch when a WARNING is displayed

What happened?
Hi @aaronparker,
when i use try/catch around the Get-EvergreenApp and an error/warning occours... the error is not catched. It also breaks my foreach loop...
For example if i do something like this:
foreach($app in $apps) {
  try { Get-EvergreenApp $app} catch {"catch!"}
}

Any idea or workaround?
Version
2202.525.0 & 2111.488
What PowerShell edition/s are you running Evergreen on?
Windows PowerShell
Which operating system/s are you running Evergreen on?
Windows 10, Other
Have you reviewed the documentation?

[x] Troubleshooting at: https://stealthpuppy.com/evergreen/troubleshoot/
[X] Known issues at: https://stealthpuppy.com/evergreen/issues/

Verbose output
VERBOSE: Get-EvergreenApp: Function exists: C:\Program
Files\WindowsPowerShell\Modules\Evergreen\2111.488\Apps\Get-CitrixWorkspaceApp.ps1.
VERBOSE: Get-EvergreenApp: Dot sourcing: C:\Program
Files\WindowsPowerShell\Modules\Evergreen\2111.488\Apps\Get-CitrixWorkspaceApp.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program
Files\WindowsPowerShell\Modules\Evergreen\2111.488\Manifests\CitrixWorkspaceApp.json]
VERBOSE: Get-EvergreenApp: Calling: Get-CitrixWorkspaceApp.
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [UseBasicParsing: True].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [MaximumRedirection: 1].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [DisableKeepAlive: True].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [UserAgent: CitrixReceiver/<IP_ADDRESS>
WinOS/10.0.18362].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [Method: Default].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [Uri:
https://downloadplugins.citrix.com/ReceiverUpdates/Prod/catalog_win.xml].
VERBOSE: Invoke-RestMethodWrapper: Invoke-RestMethod parameter: [ContentType: application/json; charset=utf-8].
VERBOSE: GET https://downloadplugins.citrix.com/ReceiverUpdates/Prod/catalog_win.xml with 0-byte payload
WARNING: Invoke-RestMethodWrapper: Error at URI:
https://downloadplugins.citrix.com/ReceiverUpdates/Prod/catalog_win.xml.
WARNING: Invoke-RestMethodWrapper: Error encountered: The remote server returned an error: (404) Not Found..
WARNING: Invoke-RestMethodWrapper: For troubleshooting steps see:
https://stealthpuppy.com/evergreen/troubleshoot/.

I've been thinking about what should be returned - should we throw when encountering an issue, or display a warning and move onto the next download so that we don't stop the function if we have an issue with only one download?
For your example with CitrixWorkspaceApp, it's using Invoke-RestMethodWrapper, that includes the following which needs to be updated:
    try {
        $Response = Invoke-RestMethod @irmParams
    }
    catch {
        Write-Warning -Message "$($MyInvocation.MyCommand): Error at URI: $Uri."
        Write-Warning -Message "$($MyInvocation.MyCommand): Error encountered: $($_.Exception.Message)."
        Write-Warning -Message "$($MyInvocation.MyCommand): For troubleshooting steps see: $($script:resourceStrings.Uri.Info)."
        Break
        #Throw "$($MyInvocation.MyCommand): $($_.Exception.Message)."
    }

I think it would make sense to throw an error (like any other powershell function) and then handle it with -ErrorAction or try/catch
I've looked into the function and i don't understand why you use a break here. There is no loop in this function you want to exit.
If you don't want to throw an error, you could do something like return or return $null to exit the function.
break --> Exit for, foreach, do, while-loop
return --> Exit function and go back to the shell / continue
exit --> Exit script/session/window

If you want to throw an error you can use throw for terminating error or Write-Error for non terminating error.

I think the consideration here, is what's the best approach when using Evergreen in an image build or packaging factory pipeline. I've an update to the development that puts Throw back to the internal functions and I still need to review some of the application functions.

Thanks! I will test it.
For me it broke my ps script in azure automation runbooks to check for software updats :)

Pushed another update to development that should now support the following, allowing the function to continue even in the event of an error.
Get-EvergreenApp -Name MozillaFirefox -ErrorAction "Ignore" -WarningAction "Ignore"


KCS China 2023:Update mail address, CFP and registration link

Update some info:

Update contact mail to<EMAIL_ADDRESS>KCS China 2023: Update CFP & registration link

/cc @pacoxu @kevin-wangzefeng

/lgtm
/assign  @mrbobbytables @sftim

/approve
Sorry I didn't catch the summit emails on the first round of reviews of the initial PR^^;;


perf: remove final_chain_transaction_hashes_by_blk_number column

Remove final_chain_transaction_hashes_by_blk_number column and get transactions hashes from period data

prnet cleaned-up successfully


chore(patches): apply the LuaJIT ARM64 LDP/STP fusion fix from LuaJIT

upstream
https://github.com/LuaJIT/LuaJIT/commit/b8c6ccd50c61b7a2df5123ddc5a85ac7d089542b

Mark: CHANGELOG is not triggered due to the event filter. the invalid .prs property is being detected at different PRs


feat: install missing deps on build

Motivation
It's nice
Solution
Use git submodule status to check if the project has submodules that have not been pulled. If there is, we pull them by calling forge install
Closes #2098 with the note that we should create a new issue for the discussion in there about #2386

One day we will rid ourselves of git submodules...


Add hex based alpha/opacity steps to theme

Would like to be able to set transparency stops with two more hex characters, to build hex alpha colors? I.e.
background: linear-gradient(
      180deg,
      ${({ theme }) => theme.colors.grayscale.dark2}00 47.83%,
      ${({ theme }) => theme.colors.grayscale.dark2}00 79.64%,
      ${({ theme }) => theme.colors.grayscale.dark2}${({ theme }) => theme.opacities.medium} 100%
);

Originally posted by @rusackas in https://github.com/apache/incubator-superset/diffs

Closing since this is roadmapped


matterircd from today's master is not reading the conf file?

@42wim , I just tried the new matterircd from master - I've noticed the cmdline arguments parser changed so we need to use now "--conf" correct? But it didn't fly here:
./matterircd --debug --conf my.toml
INFO[2020-08-11T22:22:04+02:00] enabling debug                                module=matterircd
INFO[2020-08-11T22:22:04+02:00] Running version 0.20.0-dev                    module=matterircd
INFO[2020-08-11T22:22:04+02:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.  module=matterircd
INFO[2020-08-11T22:22:04+02:00] Listening on <IP_ADDRESS>:6667
In my toml I have a different port, so it didn't read. If I skip my.toml and the "--conf" parameter, the output is the same, so it seems it's ignoring the conf file.
Maybe it's something silly from me...but seems weird.
Thanks in advance!

seems a bug, rename it to matterircd.toml  and it should work

issue fixed in master now

Thank you for the promptness, indeed it's fixed now !


Develop delta fn eus fix indexed call rule

This PR enables test for indexed rules (+ includes all latest changes from the master branch).

CI failing is unrelated.


sqlite3_open_v2 broken (Unity3D)

I'm using Microsoft.Data.Sqlite to access a sqlite3 file from my Unity3D game.
so I tried like:
using (var conn = new SqliteConnection($"Data Source=Assets\\Data\\database.bwxsdb"))
{
    conn.Open();
}

and I get:
NullReferenceException: Object reference not set to an instance of an object
SQLitePCL.raw.sqlite3_open_v2 (SQLitePCL.utf8z filename, SQLitePCL.sqlite3& db, System.Int32 flags, SQLitePCL.utf8z vfs) (at <15ecb38d58394d7b88b3f841a7dda078>:0)
SQLitePCL.raw.sqlite3_open_v2 (System.String filename, SQLitePCL.sqlite3& db, System.Int32 flags, System.String vfs) (at <15ecb38d58394d7b88b3f841a7dda078>:0)
Microsoft.Data.Sqlite.SqliteConnection.Open () (at <9ffe4c48f3134a7b905b5da527410f26>:0)

I tried this:
var fromString = utf8z.FromString("Assets\\Data\\database.bwxsdb");
var utf8Z = utf8z.FromString(null);
raw.sqlite3_open_v2(fromString, out var db, 0, utf8Z);

and get the same error.
Any reasons why that is not working? The db file is not broken. I can read & write to it via DataGrip.

Apparently I forgot to add required libraries. As we are in the Unity world and cannot use tools like NuGet I have to add the libraries all by myself. So what I need to work with in Unity are:

Microsoft.Data.Sqlite.dll
SQLitePCLRaw.batteries_v2.dll
SQLitePCLRaw.core.dll
SQLitePCLRaw.provider.e_sqlite3.dll
System.Buffers.dll
System.Memory.dll
System.Runtime.CompilerServices.Unsafe.dll

native libraries depending on your platform from the SQLitePCLRaw.lib.e_sqlite3 NuGet package

v1 used to provide a better exception message:

You need to call SQLitePCL.raw.SetProvider().  If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().

@MeikelLP Have you seen NuGetForUnity?

@bricelam Yes I've seen this but I prefer OpenUPM. But there is no package yet available.

Today I noticed this error again. Not in Unity but rather in ASP.NET Core 3.1.3.
This issue occurs in a console app which I use to wrap my ef migrations add  and ef database update without booting up my actual asp net app all the time. Very basic but works fine:
public class Program
{
    public static void Main(string[] args)
        => CreateHostBuilder(args).Build().Run();

    public static IHostBuilder CreateHostBuilder(string[] args)
    {
        return Host.CreateDefaultBuilder(args)
            .ConfigureServices(x => x.AddDbContext<NucleusDbContext>(options =>
            {
                var configuration = x.BuildServiceProvider().GetRequiredService<IConfiguration>();
                options.UseSqlite(configuration.GetConnectionString("DefaultConnection"));
            }));
    }
}

The problem is that I get the exact same error as I got before with Unity:
PS F:\projekte\none\MyCoolProject\Backend\Core> dotnet ef database update --startup-project ..\Migrator\
Build started...
Build succeeded.
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 3.1.3 initialized 'NucleusDbContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: using lazy-loading proxies
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Data.Sqlite.SqliteConnection.Open()
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteDatabaseCreator.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String targetMigration, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_0.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Object reference not set to an instance of an object.

This can be easily fixed with adding the package reference to that migrator project as well:
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.3" />


Release Version 0.3.0

With this issue, we keep track of the workflow for version 0.3.0 release.
This release becomes necessary to have a compatible version with QEDbase.jl again, after its breaking release of version 0.3.0.
Preparation for the release

[x] Tag all PRs that are part of this release by adding them to a milestone named Release-0.3.0.
[x] Create a release branch release-0.3.0 on your fork.
[x] Adjust ./Project.toml on the new release-0.3.0 branch by ticking up the version.
[x] Check if it is necessary to adjust the compat entry of upstream QED-project packages.
[x] Add/Update the file ./CHANGELOG.md on the release-0.3.0 branch by appending a summary section. This can be done by using the tagged PRs associated with this release.

Release procedure

[x] Open a PR for merging release-0.3.0 into the main-branch of the QEDjl-project repository with at least one reviewer who only needs to check the points above, the code additions were reviewed in the respective PRs. Do not delete the release-0.3.0 branch yet. :warning: Do not squash this PR, use a simple merge commit :warning:
[x] After the release branch is merged into main, open another PR for merging release-0.3.0 into the dev-branch of the QEDjl-project repository. This can be merged without much review because the relevant changes were already reviewed in the PR release-0.3.0 -> main. After this merge, you are free to delete the release-0.3.0-branch on your fork. :warning: Do not squash this PR, use a simple merge commit :warning:
[x] Registration: Go to the issues and search for Release. There, write a comment with <at>JuliaRegistrator register(branch="main") with a real @ to trigger the registration bot opening a PR on Julia's general registry.
[x] After the registration bot reports back the correct registration, tag the HEAD of main (which should still be the merge commit from the release branch merge) with v0.3.0. This will trigger a new deployment of the stable docs for the new version.
[x] Build a GitHub release from the latest tagged commit on main and add the respective section from CHANGELOG.md to the release notes.

Release is finished


example/customer pod creation fails in step 2

In step 2 the docker image does not deploy.  The following command
oc expose service customer -n tutorial
produces:
Error creating: pods "customer-65c7975fd4-" is forbidden: unable to validate against any security context constraint: [capabilities.add: Invalid value: "NET_ADMIN": capability may not be added capabilities.add: Invalid value: "NET_ADMIN": capability may not be added spec.containers[1].securityContext.securityContext.runAsUser: Invalid value: 1337: must be in the ranges: [1000180000,<PHONE_NUMBER>]]

It seems a problem in the minishift configuration minishift addon enable admin-user and minishift addon apply anyuid and then log as admin oc login $(minishift ip):8443 -u admin -p admin


Transaction Version 0 support

Thanks for your great project. Can you support the Transaction with Version 0?

There's v0 support in the edge on main: go get github.com/gagliardetto/solana-go@de6c4ad38cba9433d87ea517194605d0caafc782
That's not ported into existing program clients.

There's v0 support in the edge on main: go get github.com/gagliardetto/solana-go@de6c4ad38cba9433d87ea517194605d0caafc782
That's not ported into existing program clients.


Store messages in my own SQL Database without Using Azure Services

In order to storage some information (User Id, Messages from the user, date) im using a class that implements SqlConnection and a method to execute a StoreProcedure in my database. The problem here is when I test the bot in local with the emulator  it works (Data get stored ), but when I publish my bot in azure i get this message from the bot.

please provide the following information so we can better assist you.  You have provided no details that will help us diagnose the problem.
Bot Info

SDK Platform:
SDK Version:
Active Channels:
Deployment Environment:

Issue Description

Code Example

Reproduction Steps

Expected Behavior

Actual Results


[BUG] [Fix-Suggested] KeyError in stage_1_and_2.py Due to Optimizer-Model Parameter Mismatch

Describe the bug
related to https://github.com/microsoft/DeepSpeed/issues/3718
An KeyError is thrown inside deepspeed.initialize at runtime/zero/stage_1_and_2.py", line 574, in _create_param_mapping, due to inconsistent usage of model parameters and parameters managed by the optimizer.

Full Traceback (Click to Show)

```log
Traceback (most recent call last):
  File "/home/yuxuan/gitrepos/machine-learning-issues/DS-3718/bug.py", line 53, in
    expose_bug()
  File "/home/yuxuan/gitrepos/machine-learning-issues/DS-3718/bug.py", line 50, in expose_bug
    model_engine, _, _, _ = deepspeed.initialize(model=model, optimizer=optimizer, config_params=ds_config_fp16)
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/__init__.py", line 193, in initialize
    engine = DeepSpeedEngine(args=args,
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 313, in __init__
    self._configure_optimizer(optimizer, model_parameters)
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1302, in _configure_optimizer
    self.optimizer = self._configure_zero_optimizer(basic_optimizer)
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1560, in _configure_zero_optimizer
    optimizer = DeepSpeedZeroOptimizer(
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 553, in __init__
    self._param_slice_mappings = self._create_param_mapping()
  File "/home/yuxuan/miniconda3/envs/ml-daikon/lib/python3.10/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 574, in _create_param_mapping
    lp_name = self.param_names[lp]
KeyError: tensor([-0.1179,  0.0190, -0.2361, -0.0330, -0.1097,  0.0685, -0.2788, -0.0424,
         0.1805, -0.1327,  0.2295, -0.1572,  0.2908, -0.2656, -0.2262,  0.2296,
        -0.0720, -0.1561, -0.0781, -0.2091,  0.1213,  0.2913,  0.0560, -0.1072,
         0.0990, -0.2922, -0.1741, -0.0852,  0.1493,  0.0510, -0.3086,  0.0510,
         0.0163,  0.1622, -0.1566,  0.2947, -0.1843,  0.2590,  0.1528, -0.0735,
        -0.1443, -0.1165, -0.3152,  0.1250, -0.0102,  0.1953,  0.2947,  0.2566,
         0.2942,  0.1985, -0.2688, -0.1689,  0.2786, -0.0039,  0.0989,  0.2617,
         0.0778, -0.1381,  0.0307, -0.1530, -0.0360,  0.1461, -0.0746,  0.1142,
        -0.2235, -0.2544, -0.1772, -0.1136, -0.0287,  0.3057,  0.1761,  0.0782,
         0.1699,  0.0997, -0.1385, -0.0923, -0.1219, -0.2313, -0.0925,  0.1703,
         0.0032,  0.3071, -0.0467,  0.0065, -0.2251,  0.2949, -0.2507,  0.2847,
        -0.0638, -0.1945,  0.1630,  0.2463, -0.0249, -0.0586, -0.1923, -0.0291,
         0.0769,  0.2839,  0.0655, -0.3152,  0.2118, -0.0918,  0.0764,  0.2585,
        -0.0240,  0.1981, -0.1708, -0.2991,  0.1741,  0.0652,  0.2600, -0.2397,
         0.0431,  0.0839,  0.1979,  0.0051, -0.2389,  0.0657,  0.1400,  0.3115,
         0.2091, -0.2200,  0.2610, -0.0994, -0.2996, -0.2710, -0.0466,  0.0237,
        -0.0053,  0.2881,  0.0077,  0.1194,  0.0026,  0.1493,  0.2361,  0.2915,
         0.1206,  0.2198, -0.2668, -0.2032, -0.2406,  0.2112,  0.1519,  0.1636,
        -0.1826, -0.2490,  0.2637,  0.2380, -0.2703, -0.2249,  0.0025,  0.1674,
        -0.2751,  0.0442, -0.1255,  0.0972, -0.2766,  0.0444,  0.0058,  0.0765,
         0.2798,  0.0579,  0.2499, -0.2095,  0.0173,  0.0000], device='cuda:0',
       requires_grad=True)
[2024-11-20 13:00:07,916] [INFO] [launch.py:319:sigkill_handler] Killing subprocess 3765479
```

Suspected Root Cause
deepspeed.initialize(model=model, optimizer=optimizer, config_params=ds_config_fp16)
This issue can be triggered in any case if in the arguments to deepspeed.initialize, parameters in optimizer.param_groups is not a subset of model.parameters.
At the fault location, the code is trying to access parameter's names stored in self.param_names using tensors in self.bit16_groups.

self.bit16_groups is populated from optimizer.param_groups, while

self.param_names is populated from the model itself.

Thus, if the optimizer's parameters are not exactly a subset of the model, a KeyError will be thrown.
The case where optimizer's parameters are not exactly a subset of the model is quite common, due to optimization techniques like Parameter Grouping and ZeRO Optimization.
To Reproduce
We prepared a rather simple reproduction script to reproduce this error. In this script, deepspeed.initialize is accidently called twice. After the first deepspeed.initialize, optimizer.param_groups was consolidated into one single parameter, and causes key error in the second deepspeed.initialize.

Install deepspeed 0.15.4

run bug.py using deepspeed --num_gpus=1 bug.py

# bug.py
import torch
import deepspeed
import torch.nn as nn

# Define a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.fc1 = nn.Linear(10, 10)
        self.fc2 = nn.Linear(10, 5)
    def forward(self, x):
        x = self.fc1(x)
        return self.fc2(x)

# Main function to expose the bug
def expose_bug():
    # Initialize model
    model = SimpleModel()
    # Initialize DeepSpeed configurations for fp16
    ds_config_fp16 = {
        "train_micro_batch_size_per_gpu": 1,
        "fp16": {"enabled": True,},
        "zero_optimization": {"stage": 2}
    }

    optimizer = torch.optim.Adam(filter(lambda p: p.requires_grad, model.parameters()), lr=1e-3)
    # optimizer have 4 params now
    print(optimizer.param_groups)
    # Initialize DeepSpeed engine
    model_engine, optim, _, _ = deepspeed.initialize(model=model, optimizer=optimizer, config_params=ds_config_fp16)
    # optimizer have 1 params now
    print(optimizer.param_groups)
    # EXCEPTION!!!
    model_engine, optim, _, _ = deepspeed.initialize(model=model, optimizer=optimizer, config_params=ds_config_fp16)

if __name__ == "__main__":
    expose_bug()

Notice that the second deepspeed.initialize throws the KeyError exception.

Also notice that the first print of optimizer.param_groups shows 4 params, while the second print shows only one param (the content of one param is the merge of the 4 param).

prior to deepspeed.initialize

After deepspeed.initialize

Since in the second deepspeed.initialize, the merged param actually does not exist in the model, an KeyError will be thrown.
Expected behavior / Suggested Fix
We expect two behaviors here from DeepSpeed

Forbid deepspeed.initialize on models / optimizers that have already been used in another deepspeed.initialize.
Check for "optimizer.param_group should be a subset of model.parameters()" explicitly and throw a more user-friendly exception or warning.

ds_report output

Click to Show

collect2: error: ld returned 1 exit status
gds .................... [NO] ....... [NO]
transformer_inference .. [NO] ....... [OKAY]
inference_core_ops ..... [NO] ....... [OKAY]
cutlass_ops ............ [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
ragged_device_ops ...... [NO] ....... [OKAY]
ragged_ops ............. [NO] ....... [OKAY]
random_ltd ............. [NO] ....... [OKAY]
 [WARNING]  sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.2
 [WARNING]  using untested triton version (2.2.0), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/xxx/python3.10/site-packages/torch']
torch version .................... 2.2.2+cu121
deepspeed install path ........... ['/home/xxx/python3.10/site-packages/deepspeed']
deepspeed info ................... 0.15.4, unknown, unknown
torch cuda version ............... 12.1
torch hip version ................ None
nvcc version ..................... 12.3
deepspeed wheel compiled w. ...... torch 2.2, cuda 12.1
shared memory (/dev/shm) size .... 31.24 GB

I will be more than happy to contribute to the two suggested fixes, let me know what you think!

@traincheck-team, thanks for the detailed report. Are you able to provide a fix?

@tjruwase
Sure! We can work on that. Do you prefer to implement 1 or 2 or both in our suggested fix?
The accelerate library is doing a similar thing to 2 at https://github.com/huggingface/accelerate/pull/3213

@traincheck-team, thanks for agreeing to help and sharing the trade-offs. I prefer option 1 because nested deepspeed.initialize is not something that we want supported at this point in time. I don't see a benefit for such feature, and it could result in strange behaviors. Also, it would be great if you could convert your repro into a unit test.

Sure. Will ship the PR soon.


run.sh helper script to run install tasks easier

./run.sh without any arguments will just host application in docker php:7.4-apache-xdebug
if provided with arguments will execute them inside docker container in project directory
E.g. ./run.sh composer install will run composer install inside project folder in docker container

Good!!


arm64 architecture support

Any plans on getting molgrid to work with M1 chips?

Not any time soon.  I have an M1 mac, but I don't have the time to work on it in the foreseeable future.  Pull requests gratefully accepted.


Command failed: /usr/bin/xcrun simctl shutdown

I'm using detox on circleci execute into a macos box.

Detox version: 7.3.3

Stacktrace
detox info 14: Shutting down 7171AA16-2E5C-4DEB-B845-7B6DB382CC58...
  1) "after all" hook

  27 passing (3m)
  1 failing

  1)  "after all" hook:
     ChildProcessError: Command failed: /usr/bin/xcrun simctl shutdown 7171AA16-2E5C-4DEB-B845-7B6DB382CC58
2018-04-12 08:42:16.388 simctl[6192:33658] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
2018-04-12 08:42:16.388 simctl[6192:33660] CoreSimulatorService connection interrupted.  Resubscribing to notifications.
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=53):
Error returned in reply: Connection interrupted
Software caused connection abort
 `/usr/bin/xcrun simctl shutdown 7171AA16-2E5C-4DEB-B845-7B6DB382CC58` (exited with error code 53)
      at callback (node_modules/child-process-promise/lib/index.js:33:27)
      at ChildProcess.exithandler (child_process.js:282:5)
      at maybeClose (internal/child_process.js:925:16)
      at Socket.stream.socket.on (internal/child_process.js:346:11)
      at Pipe._handle.close [as _onclose] (net.js:554:12)

Does this also happen locally ?
I have a hunch it's a circleci thing.
Try starting up a simulator, then shutting it down, regardless of Detox, see if circleCI likes it...
/usr/bin/xcrun simctl launch 7171AA16-2E5C-4DEB-B845-7B6DB382CC58
/usr/bin/xcrun simctl shutdown 7171AA16-2E5C-4DEB-B845-7B6DB382CC58

https://discuss.circleci.com/t/macos-plan-issue-with-xcrun-simctl-shutdown/21839

Either way, not a Detox issue.


Changing enviroment variables has no effect

Changing the environment variables to this workflow do not seem to change the behaviour of the workflow. for example, even if I set the ZOTERO_DIR to a different path, it still only searches the default path. Also, if I set a value for the COPY_CITEKEY_MOD it does not change the function of the modifier keys.

Changing the environment variables to this workflow do not seem to change the behaviour of the workflow. for example, even if I set the ZOTERO_DIR to a different path, it still only searches the default path. Also, if I set a value for the COPY_CITEKEY_MOD it does not change the function of the modifier keys.

Same for me.

Changing the environment variables to this workflow do not seem to change the behaviour of the workflow. for example, even if I set the ZOTERO_DIR to a different path, it still only searches the default path. Also, if I set a value for the COPY_CITEKEY_MOD it does not change the function of the modifier keys.

Same here, cannot use COPY_CITEKEY_MOD.


Project install fails after updating past version 6.10.2

Version
@nuxtjs/tailwindcss: v6.10.2
nuxt: v3.9.3
Steps to reproduce

Disable/uninstall pnpm (the problem exists in a project setup, where npm is the only package manager)
Start with a project using module v6.10.1 or less with the corresponding package-lock.json
Make sure to remove all git ignored local folders, including .nuxt and node_modules or anything that might contain cache of previous installations
Update the module to v6.10.2 and install dependencies with npm install

What is Expected?
Project dependencies should install.
What is actually happening?
The install fails with:
npm ERR! code 127
npm ERR! path /*****/node_modules/@nuxtjs/tailwindcss
npm ERR! command failed
npm ERR! command sh -c pnpm dev:prepare
npm ERR! sh: pnpm: command not found

The issue was discovered when hunting for a specific release that caused some layout breaks after updating to the latest version.
It seems that the install does not fail without removing the folders beforehand as described in the steps.
Not sure, if this is the cause of the issue but I suspect it has something to do with these changes

Please update to the latest version - it should resolve this.


Personal Library Project - Improve Error Definitions, Test Coverage

Describe your problem and how to reproduce it:
The User Stories for the Personal Library project is missing an error handling definitions for the title field on creation.
I propose the following changes to the user stories (changes in bold text).

I can post a title to /api/books to add a book and returned will be the object with the title and a unique _id. If title is not included in the request return missing required field title
...
If I try to request , comment on, or delete a book that doesn't exist I will get a 'no book exists' message.

Note, as per #39435, the InfoSec user stories may be removed.
Additionally, the boilerplate should be updated to include tests for these new and existing conditions.  The following test suites should be added to the boilerplate:

Section 'POST /api/books/[id] => add comment/expect book object with id'

Add 'Test POST /api/books/[id] with comment with with id not in db'

Add Section 'DELETE /api/books/[id] => delete book object id'

Add 'Test DELETE /api/books/[id] with valid id in db'
Add 'Test DELETE /api/books/[id] with id not in db'

Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/personal-library
I will file a PR if there are no objections.

@SaintPeter with the merge of #39642 this can be closed, now?

@nhcarrigan I guess?  I honestly can't remember what this was for.

This was for the missing error handling expectations in the user stories - I believe they've been addressed in the PRs, so we can close this I think.


Datatables maxcols

Fixes #29 Max columns setting for data tables

Coverage increased (+0.02%) to 97.442% when pulling 6b3c2077d1798bd815cc26a8d15bf4c4e354af9b on datatables_maxcols into 2a4cd7a5da1b3ebfff79a4eeba4742d7b4096e25 on master.

Coverage increased (+0.02%) to 97.442% when pulling 6b3c2077d1798bd815cc26a8d15bf4c4e354af9b on datatables_maxcols into 2a4cd7a5da1b3ebfff79a4eeba4742d7b4096e25 on master.


Expose the Go resolvers for __schema

I'd like to be able to introspect a schema that is defined in the graphql schema language.
b, err := ioutil.ReadFile("schema.graphql")
if err != nil {
  log.Fatalln("Unable to read schema file", err)
}

schema, err := graphql.ParseSchema(string(b), &Resolver{})
if err != nil {
  log.Fatalln(err)
}

// TODO: ability to introspect schema

Being able to iterate over the schema after it's been parsed would help in writing code generators for resolvers.

Done. See https://godoc.org/github.com/neelance/graphql-go#Schema.Inspect


Instructions on rebuilding after adding a .yml file

There is no instructions on rebuilding the .sh and related files after adding a .yml file.

Haven't tested but it should be something like this:
pip3 install -r requirements.txt
python3 ./tools/generatJson.py
python3 ./tools/generateJsonFiles.py
python3 ./tools/updateThemes.py
python3 ./tools/generateShFiles.py

generate.sh could be obsolete, but @Mgldvd knows more


Too much output during normal operation

When running rustic in a batch job, you want to have rustic be silent, unless something bad happens.
But when I run rustic like this:
rustic --no-progress --log-level warn backup
rustic outputs "using config /etc/rustic/rustic.toml" on stderr.
And on stdout, it prints:
Files:       0 new, 1 changed, 2738 unchanged
Dirs:        0 new, 13 changed, 834 unchanged
Added to the repo: 13.4 kiB (raw: 66.6 kiB)
processed 2739 files, 92.6 MiB
snapshot 8ccb94a0 successfully saved.
The message on stderr is not an error message, so I claim it should be sent to stdout, if at all.
And I claim that with a "warn" log level, it should not write statistics etc.

@aawsome I would like to "upvote" @troelsarvin comments and maybe begin a discussion that:

Typical unix approach is: be silent until something important is worth mentioning (or the --verbose is explicitly added)
A lot of log messages are in my opinion DEBUG messages that for a normal user have no value, example:
[INFO] read_task; read_end_buffer_size=1024 - what this message brings of value when using to a user?
And even despite all the above a typical (what I'm used to) practice of INFO messages are "business messages" that inform about events and states that happened and are relevant to the user - a lot of messages are not that type...

Just my 2cents.
Ps. Love your guys work! thank you for an awesome tool!

@teon You can easily use something like
log-level = "warn"

in your config profile. Also the option --quiet is already implemented.
Or did you want to start a discussion about what are good default values?
About that specific [INFO] read_task; read_end_buffer_size=1024 - this is a info log which comes out of opendal, IIRC. I agree that this seems to be "wrong" severity from a rustic's user perspective, but this can be only changed within opendal (or its dependencies)