Crash: LevelDB not created for Firestore with large data set

[REQUIRED] Step 2: Describe your environment

Xcode version: 11.2.1
Firebase SDK version: 6.13 (and older)
Firebase Component: Firestore
Component version: 6.13

[REQUIRED] Step 3: Describe the problem
When connecting to a specific Firestore database, the Firestore iOS SDK fails to create a local LevelDB database after a simple read from the Firestore is attempted. This causes an exception to be thrown by Firestore (app crashes) within ~1 minute, I assume when garbage collection runs the next time.
When attempting the same read from an empty Firestore (by swapping GoogleService-Info.plist), the database is correctly created.
If I disable persistence, the crash does not occur.
It looks like LevelDB intialization fails due to something specific to our Firestore. I suspect the complexity and size of our data set might be causing this issue.
Steps to reproduce:
The following exception is thrown ~1 minute after the read attempt:

FIRESTORE INTERNAL ASSERTION FAILED: Failed to iterate leveldb directory: Could not open directory ~/Library/Developer/CoreSimulator/Devices/9AC16742-2008-41BF-A6C4-DA78AA0D2EDF/data/Containers/Data/Application/645B2DFF-ACB2-4FF6-B90A-86CDD52F0DA6/Documents/firestore/__FIRAPP_DEFAULT/facilit-database-test/main (errno 2: No such file or directory) (expected iter->status().ok())

