Fix LDAPFilter::Match bug

Addresses #227

Codecov Report

Merging #228 into development will increase coverage by 0.48%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##           development     #228      +/-   ##
===============================================
+ Coverage        82.69%   83.18%   +0.48%
===============================================
  Files              186      186
  Lines            13138    12969     -169
===============================================
- Hits             10865    10788      -77
+ Misses            2273     2181      -92

Impacted Files
Coverage Δ

framework/test/driver/LDAPQueryTest.cpp
98.18% <100%> (+0.88%)
:arrow_up:

framework/src/util/Properties.cpp
89.55% <100%> (+4.7%)
:arrow_up:

framework/src/util/SharedLibrary.cpp
65.27% <0%> (-25.7%)
:arrow_down:

framework/include/cppmicroservices/SharedData.h
78.68% <0%> (-16.4%)
:arrow_down:

framework/test/driver/ConcurrencyTest.cpp
81.48% <0%> (-7.41%)
:arrow_down:

framework/test/bundles/libSL3/ActivatorSL3.cpp
90% <0%> (-4.12%)
:arrow_down:

framework/test/bundles/libSL1/ActivatorSL1.cpp
92.59% <0%> (-3.71%)
:arrow_down:

framework/src/service/ServiceReferenceBase.cpp
74.82% <0%> (-2.05%)
:arrow_down:

framework/src/bundle/BundleRegistry.cpp
85.45% <0%> (-0.61%)
:arrow_down:

framework/src/service/ServiceObjects.cpp
67.36% <0%> (-0.34%)
:arrow_down:

... and 18 more

Addressing Jeff's comment, the reason all the Match methods are throwing because they all construct temporary Properties objects. And both the exceptions may get thrown in the constructor of Properties.

alright, closing the loop; I talked to Krish offline and we resolved my confusion on why some match methods throw and others don't. Its because a throw happens in the BundleContext::RegisterService method if case variants are found.


Could not import package github.com/... after update to go1.16

What version of Go are you using (go version)?

PS> go version

go version go1.16 windows/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
PS> go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\User\AppData\Local\go-build
set GOENV=C:\Users\User\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\User\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\User\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\User\AppData\Local\Temp\go-build2732403671=/tmp/go-build -gno-record-gcc-switches

What did you do?

Updated to go1.16 from go1.15.8
What did you expect to see?
Nothing interesting.
What did you see instead?
"Could not import package" is listed for everything in import outside of the base packages installed with go.
More detail:
Upon reading the release notes for 1.16, it appears that modules are changed; and I'm seeing that go get no longer installs to src under github.com/foo/bar.
I'm not clear where it actually installs to. Despite spending several hours reading, I'm still a lost regarding modules.
I think I may just be missing a setting or env variable somewhere that should tell GOPLS to look wherever the new location is that "go get" is putting packages or to use the new modules mode.
Thanks for any help.

Figured it out right after posting. Unfortunately it looks like you have to create a new workspace for each "package main," I think...
I don't like that workflow, so I'm open to suggestions. Our code currently uses a combination of several languages and there is no quick action in VS code to right click a folder and say "open as workspace" that I can find.
How are other people using this?


Disable OperationLog

Hello, is it possible to disable  OperationLog Middleware, in config  ?

Can't disable OperationLog Middleware currently, I'll add a config to control this.

I add a config option to control this.
https://github.com/z-song/laravel-admin/blob/1.3/config/admin.php#L91-L94


Outdated .gopmfile CSRF dependency

In b4f47a762338abe6ce3a6e3d6d0896b8a387228d you introduced dependency to a newer version of CSRF.
The commit for that version is go-macaron/csrf@6a9a7df172cc1fcd81e4585f44b09200b6087cc0
It needs to be updated here: https://github.com/gogits/gogs/blob/9bd9ad420582a7a34d18011847bb789f64271b1f/.gopmfile#L10
Right now the build with get_gopm leads to an unusable binary.

Thanks, should work now!


gemini error

