chore: tweak the help message to adopt the latest example branch name (release-1.y); also make output a bit quieter and fix a bug in the plugin naming for wrapped janus idp plugins

What does this PR do?
chore: tweak the help message to adopt the latest example branch name (release-1.y); also make output a bit quieter and fix a bug in the plugin naming for wrapped janus idp plugins
Signed-off-by: Nick Boldt<EMAIL_ADDRESS>Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
N/A (or see commit message above for issue number)
How to test this PR?
Run the script without options:
./modules/dynamic-plugins/rhdh-supported-plugins.sh

see:

Generate an updated table of dynamic plugins from content in the following two repos, for the specified branch:
* https://github.com/janus-idp/backstage-plugins
* https://github.com/janus-idp/backstage-showcase

Requires:
* jq 1.6+

Usage:

./modules/dynamic-plugins/rhdh-supported-plugins.sh -b stable-ref-branch

Options:
  -b, --ref-branch    : Reference branch against which plugin versions should be incremented, like release-1.y or main
  --clean             : Force a clean GH checkout (do not reuse files on disk)
  -h, --help          : Show this help

Examples:

  ./modules/dynamic-plugins/rhdh-supported-plugins.sh -b release-1.3 --clean

PR Checklist
As the author of this Pull Request I made sure that:

[x] Code produced is complete
[ ] Code builds without errors
[ ] Tests are covering the bugfix
[ ] Relevant user documentation updated
[ ] Relevant contributing documentation updated

Reviewers
Reviewers, please comment how you tested the PR when approving it.

Thank you for the new help!


Duplicating file as non-super admin does not work due to permissions key

Affected Version of Concrete CMS
8.5.x
Description
A non-super admin user receives an error about a missing permissions key when they try to duplicate a file
How to reproduce
as an administrator but not the super user

upload a file to the file manager
right click and choose duplicate

Possible Solution
incoming PR that fixes the permissions Key
Additional Context
No response

Thanks for the fix!


App does not run correctly on androidtv if the JS is not bundled

with bundleAssets: false and androidtv device (shield in this case) the app does not work. If it's connected via wifi, adb reverse command will fail with more than one devices, even if there is only one. Connected via cable everything works as expected but the app fails to connect to the debugger

Adding
"AndroidManifest": {
        "children": [
          {
            "tag": "application",
            "android:name": ".MainApplication",
            "android:usesCleartextTraffic": true
          }
        ]
      },

fixes the issue for adb connected by cable


[image_picker] Fix check for iOS 14+ authorization status

Replace [PHPhotoLibrary authorizationStatus] with [PHPhotoLibrary authorizationStatusForAccessLevel:] for iOS 14+.
According to WWDC 2020 video "Handle the Limited Photos Library in your app", authorizationStatus is deprecated and will not return the newer PHAuthorizationStatusLimited.
Fixes https://github.com/flutter/flutter/issues/113681.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[ ] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[ ] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

So I'm unsure of how to test this change. Since the behavior and UI for PHAuthorizationStatusLimited and PHAuthorizationStatusAuthorized is the same, I can't think of a way to test it with a UITest. And since we're dealing with permissions, I don't think a normal unit test would work either.
Also, I'm waiting to update the changelog/pubspec since I have a different PR for the image_picker that should land soon.

So I'm unsure of how to test this change. Since the behavior and UI for PHAuthorizationStatusLimited and PHAuthorizationStatusAuthorized is the same, I can't think of a way to test it with a UITest. And since we're dealing with permissions, I don't think a normal unit test would work either.

Ugh, sorry, the checkPhotoAuthorizationForAccessLevel path is totally untested, and the test file is kind of a mess.  This would work:
- (void)testPickImageRequestAuthorization API_AVAILABLE(ios(14)) {
  id mockPhotoLibrary = OCMClassMock([PHPhotoLibrary class]);
  OCMStub([mockPhotoLibrary authorizationStatusForAccessLevel:PHAccessLevelReadWrite])
      .andReturn(PHAuthorizationStatusNotDetermined);
  OCMExpect([mockPhotoLibrary requestAuthorizationForAccessLevel:PHAccessLevelReadWrite
                                                         handler:OCMOCK_ANY]);

  FLTImagePickerPlugin *plugin = [[FLTImagePickerPlugin alloc] init];

  [plugin pickImageWithSource:[FLTSourceSpecification makeWithType:FLTSourceTypeGallery
                                                            camera:FLTSourceCameraFront]
                      maxSize:[[FLTMaxSize alloc] init]
                      quality:nil
                 fullMetadata:@YES
                   completion:^(NSString *result, FlutterError *error){
                   }];
  OCMVerifyAll(mockPhotoLibrary);
}

- (void)testPickImageAuthorizationDenied API_AVAILABLE(ios(14)) {
  id mockPhotoLibrary = OCMClassMock([PHPhotoLibrary class]);
  OCMStub([mockPhotoLibrary authorizationStatusForAccessLevel:PHAccessLevelReadWrite])
      .andReturn(PHAuthorizationStatusDenied);

  FLTImagePickerPlugin *plugin = [[FLTImagePickerPlugin alloc] init];

  XCTestExpectation *resultExpectation = [self expectationWithDescription:@"result"];

  [plugin pickImageWithSource:[FLTSourceSpecification makeWithType:FLTSourceTypeGallery
                                                            camera:FLTSourceCameraFront]
                      maxSize:[[FLTMaxSize alloc] init]
                      quality:nil
                 fullMetadata:@YES
                   completion:^(NSString *result, FlutterError *error) {
                     XCTAssertNil(result);
                     XCTAssertEqualObjects(error.code, @"photo_access_denied");
                     XCTAssertEqualObjects(error.message, @"The user did not allow photo access.");
                     [resultExpectation fulfill];
                   }];
  [self waitForExpectationsWithTimeout:30 handler:nil];
}

The first one would fail via OCMExpect/OCMVerifyAll if -requestAuthorizationForAccessLevel:PHAccessLevelReadWrite wasn't called.  The second would fail if the completion didn't fail with the photo_access_denied error.


'extensible' bindings: override binding or use ConceptMap?