When observing the file system during the read, I can see the database file created, and instantly deleted, so I assume something goes wrong during LevelDB initialization.
It doesn't matter if the data I'm attempting to read is actually in the DB, the result is the same. On the problematic Firestore, the LevelDB files are not created, and on an empty Firestore, the LevelDB files are correctly created
We already have a working Android version of our app, which does not exhibit this issue, so it leads me to believe that this might be iOS SDK specific.
Stack trace:
> Queue : com.google.firebase.firestore (serial)
> 0	0x00007fff50b97af0 in objc_exception_throw ()
> 1	0x00007fff23c4eda8 in +[NSException raise:format:arguments:] ()
> 2	0x00007fff256c9c2a in -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] ()
> 3	0x00000001081de6e0 in firebase::firestore::util::ObjcThrowHandler(firebase::firestore::util::ExceptionType, char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
> 4	0x00000001081de2fe in firebase::firestore::util::Throw(firebase::firestore::util::ExceptionType, char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
> 5	0x0000000108225ca6 in firebase::firestore::util::internal::FailAssertion(char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
> 6	0x0000000108225d6d in firebase::firestore::util::internal::FailAssertion(char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*) ()
> 7	0x000000010823157c in firebase::firestore::local::LevelDbPersistence::CalculateByteSize() ()
> 8	0x00000001082472c3 in firebase::firestore::local::LruGarbageCollector::Collect(std::__1::unordered_map<int, firebase::firestore::local::QueryData, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, firebase::firestore::local::QueryData> > > const&) ()
> 9	0x0000000108246e2b in std::__1::__function::__func<std::__1::enable_if<!(std::is_same<void, decltype(fp0())>::value), decltype(fp0())>::type firebase::firestore::local::Persistence::Run<firebase::firestore::local::LocalStore::CollectGarbage(firebase::firestore::local::LruGarbageCollector*)::$_16>(absl::lts_2019_08_08::string_view, firebase::firestore::local::LocalStore::CollectGarbage(firebase::firestore::local::LruGarbageCollector*)::$_16)::'lambda'(), std::__1::allocator<std::__1::enable_if<!(std::is_same<void, decltype(fp0())>::value), decltype(fp0())>::type firebase::firestore::local::Persistence::Run<firebase::firestore::local::LocalStore::CollectGarbage(firebase::firestore::local::LruGarbageCollector*)::$_16>(absl::lts_2019_08_08::string_view, firebase::firestore::local::LocalStore::CollectGarbage(firebase::firestore::local::LruGarbageCollector*)::$_16)::'lambda'()>, void ()>::operator()() ()
> 10	0x000000010823185b in firebase::firestore::local::LevelDbPersistence::RunInternal(absl::lts_2019_08_08::string_view, std::__1::function<void ()>) ()
> 11	0x000000010823ee65 in firebase::firestore::local::LocalStore::CollectGarbage(firebase::firestore::local::LruGarbageCollector*) ()
> 12	0x00000001082035e1 in std::__1::__function::__func<firebase::firestore::core::FirestoreClient::ScheduleLruGarbageCollection()::$_4, std::__1::allocator<firebase::firestore::core::FirestoreClient::ScheduleLruGarbageCollection()::$_4>, void ()>::operator()() ()
> 13	0x00000001081c848d in firebase::firestore::util::AsyncQueue::ExecuteBlocking(std::__1::function<void ()> const&) ()
> 14	0x00000001081deae8 in firebase::firestore::util::TimeSlot::InvokedByLibdispatch(void*) ()
> 15	0x000000010a15689c in __tsan::invoke_and_release_block(void*) ()
> 16	0x000000010a1565f2 in __tsan::dispatch_callback_wrap(void*) ()
> 17	0x000000010bd45d48 in _dispatch_client_callout ()
> 18	0x000000010bd486ba in _dispatch_continuation_pop ()
> 19	0x000000010bd5ba0f in _dispatch_source_invoke ()
> 20	0x000000010bd4c40e in _dispatch_lane_serial_drain ()
> 21	0x000000010bd4d17f in _dispatch_lane_invoke ()
> 22	0x000000010bd58a4e in _dispatch_workloop_worker_thread ()
> 23	0x00007fff51c0171b in _pthread_wqthread ()
> 24	0x00007fff51c0157b in start_wqthread ()

Relevant Code:

@urosk Thanks for your report and sorry for your troubles! Do you know if this happens on a single device, or is this happening across multiple devices? Furthermore, does the issue persist if you manually delete the LevelDB files (or invoke clearPersistence(completion:))?. Thank you!

One more follow up: Would it also be possible for you to send us the LevelDB files that are causing these problems? If it is possible, you can reach me at mrschmidt(at)google.com.

@schmidt-sebastian I tested it on a physical device and a couple of simulators, same issue.
The LevelDB files get auto-deleted by the SDK within 0.1 seconds of them being created. Just the root Firestore folder within iOS Documents folder remains.
Let me know if you need any further info.

This sounds scary. Is there a possibility your can share a small reproduction with us?
I also want to understand your previous statements more. You said that this might be influenced by the complexity and size of your dataset. Are you referring to the size and complexity of the size of your dataset on the backend? Or is this related to size of your data immediately before deletion?
We believe this might also be related to https://github.com/firebase/firebase-ios-sdk/issues/4269, so we would like to prioritize a fix for this.

I mean that the Firestore database, which is causing issues with creating the on-device LevelDB, is populated by quite a lot of data and we have quite deep nesting of data structures. I don't know if that affects levelDB initialization in any way, but I assumed it somehow does, since the issue doesn't happen on an empty Firestore database.
I can just run the following queries from the Firestore tutorial:
`let docRef = db.collection("cities").document("SF")
docRef.getDocument { (document, error) in
if let document = document, document.exists {
let dataDescription = document.data().map(String.init(describing:)) ?? "nil"
print("Document data: (dataDescription)")
} else {
print("Document does not exist")
}
}`
... and it fails to create the LevelDB on the populated Firestore, and succeeds on an empty Firestore (even if the data is not present in either).

We've had no luck reproducing this. The contents of the database on the Firestore server should have no impact on LevelDB initialization.
Does this reproduce in a clean Xcode project but re-using the GoogleServices-Info.plist from your project where it's failing? If so, could you share that file privately with me? I'm<EMAIL_ADDRESS>Another alternative would be to just zip up your whole Xcode workspace and share that. You could share that temporarily via Google Drive or similar.

Turns out it's not a Firestore bug.
The issue was in an SQLite library which is apparently messing with the documents folder. Disabling the library fixed the issue.
Sorry for the false alarm.

@urosk Very interesting!  Thanks for following up.  Can you provide more info about the SQLite library?  In particular I wonder if it's possible it could also be the root cause of https://github.com/firebase/firebase-ios-sdk/issues/4269 or if there's something else going on there.

This is perhaps another argument for resolving #843.

I doubt this will be helpful - but The SQLite library was iterating over the documents folder and deleting all files which contained the name of the SQL database in their filename.
And by coincidence, it also pattern matched some firestore files.
So yeah, I guess the takeaway is that a lot of things (programmer errors) can go wrong in the Documents folder.


Release of SD-XL unclip version

Hi, SD-XL is a great work for image generation with better visual quality and text-image alignment. I found there is a demo REIMAGINE XL which should be an XL version of SD v2.1 unclip. I am just kindly wondering if the weights of unclip version of SD-XL (i.e. image embedding as input for image variations) will be released? Thanks a lot!

Is there any update on this? Has there been any announcement?

Would simply running the SDXL-refiner work as an "unclip"?


[Codegen][DT] Remove tensor.pad logics entirely from materialization.

It removes a test in materialize_encoding_into_nop.mlir because it is no longer the case; we have good test coverage in other test cases.

LGTM. But the CI failed due to seemly irrelevant issues, so I assume it was due to intermittent problems.

yeah, it's caused by me. I fixed some of them in https://github.com/iree-org/iree/commit/ef2878636ca01a8f55ceef11bd819496467da61a. And hopefully https://github.com/iree-org/iree/pull/18134 is the last fix.


ath11k wireless subsystem times out

Describe the bug
Something is broken for me with the wireless system on the current nixos-unstable-small branch of nixpkgs (kernel version 5.11.20). My previous version (where it was working) is using kernel version 5.11.14.
The wireless device does not appear in the ip addr list.
Relevant logs:
Loading the ath11k drivers:
May 14 21:02:52 chaos dhcpcd[1350]: dev: loaded udev
May 14 21:02:52 chaos kernel: ath11k_pci 0000:72:00.0: WARNING: ath11k PCI support is experimental!
May 14 21:02:52 chaos kernel: ath11k_pci 0000:72:00.0: BAR 0: assigned [mem 0xa2500000-0xa25fffff 64bit]
May 14 21:02:52 chaos kernel: ath11k_pci 0000:72:00.0: enabling device (0000 -> 0002)
May 14 21:02:52 chaos kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC289: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker

This is where the job times out after waiting 1m30s:
May 14 21:02:54 chaos kernel: ucsi_acpi USBC000:00: UCSI_GET_PDOS returned 0 bytes
May 14 21:04:21 chaos systemd[1]: sys-subsystem-net-devices-wlp114s0.device: Job sys-subsystem-net-devices-wlp114s0.device/start timed out.
May 14 21:04:21 chaos systemd[1]: Timed out waiting for device /sys/subsystem/net/devices/wlp114s0.
May 14 21:04:21 chaos systemd[1]: Dependency failed for WPA Supplicant.
May 14 21:04:21 chaos systemd[1]: wpa_supplicant.service: Job wpa_supplicant.service/start failed with result 'dependency'.
May 14 21:04:21 chaos systemd[1]: Dependency failed for Address configuration of wlp114s0.
May 14 21:04:21 chaos systemd[1]: network-addresses-wlp114s0.service: Job network-addresses

To Reproduce
This occurs when booting using the 5.11.20 kernel on an XPS13 9310. During boot time it says waiting for a start job and then fails with
Timed out waiting for device /sys/subsystem/net/devices/wlp114s0

Expected behavior
The system should have a wireless subsystem.
Additional context
The ath11k driver is experimental and has a history of breaking and then repairing again after a few updates.
Notify maintainers

Since this is a kernel module, I am unsure who to tag. I do know @Mic92 has been involved with getting the XPS13 9310 wireless system to work.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Is this still an issue?


Issue with serialized TABLE queries

TABLE queries have rendering issues, probably due to a bug with Dataviews' tryQueryMarkdown. Mentioned here: https://x.com/WebInspectInc/status/1792173996613546438
Example:

This issue might be related: https://github.com/blacksmithgu/obsidian-dataview/issues/1984

In my case, the reading mode displays the table nicely:

But the source contains a lot of needless whitespace:

Adding a blank line between the query to serialize comment and the output seems to have fixed the issue. I've only applied this to table queries


Mod weeks crash the game, but playing the songs from them works fine

Describe your bug here.
When I try to play a week from a mod, the game crashes. Going to freeplay and manually selecting the songs seems to work fine though.
(Sorry if an issue has already been made for this, there's a lot of issues- also sorry if this is specific to the one mod I'm using, I haven't tested any other mods yet. I'll update this if I find out it is mod specific.)
Command Prompt/Terminal logs (if existing)
valentinebriese@Valentines-Air FNF-PsychEngine % lime test mac -debug
source/Achievements.hx:132: characters 30-54 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead

Compiling group: haxe
xcrun --sdk macosx clang++ -Iinclude -I/usr/local/lib/haxe/lib/discord_rpc/git/linc/ -I/usr/local/lib/haxe/lib/linc_luajit/git//linc/ -c -fvisibility=hidden -stdlib=libc++ -Qunused-arguments -g -I/usr/local/lib/haxe/lib/hxcpp/4,2,1/include -DHX_MACOS -m64 -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-format-extra-args -Wno-overflow -Wno-bool-conversion -DHXCPP_DEBUG -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) ... tags=[haxe,static]
 - src/lime/utils/AssetCache.cpp  [haxe,release]
Link: ApplicationMain-debug
source/Discord.hx:68: Discord Client initialized
source/Discord.hx:18: Discord Client starting...
source/Discord.hx:25: Discord Client started.
source/LoadingState.hx:162: Setting asset folder to SUMinipack
source/Conductor.hx:135: new BPM map BUDDY [{ stepTime => 64, stepCrochet => 62.5, bpm => 240, songTime => 8000 },{ stepTime => 80, stepCrochet => 200, bpm => 75, songTime => 9000 },{ stepTime => 96, stepCrochet => 100, bpm => 150, songTime => 12200 },{ stepTime => 576, stepCrochet => 50, bpm => 300, songTime => 60200 },{ stepTime => 592, stepCrochet => 100, bpm => 150, songTime => 61000 }]
source/FunkinLua.hx:2756: initializing haxe interp for: mods/SUMinipack/stages/rosesroom.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/stages/rosesroom.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/custom_notetypes/Monster Notes.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/custom_events/Black FG Toggle.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/custom_events/Black BG Toggle.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/data/my-monster/note camera.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/data/my-monster/cutscene.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/data/my-monster/miss.lua
source/FunkinLua.hx:108: lua file loaded succesfully:mods/SUMinipack/data/my-monster/monster.lua

Are you modding a build from source or with Lua?
Lua
What is your build target?
Mac
Did you edit anything in this build? If so, mention or summarize your changes.
No, not directly, I have one mod, Steven Universe Mini Mod Pack

ah yes the error i encountered just delete the week file and recreate it in the week editor though i broke mine in story mode and freeplay giving null object and unexpected character errors so just
remake the week file
if that does not work sorry


refactor: remove more Newtonsoft.Json

Part of #231

@JamieMagee I had to revert the changes to port the VcpkgComponentDetector to use System.Text.JSON.
System.Test.JSON does not support handling of missing members in .NET 6, we'd have to either upgrade .NET versions (and lose LTS :(), add the full SPDX definition to VcpkgSBOM, or use some library that has a full SPDX contract.

Closing this for now as there are too many features that are missing from System.Text.Json that we are missing in .NET 6. We can attempt this again once .NET 8 is released.


[Bug]: Pages are not redirected to url with trailing slash

Steps to reproduce

Go to https://nifty-neumann-ecf646.netlify.app/arkisto
Page is not redirected to https://nifty-neumann-ecf646.netlify.app/arkisto/

If I run yarn build && yarn export in local the files are created as arkisto/index.html. On Netlify it looks like they are created as arkisto.html.
A link to a reproduction repository
https://github.com/vpreponen/indyville/
Plugin version
4.0.0
More information about your build

[ ] I am building using the CLI
[X] I am building using file-based configuration (netlify.toml)

What OS are you using?
No response
Your netlify.toml file

`netlify.toml`
[[redirects]]
  from = "/feed"
  to = "/feed.xml"
  status = 301
  force = true

[[redirects]]
  from = "/baari"
  to = "https://baari.indyville.fi/"
  status = 301
  force = true

[[redirects]]
  from = "/baari/*"
  to = "https://baari.indyville.fi/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/retro"
  to = "https://retro.indyville.fi/"
  status = 301
  force = true

[[redirects]]
  from = "/retro/*"
  to = "https://retro.indyville.fi/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/kuvat/*"
  to = "https://assets.indyville.fi/kuvat/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/jw_flv/*"
  to = "https://assets.indyville.fi/video/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/svg/*"
  to = "https://assets.indyville.fi/svg/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/tiedostot/*"
  to = "https://assets.indyville.fi/tiedostot/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/villen_muut_tiedostot/*"
  to = "https://vp.indyville.fi/files/:splat"
  status = 301
  force = true

[[redirects]]
  from = "/metsapuhuu/*"
  to = "https://vp.indyville.fi/metsapuhuu/:splat"
  status = 301
  force = true

Relevant log output (or link to your logs)

Build logs
https://app.netlify.com/sites/nifty-neumann-ecf646/deploys/61b9c66dc562b20008e09ff6

Hello! Thanks for raising up this issue.
Trailing slash is not enabled by default by Next, so you'll have to enable it in the config. Instructions on how to do so can be found in the Next Docs.
I also noticed you have two next plugins installed, you can remove netlify-plugin-cache-nextjs which is an older version. One other thing, we do not do any building with next export on the Netlify side, which exports your Next.js application to static HTML.
Let me know if that works for you!

Trailing slash is enabled in the config and this works for urls that don't match to static files.
I previously tested removing the cache plugin but this throws a warning during deploy and doesn't fix the redirects.
warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache

Ahh, got it, thanks for the extra info. Sadly there doesn't seem to be a great workaround to this yet. Changing your site to not use the CDN via an environment variable (SERVE_STATIC_FILES_FROM_ORIGIN) to make it serve from the origin instead should resolve this for you, but that is at the cost of performance.

All right, thanks for the help. I'll have to change my relative urls to root relative then.

https://github.com/netlify/netlify-plugin-nextjs/issues/1448

The team at Netlify have now released the new v5 Next.js runtime which has support for both pages and app router, on-demand and time-based revalidation, automatic fine-grained cache control, and automatic image optimization using Netlify's image CDN. This should also fix this issue.
You can find the documentation and additional information here: Next.js on Netlify
The v4 runtime is now in the maintenance support phase with no new features being added. Occasional bug fixes and security patches will be applied when needed.
Thanks!


add event categories and event listings and change psswd

Pull Request Test Coverage Report for Build 234

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build 191:
0.0%

Covered Lines:
0

Relevant Lines:
38

💛  - Coveralls


Fixed transaction_tests and deferred_transaction_tests

Superceeded by #2878.

Now, it has been superseded by #2878.


Check if device is capable of virtualization

We need to be able to query device capabilities via the kvm-api and determine if the system is capable of running virtualization. In the future devices that don't support hardware virtualization will be run with host-only variant of ghaf.

[ ] Define required device capabilities.
[ ] Define how missing device capability is handled. Are all missing capabilities fatal errors or do we have warnings as well?
[ ] Define how missing features are communicated to the client.

List of variants of Rust kvm Cap enum:
https://crosvm.dev/doc/kvm/enum.Cap.html
KVM API documentation:
https://www.kernel.org/doc/Documentation/virtual/kvm/api.txt
KVM API version 12 is a hard requirement. As a basis we will use basic level from the following description:
Capability: which KVM extension provides this ioctl.  Can be 'basic', which means that is will be provided by any kernel that supports API version 12 (see section 4.1), a KVM_CAP_xyz constant, which means availability needs to be checked with KVM_CHECK_EXTENSION (see section 4.4), or 'none' which means that while not all kernels support this ioctl, there's no capability bit to check its availability: for kernels that don't support the ioctl, the ioctl returns -ENOTTY.

Solution for checking Iommu support that works down to Linux kernel v 4.11
https://stackoverflow.com/a/44286823

KVM won't be the API we use.


Why is dayContainerStyle not applied on days not in the current month?

Hi there,
Just trying to custom the date picker style.
Why are dates oustide of the current month not using the dayContainerStyle?
https://github.com/farhoudshapouran/react-native-ui-datepicker/blob/bd0cea9ac92dd5d2e85c4b231d853413bb40a32f/src/components/Day.tsx#L56
I have also other issues with styling some containers:

The DaySelector container has a top padding of 5 which is not editable; the workaround which works only with a fixed height is to set add 5 (the padding top value) to the desired height
The container inside the Header also has a padding which is not editable neither; the workaround is to put a negative margin on the Header container style
There is also no way to set justify-content: space-between on the main container, nor to add children directly in the main container; we could use a custom Calendar.tsx based on the package's one, but with children and custom styles props, is this the way?

Thanks!

1 here


ItemDetail shows only first row

For bootstrap-4 branch..
When I click on item detail icon only first row of datasource was shown. No errors, no exceptions.
Problem is with custom templates and on renderer callback too.
Milan

I study this problem and when click on icon, ajax returns snippet with no data (only tabs)


"matches" does not work on standards

HI, I use OrientDB-2.1.4
I have one question,
when I insert string "hello beautiful world" and then I want get this record using the query
select from test where str matches 'beautiful'. //return 0
DB returns empty value to me.
and when I do query with full string, db returns my record.
select from test where str matches 'hello beautiful world'. //return 1
This behaviour matches the pattern ^beautiful$ and ^hello beautiful world$ respectively.
so is here behaviour bug or feature?

String.matches try to match whole string agains pattern. If you want  to check for partial match use (.*)beautiful(.*). But in your case I recommend to use CONTAINSTEXT.
http://orientdb.com/docs/2.1/SQL-Where.html

Thanks @PhantomYdn
exactly, this is the expected behavior, MATCHES tries to match the whole expression.
I can also suggest to use a Lucene fulltext index
http://orientdb.com/docs/2.1/Full-Text-Index.html
it will give you excellent performance.
I'm closing this, please reopen if you need further info.
Thanks
Luigi

I deliberately made my example is very simple
I wanted to show it to you.
just, in other places this pattern returns coincidence
but OrientDB doesn't it, and it is confusing.
At the beginning I thought that it doesn't work at all

Hi @Ivanov-Yuriy
just to make things simple, OrientDB uses Java Pattern class to match patterns, so the expected behavior is exactly the same as the one you would have in Java.
Can I consider this closed or do you have any cases where it fails?
Thanks
Luigi

Thank you @luigidellaquila for your explanation.
the question is closed.


MARP-1481 Upgrade for Ivy 12

Hi @quanpham-axonivy did you check it carefully, still 4 errors in the code. Please open Project Faces and adapt the setting


Add feedback options (EffectColor, EnableRipple, EnableSound, SyncCanExecute) to AddDatePicker and AddTimePicker

It would be great to have tap feedback options in AddTimePicker & AddDatePicker like the ones at AddCommand.

@alexpetin
Noted with thanks.
I think  I will add these options at next version(1.1.0)😇
Please wait for some while.

Thanks! I'll wait impatiently :)

@alexpetin
Thank you for waiting.
This request has been implemented at ver.1.4.0-pre.


Single user ui changes

Update env var names
Conditionally render the keycloak provider wrapper based on an env var.
Pending operator changes: https://github.com/konveyor/tackle2-ui/issues/63

@ibolton336 I don't think we are using KEYCLOAK_REALM or KEYCLOAK_CLIENT_ID that I could find , perhaps it would make sense to remove them if they are useless. Also , KEYCLOAK_HOST makes sense more as KEYCLOAK_SERVER_URL , still follows naming but I think better represents what it is , since it is a URL that contains the host.

@fbladilo, please let us know when you have an operator PR covering the change from  SSO_SERVER_URL to KEYCLOAK_SERVER_URL

As we've discussed it would be preferable to use the Express API approach.

This approach is the same as the forklift-ui approach. We discussed it would be preferable to use the same approach across the apps. Adding in an asynchronous call when we are bootstrapping the app could cause some unforeseen issues. This PR just implements the proven template variable approach that Mike recommended. This way we can keep our strict typing for the env var constant.

@ibolton336, the way Forklift/MTV addressed its needs is definitively not a standard across the apps.
I would rather have a better long term solution.
Let's discuss it.


Zipper inspect should show if you're at a subtree root

Right now, inspecting the top of a subtree looks the same as if you're at the root. Would aid with debugging if there was some indication that you're at the root of a subtree.
alias Sourceror.Zipper, as: Z

code = """
block do
  one()
  two()
  three()
end
"""

code |> Sourceror.parse_string!() |> Z.zip() |> Z.search_pattern("two()") |> Z.subtree() |> IO.inspect()

# currently prints
#Sourceror.Zipper<
  #root
  {:two,
   [
     trailing_comments: [],
     leading_comments: [],
     end_of_expression: [newlines: 1, line: 3, column: 6],
     closing: [line: 3, column: 5],
     line: 3,
     column: 1
   ], []}
>

# would be nice to print
#Sourceror.Zipper<
  #subtree root
  {:two,
   [
     trailing_comments: [],
     leading_comments: [],
     end_of_expression: [newlines: 1, line: 3, column: 6],
     closing: [line: 3, column: 5],
     line: 3,
     column: 1
   ], []}
>

Clever 👍

This would be a welcome change 👍

Merged with #167


Cross Process Propagation?

I posted in https://github.com/aws/aws-xray-sdk-java/issues/95#issuecomment-536757507 because I'm using a non-servlet based web framework, and there's a note:
calls between AWS services using the official SDK will already handle passing trace IDs across.

The official SDK doesn't have a framework independent way of pulling out data from an HTTP header -- even the "core" contains the servlet API specific filter, rather than abstracting it:
https://github.com/aws/aws-xray-sdk-java/blob/master/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/javax/servlet/AWSXRayServletFilter.java
The code seems to say that there's some standard HTTP headers "X-Amzn-Trace-Id" and segment ID: https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader but this is not compartmentalized functionality.

Hi @will-sargent-eero - thanks for raising this. I didn't add support for cross-process propagation in the first version because, somewhat lazily, I didn't need it!
The OpenTracing way of doing this is using span injection and extraction and it looks like it should be fairly straightforward to add. The standard allows for arbitrary "carrier" formats, but it seems like HTTP headers would be by far the most useful to add (and probably sufficient for most people?)
Would you be willing / able to have a go at a PR for this?
On a related note, the OpenTracing standard is being merged with another project (OpenCensus) and the new unified API will released as OpenTelemetry, hopefully by the end of this year. My plan is to write an OpenTelemetry-compatible version of this library once the API is finalised.

Would you be willing / able to have a go at a PR for this?

Unfortunately I'm in the evaluation stage for distributed tracing solutions so it would be premature.  It would also mean going through OSS code release process and being at least partly responsible for maintaining it.

@will-sargent-eero I had some time today and have just pushed a first version with support for context propagation: would you have time to try it out?

the inject and extract methods are now implemented: in most cases, you'll get a single-valued map containing X-Amzn-Trace-Id in the standard format [1]

constructing new Spans should work correctly in the case where the context has been injected externally, e.g. by having read some custom HTTP header from elsewhere

[1] https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-request-tracing.html

I'll check it out, thank you!


lowercase-usernames: add plugin

Display usernames in upper/lowercase to avoid lookalikes
Closes: runelite/runelite#11386

Can this be a default enabled plugin so it benefits everyone who uses RL?

Can this be a default enabled plugin so it benefits everyone who uses RL?

It's an external plugin. Anyone who installs it will have it, those who don't want it, won't have it. Simple as that.
This won't be added to the main client.

Can this be a default enabled plugin so it benefits everyone who uses RL?

It's an external plugin. Anyone who installs it will have it, those who don't want it, won't have it. Simple as that.
This won't be added to the main client.

I understand. I feel you're missing an opportunity to protect your users.

@dekvall The uppercase mode affects player levels and removes all colour from them. I don't think that this is ideal.

Wow, that was fast! thanks for making this.
Btw you only need lowercase mode to avoid lookalikes. I don't see the need for uppercase.

Wow, that was fast! thanks for making this.
Btw you only need lowercase mode to avoid lookalikes. I don't see the need for uppercase. It actually causes the problem of the lookalike names.
Thanks again @dekvall

Wow, that was fast! thanks for making this.
Btw you only need lowercase mode to avoid lookalikes. I don't see the need for uppercase. It actually causes the problem of the lookalike names.
Thanks again @dekvall

no two characters look the same uppercase tho

Can this be a default enabled plugin so it benefits everyone who uses RL?

It's an external plugin. Anyone who installs it will have it, those who don't want it, won't have it. Simple as that.
This won't be added to the main client.

I understand. I feel you're missing an opportunity to protect your users.

Wow, that was fast! thanks for making this.
Btw you only need lowercase mode to avoid lookalikes. I don't see the need for uppercase. It actually causes the problem of the lookalike names.
Thanks again @dekvall

no two characters look the same uppercase tho

I see what you mean 😄

There is a bug on DMM

@nlruk Please file this as an issue report to the maintainer of this plugin using their support link: https://github.com/dekvall/runelite-external-plugins/tree/lowercase-usernames
We don't manage the code or update cycle of plugin hub plugins. Plugin authors do.

@nlruk Please file this as an issue report to the maintainer of this plugin using their support link: https://github.com/dekvall/runelite-external-plugins/tree/lowercase-usernames
We don't manage the code or update cycle of plugin hub plugins. Plugin authors do.

sorry, I will do.


Building out Framework for file explorer

Using this as a starting point https://github.com/timotius02/electron-file-explorer
Also considering Joe's suggestion of using UNIX terminal commands to load up the directory structure each time a element is clicked.

We're no longer using file explorer. Just using a drag and drop now.


Null reference opening first time an complex detailview

While testing 19.2.402. I found this exception thrown (before the exception occurred but was hidden)
en Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.BindToModel(IModelNodeDisabled modelNodeDisabled, Object instance)
en Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.BindTo(IModelNodeDisabled modelNode, Object instance)
en Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.BindTo(ValueTuple3 data)    en Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.<>c.<BindLayoutGroupControl>b__5_3(ValueTuple3 tuple)
en System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value) en d:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Do.cs: línea 38
en System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) en d:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs: línea 16
I don't know how to get the .pdb for .XAF modules.

Try to build XAF.Modules byself, their was an Bug and the fix is not in actually released XAF 19.402.0 XAF.Modules. For me it works

I don't know how to get the .pdb for .XAF modules.

https://github.com/eXpandFramework/eXpand/wiki/HowToDebug#from-the-nuget-packages
debugging is enabled as per docs.
consider enable the reactive logger to get more info to what happened before the exception and also posting details of your problem if you do not spent the time to describe your problem how you expect others time?

Try to build XAF.Modules byself, their was an Bug and the fix is not in actually released XAF 19.402.0 XAF.Modules. For me it works

to my knowledge there is nothing in the lab at the moment

for such case one at least want to know what type of maps are enabled? which modules? and if u invest a few minutes to create a sample most probably will help u to resolve it your self but at for sure it will help me to resolve fast.

i can reproduce this issue to on "complexe views" , following some stacks i get
new 9.txt
new 10.txt
new 11.txt
by businessobjects with itself association and using of Variants View.
When i build an sample it works, but sample not reflect complexity in app

looking at your stacks it looks like a side effect, the Model can never be null. However it throws to a point that u can override. So what happens when
            ModelBindingService.ControlBind.Subscribe(parameter => {
                parameter.Handled=parameter.Model==null
            })

what's the parameter values at this point?

in detail view by child view of self association i get null in model Map

and thru this objectreference empty
new 13.txt
error in ViewSiteManager.cs on

what is the infoname value?

infoname is LayoutConrolGroup

previously I posted https://github.com/eXpandFramework/eXpand/issues/640#issuecomment-567425195
that code should workaround the problem did you fail to use it?

yes, i fail. but i thinks this depend to my implementation

why does it fail? its a copy paste thing and should work

when i copy it to Bind data the issue still comes

no this is wrong, the code i posted should go to your project before the model is created somewhere perphaps in the constructor of your module.

Sorry, I'm feeling like a rookie.
yes, of course it works if i call it during initialization.
the detail view now opens without errors

                  good to hear u just got confused with the deep dive there is luck of oxygen :), I would like to see the different for this view and what the ME displays as the layout, Please try to open as much nodes as possible and post a scrrenshot