GoogleGenerativeAIError: [429 Too Many Requests] Quota exceeded for quota metric 'Generate Content API requests per minute' and limit 'GenerateContent request limit per minute for a region' of service 'generativelanguage.googleapis.com' for consumer 'project_number:121598310693'. [{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"RATE_LIMIT_EXCEEDED","domain":"googleapis.com","metadata":{"quota_limit":"GenerateContentRequestsPerMinutePerProjectPerRegion","quota_limit_value":"0","quota_location":"us-east2","service":"generativelanguage.googleapis.com","consumer":"projects/121598310693","quota_metric":"generativelanguage.googleapis.com/generate_content_requests"}},{"@type":"type.googleapis.com/google.rpc.Help","links":[{"description":"Request a higher quota limit.","url":"https://cloud.google.com/docs/quotas/help/request_increase"}]}]
at makeRequest (/home/runner/work/twittard/twittard/node_modules/@google/generative-ai/dist/index.js:257:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateContent (/home/runner/work/twittard/twittard/node_modules/@google/generative-ai/dist/index.js:614:22)
at async run (/home/runner/work/twittard/twittard/index.js:30:18)

This is because you have exceed the rate limits of your Gemini API on a minute basis. Try sending only 2 tweets in a minute and not more than that.

how to edit cron or github runner? by default config you have, its limit by 1 tweet in 1 hour right?

you can edit this file twitter-auto-poster-bot-ai/edit/main/.github/workflows/twitter.yml
yes it runs every hour now but you can change it by changing the:
on:
  schedule:
    - cron: "0 * * * *"

cron parameter, you can generate cron code from here: https://www.freeformatter.com/cron-expression-generator-quartz.html


[Android] Build "Failed to create MD5 hash for file content" with RN 0.66 / Gradle plugin 4.2.2

Hi! 👋
Firstly, thanks for your work on this project! 🙂
Looks like there is an issue with latest RN version (it was fixed when I updated gradle plugin version to be the same as in RN itself)
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-email-link'.
> Failed to create MD5 hash for file content.

I used patch-package to patch<EMAIL_ADDRESS>here is the diff that solved my problem:
diff --git a/node_modules/react-native-email-link/android/build.gradle b/node_modules/react-native-email-link/android/build.gradle
index ebf3948..10bd447 100755
--- a/node_modules/react-native-email-link/android/build.gradle
+++ b/node_modules/react-native-email-link/android/build.gradle
@@ -19,11 +19,11 @@ def safeExtGet(prop, fallback) {

 buildscript {
     ext {
-        minSdkVersion = 16
-        compileSdkVersion = 29
-        targetSdkVersion = 29
-        gradlePluginVersion = "3.5.1"
+        minSdkVersion = rootProject.ext.has("minSdkVersion") ? rootProject.ext.get("minSdkVersion") : 16
+        compileSdkVersion = rootProject.ext.has("compileSdkVersion") ? rootProject.ext.get("compileSdkVersion") : 29
+        targetSdkVersion = rootProject.ext.has("targetSdkVersion") ? rootProject.ext.get("targetSdkVersion") : 29
         reactNativeVersion = "+" // The react native versioning on jcenter is messed up: https://github.com/facebook/react-native/issues/13094
+        gradlePluginVersion = rootProject.ext.has("gradlePluginVersion") ? rootProject.ext.get("gradlePluginVersion") : "3.5.1"
     }

     repositories {

also i added gradlePluginVersion variable to the root project build.gradle ext
This issue body was partially generated by patch-package.

Hi @ponomarevv, thanks for that! Would you be able to open a PR with these changes? Happy to accept them!


What is the best way to dispatch query params to store with prefetch actions?

I tried to put action in route.js in loadData but it doesn't have effect.
I want query params to be put in store before componentDidMount action be executed it root component.
I also tried to wrap root component and execute action in componentDidMount AND in route.js for this component (which wrap all app).
Any advices?

I resolved the problem. I just dispatched it on server side from req.param.


Which-key trick not working anymore and folds are broken (za, etc.)

Hello I am using LazyVim and a simple langmap to switch z with another letter w. The folding is completely broken.
I am trying to fix it with this plugin but it is not working.
My investigation led me to think that the problem comes from which-key, the hack in the description does not work anymore.

Still haven't found how to fix it :/

Hi! As far as I know, which-key has been rewritten recently. Since I don't use it personally, I haven't had time to look into it and update the documentation yet.
Try adding such a construct somewhere at the beginning of your init.lua (before calling which-key):
local orig_getcharstr = vim.fn.getcharstr
vim.fn.getcharstr = function() ---@diagnostic disable-line: duplicate-set-field
  local char = orig_getcharstr()
  local ok, lm = pcall(require, "langmapper.utils")
  if not ok then
    return char
  end
  return lm.translate_keycode(char, "default", "ru") -- change ru for your second layout if it not ru
end


Correction for raw affiliation Department of Mechanics, Mechatronics and Commands, Moulay Ismail University, 15290 ENSAM،, Meknès 50500, Meknes, Fes-Meknes, 50000, MOROCCO

Correction needed for raw affiliation Department of Mechanics, Mechatronics and Commands, Moulay Ismail University, 15290 ENSAM،, Meknès 50500, Meknes, Fes-Meknes, 50000, MOROCCO
raw_affiliation_name: Department of Mechanics, Mechatronics and Commands, Moulay Ismail University, 15290 ENSAM،, Meknès 50500, Meknes, Fes-Meknes, 50000, MOROCCO
new_rors:
previous_rors: 018pp1107
works_examples: W4387823882
contact: 6c4f7c1c13b1a5c52f3173a3e7a89fe9:8790b7fe5b30c880ffb20e8c22 @ ensam.eu

This issue was accepted and ingested by the OpenAlex team on 2024-10-09. The new affiliations should be visible within the next 7 days.


Error in demangling "_ZZN17TestLargestRegion18TestNonRectangularEvENUt_D2Ev"

When I try to demangle this string, I get:
thread 'main' panicked at 'a Display implementation return an error unexpectedly: Error', libcore/result.rs:945:5
c++filt is ok and returns:
TestLargestRegion::TestNonRectangular()::{unnamed type#1}::~TestNonRectangular()

Thanks for filing an issue!

I'll try and fix this :smile:

Hey @miguelsaldivar -- saw your question on IRC.
You can enable the debug logging by building with the "logging" feature: https://github.com/gimli-rs/cpp_demangle/blob/master/Cargo.toml#L56-L58
For example:
cargo run --example cppfilt --features logging -- _Z3fooiPc

@fitzgen thanks for the response, I'll work on this some more this weekend :+1:

In general, we want to match libiberty (which is part of binutils, and is what c++filt uses). But particularly in cases where different demanglers don't agree, we want to make sure that we are comparing with the latest libiberty, so I'd suggest building it and c++filt from source.
https://www.gnu.org/software/binutils/

Okay, I'll build it locally and give it a try. If I run into any issues, where is the best place to contact you? I don't want to spam this issue.

This issue is a fine place to ask questions :)

AST = Encoding(
    Function(
        Local(
            Relative(
                Function(
                    Nested(
                        Unqualified(
                            CvQualifiers {
                                restrict: false,
                                volatile: false,
                                const_: false
                            },
                            None,
                            BackReference(
                                0
                            ),
                            Source(
                                SourceName(
                                    Identifier {
                                        start: 25,
                                        end: 43
                                    }
                                )
                            )
                        )
                    ),
                    BareFunctionType(
                        [
                            Builtin(
                                Standard(
                                    Void
                                )
                            )
                        ]
                    )
                ),
                Some(
                    Nested(
                        Unqualified(
                            CvQualifiers {
                                restrict: false,
                                volatile: false,
                                const_: false
                            },
                            None,
                            BackReference(
                                1
                            ),
                            CtorDtor(
                                BaseConstructor
                            )
                        )
                    )
                ),
                None
            )
        ),
        BareFunctionType(
            [
                Builtin(
                    Standard(
                        Void
                    )
                )
            ]
        )
    )
)

With the AST looking like this, how can I get the SourceName from CtorDtor::Demangle?

And I ask this because when getting to CtorDtor::Demangle the leaf type is UnnamedType, and that doesn't have a name.


Add way to change server logo over time

The RPLCS in Discord wants to be able to change the server icon over time.
I'd like to have the server icon be changed to the server icons available in the assets folder. I want the server icon to change every 24 hours at noon, UTC 0. The new server icon should be randomly chosen from any of the server icons available in the folder.
Possible implementations include:

Adding a tokio background task in the bot's setup() function, and then have it execute the business logic above.

Adding an if in the bot's event_handler() function and executing the business logic there.

I remember implementing a similar system in my own bot and going with the first one. Green threads are cheap and a simple future like waiting a long time and then doing something should be cheap for the runtime and feels more idiomatic than using if statements in an event handler imo.

I remember implementing a similar system in my own bot and going with the first one. Green threads are cheap and a simple future like waiting a long time and then doing something should be cheap for the runtime and feels more idiomatic than using if statements in an event handler imo.

Yeah, a tokio task iterating over an interval will have effectively zero overhead :)

This has been implemented, right?

Yes! Closing now.


The Cobb's Angle Tool

:hand: Many people requests features. Tell us why yours is important to the
community. How does it add value? Why this feature?
Is your request very specific to your needs? Consider
contributing it yourself! Or reach
out to a community member that offers
consulting services.

Request
What feature or change would you like to see made?
Is very necessary cobb's angle, in the OHIF web viewer.
...
Why should we prioritize this feature?
The cobb's angle is a basic tool in any radiology viewer...
...

this would be a great addition

I vote for this also. I believe it is already embedded in the cornerstone viewer and can be exposed as a tool on the viewer toolbar.

Just having the angle between two independent lines would already be pretty perfect. The way angles are measured now with three points is not useful in most cases we have.

Hi, is there any documentation on how to implement or expose the cobb's angle tool to Ohif Viewer?

I have put a pull request with a "Cobb's Angle expose as a tool".
https://github.com/OHIF/Viewers/pull/2505

we only expose tools that later we can create a SR report from, so that is why. I'm not sure if we have the SR adapter for Cobb angle so that is why

https://www.cornerstonejs.org/live-examples/stackannotationtools


Prevent selection of the row when any button click in a row

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior
When any button clicked in any cell it also selects the row.
Eg: Image
Expected behavior
There should be a callback where we can determine that a particular button is clicked on that basis we can prevent the row selection. currently there is a property [selectCheck] which takes a function with argument of the row checkSelectable(event) it should have the actual event as well like: checkSelectable($event, row) from the event we can detect which dom is clicked ?
Reproduction of the problem
Add a custom column name it action in that column add <button> now if you click that button it will select that row.
Please tell us about your environment:
Ubuntu, WebStorm

Table version: ^7.1.1

Angular version: 4x

I've make it to work but i think it's to the best way ?
onActivate($event) {
    if($event.event.srcElement.nodeName.toLowerCase() == 'button') {
      $event.event.preventDefault();
      this.selected = []; // Resetting the selected array might not be the good use ?
    }
  }

Ya, this is really the best way ATM. I'm not sure what the best way to implement this would be, perhaps only selecting when a row or its child elements was clicked?

I think [selectCheck] property should become function which will return Boolean and should have 2 method signatures eg: (selectCheck)="selectCheck($event, $row)" it will be a good solution to this because we actually don't need reset this.selected collection to empty [] which will eventually maintain the previous selected rows.

use event.stopPropagation(); within your click method

I've tried to figure out a solution for myself, here is what I did:
In component.ts
  clickStopper(event) {
      event.stopPropagation();
      return;
  }

In component.html
<button class="inline_action" (click)="clickStopper($event)">DO THE STUFF</button>

Thanks for the hint guys, worked like a charm.

event.stopPropagation();

But if you are actually dealing with typescript objects you can not retain any object properties, only what is displayed on the table, if you are using angular material data table that is. No solution found thus far!

use event.stopPropagation(); within your click method

here is an example for people new to angular:
in html add (click)="stopPropagation($event)" to your element and use  event.stopPropagation() in .ts file.

You can also do (click)="$event.stopPropagation()" without having to create a function.

I've make it to work but i think it's not the best way ?
onActivate($event) {
    if($event.event.srcElement.nodeName.toLowerCase() == 'button') {
      $event.event.preventDefault();
      this.selected = []; // Resetting the selected array might not be the good use ?
    }
  }

This worked for me :) Thank you


[SOLVED] [BUG] How to update FVM package itself? Command didn't work. (Not Flutter version)

I've been using FVM for a long time, no issues, great plugin! Thanks a lot :)
I needed to upgrade my Flutter version. Then I have seen that FVM has many updates. So I wanted to upgrade the FVM plugin itself. I read the docs carefully but couldn't figure how to update out.
Anyways, I have installed a newer version of Flutter 2.2.0-10.2.pre using FVM. It was installed successfully and showed an output message as below:
FVM Update Available 1.3.6 → 2.0.1
Changelog: https://pub.dev/packages/fvm/changelog
Run pub global activate fvm to update

So I run pub global activate fvm . It runs but the current version doesn't change.
What should I do? It sounds more like a question but I don't know, is the docs lack something about updating or I did something wrong?

You need to update the global Dart installation, the one you are running pub from. It is probably pre Dart 2.10

OK, let me quickly tell you what I did. I needed to migrate to null safety

Installed Flutter 2.2.0-10.2.pre version by using fvm install. It was 1.25.0-4.0.pre before. Then I run fvm use and picked the newer version.
Changed the versions of all of the packages to be compatible with null safety. Thankfully, they all have a version to support at the moment.
Changed the .yaml like this:

It was
environment:
  sdk: ">=2.7.0 <3.0.0"

I've changed it to
environment:
  sdk: ">=2.12.0 <3.0.0"

Result of dart --version:

Dart SDK version: 2.10.4 (stable) (Wed Nov 11 13:35:58 2020 +0100) on "macos_x64"

Result of dart pub upgrade and dart pub get (both of the same):

Resolving dependencies...
The current Dart SDK version is 2.10.4.

Because myprojectnamehere requires SDK version >=2.12.0 <3.0.0, version solving failed.

Currently,  I am stuck. Can't upgrade. I of course ran fvm flutter clean, fvm flutter pub get etc.

Try brew install fvm


Attempt to fix tests

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues
tests

This fix solved intl differences issue 👍


Update the tools to work with the Kyma subscription version v1alpha1

Description
Add Eventing tools for subscription API version v1alpha1.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: marcobebway:x: NHingerlYou have signed the CLA already but the status is still pending? Let us recheck it.

/cla-recheck


array reduce: Flow thinks the accumulator is a constant

Flow 0.69 on Linux and also on Windows (both tested), run from WebStorm through
/usr/local/bin/flow server /home/me/Test
Apr  6 11:13:10.545 [info] argv=/usr/local/bin/flow server /home/me/Test
Apr  6 11:13:10.546 [info] Creating a new Flow server

I can reproduce the problem with an empty test project with nothing but a single file with the contents below — but i cannot reproduce it with "Flow Try"?!
I know I can just return the value, but in my code I temporarily inserted a log statement between value calculation and return for debugging so I had an assignment to the accumulator and an extra return statement.
I don't see why the accumulator is assumed to be a constant. I don't understand why
I can reproduce the problem locally in both my Linux and my Windows environment but not in Flow Try.
Two examples, for a string and for a number accumulator:
// @flow
'use strict';

[].reduce((myString: string, item) => {
        myString += '';
        return myString;
    },
    ''
);

[].reduce((myNumber: number, item) => {
        myNumber += 1;
        return myNumber;
    },
    0
);

Errors
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/main.js:5:9

Cannot reassign constant myString [1].

     2│ 'use strict';
     3│
 [1] 4│ [].reduce((myString: string, item) => {
     5│         myString += '';
     6│         return myString;
     7│     },
     8│     ''

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/main.js:12:9

Cannot reassign constant myNumber [1].

      9│ );
     10│
 [1] 11│ [].reduce((myNumber: number, item) => {
     12│         myNumber += 1;
     13│         return myNumber;
     14│     },
     15│     0

Found 2 errors

Flow core definitions for reduce are at
https://github.com/facebook/flow/blob/master/lib/core.js#L252

Show your flowconfig

Do you have this setting on?
https://flow.org/en/docs/config/options/#toc-experimental-const-params-boolean

Flowconfig:
[include]
./src/

[ignore]

[libs]

[options]
module.ignore_non_literal_requires=true
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
experimental.const_params=true

[lints]
all=error
unclear-type=warn
untyped-import=warn


plugin_not_installed error in ionic 6

I installed cordova-plugin-fcm-with-dependecy-updated and @ionic-native/fcm
if I used "import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx' "
I faced this error

If I used "import { FCM } from '@ionic-native/fcm/ngx';"
I got plugin_not_installed error

It is critical error to use FCM push notification
How can I solve this problem
Please help me

The package @ionic-native/fcm shouldn't be used with cordova-plugin-fcm-with-dependecy-updated@7+.
The import is correct as
import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx'

The error message is an Firebase SDK error.
Did you add the correct google-services.json to the root project?
Would you provide a git repository with the same application dependencies for debugging?

install the following plugin first 1 cordova plugin add cordova-plugin-androidx 2 cordova plugin add cordova-plugin-androidx-adapter now import fcm as import { FCM } from "cordova-plugin-fcm-with-dependecy-updated/ionic/ngx"; remove platforms and add them again then build the project again


feat: add codesign verification and assessment prior to notarizing

Prior to stapling, we should run an spctl --assess and codesign check to verify that the stapling will work. This caused major issues for us twice - electron builder would modify some files in the build, and that was causing stapling and notarization to fail. This will verify that the app is signed properly.
One potential change is to only run these if stapling fails - open to suggestions on that.

Merged in the main branch to try to kick CI

Looks like lint is failing. I also pushed a change to turn an import type into just import - I think the version of prettier on this repo is too old to understand that syntax.

@jonluca, I think you need to log out of CircleCI and back in again, then push something to trigger CI (empty commit should do it). This is the CircleCI run associated with your last push. Happens from time to time with CircleCI unfortunately.

⚠ Could not find a usable config.yml, you may have revoked the CircleCI OAuth app.
Please sign out of CircleCI and log back in with your VCS before triggering a new pipeline.

done!

This has broken our .pkg signing, it throws an error, where it was working before (Using a patch to sign pkg's and dmg's)

@DanielMcAssey what is the error? If spctl or codesign return non-zero exit codes that implies there were issues with the bundle, so I'd be interested if it's a warning or something idiosyncratic
I'll prep a revert in the meantime though

So its a non-zero error, error code 1 ***.pkg: code object is not signed at all.

@DanielMcAssey is the patch that you have the same as https://github.com/electron/notarize/pull/154?

@DanielMcAssey is the patch that you have the same as #154?

Pretty much, slight variation, it specifically checks for .dmg and .pkg, instead of doing fs.stat

I'm getting the same error for my signed installer ".pkg." (code object is not signed at all)
It looks like codesign cannot verify the signature of an installer package. Without this check, my installer is able to be notarized without a problem. I can verify its signature with pkgutil --check-signature installer.pkg, which returns a non-zero exit code on verification error.
This same installer package can be notarized without issue with "@electron/notarize": "2.1.0".


hi, when we can get the complete code

I am reading your interesting paper and finding this repository link in your paper, but ... why this repository is empty

Hi Liam, we are cleaning up the codebase. We planned to release it in the next few days.
Thanks for your interest.


driver: npcx: i2c: add i2c target mode support for npcx i2c drivers

Add I2C target mode support for NPCX i2c driver. Verify with i2c_target_api test suite on npcx9m6_evb. It also passed stress tests on ADL Chromebook to ensure it won't influence the stability of cros_ec i2c driver.

@fabiobaltieri, thanks for your comments. I forgot to add the board overlay file of i2c target test suite in the previous PR.  Attached it to this one and any comment is appreciated.


VelocityTracker should be configurable (particularly the timeout durations for determining zero velocity and event horizon).

Presumably @abarth or @Hixie know what to do with this. :)  I don't know how to sort this.

@apwilson What's your priority on this?

@apwilson I realise this is a few years old at this point, but would you mind providing info on where this sits relative to overall priorities?


GH2: Correcting issue with MaxParallelism setting.

The property is a nullable int and it isn't being correctly set.  We
have been running a patched version for over a year, but would like to
start using the official version.

@phillipsj hoping to have some time at the weekend to get this set up :+1:

Relates to #2

@phillipsj thanks for submitting this!


Implement a dropdown filter based on Kategori Pertanyaan

Hi Mas @zainfathoni, does the dropdown select will replace the search form inside the faq page?

Any advice on the filter?

No, it shouldn't replace the search functionality.
Btw, there's already a Draft PR submitted for this issue #136.
If you're also working on it, please submit a Draft PR so we can see how much you're progressing with your implementation.


change the resource_group_key in both firewall and EX_circuit

I have faced a problem when I have tried to deploy a new firewall and express router circuit to the virtual hub that both this resource does not accept a resource group input as a remote one (lz_key & key) and the only workaround is to create a new RG in hub LZ. I prefer to add more flexibility to send these resources to another RG.

hi @anasmohana, can you paste your config example so we can review? thanks

Hi here is the code for the firewall
``
resource_groups = {
firewall_wan = {
name   = "firewall-wan"
region = "region1"
}
}
azurerm_firewalls = {
firewall = {
name               = "bt-firewall"
sku_name           = "AZFW_Hub"
sku_tier           = "Standard"
resource_group_key = "firewall_wan"
zones              = ["1"]
virtual_hub = {
hub1 = {
virtual_hub_id  = "/subscriptions/a60b7a72-8146-4d1d-8c29-ffb8584cb072/resourceGroups/obftest-rg-connectivity-global-wan/providers/Microsoft.Network/virtualHubs/obftest-vhub-hub1"
public_ip_count = 4
}
}
}
}
``
Here I have created a new RG to host the firewall because of the firewall.tf file does not support {lz_key/key} please see here:

I suggest to change this line to be:
resource_group_name = local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][each.value.resource_group.key].name

thanks for submitting the issue @anasmohana!

I appreciate your feedback 😊


scim: Upgrade to django-scim2 0.17.1.

(django-scim2 fixed https://github.com/15five/django-scim2/issues/59 so we can do this cleanup now)
The new release adds the commit:
https://github.com/15five/django-scim2/commit/20ac22b96d1496f2cb117be6067ab862fa38960d
Which allows us to get rid of the entire ugly override that was needed
to do this commit's job in our code. What we do here in this commit:

Use django-scim2 0.17.1
Revert the relevant parts of f5a65846a8296dc697639e97ba34815e7cc2376d
Adjust the expected error message in test_exception_details_not_revealed_to_client
since the message thrown by django-scim2 in this release is slightly
different.

We do not have to add anything to set EXPOSE_SCIM_EXCEPTIONS, since
django-scim2 uses False as the default, which is what we want - and we
have the aforementioned test verifying that indeed information doesn't
get revealed to the SCIM client.

Rebased to fix the merge conflict and merged, huge thanks for doing this @mateuszmandera!
It's always really nice when upstream projects fix something that lets us a delete overrides :).


Can we find a way to collaborate on tree-sitter support?

First, huge congratulations! This is totally awesome, and shipping is a big deal.
Thanks for the SwiftTreeSitter shout-out in the acknowledgements, that's very kind of you! Do you think we could ever find a way to collaborate in that area? Seems like there's so much overlapping effort here. Perhaps https://github.com/krzyzanowskim/tree-sitter-xcframework might be a starting point?
(If you have interest in sharing why you went your own way on tree-sitter bindings, I'd love to hear. But, everyone's allowed to do their own thing and there's definitely no need justify!)

So here's a twist I was not expecting!
I was inspired by your Package.swift to try out adding SPM support to tree-sitter directly. It's possible! And, so while I was able to open a PR, I found that someone had beat me to it! https://github.com/tree-sitter/tree-sitter/pull/1736
I also experimenting with doing the same thing for parsers. I've tried just a few so far, and while it is more complex, it is also possible! Everything via SPM just seems like a best-case option, so I'm moving SwiftTreeSitter over to that.
Just wanted to keep you up to date, since there have been so many developments in the last day or so.

First, huge congratulations! This is totally awesome, and shipping is a big deal.

Thanks for the kind words!

[...] Do you think we could ever find a way to collaborate in that area? [...]
(If you have interest in sharing why you went your own way on tree-sitter bindings, I'd love to hear. But, everyone's allowed to do their own thing and there's definitely no need justify!)

It would be great to find a way to collaborate on bridging Tree-sitter to Swift! Ideally there should be no need for us to maintain two not-so-trivial libraries that solves the same exact problem. So why did I write my own library in the first place then? Here are the main reasons:

The most important reason is that I needed to get familiar with Tree-sitter's API. There are many ways to do that but I found that the best way for me to understand the API's, how they're intended to be used, and their limitations were to start interfacing with them.
When setting out to work with Tree-sitter from Swift, I naively thought that I'd only need a very narrow subset of Tree-sitter's API bridged. Therefore I thought it would be unnecessary to add a dependency. While the entire API isn't bridged in Runestone's codebase, there's certainly more than I thought I originally expected.
Along the lines of point no. 2, I enjoyed the idea of having a very minimal set of dependencies in Runestone. Right now Runestone is only depending on Tree-sitter.

Point 3 still stands. I'd like to go far to avoid dependencies but that's not to say that I don't want any, and I think the Tree-sitter bridge may be a good candidate for a dependency.
I haven't had a close look at SwiftTreeSitter in a while, so I'm unsure if it would be more or less a drop-in replacement of Runestone's current implementation, or if any changes are needed, or if it in fact makes sense to come up with some alternative.

I was inspired by your Package.swift to try out adding SPM support to tree-sitter directly. It's possible! And, so while I was able to open a PR, I found that someone had beat me to it! tree-sitter/tree-sitter#1736

Yep, Runestone is just wrapping Tree-sitter in a Swift package. I never thought of adding it as a PR to the Tree-sitter repository though. That would be great to have!

I also experimenting with doing the same thing for parsers. I've tried just a few so far, and while it is more complex, it is also possible!

That would be amazing! I'd love to know how that goes. I'm far from happy with my current solution for adding parsers to Runestone.

This all makes total sense. I'm super into small libraries, so that results in more dependencies. But I know that isn't always popular. I'm really happy we're talking about it. But you definitely need to make sure you're building something that makes sense and feels right to you!
I was able to get 5 parsers packaged for SPM so far (Go, GoMod, Swift, JSON, and Ruby). The swift parser (perhaps ironically) was the most complex, because it does not check in the generated C code. I haven't yet opened PRs for them, but will this week. I've bundled the queries in the packages too. They don't even depend on the runtime, so they can all be totally independent. It's quite nice!


Bring back the "cart"

but make it awesome.

[ ] Drag and drop
[ ] lives on the side of the page/area

Moving "drag/drop" and "lives on the side" to a different issue.


Redirect cycle accessing Tectonic dashboard

Issue Report Template
Tectonic Version
1.4.7
Environment

AWS - 1 x t2.medium controller, 3 x m4.xlarge workers
Using Firefox to access console
Linux installer

Expected Behavior
When accessing the Tectonic console, I expect it to prompt me to login or redirect me to the login page.
Actual Behavior
URL becomes /error?error_type=auth&error=logout_error and it starts to redirect cycle.
Occasionally it breaks out of the loop and redirects me to /identity/auth/local
Reproduction Steps

Install fresh cluster
Open console

hey @naphthalene, sorry for the delayed response here. Looking into this now and will follow up soon.

@naphthalene can use the kubeconfig in your downloaded assets bundle[0] to dump the logs of console and identity in the tectonic-system namespace? It's hard for us to know what's going on without those.
Also we cut down on some of this flakyness in more recent releases. If you're going to re-install consider updating the version.
[0] https://coreos.com/tectonic/docs/latest/admin/assets-zip.html

@naphthalene were you able to resolve this issue? We recently released Tectonic v1.6.2-tectonic.1 with a ton of improvements - would recommend you check it out!

I have not tried setting this up since the failure. I'll close the ticket since it seemed to be just me


Update Kotlin 1.8.20 stack

KSP 1.8.20-1.0.11
Compose compiler 1.4.5

This needs JDK 17, and therefore applied on top of #662.
~Also, we might want to wait for the next KSP version with this fix https://github.com/google/ksp/issues/1280
Otherwise we get errors like this if KSP uses the build-cache.~ fixed in 1.8.20-1.0.11

I rebase my changes to make it cleaner now that AGP 8 is merged,


Ramulator

adds e_mem_cfg_vcache_{blocking|non_blocking}_ramulator_hbm
adds a machines directory with different configurations (only ramulator configs so far)

depends on https://github.com/bespoke-silicon-group/basejump_stl
depends on https://github.com/bespoke-silicon-group/bsg_bladerunner/pull/45

passes regression with 4x8 e_mem_cfg_vcache_blocking_ramulator_hbm

passes regression with 4x32 e_mem_cfg_vcache_non_blocking_ramulator_hbm (except test_rom)

can we merge this?


Some changes from branch "Improve the looks of checkout" doesn't work

After merge branch patrys:feature/reorder-checkout into my mitcom:feature/reorder-checkout.
run npm install  (likely just in case...), and ./node_modules/.bin/grunt (even many times) - I can't finish checkout as previous. 'Shipping address step' and 'Summary step' submits form only if I provide new address. These doesn't submit if I try chose existing address or (in "Summary step") select copy address from shipping step.
Console catches errors like:
An invalid form control with name='shipping-address-first_name' is not focusable.
An invalid form control with name='shipping-address-last_name' is not focusable.
An invalid form control with name='shipping-address-street_address_1' is not focusable.
An invalid form control with name='shipping-address-city' is not focusable.

Temporary workaround is provide any validating address data, and then pick desirable action.

It works the same way it did previously: you still need to fill the address form. I did not have enough time to change that before leaving for vacation.


SharePoint Framework not working with newly release yo 5

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
macOS
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[X] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
Tested in MacOS but likely reproducible in all dev env
I'm using Node 18 lts (v18.18.2) & latest SPFx<EMAIL_ADDRESS>Describe the bug / error
Creating a fresh dev env. following toolchain prerequisites then scaffolding an SPFx WebPart throws an error "Current environment doesn't provides some necessary feature this generator needs."
Uninstalling yo via npm un -g yo and manually installing previous version via npm i -g<EMAIL_ADDRESS>seems to fix things so it seems like we can only use 4.3.1
Steps to reproduce

Install nodeJS (tested with 18 lts) & toolchain prerequisites npm install gulp-cli yo @microsoft/generator-sharepoint --global
Scaffold a WebPart via yo @microsoft/sharepoint

Expected behavior
A WebPart should be created

Encountering the identical problem on Windows 10 Pro.
Developer environment
Windows 10 Pro
Additional environment details
I'm using Node 18 lts (v18.18.2) & latest SPFx<EMAIL_ADDRESS>Describe the bug / error
Error @microsoft/sharepoint
Current environment doesn't provides some necessary feature this generator needs.

Kindly inform me if there is a resolution available for this issue.

I tried Node 20.9.0 and 18.18.2 and got the same error with clean environments using "yo @microsoft/sharepoint"
"Error @microsoft/sharepoint
Current environment doesn't provides some necessary feature this generator needs."

SRC: Issue #9331 - https://github.com/SharePoint/sp-dev-docs/issues/9331
### Fix appears to be:
1: npm uninstall yo
2: npm install -g<EMAIL_ADDRESS>Tested and appears to work:
yo @microsoft/sharepoint

     _-----_     ╭──────────────────────────╮
    |       |    │ Welcome to the Microsoft │
    |--(o)--|    │      365 SPFx Yeoman     │
   `---------´   │<EMAIL_ADDRESS>   │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

See https://aka.ms/spfx-yeoman-info for more information on how to use this generator.
Let's create a new Microsoft 365 solution.
? What is your solution name?

thx @M365Bass on flagging this. We will have a look on this asap - and work on the right solution. Thx @coreboarder  and @utkarshdubeyfsd  for the additional input.
Current workaround is to use yo v.4.3.1 - which is the previous version... so updating the installation model to use
npm i -g<EMAIL_ADDRESS>

yeoman-generator should be updated to at least v5.9.0 at the @microsoft/generator-sharepoint package.

Target SharePoint environment
SharePoint Online

Same issue regarding Windows 11.

fixed with the released SPFx 1.18.2

Thx @AJIXuMuK on closing this issue.
Here's the reference docs based on the 1.18.2 release which supports Yeoman v5 version - so there's no reason to define specifically the installed version - latest works.

Release notes
[Updated dev environment setup](https://learn.microsoft.com/en-us/sharepoint/dev/spfx/release-1.18.2

Thanks everyone on sharing your findings around this issue. Helped us to prioritize the quick fix and new release. Given the technical dependencies, these things unfortunately happen, but thank you for helping us to address the issue by sharing your findings.


I need Help

Hello friends would aid downloaded a web app done in Yii but do not know how to install it on my server is also staying here (https://github.com/hunyoboy/instastrm) someone could help me with his installation?
Did not know the Yii framework to see this application. I thank everyone's attention!

Please use forums for questions. It's a bug tracker.

Hello friend apologize for the inconvenience is that I'm new on Github. ;)

http://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/

it's Yii 1.x

Thanks for your help, do not know the version of the application but it is available at: https://github.com/hunyoboy/instastrm

Well, ask it's authors. We aren't them.


Use "$crate::" when referencing helper macros

Fixes #347.
This fix allows users to import js_serializable, console and js macros, as well as the stdweb_derive::ReferenceType proc macro, using a single use statement each, without requiring importing any of the helper macros. The fix implement is described in the edition guide's macro changes section, and as I understand it this is the preferably way to handle helper macros in crates with a minimum rust version of 1.30.0+.
The actual change is just to use "$crate::" when referencing any helper macros, and to change one reference of __js_raw_asm! to ::stdweb::__js_raw_asm! in stdweb-derive.
This change should be compatible with any usage of the macros, including importing using #[macro_use] and usage in 2015-edition crates.

LGTM! Thanks!


LDC

hi!
I'm a student in China,and I'm not a member of LDC,so I don't know the format of the text,can you provides me with an example?

I cannot distribute the LDC datasets. You have to obtain the datasets on your side

Thanks anyway!

I have a question, space-char is the parameter of  utils/ctc_compile_dict_token.sh,so what the space-char means,is it the " " in my text?Do I need to change " " to ?

yes, space is simply " " in your transcripts

Thanks!
This is my tr.iter1.log,and the TokenAcc<0, wei_gifo_x_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan ) is nan,is it right?
train-ctc-parallel --report-step=1000 --num-sequence=10 --frame-limit=1000000 --learn-rate=0.00004 --momentum=0.9 --verbose=1 'ark,s,cs:copy-feats scp:exp/train_char_l2_c200/train_local.scp ark:- | add-deltas ark:- ark:- |' 'ark:gunzip -c exp/train_char_l2_c200/labels.tr.gz|' exp/train_char_l2_c200/nnet/nnet.iter0 exp/train_char_l2_c200/nnet/nnet.iter1
copy-feats scp:exp/train_char_l2_c200/train_local.scp ark:-
add-deltas ark:- ark:-
LOG (train-ctc-parallel:main():train-ctc-parallel.cc:112) TRAINING STARTED
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 1010 sequences (1.99515Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -373.992%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 2020 sequences (4.29921Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -379.689%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 3030 sequences (6.78592Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -392.214%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 4040 sequences (9.43905Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -395.523%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 5050 sequences (12.2743Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -410.99%
VLOG[1] (train-ctc-parallel:EvalParallel():ctc-loss.cc:182) After 6060 sequences (15.3838Hr): Obj(log[Pzx]) = -1e+30   TokenAcc = -416.06%
LOG (copy-feats:main():copy-feats.cc:100) Copied 6292 feature matrices.
LOG (train-ctc-parallel:main():train-ctc-parallel.cc:197) ### Gradient stats :
Layer 1 : ,
wei_gifo_x_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_m_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
bias_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_i_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_f_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_o_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_x_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_m_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
bias_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_i_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_f_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_o_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
Layer 2 : ,
wei_gifo_x_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_m_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
bias_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_i_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_f_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_o_c_fw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_x_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
wei_gifo_m_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
bias_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_i_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_f_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
phole_o_c_bw_corr_   ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
Layer 3 : ,
linearity_grad ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
bias_grad ( min 0, max 0, mean 0, variance 0, skewness -nan, kurtosis -nan )
Layer 4 : ,
LOG (train-ctc-parallel:main():train-ctc-parallel.cc:204) Done 6292 files, 0 with no targets, 0 with other errors. [TRAINING, 212.195 min, fps458.889]
LOG (train-ctc-parallel:main():train-ctc-parallel.cc:210)
TOKEN_ACCURACY >> -397.032% <<

Help!
How to do with the syntax error??
[NOTE] TOKEN_ACCURACY refers to token accuracy, i.e., (1.0 - token_error_rate).
EPOCH 1 RUNNING ... ENDS [2016-Apr-18 18:25:09]: lrate 4e-05, TRAIN ACCURACY -397.0320%, VALID ACCURACY -391.8390%
EPOCH 2 RUNNING ... ENDS [2016-Apr-18 20:48:13]: lrate 4e-05, TRAIN ACCURACY -397.0320%, VALID ACCURACY -391.8390%
(standard_in) 1: syntax error
(standard_in) 1: syntax error
steps/train_ctc_parallel.sh: line 162: [: too many arguments
(standard_in) 1: syntax error
steps/train_ctc_parallel.sh: line 174: [: 1: unary operator expected
EPOCH 3 RUNNING ...

Your training seems to be broken. The reason for this could be manifold, e.g., mostly due to mistakes in data preparation.
Are you running one of the Eesen recipes, or running it on your own data?

I run on my own data

I guess you are using CPU? Eesen does NOT support CPU-based training. For Eesen to work, you have to switch to a GPU.

So I should compile the Eesen with GPU again?

Yes.

ok! Thanks,You helped me a lot!

你好，我现在在学习essen目录下的HKUST中的脚本，遇到了中文语料数据准备的问题，看了你的问题，相信你应该解决了这个问题。可以帮助下我吗？假设我现在有个目录下有两个wav文件，一个是1.wav，另一个是2.wav，1.wav对应的文本是：”我为我是中国人而感到骄傲“,2.wav对应的文本是：“你好，我们交个朋友吧”。我该如何对这个目录下的文件进行处理呢？在数据准备阶段，音频文件和文本文件的格式是什么呢？多谢 @yajiemiao @ liumengzhu


Raise an error in input files are empty

Many of our scripts take a list of glob patterns as input, but they just work without any output if this list is empty (or have obscure downstream errors). We should explicitly check and raise a clear error if none files from the input can be found (ideally before submitting a job)

fixed in https://github.com/NVIDIA/NeMo-Skills/pull/303


Transaction fee estimation

Hello!
Is there a way to calculate transaction fee using this library?
What would be the recommended way to check if account has enough funds to carry on the funds transfer?

It is a little convoluted, but I am also thinking about fee calculations. As workaround you can use https://toncenter.com/api/v2/#estimateFee directly.

Library now have estimateExternalMessageFee for fee estimation.


Improve docs re: configuration and examples

IMAGES_PATH seems to only work as a list, can someone at least put this in the docs.
IMAGES_NAME, I can't for the life of me figure out what this does
Also it would be nice to have the from flask.ext.images import resized_img_src or url_for somewhere in the docs.

Thanks for cbronazc's notice, otherwise I would still be crazy for Flask-Images not working.
Now I NOTICE that, the IMAGES_PATH is a list, not a single path string.
change my:
IMAGES_PATH = "static"
to:
IMAGES_PATH = ["static"]
then made it work!


Thoughts on new UI

Here are my thoughts on the new UI, and maybe the old UI as well since I don't remember what was carried over:

Having defaults for the project name etc. would be good for getting started quickly.
Likewise, going through the project options should not be mandatory. If someone is new, it is likely to be overwhelming and lead to mistakes, e.g. they may set the Java version to whatever the latest is, or they may read the tooltip.

This is a side tangent, but Android does not really care what version of Java you target. As I've said before, stuff gets desugared... my Android 1.0 (2008) app is using lambdas (Java 8, 2014, also supported by RoboVM). To use Java 11 APIs, you may need to configure the desugar libs. Who can say for certain - most of the Java features I use are prehistoric.

Allowing the user to continue past the first page with invalid entries is not ideal. On the last page, it gives no indication as to why the Generate button is greyed-out.
Some of the menus, in particular the templates one, cannot be exited using the mouse if the window size is small, as they lack a close button.

I don't fully understand what's going on, but you can reproduce the tool opening smaller than intended like so:

Have two screens as follows. 1: Desktop scale > 100%. 2: Desktop scale = 100%.
With Windows Explorer on screen 1 (this is important!), open gdx-liftoff and hope it will appear on screen 2. I don't know how to influence this.

The settings cannot be reset to default if the window is too small, as the reset button (and version number) disappear.

It's such a small button that it could be overlaid permanently without obstructing anything.

The reset settings dialogue fails to remove keyboard focus from the UI behind it, despite capturing Enter to confirm.
The third-party extensions are in a strange order, e.g. GDX Dialogs is D in the ordering but GDX Basis Universal is G. gdx-psx is under G but gdx-miniaudio is under M. And so on. It's very confusing to find what you're looking for without knowing where it might be in the list.
Clicks that occur on the tool are queued up when the file picker is open. Mostly this just results in it opening again after picking the project folder, if the user double-clicked the button.
The filepath separator being a backslash on Windows is not respected.
Confirmation button order follows Windows norms. This is more of an observation than anything - I actually find it quite annoying in GIMP and whatnot that the buttons swap over depending on if I'm on Windows or a Unix system.

Is this being nitpicky? Maybe, but the process should be idiot-proof if this is to be the official setup tool.
Is this an exhaustive list? Actually, no, but it would be unreasonable to say "this has bad accessibility and uses too many system resources - please rewrite the entire thing." If you want to, you could investigate keyboard navigation, but last I looked it's a huge pain to do in Scene2D.
For anything that isn't a 2-second job, you may wish to pick which thoughts you care about, track them separately, and close this issue.

Here are my thoughts on your thoughts on the new UI:

You didn't number your list, so I may be replying to these out of order.
Are you really sure you want to give me the power to default-name every lazily, hastily, carelessly made project out there? Just reminding you that I could make the default "StayFrosty" or "AskJamesWhatToNameThis".

I'm thinking "PleaseNameMe" and I'd include a 🥺 if I could.

We do configure the desugar libs. You're thinking of gdx-setup.
The next button should be changed to be disabled if any state is invalid on the current screen, I didn't realize this was the case.
If the tool opens smaller than expected, what happens when you maximize it? Also, are you developing on a flip phone? How is your screen so small? I take it back, there are flip phones with large enough screens for the fullscreen mode.
I think it was @raeleus ' decision to just not offer extra levels of support for people with six-pixel screens. There's the storyboard mode for any size screen, and the larger maximized screen for 1080p and up. If your screen isn't big enough for the storyboard mode, that is, a lot smaller than 1366x768, it won't be reflective of how nearly all users will play your game on desktop.
I have no idea how to handle keyboard focus, but a certain UI-interested zebra probably knows.
The ordering has been an issue in the older and newer Liftoff, though the new one can search. I think I can sort by display name.
Dang file picker... It isn't code I ever wrote or would write, and there's no good solution to a file picker widget that I have found so far. I don't know why it would queue inputs.
The path separator is perfectly valid as a forward slash on all platforms from Windows Vista onward. XP is dead.

So, to summarize, you seem to have two monitors, but they're both tiny or something?  Maybe buy a movie theater screen and show the Bad Ballsy Benchmark to a cheering crowd. I think we can disable the Next button if there's something invalid on the current screen. I think the reset button can take full keyboard focus, though I have no idea how. I can personally try to fix the ordering right now. A default name/package/main-class is reasonable, though I do feel like unlimitedpower.gif . Nothing else seems especially easy to change.

Here are my thoughts on your thoughts on my thoughts on the new UI. I'm not replying to all of them, leaving an air of mystery as to which reply is a reply to which of which which is a reply to which. Though we could (but certainly not should) ask the father of libGDX what he thinks about setting the window title of the new first impression of libGDX to AskJamesWhatToNameThis.
I didn't realise you have desugar (the "default" one, no nio) 2.0.4. That's the sharp shooting we hire you for.
I said window size, not screen size. Resizing it works but you can't rely on users knowing they have to do this to access a button. To visualise the initial window size at different secondary screen densities (I forgot screen 2 is my primary and 1 my secondary):

100%
150%
200%

As God intended.
Reset button and version are absent without indication.
"Retina" display.

File picker: maybe all it needs is to be put on a separate thread so that Liftoff can process events while it's open and internally say to itself "hey, it's already open!"
Just because C:/ is valid doesn't mean it fits in when Windows itself and every other application I've ever seen would use C:\.

I'm definitely confused by the HDPI junk, since I don't have an HDPI monitor and never have. I could probably set the resolution lower to imitate it, though. We can't reduce fonts to a much smaller size when the window is smaller; they just become illegible...
I am very reluctant to touch the file picker code. Just... look at it. We're on version 3.3.1 when 3.3.3 is out because its author (!) broke both versions since then. It is rather thorny.
Backslashes are for escapes, not file separators. If we use forward slashes, it works on all platforms. If we sometimes use backslashes, it breaks on MacOS and Linux.

HDPI confuses me as well. I can reproduce the smaller-than-intended-window issue using the LWJGL3 version of Ballsy (LWJGL2 is fine) but not with GBTK Sort. I suppose we'll find out next year whether it's libGDX 1.12.2-SNAPSHOT that fixes it or if I've done something else that has the side effect of fixing it.
Backslashes don't have to break anything. For the record, I'm not saying to use backslashes everywhere - only on Windows. It can be completely cosmetic, e.g. replace / with \ for the label text only. To embiggen the paragraph: Windows Explorer/Run doesn't accept forward slashes in UNC paths, though Liftoff manages to write to them without it or the Win32 API falling over.
Oh yeah, I forgot to write that on the final screen it performs no validation beyond checking that the selected folder is a directory. Might be worth having dropdowns for libGDX/Java versions or at least perform some basic validation such as checking it isn't blank.

Validation is a good point... Java versions should be easy enough to wrangle. libGDX ones would need to be updated per Liftoff release, which isn't a huge issue since each Liftoff version has a libGDX version as part of it anyway.
I have no idea how I'd test the window-sizing issue on my laptop with one monitor available.
I find slashes to be easier to read because backslashes often have to be doubled when used in paths (in Java source code). I also don't know what a UNC path is or how it is relevant.

UNC paths are for network drives and whatnot that aren't mounted under a drive letter. If you have WSL installed, you can go to \\wsl.localhost. Liftoff represents this as //wsl.localhost but if you paste that (or a mixture of slash directions à la \\wsl.localhost/Ubuntu-22.04) into Windows it won't work. This isn't hugely relevant but I do find it an interesting exception to forward-slash support.

Some of the menus, in particular the templates one, cannot be exited using the mouse if the window size is small, as they lack a close button.
All the dialogs have OK buttons to close them and they are visible at the smallest supported resolution.
I'm not going to allow the version to be visible at the smallest window sizes. It's only important to be visible for us maintainers when we are evaluating screenshots of the app.
@Frosty-J, do you have a mac computer with a retina display? I could use your help debugging a certain feature.
Otherwise, I believe I've addressed everything under my purview in my recent batch of PR's. Please let me know if I missed anything @tommyettinger. Thanks.

Sadly, I don't have a Mac. I can set Windows or Linux to Retina density, but that's it. Not without investigating macOS VMs again, which didn't work very well before (might be a bit better now with gdx-angle).
That's a big batch size you've got, there!

Thank you for offering your assistance, @JojoIce. Can you try the following versions of the app?
hdpi-pixels.zip
hdpi-logical.zip
Please take screenshots of the app at its default window size and when the window is maximized. Which one do you think is better?
I've tried both on my 4K windows screen and it seemed to make no difference at all. I was hoping it would have an effect on Mac.

The mouse over color (red) shows up when resizing the window if a button ends up where the mouse initially clicked down to resize.
I assume that is the same for any platform and display.

I have a solution for that, but it requires making changes to libGDX and I don't like doing that unless I feel really perturbed by the behavior.
Thanks!

Hi @raeleus
So just starting liftoff gives you this:

logical to the left and pixels to the right. I notice that in pixels the white has gone a bit more towards gray.
When minimizing the window you will get this:

On the external screen, they both look like the logical window.
Will send fullscreen images in a bit, but for me logical behaves like most other apps in that it does not change while dragging between external and laptop screen and does not have lots of empty space while having (for me) a bit too tiny font.
Only thing is that pixels show the version in more window sizes, but I feel that is a minor thing and can possibly be solved in the same way as the reset button was in these builds.

Just to contradict myself right away, here is the 3rd party list in a minimal window:

Here I'd say the right pixels window is slightly more useful, but the best solution would probably just be to use a bit smaller font as was done for the paths input fields, and still go with logical setup. When maximizing the windows the pixels is a small list with tiny font inside of a very big and mostly very empty window.

The logical fullscreen is a bit of a mystery. If I just maximize the screen (dbl-click toolbar) on my 14-inch Mac book I still have to flip between the pages SOMETIMES! Have not yet figured out when I get the single screen and when I have to click Options and Next. If I instead enter fullscreen mode then I get the one page view:

In pixels mode I have so far gotten he one page setup even when I just maximize the window:

See  the top area for the difference.
Again Logical is the winner for me. Easier to read and less "wasted space". Could possibly be different on a smaller screen.
So for me the overall winner is hdpi-logical. If you'd wanna go fancy, then maybe change some font-sizes depending on window size, and then it would be the winner on all accounts.
But then... The beauty is in the beer holder or whatever you say, but that is my take on it.
Lemmi now if you need any more tests.
Oh, and is it possible to add MrStahlfelge's gdx-gamesvcs and dkimitsa's altpods as 3rd-party plugins?
Great work all!

RE: new libraries, sure, I'll definitely be able to add gdx-gamesvcs, but I don't know the first thing about altpods. If they're normal Gradle dependencies, they'll work fine.

I started using gamesvcs about 5 years ago, and it still works for what I do (Google Play Games, Apple Game Center and GameJolt). I know of no other abstraction layer for these and as long as it still works I keep using it. It is mostly for submitting scores and achievements and requesting leaderboard and achievement list, so not much is changing there.
Not sure what other devs for mobile use to be honest.
So it is one "API" from the core code point of view and then it can be implemented in different ways in the back-end so to speak, which is the clever thing about it, but possibly a tiny bit more complex from the plugin perspective, but I imagine that it will be just a few different plugins and one would simply select the ones you want to use plus the "core".
Regarding the Altpods... They are Gradle plugins. If they are normal depends on the definition of normal. I think they are very valuable. I currently mostly use the Firebase: Analytics and Google mobile ads. If you are somewhat serious about making iOS games, then something like that is needed and the robopod firebase is the best I have found: https://github.com/dkimitsa/robovm-robopods/tree/alt/firebase . One will have to compile the iOS libs on your own, but that can mostly be copied from the alt-pod-tests: https://github.com/dkimitsa/alt-pods-tests/blob/master/libs/copy_firebase_libs.sh . Probably enough to link that that and have the firebase pod as a plugin.
Any plugins that do this would work, but these are the ones I have found that handle Game Services (cross-platform) and Ads (iOS) satisfactor.
All that in action in beta-test lib-gdx game here: https://trilligames.com/?page_id=164
It works well.

Thanks for the followup on the retina stuff, JojoIce. You've given me a lot to think about and I'll have to make some decisions by next week.


Fix URLs in metadata.json

This is a detail, as github redirects to puppetlabs-postgresql anyway in the browser, but it fails when using the Github API.

@mhaskel @cmurphy this is a very trivial fix

Thanks @raphink


How can I  get istio-proxy stat  when triggering circuit breaker?

I am using the istio 1.2.5 to test the function of circuit breaker with fortio step by step according to the document.But I get nothing when I run kubectl exec "$FORTIO_POD" -c istio-proxy -- pilot-agent request GET stats | grep httpbin | grep pending.I feel confused about it. Is there any other settings about fortio or istio? And I find the value of upstream_rq_pending_overflow is 0.

It is likely that doc for 1.7 is not working properly with 1.2 istio. Can you try to follow 1.2 doc https://istio.io/v1.2/docs/tasks/traffic-management/circuit-breaking/?
Also note, 1.2 is way out of support window, please consider upgrade to newer version of Istio. thanks.

Closing this as its on a very EOL version and there has been no updates for months. Thanks


[Question] VQGAN loss function

Question
Thank you for your great work. I would like to try the VQGAN implementation in your repo, I found the loss definition in the code libra/models/libra/taming/models/vqgan.py:
        if lossconfig is not None:
            self.loss = instantiate_from_config(lossconfig)
        # self.quantize = VectorQuantizer(n_embed, embed_dim, beta=0.25,
        #                                 remap=remap, sane_index_shape=sane_index_shape)

I search the repo but does not found the config file, could you provide an example of the loss config, thank you very much.

Hi, the current code only provides a vqgan tokenizer for inference, therefore removing the loss configurations. I will update an instruction later for training a vqgan with LFQ.

Hi @binbinsh,
Thank you for your excellent work. I would appreciate it if you could provide more details on how to train the image tokenizer. Here is my initial understanding:
Assuming we have a patch feature z with a dimension of 512 from CLIP ViT, LFQ first projects it from 512 to 18 dimensions (for simplicity, let's ignore the efficient implementation that uses two codebooks). Each dimension is then quantized to -1 or 1. Once we have the quantized feature, we can calculate the corresponding index idx. After that, the reconstructed feature is obtained by projecting this 18-dimensional feature back to 512 dimensions, which is then fed into the VQ-GAN decoder to generate the original image.
Once the image tokenizer is trained, the idx of the input image is used for discrete autoregressive training.
Am I misunderstanding or missing any important details in this process?
Thanks again!

Hi @haibo-qiu ,
From my understanding, this is how the process goes!


error during config check

PROGRAM ERROR
A Program Error Occcured in checkconfig.py line 358
'bool' object is not subscriptable

Version 0.6.3

seems to be related to the (missing) spindle settings

This has been fixed


Support upgrade tests in manual e2e simd workflow

Summary
The manual workflow dispatch via the Github UI doesn't allow support for running upgrades tests from the UpgradeTestSuite.
I believe we're missing some user supplied inputs such as the upgrade plan and target upgrade release tag.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

It's possible to run the upgrade workflow directly, but this runs them all, and uses values specified in the workflow as opposed to be configurable.


Allows number of hosts to be set with an environment variable

Changes proposed in this PR

introducing COOK_TEST_BALANCED_CONSTRAINT_NUM_HOSTS, which allows the user to set the number of hosts used in test_balanced_host_constraint_can_place
adding logging in util.__get when an unexpected status code comes back

Why are we making these changes?
In environments which dynamically provision Mesos agents, expecting 30 hosts to come up within the test timeout is not always realistic. The environment variable allows users to tone down this expectation. The logging is just for easier troubleshooting.

@pschorf Any feedback on this?

@pschorf bump


Increase code coverage

Currently the code coverage of pinot repo is just around 50% (Link).
This issue tracks the status of increasing code coverage.
The following modules currently have less than 50% code coverage or don't have any test at all:

pinot-clients/pinot-java-client (46.15%)
pinot-common (47.96%)
pinot-plugins (36.38%)
No code coverage:

pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-common
pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-hadoop
pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-spark
pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-stadardalone
pinot-plugins/pinot-file-system/pinot-gcs
pinot-plugins/pinot-file-system/pinot-hdfs

The rest of the modules shown below seems fine but we should still bring them to at least 75%.
pinot-broker (76.6%)
pinot-controller (63.29%)
pinot-core (76.85%)
pinot-minion (68.98%)
pinot-server (67.05%)
pinot-spi (68.84%)

The code coverage link in the above comment is broken. Can someone please add the updated link with current code coverage?

Thanks @visrahane for the notice. The link is just updated.


[Errors] error recovery with unknown modifier

declare module M {
    export extension class C {
        public pe: string;
    }
}

var c = new M.C();

c.pe;

Expected:
!!! Unexpected token; 'module, class, interface, enum, import or statement' expected.
Actual:
!!! Declaration or statement expected.
!!! ';' expected.
!!! Duplicate identifier 'C'.
!!! Statements are not allowed in declaration contexts.
!!! Unknown identifier 'extension'.
!!! Property 'pe' does not exist on type 'C'.

Closing for housekeeping purposes. The behavior outlined in the OP has been in place for over 18 month now and have not got any updates on this issue. Please file a new issue if an action is required.


Generate qiskit-addon-mpf 0.2

This release is notable because it changes the config in two ways:

We now show release notes
We add a TocGrouping

The commits are distinct. First and fourth are manual


Will dubbo support .net？When?

如题，公司技术团队采用多种开发语言，目前java和.net需求最大。

dubbo doesn't have plan to support .NET yet, but we do have plan on multi-language support

https://github.com/alibaba/dubbo/issues/1057


:seedling: Bump golang to 1.22 in release 1.6

This is done since golang 1.20 is already deprecated and branch 1.6 is still supported
Fixes #597

Here is the PR to also update the Prow config

/cc @Sunnatillo


Testing/Implementing OpenSource  ChatGPT Alternatives

https://github.com/tatsu-lab/stanford_alpaca experiments are focused around this one


fix: Remove 'kurtosis version' depending on the engine

Description:
I was surprised that kurtosis version was taking 7 seconds without any extra output, and so I checked out the code to discover that the  kurtosis version command was depending on the engine. This felt wrong to me, given that we already have engine status to display the version (and it's more detailed besides - e.g. if the engine is unreachable, you get a message saying why).  If we want one command to display the status of both CLI and engine(which would also be fine), we should consolidate the two so that we're not duplicating partial functionality of engine status in version.
All that said, I'd also be fine if we went the other way and built out version heavily to properly communicate what's happening with the engine, and why it's hanging for 7s. This seemed like it would be a bigger change though and my Goland is already yelling at me for Go workspaces stuff that I don't know how to fix, so I went with the quickest change I could.
Is this change user facing?
YES
References (if applicable):
Fixes #1206

Added docs here: https://github.com/kurtosis-tech/kurtosis/pull/1240, @mieubrisse can I get a review 🙏🏻


Recovering Site Server from 3rd Party Backup

In the 'Recover the site server using an existing backup' section it states: "Use this option when you have a Configuration Manager backup".  I think it's reached the level of tribal knowledge now that you can't just restore the OS from a 3rd party product or a VM snapshot.  Even if that backup contains the SQL database.  If that's truly th ecase it'd be great to have that clarified here.  I'd write it up but I don't know this to be true from personal experience or testing.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9d2bf93f-aa79-ef8a-ee16-c1ed27eb8e13
Version Independent ID: d64f0463-a1e0-b80b-f16b-39f54dd87154
Content: Site recovery - Configuration Manager
Content Source: sccm/core/servers/manage/recover-sites.md
Product: configuration-manager
Technology: configmgr-other
GitHub Login: @mestew
Microsoft Alias: mstewart

I assume it's not something we test, thus don't support. Generally we don't doc what we don't support. @bryandam are you suggesting that we make an explicit comment that it's not supported? Can you clarify your request a bit?

Generally we don't doc what we don't support
Hmm, fair enough, that probably kills it right there.

A lot of people will take a VM snapshot or otherwise backup the OS before doing things like a ConfigMgr site upgrade on the assumption that they can just roll back if things go wrong.  Tribal knowledge says that won't work and is a one-way ticket to Premier support land.  However, those methods aren't documented here thus they're implicitly not supported.  Which means you can close this.  I have a few small edits I might make.

Discussed with @mestew, closing
Thanks @bryandam 😄

After much debate, we decided to list the backup methods we do support for site recovery at the top of the Backup article using a warning box. I suspect the change will go live around 11 AM PST today or tomorrow. =)

Beautiful ...  ... just beautiful.  Thanks for listening!


Tawk.to webapp in Flutter

Hi,
I tried to make a simple 1 page app with the code from the tutorial, but on the webpage version I get:
"Unsupported operation: Trying to use the default webview implementation for TargetPlatform.macOS but there isn't a default one".
What am I doing wrong? Is webpage not supported yet?

same issue here. Any fixes???


fix: use default commit types

I'm currently getting this thrown when I try and commit anything to my modules:
/Users/mattlewis/Code/open-source/angular2-calendar/node_modules/validate-commit-msg/index.js:87
    if (types !== '*' && types.indexOf(type) === -1) {
                               ^

TypeError: types.indexOf is not a function
    at validateMessage (/Users/mattlewis/Code/open-source/angular2-calendar/node_modules/validate-commit-msg/index.js:87:32)
    at /Users/mattlewis/Code/open-source/angular2-calendar/node_modules/validate-commit-msg/index.js:149:10

This should do the trick, happy to follow up with a test, just wanted to get something out the door as I'm currently unable to commit to any of my modules 😄

Current coverage is 100% (diff: 100%)

Merging #46 into master will not change coverage

@@           master   #46   diff @@
===================================
  Files           1     1
  Lines          91    90     -1
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
- Hits           91    90     -1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 8e0d4eb...d2048ec

Ah, this makes sense. Thanks!


greek song

Stack:

#23
#22
#21
#20 ⬅
#24

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

✓ Commit merged in pull request #23


Erro

FTL Failed to initialize blob store error="Failed to check if bucket images exists: Get "http://localhost:9000/images/?location=\": dial tcp [::1]:9000: connectex: No connection could be done because the target machine actively refused them."

Make sure you are using the most recent docker-compose file.

I'm using Windows

Are you running all services defined in the docker-compose file yourself? Embed Generator depends on Postgres and an S3 store (e.g. minio) to work. The error you are getting looks like you don't have an S3 store configured.


i18n(zh-cn): Update styling.mdx

Description (required)
Update styling.mdx
Related issues & labels (optional)

https://github.com/withastro/docs/pull/9240

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note

zh-cn/guides/styling.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Ravindra Jadhav

Category

[x] New Sample

What's in this Pull Request?
Power Apps Calendar Component

Thanks for your pull request, @jadhavravi! You did it!!!!.
Go forth and contribute! 😉


WriteConsoleOutput() does not write at expected position when console window is maximized/restored

Windows Terminal version
1.20.11381.0
Windows build number
10.0.22631.3737
Other Software
using System;
using System.IO;
using System.Runtime.InteropServices;

namespace ConsoleApp1
{
	internal class Program
	{
		[DllImport("Kernel32.dll")]
		static extern IntPtr CreateFile(
			string fileName,
			[MarshalAs(UnmanagedType.U4)] FileAccess fileAccess,
			[MarshalAs(UnmanagedType.U4)] FileShare fileShare,
			IntPtr securityAttributes,
			[MarshalAs(UnmanagedType.U4)] FileMode creationDisposition,
			[MarshalAs(UnmanagedType.U4)] FileAttributes flags,
			IntPtr template);

		[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
		static extern bool WriteConsoleOutput(
			IntPtr hConsoleOutput,
			CharInfo[] lpBuffer,
			Coord dwBufferSize,
			Coord dwBufferCoord,
			ref SmallRect lpWriteRegion);

		const uint GENERIC_WRITE = 0x40000000;

		[StructLayout(LayoutKind.Sequential)]
		public struct Coord
		{
			public short X;
			public short Y;
		};

		[StructLayout(LayoutKind.Sequential)]
		public struct SmallRect
		{
			public short Left;
			public short Top;
			public short Right;
			public short Bottom;
		}

		[StructLayout(LayoutKind.Explicit)]
		public struct CharInfo
		{
			[FieldOffset(0)] public char Char;
			[FieldOffset(2)] public short Attributes;
		}

		static void Main()
		{
			int backgroundColor = 1;
			var handle = CreateFile("CONOUT$", (FileAccess)GENERIC_WRITE, FileShare.Write,
						IntPtr.Zero, FileMode.Open, 0, IntPtr.Zero);

			while (true)
			{
				int width = Console.WindowWidth;
				int height = Console.WindowHeight;

				CharInfo[] buffer = new CharInfo[width * height];
				for (int i = 0; i < buffer.Length; i++)
				{
					buffer[i] = new CharInfo() {
						Char = ' ',
						Attributes = (short)((backgroundColor % 3 + 1) << 4)
					};
				}

				var rect = new SmallRect() {
					Left = 0,
					Top = 0,
					Right = (short)(width - 1),
					Bottom = (short)(height - 1)
				};
				//Console.SetCursorPosition(1, 0); //fix the issue
				WriteConsoleOutput(handle, buffer, new Coord() {
					X = (short)width,
					Y = (short)height
				}, new Coord() { X = 0, Y = 0 }, ref rect);
				Console.Beep(500, 250);
				System.Threading.Thread.Sleep(1000);
				backgroundColor++;
			}
		}
	}
}

Steps to reproduce
Run the program above.
It outputs a new background color every second, along with a beep.
Maximize console window (eg: double click on title)
Restore console window (eg: double click on title again)
Expected Behavior
Right after console window is restored, the background color is updated.
Actual Behavior
The background color stay the same.
WriteConsoleOutput() render characters at the top of the console area, which is invisible (you have to scroll up to see it).
Instead, it should render characters in the visible portion of the console.
Setting the console cursor at a position other than (0, 0) fix the issue. That probably why some project like Terminal.Gui are not affected (eg: cursor is usually set inside active control).
The old command prompt does not have this bug. Using AtlasEngine does not fix the issue.

This issue was partially addressed with v1.21 (not entirely sure which PR did that) and will be fully addressed in v1.22 (due to #17510). v1.22 will be released as the next Preview version next week.


Access Error 403 - Access Denied from Curl in a C program, but not from shell

Before anything, I want to thank you for a great program. It will make my life much simpler once I have it running.
I am having the following problem. running Docker image with custom SSL certs.
To run:
sudo sudo docker run --env-file ~/IBK/gw/env.list -p 5000:5000 --name ibeam -v /home/IBK/gw/root:/srv/inputs/ voyz/ibeam
2024-05-05 17:34:42,793|I| ############ Starting IBeam version 0.5.1 ############
2024-05-05 17:34:42,794|I| TLS certificates found and will be used for verification
2024-05-05 17:34:42,794|I| Custom conf.yaml found and will be used by the Gateway
2024-05-05 17:34:42,796|I| Secrets source: env
2024-05-05 17:34:42,797|I| Health server started at port=5001
On loading:
2024-05-05 17:35:22,048|I| Loading auth webpage at https://localhost:5000/sso/Login?forwardTo=22&RL=1&ip2loc=on
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/srv/clientportal.gw/build/lib/runtime/netty-common-4.1.15.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
-> mount demo on /demo
Java Version: 11.0.20

version: a27ed42161ad96c53e715ca5c5e3e3fa4cff5262 Mon, 24 Apr 2023 15:41:53 -0400

then it goes in authentication
Logging in succeeded
Repeating status check attempts another 14 times
AUTHENTICATED Status(running=True, session=True, connected=True, authenticated=True, competing=False, collision=False, session_id='411dc6xxxxxxx85acab', server_name=None, server_version=None, expires=593498)
Gateway running and authenticated, session id: 411dc680e89xxxxxxx185acab, server name: None
from command line:
curl -X GET "https://localhost:5000/v1/api/portfolio/accounts" --cacert cacert.pem
response is as expected:
[{"id":"U13sssdddd",....................."desc":"U138dfdfdf"}]
I wrote a c program that uses the same curl endpoint:
  curl = curl_easy_init();
  if (curl) {
  curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
  curl_easy_setopt(curl, CURLOPT_URL, "https://<IP_ADDRESS>:5000/v1/api/portfolio/accounts");
  /// to get response from server
  curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
  curl_easy_setopt(curl, CURLOPT_CAINFO,"/home/IBK/gw/root/cacert.pem");
  curl_easy_setopt(curl, CURLOPT_WRITEDATA, response_buffer);
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);

   curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
   }

when the program is executed, the docker gw  connects, authenticates the SSL. then rejects the request with 403:

Trying <IP_ADDRESS>:5000...
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 5000 (#0)
ALPN, offering h2
ALPN, offering http/1.1
CAfile: /home/IBK/gw/root/cacert.pem
CApath: /etc/ssl/certs
SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
ALPN, server did not agree to a protocol
Server certificate:
subject: C=US; ST=FL; L=Miami; O=Andres; CN=Andres
start date: May  4 15:44:40 2024 GMT
expire date: May  4 15:44:40 2026 GMT
subjectAltName: host "<IP_ADDRESS>" matched cert's IP address!
issuer: C=US; ST=FL; L=Miami; O=Andres; CN=Andres
SSL certificate verify ok.

GET /v1/api/iserver/accounts HTTP/1.1
Host: <IP_ADDRESS>:5000
Accept: /

Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
< Referrer-Policy: Origin-when-cross-origin
< Content-Type: text/html; charset=iso-8859-1
< Expires: Sun, 05 May 2024 17:35:56 GMT
< Cache-Control: max-age=0, no-cache, no-store
< Pragma: no-cache
< Date: Sun, 05 May 2024 17:35:56 GMT
< Connection: keep-alive
< Set-Cookie: x-sess-uuid=0.1b213017.17156.b8d0225; secure; HttpOnly
< Server-Timing: cdn-cache; desc=MISS
< Server-Timing: edge; dur=4
< Server-Timing: origin; dur=33
< Strict-Transport-Security: max-age=600 ; includeSubDomains
< Server-Timing: ak_p; desc="1714930556511_389030171_193790501_3785_7176_20_0_-";dur=1
< Transfer-Encoding: chunked
<
Connection #0 to host <IP_ADDRESS> left intact
Resp Orig v6: Error 403 - Access Denied
Resp1: Error 403 - Access Denied

my conf.yaml:
ip2loc: "US"
proxyRemoteSsl: true
proxyRemoteHost: "https://api.ibkr.com"
listenPort: 5000
listenSsl: true
ccp: false
svcEnvironment: "v1"
sslCert: "cacert.jks"
sslPwd: "mypass"
authDelay: 3000
portalBaseURL: ""
serverOptions:
    blockedThreadCheckInterval: 1000000
    eventLoopPoolSize: 20
    workerPoolSize: 20
    maxWorkerExecuteTime: 100
    internalBlockingPoolSize: 20
cors:
    origin.allowed: "*"
    allowCredentials: false
webApps:
    - name: "demo"
      index: "index.html"
ips:
  allow:
    - 192.*
    - 131.216.*
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - 192.xxx.xxx.xxx  // my ip
  deny:
    - 212.90.324.10

Ibeam continues running and stays connected.
curl is running the same version from the shell and from the c program:
libcurl version: 7.81.0
system :   Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64)
Java Version: 11.0.20 on docker
BTY:
-same error results when executing as root.
-same error when trying other endpoints.
Thanks for your help

Hey @gpu-1 thanks for checking out IBeam and for your kind words 😊
As for your issue, I cannot see anything that would directly point to the cause. I've never used C/curl to communicate with the Gateway in the way you do. That being said, I do use curl successfully on its own, and I can see that it is working for you just fine.
Additionally, I'm noticing that you both provide the SSL certificate and disable SSL certificate verification (I'm deducing this from your comments).
  curl_easy_setopt(curl, CURLOPT_CAINFO,"/home/IBK/gw/root/cacert.pem");
  ...
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L); // Disable SSL certificate verification

Possibly this could cause some issues?
In either case, if you disable the SSL verification, why the log report:
SSL certificate verify ok.

Sounds like possibly something isn't quite correct in the setup.
If you access the the IBeam container you can find the Gateway logs in the clientportal.gw/logs directory. See if there are any clues there.

I am sorry. that commented (// Disable SSL cert verif) was from a previous test where I blocked SSL verification. Its is actually verifying SSL. I edited my original post  to clarify
I followed your advise and logged into the GW log.
this is what I see when i test with the C curl:
04:22:44.737 INFO  vert.x-eventloop-thread-0 BaseServiceProxy     : -> GET /v1/api/iserver/accounts,403|121ms
response is 403.

this is the log of the shell curl:
04:29:12.797 INFO  vert.x-eventloop-thread-0 BaseServiceProxy     : -> GET /v1/api/portfolio/accounts,200|94ms
response is 200.

Fixed.
Must set the user agent:
curl_easy_setopt(curl, CURLOPT_USERAGENT,"curl/7.81.0");
this fixed the rejection...

Ah, great news @gpu-1 thanks for reporting back 👍 Feel free to close this issue when ready


How do you run on a physical device as of rn 0.29? ...with Reload JS working

I can no longer run in a physical device, I just get Could not connect to development server.  The docs seem to be quite out of date.
Questions:
What do I put in my AppDelegate.m?  It used to looks like this (modified from the original to allow me to access my dev server from a physical device):
  #ifdef DEBUG
    jsCodeLocation = [NSURL URLWithString:@"http://<my-ip-address>:8081/index.ios.bundle?platform=ios&dev=true"];
  #else
    jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  #endif

But since the upgrade its changed to this:
jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];
If i don't make any changes I can run on a physical device, but Reload JS doesn't work.  Is it possible to load js code on the fly as before?
What do I put in my Info.plist file for NSAppTransportSecurity ?  The default settings are now:
	<key>NSAppTransportSecurity</key>
	<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
	<dict>
		<key>NSExceptionDomains</key>
		<dict>
			<key>localhost</key>
			<dict>
				<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
				<true/>
			</dict>
		</dict>
	</dict>

Tried changing localhost to my <my-ip-address> but it doesn't seem to work.
Is there a configuration that allows my to test both a physical device and a simulator without having to change code each time?

allow http setting:
NSAppTransportSecurity

NSExceptionDomains

localhost

NSTemporaryExceptionAllowsInsecureHTTPLoads

NSAllowsArbitraryLoads

I've followed the instructions and tried this. Adding a localhost, or ipaddress entry to the NSExceptionDomains settings in my info.plist file doesn't help me run on an external device.  I can't reload the JS dynamically anymore.

IP addresses are not supported by ATS. Either use a tunnel (ex: with xip.io) or disable ATS entirely.

Thanks for the reply.  When you say "disable ATS entirely", do you mean:
<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

I've tried it, and I think I understand what it means - but it doesn't change the fact that since RN0.29 my phone is loading only the bundled javascript, and there doesn't seem to be a way to tell it to load the JS dynamically from my laptop any more.  I guess my question is - where do I configure my app to load JS from my laptop?
I used to do this:
jsCodeLocation = [NSURL URLWithString:@"http://<IP_ADDRESS>:8081/index.ios.bundle?platform=ios&dev=true"]
What do I do now instead?

Yes that all sounds right. Not sure where the bundled JS is coming from -- maybe check that jsCodeLocation is actually the value you expect it to be at runtime.

That's my question - what should it be? Since RN 0.29 its set to jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];.

AFAIK the packager server URL hasn't changed so the old URL should work (visit it in your browser as a sanity check).

Ok, the answer is to have this in your AppDelegate.m:
  #ifdef DEBUG
    jsCodeLocation = [NSURL URLWithString:@"http://<IP_ADDRESS>:8081/index.ios.bundle?platform=ios&dev=true"];
  #else
    jsCodeLocation = [[RCTBundleURLProvider sharedSettings]<EMAIL_ADDRESS>fallbackResource:nil];
  #endif

And this in your Info.plist:
<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

+1 would be good to have docs for this because the new default template doesn't support debugging on the device

@mvayngrib: seems like https://github.com/facebook/react-native/issues/8737 is addressing your concerns about the docs


Status is WARPING on load

You don't start with a subspace, so your ID is -1.  Time warping and stopping will fix the status.

Not sure the proper place to assign or grab the current subspace on load, but it seems like you should have a subspace on load, or join the current active subspace...

Players should join the latest subspace when they join.  They appear to join at T=0.

Only happens with a saved server state, couldn't reproduce this at first but this doesn't seem to happen if you have a new universe (delete / backup old one to see it working correctly.)

Fixed


Fix #176 - url was being decoded, trimmed, and written back unencoded

Fixes #176.
It looks like this issue was introduced by this commit back in May when fixing issue #112.
The problem was decoded (invalid) URLs were being written back into the browser address bar (potentially after having trailing characters removed from query string).
I've also tested the original issue #112 with this change in place and it still works correctly....
<Link href="/bla bla bla">Blah</Link>...
...is correctly matched against route { path: '/bla bla bla', component: Blah }...
... and shows /bla%20bla%20bla in the address bar.

Ok this is still an improvement. So lets move forward with this for now.


Still not clear with CRT and UCRT

Hello, I would like to see a package view of CRT before VS2015 and after VS2015 due to the so-called Great C Runtime refactoring. After reading this article, I guess, the new CRT consists of UCRT and the vcruntime libraries, am I right? MS recommends now the developers to upgrade their C programs to depend on UCRT after the great refactoring, right? I am asking because I am helping our team to upgrade development environement from VS2013 to VS2017 which jumps over VS2015.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4f9074f9-b954-c810-e449-f2663c1546ce
Version Independent ID: 4b3b0d42-eae9-d7bb-4b5f-e505595204bc
Content: CRT Library Features
Content Source: docs/c-runtime-library/crt-library-features.md
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

@CaryFan I am closing this issue as a duplicate of #335. To answer your question, any code compiled with VS2015 or later must use the UCRT. Code compiled with earlier versions of Visual Studio must use the earlier version of the CRT. The section "What problems exist if an application uses more than one CRT version?" describes pitfalls that can occur when you mix and match CRT versions in the same executable.