Encounter.class in zib-Encounter (#49 ) has an extensible binding.
At the moment, a ConceptMap (ContactTypeCodeLijst-to-ActEncounterCode) is created to map the zib ValueSet to the fhir ValueSet. All equivalences are 'equal', so I think this is a nice approach. However, one could also argue to override the binding to our own zib ValueSet.
The Profiling Guidelines do not offer guidance on how to deal with extensible bindings. Any thougts?

The situation in Encounter.class turns out to be a bit different: there is one value (UNK) that is not present in the fhir ValueSet, leading to one concept that has equivalence 'unmatched' (this error also seems present in STU3). This is allowed because the binding is 'extensible'. All other concepts are actually from the same CodeSystem (zib ValueSet is a subset of fhir ValueSet).
However, I think the issue is still relevant because of other possible 'extensible' bindings.

When there's an extensible binding, you are allowed to use additional codes as long as they don't represent the same concept as is found in the base binding. If the concept is found in the base ValueSet, the code from this ValueSet must be used.

True. Shouldn't we state explicitly in the guidelines that a ConceptMap should always be created in these cases?

I think we can indeed explicitly add in the profiling guidelines that a ConceptMap should be created and added if the codes in a zib valueset can be mapped to an extensible valueset in FHIR.

Turns out I was mixing the definitions of 'perferred' and 'extensible' bindings when creating this issue, so it will be closed.
A possible situation where this discussion might be relevant again is if we would like to map a zib ValueSet to an extensible FHIR ValueSet, with 'a few' zib concepts matching FHIR and 'a few' new/extra zib concepts. Would the most correct strategy be to create a new "hybrid" ValueSet? Is a ConceptMap needed? However, this situation probably hasn't occurred (yet), issue can be reopened if it does.


adding kegalign (segalign replacement)

adding kegalign (segalign replacement)
Installation sequence for tool-installers

[ ] Test using @galaxybot test this
[ ] Inspect CI output for expected changes
[ ] Deploy using @galaxybot deploy this if test install was successful
[ ] Merge this PR

@galaxybot deploy this

That's what I get for trying to edit the shed_tool_conf.xml while running an install.

@galaxybot deploy this


pattern with newline

Is there a possibility to identify functions including newline?
In AHK it is possible a function exists like this:
func01()
{
code
}
The following should not match:
if (matching){
func01()
}
My pattern today is:
"pattern": "^ (\w)[(].?[)]\s{"

I think your problem is matching https://github.com/oleg-shilo/codemap.vscode/issues/20 100%


DBeaver: When editing an INTEGER value in a grid, the cell is not opened if start typing a minus or plus sign

DBeaver - Version 7.1.4 CE
DBeaver driver: MS SQL Server  / Microsoft Driver (the new Microsoft Driver)
Operating System: Windows 7 / Windows 8.1 / Windows 10
Database Server: Microsoft SQL Express 2014, 2016, 2017
When editing an INTEGER value in a grid, the cell is not opened if start typing a minus "-" or a plus "+", this workes if I enter a number "0".."9" instead.
The grid ought to set the INTEGER cell in edit mode not only when I press "0".."9" on the keyboard, pressing "+" or "-" ought to open the cell in edit mode too.

Create a test table and fill it with test data:

CREATE TABLE TestInteger (Id INTEGER, Value INTEGER);
GO

INSERT INTO TestInteger
VALUES (1, 10), (2, 20);

View the table data TestInteger in a grid.

Click on the 1st row Value column (with the value of 10).

Press number "5" on the keyboard.

The cell is changed to edit mode. This is OK.

Click on the 2nd row Value column (with the value of 20).

Press minus sign (the "-" character) or the plus sign (the "+" character) on the keyboard.

Nothing happens. This is an ERROR.

My guess is that the "-" and the "+" character should be added to characters that change the grid cell into edit mode.

`thanks for the bug report

Fixed

+ still doesn't change int cell in edit mode

Keypad buttons handle was added

verified


Use Plasmo

@tjx666  Since you rewrote part of the extension in your repo, you're free to replace the code here with yours (in a PR), making sure to preserve the code to publish to Firefox (which still works here)

Ok, maybe this weekend

By the way this isn't necessary, it's just in case you prefer it since that's what you did in your fork


Reduce time between image labeling

When a label is finished.  It takes some time to move to the next image.  I assume this is due to the next image in a labelers queue being loaded?  Or is this due to some network request occur upon submit that is slow?
This inbetween task time can take 1-2 seconds.  That means for every 1000 tasks, ~16 minutes is being wasted by a labeler just waiting for the next task to load up.  Can this be sped up somehow?
When I've created small personal labeling tools, I know what image is next in a user's queue and prefetch it for them so that as soon as they click submit the next image is available for view.  If that image is high resolution, I load a low res image first followed by a higher resolution image.  Especially when we are using a cloud storage provider for our images prefetching these images could save a lot of time.
Could something like this be implemented in Label Studio?

确实，要好几秒，其他方面都挺好用的，这一点就很影响效率

I would also be interested in such an improvement


Merged main into dev 1.29 branch

This PR syncs the dev-1.29 branch with main to keep the dev-1.29 branch up to date.
cc: @katcosgrove @taniaduggal @harshitasao @Princesso

@drewhagen click on link provided by EasyCLA to sign the CLA, that will allow the CI to run again and also fix failing tests.

/check-cla

/easycla

opening new pull request here:
https://github.com/kubernetes/website/pull/43787


Remove all framework usage of RelativeMouseDrag

Should be moved to osu! project as legacy/non-standard behaviour. See #897.

I prefer to leave ScrollBar outside of ScrollContainer and to keep the constants static, rather than making it nested again.

If we make it outside of the class, it has to be public. I thought nesting to make it protected was a better solution. Thoughts?

It doesn't have to be public. It can be internal as it was before you moved it in.


how to  fake response and reply immediately in request function instead of kill flow?

Description: I have tried Return custom response with mitmproxy
But met error because flow.reply is not callable

The examples in the Stackoverflow post are outdated. Please refer to our scripting documentation and examples on docs.mitmproxy.org.


Add documentation of new Word PDF Export option

Recently a new option was added in the Word Object Model (OM) to decide whether to down sample images or keep their original quality. If  True, the resulting files will have better image quality but may be larger. Default value is False.
The new files are the counterparts of the already existing files that add the new parameter 'OptimizeForImageQuality':
https://docs.microsoft.com/en-us/office/vba/api/word.selection.exportasfixedformat
https://docs.microsoft.com/en-us/office/vba/api/word.document.exportasfixedformat
https://docs.microsoft.com/en-us/office/vba/api/word.range.exportasfixedformat

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Yorchito sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Docs Build status updates of commit 16b2aa0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/Word.Document.ExportAsFixedFormat2.md
:white_check_mark:Succeeded
View

api/Word.Range.ExportAsFixedFormat2.md
:white_check_mark:Succeeded
View

api/Word.Selection.ExportAsFixedFormat2.md
:white_check_mark:Succeeded
View

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.

@Yorchito Thanks for this contribution. However, do we really need new topics? Would it work if we updated the current topics? Just want to clarify before I merge them.

@Yorchito Thanks for this contribution. However, do we really need new topics? Would it work if we updated the current topics? Just want to clarify before I merge them.

Hello Linda. Thank you for taking a look.
These have to be new topics because they are presented to the developers/consumers as completely new VBA Object Model functions for Word.

Updates are live: https://docs.microsoft.com/en-us/office/vba/api/word.selection.exportasfixedformat2, https://docs.microsoft.com/en-us/office/vba/api/word.range.exportasfixedformat2, https://docs.microsoft.com/en-us/office/vba/api/word.document.exportasfixedformat2


Defining ip when reverse tunneling from Raspberry to Google Cloud

Hello,
I am running my Raspiblitz from home and I tunnel ports 1833, 8333 and 9735 to a Google Cloud instance. I don't have static IP from my ISP and I don't want my public-home-ip to be announced.
Is there a way to configure Raspiblitz to use my Gcloud static IP?
I tried several ways but none of them lead to success. (maybe I just did it wrong)

setting DYNDNS to my static IP (1ml.com still shows my home address and not my DNS nor GCloud IP)
changing raspiblitz.info in /mnt/hdd/raspiblitz.info If i changed that manually raspiblitz info screen showed me my static Gcloud IP, but after rebooting changes were lost again.

Is there a way to either add my DNS link or my GCloud static IP to be shown on 1ml.com?
I think the easiest way would be just to set my GoogleCloud IP in the right config file and I would be good.
I don't know how to do it, that I can restart plus it gets announced the 1ml.com the right way.
Appreciate your help!

Isnt easier to run your node on tor?

I always taught I will only be able to connect to TOR nodes if I use tor.
I wrote a tutorial on that approach and I wanted to use my method.
https://medium.com/@cryptomulde/free-static-ip-for-btc-lightning-node-b1eef6b592cd

I want to be publicly reachable, but not with my home-ip, hence I tweaked with google cloud static ip.

@cryptomulde you are the first requesting this - setting a static IP is not a standard feature on the RaspiBlitz. So my take aways ...
TODO: for v1.1 make it easy to set a static ip - witch config script lnd.staticip.sh. Maybe add an option in raspiblitz.conf like staticIP=1 and then dont reset publicIP anymore.
To make it possible in v1.0 some manual steps are needed. You can try to set static in in the lnd.service from systemd. Do you know how to edit a systemd service?
You need to change this line:
ExecStart=/usr/local/bin/lnd --externalip=${publicIP}
replace ${publicIP} with your IP string.
Just one note on this hack - when changing some config/services on the raspiblitz it might overwrite the lnd.service again (dyndns, etc.).

Thx for your help!
I edited the lnd.service but it does not seem to work.
Replacing "PublicIP" with my numerical IP gives me this:
2019-03-06 01:23:32.733 [ERR] SRVR: unable to create server: can't create router: unexpected EOF
Replacing "PublicIP" with my numerical DynDNS gives me this:
unable to create server: can't create router: ReadVarBytes: sig is larger than the max allowed size [count 166, max 80]
I have auto unlock activated. LND shuts down after the error and is trapped in unlocking loop.

2019-03-06 01:36:00.922 [ERR] SRVR: unable to create server: can't create router: unexpected EOF
Also getting that error with "PublicIP" now will have to find out tomorrow. Need to sleep :P

I played around a little more and I found out something new to me.
I can simply change raspiblitz.conf by typing sudo nano /mnt/hdd/raspiblitz.conf
I edit PublicIP= with either my numerical static IP or the DNS pointing to my IP.
Seemes easier to me than editing lnd.service - also editing lnd.service was giving my issues and failed starting after I tried editing it.

Editing the raspiblitz.conf could be a way for the future. But at the moment the publicIP is checked at every startup and even in time intervalls in the background .. so the RaspiBlitz would overwrite that edit in his config again in v1.0 ... thats why editing the service is the safest way at the moment before this becomes a feature in v1.1

V1.2 will habe a config script to set a fixed domain or IP for the RaspiBlitz (to be used by LND).
/home/admin/config.scripts/internet.dyndomain.sh on [IP or DOMAIN]

TODO: FInal testing before release.

OK. Works on v1.2 :) Closing issue.


Update streamer.py

Fixing issue #100
Description
Related issue(s)
Fixes ...
Pre-merge checklist

[ ] Passing tests
[ ] New tests added (if applicable)

Why is this failing?

It looks like here
channel = next((k for k, v in self._channels.items() if v == message['channel']), None)

self._subscription_state[channel]...

It's complaining that if the iterator is exhausted, the _subscription_state dict will be accessed with None as a key which will fail. You can omit the second argument, None, from the next function; that way, it'll raise an exception if the iterator reaches the end instead of passing None to the dict.
Alternatively, you could make channel a dict mapping int to the event type instead of the other way around.

Apparently it broke something else now

Nope it's working well!


ndb doesn't start (ECONNRESET)

Steps to reproduce
Tell us about your environment:

ndb version: 1.0.27 and up don't work. 1.0.26 works
Platform / OS version: Ubuntu 18.10
Node.js version: 11.10.0

What steps will reproduce the problem?

npm i -g<EMAIL_ADDRESS>ndb .

What is the expected result?
ndb starts.
What happens instead?
events.js:193
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at _errnoException (util.js:1031:13)
    at Pipe.onread (net.js:619:25)

Have you try to close all your Chrome browser processes and start ndb?
It let me start ndb when Chrome is closed.Issue #239

One possible root of the issue is resolved in 1.0.47. Fix for another is coming soon (https://github.com/GoogleChromeLabs/ndb/pull/260). I will close this one for now as duplicate of https://github.com/GoogleChromeLabs/ndb/issues/248 .


Remove knuth div that is left in source code

After ruint is merged remove dead code from src/instructions/i256.rs

removed in pull request https://github.com/bluealloy/revm/pulls?q=is%3Apr


Dependency updates

Please have a look at the individual commit messages for the details.

FYI, the coroutines upgrade depends on https://github.com/kotest/kotest/pull/2912.


chore: upgrade github.com/prometheus/prometheus to v0.35.1-0.20220503184552-2381d7be5731

This change was made with the command go get<EMAIL_ADDRESS>This upgrade is required to align Prometheus version with Sumo Logic Distro of OpenTelemetry v0.51.0. The version of the Prometheus dependency has changed in upstream OpenTelemetry Collector Contrib, which is included in Sumo OT Distro.

Does OT distro build successfully with these changes?

Does OT distro build successfully with these changes?

Just checked and yes, it does seem to build successfully.


Write automated tests: Android Basics with Compose

https://developer.android.com/codelabs/basic-android-kotlin-compose-write-automated-tests?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-write-automated-tests#4
Instead of:
composeTestRule.onNodeWithText("Tip Amount: $2.00").assertExists()
do:
composeTestRule.onNodeWithText("Tip amount: $2.00").assertExists()
(small letter a)
Since the strings.xml defines it as such

Hello @folsze,
Thank you for reaching out to us. The code is correct, please refer to the image below:

Actualy the code still is with a capital A ...very confusing it took me 1 day to see my problem, thanx to this post.


Suggestion: set darkest color not same as iceberg background?

Hi, this works really great with the iceberg colorscheme. I have a suggestion though. I see the middle darkest background is the same color of the iceberg text background, so the lightline gets merged with background, and this merging I'm not finding quite nice, what you think of making it slightly lighter (or darker).

To be honest, I like that it merges with the background of vim theme, but I see where you're coming from.
I use "color steps", i.e each lighter color is every other lighter shade of darkest color (#161821 - background in iceberg.vim). Because of this, I will need to change all of colors, so expect to see all colors a bit altered.

Done (90a317fb332c7aa4db3bff9f7de196149a016af2), closing the issue.

Thanks!


Visit stage page in mobile not proper

Description
Visit stage page button has not proper alignment in mobile view.
To Reproduce
Steps to reproduce the behavior:

Go to 'home page'
Click on 'Any state name'
3.See error

Expected behavior
Proper alignment in one line should be there.
Screenshots

Smartphone (please complete the following information):

Device: Redmi Note 7 pro
OS: Android
Browser:Google Chrome

I can fix it..

Seems to be fixed now


Add pictures to replace placeholders and update FAQ in User Guide.

All of the previous placeholders mentioned in #153 has been added.
Few entries to FAQ has also been added.

LGTM


Conversion overflow with SELECT on table with lots of decimal fields

Issue Type: Bug
Using a table with a 31 decimal fields, which are defined as Decimal (38, 20), e.g.	[OriginalFaceValue] [decimal](38, 20) NULL
When doing a select * or Select top (1000), it fails with "Query failed: Conversion overflows."
Works fine for a smaller selection e.g. top (100). No issues at all in in SSMS.
Azure Data Studio version: azuredatastudio 1.17.1 (814ce88c41e0daaca89afed8b184e795057a6f9d, 2020-04-30T00:16:35.943Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.89GB (12.14GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

agent
Mic
0.47.0

import
Mic
0.14.0

profiler
Mic
0.11.0

@chamih this should have been fixed by now. please try the latest release.


How to clean the clipboard of Here?

clipboard of Here is useful but how can I clean or delete some item like password from clipboard list?

Now you can only remove the whole list. Remove individual items is not supported currently.

Now you can only remove the whole list. Remove individual items is not supported currently.

@hereappdev Thanks  for your replay, but how can i open the clear .. menu ? 😄
My App info:
buildNumber: 2164
shortVersion: 0.12.0
versionString: v0.12.0 (2164)

Find it. The Clipboard clear menu is at the bottom.


Create class alias for FastRoute\RouteCollector

So it doesn't get confused with Slim\Routing\RouteCollector which resides in same namespace

Coverage remained the same at 100.0% when pulling c1e9569b6bd6084dbf2ce7e04836fbd89bc2d38b on piotr-cz:cs/fastroutecollector-alias into 44a5324a09a3a543179b0edf43dae6bd27cb4948 on slimphp:4.x.


Need a way to get proxy settings to nugget

You should either check the npm environment proxy setting and pass that to nugget or allow a --proxy setting from the command line call to be able to be passed to the nugget call.
I'm behind a corp firewall and this script fails when nugget tries to download files because the proxy settings are not being used.

No worries! You can just set a PROXY environment variable. On PowerShell, just call this $env:PROXY=YOURPROXY.


Require CMake 3.16 for ObjC and ObjC++ sources

Both languages gained native CMake support in 3.16:
https://cmake.org/cmake/help/latest/release/3.16.html#languages
Issue: #2079
Tasks
Build only test

[ ] Tested on Linux
[ ] Tested on Windows
[x] Tested on macOS
[ ] Tested on iOS
[ ] Tested on Android

Oops, my master was outdated. Sorry!

OK, quick edits done. I was just missing enable_language from the Main module when building for iOS, no need to enable things at the top. I didn't test iOS, because I don't have the iOS SDK on the Mac machine I have access to.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Thank you for this CMake enhancement! 🙂


Latest sync from Microsoft Internal repo (3/15/2023) w/ TRNG

Includes new TRNG IP and all dependencies
Includes UART
Includes updated environment variable workflow (WORKSPACE -> CALIPTRA_WORKSPACE + CALIPTRA_ROOT)
PCR Vault updates with Hash and Signing
Minor register updates in soc_ifc

Hey @calebofearth - I pushed a change to add a verilator test as part of CI here, I think it would be good if we could get that in soon since it's catching some issues in this PR

Hey @calebofearth - I pushed a change to add a verilator test as part of CI here, I think it would be good if we could get that in soon since it's catching some issues in this PR

Posted a reply.
If that PR requires the changes to caliptra_top_tb.vf in order to complete, we could bring the workflow into this PR to comlete instead.

Is the entirety of all these changes one large squashed commit? how will we do bisection?

Yes, this is a single squashed commit. This is suboptimal, agreed, but is also only a temporary issue associated with the growing pains as we migrate from an internal maintenance flow to an external one. These bulky 'sync' copies are expected to go away once we have a usable github-centric development flow.
This PR really represents 3 discrete feature sets:

TRNG files (brought into the Caliptra repo from OpenTitan by @howardtr ) -- there is no commit history to bisect on these files anyway, without going back to the OpenTitan repo.
Environment variable changes - WORKSPACE is renamed to CALIPTRA_WORKSPACE, and CALIPTRA_ROOT takes care of disambiguation on the repository root name. This is also mostly an atomic change.
Assorted features from Microsoft internal development, including val framework, bug fixes, and a side-channel measure for HMAC. Git history does exist in our repo, but it would be an arduous task to merge all of those individual feature PR's one at a time into the GitHub repository.

Is the entirety of all these changes one large squashed commit? how will we do bisection?

Hi Andres - We had to include some of the google changes as that TRNG integration work stated with Howard 4 weeks ago or so. That said, since we are syncing every week, the changes that come in are not new features that TAC has to bless - but features that are pending, bugs/bug-fixes, validation infra & test suites.
We will ensure any new TAC approved (new features), we do a new/separate PR (which I didnt consider initially but we can do that for one extra approval). Otherwise, most of the RTL PRs should be more or less automatic since the (RTL/val) development is on-going.

Hi Andres - We had to include some of the google changes as that TRNG integration work stated with Howard 4 weeks ago or so. That said, since we are syncing every week, the changes that come in are not new features that TAC has to bless - but features that are pending, bugs/bug-fixes, validation infra & test suites.

I was wondering when main would be updated with the changes in dev-msft?
My understanding is that with the different dev branches, we're supposed to be tracking main, but we end up tracking dev-msft since there's so many changes happening.
I have all of the required changes to integrate qspi (#17) into the top level in our branch, but I suspect that there will be a bunch of merging conflicts since I've re-added the same common libs that were added as part of the TRNG 4 weeks ago.
I'm sure there will be some additional time required to revalidate everything. (e.g. assertion checks + compile.yml).  This is fine and expected since we're all trying to converge on working directly from the repo.  I certainly appreciate the heroic effort that Caleb and others are doing, but I think we could gain a lot of momentum and minimize the integration pain if we could shorten the feedback loop even further than a week.

Yes, this is a single squashed commit. This is suboptimal, agreed, but is also only a temporary issue associated with the growing pains as we migrate from an internal maintenance flow to an external one. These bulky 'sync' copies are expected to go away once we have a usable github-centric development flow.

This PR really represents 3 discrete feature sets:

TRNG files (brought into the Caliptra repo from OpenTitan by @howardtr ) -- there is no commit history to bisect on these files anyway, without going back to the OpenTitan repo.

I've added a dev-goog-ot branch to snapshot the source at which it was captured to understand the diff https://github.com/chipsalliance/caliptra-rtl/compare/dev-goog-ot..dev-msft-20230315?diff=split
I think the 3 discrete feature sets would have been nice to stage as 3 separate PRs (obviously this goes away with the migration)
Having (1) and (2) added in a discrete PR, we would have minimized the diffs and seen the changes between the base OT files and what was added/modified. Instead, there's now an additional diff of all the CALIPTRA_ASSERT added. This can be additional burden on the reviewer that may not be familiar with the code as opposed to having that as a separate atomic change.

Yes, this is a single squashed commit. This is suboptimal, agreed, but is also only a temporary issue associated with the growing pains as we migrate from an internal maintenance flow to an external one. These bulky 'sync' copies are expected to go away once we have a usable github-centric development flow.

This PR really represents 3 discrete feature sets:

TRNG files (brought into the Caliptra repo from OpenTitan by @howardtr ) -- there is no commit history to bisect on these files anyway, without going back to the OpenTitan repo.

I've added a dev-goog-ot branch to snapshot the source at which it was captured to understand the diff https://github.com/chipsalliance/caliptra-rtl/compare/dev-goog-ot..dev-msft-20230315?diff=split
I think the 3 discrete feature sets would have been nice to stage as 3 separate PRs (obviously this goes away with the migration)
Having (1) and (2) added in a discrete PR, we would have minimized the diffs and seen the changes between the base OT files and what was added/modified. Instead, there's now an additional diff of all the CALIPTRA_ASSERT added. This can be additional burden on the reviewer that may not be familiar with the code as opposed to having that as a separate atomic change.

@howardtr , would you like to go ahead and submit that ot branch as a PR? Then we can PR dev-goog into dev-msft, and proceed with this sync, which will then reflect the ASSERT (and other) changes made in the ot fileset more clearly.

Here are some suggestions to break the impasse:

@calebofearth to give the TRNG & UART changes back to @howardtr and let Howard turn the change into goog branch and a week after they get pulled together.
Only msft changes go in as a part of the change to reduce this push.

On @howardtr question: "I was wondering when main would be updated with the changes in dev-msft?" -> There was nothing to sync last week (Wednesday), as we just did the push the Friday before (and Also anjana was out on a family emergency);
The sync started from msft/goog branch today to push to main by @anjpar for monday.

I also want to state that if a branch is not clean on integration, the failures will be sent across for debug/fixes but we should keep the weekly cadence of main releases with the clean branches. This would ensure the quality of PRs going into sub-branches are solid!

Update:
@calebofearth - Pushed - https://github.com/chipsalliance/caliptra-rtl/pull/22
diff:
https://github.com/chipsalliance/caliptra-rtl/compare/dev-goog-ot..dev-msft-20230315

Initial TRNG fileset PR completed to dev-goog (#22)
That fileset was merged to dev-msft (#23)
I then rebased dev-msft-20230315 onto dev-msft and force pushed here.
See the description above for comprehensive list of included changes.


Could not install Composer

!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The phar extension is missing.
Install it or recompile php without --disable-phar
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

Just install the phar extension and the openssl extension for PHP, just as the message says...

Error message:
$ curl -sS https://getcomposer.org/installer | php
input is not a tty
curl: (23) Failed writing body (0 != 16133)

other way, without installing composer (live version) :

download https://getcomposer.org/download/1.0.0-alpha11/composer.phar
past the composer.phar in the crud-admin-generator/ folder
run php composer.phar install in a console open from the crud-admin-generator/ folder

Just read https://getcomposer.org/download/ .

This is a nice project but I think the developer has stopped working on it. Please try this new project: https://github.com/Muhammadinaam/speed-admin


[BEAM-876] Support schemaUpdateOption in BigQueryIO

[BEAM-876] Support schemaUpdateOption in BigQueryIO
This adds schemaUpdateOptions to BigQueryIO.Write so that one can specify these for BiqQuery when writing in batch mode.
Usage example:
Write<TableRow> writer = BigQueryIO.writeTableRows()
  .to("name-goes-here")
  .withMethod(BigQueryIO.Write.Method.FILE_LOADS)
  .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)
  .withSchemaUpdateOptions(EnumSet.of(BigQueryIO.Write.SchemaUpdate.Option.ALLOW_FIELD_ADDITION));

Implementation Notes
Hi, hello:
Hi all. I haven't contributed to this code base before, and am not super familiar with it. Style advice and such is super welcome.
Load vs Query Jobs in BigQuery:
BigQuery supports schema update side effects for load and query jobs. This implements support for load jobs only. In the context of Apache Beam, it doesn't seem like there's much utility to supporting queries which write to a table directly (as opposed to reading via a query and writing later in the pipeline). (Open to discussion/correction of course).
Avoiding Changing WriteTables Constructor:
I've added this to WriteTables with a withSchemaUpdateOptions method so as not to perturb the public constructor with an optional parameter. There's some awkwardness there -- but it seemed preferable to breaking the api or adding a secondary constructor.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Tagging for review: @lukecwik @chamikaramj

Thanks for the contribution.
R: @pabloem will you be able to review ?

Yes, I'll be glad to review.

Also, sorry about the delay. Don't hesitate to ping on the PR / email me.

Should I review once more?

I haven't had a chance to write the integration test yet... but was hoping to take a shot at it in the next week or so.

thanks!

@pabloem I found some time to write up an integration test.
I'm seeing a failing check (org.apache.beam.sdk.io.jms.JmsIOTest.testCheckpointMarkSafety) which I think may be unrelated? I may be missing the connection though :-S  There are a number of lines like this in the output like: java.lang.SecurityException: User name [test_user] or password is invalid. ...so I suspect this may be some sort of CI setup thing..

Run Java PreCommit

I'm seeing a timeout fail here: https://builds.apache.org/job/beam_PreCommit_Java_Commit/8731/testReport/org.apache.beam.runners.flink.translation.wrappers.streaming.io/UnboundedSourceWrapperTest$ParameterizedUnboundedSourceWrapperTest/testWatermarkEmission_numTasks___4__numSplits_2_/
going to retry

Run Java PreCommit

Thanks for writing the test! That's going above and beyond : ) - the changes LGTM. I'll try to run the test to check.

r: @chamikaramj would you like to do an extra pass?

Okay, bringing in now. Thanks @ziel


Feature/#333 open fafreplay

You really wann have the 5$ right ;), what if I right click on the file and say open with when the client is already running?

You really wann have the 5$ right ;), what if I right click on the file and say open with when the client is already running?
Then it will start the replay


Add the github badges to the Readme

We would like to have github badge like:

commits per week
stars
license

I can work on this!

closed by #36


frontend fixes to support CAS

fix bug: requiring all symbol table entries to have an address
frontend: allow loads in binary expressions and branch conditions to support CAS instruction
frontend (gtirb): wip; support AtomicStart and AtomicEnd intrinsics, split blocks into multiple across call boundaries

addresses #281

Gtirb frontend needs more effort since it assumes Stmt_If statements are genuine control flow jumps with corresponding edges in the gtirb, but CAS produces purely semantic ifs in the middle of the statement list;
          "semantics": [
            "Stmt_TCall(\"AtomicStart.0\",[],[])",
            "Stmt_ConstDecl(Type_Bits(32),\"Exp16__6\",Expr_TApply(\"Mem.read.0\",[4],[Expr_Array(Expr_Var(\"_R\"),3);4;9]))",
            "Stmt_If(Expr_TApply(\"eq_bits.0\",[32],[Expr_TApply(\"Mem.read.0\",[4],[Expr_Array(Expr_Var(\"_R\"),3);4;9]);Expr_Slices(Expr_Array(Expr_Var(\"_R\"),0),[Slice_LoWd(0,32
)])]),[\nStmt_TCall(\"Mem.set.0\",[4],[Expr_Array(Expr_Var(\"_R\"),3);4;9;Expr_Slices(Expr_Array(Expr_Var(\"_R\"),4),[Slice_LoWd(0,32)])])\n],[],[])",
            "Stmt_TCall(\"AtomicEnd.0\",[],[])",
            "Stmt_Assign(LExpr_Array(LExpr_Var(\"_R\"),0),Expr_TApply(\"ZeroExtend.0\",[32;64],[Expr_Var(\"Exp16__6\");64]))"
          ]

since it assumes Stmt_If statements are genuine control flow jumps with corresponding edges in the gtirb, but CAS produces purely semantic ifs

There is no difference, BASIL does not assume that a Stmt_If is a 'genuine' control flow jump, it's just that splitting it into blocks is necessary to represent it accurately. See the cset instruction for another case where this happens.

You are right, but in this case the TempIf is not cleaned up and converted to a jump

The TempIf being converted into a jump is what is supposed to happen in this sort of case?

it is not converted to a jump


Run CodeFormatter for Microsoft.PowerShell.Commands.Management

PR Summary
Fix formatting issues in Management module with CodeFormatter utility. No manual changes.
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

@iSazonov, your last commit had 1 failures in PowerShell-CI-macos
Task-based PowerShell async APIs.PowerShell::StopAsync.can stop a script that is running asynchronously
Expected $true, but got $false.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/engine/Api/TaskBasedAsyncPowerShellAPI.Tests.ps1: line 213
213:                 $ir.IsFaulted | Should -Be $true

@PoshChan Please retry macos

@iSazonov, successfully started retry of PowerShell-CI-macOS

@PoshChan Please retry windows

@iSazonov, successfully started retry of PowerShell-CI-Windows

@PoshChan Please retry windows

@iSazonov, successfully started retry of PowerShell-CI-Windows


Replace NancyFx by ASP.NET Core

Since there were no updates of NancyFx since a while and I see no benefit anymore since we can use asp.net core, we should replace it.
We could easily fully switch to ASP.NET Core, which means that:

the one or two views we have will be migrated to razor pages
the NancyFx modules will be converted to mvc controllers

Pros:

Easier to understand for new/other developers, since they may be familiar with asp.net core already
One non-MS dependency less to care about. It may reference some old stuff, since it doesn't get updates, which is my main reason to migrate.
Some stuff is even easier to accomplish with asp.net core

Cons:

Some work, but I think it's not that much

Fixed with #81.


Unable to preview image in editor

In my migration to Sveltia CMS, I have encountered the issue that not all of my hero images for my blog posts are displayed correctly in the editor as well as in the collection listing.

The first three blog articles are sourced from a centrally available folder that contains various subfolders. (media_folder = assets/ & public_folder = /). On the other hand, the fourth blog article uses an image from its own article directory.
Editorview with not working Image preview:

Editorview with working Image preview:

Configuration:
- label: Hero Image
  name: hero
  widget: image
  i18n: true
  preview: false
- label: Hero Anchor
  name: heroAnchor
  widget: select
  i18n: true
  preview: false
  options: ["TopLeft", "TopCenter", "TopRight", "Left", "Center", "Right", "BottomLeft", "BottomCenter", "BottomRight", "Smart"]
  default: ["Smart"]

How the media_folder and public_folder for the posts collection look like? As the Decap doc says, you need these properties for the collection:
    path: '{{slug}}/index'
    media_folder: ''
    public_folder: ''

I’m testing now — one entry contains an image from the global asset folder, and another contains an image from an entry-relative path, and both displays fine:

But I’ve realized that, currently when I select a new image from the image selector, the preview becomes empty. (Once saved, it will be displayed.) It’s a different bug; I’ll fix it.

The problem here is the saved path is actually relative, e.g. heroes/package-manager.jpg. It should start with / if the image is coming from the global media folder.

One more note: Sveltia CMS currently doesn’t support field-specific media_folder and public_folder that are mentioned as the image widget’s beta feature in the Decap CMS doc. So I think there is no way to use /heros/ only for the specific hero image field.

But I’ve realized that, currently when I select a new image from the image selector, the preview becomes empty. (Once saved, it will be displayed.) It’s a different bug; I’ll fix it.

This bug is now fixed. I’m closing the issue as it seems a configuration problem.

I'm afraid it's indeed a bug. I've taken a detailed look at the issue and managed to achieve partial success. My global settings is media_folder: /assets/ and public_folder: /. Collection settings remain unchanged with media_folder: '' and public_folder: ''.
Under the directory /assets/, there are two subfolders /assets/images/ and /assets/heros/.
With these settings, neither images nor heroes are displayed.

If I update the global setting to media_folder: /assets/images/ and public_folder: /images/, images are displayed, but heroes are not.
If I update the global setting to media_folder: /assets/heros/ and public_folder: /heros/, heroes are displayed, but images are not.

But when I set my global settings to
media_folder: /assets/
public_folder: /

Both subfolders should be scanned or not?

But when I set my global settings to
media_folder: /assets/
public_folder: /

Both subfolders should be scanned or not?

As side note, with the fix https://github.com/sveltia/sveltia-cms/issues/115#issuecomment-1995527443, both path prefixes /images/ and /heros/ are working well in markdown.

Just tested locally.

It seems images are scanned so these appear in the Asset Library.
But, when looking for a specific image, the CMS fails to find it under a subdirectory.

I think images under a subdirectory that is not configured in any media_folder (in your case, both /assets/images/ and  /assets/heroes/) should be ignored because there is no way to upload images there. So, not 2 but 1 is a bug. I’ll fix it.

Basically, these subfolders cannot be used until I fix this known issue mentioned in README:

Sveltia CMS currently doesn’t support field-specific media_folder and public_folder that are mentioned as the image widget’s beta feature in the Decap CMS doc.

Please do not put yourself under any time pressure. I can certainly manage without the preview, at least for a certain amount of time. Since I've managed without UI for several years now. 🤣

Reopen for further tracking?


Use syslog format for logging

The format of the WOPI logs is neither RFC-3164 nor RFC-5424 compliant. Parsing the current logs will require custom regex.
Can we use the stdlib syslog package to log messages in the wopiserver?

Closing this as we solved the issue in a different way: by enabling fluentd logging for the docker container running the wopiserver.
A separate issue is to JSON-ify the log to be more fluentd-friendly.


Fix issue in bytecode analysis where target and next are same.

As title.
Fixes #5097
Fixes #5680

This fixes the issue for my reproducer too:
from numba import cuda
import numpy as np

@cuda.jit(debug=True)
def f(x, y):
    i = 0
    for xv, yv in zip(x, y):
        if xv != x[i]:
            pass
        i += 1

x = np.asarray((10, 9, 8, 7, 6))
y = np.asarray((1, 2, 3, 4, 5))

f[1, 1](x, y)

which used to fail with:
  File "/home/gmarkall/numbadev/numba/numba/core/utils.py", line 307, in __setitem__
    raise AssertionError("key already in dictionary: %r" % (key,))
AssertionError: Failed in cuda mode pipeline (step: analyzing bytecode)
key already in dictionary: '$phi36.0'


Minor improvement: retrieving the imputed values with cell scale correction

Some users would like to have a direct access to cell scale corrected imputed values so I added the expected frequencies to the set of variables returned by the wrapper method get_all_latent_and_imputed_values.
Closes #247

Looks good. Usually better to rebase than to merge.


app crashes since update v0.5+

Since version 5, the application crashes when the new "info" icon on a course is pressed
The problem happens when opening scorpion for the first time. Once the application has crashed, it closes at each new attempt to start.
To open it again, I have to delete all the data from the application (and reconnect) but the problem still occurs.
Smartphone :

Device: POCO f1 (Xiaomi)
OS: MIUI 11.0.9 (Android 10)

Do you think you could look at the problem to solve it?
Thanks for the development of this app which is really more convenient than Aurion! I see new updates regularly this month, it's great!

Hi, thanks for the feedback !
I can see why the app would crash when ⓘ is pressed (and this will be fixed in the next update), but I can't understand why the app wouldn't start after that.
It is possible that this problem is related to Aurion. As we only have access to our own planning, we can't test some weird scenarios that Aurion sends back to us (wouldn't be the first time, won't be the last).
The easiest way for us to solve this problem would be to meet at ISEN. Do you have some time tomorrow in the afternoon ?

Sure ! I'm available this afternoon from 14:00 when you prefer

Nice ! I'll be in C404 at 14:00, see you then !


Panic involving fork cheatcode when doing weird reentrancy

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (87283bc 2023-10-06T00:32:37.923803000Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
Running forge test with the following solidity code causes a panic:
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "forge-std/Test.sol";

contract ForkingTest is Test {
    uint256 mainnetFork;
    uint256 optimismFork;

    function setUp() public {
        mainnetFork = vm.createFork("https://eth-mainnet.g.alchemy.com/v2/ALCHEMY_KEY");
        optimismFork = vm.createFork("https://opt-mainnet.g.alchemy.com/v2/ALCHEMY_KEY");
    }

    function testForking() public {
        vm.selectFork(mainnetFork);
        Foo f = new Foo();
        f.doCallback();
    }

    function switchFork() public {
        vm.selectFork(optimismFork);
    }
}

contract Foo {
    uint256 public n;
    constructor() {
        n = 0;
    }
    function setN(uint256 m) public {
        n = m;
    }
    function doCallback() public {
        ForkingTest c = ForkingTest(msg.sender);
        c.switchFork();
        setN(1); // Causes a rust panic. I think the panic is because this contract doesn't exist in the optimism fork
    }
}

Forge test output:
sam@Sams-MacBook-Pro foundry-testing % RUST_BACKTRACE=full forge test
[⠢] Compiling...
[⠘] Compiling 1 files with 0.8.17
[⠃] Solc 0.8.17 finished in 595.48ms
Compiler run successful!
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: /Users/runner/.cargo/git/checkouts/revm-bf744d8ffabcbad9/23cbac4/crates/revm/src/journaled_state.rs:654

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   2: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   3: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   4: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   5: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   6: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   7: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   8: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
   9: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  10: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  11: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  12: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  13: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  14: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  15: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  16: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  17: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  18: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  19: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  20: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  21: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  22: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  23: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  24: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  25: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  26: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  27: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  28: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  29: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  30: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  31: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  32: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  33: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  34: __mh_execute_header<unknown>
      at <unknown source file>:<unknown line>
  35: __pthread_joiner_wake<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
zsh: abort      RUST_BACKTRACE=full forge test

need to check but the circular call pattern likely messes something up

this isn't very trivial to fix unfortunately because we don't have easy access to the Foo contract inside the vm.selectFork(optimismFork); call and can't easily autodetect this and prevent a panic...
and you're correct the panic is because the contract does not exist, you can fix this by marking the sender as persistent inside the switchFork: vm.makePersistent(msg.sender);

Makes sense. I'm not relying on this working or anything, I was just playing around with fork cheatcode edge cases and stumbled upon this one, figured I'd report it since it caused a panic.


Tuple of functions (with identical signature) does not compile for CUDA

[x] I have tried using the latest released version of Numba (most recent is
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

The following example results in NumbaNotImplementedError:
import numpy as np
import numba as nb
from numba import cuda

@cuda.jit("f8(f8)", device = True, inline = True)
def foo(x):
    return x * 10

@cuda.jit("f8(f8)", device = True, inline = True)
def bar(x):
    return x * 100

FUNCS = (
    foo,
    bar,
)

@nb.vectorize("f8(f8,i8)", target = "cuda")
def demo(x, idx):
    return FUNCS[idx](x)

X = np.arange(0., 10.)
mask = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype="i8")

print(demo(X, mask))

A similar thing does work on the CPU, with a warning though:
import numpy as np
import numba as nb

@nb.njit("f8(f8)", inline = "always")
def foo(x):
    return x * 10

@nb.njit("f8(f8)", inline = "always")
def bar(x):
    return x * 100

FUNCS = (
    foo,
    bar,
)

@nb.vectorize("f8(f8,i8)", target = "cpu")
def demo(x, idx):
    return FUNCS[idx](x)

X = np.arange(0., 10.)
mask = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype="i8")

print(demo(X, mask))

I am trying to get around the limitation of being unable to pass custom user-provided functions to a CUDA-kernel. The tuple FUNCS is being generated dynamically (from a list or array), then a custom version of demo is supposed to be compiled. All functions in FUNCS have the exact same signature. For further context / use-case, see here.

Workaround:
import numpy as np
import numba as nb
from numba import cuda

@cuda.jit("f8(f8)", device = True, inline = True)
def foo(x):
    return x * 10

@cuda.jit("f8(f8)", device = True, inline = True)
def bar(x):
    return x * 100

FUNCS = (
    foo,
    bar,
)

exec("""
@cuda.jit("f8(f8,i8)", device = True, inline = True)
def dispatcher(x, idx):
{DISPATCHER:s}
    return np.nan
""".format(DISPATCHER = "\n".join([
    f"    {'if' if idx == 0 else 'elif':s} idx == {idx:d}:\n        return {func.__name__:s}(x)"
    for idx, func in enumerate(FUNCS)
])))

@nb.vectorize("f8(f8,i8)", target = "cuda")
def demo(x, idx):
    return dispatcher(x, idx)

X = np.arange(0., 10.)
mask = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype="i8")

print(demo(X, mask))

Dynamically building custom functions around arbitrary lists/tuples of functions is non-trivial ... It took me a while to fully piece it together in a semi-robust fashion. In case someone comes across this later, the full workaround looks somewhat like this:
import numpy as np
import numba as nb
from numba import cuda

def factory():
    out = []
    for factor in (10, 100):
        @cuda.jit("f8(f8)", device = True, inline = True)
        def foo(x):
            return x * factor
        out.append(foo)
    return out

def builder(funcs):
    # names are not unique, ids are ...
    funcs = [(f"func_{id(func):x}", func) for func in funcs]

    # HACK https://stackoverflow.com/a/71560563
    globals_, locals_ = globals(), locals()
    globals_.update({name: handle for name, handle in funcs})
    exec("""
@cuda.jit("f8(f8,i8)", device = True, inline = True)
def dispatcher(x, idx):
{DISPATCHER:s}
    return np.nan
    """.format(DISPATCHER = "\n".join([
        f"    {'if' if idx == 0 else 'elif':s} idx == {idx:d}:\n        return {name:s}(x)"
        for idx, (name, _) in enumerate(funcs)
    ])), globals_, locals_)
    globals_["dispatcher"] = locals_["dispatcher"]

    @nb.vectorize("f8(f8,i8)", target = "cuda")
    def prototype(x, idx):
        return dispatcher(x, idx)

    return prototype

user_funcs = factory()
demo1 = builder(user_funcs)
demo2 = builder(user_funcs[::-1])

X = np.arange(0., 10.)
mask = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype="i8")

print(demo1(X, mask))
print(demo2(X, mask))

factory prepares two different functions with identical names, just to capture this edge-case in builder.


Support to directly deploy multi-cluster-ingress-nginx in production env

I want to directly deploy multi-cluster-ingress-nginx in production env, not to use make dev-env.
Whether can it support official multi-cluster-ingress-nginx image, or using directly  ingress-nginx image?

We can make an image with the command: make build image.
For now, we have not released the multi-cluster-ingress-nginx image.

I want to directly deploy multi-cluster-ingress-nginx in production env

really?

I want to directly deploy multi-cluster-ingress-nginx in production env

really?

It is a assumption. However, recently, we are going to deploy a whole multi-cluster manager system as a demonstration demo that need to include all multi-cluster function.

Good.
Then, we can publish the image.

We can make an image with the command: make build image.

It seems always to request k8s.gcr.io when executing make, which could trouble domestic users.
[root@master137 multi-cluster-ingress-nginx]# make dev-env
[dev-env] building image
Unable to find image 'k8s.gcr.io/ingress-nginx/e2e-test-runner:v20220110-gfd820db46@sha256:273f7d9b1b2297cd96b4d51600e45d932186a1cc79d00d179dfb43654112fe8f' locally
docker: Error response from daemon: Get "https://k8s.gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
make[1]: *** [build] Error 125
make: *** [dev-env] Error 2
[root@master137 multi-cluster-ingress-nginx]# make build image
Unable to find image 'k8s.gcr.io/ingress-nginx/e2e-test-runner:v20220110-gfd820db46@sha256:273f7d9b1b2297cd96b4d51600e45d932186a1cc79d00d179dfb43654112fe8f' locally
docker: Error response from daemon: Get "https://k8s.gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
make: *** [build] Error 125

Perhaps, we need to provide a script or helm chart to deploy it in the future.

Nice! It would be convenient.

It seems to timeout when make build image, how to resolve it?

For reference, we can view the PR on Karmada repository: https://github.com/karmada-io/karmada/pull/1925

For reference, we can view the PR on Karmada repository: karmada-io/karmada#1925

Wow, looks great!


Missing Resource Type in Azure Naming Tool for Virtual Desktop

Tool version
Current version of the Azure Naming Tool you are running.
V4.0
Is your feature request related to a problem? Please describe.
The Azure naming tool is currently missing the option to specify the resource type for Virtual Desktop resources. When attempting to name resources related to Azure Virtual Desktop, users are unable to select the appropriate resource type, which impacts the consistency and clarity of resource naming conventions.
Describe the solution you'd like
I implemet it manuall in the Json File and import it again.
Expected Behavior:
The Azure naming tool should include an option to specify the resource type for Azure Virtual Desktop resources, allowing users to adhere to consistent naming conventions and ensure clarity in resource naming.

@Crallbit Hi,
The json file can be uploaded using the API. Add a new item to the end of the list, specify the next sequence number for the ID, select the rest of the parameters, and upload the whole file again.

Hi @Crallbit ,
v4.3.0 was released with Custom Resource Type support. Please review the release notes and update to the latest version to customize your resource types.
https://github.com/mspnp/AzureNamingTool/wiki/v4.3.0
Bryan


Dictation: Trader Joe's - Why They're Successful

https://www.youtube.com/watch?v=dC8v-wHf7Ro

do a 180

make a reversal in stance
ex) "The CEO did a 180 and decided that she no longer wanted to expand the business."
ex) "He was against the idea at first, but he did a 180 and became a supporter."

1
Trader Joe's is unlike any other supermarket chain.
I am sure that anyone who's been there before realizes within the first four minutes.
Trust me when I say that the differences run much deeper than what you can see on the surface.
In fact, when comparing them to all of the other supermarket chains that either their size or bigger, they are the most unconventional.
They have been really successful because of it.
Now they haven't been one of the fastest supermarket chains but they have been one of the steadiest.
They officially started in the 1960s.
For the first 20 years or so, you can say that they were taking it slow.
They grew from a single store in SoCal to 27 stores in SoCal
but then in 1988, they started pushing down that accelerator.
From that point, there have been more TJs added every single year.
It's the first year that they expanded beyond SoCal too.
it was into northern California.
But by 1993, they opened one in Az,
in 3 years later, when they were approaching 100 locations, they open one in Maryland,
marking their first presence on the east coast.
Today they are over 500 of them, located in pretty much every states.
If you don't yet have TJ near you, be patient because I think it's just matter of time.
next: https://youtu.be/dC8v-wHf7Ro?t=93

2
So considering that this is such an unconventional supermarket
that has been taken over the nation
I thought it would be a good idea to take a look at how they got to this point
and try to identify the big reasons behind their success.
You may wanna laugh at hearing my first reason
because it sounds counter intuitive
but hear me out on it.
A big reason behind their success is being able to admit defeat.
I am specifically talking about Joe Calum, the Joe behind TJ.
who I should say sadly passed away in early 2020 at the age of 89.
His career started in 1954. He has just graduated from Stanford University with a B.S. degree in economics and a M.S. degree in business administration when he was hired by a company called Lexel Drug.
As the name implies, it was a chain of drug stores in SoCal that was soon looking to take advantage of growing market by opening of their own chain of local convenient stores.
Joe was one put in charge of that project. In 1958, they open the first one under the name Pronto.
I have to say, Pronto is not a bad name for a convenient store.
Within 4 years, Pronto has grown to a chain of 4 stores, when rexel drug did a 180 and decided that they no longer wanted to be involved.
https://youtu.be/dC8v-wHf7Ro?t=165

do a 180

make a reversal in stance
ex) "The CEO did a 180 and decided that she no longer wanted to expand the business."
ex) "He was against the idea at first, but he did a 180 and became a supporter."

3
They changed the plan to give Joe the opportunity to buy the chain of the stores with some financial from Pronto employees.
He then proceed to own and operate the chain growing into 18 stores in next 5 years
but in 1963 he was confronted with some trouble with in the form of 7-11 that was competing chain of convenience store, i am sure everyone knows about that, even in 1967, far bigger than 18 stores.
all of sudden, they were making an aggressive push to establish themselves in Joe's market of SoCal.
it started to opening stores all around him, even acquired one of the biggest supplier.
In a words of TJ himself, I don't know if he wants to be called that but
he said, when I saw 7-11 stores coming into SoCal in 1963
I started to convert Pronto into TJ
because I didn't want to compete with them.
Now that sounds a lot like admitting defeat. That's what it was.
Instead of stubbornly trying fighting uphill battle against 7-11,
he simply surrender and went out to find a new battle where
he thought he had more of chance.

listen again later
Instead of stubbornly trying fighting uphill battle against 7-11, he simply surrender and went out to find a new battle where he thought he had more of chance.

fight an uphill battle

face significant challenges or obstacles in a situation where success is difficult or unlikely
ex) "Joe didn't try fighting an uphill battle against 7-Eleven."
ex) "The startup company is fighting an uphill battle to establish itself in a market dominated by big companies"

next) https://youtu.be/dC8v-wHf7Ro?t=224

4
Believe or not, I actually have a second example of how him admitting defeat that may have saved the company.
See, up until 1976, the CA government had this laws in place that control the price of liquor.
It was illegal for super market to sell it for too cheap.
So wherever you want to buy your alcohol, it was pretty much the same price.
Since the free market wasn't allow to drive the price down, it was being sold at a high margin.
Stores all around the states were becoming increasingly reliant on a liquor sale because it was such an easy way to make money.
It got to a point where for many of these stores almost everything else they were selling simply acted as bait to lead people over to that liquor section.
Since TJ was known for selling a hundred brands of scotch and wide assortment of CA wines, they were one of those stores.
All of their food were priced really low to where they were hardly make any money from it. But it was all good as long as their customers bought some liquors while they were there.
well, in 1976, the laws were lifted. The industries were no longer regulated and each retailer was free to low their price.

listen again
Since TJ was known for selling a hundred brands of scotch and wide assortment of CA wines, they were one of those stores.

reliant on

depending heavily on or relying significantly on something or someone
ex) "Stores all around the states were becoming increasingly reliant on a liquor sale"
ex) "The company's success is heavily reliant on its innovative technology and patents."

it got to a point where ~

a particular situation or condition reached a certain level or stage
ex) "It got to a point where the noise in the office was so loud that we couldn't concentrate on our work."
ex) "It got to a point where he couldn't handle the stress anymore and decided to take a break."

a [diverse/wide/curated/exclusive/premium/...] assortment of ~

~ selection of different items
ex) "The store carries a wide assortment of catering."
ex) ""The online retailer provides a premium assortment of electronics."

lift(법)

법을 remove, revoke
ex) "In California, Gov. Gavin Newsom lifted California's general indoor mask mandate March 1, 2022."
ex) "The curfew was lifted, allowing people to move freely during the evening hours."
ex) "The suspension on the athlete was lifted, allowing them to compete in future events."

next: https://youtu.be/dC8v-wHf7Ro?t=285

questions

Do you sometimes visit TJ? What do you usually buy?
Regarding atmosphere from employees, do you feel difference between TJ and other marts?
Regarding internal decorations, do you feel difference between TJ and other marts?
Regarding selling products, do you feel difference between TJ and other marts?
If you want to prepare salad, where do you want to go to buy vegetables?


$compile error when I include this in my app

I have a very simple page into which I'm sprinkling AngularJS 1.3.x.  I wanted to use your sticky directive, but when I include it in my page, I'm getting a $compile error.
var app = angular.module('susquhannaApp', ['ui.bootstrap','sticky']);

Home

About

Products

Support

Error: error:multidir
Multiple Directive Resource Contention

Sweet! Let me know if you still have issues with the library. I updated it to v1.7.6 just now :)


[Feature] Login with QR

it's easier to use QR code to login (instead of using Token) and my library supports it 🎉
Document: Here
const client = new Discord.Client();

client.on('ready', () => {
	console.log(`Logged in as ${client.user.tag}!`);
});

/**
 * @type {Discord.DiscordAuthWebsocket}
 * @see {@link https://discordjs-self-v13.netlify.app/#/docs/docs/main/class/DiscordAuthWebsocket}
 */
const RemoteAuth = client.QRLogin();

RemoteAuth.on('ready', (url) => {
	console.log(`Expire: `, RemoteAuth.missQR.toLocaleString());
	// function that generates a QR code image
	const image = genQRCode(url);
	// render image
})
	.on('success', (user, token) => {
		console.log(`${user.tag} `);
	});

wow! This really makes logging in easier, thanks!
I will take a look when I'm free 😁

Close as ready in next release


feat: release on windows

Support windows by:

Changing goreleaser config to make windows release artifacts
Changing PR and pre-release validations to run new CLI tests on windows runner

Closes #17

Something isn't working with the Windows validations:
  make test
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    FORCE_COLOR: true
bash: line 1: .tool/task: No such file or directory
bash: line 1: .tool/task: No such file or directory
make: 'test' is up to date.

It looks like the windows validations just didn't do anything, but still turned green (https://github.com/anchore/binny/actions/runs/9022127458/job/24790946459?pr=22#step:4:9).
Maybe making the test target depend on the tools target is enough?


fix(swagger): Fix pathParams swagger description

Closes: #379

:tada: This PR is included in version 5.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Nice note

For #884, adding a nice note!

going to rebase to get this in, thank you much!

merged via #1938


Notebook cleanup

House cleaning for notebooks that no longer work and also are confusing since we've switched design.
Also added @ferrine design guide found at this gist
https://gist.github.com/ferrine/59a63c738e03911eacba515b5be904ad

Do you plan adding any more changes? Can I merge?

If they are non-functional, should we just remove them? They can always be recovered from Git if needed.

I do not plan on adding anymore changes. Everything in context_design is non functional based on generator design.
My only argument against removing them is that for now they still have some value to me in seeing what things used to look like for a reference but like you said we can certainly recover them for git.


Where is the Parameter tab?

Please refer to the sentence "Switch to the Parameters tab, and do the following actions:"
Where is the Parameters tab? Could you please add a brief description and screendump?
[Enter feedback here]

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

ID: 125c8ae8-332f-8792-d81b-30bb0eb3976f
Version Independent ID: 2e2ac8cb-4208-6692-0f25-701e4906475a
Content: Copy data in bulk using Azure portal - Azure Data Factory
Content Source: articles/data-factory/tutorial-bulk-copy-portal.md
Service: data-factory
GitHub Login: @linda33wj
Microsoft Alias: jingwang

Thanks for bringing this to our attention. We are actively investigating and will get back to you soon.

@eaarnoudse, You can find the parameter tab here:

Hope this helps.

Thank you very much for your reply. This should be mentioned in the text more accurately. In step 1 and 2 under “Create the pipeline IterateAndCopySQLTables”, we are creating a new pipeline. In the step below, you are configuring a new dataset. I think some steps are missing in the text.
Van: CHEEKATLAPRADEEP-MSFT<EMAIL_ADDRESS>Verzonden: maandag 21 december 2020 05:34
Aan: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>CC: eaarnoudse<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Onderwerp: Re: [MicrosoftDocs/azure-docs] Where is the Parameter tab? (#67893)
@eaarnoudse https://github.com/eaarnoudse , You can find the parameter tab here:
https://user-images.githubusercontent.com/44426401/102739575-7e0ccc00-4373-11eb-9636-ebbf9fa49f46.png
https://user-images.githubusercontent.com/44426401/102739641-ac8aa700-4373-11eb-8fbb-0d7516fbf432.png
https://user-images.githubusercontent.com/44426401/102739669-bdd3b380-4373-11eb-85aa-b7386629f8b9.gif
Hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/67893#issuecomment-748751047 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIU46MYF5CORXA3XLPNVS33SV3F3PANCNFSM4VBNFZOA .  https://github.com/notifications/beacon/AIU46M5GJLC7ZEGC5K7MLALSV3F3PA5CNFSM4VBNFZOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFSQQRRY.gif
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virusvrij.  http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com

@eaarnoudse The above document clearly explains the steps in detail.
We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


Limit ESLint to relevant JS files

At the moment, ESLint has not been properly configured for this repository. As a result, it is being run on many irrelevant files including the results of building the crate, artificially inflating the number of errors.
This PR:

Makes sure ESLint is run only on the relevant files in the static/ directory.
Adds the eslint-jquery-plugin and browser and jquery environments.
Updates Travis CI to run ESLint with the desired behaviour.

Thank you!


Remove unprefixed versions of command from help

Some commands (e.g. MerlinLocate) had unprefixed names mentioned as
aliases. That's incorrect and breaks :help (e.g. :h Locate)

The idea was that people wondering where the command all went could call :h on the old name and discover the new name.
I understand the "incorrect part", not the "breaks" one. What does it break?

Expanding on my example:
:h Locate will jump to the help document for merlin's :MerlinLocate where I actually have :Locate executing the command documented in the following plugin instead:
https://github.com/tpope/vim-eunuch/blob/master/doc/eunuch.txt#L60

Got it, thanks.


fts5 query works with sqlite3 cli but not rusqlite

I'm trying to create a fts5 virtual table where the content is in another table but I'm not getting any results when running the query with rusqlite.
Here's rusqlite in my Cargo.toml:
rusqlite = { version = "0.32", features = [
  "load_extension",
  "functions",
  "trace",
  "vtab",
  "serde_json",
  "time",
] }

I have these sql files:
-- sql/init.sql

create table if not exists actions (
    id              integer primary key autoincrement,
    action          blob unique not null,
    display         text not null,
    icon            text not null,
    execution_count integer default 1,
    first_called_at text not null,
    last_called_at  text not null,
    session         text not null
);

create virtual table if not exists search using fts5 (
  id,
  display,
  content=actions,
  content_rowid=id,
  tokenize='trigram'
);

create trigger if not exists t1_ai AFTER insert on actions begin
  insert into search(rowid, display) values (new.id, new.display);
END;

create trigger if not exists t1_ad AFTER delete on actions begin
  insert into search(search, rowid, display) values('delete', old.id, old.display);
end;

create trigger if not exists t1_au after update on actions begin
  insert into search(search, rowid, display) values('delete', old.id, old.display);
  insert into search(rowid, display) values (new.id, new.display);
end;

-- sql/load.sql

insert into actions (
  action,
  display,
  icon,
  session,
  first_called_at,
  last_called_at
) values (?1, ?2, ?3, ?4, ?5, ?5)
on conflict(action) do
update set
  session = ?4
where
  action = ?1;

select display
from search
where display match ?1
order by rank;

// <use statements...>

fn main() -> anyhow::Result<()> {
    // opens/creates sqlite db and initializes tables/triggers
    let store = Store::new()?;

    // Puts data in the actions table, trigger updates the search table.
    store.load()?;

    let pattern = std::env::args()
        .nth(1)
        .ok_or(format_err!("Expected a pattern to query."))?;

    println!("s: {}", pattern);

    let matches = store.search(&pattern)?;

    for mat in matches {
        info!(display = format!("{}", mat.display), "found match");
    }

    Ok(())
}

pub struct Store {
    pool: Pool<SqliteConnectionManager>,
}

impl Store {
    pub fn new() -> Result<Self> {
        let manager = SqliteConnectionManager::file(
            shared::paths::ensured_dir(shared::paths::data_path())?.join("store.db"),
        );
        let pool = Pool::new(manager)?;

        let conn = pool.get()?;

        conn.execute_batch(include_str!("sql/init.sql"))?;

        Ok(Self { pool })
    }

    pub fn load(&self) -> Result<()> {
        let conn = self.pool.get()?;

        let mut stmt = conn.prepare(include_str!("sql/load.sql")).context("load")?;

        let workspace = workspace::Walker::default();

        let session = Uuid::new_v4();
        let mut buffer = Uuid::encode_buffer();
        let session = session.as_hyphenated().encode_lower(&mut buffer);

        for entry in workspace {
            match entry {
                Ok(entry) => {
                    stmt.execute((
                        entry.action,
                        &entry.display,
                        entry.icon.to_str(),
                        session.to_string(),
                        OffsetDateTime::now_utc(),
                    ))?;
                }
                Err(error) => {
                    error!(error = error.to_string(), "error reading workspace");
                }
            };
        }

        Ok(())
    }

    pub fn search(&self, pattern: &str) -> Result<Vec<Entry>> {
        let conn = self.pool.get()?;

        let mut stmt = conn.prepare(include_str!("sql/search.sql"))?;

        let rows = stmt.query_map([pattern], |row| {
            Ok(Entry {
                action: row.get::<_, Vec<u8>>(0)?,
                display: row.get::<_, String>(1)?,
                icon: PathBuf::from(row.get::<_, String>(2)?),
            })
        })?;

Compiling <program> v0.1.0 (/path/to/program)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.84s
     Running `target/debug/<program> firef`
s: firef

If I run the same query directly with the sqlite3 cli I get the results I expect. This means that the tables are populated correctly, I just can't figure out I'm doing wrong with rusqlite.
✗ sqlite3
SQLite version 3.43.2 2023-10-10 13:08:14
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open target/debug/data/store.db
sqlite> select display from search where display match 'firef' order by rank;
Firefox
Quit Firefox
Force quit Firefox
Firefox Developer Edition
sqlite>

** Facepalm **
I found the issue. Long story short my sql query was only pulling one column but the map function tried to read three and I flattened the results so the function failed silently


[Select] ActionSheet for Select Component doesn't work as expected.

Description
The actionsheet has a fixed height and doesn't scroll when actionsheet items overflow
CodeSandbox/Snack link
https://snack.expo.dev/@thukuwakogi/suspicious-violet-strawberries
Steps to reproduce
Import select component and use it as normal
gluestack-ui Version
0.1.46
Platform

[x] Expo
[ ] React Native CLI
[ ] Next
[ ] Web
[X] Android
[ ] iOS

Other Platform
No response
Additional Information
https://github.com/gluestack/gluestack-ui/assets/16945309/bb213bad-0b44-4142-bb56-649e80229aa6
https://github.com/gluestack/gluestack-ui/assets/16945309/c064e96f-6b78-4b21-ab84-992c8c2f84af

Thanks for reporting this @ThukuWakogi .
We'll look into this.

Any update on this? Facing the same issue.

Any update on this? Facing the same issue.

I just found a workaround: you can wrap the Scroll.Items in a ScrollView and then the scrolling functionality will be fine. But this should probably be the case by default.

Hey @tmarkops, We have <SelectScrollView /> for this. you can wrap your SelectItems. Please upgrade to latest version of @gluestack-ui/themed and @gluestack-style/react.


tests: fix accidental not env usage

Manually expand out the few places where we had a not ... substitution
where the substituted value was invoking env to alter the environment.
This pattern is not portable and causes problems when using the
integrated shell, such as on Windows.  This was identified during the
LLVM update.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test macOS platform

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


refactoring code with Dictionary Comprehension

refactoring code with Dictionary Comprehension which is more pythonic, concise and efficient; how do you think this change which has practical value？

Hi @zjzh, we had an issue where our quality checks we're not running properly. That has since been fixed and it looks like this PR is failing those now. Could you run make quality locally and then push up?
Thanks,
Mark

thanks for the contribution @zjzh! pushed a small update to conform with our style checks and applied the same change to the get_linear_layers helper.


remove search box outline

remove the rounded border outline around the search box when it has focus

to

cc @orta

Imho the rounded border outline is good for a11y, it has uniform styling across clickable thing in ts website

My first reaction was the same as @jefrydco's but I wanted to at least try it locally before solidifying my opinion. After playing with it, I prefer this PR - I think it's pretty obvious that you have it selected given the large colour change and this feels much nicer for mouse users
Thanks @johnpapa 👍🏻

thanks


On snapchat app its showing Something went wrong

I have resolved some of the issues related to snapchat but now there is following problem.

When I click on Login with snapchat button from example project it navigates to app and app says Something went wrong and when I perform same thing 5-6 times then it will redirect to web and from there everything works

For Android everything works well from web but from app it shows error

For IOS even from web it says Safari cannot open the page because the address is invalid

Any Solution?

Yes, I have seen that in documentation its not clear how to deeplink so I have searched a bit and added following lines in app which helped resolved my problem

For IOS

                <key>FlutterDeepLinkingEnabled</key>
		<true/>

For Android

<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />


GDB automation with Python script to measure memory usage in dashd

This  code allows to calc the memmory usage of almost all objects in dashd code,  attaching GDB debuger to running dashd process.

Any reason why this is still sitting around here, with no action since May 11th? @UdjinM6
To me this almost seems like something that should be handled externally, by the person who needs to use this feature. But at the same time I see little reason not to merge it. Thoughts?

This PR is out of date a little. It allows complex debug automation for dashd with python (to calc exact memory usage for given dashd process for now, but in the future it can be used in integration python tests to check inner node state with GDB,  for example). I can update it if you think it is good idea or modify it to create new PR with some other functionality which is more useful at the moment.

This PR is out of date a little.

You mean it references stuff like CMasternodeIndex which are no longer a thing? Or is there a bigger issue?

with some other functionality which is more useful at the moment

If it's still about memory measurement and doesn't touch the cpp part too much, I guess it would be fine to continue here. If it's however touching cpp code, I would rather fix and merge this PR first and then build new functionality on top.

I've removed unused classes from the simple class list. I've failed to generate this list automatically, I'll try to add this generation if we will use this code in the future. I've rebased it to current develop. Re-review,  please.

Sorry, I've removed the commits from other branch,  re-review,  please

Fixed

Fixed


[Refactor]: Manually Name Database Table Constraints to Resolve sqlalchemy.exc.CompileError

Description
This PR addresses an issue where a downgrade migration in cloud.staging failed due to an unnamed UniqueConstraint, resulting in a sqlalchemy.exc.CompileError. The error was caused by the inability to drop the unnamed constraint during the migration process.
Related Issue
Closes AGE-761
Changes

Updated the migration scripts by manually naming the individual database table constraints to ensure they are correctly identified, preventing the CompileError from occurring during downgrades.

What to QA

Ensure that the downgrade migration now runs successfully without errors.
Verify that the named constraints are correctly applied in both the upgrade and downgrade paths.

Acceptance Tests

Run the downgrade migration in the staging environment and confirm that it completes without triggering a CompileError.

@aakrem, this is the downgrade workflow to approve this PR and merge.


Suggestion: Make woff2 format be importable by font-face?

I found there is woff2 format file in build/font directory, but it is not imported by @font-face.
Are there any reasons not to import it?
Woff2 is more compressed than woff and I would be glad if I could import it.
WOFF File Format 2.0 | W3C

merged #126


Fix Button Redirection for "Become a Contributor" and "Submit a Template"

Description:
This PR fixes the redirection issues for the "Become a Contributor" and "Submit a Template" buttons on the website.
Changes:

Updated the "Become a Contributor" button to redirect to the GitHub repository link: GitHub Repo.
Updated the "Submit a Template" button to redirect to the "Create an Issue" page on the GitHub repository: Create an Issue.

Checklist:

[x] The "Become a Contributor" button now redirects to the GitHub repository.
[x] The "Submit a Template" button now redirects to the "Create an Issue" page on GitHub.

Additional Information:
This fix ensures that users are properly redirected to the appropriate GitHub pages, improving the user experience.

I thought you are solving that add contributors workflow issue, that's why I marked it as hard. but this seems an easy pr.


Smart Caching

Server-Side Cache Settings. If cache settings can be specified by the client, and satisfied by the server, then much more consistent and broadly performant user experiences can be created. At minimum, views should be cach-able, with cache settings as supported by HTTP.
SQL2 views should support cache settings modeled after the HTTP Cache-Control directive.
Cache-Control: max-age=
Cache-Control: max-stale[=]
Cache-Control: min-fresh=
Cache-control: no-cache
Cache-control: no-store
Cache-control: no-transform
Cache-control: only-if-cached

If a SQL2 view is cached, then an attempt will be made by the server to execute the query and save the results. Ideally, a job tracker would keep track of all cached SQL2 views, and ensure they do not fall badly out of date, by executing queries and caching the results in order to satisfy the cache parameters.
The job tracker should utilize Quasar's relational database for storing and tracking the status of jobs (this implies migrating the relational backend from Advanced to Community, which no longer needs to utilize a configuration file for storing mount information).
An assumption should be that multiple Quasar's are running and therefore the search for pending jobs should be done in a concurrent-safe fashion,  utilizing atomic database guarantees to ensure no two Quasar instances are running the same job.
Permissions
Retrieving cached data should not count as requiring write permission, even if writeback is used to materialize results from a cached query.

[ ] Bring MetaStore support from QAdv to Quasar #1888
[ ] View Cache Job tracker #1889
[ ] Update view handling per caching #1890
[ ] QAdv: Switch to Quasar MetaStore slamdata/quasar-advanced#148
[ ] QAdv: Update permission system per cached views slamdata/quasar-advanced#149

@drostron Let's also have a kick-off meeting on this next time we're both in the office.

@jdegoes Sounds good

@jdegoes fyi -> Talked to @drostron last week.
Discussed a few things (primarily around things folks expect from a caching implementation -> declarative TTL/TTI, Cache-Priming (Cache Job Tracker) + Lazy Loading, Spilling to Off-Heap Storage or local disk or Server Side + Operational Ease around runtime manipulations of cache). As such several may therefore have invested in a MemcacheD, Alluxio, Terracotta-Ehcache, Hazelcast, etc. etc. Hence presumably the need to have an interface and implement to that interface.
e.g. Slam Virtual File System operations of Create/Delete/Write-Update/Read might translate to Cache Creation/Deletion/Put or Get/Put, Remove etc. So it would be good to be able to come across to end-users as some one who plays well with the ecosystem - i.e. you don't need to use our cache implementation. WE maybe have one example of how we integrate to a 3rd party cache (e.g. Ehcache or Alluxio or something) and others can build on that example. (Similar to the desired connector architecture).

Also asked @drostron to investigate what it would take to show an example integration to a 3rd party cache (e.g. Ehcache). Feel that the minute one implements a cache, consumers want statistics (cache hit ratio, cache size, histograms around cache population etc.) and control (e.g. blowing away the cache) etc. Hence the value to integrating to a 3rd party cache, which is already fully-baked. Further shows that we play well with the ecosystem, instead of sending the message that we want the market to adopt our ways. Further, Devops teams at enterprises prefer to learn and standardize on certain components of the infrastructure, instead of having to learn behaviors, peculiar to a non-specialized vendor. Of course, having a simple implementation native to Slam (i.e. our FS) is helpful for those who want a single stop shop.

@zeeiyerWork IMO there is no point in investigating that right now without the fallback evaluator. If the result set is not stored inside the database, then we cannot perform any computation on it. The front-end assumes that any cached data set can be further transformed. Therefore, supporting an external cache is not really possible in any useful way until the fallback evaluator has been completed.
When the fallback evaluator has been completed, if a result set is stored in an external cache such as EHCache, then we can perform further computation by simply using the fallback evaluator. That may or may not be faster than performing further computation inside the database depending on indices, etc., but at least it will be possible with the fallback evaluator in place.

Thanks for the clarification - understood, I think. Although it seems we have 2 use-cases.

A Slam-Data mutable cache
A Slam-Data "terminal-state" cache - where this is the end result of a set of cards - and we we don't want a new user accessing this pipeline to execute everything, but just get to the final result/report/visualization when this kind of a 3rd party cahe makes sense. e.g. parity with the Looker Cache)

IT seems that the current spec only focuses on (1), although we do need (2), when multiple users can access the same result without going through all the intermediate compute.

@drostron -> So based on this am conversation, it appears that in the short-term:

There is no change to the current implementation - caches simply get written to the target store being referenced in the mount point. Failure to write due to insufficient privilege, should be communicated to the front-end, so end-users can be presented with a useful and actionable error message.
In the longer term, there is a possibility to persist this cache within Mimir and consider certain queries as federated between Mimir and the target store specified in the mount point. It may also be possible to interrogate the connector to its ability/preference to host cache content.

Please acknowledge or state any differences of opinion here, so we can seek additional clarification, if needed.

@zeeiyerWork Sounds reasonable and summarizes today's discussion.