post the model diffs for the layout node for this view and the screenshot

new 9.txt

its too big for screenshot i paste it to file new9

for now I will let the source code throw as it looks like this state is invalid, users can use the workaround safely @vimarx .

can u confirm that without the workaround throws for any detailview that have nodes removed?

i meant group nodes it has to remove the DevExpressXtraLayout_LayoutControlGroup

yes by other view which occurs error they have node

but when i remove your fix and delete this line in xamfl the error  still occurs

ok thnks for the input I will research further it looks like we are close to a better solution.

as far i could test your fix not create different errors, it could be used until better solution
Thanks,

for now I will let the source code throw as it looks like this state is invalid, users can use the workaround safely @vimarx .

it works for me. thanks!
for vb people, I had to implement the solution as
`ModelBindingService.ControlBind.Subscribe(New IobsDummy)
End Sub

Class IobsDummy
    Implements IObserver(Of Parameter)

    Public Sub OnNext(value As Parameter) Implements IObserver(Of Parameter).OnNext
        value.Handled = value.Model Is Nothing
    End Sub

    Public Sub OnError([error] As Exception) Implements IObserver(Of Parameter).OnError
    End Sub

    Public Sub OnCompleted() Implements IObserver(Of Parameter).OnCompleted
    End Sub
End Class`

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


Opening of KDBX 3.1 file seems to be very slow

@pludi reported this in keepass-diff.
I have done some additional debugging with the provided files. The transformation_rounds when parsing the header is set to32804232 and thus the encryption for-loop runs very often. Since my Keepass client (not keepass-diff) can open these files pretty quickly, I wonder how that really works...
Additional context

Test1.kdbx.gz, Password: Test1
Test2.kdbx.gz, Password: Test2
Initial issue report by @pludi over here: https://github.com/Narigo/keepass-diff/issues/24

Please have a look at https://github.com/sseemayer/keepass-rs/blob/master/README.md#installation , especially the note about performance :)

As stated in the other PR, even with the flags enabled, it still took a while to open. Is there another flag I should be using other than what I have written down in the comment?
Regarding the flags itself: Do you know whether it is possible to put the necessary flag into Cargo when compiling as dependency? I'd like to not have the user have to analyse dependencies and set the flags that would be necessary for each of them. There is a setting for rustflags in Cargo configuration but I've never used or tried that...

Sorry for the short reply before. This seems to be a real issue with the performance of the AES key derivation.
I can also see that even with the compiler flags and doing a release build, this library is still considerably slower than what e.g. keepassxc needs to derive the key.
On my mobile Core i5-8250U, with the CFLAGS set, a release run of the tests::open_kdbx4_with_password_kdf_aes_cipher_aes takes 17 seconds to open while opening the same database is instantaneous.

Hang on, no! If I export the correct RUSTFLAGS and do a release build, the test completes in less than half a second for me. It seems that my first attempt at adding the config via a file was incorrect.

I've added the rustflags to the cargo config now as well. Let me know if that together with a Release build helps bring the loading time down.

I have updated to version 0.4.7 now and tried to set the RUSTFLAGS in .cargo/config.toml as well as having it as environment variables during the run. The following output of the Docker environment yield very long opening times still with kdbx 3.1 files:
root@cb29c1f5ec07:/app# time RUSTFLAGS="-C target-cpu=native" cargo run --release test/test.kdbx test/test2.kdbx --password-a demopass --password-b demopass --no-color
    Finished release [optimized] target(s) in 0.18s
     Running `target/release/keepass-diff test/test.kdbx test/test2.kdbx --password-a demopass --password-b demopass --no-color`
+ [Root, Another group, In another group]
- [Root, Some group, Sub-Group 2 of group, Walked, Password = line]
+ [Root, Some group, Sub-Group 2 of group, Walked, Password = plank]
+ [Root, Some group, Sub-Group 2 of group, Whatever, that = means]
- [Root, Some group, In a group]
+ [Root, One more]

real    0m0.421s
user    0m0.238s
sys     0m0.051s
root@cb29c1f5ec07:/app# time RUSTFLAGS="-C target-cpu=native" cargo run --release test/issue-24-kdbx-3.1/Test1.kdbx test/issue-24-kdbx-3.1/Test2.kdbx --password-a Test1 --password-b Test2 --no-color
    Finished release [optimized] target(s) in 0.17s
     Running `target/release/keepass-diff test/issue-24-kdbx-3.1/Test1.kdbx test/issue-24-kdbx-3.1/Test2.kdbx --password-a Test1 --password-b Test2 --no-color`
- [Root, Test1]
+ [Root, Test2]

real    0m57.413s
user    0m57.281s
sys     0m0.049s

Maybe I'm still doing something wrong here...?
The code I'm testing with is in branch update-dependencies in the keepass-diff repository: https://github.com/Narigo/keepass-diff/tree/8b8e46d61dc0efc80bef7fc310262d18c0140f63
By the way, since I've updated to 0.4.7, the Value::Bytes pattern had to be implemented. Does my implementation even make sense? Or could a bytes array be anything in Keepass, so I maybe should try to convert it to a hash value and test against that?

Hmm, using cargo install --path . seems to do some other optimizations? At least it's down to 7s now, but that's still quite long compared to the 1s for other kdbx files, isn't it?

Sorry, I cannot reproduce this - Testing on 8b8e46,
Your first invocation
$ time RUSTFLAGS="-C target-cpu=native" cargo run --release test/test.kdbx test/test2.kdbx --password-a demopass --password-b demopass --no-color

takes me 0.07s and
your second invocation
$ time RUSTFLAGS="-C target-cpu=native" cargo run --release test/issue-24-kdbx-3.1/Test1.kdbx test/issue-24-kdbx-3.1/Test2.kdbx --password-a Test1 --password-b Test2 --no-color

takes 6.35s.

If I open the same two database files as in your second invocation using keepassxc, this takes about 2 seconds for each of the databases (I didn't really time this but this is a rough estimate), so it looks like this is close to an "optimal" key derivation speed.

Since the key derivation function for the slow databases is AES, can you confirm that your system's CPU is supporting AES hardware instructions (the aes flag)?
$ grep flags /proc/cpuinfo | head -n1
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp flush_l1d

I'm doing this on a Mac with Docker. In Docker, it shows me the following (= I guess so?):
root@cadaa7cf56f6:/app# grep flags /proc/cpuinfo | head -n1
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx pdpe1gb lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq dtes64 ds_cpl ssse3 sdbg fma cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch pti fsgsbase bmi1 avx2 bmi2 erms xsaveopt arat

Yeah, it looks like it's supported. Hmm.
Another thing we could check is whether the release binary gets compiled with hardware AES instructions by disassembling it, e.g.:
$ objdump -d target/release/keepass-diff | grep vaes | cut -f3 | cut -f1 -d ' ' | sort | uniq -c | sort -rn
    143 vaesenc
    117 vaesdec
     13 vaeskeygenassist
     13 vaesimc
     11 vaesenclast
      9 vaesdeclast

I think this should be okay now: Without the usage of docker, I get a lot better performance, so it's probably not really the fault of the keepass module. It still takes a few seconds to open these files but the flags really work well enough I suppose. See https://github.com/Narigo/keepass-diff/issues/24#issuecomment-733047796 as well. Thanks for your help in debugging this and sorry for the additional noise...! 🙂


IGNITE-18516 "Change closure" semantic fixed when it comes to concurr…

…ent access to "external" configuration. New "change" API introduced bot in registry and in generated Change interfaces.
https://issues.apache.org/jira/browse/IGNITE-18516

Also please update modules\configuration\README.md due to these changes.
If I'm not mistaken, I didn't find tests that would test new "changes" methods for a specific configuration for example org.apache.ignite.internal.schema.configuration.TableChange#changeDataStorage().


patch: apply newest library class & fixes

Apply newest library class to the project and remove old & deprecated class. This does not change the functionallity of the bot.
This PR also include fixes from grammar fix, capitalization fix, and some regular fix.

Type: Patch update - Improve stability and use newest lib class
Status: Work-in-progress
Estimation: Done in next ~5 days

See what changed | Commits history | Checks status | Git patch plaintext view | Branch tree view

adaptation is done for normal commands. i am deprecating use of addField() and use addFields() instead, also some fixes for normal commands.
remaining task

adapt slash commands version

finally. this is now marked as complete. before merging, i will do dependencies upgrade with this patch pr.

everything is done. once merged, this will closes #154 and #155


Remove int_scaled_mm's dependency on triton for cpu

In https://github.com/pytorch-labs/ao/pull/121, the CPU version of int_scaled_mm was implemented by @torch.library.impl in torchao/kernel/intmm_triton.py. It requires triton installed to call this op. However, the CPU implementation should not depend on triton. This PR moves the implementation to torchao/kernel/intmm.py and does not use @torch.library.impl.
AUTOTUNER_ENABLE is not required anymore, either. (Not sure if this is reasonable)
Test is still covered by UT in test/kernel/test_autotuner.py.

Hi @cpuhrsch Could you please review and see if the changes are reasonable to you? Thanks.

Hi @cpuhrsch Could you please suggest how to deal with the issue (CPU impl availability depends on triton and AUTOTUNER_ENABLE)? Thanks!

Hey @Xia-Weiwen - Thank you for the PR! Sorry for the delay in review. Also, please note the CI hasn't run green.
Another way to resolve this could be to move
@torch.library.impl(lib, "int_scaled_matmul", "CPU")
def int_scaled_matmul_cpu(a, b, scales1):
    c = torch._int_mm(a, b)
    return c.to(scales1.dtype) * scales1

into torchao/kernel/intmm.py which shouldn't have a dependency on triton. Just be sure to also define lib = torch.library.Library("torchao", "FRAGMENT")

@cpuhrsch Thanks! I will give it a try. A question is what AUTOTUNER_ENABLE is and whether CPU impl should depend on it or not.

@Xia-Weiwen - it's used for a Triton autotuner that allows us to cycle over a very large number of configs for a given fixed input shape. See https://github.com/pytorch-labs/ao/tree/main/torchao/kernel#autotuner-and-custom-triton-kernels

Thank you @cpuhrsch. Looks like CPU impl does not need this.

Hi @cpuhrsch This PR requires latest torch nightly (after 20241026) to pass CI. May I know when torch nightly will be updated in the CI? Thanks.

@Xia-Weiwen - can you try merging the latest version of main? You might be built on top of a commit that pinned the nightly version. I see dev20241022 here: https://github.com/pytorch/ao/actions/runs/11550979799/job/32147052309?pr=128

@Xia-Weiwen - can you try merging the latest version of main? You might be built on top of a commit that pinned the nightly version. I see dev20241022 here: https://github.com/pytorch/ao/actions/runs/11550979799/job/32147052309?pr=128

Thanks


have somebody use cello to manage fabric-gm?

rt

may not,SDK does not support and some configurations。

may not,SDK does not support and some configurations。

how ablout replace nodejs-sdk to gm-sdk?what  configurations?

how ablout replace nodejs-sdk to gm-sdk?what  configurations?

I suggest you pay attention here,https://github.com/Hyperledger-TWGC https://github.com/Hyperledger-TWGC；

2021年1月25日 上午10:40，csquan<EMAIL_ADDRESS>写道：
how ablout replace nodejs-sdk to gm-sdk?what configurations?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/hyperledger/cello/issues/213#issuecomment-766502619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBSP6RRGOHWCCZWMTGE23S3TK3DANCNFSM4WPPRJWA.

I suggest you pay attention here,https://github.com/Hyperledger-TWGC https://github.com/Hyperledger-TWGC；

2021年1月25日 上午10:40，csquan<EMAIL_ADDRESS>写道：
how ablout replace nodejs-sdk to gm-sdk?what configurations?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/hyperledger/cello/issues/213#issuecomment-766502619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBSP6RRGOHWCCZWMTGE23S3TK3DANCNFSM4WPPRJWA.

I  had developed gm network already.
I want use cello as baas.
so,must modify cello to make it manage gm-images,cello use nodejs-sdk and bin(configtxgen...),，how about  to replace it  ?
hava any ideas?

I  had developed gm network already.
I want use cello as baas.
so,must modify cello to make it manage gm-images,cello use nodejs-sdk and bin(configtxgen...),，how about  to replace it  ?
hava any ideas?

Hyperledger-TWGC  have no resource which I  needed.

Hyperledger-TWGC  have no resource which I  needed.

Use gm of fabric tools to generate necessary files;
To replace fabric, you need to modify the startup files of peer and orderer;
Node JS SDK, this part of my work is not perfect, I can't give you good advice

2021年1月25日 上午10:56，csquan<EMAIL_ADDRESS>写道：
I had developed gm network already.
I want use cello as baas.
so,must modify cello to make it manage gm-images,cello use nodejs-sdk and bin(configtxgen...),，how about to replace it ?
hava any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/hyperledger/cello/issues/213#issuecomment-766507044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBSP3D5DXJLONFPURLZQLS3TMXBANCNFSM4WPPRJWA.

Use gm of fabric tools to generate necessary files;
To replace fabric, you need to modify the startup files of peer and orderer;
Node JS SDK, this part of my work is not perfect, I can't give you good advice

2021年1月25日 上午10:56，csquan<EMAIL_ADDRESS>写道：
I had developed gm network already.
I want use cello as baas.
so,must modify cello to make it manage gm-images,cello use nodejs-sdk and bin(configtxgen...),，how about to replace it ?
hava any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/hyperledger/cello/issues/213#issuecomment-766507044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBSP3D5DXJLONFPURLZQLS3TMXBANCNFSM4WPPRJWA.


PSD graphics files of semantic-ui

Hi
Where I can find the PSD graphics files of semantic-ui?
thanks

I don't think there are any, at least officially.

@anestv thanks for your reply.
In this case, we can start work on some part.
anyone interested to contribute?

Just wanted to confirm, as far as I know no one has done anything like this before.

@jlukic I will start with http://semantic-ui.com/kitchen-sink.html then I hope someone else can help because there are a lot of things.

@jlukic @macagoraga well look what I just found:
http://www.pagelayers.com
Maybe thats good enough for the beginning?

Hey this is great! Yeah if someone had time they could probably create PSDs quite easily

+1

Yes please, if someone could create a PSD for this that'd be great!
+1

I've exported the Semantic UI kitchen sink with the Pagelayers tool. You can download the four PSDs here: https://drive.google.com/file/d/0B4i8Z3KNCWnlYkdscU5OeTFSTW8/view?usp=sharing. I license this files under the MIT license.
How I have done it:
Do the following for each tab in the kitchen sink:

Open the page in the Pagelayers tool.
Export the PSD
Open the PSD and remove the unnecessary layers for the left sidebar and top section. This will decrease the file size drastically (~ 800MB -> 20MB).

Great, thank you so much Sanjo, this saved me hours! Also, have added the Mac Layer Tool onto ToBuy list.

@Sanjo Any chance to get these re-exported with 2.0 styles? Wanted to include this in our guide.

@jlukic Yeah sure. I can export and upload it tomorrow.

Hey @Sanjo . Any update on this?

Semantic UI 2 PSDs
I've exported the Semantic UI kitchen sink with the Pagelayers tool. You can download the four PSDs here: https://drive.google.com/file/d/0B4i8Z3KNCWnlZDVaTW1YWFNKaUk/view?usp=sharing. I license this files under the MIT license.
How I have done it:
Do the following for each tab in the kitchen sink:

Open the page in the Pagelayers tool.
Set the screen size setting to 1920 x infinite.
Set the scale to "x 2 (Retina)". This option is in the screen size dropdown.
Export the PSD via the menu "Screenshot" -> "Save as..". Make sure to tick "Generate text layers". Choose the format "Photoshop (CS5 or newer)".
Open the PSD and remove the unnecessary layers for the left sidebar and top section. This will decrease the file size drastically (~ 800MB -> 20MB).

Will get these up in the docs shortly..

+1

+1


Rate limit with parameters

I added a support for parameters to celery rate limits.
I know the project is called celery-once but I figured it had the same spirit.

This would be really useful...
Anyway to help get the coverage back up? Is that the only thing stopping this from merge?

Closing this due to being stale.


Keys api GET support

GET support for keys. This is ready for review, though there may be some cleanup stuff I haven't caught yet. barring some minor cleanup and possible squashes.
Tests pass locally, but I'm running into trouble when trying to get everything to build happily in dev-vm since I tried to reload today.
CI to follow pending resolution of the above.
ping @chef/lob

We should probably write some eunit tests at least for chef_key?

@tylercloke yes and oc_chef_wm_keys ct - but I wanted to wait until after I'd rebased on your ct stuff before tackling the latter.

Oh for sure. My stuff is merged to master of oc_erchef fyi. Just not in omnibus. That's not clear from the card state though.

Generally LGTM, my chef_wm chops are not very extensive though. Should probably get someone with more experience there to take a look.


DOC: updated readme and changelog

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.001%) to 91.602%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
177429

Relevant Lines:
193696

💛  - Coveralls


26 use circularmask in zernikegenerator

Codecov Report

Merging #27 (d2185aa) into master (45f4a76) will increase coverage by 0.21%.
The diff coverage is 92.52%.

:exclamation: Current head d2185aa differs from pull request most recent head 1abbe6a. Consider uploading reports for the commit 1abbe6a to get more accurate results

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   73.58%   73.79%   +0.21%
==========================================
  Files         129      129
  Lines        8076     8145      +69
==========================================
+ Hits         5943     6011      +68
- Misses       2133     2134       +1

Impacted Files
Coverage Δ

arte/code_convention.py
0.00% <0.00%> (ø)

arte/sandbox_noise_propagation.py
0.00% <0.00%> (ø)

arte/types/mask.py
90.27% <ø> (ø)

arte/utils/zernike_generator.py
98.24% <97.95%> (+0.35%)
:arrow_up:

arte/utils/compareIDL.py
23.52% <100.00%> (ø)

test/utils/zernike_generator_test.py
99.28% <100.00%> (+0.27%)
:arrow_up:

arte/utils/zernike_projection_on_subaperture.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Tutorial Request: Grove - 4-Digit Display, Grove -Luminance sensor, Grove - 6-Axis Accelerometer&Gyroscope, Grove - Infrared Emitter, Grove - Adjustable PIR Motion Sensor

Description
I want to integrate all these sensors mentioned above with the nRF52840-MDK using the base-dock. Please help me with the tutorials.
Technical Level
beginner
Length
short (< 250 words) | medium (250-500 words) | long (1000 words )

@caizelin, can you please provide the tutorial for Grove - 4-Digit Display first and If possible a bit soon.

@caizelin, can you please provide the tutorial for Grove - 4-Digit Display first and If possible a bit soon.

Ok, I will check the module from seeed and push the example as soon as possible. It would be great if you can help to port the library.

I will definitely try to help you at this but as I am a beginner I am not sure If I could do it.

@caizelin I tried understanding how to interface 4 digit display with the nrf52840 mdk but couldn't do it.
please try looking into this issue and push the tutorial

@caizelin I'm having trouble intefacing the sensors, anything on the tutorials??


Fall back to npm "version" value if bower.json is missing that property.

The version property in the bower specs is officially deprecated. This change will use the version in the package.json if it doesn't exist in the bower manifest.

thanks


Disable highlight current editing line

Keep only the highlight current debugging line.
Disable highlight current editing line while debugging.
https://github.com/daveleroy/SublimeDebugger/assets/109356759/2b3bc3a9-8bbc-4923-a862-149e68b9f7c5

The selection is now cleared every time the debugger creates/moves the line selection so there is no highlighted line unless you select a line


Unable to connect with TLS as http prefix is hardcoded

I am trying to connect to a photoprism instance which is only accessible via TLS. This does not seem possible as the http prefix for the url is hardcoded. :)
Thanks for implementing the client!
https://github.com/mvlnetdev/photoprism_client/blob/d7aed5f210647319fe83c15287198c8ba82a309e/photoprism/Session.py#L16

You're right, that shouldn't be a thing. I will fix it shortly.

Solved, it is in the repo now. Will publish a new version to PyPi. After it is published this issue can be closed.
@cluk33 would you be able to test if this works for you?

I have tried version 0.2.1. The connection worked fine, thank you. :)
As a side note: my script no longer worked with the new version as raw_call had been removed from Photo.py. :(


How to cite the repo

Hi there!
Thanks for the great work!
Was wondering how can we cite this work ?
Thanks

@younesbelkada Hi,
Thanks for your interest! Is it urgent for you add the citation? Our paper is in its final proofreading period, and will be released next week. At that time you can cite our paper : )
If you are immediately about to release some paper or technical report, you can cite this one (only temporarily):
@article{zeng2022GLM,
title={GLM-130B: An Open Bilingual Pre-Trained Model},
author={Zeng, Aohan and Liu, Xiao and Du, Zhengxiao and Ding, Ming and Zheng, Qinkai and Lai, Hanyu and Wang, Zihan and Yang, Zhuoyi and Yu, Jifan and Zhang, Xiaohan and Zheng, Wendi and Xia, Xiao and Xu, Yifan and Tam, Weng Lam and Dong, Yuxiao and Ma, Zixuan and He, Jiaao and Sun, Zhenbo and Zhai, Jidong and Chen, Wengguang and Zeng, Guoyang and Han, Xu and Zhao, Weilin and Liu, Zhiyuan and Xue, Yufei and Wang, Shan and Shan, Jiecai and Jiang, Haohan and Guo, Zhengang and Zhang, Peng and Tang, Jie},
year={2022},
publisher={Technical report, Tsinghua KEG},
url={https://keg.cs.tsinghua.edu.cn/glm-130b/}
}

Thanks a lot for the quick answer 🔥 !
It is not urgent at all, I just wanted to properly cite your work and repo on a technical report, the citation mentioned above should be sufficient ;)
Thanks again!

@younesbelkada ,
Thanks! We will inform you once our paper be out next week!

@XiaoqingNLP @younesbelkada ,
Thanks for your patient waiting! Our paper is now out. You may read it and cite in your later work via:
@article{zeng2022glm130b,
  title={GLM-130B: An Open Bilingual Pre-trained Model},
  author={Aohan Zeng and Xiao Liu and Zhengxiao Du and Zihan Wang and Hanyu Lai and Ming Ding and Zhuoyi Yang and Yifan Xu and Wendi Zheng and Xiao Xia and Weng Lam Tam and Zixuan Ma and Yufei Xue and Jidong Zhai and Wenguang Chen and P. Zhang and Yuxiao Dong and Jie Tang},
  journal={arXiv:2210.02414},
  year={2022}
}


Contributions and go.mod

Should we prescribe that each contribution have its own go.mod?  For example in contrib should we have separate go.mods instead of one top-level one?  What are the advantages/disadvantages of both approaches?
On thing about requiring individual ones, coding for a contrib can be more straight forward.  For example as part of an activity tutorial, we can tell people to create always create go.mod, instead of having a bunch of ambiguous information about proper placement of thier go.mod depending on their repo structure.   We can also create a "gen" cli plugin that can create scaffolding for a contribution that creates its go.mod as well.
I just want to get everyones thoughts and possible consensus  I guess there are a couple of questions:

Do individual go.mods make sense?
In our current repos with multiple contribs, should we create individual go.mods
In a contrib creation tutorial or gen tool, should we always create a go.mod for the individual contrib.
If we think this is the way to go, should this be recommended or required behavior?

Thoughts? @mellistibco @pointlander @debovema @vijaynalawade @skothari-tibco

@fm-tibco : In this particular case, repo is just a placeholder for TIBCO contributions. I think module per repo makes sense for one or more related packages which is not the case here. So, I feel module per contribution makes more sense.

Any thoughts? @mellistibco @pointlander @debovema @skothari-tibco

I don't think we need individual go.mod in current repos. About the question of individual go.mod it is easier and also makes managing repos easier. But if there are multiple activities/ triggers somewhere around like 4-5 or more using similar dependencies it would be easier to club to have only have go.mod for those. So I think it's pretty opinionated. However we can recommend a single mod file for single repo.

I think having a go.mod per contribution is the best solution independently of the number of contributions in a Git repository.
On a development point of view, it does not change much as all the contributions, each having its go.mod, will be tagged together.
On the user point of view however, it allows to use two contributions from the same Git repository with two different Go modules versions.
For current repository (contrib) no need to do a big bang refactoring.
For contributions to be generated by gen tool, let's include a go.mod per contribution from the start.

I am for the per contribution.  I don't know if it will be too much of a big deal to add go.mods to the project-flogo/contrib contributions... I think people might look at that as an example of best practices.
On a side note, are you guys fans of checking in the go.sum.  II'm not, just curious what people think.

I think go.sum files are a pain to check in but we have to do it.
It ensures that transitive dependencies will be verified against their crypto hash and they will be the same as the one used by the releaser of the contrib.
If we want to avoid security holes of npm (and we want!), please check in the go.sum files :)

I agree with @fm-tibco. Other developers will definitely use TIBCO contribs as example or modify them for their own use cases.


Changelog for Entities containing associations as key

Hello Team,
currently we are facing an issue using the change log on entities which have associations as keys defined.
Some cases are even more complex, but real world scenarios.
We have one entity called MatrixCertificates which connects the keys of devisions with document types and adds a property called 'relevant'. Divisions are stored within the same project. Document types are not, they are part of a different micro-service in a different cap project according to our designed micro service architecture.
Please find below CDS model:
@cds.persistence.journal
entity Divisions : CodeList {
  key division : String(20);
}

@readonly
entity DocumentTypes as projection on Doc.DocumentTypes;

entity MatrixCertificates {
  @assert.integrity: false key division     : Association to one Divisions;
  @assert.integrity: false key documentType : Association to one DocumentTypes;
                               relevant     : String(1) enum {
                                 a;
                                 b;
                                 c;
                               }
}

We would like to use change-log annotations like this:
@changelog
@cds.persistence.journal
entity Divisions : CodeList {
  key division : String(20);
}

@readonly
entity DocumentTypes as projection on Doc.DocumentTypes;

@changelog
entity MatrixCertificates {
  @assert.integrity: false key division     : Association to one Divisions @changelog;
  @assert.integrity: false key documentType : Association to one DocumentTypes @changelog;
                               relevant     : String(1) enum {
                                 a;
                                 b;
                                 c;
                               };
}

Issue is, that at startup of the service following error occurs:

Are you aware about this behaviour? Is it foreseen to be fixed?
Thanks and best regards
Sandro

Hello @sandr0ne
we hope that this is fixed in the newest release which should be out somewhen today or tomorrow, depending on how long the release takes technically.
Best,
Nick

Hey @nkaputnik,
thank you for taking this up. We've tested the latest version today. Unfortunately it is not solving the issue we had. We are just getting now different error messages for the same effected entities:

Best regards
Sandro

Hey @nkaputnik,
hope you are doing fine?
We've checked the latest version of the plugin again and still facing this issue mentioned in my last comment.
Would you be so kind to have a look into this topic again?
Thanks a lot and best regards
Sandro

Hello @sandr0ne
@Sv7enNowitzki  may be able to provide more input on this, but my understanding is, that a main limitation of the current design is, that we rely on a single GUID value as key for change tracking to work properly.
Best,
Nick

This will hopefully be fixed in the next release


Support for adding custom data-attributes & classes to the initialisation script tag

Request / Idea
I have a very stubborn 3rd Party Cookie Consent banner which relies of certain data-attributes being present on the script tags in order to allow / block them based on user responses to the consent banner.
Is there a way to add some custom HTML data-attributes & classes to the script tag that initialises the GTM script? In a nice way using the configuration object?
If I were to create an PR for this, is it likely to be accepted?
Additional Context
They want me to inject tags like this if I were using a conventional GTM initialisation snippet
j.setAttributeNode(d.createAttribute('data-ot-ignore'));
j.setAttribute('class','optanon-category-C0001');

To produce something like this
<script src="https://www.googletagmanager.com/gtm.js" data-ot-ignore class="optanon-category-C0001"></script>

Maybe we can somehow support an exposed function to get the script element, then you can add and remove stuff as you want


Smart Image : Multiple calls in Firefox and IE

In smartimage  there seems to be 2 image requests going - first call for image without rendition and the second call for image with viewport specific rendition.  First call does not get any response status and Response size is 0B while the second call gets a response status as 200 and response size is as expected. This issue is seen in IE and Firefox.

Url of first call - /content/project/cfk/us/en/articles/2017/long-story-short-retirementball/_jcr_content/root/article_page/par/responsivegrid/image_1516956015.img.jpg
Url of second call - /content/project/cfk/us/en/articles/2017/long-story-short-retirementball/jcr%3acontent/root/article_page/par/responsivegrid/image_1516956015.img.1200.jpg

Thank you @kanika1901kapoor, we'll look into this.

@kanika1901kapoor, can you please provide more details about how to reproduce this? A content package with a page component on which you added the image component would work.
I was not able to reproduce the problem, therefore I suspect that you somehow load a client library two times by accident.


changing reqwest for templates to use type instead of

dataType. dataType is only used internally at Gilt.

+1


CPU 100%

Problems summary
CPU up to 100% about two min
Expected
Environment Information

OS:ubuntu 15.04
Neovim version: 0.1.6-dev

Provide a minimal init.vim with less than 50 lines (Required!)
" Your minimal init.vim
        " for python
        call dein#add('zchee/deoplete-jedi', {
                        \ 'depends': 'deoplete.nvim',
                        \ 'on_event': 'InsertEnter',
                        \ 'on_ft': 'python',
                        \ })

The reproduce ways from neovim starting (Required!)

nvim get-pip.py
and type " import "

Screen shot (if possible)

Upload the log file
THE LOG IS TOO LARGE.
PLEASE!! rename it with log_5970.tar.xz first.
log_5970.zip
WISH HELP TO YOU!

What is get-pip.py?

@Shougo  a script help to install pip

https://bootstrap.pypa.io/get-pip.py
It is 1.5MB.  Too huge.
deoplete-jedi should skip the analysis.

I'm having the same issue with a small or empty file:

start nvim -u init.vim t.py
enter insert mode and insert a new line

For some reason the python3 will spawn  subprocesses and the python2 will use 100% of the cpu. neovim interface will block at this point and it won't be usable.
init.vim:
" plugins
let s:plugins_base_dir=$HOME . "/.config/nvim/plugins"
let s:dein_dir=s:plugins_base_dir . "/repos/github.com/Shougo/dein.vim"

" use the system-wide python and the python-neovim package
let g:python_host_prog='/usr/bin/python2'
let g:python3_host_prog='/usr/bin/python3'

exe "set runtimepath+=" . s:dein_dir
set completeopt+=noinsert

if dein#load_state(s:plugins_base_dir)
  call dein#begin(s:plugins_base_dir)

  call dein#add(s:dein_dir)

  " completion
  call dein#add('Shougo/deoplete.nvim')
  call dein#add('zchee/deoplete-jedi')

  call dein#end()
  call dein#save_state()
endif

call deoplete#enable()

let g:jedi#completions_enabled = 0
let g:jedi#use_tabs_not_buffers = 1
let g:jedi#goto_command = 'gd'
let g:jedi#goto_assignments_command = 'ga'
let g:jedi#goto_definitions_command = ''
let g:jedi#usages_command = ''
let g:jedi#rename_command = '<leader>r'
let g:jedi#rename_command = ''
let g:jedi#show_call_signatures = 1
let g:jedi#show_call_signatures_delay = 100
let g:jedi#smart_auto_mappings = 0

versions:
> nvim --version
NVIM 0.1.7
Build type: Release
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -DNDEBUG -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.7/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser
Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences
   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

> /usr/bin/python3 --version
Python 3.6.0

> /usr/bin/python2 --version
Python 2.7.13

dein.vim: 728f8296f0973c18f6184c0631a6091469c55430
deoplete.vim: 7a9865ae3db5ebed3c5b96f48ed3d769a99c72cf
deoplete-jedi: a4dd511535a6fe06717a7bd2d680b9b87ade595d

@hackaugusto deoplete and deoplete-jedi does not spawn Python2 interface.
I think other plugins use it.
You should check your init.vim.

Humm, it could be this issue: https://github.com/davidhalter/jedi-vim/issues/687
I thought the command vim -u init.vim was sufficient for executing a vim from a new configuration, sorry about that.

For Jedi: https://github.com/davidhalter/jedi/issues/878

Humm, it could be this issue: davidhalter/jedi-vim#687

So, it is not deoplete-jedi problem.

I had bisected it in Jedi, and it is probably a newer issue then the reported one.
I think deoplete-jedi should abort after some timeout to prevent this and report an error with traceback. /cc @tweekmonster

@blueyed It's logged in #112 but not reported to Vim's message area.  I couldn't get that to work for some reason without killing Neovim's python host.

@tweekmonster I don't think adding a timeout is a good solution for this problem: it will just stop completion for this file totally and have side effect #124.  It is better just stopping the completion totally when the input file is too large.

I have added limit option in deoplete.
Please use it.

For reference: https://github.com/Shougo/deoplete.nvim/commit/04de49e2a7480ac9142fc38faba0ed62a9547c32


Clarify whether the only one connection per credential or per identity can be established to IoT Hub

The documentation about ConnectionForcefullyClosedOnNewConnection mentions that only one connection per credential can be established to IoT Hub.

IoT Hub doesn't allow more than one client to connect using the same set of credentials.

Later in the docs, it is implied that only one connection per identity is allowed.

Ensure that each client connects to IoT Hub using its own identity.

When trying this, it became apparent that using different credentials from the same identity to IoT Hub does not ensure that we can have multiple connections open for the same identity. I think it would be less confusing if the exception documentation reflects this.
I would suggest to change

IoT Hub doesn't allow more than one client to connect using the same set of credentials.

to

IoT Hub doesn't allow more than one client to connect using the same identity.

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

ID: 198f8cdf-7443-615d-f123-b673c14f3b89
Version Independent ID: 85d7d3d6-bc63-aecc-e774-e319bb94fec9
Content: Troubleshooting Azure IoT Hub error 400027 ConnectionForcefullyClosedOnNewConnection
Content Source: articles/iot-hub/iot-hub-troubleshoot-error-400027-connectionforcefullyclosedonnewconnection.md
Service: iot-hub
GitHub Login: @jlian
Microsoft Alias: jlian

Thanks for contributing @bastbu ! The fix is merged and should go live today. We really appreciate the community helping to bring more clarity for everyone.


Remove styling of elements after re-running the the accessibility rules

Issue: (No formal issue - If we would like to track it with an issue, I can create one) When tests are re-run after a11y rules are fixed, the elements that are highlighted remain highlighted until the next time the redux state is changed. This is not expected behavior.
What I did
I added a line of code to remove the elements from the redux store(In the same way I did on tab switch) when the tests are re-run.
How to test

Is this testable with Jest or Chromatic screenshots? no
Does this need a new example in the kitchen sink apps? no
Does this need an update to the documentation? no

If your answer is yes to any of these, please make sure to include it in your PR.

Go ahead and merge @CodeByAlex 👍


Alias for path param does not work when hypens are used in it.

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from fastapi import FastAPI, Path

app = FastAPI()

@app.get("/{my-id}/list")
def list_items(
        my_id: str = Path(alias="my-id")
):
    return {"aa": my_id}

Description
On hitting
curl -X 'GET' \
  'http://localhost:8000/sample/list' \
  -H 'accept: application/json'

I get 404 error
{
  "detail": "Not Found"
}

Operating System
Windows
Operating System Details
No response
FastAPI Version
0.79.0
Python Version
3.9.10
Additional Context
This behaviour is working fine with Query param alias but not with Path param alias

This doesn’t make any sense to want; you are trying to create an invalid python variable name with a hyphen, which is never used outside the scope of python itself. Not like for example query parameters, where the name of the parameter is exposed to the end user in the URL.
Can I ask why you would want to do this?

I wanted to do this so that the API documentation generated shall follow the same convention of using hyphens for both query param and path param

I see, that actually makes sense. Unfortunately, this is not supported currently, sorry.

is there any particular files to look for, if one wants to implement the feature ?

Well, it does actually work at my end, just like it works for Query. Using the following endpoints:
@app.get("/{my_id}/list")
def list_items(my_id: str = Path(alias="my-id")):
    return {"aa": my_id}

@app.get("/query")
def query_param(other_query: str = Query(alias="other-query")):
    return {"q": query_param}

The SwaggerUI displays it as this:

As you can see, only the reference in the 'path' is not adhering to the alias, but the input parameter in the SwaggerUI is showing 'my-id' as it should. Looking at the generated JSON, you can see that FastAPI is taking the path directly as is declared. So, if you want to change this behaviour, you would have to change how FastAPI is generating the openapi.json, which happens in the openapi namespace. I would start at utils.py :)

Thanks for the suggestion. I was actually looking for something that is more consistent.
This code works, but has underscored in the path and a hyphen in the parameter description.
@app.get("/{my_id}/list")
def list_items(my_id: str = Path(alias="my-id")):
    return {"aa": my_id}

The below code generates documentation in expected format, but the API does not work.
@app.get("/{my-id}/list")
def list_items(my_id: str = Path(alias="my-id")):
    return {"aa": my_id}

I have to amend my comment, my apologies. Using alias parameter will break the endpoint, as it will always return with:
{
  "detail": [
    {
      "loc": [
        "path",
        "my-id"
      ],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}

FastAPI will trip up as it will look for {my-id} rather than {my_id}. If you only want the path name to be changed in SwaggerUI, you could overwrite the generated openapi schema with something of your own creation. Note that you not only have to change the path name, but also the parameters, which makes it look quite complicated. I haven't optimised this at all, it just works as an example:
from copy import deepcopy
from fastapi import FastAPI, Path, Query
from fastapi.openapi.utils import get_openapi
import re

app = FastAPI()

def custom_openapi():
    if app.openapi_schema:
        return app.openapi_schema

    openapi_schema = get_openapi(
        title=app.title,
        version=app.version,
        description=app.description,
        routes=app.routes,
    )
    schema_for_iteration = deepcopy(openapi_schema)
    openapi_schema["paths"] = {}

    for path, path_definition in schema_for_iteration["paths"].items():
        list_of_path_params_with_underscores = re.findall("{([a-zA-Z_]*)}", path)
        if list_of_path_params_with_underscores:
            # Change the 'path' key and replace _ with -
            new_path = path.replace("_", "-")
            openapi_schema["paths"][new_path] = schema_for_iteration["paths"][path]
            # For each path param with underscores, changes the parameter name
            for path_param in list_of_path_params_with_underscores:
                new_path_param = path_param.replace("_", "-")
                for http_verb, http_verb_definition in path_definition.items():
                    for index, param in enumerate(http_verb_definition["parameters"]):
                        if param["name"] == path_param:
                            openapi_schema["paths"][new_path][http_verb]["parameters"][
                                index
                            ]["name"] = new_path_param
        else:
            # If there are no path params with underscores, take the original definition
            openapi_schema["paths"][path] = schema_for_iteration["paths"][path]

    return openapi_schema

app.openapi = custom_openapi

@app.get("/{my_id}/list")
def list_items(my_id: str = Path()):
    return {"id": my_id}

@app.get("/query")
def query_param(other_query: str = Query(alias="other-query")):
    return {"q": query_param}

if __name__ == "__main__":
    import uvicorn

    uvicorn.run(app, host="<IP_ADDRESS>", port=8000)

This will create the following swaggerUI:

This route, based on Closed Issue https://github.com/tiangolo/fastapi/issues/131#issuecomment-1177187775, works, and shows how one can alias a path parameter, as long as the alias lacks a hyphen.
@router.get("/api/users/{id}/profile/")
def user_profile(user_id: int = Path(None, alias="id")):
    return {
        "id": user_id,
        "username": "johndoe"
    }

This route, using "user-id" instead of "id" as the alias, does not work, and returns 404 Not Found:
@router.get("/api/users1/{user-id}/profile/")
def user_profile(user_id: int = Path(None, alias="user-id")):
    return {
        "id": user_id,
        "username": "johndoe"
    }

@tiangolo any advice on where in the code the mapping from a Path(alias... happens?  I would like to help fix this.

@tiangolo any idea on why it isn't working when using hyphens in path parameter aliases? is this planned to be fixed?

@tiangolo also wondering if this is going to be addressed any time soon? or if there is a workaround for this?


Bug with getting ailments data during monster initialization

Describe the bug
Initially appeared as HP, parts, rage and stamina data not being retrieved at all, so HP was 0/999999.
I encounter the issue sometimes (but not always?) when you are already on quest and a new monster spawns.
It happens during initialization of the monster. More specifically when ailments are initialized, which happens before health, rage and stamina initializations. So the whole initialization chain is stopped.
After investigating for about 10 hours, I concluded that the reason is REFramework after all. Some of the ailment fields are stored in the game as arrays for no reason (buildup, for example, even thou its just one value). REFramework implicitly converts the game's System.Array (C# type) to sdk::SystemArray.
The behavior of SystemArray looks inconsistent. When trying to call SystemArray methods like: get_elements(), get_element(index) or get_size() it fails on the same spot. But after reloading all scripts, everything is normal.
Screenshots

Screenshot 1

Screenshot 2

Additional Info
Further proof of the conclusion and the explanation of Screenshot 2:
The function call chain is as follows:
monster.new()  (prints init)
-> monster.update()
-> ailments.update_ailments(monster) (prints 0 and count) (count value is retrieved with get_size())
-> for loop for each individual ailment (17 in total) (one iteration prints ailment name and then calls the function below)
-> ailments.update_ailment(monster, ailment) (prints array types and then prints numbers from 1 to 39 indicating the progress of the function execution)
Numbers from 2 to 19 are printed after each call of any SystemArray method. So if last printed number is 1 to 18 then it's SystemArray failure.
From the observation It always fails on a SystemArray method, But which method fails specifically is always different, and the ailment that it fails on is also always different. (Possibly related to which monster it happens on? For future check; gold rathian #110 - fails after printing 2 on Exhaust ailment.
After initialization is done monster.update is also getting called periodically, which is a normal and intended behavior.
If initialization fails, then each periodic update call also fails on the first SystemArray method (which is get_size for count value).
If initialization succeeds, then hen each periodic update also succeeds.
Code snippet:
Link

A workaround implemented in acd7486. All functions that have SystemArray calls are wrapped with pcall. Ailments and parts are now initialized last in the init chain.

Fixed in abec9a5.
Replaced SystemArray wrapper methods with actual System.Array methods.
SystemArray:get_size() -> System.Array:call("get_Length");
SystemArray:get_element() -> System.Array:call("getValue");


[ROCm] Adding ROCm support for reduction gpu kernels

This PR adds ROCm support for the code within the reduction_gpu_kernels.cu.h file
There are a few different functional changes associated with this PR, and they have been broken down into individual commits. Reviewing this PR on a per-commit basis will be easier.
The last commit in this PR is actually from another PR ( #29181 ). Though not a part of this PR, I have included it here, because it is required to make the --config=rocm build work after the changes contained within this PR. If PR 29181 gets merged before this PR, we can drop that commit from this PR (and vice-versa)
This is a non-trivial change, and a pre-req for upstream ROCm support for all operators that rely on the GPU reduction kernels contained within this file.

@tatianashp @whchung @chsigg

@chsigg gentle ping...please review. thanks.


Vickel: Watch tempmailit.com

Vickel requests the watch of the watch_keyword tempmailit\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

tempmailit\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


DocsArchive-<IP_ADDRESS>Auto archive content

Auto archive content from https://github.com/OPS-E2E-PPE/docs-archive-test-source

Docs Build status updates of commit c7a72b3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-04-07-03-26-36 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-04-07-03-26-36

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


InflatePaths exception when the angle is very small

The local expansion path will cause abnormal data at a small angle in the opposite direction. --Version is 22 March 2023

Please provide some sample data otherwise your post will be closed.


Website Technical Functionality

Website Technical Functionality

Satisfies all of the above acceptance criteria plus the following code improvements:

Application's links all function correctly.

Application's CSS selectors and properties are consolidated and organized to follow semantic structure.

Application's CSS file is properly commented.

All items have been completed


Supabase vectorstore (via vecs) <> Llamaindex

Added new vector store (query, add). Delete hasn't been implemented (?)
Added new example notebook

This looks great! I can help address some of my own comments shortly if you don't get to it by then! Will definitely land it this afternoon!

Thanks for addressing the comments @ykhli ! I'm going to take over and make some small tweaks and land this!

Amazing. Thank you @Disiok !!!

@ykhli just pushed my small edits:

updated constructor to create collection if it does not yet exist
updated query to construct Node with extra_info, node_info, relationships retrieved from the metadata dict
Minor fix to _to_vecs_filters and added metadata filter example in notebook.

Cheers!

Woohooo thank you @Disiok !! Time to ship!!! 🚢 🚢


New update no integration

After new update Integration dissapeared from Integration list

Version: 0.6.0

Wow. It works for me. Did you try to restart your Home Assistant?

yes couple of times. maybe new HACS update broke it? And I refresh browser cache, also on mobile phone no integration on the list. Also re-installation didn't solve this issue.

That's weird! Is there any (related) error in your log file?

Nope no error's regarding your integration in the logs.

Is it work if you download an older version like v0.5.1?

Yes with 0.5.1 it is visible in Integration list ;)

I can also try to update my installation, but please give me a quick info about how to do that, without crashing the hole system.
I tried to go from v2 to v3, but made some mistakes, so I had to reformat my SdCard and start from scratch.
With SSH access I made a git clone into the config directory, installed with making a backup with the help of copy ariston directory to ariston.backup, deleted the ariston and copy the v3 from the git clone directory to a new ariston directory.
The system got confused and want to use the ariston.backup and when I deleted that, it totally crashed.
So - I need some clear information because I can't find a clear description howto on the Internet.
Maybe I don't now know, what to search for.

@LeifRas: It possible to clone the git repositories, but I recommend to use HACS https://hacs.xyz/
@krzysiek2788: I tried to downgrade, then upgrade again with HACS. Still works for me. :face_with_spiral_eyes:

@fustom Strange after I update it again it started to work and integration is visible. Case closed


Add sigma-R tuning details

Imported from redmine, Issue #51348
Opened by @chantelwetzel-noaa on 2018-06-07
Status when imported: New

@chantelwetzel-noaa I know this is an old issue, but I wasn't sure what needed to be added. Do you remember? If not, should we maybe just close this?

Maybe this is a suggestion to add something about options for tuning sigmaR, which I think aren't well documented anywhere. I don't know how to search for Greek letters in PDFs, but conveniently github helps see how few instances are in the manual: https://github.com/nmfs-stock-synthesis/ss-documentation/search?q=sigma_R.
Methot and Taylor (2011) compare three methods of tuning sigmaR and we recommended an approach which accounts for variability among recdevs and uncertainty within their estimates. This information returned from r4ss::SS_output() supports that approach (although it could definitely be streamlined):
$sigma_R_in
[1] 0.6

$sigma_R_info
           period N_devs SD_of_devs Var_of_devs   mean_SE mean_SEsquared
1            Main     34  0.5692734   0.3240722 0.1408184     0.02462063
2      Early+Main     43  0.5447995   0.2968065 0.1444121     0.02494766
3 Early+Main+Late     45  0.5322806   0.2833226        NA             NA
  sqrt_sum_of_components SD_of_devs_over_sigma_R sqrt_sum_over_sigma_R
1              0.5905022               0.9487890             0.9841703
2              0.5672338               0.9079992             0.9453896
3                     NA               0.8871343                    NA
  alternative_sigma_R
1           0.5905022
2           0.5672338
3                  NA

I'm happy to try to draft a brief blurb about all this if you want.

@iantaylor-NOAA , that would be great when you have the time to do so! I'd be happy to read over it, also, just as a second set of eyes.

Thank you @iantaylor-NOAA.  This was on my lower priority to-do list and I had been putting it off a bit since it would require the initial drafting of guidance.

@chantelwetzel-noaa, thanks for adding text for this and for #21. I should have sorted those out long ago but you've done it better than I could have.

@iantaylor-NOAA  No problem, especially since you provide some rough text in the issues!

Here is Andre's tuning procedure in a new paper on selectivity:
The extent of bias-correction in the stock-recruitment relationship depends on the information content of the data regarding annual recruitment (Methot and Taylor, 2011).  Methot and Taylor (2011) developed an approach for specifying temporally varying bias-correction factors for recruitment based on the results of an assessment (the “recruitment-bias-ramp” method), and this approach is applied here. The estimation method is thus applied four times to address both setting of the “recruitment bias-ramp” and the effective sample sizes for the age-composition data. This involves:

Applying the stock assessment with no recruitment bias-ramp and effective sample sizes equal to the nominal values (those used to generate the data).
Applying the algorithm of Methot and Taylor (2011) to determine the recruitment bias-ramp.
Applying data weighting procedures; this involves applying algorithm T1.8 of Francis (2011) to determine a multiplier for the input (stage-1) sample sizes for the age-composition data.
Applying Equation 19 of Xu et al. (2019) to update the value for the extent of inter-annual variation in selectivity (if selectivity is assumed to be time-varying and the extent of annual variation in selectivity is not pre-specified).
Refit the model given the new specifications related to data weighting.
Repeat steps 2, 3 and 4 three times to allow the values for multipliers to converge for most replicates.

I do not think I want to add that full text into the manual as I think we advocate using D-M over iterative re-weighting using Francis.  I just want to make you aware of what Andre has been doing.

That makes sense.  Thank you for pointing out Andre's approach.


More Components

Have split all into components now, please test carefully to check that functionality is working as expected. I did a quick test, and it seems to be fine. Plenty can still be split into separate components/libraries though, so happy to look into that another time.

Gracias!

De nada


Display better error message while parsing JSON

Description
Errors are really helpful for devs. Having not known where the issue is not a better DX. Although the code mirror points out where the error is in the line, it has poor visibility and the disabled state in Save button has poor visibility as well.
Types of Changes

[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

Known issue
The line number is not accurate. Since it's stringifying everything in one line, the line number is not accurate. Another PR could be to divide by number of double quotes, comma and slash /n s to provide near line number or a better approach.
Another PR could be similar implementation for Create Page by another contributor.
Let's discuss more on thread about this feature.

@sbimochan , seems like, JSON.parse(..) in chrome yells the position while in firefox, the message is helpful with the line number & column. :thinking:

Firefox
Chrome

@sbimochan , seems like, JSON.parse(..) in chrome yells the position while in firefox, the message is helpful with the line number & column. :thinking:
| Firefox | Chrome |
|-|-|
|||

That's because it's a developer edition firefox. What about normal firefox?

Removed parse json package since there was it's peer dependency issues and the lines and columns didn't work as expected