[slack] No branch or commit name

Q
A

Issue Type
Bug

Deployer Version
6.4.3

Recipes Version
6.2.1

Local Machine OS
windows 10

Remote Machine OS
centos 7 on production and ubuntu 18 on deployment

Description
In the sent message in the slak there is no name of the branch or commit
Steps to reproduce
php artisan deploy --revision=$CI_COMMIT_SHA

exactly the same problem with --tag

@andrey-helldar found a work around for this. In your deploy.php file, add the following
set('revision', function() {
    return runLocally('git rev-parse HEAD');
});
set('slack_text', 'Deploying `{{revision}}` to *{{stage}}*');

for the case of the tag,
set('tag', function() {
    return runLocally('git describe --tags');
});
set('slack_text', 'Deploying `{{tag}}` to *{{stage}}*');


Mouse coordinates wrapper

An object that you can put something else inside (like an image or a plot) that sends the mouse coordinates on click to the bound variable.

Woah, this would be crazy useful! Any updates on this?


Smoking Status Profile

US Core smoking status should at least have a value from this list: https://loinc.org/LL2201-3

Sorry, that's old - looks like the current preferred value set is SNMOED at https://vsac.nlm.nih.gov/valueset/2.16.840.1.1138<IP_ADDRESS>.38/expansion


devspace dev should print the last X log lines before streaming logs

Is your feature request related to a problem?
When running devspace dev, the log stream only shows new messages. However, it is often important for users to see the initial log output during development. For our docs which use docusaurus, for example, the user does not know which port the application listens on which is normally printed on the terminal if the users would start the application without devspace.
Which solution do you suggest?
Showing the last X (maybe 200) log lines and then attaching to the containers for streaming the logs.
Which alternative solutions exist?
Printing the entire log => could be really long, in case the deploy step has been skipped (frequent use case)
Additional context

/kind feature

Implemented in v4


Add Apache 2 license badge and travis badge.

@bjustin-ibm correctly commented out line (for now) in a manner GitHub accepts.


assessmtnt-1

Metric
Value

alert_status
:white_check_mark: OK

bugs
4

code_smells
31

reliability_rating
C (at least 1 Major Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


What do you think ?

@targos
I pushed this on npm in order to modify ml/array to accept typed array (I created a branch for it).
What do you think ?

Sounds good to me, but please use const toString = Object.prototype.toString explicitly

Otherwise, the function cannot be optimized because it has to lookup the toString method on each call.


Short lesson with repo2docker only for CodeRefinery workshop

It is a nice lesson but cannot be taught in 1 or 2 hours.
Second time I see this lesson (last time was in Goteborg) and I have the same feeling. We have it at the workshop (everybody is tired and we have no more than 1 hour for this lesson, including exercises) but do not have a clear idea on how this tool fits into the Software development framework.
I suggest we make a 1/1.5 hour lesson:

Teach this lesson after Reproducible Research or documentation (on Wednesday morning) and show how to use jupyter notebooks to document/publish worflows/examples using repo2docker (binder)
Have one single exercise where using binder is the main objective.

We could also add links to examples such as (these are from Geosciences but you probably have good examples too!):

https://github.com/binder-examples
https://github.com/OpenGeoVis/omfvista
https://github.com/K3D-tools/K3D-jupyter
https://github.com/jupyter-widgets/ipyleaflet
https://github.com/pangeo-data/pangeo-example-notebooks

Keep a separate 1/2 day lesson on Jupyter ecosystem we can use as standalone lesson (we would use it in Oslo for 1 day workshop).
What do you think?

I have the same feeling watching this lesson a couple of times and I like the suggestion..

Same feeling still. I think that the binder part may be for me the most important outcome and I will focus on that. I will teach this lesson coming Tuesday and maybe manage to readjust the lesson until then.

I think this part could be removed: https://coderefinery.github.io/jupyter/05-exercises/
It's interesting, but it's more about Python than it is about Jupyter. All in there is nice to have but IMO not a must have. If I was a beginner and to be convinced about Jupyter and perhaps a beginner in Python, this part would be overwhelming for me. We often do not have really the time for this part. If I would remove one part, I would remove this part.
Maybe the one part I would keep is the widget example.

Instead of showing all the cool things that can be done in Python and Jupyter, for me the goal is more to convince whether and how to move own output->data->plot scripts from the harddrive and ad-hoc scripts to Jupyter+Binder. That's the learning outcome for me. I might spin-off a side-repo where I condense the lesson.

what about moving selected parts of this lesson into the reproducibility lesson? we can then retire the jupyter lesson from regular workshops but keep it for special occasion

I don't think we should retire the Jupyter lesson. I think it is still relevant. The Binder part is new to most. But it could become part of the reproducibility lesson. We can also keep the exercises as optional for special occasions.

binder and repo2docker are more general than jupyter. I think it would be better to discuss it during the reproducibilty lesson. That's something we can discuss during our first Open House!

Moving this good suggestion to reproducibility lesson. Which doesn't mean it needs to be implemented immediately. It has been dormant here for 1.5 years.


Bundle causes SystemJS runtime exception

I've upgraded all my aurelia libs and the bundling appears to have stopped working:
Uncaught (in promise) Error: Cannot read property 'createDefine' of undefined
	Evaluating http://localhost:52383/bundle-vendor-439d38ee42.js
	Error loading http://localhost:52383/bundle-vendor-439d38ee42.js
	Error loading<EMAIL_ADDRESS>    at t (http://localhost:52383/jspm_packages/system.js:4:61)
    at g (http://localhost:52383/jspm_packages/system.js:4:9747)
    at http://localhost:52383/jspm_packages/system.js:4:8054

Using JSPM 0.16.30 with SystemJS 0.19.23. I did pick up something similar here: https://github.com/systemjs/systemjs/issues/1127
Not sure if / how it relates to aurelia-bundler?

As a workaround install<EMAIL_ADDRESS>locally. In your project
npm install -D<EMAIL_ADDRESS>
Then:
jspm dl-loader

Yip, thanks @Gheoan, I've already done that. Just wanted to raise the issue nonetheless so that Aurelia guys are made aware of it.

@ahmedshuhel It seems system.js/jspm breaking changes will never end..... Please look into this when you can. Thanks for your hard work.

@ahmedshuhel Can you look at this please?

@stefan505 Is this still an issue?

I believe this is not an issue anymore. Closing it. @stefan505 If you still are facing this problem, please create a new issue with a github repo that reproduces this bug/behavior. Thank you.


how to read or delete appointment as an Attendee

Hello,
My scenario is to do GET and DELETE (from his calendar to deleted items folder) appointment as an attendee.

Using attendee credentials, I created the service
Now using that service and item Id, i'm binding the appointment
While binding, it is throwing following error :
microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: Access is denied. Check credentials and try again.

Is there any way to go about this issue?

That should not be possible. As creation / deletion in ones calendar is restricted to the persons explicitly allowed to do so. If you want to cancel a meeting as an attendee you are able to decline that you are part of that appointment. If selected, the owner will be notified about this.

Hi @serious6 ,
The issue here is,
it is throwing following error : microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: while doing bind of appointment.
Suppose as an attendee if I want to accept or decline a meeting, what I will do is:
Appointment appointment = Appointment.Bind(service, new ItemId("AAMkA="));
appointment.accept(true);
But, it throws error on first line only.
Regards,
Pranjal

you need to connect to the attendees calendar and accept that appointment there. It will then have another uniqueId. As said the attendee is not allowed to manipulate the owners calendar and items if no impersonation or delegated access is configured.

thanks a lot @serious6 .


Return a Result on WidgetExt::activate_action instead of a bool.

According to C API reference, it would only return false if the action name doesn't exist. User might want it to panic, or be told by the compiler

Do you want to provide a PR? You can configure this in the Gir.toml with bool_return_is_error

Do you want to provide a PR? You can configure this in the Gir.toml with bool_return_is_error

sure


Google Sign-In for iOS crash

Describe the bug
After the Google page was closed, Google crashed
Environment
All versions of iOS will
The currently accessed version is： 'GoogleSignIn', '5.0.2'
Additional context
Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x2bdc objc_release_x8 + 16
1  libsystem_blocks.dylib         0x25d4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)3>(unsigned int, unsigned char*) + 68
2  libsystem_blocks.dylib         0x2524 HelperBase::destroyBlock(Block_layout*, bool, unsigned char*) + 160
3  libsystem_blocks.dylib         0x2450 _call_dispose_helpers_excp + 72
4  libsystem_blocks.dylib         0x23ec _Block_release + 252
5  libsystem_blocks.dylib         0x22b4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)4>(unsigned int, unsigned char*) + 68
6  libsystem_blocks.dylib         0x2538 HelperBase::destroyBlock(Block_layout*, bool, unsigned char*) + 180
7  libsystem_blocks.dylib         0x2450 _call_dispose_helpers_excp + 72
8  libsystem_blocks.dylib         0x23ec _Block_release + 252
9  libsystem_blocks.dylib         0x22b4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)4>(unsigned int, unsigned char*) + 68
10 libsystem_blocks.dylib         0x2538 HelperBase::destroyBlock(Block_layout*, bool, unsigned char*) + 180
11 libsystem_blocks.dylib         0x2450 _call_dispose_helpers_excp + 72
12 libsystem_blocks.dylib         0x23ec _Block_release + 252
13 UIKitCore                      0x12920c -[UIPresentationController transitionDidFinish:] + 1420
14 UIKitCore                      0x6e600c -[_UICurrentContextPresentationController transitionDidFinish:] + 44
15 UIKitCore                      0x6e2b6c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.114 + 320
16 UIKitCore                      0x128bec -[_UIViewControllerTransitionContext completeTransition:] + 116
17 UIKitCore                      0x29a934 -[UITransitionView notifyDidCompleteTransition:] + 180
18 UIKitCore                      0x29a5ec -[UITransitionView _didCompleteTransition:] + 832
19 UIKitCore                      0x853f0 UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK + 36
20 UIKitCore                      0x84b88 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 624
21 UIKitCore                      0x841f4 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 436
22 UIKitCore                      0x66704 -[UIViewAnimationState animationDidStop:finished:] + 192
23 UIKitCore                      0x66774 -[UIViewAnimationState animationDidStop:finished:] + 304
24 QuartzCore                     0x7198c run_animation_callbacks(void*) + 132
25 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
26 libdispatch.dylib              0x125a4 _dispatch_main_queue_drain + 988
27 libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
28 CoreFoundation                 0x3751c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
29 CoreFoundation                 0x34218 __CFRunLoopRun + 1996
30 CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
31 GraphicsServices               0x34e0 GSEventRunModal + 164
32 UIKitCore                      0x22aedc -[UIApplication _run] + 888
33 UIKitCore                      0x22a518 UIApplicationMain + 340
117 | Thu May 09 2024 19:34:33 | **** <LoginVC: 0x14d2ad000 > did Load ****
118 | Thu May 09 2024 19:34:33 | **** <SFAuthenticationViewController: 0x14c1d8000 > will disappear ****
119 | Thu May 09 2024 19:34:33 | **** <SFBrowserRemoteViewController: 0x14c07ec00 > will disappear ****
120 | Thu May 09 2024 19:34:33 | **** <UINavigationController: 0x14d369c00 > will Appear ****
121 | Thu May 09 2024 19:34:33  | **** <LoginVC: 0x14d2ad000 > will Appear ****
122 | Thu May 09 2024 19:34:33  | **** <UINavigationController: 0x14d369c00 > did Appear ****
123 | Thu May 09 2024 19:34:33  | **** <LoginVC: 0x14d2ad000 > did Appear ****
124 | Thu May 09 2024 19:34:33  | **** <SFAuthenticationViewController: 0x14c1d8000 > did disappear ****
125 | Thu May 09 2024 19:34:33  | **** <SFBrowserRemoteViewController: 0x14c07ec00 > did disappear ****
128 | Thu May 09 2024 19:34:35  | **** <UINavigationController: 0x14d369c00 > will disappear ****
129 | Thu May 09 2024 19:34:35  | **** <LoginVC: 0x14d2ad000 > will disappear ****
130 | Thu May 09 2024 19:34:35  | **** <SFAuthenticationViewController: 0x14c1d8000 > will Appear ****
131 | Thu May 09 2024 19:34:35  | **** <SFBrowserRemoteViewController: 0x14c07ec00 > will Appear ****
133 | Thu May 09 2024 19:34:35 | **** <SFBrowserRemoteViewController: 0x14f826a00 > did Load ****
134 | Thu May 09 2024 19:34:36 | **** <SFAuthenticationViewController: 0x14c1d8000 > did Appear ****
135 | Thu May 09 2024 19:34:36 | **** <SFBrowserRemoteViewController: 0x14c07ec00 > did Appear ****
136 | Thu May 09 2024 19:34:36 | **** <UINavigationController: 0x14d369c00 > did disappear ****
137 | Thu May 09 2024 19:34:36 | **** <LoginVC: 0x14d2ad000 > did disappear ****

One of the must-select scenes:

Enter the login page of xxx app, click Google login, and pull up the Google login page;
Call up xxx app through deeplink, then open a new login page, click Google login,
Crash


docs: revamp to new google style strings for RTD: weights_utils, yolo

[ ] weights_utils
[ ] yolo (node only)

Closed with #341 #342


Is there a plan to support opensora and opensora plan models

We found that there are two open-soras in China. Both of them are not interpreted in huggingface diffusers. We are not sure if they really be applied by users worldwide. We will support them if they are in the diffusers.

I see, thanks. Is there any technical difficulty supporting Opensora related models, as they are both 3d VAEs similar to Cogvideo models, I think it should be very similar? Thanks a lot for your reply!

I believe there is no technical difficulty. xDiT has supports Latte. As far as I know, OpenSoras build their model architecture based on Latte? I am not sure. If you would like to apply xDiT on OpenSoras, we can help you on this topic.

Thanks a lot, I will first try the CogVideoX and see if everything works.


SQL query tuning examples - before and after

We should add before and after examples for sql query tuning, based on our SEs experiences.
Resource: https://docs.google.com/document/d/14GoP7lVxudRx7Mt4yMa57ei3dM50FmveGmp2XAvc_X8/edit#

We have closed this issue because it is more than 3 years
old. If this issue is still relevant, please add a comment and reopen
the issue. Thank you for your contribution to CockroachDB docs!


SSL Support

Enable SSL support on the receiver side and provide application configuration options to allow fine-grained security.
Attention must be paid to:

Connection handling and failures (timeouts, connection drops) with respect to the underlying SSL implementation
Efficiency of operation

+1

Yes! Check the refactor branch, I'm almost done implementing the SSL driver

Oh nice! Will wait until it gets merged in then :)

what does it miss as of today? do you need any help?

@benoitc not much, life caught up, I'm finishing up the SSL implementation today. I wanted to implement #62 before releasing a new major version but I'll just release SSL + the refactor as 1.5 and then 2.0 with #62 implemented. Thanks for offering :)

@priestjim thanks!


using fetch/copy to distribute munge.key

This PR adds the fetch/copy method to distribute the munge.key and the slurm.conf to the worker nodes. It removes the rsync approach.

@cehbrecht , I'll test it out :-)


Update README with installation and build instructions.

Are these installation instructions ok, or should there be something more?

looks ok and easy!


[sidelining] Fix known issue with intermediate harmlessness in longrun tests

Gets the intermediate harmlessness check to pass for the longrun tests, resolving the known issue with these tests.
Conceptually, we want to ensure at the end of our backchaining that:

The segment.necessary_add_effects should be set correctly.
We should be able to find a best-matching PNAD (unification) for this segment.
This segment should be in the particular PNAD’s datastore.

We weren't previously explicitly checking this last condition (though it is important only rarely), which leads to intermediate harmlessness violations that get fixed at later iterations of the outer loop.
We now explicitly check this condition, and if it's false, we try recomputing datastores to see if that on its own fixes the problem. If not, we spawn a new PNAD. Here's a diagram of the logic:

It's possible we can accomplish the same thing in a nicer, more integrated way that makes the code cleaner/easier to understand.
Supercloud results (NOTE: these are slightly outdated - currently re-running with latest changes):
Git commit hashes seen in results/:
407d3b088bb7205b0342916cb9d400f0623a8e47

AGGREGATED DATA OVER SEEDS:
                                                  NUM_TRAIN_TASKS     NUM_SOLVED AVG_NUM_PREDS AVG_TEST_TIME  AVG_NODES_CREATED   LEARNING_TIME  NUM_SEEDS
EXPERIMENT_ID
painting_backchaining_10demo                         10.00 (0.00)   41.90 (3.91)  14.00 (0.00)   0.50 (0.23)   1995.81 (935.53)    56.31 (4.61)         10
painting_backchaining_25demo                         25.00 (0.00)   49.20 (1.17)  14.00 (0.00)   0.39 (0.09)   2378.04 (829.09)    56.47 (2.45)         10
painting_backchaining_50demo                         50.00 (0.00)   49.40 (0.66)  14.00 (0.00)   0.45 (0.14)  2748.98 (1084.43)   67.65 (11.26)         10
painting_backchaining_5demo                           5.00 (0.00)   12.10 (8.77)  14.00 (0.00)   1.21 (0.89)   1228.41 (865.24)    56.78 (7.48)         10
repeated_nextto_painting_backchaining_10demo         10.00 (0.00)   34.40 (9.93)  18.00 (0.00)   1.34 (0.55)  6123.66 (6508.13)    87.36 (3.45)         10
repeated_nextto_painting_backchaining_25demo         25.00 (0.00)   45.00 (3.71)  18.00 (0.00)   0.81 (0.24)  2539.87 (2730.84)    94.10 (3.39)         10
repeated_nextto_painting_backchaining_50demo         50.00 (0.00)   49.50 (0.67)  18.00 (0.00)   0.81 (0.11)   1834.52 (417.21)  107.78 (12.42)         10
repeated_nextto_painting_backchaining_5demo           5.00 (0.00)  20.10 (10.06)  18.00 (0.00)   1.52 (0.97)  7732.90 (8382.27)    86.62 (7.60)         10
repeated_nextto_single_option_backchaining_10demo    10.00 (0.00)   50.00 (0.00)   3.00 (0.00)   0.04 (0.01)       88.50 (2.35)    21.07 (1.44)         10
repeated_nextto_single_option_backchaining_25demo    25.00 (0.00)   50.00 (0.00)   3.00 (0.00)   0.03 (0.00)       88.50 (2.35)    17.72 (1.44)         10
repeated_nextto_single_option_backchaining_50demo    50.00 (0.00)   50.00 (0.00)   3.00 (0.00)   0.03 (0.00)       88.50 (2.35)    25.98 (5.94)         10
repeated_nextto_single_option_backchaining_5demo      5.00 (0.00)   49.80 (0.60)   3.00 (0.00)   0.04 (0.01)      83.81 (14.95)    22.95 (2.25)         10
satellites_backchaining_10demo                       10.00 (0.00)   23.30 (7.79)  13.00 (0.00)   2.02 (0.81)  6520.77 (5999.76)    11.67 (1.99)         10
satellites_backchaining_25demo                       25.00 (0.00)   38.60 (5.64)  13.00 (0.00)   1.37 (0.33)  5361.11 (2625.26)    17.59 (4.29)         10
satellites_backchaining_50demo                       50.00 (0.00)   47.30 (1.55)  13.00 (0.00)   1.12 (0.21)  6667.70 (2726.76)   96.01 (72.87)         10
satellites_backchaining_5demo                         5.00 (0.00)    6.90 (9.41)  13.00 (0.00)   1.48 (1.05)  6966.44 (9825.95)    15.50 (7.55)         10
satellites_simple_backchaining_10demo                10.00 (0.00)   33.40 (6.37)  13.00 (0.00)   0.84 (0.45)    399.91 (210.64)    10.38 (0.61)         10
satellites_simple_backchaining_25demo                25.00 (0.00)   44.00 (2.41)  13.00 (0.00)   0.36 (0.13)     288.60 (45.14)    12.06 (2.15)         10
satellites_simple_backchaining_50demo                50.00 (0.00)   49.20 (0.60)  13.00 (0.00)   0.16 (0.08)     278.21 (45.27)   34.92 (23.81)         10
satellites_simple_backchaining_5demo                  5.00 (0.00)    7.50 (8.15)  13.00 (0.00)   1.67 (2.15)    533.91 (345.06)    10.07 (1.09)         10
screws_backchaining_10demo                           10.00 (0.00)   50.00 (0.00)   4.00 (0.00)   0.10 (0.03)      117.32 (1.06)     0.25 (0.03)         10
screws_backchaining_25demo                           25.00 (0.00)   50.00 (0.00)   4.00 (0.00)   0.10 (0.02)      117.32 (1.06)     0.93 (0.77)         10
screws_backchaining_50demo                           50.00 (0.00)   50.00 (0.00)   4.00 (0.00)   0.10 (0.02)      117.32 (1.06)     1.74 (1.06)         10
screws_backchaining_5demo                             5.00 (0.00)   50.00 (0.00)   4.00 (0.00)   0.09 (0.00)      117.32 (1.06)     0.12 (0.01)         10

i haven't looked at this at all yet but i'm immediately in love with the diagram

okay now having actually processed the description... can you explain how it is possible that a segment does not end up in the best matching PNAD's datastore? (also happy to wait for tomorrow's meeting to go through this)


Local server can't find CSS files

While setting up my local Apache server I noticed I wasn't getting any of the CSS. This was because in header.php the CSS is getting included like this:
<link rel="stylesheet" href="<?php echo getRoot(); ?>css/main.css">

and getRoot() returns p5js.org but the directory is named p5.js-website, so it looks in a place that doesn't exist.  Renaming my directory to p5js.org made everything work. This was all on a machine running Ubuntu.
I thought it would be good to include a note about this issue in the set up description.

yes!

Can be closed, since new version of website no longer using php.


Make meta tags easier to include in header

We use our webpage as both a human communication page and to direct go get to the locations of our Go packages. This means that we need to duplicate layouts/partials/header.html for the purposes of injecting the meta tags to let go get and godoc know where to pull sources from. It would be great if there were a way to inject meta tags into that file within the theme without forking it.

This is already possible. You can use head_custom.html -  see https://sourcethemes.com/academic/post/getting-started/#third-party-and-local-scripts-js

That's excellent. Thank you.


Some users can't edit their site

"Hey I tried editing something on my site, still getting the spinning circle"
Site https://the-orange-revolution.npub.pro/
Pubkey: npub18tgpyjxxdu79djz8ph8x8uzntga7w68n5z3fvuv7svy9r93d3grse30e7t
Need to check his relays, setup new npub with those relays, then try to create a website and see how well npub.pro works for such a profile.

There was a server-side bug that probably caused this, I haven't seen other similar reports since then, so we should probably close this.

wasn't able to replicate, agree with closing the issue.


Rename swaggerConfiguration collection to apiDocumentation

Rename Swagger configuration collection to apiDocumentation. Track down any other places where it is used in the code and in the UI and update. The term "Documentation" is more human-friendly and it allows us to later use other documentation approaches than Swagger.
Definition of done

[ ] Find out the current name of the collection.
[ ] Find all the places where the collection name or the name Swagger is used (both in code and on UI).
[ ] Update code and UI to use the more general term Documentation.

@JuusoV Could you take this one?


Home Assistant device_state_attributes notification in logbook

I get the following message in the Home Assistant logbook :
Entity climate.woonkamer (<class 'custom_components.aguaiot.climate.AguaIOTHeatingDevice'>) implements device_state_attributes. Please report it to the custom component author.
It's in the climate.py code.
  @property     def device_state_attributes(self):         """Return the device specific state attributes."""         return {             ATTR_DEVICE_ALARM: self._device.alarms,             ATTR_DEVICE_STATUS: self._device.status,             ATTR_HUMAN_DEVICE_STATUS: self._device.status_translated,             ATTR_SMOKE_TEMP: self._device.gas_temperature,             ATTR_REAL_POWER: self._device.real_power,         }

device_state_attributes has to be changed to extra_state_attributes


Working with DNX Projects

ASP.NET 5->.NET Execution Environment->Working with DNX Projects

Creating a new project
Targeting multiple frameworks
Adding dependencies
Restoring packages
Project lock file
Referencing other projects
Adding package metadata

More stuff to work in:

global.json, project.json and project.lock.json (schema function etc)
Types of references
Project references
Package references
Assembly references
msbuild style (csproj, vbproj) project references

Webroot should probably covered in ASP.NET hosting instead of in this topic

Working with DNX Projects

Creating a new project
Targetting frameworks
Adding dependencies

Package dependencies

Installing using dnu

Assembly references
Project references

Using global.json for project discovery

Refencing non-DNX projects (using VS)
Per framework dependencies

Restoring packages

dnu restore
Project lock file
Specifying an alternative packages location using global.json

Running your app

dnx . run
Using "dnx" to run your app

AppBase

Specifying an entry point in your app
Runtime compilation

Commands (link to commands article)
Building

dnu build
Compilation settings

Configurations (debug/release)

Including/excluding files
Sharing files
Per framework compilation
Specifying required SDK version in global.json

Packaging

dnu pack
Adding package metadata

Publishing

dnu publish
Including the runtime

Scripts

Token substitution

Other notes:

Webroot should be covered in ASP.NET hosting, not in this article
Remove Compilation stub


[DO NOT MERGE] Try to run tests on ci for major engine change

I'm trying to make a major change to the engine and I want to run all the framework tests against that change. I'm going to try to get ci to do this for me
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] 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.
[ ] I followed the breaking change policy and added Data Driven Fixes where supported.
[ ] All existing and new tests are passing.

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

This won't work because it isn't getting source code, but rather downloading pre-built artifacts. Closing


Font change

Is possible to implement font change?

i have the same question !!!

i have the same question !!!

I have plans to add it. If anyone of you add font, create a pull request and I will merge.


Xcode 14 beta 5, iOS 16, various warnings about publishing updates within view updates

If I switch to the XCode beta, I see frequent warnings like this

I'm not familiar enough with the logic to know whether you can just dispatch to main for writes here...
I love the project - thank you :)

ps - if you don't see this in a sample project (e.g. when pushing / popping screens), then let me know and I'll try to generate a minimal example.

@johnpatrickmorgan Have you looked into this much?

I haven't tested yet but I wonder if this message no longer shows in the latest Xcode 14.1 beta: https://www.donnywals.com/xcode-14-publishing-changes-from-within-view-updates-is-not-allowed-this-will-cause-undefined-behavior/.


Cannot use TensorFlow optimizer (e.g. AdamOptimizer) with TF v1.14

System information:

Python version: 3.7.3
TensorFlow installed from: binary
TensorFlow version: 1.14
GPflow installed from: binary
GPflow version: 1.4.1

Just do gpflow.train.AdamOptimizer(), it will throw an error saying that it's not found. Downgrading to TF version 1.13.1 fixes this.

https://stackoverflow.com/questions/56741160/importerror-cannot-import-name-adamoptimizer-in-gpflow


fix fix DCHECK failure of BufferWritable if failed to alloc memory

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Is Postgres compatible?

I think this example also compatible with Postgres. Because they have a plugin called PostGIS (https://postgis.net). It's provides geometry(Point,4326) type and ST_GeomFromWKB as well

https://postgis.net/docs/ST_GeomFromWKB.html
https://postgis.net/docs/postgis_usage.html#Geography_Basics

Hey @giautm, sorry for the delayed response. I didn't see it.

I have tried and update my comment from POINT to geometry(point,4326). It's working well. Need you verify again.


What does the "Office" check box actually do?

Missing information on what the "Office" check box actually does.
Navigate to MS Entra portal > Protection > Authentication methods > Voice call > Configure
[Enter feedback here]

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

ID: cd8e9708-dae9-55bb-4bcf-b2bad768b695
Version Independent ID: e78950ad-e28a-a3be-b526-c77bfba7e82c
Content: Phone authentication methods - Microsoft Entra ID
Content Source: docs/identity/authentication/concept-authentication-phone-options.md
Service: entra-id
Sub-service: authentication
GitHub Login: @Justinha
Microsoft Alias: justinha

@bku-bezell
Thanks for your feedback! We will investigate and update as appropriate.

@bku-bezell
Thank you for bringing this to our attention.
I've delegated this to content author @Justinha, who will review it and offer their insightful opinions.

@Justinha
Could you please review add comments on this, update as appropriate.

@bku-bezell thanks for asking about this and sorry for delay. The legacy MFA policy has different options for mobile phone, which can do text or voice, and office phone is, which voice call only. The topic explains more in this section: https://learn.microsoft.com/en-us/entra/identity/authentication/concept-authentication-phone-options#office-phone-verification
And more info about migration to the newer Authentication methods policy at https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-methods-manage#sms-and-voice-calls
If you want to add anything more specific, could you kindly submit a pull request? SMEs will review your submission for accuracy.
#please-close


[FR] Topic Modelling

Describe the solution you'd like
Add the correct processing parts to be able to do topic modelling as well as the theme for it
Additional context
Probably worth checking what the state of the art is in this area but we will need LDA and NMF as a minimum. Thought should be given as to what the representation space looks like because this affects the data types.

-DEPRECATED-
Development will be put on hold until there is a need for more NLP development, so this has been deprioritised for now


Optimize Remove the time limit for table creation and specified time cooling strategy

Proposed changes
Issue Number: close #xxx

Because some users migrated to doris from other products, they do not need to query some historical data, but it needs to be stored in doris for future query. At this time, they need to cool down directly without specifying a future time.

run buildall


[Bug] Missing setup files for creating embedding

Hey, love the product ❤
but src/build_summary file is missing in current codebase. Due to which search is not working even after running the server
I can see it got missing after the Update (2024/7/16)
I am helping my professor to  for a contest at our uni this weekend and needed to test similarity with our past private uni problems to prevent plaigarism.
Hopefully this gets resolved in time and I get to save my TA'ship xD

Ah I'm sooooo sorry about that ;_; didn't check github notifications at all
Did you figure this out? I think the file is still there, so maybe you just need to first run build_summary, and then embedder? If something still goes wrong let me know!

You should be able to just do python -m src.embedder or similar. Are you seeing *.vopkl files? Also just in case maybe you can double check if your json's are following the format here.

Thanks! this worked, I feel dumb enough to not have figured this out on my own 😆


[Feature] EEG,EKG 医疗图形

What problem does this feature solve?
支持EEG,EKG医疗图形
What does the proposed API look like?
支持EEG,EKG医疗图形

试试用自定义系列？


Revise all error message reported to user

Many error messages makes no sense to user, including but not limited to:

Starting session failed,
Start gremlin failed,
Load graph failed,
Compile graph or app library failed,
Querying gremlin failed,
Unsupported operation,

Many of these messages cannot guide user to investigate how they failed and the find out the correct way.
We have collected some feedbacks and error reports from end users, we should carefully address those issues, which is fundamental to user friendly experience with graphscope.

Closed via #751


[iOS] Error using component Text from ART

Hi there, i'm currently using react native ART module, and everything is ok except the Text component, but the bug is only happening in iOS, in android everything seems to work as expected.
When i try to use the Text component in iOS react trows an this error:

And in Xcode console output's this:
2016-09-20 17:17:17.663 [error][tid:main][RCTConvert.m:57] Error setting property 'frame' of ARTText with tag #7: JSON value '' of type NSNull cannot be converted to NSDictionary
Since react native ART doesn't have documentation, it's very possible that i'm not doing something right, but i already read the source code and nothing is working that i try.
Additional Information

React Native version:0.33.0
Platform: iOS
Operating System: macOS
Xcode: 8.0

RnPlay is down so i'm gonna post the code here:
https://jpst.it/NAac
As soon as the RNplay is up, i will update this post and put the code there.

Thanks for your question!
We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of React Native.
Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-native? We'll be happy to answer there. Post a link to your Stack Overflow question here, so that we don't lose track of it.

http://stackoverflow.com/questions/39611050/error-using-component-text-from-art

@hramos Hi there, i'm sorry but i don't understand why this issue was closed.
This is bug, i understand  that i may doing something wrong, but the same code that i use is working in android but not in iOS.


fix: internal.encoder.Pretouch only first opt effective

fix Pretouch a little mistake

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@bb7826f). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #456   +/-   ##
=======================================
  Coverage        ?   72.56%
=======================================
  Files           ?       56
  Lines           ?     7745
  Branches        ?        0
=======================================
  Hits            ?     5620
  Misses          ?     1824
  Partials        ?      301

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

the branch name is invalid, pls fix it~
The checking script is ./check_branch_name.sh.


Phantom 1.9.0-6 cannot be installed

Npm dependency of Phantomjs with version 1.9.0-6 tries to download the binary from an unexistent url (an out of date url of googlecode).
To solve this problem, phantomjs version should be increased in the package.json of the gtunt-sencha-dependencies.

Same problem here...
Seems that this project is abandoned :-(

@jjmr @andrei-ivanov Hey guys - the project isn't completely abandoned! However I don't use it any more since I'm not doing any Sencha dev work. However I'd be more than happy to accept any pull requests that fix this, so feel free to submit one and I'll merge and update the project.

@mattgoldspink That's good news :)
I've just started working with these technologies on a project that's in maintenance mode and I ran into this issue.
Since I cannot upgrade to the latest versions (PhantomJS 2.x), I thought of just upgrading the deps to the latest 1.9 versions available.
I hope it's fine.

I've sent the PR, not sure if you've been notified :)

@mattgoldspink hello?

HI @andrei-ivanov - Sorry for the delay. You caught me in the middle of 36 hours of flights. I'll aim to take a look at merging and updating npm over the weekend for you.

@mattgoldspink Great :)

@andrei-ivanov version 0.9.0 is now available with this fix on NPM - https://www.npmjs.com/package/grunt-sencha-dependencies

@mattgoldspink that is awesome, I can confirm it is working now :-)
Thank you very much.


How to train with multi gpu

I wonder how to train with multi-gpu

On a single machine, I simply used model = torch.nn.DataParallel(model), and it works. But this doesn't scale very well.

Thanks!
Now i met a new question, i wonder a pretain model with smaller patch size,like 4 or 8. Can u provide?
------------------ 原始邮件 ------------------
发件人:                                                                                "rstrudel/segmenter"                                                                                @.>;
发送时间: 2021年7月28日(星期三) 下午2:52
@.>;
<EMAIL_ADDRESS>主题: Re: [rstrudel/segmenter] How to train with multi gpu (#13)
On a single machine, I simply used model = torch.nn.DataParallel(model), and it works. But this doesn't scale very well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

About 8x8 patches please see #3 . The multi GPU training should work out of the box with slurm but maybe you have another usecase which does not work as is. I am closing this issue but feel free to reopen if you still meet issues with training.


Add Khoj to the Awesome AI Web Search List 🤗

Description
Add Khoj to the Open-Source AI web search list!
I noticed that entries are sorted by date of first commit. We weren't specifically doing AI search at the time of that commit, but the repository has evolved to also do this. Let me know if that's okay.
How to test
Check the render preview of the README and click on the links

Amazed with your project! Thanks for bringing it up!
It's perfectly fine to use that date! The list isn't meant to create competition; the choice to use the initial commit as the index was simply to help build a timeline. While I agree that it would be even better to use the commit date for when  LLM/WebSearch started being used, I believe that could lead to discussions. I thought using the first commit for all open-source projects was the fairest and easiest approach.
I noticed that the first commit for Khoj was actually earlier (2021-04-04). Is there a specific reason that date wasn't used? Perhaps it was because the commit didn't contain much content? If so, I don’t think people would scrutinize this too closely, as many first commits are simply for creating a README or license file.


[f] update proptypes

Use prop-types as single module

I initially thought it was a duplicate of https://github.com/esbenp/react-native-clean-form/pull/71, but with a closer look I think there may be a bug in this fix because in here https://github.com/esbenp/react-native-clean-form/pull/67/files#diff-59495bb133e61e02c3ae37ac052341daR46 PropTypes is a local variable due to the declaration inside the function argument.

Sry I am currently not working much with react native and the most dependencies in this library are outdated. But don't have the time to upgrade this.


Edit Entity?

How to edit an entity?

Please see here:
https://github.com/jackdh/RasaTalk/wiki/Creating-Training-Data

Jack, the link u sent tells me how to configure. I need to know if editing the name of an already created entity is possible? Eg: Entity name: Weather, has multiple expressions under it. I want to change the name to Ask_Weather. Is the Possible Jack?

@TaraRavindra Sorry just seen this you should have reopened it!
Yes you can rename it.
No cannot do it via the UI.
To rename it you will need to edit it in the database in the following places:
In the entities Database:
https://i.imgur.com/vkHMM0L.png
In each place it is referenced in the training data
https://i.imgur.com/h0msEvC.png
it's a bit crap and would love to add a way in the UI to do it automatically.


grouped convolutions seemingly not very efficiently

I implemented mobilenet but forward time looks slow in GPU. I use grouped conv to implement depthwise conv, set group equal to number of feature maps. The computation reduced by depthwise conv dosn't make inference time decrease. The mobilenet impemented by TF seem to be much fasterhttps://github.com/Zehaos/MobileNet,

I encounter the same problem, will MxNet  add a more efficient group convolutions implementation ?

I encounter the same problem, will MxNet add a more efficient group convolutions implementation ? I found tf can run mobilenet 0.059s/image in cpu !!!

mark

I encountered the same problem. The implementation of grouped convolutions is slow.

Generally speaking, group implementation is based one or more GEMM ( matrix multiply, one implementation ways of convolution ). For example, if group_num = 1 (default situation), then the total execution times of GEMM equals one. However, when group_num = 2, then the execution times equals two.
I don't read MXNet code of low API, so Is MXNet as I said above, which shoud read low-level codes.

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!
Also, do please check out our forum (and Chinese version) for general "how-to" questions.

For the record, we now have an efficient depthwise conv implementation when you set num_filters to num_groups


[C++][Parquet] Dictionary page metadata handling inconsistencies

See parquet-format re: PLAIN_DICTIONARY / RLE_DICTIONARY distinction — our handling of the page metadata is not consistent with the format.
Reporter: Wes McKinney / @wesm
Assignee: Deepak Majeti](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mdeepak) / @majetideepak
Note: This issue was originally created as PARQUET-555. Please see the migration documentation for further details.

Deepak Majeti / @majetideepak:
It looks like PLAIN_DICTIONARY is being handled. Can you please elaborate on this issue ? Thanks!

Wes McKinney / @wesm:
Sorry, I misread the code, but we still have some inconsistencies.
Currently, when any dictionary page is encountered, the encoding is forced to RLE_DICTIONARY and the dictionary page is assumed to be in plain encoding:
void TypedColumnReader<TYPE>::ConfigureDictionary(const DictionaryPage* page) {
  int encoding = static_cast<int>(Encoding::RLE_DICTIONARY);

  auto it = decoders_.find(encoding);
  if (it != decoders_.end()) {
    throw ParquetException("Column cannot have more than one dictionary.");
  }

  PlainDecoder<TYPE> dictionary(descr_);
  dictionary.SetData(page->num_values(), page->data(), page->size());

In fact, the dictionary need not be PLAIN encoding (we only support PLAIN at the moment – Parquet 2.0 byte array encodings could be used). Later on, if a data page in either PLAIN_DICTIONARY or RLE_DICTIONARY is encountered, the encoding is forced to RLE_DICTIONARY.
      if (IsDictionaryIndexEncoding(encoding)) {
        encoding = Encoding::RLE_DICTIONARY;
      }

      auto it = decoders_.find(static_cast<int>(encoding));
      if (it != decoders_.end()) {
        current_decoder_ = it->second.get();
      } else {
        switch (encoding) {
          case Encoding::PLAIN: {
            std::shared_ptr<DecoderType> decoder(new PlainDecoder<TYPE>(descr_));
            decoders_[static_cast<int>(encoding)] = decoder;
            current_decoder_ = decoder.get();
            break;
          }
          case Encoding::RLE_DICTIONARY:
            throw ParquetException("Dictionary page must be before data page.");

This is pretty loose logic. If the encoding is not PLAIN or PLAIN_DICTIONARY in the Dictionary page, we should throw an exception.

Deepak Majeti / @majetideepak:
If I understood it correctly,
PLAIN_DICTIONARY: 1 PLAIN encoded Dictionary page with the dictionary values followed by rle-encoded Data pages with corresponding indices  (4 byte integers).
RLE_DICTIONARY: rle encoded Data pages with indices (4 byte integers). (There is no dictionary associated)

Wes McKinney / @wesm:
Issue resolved by pull request 73
https://github.com/apache/parquet-cpp/pull/73


storage: log when no remote storage provider is available

Currently, when the MODELKIT_STORAGE_PROVIDER is unset, or simply has a wrong value, nothing is logged, but the AssetsManager will still function from the local dir.
This can get confusing. Here I log with error when it is set but not valid, and with debug to provide the information of whether the manager has remote storage or not.

LGTM

Thanks @antoinejeannot for the review and the fox!


Support rails 5

Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    rails (~> 5.0.0)

    comfortable_mexican_sofa was resolved to 1.12.9, which depends on
      rails (< 5, >= 4.0.0)

Yes, this definitely needs fixing.
Is there any big problem going up to Rails 5?

I hacked a fork that does this as a POC while upgrading my project.  TBH I'm not sure if my fix is correct so I'm not submitting a PR.    It does work and seems to run though.  ¯_(ツ)_/¯
https://github.com/mvcodeclub/comfortable-mexican-sofa

So, with #735 done, what's left with this one - bit of testing I guess?

Yeah, I'll try to get tests passing for Rails 4.x and we can close all of these issues. Then I'm planning to start on CMS 2.0 that will drop support for Rails 4 altogether.

Latest gem release works with rails 5. Closing this.


Docs fixes, and document PulsePattern.select_trains()

I was initially just documenting PulsePattern.select_trains() but then I saw some other issues so I fixed them along the way. That removes all warnings for me from mkdocs.

Rebase should remove some changes already done, all other LGTM!
Thanks, it's high time we are polishing docs a bit. I hope I get next to some examples using p700000.


chore: tee to lily.log

Already discussed it with @birdychang but wanted to leave it here too. Outputing all Lily logs to STDOUT/STERR will cause a large spike on Cloud Logging billing.
This is how the last time I tried looked like. Green is Cloud Logging.

It goes from 30% to 50% of the total costs. That said, perhaps we could only log warn/error level stuff.

Already discussed it with @birdychang but wanted to leave it here too. Outputing all Lily logs to STDOUT/STERR will cause a large spike on Cloud Logging billing.

Sorry, I wasn't aware of that. We needed to enable it in order to debug the remaining issues, even after the job has disappeared. Feel free to toggle the logs.

Yeah, is a hard tradeoff. All issues that Lily can handle should be already appearing in the STDOUT. The only one that's not showing is #22 due the daemon being killed and bringing the entire job with it.
Since we're running things manually, we can leave it on for a while


Remove the english version of an already translated line

Line 115 is the english version of line 116, there's no need for it.

I am, it's just that I didn't want to confuse people by translating some terms like "squashing commits" differently than it was done in the previous parts of the tuto, so I was looking at the previous sections to see how those terms were translated before. That way I can use the same translation for the same terms and keep it consistent between the different parts. And I just noticed the issue which seemed an easy fix :)


VK.com is not scrobling in 46.0.2490.71 m

Hello! The site vk.com skrobling not working. The problem is that the plugin does not see the playback track.
I tested on the following URL:
https://vk.com/wall-35486626_305177
https://vk.com/wall-10839812_371448
https://vk.com/wall-10839812_371464
https://vk.com/wall-35486626_305201
https://vk.com/audios3735913

I remove and reinstall the extension after that did reauthentication - did not help

Already fixed in #809 which will be released soon

Thx!
P.S. I apologize for the carelessness :-[


Fix for request being passed as sort_params parameter to Report init

more work is required here. The report_class should be initialized
properly.
This fixes issue #18

looks like it's already merged


Composer require chillerlan/php-qrcode dont download last release even if is 4.3.4

Hi, ty for your job just litle thing
Describe the bug
When I try to get last release with composer its ^4.3 if I force to 4.3.4 nothing change so its missing many parts for exemple constant in /src/Output/OutputInterface.php
Steps to reproduce the behavior
Just do composer require chillerlan/php-qrcode
Expected behavior
Just download last release 4.3.4 like is on github main
Screenshots
Content of output folder
Without composer require just clone

And now with composer require chillerlan/php-qrcode or composer require chillerlan/php-qrcode:4.3.4

Environment (please complete the following information):

PHP version/OS: [e.g. 7.4.12, Ubuntu 20.04]
Library version: [e.g. 4.3.1]

Additional context

Whoopsi I suppose last commit not are release yet ohewer its on main

Just fyi: this is the 4.3.x branch where the release is tagged.

Yep ty sorry for that


CE HTTP: keep request data at the context

The HTTP CE Client for receiving requests is designed to be used like this:
...
client := NewClient(options)
err := client.StartReceiver(ctx, dispatch)
...
func dispatch(ctx context.Context, event ce.Event) (*ce.Event, ce.Result) {
   return process(event)
}

I would like to have more information on the received request at the CloudEvent client to be able to create multi-tenant clients. That would be:
func dispatch(ctx context.Context, event ce.Event) (*ce.Event, ce.Result) {
   req  := ce.HTTPRequestFromContext(ctx)
   process := processLookupEventProcessor(req)
   return process(event)
}

For this to happen the request or a subset of their data should be added to the context before the switch here:
https://github.com/cloudevents/sdk-go/blob/1170e89edb9b504a806f2c6a26563c3c26b68276/v2/protocol/http/protocol.go#L285-L301

The scenario I am working on are generic transformations of CloudEvent payloads where users can configure their own transformation parameters getting a different URL path for each configuration. Requesting the same CloudEvents client at each of those paths would call the dispatcher, and inside it the developer could use the raw request (request.URL.Path in my case) to load the configuration:

my.ce.transformation/configuration-for-jane
my.ce.transformation/configuration-for-joan

Alternatives

Using the an extended attribute or even the payload to inform the expected configured tenancy.

I have no control on the received events from users, but as a Sinks developer I can expose a distinct URL Address for each configuration. This alternative is not possible for me.

Not using CE Client.

While this is a solution, I would love to use the retries and abuse protection of the CE Client without duplicating that code at my end.

Originally the SDK did something like this but it was not very reliable for the other protocols. But I still think it might be ok to add additional values in the context of the message (here https://github.com/cloudevents/sdk-go/blob/1170e89edb9b504a806f2c6a26563c3c26b68276/v2/protocol/http/message.go#L75-L76) and you can probe for them in the invoked receiver (which is what I think you are wanting to do now?)
Would this work for you?

Yes, that would be perfect. If I am undertanding that right that would be
message := NewMessage(req.Header, req.Body)
message.ctx = WithRequest(req.Context(), req)

so that I can do later something like
func dispatch(ctx context.Context, event ce.Event) (*ce.Event, ce.Result) {
  req := httpce.RequestFromContext(ctx)

  subDispatcher = dispatchMap[req.URL.Path] // ... and check for !ok
  return subDispatcher(ctx, ce)
}

Looking at it it doesn't feel great passing the body reader and letting users mess with it but we can always TeeRead it if that's a concern.

We can't pass the request because of the reader as you mention. It ends up with EOF exceptions because something else ends up closing that body reader. The full body of the cloudevent should be captured by the cloudevent message, so we should be good there. I think you need maybe the following:

req.URL
req.Headers
req.Host
req.RemoteAddr

I think that might be the useful safe request fields we can pluck out and inject into the context.

The way I would do this is I would make a context helper in the cloudevents http package, make a new struct with these fields, copy them over before leaving the serve http method into the context using the helper context method.
Then in your code you can take a context in the receive function and probe the context for the http request context struct, keeping in-mind that it might not be there if you have used a non-http protocol.
Would you like to PR this up @odacremolbap? I would be more than happy to review and then help the release process along to get it into a release.

sure thing!


Parsing the unicode string got the wrong result

Description
unicode string "\u7ec4" should get "组" but got "缁"
Reproduction steps
copy latest json.hpp to vs C++ project and write the code below.
Expected vs. actual results
should get 组 but got
缁

Minimal code example
#include <fstream>
#include <iostream>
#include "json.hpp"

using json = nlohmann::json;

int main()
{
	std::ifstream f("data.json");
	json data = json::parse(f);
	std::string name = data.at("name");
	std::cout << name << std::endl;
	return 0;
}

json data
{
  "name" : "\u7ec4"
}

### Error messages

```Shell
no error

Compiler and operating system
vs 2022 and windows 11
Library version
version 3.11.3
Validation

[X] The bug also occurs if the latest version from the develop branch is used.
[X] I can successfully compile and run the unit tests.

I cannot reproduce this.

On Linux I also got the right answer. but I am using Windows and visual studio.
On windows I got the wrong answer.

Can you show the output of data.dump(-1, ' ', true)? This should show \u7ec4, but I want to be sure.

@pigLoveRabbit520 Confirmed its an issue of your Console codepage. You are using cp936(Simplified Chinese). It prints 组 as 缁. chcp 65001(UTF8) should print 组 as 组.  So its not the issue of nlomann json.

@syoyo  I have changed the codepage to 65001, however, I got the wrong result

Please check my previous comment and post the output of dump

(And since I'm neither familiar with Chinese nor Windows - could there be an issue with the font?)


[BUG] PnP.PowerShell Get-PnPList Error

Description
We recently updated the SharePointPnPPowerShellOnline PowerShell module (as it is currency out of support according to Microsoft) to PnP.PowerShell v1.6.0. Ever since we updated, our runbooks intermittently / randomly fail on the cmdlet Get-PnPList with the following error: "The data is not available. The query may not have been executed." and I cannot pinpoint the reason to why this randomly fails.
This is running on a schedule n Azure Automation on a hybrid worker. Note that the intermittent failures occur both when I run this in Azure Automation (on-prem hybrid worker) or run it locally (directly in ISE).
Does this library support different runbooks connecting to the same SP site? As we may have one or two runbooks connecting to the same SP site (but in different domains/environments). If it does not, is there a workaround or best-practices to use this?
Expected behavior
$connection = Connect-PnPOnline -Credentials $creds -Url https://XXX.sharepoint.com/sites/YYY -ReturnConnection
$list = Get-PnPList -Identity 'Some List Name' -Connection $connection
(DO STUFF)
Disconnect-PnPOnline -Connection $connection
The list should be retrieved with no issue. It does do that, but "sometimes" fails with the error previously mentioned.
Actual behavior
Ever since we updated, our runbooks intermittently / randomly fail on the cmdlet Get-PnPList with the following error:
"The data is not available. The query may not have been executed."
and I cannot pinpoint the reason to why this randomly fails.
Steps to reproduce behavior
As it randomly happens, its hard to say.
What is the version of the Cmdlet module you are running?
PnP.PowerShell v1.6.0
Which operating system/environment are you running PnP PowerShell on?

[X] Windows

@XxDaShTixX - Can you please update the module to the latest version and report back. Thanks.

Closing it due to lack of response


How can I parse html that includes javascript code

Hello:
$(selector).load(url[, success]), does not parse the referenced scripts of the form  as jQuery does. Would it be possible to include this functionality?
Thank you very much for your attention.
Carlos

Thank you for your bug report, indeed it should execute any scripts in the inserted HTML. Please download the latest code to resolve this issue, and reopen this issue if it is still not working.


bug: Chats persist between accounts

Version
v0.19.1702220762
Describe the bug
When I switch between by dotcom account and my enterprise account, I’m surprised that my chats persist across the two. Presumably, a user who has two accounts (one enterprise, one free/personal) is using them for different things in different codebases, and the LLMs used to create those chats may be different.
Expected behavior
When logged in to a given account, I should only see that chats that I created while logged into that account. Ie, When I'm logged into s2, I should see the chats that I created as an enterprise user logged into sourcegraph.sourcegraph.com; when I'm logged into dotcom, I should see the chats that I created as a community user.
Additional context
No response

@csells Yes, same machine (and VS Code installation if you have multiple) only. Agree that this should not be possible. We need to prefix the storage keys with the individual user accounts to prevent this. Looking into it (this might become a fast follow up after GA though, depending on other priorities today)

Agreed that this is not a GA blocker .


Question : Single payload for Android/iOS with handling of tray message click

Is there no way that we can send same payload to both Android and iOS, and when user clicks on the notification from status bar, then inside app it can read the additional data as well?
CASE 1: I use notification payload only - we can get notification in Android and iOS both, but we can not read click on notification message in tray.
CASE 2: I use data payload only - We can read click on notification message in tray, but we can not get notification in iOS.
CASE 3: I use a mix of notification and data payload as suggested by plugin doc - We can get notification in Android/iOS both, we can get additionalData inside app, but we can not read click on notification message in tray.
Any solution?

I'm trying to do the same and came to the conclusion that it's not possible with the same payload :/


Can components keep the tag wrapping them?

Currently, component tags will be replaced by it's template:
Vue.component('my-component', {
    template: '
A custom component!
'
})

and
<my-component></my-component>

gets rendered to:

A custom component!

However, is there any way to let it be rendered like this, keeping the tag around template?
<my-component>

A custom component!

</my-component>

If i do
Vue.component('my-component', {
    template: '<my-component>
A custom component!
</my-component>'
})

It will result in infinite recursion.
An option to keep the wrapping tags will be very useful,
say if i want to implement a component for tags like that in Angular Material
and I want to write something like this in html:
<tabs>
    <tab title="foo">baz</tab>
    <tab title="bar">whatever</tab>
</tabs>

which it gets rendered to:
<tabs>
    <tabs-wrapper>
        <tab-item>foo</tab-item>
        <tab-item>bar</tab-item>
    </tabs-wrapper>
    <tabs-content-wrapper>
        <tab-content>baz</tab-content>
        <tab-content>whatever</tab-content>
    </tabs-content-wrapper>
</tabs>

so it's obviously reasonable to keep the <tabs> tag.
otherwise, I will have to do something like:
Vue.component('tabs', {
        props: ['label'],
        template: '<tabs-avoid-recursion><content></content><tabs-avoid-recursion>',
});

which is verbose.

There is an options for that.
Vue.component('my-component', {
    replace: false,
    template: '
A custom component!
'
})

Thanks! problem solved.

The replace option used to be false by default, but was changed to true is 0.12.2. I guess guide is slightly out of date and needs updating.

Guide has been updated.

This thread is old, I know. Did the replace option get removed?

Yes

:( Out of curiosity, would you mind sharing the reasoning for this?

 It can be useful to keep custom tags in rendered HTML.


Bump NG to 1.6.8

Task/Issue URL: https://app.asana.com/0/488551667048375/1205811169823599/f
Description
See Asana
Steps to test this PR
Smoke tests AppTP

Current dependencies on/for this PR:

develop

PR #3764   👈

This comment was auto-generated by Graphite.


Add a MPI elastic example: tensorflow-mnist-elastic.yaml

What this PR does / why we need it:
Add a MPI elastic example copied from https://github.com/kubeflow/mpi-operator/blob/v0.3.0/examples/horovod/tensorflow-mnist-elastic.yaml.
cc @zw0610
Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #
Checklist:

[ ] Docs included if any changes are user facing

/lgtm


Exception: Cannot read past the end of the alignment's sequence

Hi,
I've been hitting this error on a couple of bam files that I have tried. I attached a screenshot of the area causing the error in igv viewer. Input and error are below. The file already has read groups added. Thank you for any help that you can provide!
Kristine
freebayes -b ../../vcftesting/bamaddrg_LCC23.bam -v ../../vcftesting/freebayes_with_lastexons.vcf -f ../../hg19param/ucsc.hg19.fasta -t ../../hg19param/last_exons.bed
Exception: Cannot read past the end of the alignment's sequence.
CTTTAAAGATACAAAAAACACGTGTCTTCTGTGGAGCTCTGAGAACAGGACTCCAGCAAAGCACTTTTCAGCCTTGTGGTCTTCAAGCATTTCCAAGATNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCT
GTGACATTGGAAAGAAAAAAAATTAAGACAGATTTGGGTCTCCATGAGCAGAGAGTATTCTTTCCCTTAGTTCTGGGTAGCATAGTGCCCAAGGAAACCTAATCAGTACAGTGGGAAACCAAATCTATTCCAAATCATTACCCATAAGCAATCCTATGGACTCTCTGAGGTTTGACAGAGTCAGCGGCCCTCTCCAATAAATGTGTTTTTCTATAATAATGTGCAGTGTGAGTAATTTGATGTTTTTGACAAATATTTACCCAGCGTTTTATGAAGGAGAAGGTTTGGGGGGCAAGCTGAAGGAGCTCTGACTGCCTTTTGGAGGAGTGTGAGTGGCTTACCTT
chr12:9220338
Abort trap: 6

:+1: I'm getting this problem as well.

I am geeting this as well with spliced RNA-seq alignments

+1

Would one of you please send me a test case? Ideally something small I
could add to the tests. Sorry for the trouble but this is the easiest way
to resolve things!
On Mar 27, 2015 1:45 PM, "Max"<EMAIL_ADDRESS>wrote:

+1
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-86944040.

@ekg I sent you an example file about a year ago (see above). If it went missing can you please contact me and I'll resend it?

Ah! please resend!
On Mar 27, 2015 2:19 PM, "Miika Ahdesmaki"<EMAIL_ADDRESS>wrote:

@ekg https://github.com/ekg I sent you an example file about a year ago
(see above). If it went missing can you please contact me and I'll resend
it?
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-86954182.

@ekg I've just emailed you a 5MB bam file to your bc.edu email address (from my AZ email). Can you please let me know if you're not in receipt of the email in the next few hours. I couldn't reproduce the same exact error with the latest freebayes I'm using but it's probably related (different error output slightly).

Digging a bit more. On my case it was related to spliced alignments produced by HISAT. I do not think the software is an issue but the fact that the cigar string had Ns. I had to use the GATK tool to split reads with Ns on the cigar string and it is now working fine.
I reckon I had this before when working with very small contigs ….
regards,
Inti

On Mar 27, 2015, at 11:15, Erik Garrison<EMAIL_ADDRESS>wrote:
Would one of you please send me a test case? Ideally something small I
could add to the tests. Sorry for the trouble but this is the easiest way
to resolve things!
On Mar 27, 2015 1:45 PM, "Max"<EMAIL_ADDRESS>wrote:

+1
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-86944040.

—
Reply to this email directly or view it on GitHub https://github.com/ekg/freebayes/issues/58#issuecomment-86953160.

Is this solved? The GATK tool SplitNCigarReads is slow and duplicating a bam file for large projects is not very fun on top of the time to write the file.
On my case I am calling twice from the bam file, so streaming does not help a great deal since I would need to reformat twice the original bam file to call with freebayes.
:(

Hi,
This still bugs me ... sorry
Would it be safe to replace the Ns for a deletion, that is code introns as deletions?
for example 24S8M8401N18M into 24S8M8401D18M and then filter out the deletions matching exactly the intro coordinates? Would FreeBayes behave as expected?
@mjafin @visze have you solve this?

@inti I've personally given up on anything and everything except VarDict, which happily processes any RNA-seq data I throw at it.

The suggestion above actually seems to work fine, for example using
sambamba view -L covereged_regions.bed -h sorted.bam | awk -v OFS='\t' '{{ gsub(/N/,"D", $6); print }}' | sambamba view --format bam -S /dev/stdin | freebayes -f ref_genome.fa --stdin

which will produce variant calls and indels for the introns by knowing which region where covered by the reads, as with bedtools -bg -split, that it should be possible to get rid of the intros=indels quite easily.
I do not see why this would affect the variant calling on bases just next to the exon-intro boundary more than the GATK tool, but I would be great if @ekg could confirm if he thinks the same.
Thanks a lot for pointing me to VarDict, i will have a look right now.

Yep, freebayes is choking on my tophat bams as well...
RNA-seq friendly freebayes would be a great thing.
If you only need SNPs...
Hacking the bam to change 'N' to 'D' in the CIGAR strings appears to work for me too.

using @inti suggested sambamba+awk line took 198 sec (without the -L covered_regions.bed part, since I'll deal with that sort of filtering at the vcf level):
./sambamba view -h F1.bam | awk -v OFS='\t' '{{ gsub(/N/,"D", $6); print }}' | ./sambamba view --format bam -S /dev/stdin > F1_hack1.bam
I also tried using samtools (v1.0.1) + awk, which took 773 sec (sambamba really is faster):
./samtools view -h F1.bam | awk -v OFS='\t' '{{ gsub(/N/,"D", $6); print }}' | ./samtools view -hb - > F1_hack2.bam
splitNreads from @mjafin is rather slow (still running), but I'm guessing it is a bit more robust.  calmd appears to be the bottleneck.
./samtools view -h F1.bam | ./splitNreads.py | sed 's/RG:A:/RG:Z:/g' | ./samtools calmd -Su - ref.fa 2> /dev/null | ./samtools sort -T _sorted_ -o F1_splitNreads.bam
(samtools calmd produces a lot of warnings, so redirecting them to /dev/null)

This is definitely a hackish workaround since splices will be reported as deletions, but that is OK is some cases (eg: only care about snps).
After filtering with vcfallelicprimitives, vt normalize -r <ref>, vcfsnps it looks fine as far as I can tell.
Note: I've only tried this on a single sample so far, but I'm going to do multisample and will report back if I see any problems.

I have been working with VarDict and it seems to do a good job so far.
I have been planning a better workaround. What I have in mind is to write a script that changes the N for D on the cigar string, it stores the information on the genomic position of the Ns and then uses this position to filter out the introns called and deletions of the final VCF. I think this would make the approach cleaner in the sense that I reduce the chances of confounding downstream a true deletion with intron marked as a deletion.
I am not sure when I will get time for this and hopefully soon ... any comments on the idea are welcomed.

@inti ... The difficulty I see is dealing with when  freebayes combines "CIGAR N to D recoded" introns into adjacent variations.  It might be easier to just fixup freebayes itself.
Since freebayes doesn't appear to have any problem handling introns as deletions, maybe it can be made to just treat Ns as Ds except with respect to merging them with other variations.  Introns would then come out as deletions where the CIGAR is all Ns (or N#).  That is trivial to filter and makes conceptual sense to me.
I've never looked at the freebayes code myself though... so I have no idea how hard it would be to implement.

Yes, a suitable change on the freebayes code would be way better. However, it may be easier to work on filtering out the freebayes output and potentially faster to develop a good practice than tinkering with the freebayes code. I have not looked at it myself and I am not good at C so steep uphills to me to contribute on that.
Really, my idea was to keep track of the deletions in the output of the VCF that are supported by Ns on the original CIGAR strings. It is not much of an insight, I recognise.

On Jun 1, 2015, at 15:58, Travis Collier<EMAIL_ADDRESS>wrote:
@inti https://github.com/inti ... The difficulty I see is dealing with when freebayes combines "CIGAR N to D recoded" introns into adjacent variations. It might be easier to just fixup freebayes itself.
Since freebayes doesn't appear to have any problem handling introns as deletions, maybe it can be made to just treat Ns as Ds except with respect to merging them with other variations. Introns would then come out as deletions where the CIGAR is all Ns (or N#). That is trivial to filter and makes conceptual sense to me.
I've never looked at the freebayes code myself though... so I have no idea how hard it would be to implement.
—
Reply to this email directly or view it on GitHub https://github.com/ekg/freebayes/issues/58#issuecomment-107671406.

I think this would be a very easy change to freebayes. There is a single
loop in the alleleparser that handles the cigar. Apparently splices aren't
handled correctly... But my problem is that I've not ever worked with
RNAseq data. So I have no way to test.
On Jun 1, 2015 9:28 PM, "Inti Pedroso"<EMAIL_ADDRESS>wrote:

Yes, a suitable change on the freebayes code would be way better. However,
it may be easier to work on filtering out the freebayes output and
potentially faster to develop a good practice than tinkering with the
freebayes code. I have not looked at it myself and I am not good at C so
steep uphills to me to contribute on that.
Really, my idea was to keep track of the deletions in the output of the
VCF that are supported by Ns on the original CIGAR strings. It is not much
of an insight, I recognise.

On Jun 1, 2015, at 15:58, Travis Collier<EMAIL_ADDRESS>wrote:
@inti https://github.com/inti ... The difficulty I see is dealing
with when freebayes combines "CIGAR N to D recoded" introns into adjacent
variations. It might be easier to just fixup freebayes itself.
Since freebayes doesn't appear to have any problem handling introns as
deletions, maybe it can be made to just treat Ns as Ds except with respect
to merging them with other variations. Introns would then come out as
deletions where the CIGAR is all Ns (or N#). That is trivial to filter and
makes conceptual sense to me.
I've never looked at the freebayes code myself though... so I have no
idea how hard it would be to implement.
—
Reply to this email directly or view it on GitHub <
https://github.com/ekg/freebayes/issues/58#issuecomment-107671406>.

—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-107678471.

@ekg
I'm no RNAseq expert, but here is a little (7kb) example:
https://popi.ucdavis.edu/~travc/tmp/RNAseq_bams_for_freebayes/
There is a bam (extracted from a tophat mapping) and the relevant part of the ref.
I also included a gtf for that little region.

Could this issue be retitled to something like "SAM/BAM CIGAR N operator for skipping over introns not supported"?

Hi, I am aware that this is a couple of months old thread, have you found any solution? I have just seen this warning, followed by a core dump when analysing RNA-seq data. I am using version v0.9.21-26-gbfd9832-dirty

Would you confirm this to be an issue on the current build?
On Feb 2, 2016 8:54 AM, "agata-sm"<EMAIL_ADDRESS>wrote:

Hi, I am aware that this is a couple of months old thread, have you found
any solution? I have just seen this warning, followed by a core dump when
analysing RNA-seq data. I am using version v0.9.21-26-gbfd9832-dirty
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-178454150.

Hey, thanks for the quick reply! I have no idea, haven't used any older version. I can test 0.8.9, 0.9.21, 0.9.4, 0.9.8 (these are installed on the cluster I am using). Depending on the job overload, I should be ready within a few hours.

I think the problem you are encountering is fixed in a very recent version.
Would you please ask for a recent version to be installed and let me know
if it is resolved?
On Feb 2, 2016 9:00 AM, "agata-sm"<EMAIL_ADDRESS>wrote:

Hey, thanks for the quick reply! I have no idea, haven't used any older
version. I can test 0.8.9, 0.9.21, 0.9.4, 0.9.8 (these are installed on the
cluster I am using). Depending on the job overload, I should be ready
within a few hours.
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/freebayes/issues/58#issuecomment-178455799.

Thanks! I've requested installation of the newest version, it may take some time though. I will post the result of my test here.

The current version  v1.0.2-15-g357f175 seems to be working just fine with RNA-seq BAMs created with the aligner STAR.
Thanks to all for reporting, discussing and Erik for fixing this.

It looks like this issue can be closed?


Regression of #57 (Encoding::UndefinedConversionError) in versions >= 0.4.0

Looks like #57 was fixed in 0.3.0, but regressed in 0.4.0.
The following code generates the following error in versions >= 0.4.0, but not 0.3.0.  So far I have only been able to reproduce the error when using Serverspec; I haven't yet figured out how to reproduce in plain RSpec.
RSpec.configure do |c|
  c.add_formatter('RspecJunitFormatter', '/tmp/foo.xml')
end

describe 'foo' do
  describe command('echo oøps') do
    its(:stdout) { is_expected.to contain('o') }
  end
end

       foo
         Command "echo oøps"
           stdout
             should contain "o"

       Finished in 0.02209 seconds (files took 0.26107 seconds to load)
       1 example, 0 failures

       Traceback (most recent call last):
       	25: from /opt/chef/embedded/bin/rspec:23:in `<main>'
       	24: from /opt/chef/embedded/bin/rspec:23:in `load'
       	23: from /tmp/verifier/gems/gems/rspec-core-3.8.0/exe/rspec:4:in `<top (required)>'
       	22: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:45:in `invoke'
       	21: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:71:in `run'
       	20: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:87:in `run'
       	19: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:110:in `run_specs'
       	18: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:76:in `report'
       	17: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:166:in `finish'
       	16: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:186:in `close_after'
       	15: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:177:in `block in finish'
       	14: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:200:in `notify'
       	13: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:200:in `each'
       	12: from /tmp/verifier/gems/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:201:in `block in notify'
       	11: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter/rspec3.rb:19:in `dump_summary'
       	10: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter/rspec3.rb:113:in `without_color'
       	 9: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter/rspec3.rb:100:in `swap_rspec_configuration'
       	 8: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter/rspec3.rb:19:in `block in dump_summary'
       	 7: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:32:in `xml_dump'
       	 6: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:37:in `xml_dump_examples'
       	 5: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:37:in `each'
       	 4: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:44:in `block in xml_dump_examples'
       	 3: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:74:in `xml_dump_example'
       	 2: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:81:in `xml_dump_output'
       	 1: from /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:165:in `escape'
       /tmp/verifier/gems/gems/rspec_junit_formatter-0.4.0/lib/rspec_junit_formatter.rb:165:in `encode': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

There are no errors if I remove the ø character:
describe 'foo' do
  describe command('echo oops') do
    its(:stdout) { is_expected.to contain('o') }
  end
end

Sounds to me like serverspec is interfering with encodings? Can you reproduce in plain rspec?

I wouldn't be surprised if ServerSpec is doing something funky.  However, considering that the bug appeared when changing nothing except upgrading rspec_junit_formatter from 0.3.0 to 0.4.0 and that rspec_junit_formatter is the only thing besides rspec in the stack trace, this smells like an issue with rspec_junit_formatter to me.
I'm working on reproducing without ServerSpec.  I'm having a bit of trouble but I feel like I'm getting close.

Ok, so I'm starting to get this one figured out.  There's a few different puzzle pieces here.  It's still not clear to me exactly where the issue lies, though I'm starting to suspect Serverspec is doing something wrong.
First, starting in version 0.4.0, rspec_junit_formatter starting processing :stdout and :stderr as in example metadata.  This is why I'm only seeing the issue with versions >= 0.4.0.
Second, Serverspec always saves stdout and stderr to example metadata (this does not appear to be configurable behavior in Serverspec, otherwise I would simply disable it and close this issue and move on).
Finally, Serverspec uses a very low-level way to read command output involving reading from pipes 4096 bytes at a time using IO.select and looping over IO#read_nonblock(4096).  As far as I can tell, this often results in an output string (incorrectly?) labeled with ASCII-8BIT encoding. If I override this method to use something a bit more abstract, like IO.read(), then the output usually is UTF-8 encoding and I don't have any encoding issues.
I'm not really sure where the ASCII-8BIT encoding is ultimately coming from.  That's what I'm looking into right now.
There are a couple things I wish existed that would allow for workarounds:

A configuration option in Serverspec to toggle recording command stdout to example metadata
A configuration option in rspec_junit_formatter to toggle processing stdout/stderr stored in example metadata

@Poohblah did you find anything? I seem to have the same issue.

I just pinned to version 0.3.x of this gem and moved on.
IIRC, I considered opening a PR against Serverspec, but that was a lot more work than just pinning one gem version.  I barely use the junit output at all, so it simply wasn't worth my time investment.

Thank you for the update. That is what I ended up doing as well. So I guess this issue can be closed.

Sorry folks, encodings are hard!


OPENSSL_3.2.0' not found (required by openssl)

Update from OpenSSL 3.0.14 4 Jun 2024 (Library: OpenSSL 3.0.14 4 Jun 2024) on OpenSSL 3.3.2 under Debian the update completes incorrectly.
Raspberry Debian Version:
Linux 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64
Openssl Version Check
openssl: /lib/aarch64-linux-gnu/libssl.so.3: version OPENSSL_3.2.0' not found (required by openssl) openssl: /lib/aarch64-linux-gnu/libcrypto.so.3: version OPENSSL_3.3.0' not found (required by openssl)
openssl: /lib/aarch64-linux-gnu/libcrypto.so.3: version `OPENSSL_3.2.0' not found (required by openssl)

are you building openssl yourself or just installing updated debian packages?  the latter is something you need to contact debian about

I install OpenSSL myself.
Installation steps:
sudo su
cd /home/Admin
wget https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz -O openssl-3.3.2.tar.gz
tar -xvzf openssl-3.3.2.tar.gz
cd openssl-3.3.2
./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
make test
make install
Raspberry Pi OS Bookworm Full Desktop
Linux 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1                                                                                (2024-09-02) aarch64

So can I check: this is now working?
Note that in general we don't recommend changing the system version of OpenSSL, since various system components can depend on a specific version - it's usually better to upgrade with system tools (e.g. apt, yum, etc).
If you need a specific version of OpenSSL for a particular piece of software, it's best install it in a separate location, and point the specific software at it

Thanks for the info.


Add IDchain network

Add IDchain network so we can start revising the brightid strategy.
The current node added in this PR is a temporary archive node setup on AWS, can someone make sure it works with snapshot?
We're deploying another node on Digital Ocean in a few days and I'll change the file to point to the new address later.

I replaced the multicall address with a verified one, you can check the source code here: https://explorer.idchain.one/address/0x41d289c966D51342A515A19dE9c27d16079c94E0/contracts

Thanks! Can you check if the node works @ChaituVR ?

Hi, @misterplus I get the following error:
 Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.4.5)

Also, i see an error that the node URL is not HTTPS

Hi, @misterplus I get the following error:
 Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.4.5)

Also, i see an error that the node URL is not HTTPS

Sorry about that, the current setup on AWS is temporary and we should have a HTTPS node link within a few days.
Also would you please provide a method for checking a node is an operational archive node or not, so we could test it ourselves before commiting here? Saves you guys some time. 😄

@misterplus  we use this code https://github.com/snapshot-labs/networks/blob/main/src/composables/useApp.ts#L104-L164 to check archive node or not, get current block and send a multicall

We use this interface https://snapshot-networks.on.fleek.co/# (you can Click on any network and click the "edit network.json" button and add your network to JSON)

@ChaituVR I've added two https nodes (tested and confirmed working), please take a took!


lexnlp & blackstone dependancy incompatability

Description
Whilst I can build and run the ready-made Docker image, as per the projects README, I cannot build the Dockerfile locally without some kind of incompatible requirements error.
To Reproduce
Attempt to build the project's Dockerfile. A sample of the console output:
...
#7 94.43 ERROR: lexnlp 2.0.0 has requirement joblib==0.14.0, but you'll have joblib 1.1.0 which is incompatible.
#7 94.43 ERROR: lexnlp 2.0.0 has requirement nltk==3.5, but you'll have nltk 3.6.2 which is incompatible.
#7 94.43 ERROR: lexnlp 2.0.0 has requirement numpy==1.19.1, but you'll have numpy 1.19.5 which is incompatible.
#7 94.43 ERROR: lexnlp 2.0.0 has requirement pandas==1.1.3, but you'll have pandas 1.1.5 which is incompatible.
#7 94.43 ERROR: lexnlp 2.0.0 has requirement regex==2020.11.13, but you'll have regex 2022.3.15 which is incompatible.
#7 94.43 ERROR: lexnlp 2.0.0 has requirement requests==2.24.0, but you'll have requests 2.27.1 which is incompatible.
...

I've chopped and changed versions and wrangled the order of what gets installed as much as I can, but I just cant get them to work together. My suspicion is that because libraries like Pandas and Numpy use C-extensions, there is an added layer of complexity here. I've even tried running a linux container and installing Python and all the C dependancies needed from scratch, but to no avail, I always come up against this dependancy hell!
Current Workaround
Given that there are fewer endpoints dependant on Blackstone, I've just stripped Blackstone out of my branch. This loses me the 'abbreviation' , 'legislation' and 'named-entity' endpoints, but means I can reliably build and run the container.
my requirements.txt post-removing blackstone
asgiref==3.4.1
backports.zoneinfo==0.2.1
certifi==2022.6.15
chardet==3.0.4
click==8.0.4
dataclasses==0.8
datefinder-lexpredict==<IP_ADDRESS>
dateparser==0.7.2
docopt==0.6.2
ecdsa==0.18.0
fastapi==0.68.1
fastapi-cloudauth==0.4.0
gensim==3.8.3
h11==0.13.0
idna==2.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
jellyfish==0.6.1
joblib==1.1.0
lexnlp==2.0.0
nltk==3.6.2
num2words==0.5.10
numpy==1.19.1
pandas==1.1.3
pyasn1==0.4.8
pycountry==20.7.3
pydantic==1.9.1
python-dateutil==2.8.2
python-jose==3.3.0
pytz==2022.1
pytz-deprecation-shim==0.1.0.post0
regex==2022.3.15
reporters-db==2.0.3
requests==2.24.0
rsa==4.9
scikit-learn==0.23.1
scipy==1.5.1
six==1.16.0
smart-open==6.0.0
starlette==0.14.2
threadpoolctl==3.1.0
tqdm==4.64.0
typing-extensions==4.1.1
tzdata==2022.1
tzlocal==4.2
Unidecode==1.1.1
urllib3==1.25.11
us==2.0.2
uvicorn==0.15.0
zipp==3.6.0

Dockerfile
FROM python:3.6.8

ENV SPACY_MODEL=en_core_web_sm

COPY requirements-all-but-black.txt .

RUN pip install -r requirements-all-but-black.txt

EXPOSE 80

COPY ./app /app

CMD ["python", "/app/main.py"]

Possible resolutions

If someone knows the trick to getting blackstone, lexnlp and all of their dependancies installed and running within the same Docker container, please let me know!
Completely strip blackstone out the project. Its a minority of endpoints and there are some grumblings over on the GH page for that project that its poorly maintained(last updated January).. compare that to lexnlp(last updated 17 days ago)
Introduce Docker Compose and run a blackstone based service in its own container. The main fast-api app could consume endpoints from there, when it requires the functionality provided by blackstone.

Hey @pj-simpson - glad to see you here, albeit I didn't see this issue when it was originally raised many months ago! I'll certainly take a look as why a fresh creation isn't recreating the rebuilt container as I'd expect to run into the exact same issue.
We'd also lose the incredibly nice /sentences endpoint which is great for splitting legal text into decent sentences, so I'll check out the dependency issues raised.

@pj-simpson I think with this issue, I'll resolve it in the same way you have - I'll remove the blackstone references and build a separate module to perform legislation extraction from text.

Sounds good @ryanmcdonough! All the best and have a Merry Xmas! 🎄

@pj-simpson and you too! Also, removal of blackstone and adding legislation replacement gets it down from 6gb to 1.5gb image and 150mb RAM usage on load so not bad at all!


Fuzzer found an error in deserialization (InvalidVarUint1(3))

Fuzzing with wasm-opt founds error InvalidVarUint1(3)
Here is base64 of this module
AGFzbQEAAAABEgRgAAF/YAAAYAF9AX1gAXwBfAMFBAABAgMEBQFwAQAABQQBAwEBBgYBfwFBCgsHIQIGZnVuY18wAAAUaGFuZ0xpbWl0SW5pdGlhbGl6ZXIAAQkGAQBBAAsACvYBBMIBAAJAIwBFBEBBAQ8LIwBBAWskAAsCfwEDfwJAIwBFBEBBJA8LIwBBAWskAAtBx9y5owZBAUGAgH4EfwN/AkAjAEUEQEGSfw8LIwBBAWskAAtBgn8DfwJAIwBFBEBBuZx/DwsjAEEBayQACwJ/AkABAn8BDAELQQ9xA38CQCMARQRAQQEPCyMAQQFrJAALAn9BJAsLRQR/QZF/BUH//JF+C/4aARYLQfGcfkUNAUGAgIB8CwsNAwsFQYB/Cw0BDQELCwsGAEEKJAALEgAgACAAWwR9IAAFQwAAAAALCxYAIAAgAGEEfCAABUQAAAAAAAAAAAsLCwEA

Looks like wabt is wrong there
in this file, 3 is used for flags in resizable limits, which must be 0 or 1 at least according to:
https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md

So, anyway, currently in wabt there is already support for memory flags, atomic operations opcodes that act only on shared memory.
Not sure it should be decoded until it hits binary encoding spec.


Enforce collection restrictions on images

What is the context of this PR?
Unlike Documents, Wagtail doesn't enforce collection view restrictions on images.
This PR forces images to route through a given view, which does these checks.
The checks work for the {% image %}, the {% image_url %} tag, as well as any manual retrievals of the rendition's URL through its .url.
See also https://docs.wagtail.org/en/stable/advanced_topics/images/image_serve_view.html
How to review
Creating a collection with the various restrictions, and confirm they're enforced.
Note that unlike documents and pages, this PR doesn't add the ability to fix the permissions issue (eg redirect to a password or login screen).

Closing in favour of #58


Roles' HOWs deserve better documentation

The problem
Roles are complex. This is not a bad thing per se, but they need good documentation in order for people to completely understand how they work. While the objects page does a good job of explaining them in the kind of terms people tend to work with them with, the documentation on their HOWs is lacking.
Suggestions
Expand the documentation on Metamodel::ParametricRoleGroupHOW, Metamodel::ParametricRoleHOW, Metamodel::CurriedRoleHOW, and Metamodel::ConcreteRoleHOW.
This is something I'm willing to work on.

Please do that by all means. But make sure to eliminate the note saying "Don't use this at home, kids" of the ones that are already documented. And thanks!


Update logo

fixes kaotoio/kaoto#1421
/!\ I have not tried it. To be tested before merging!

Hi @oscerd, do you know how can we test this?

I don't think there is a way of testing it directly, but this is my knowledge.. @lburgazzoli do you have idea, apart releasing it?


DATAJDBC-336 - URL Cleanup

This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
Fixed URLs
Fixed Success
These URLs were fixed successfully.

http://www.apache.org/licenses/LICENSE-2.0 migrated to:
https://www.apache.org/licenses/LICENSE-2.0 (https result 200).
http://projects.spring.io/spring-data-jdbc migrated to:
https://projects.spring.io/spring-data-jdbc (https result 301).

Ignored
These URLs were intentionally ignored.

http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd
http://www.w3.org/2001/XMLSchema-instance

Merged to master.


Feature/justification spacing

Addressing #25
Added justify-content : space-around , space-between, space-evenly
The implementation take the remaining space to distribute it accross children according to the defined value.
Example :
Show for both content directions row and column the following justify-content property : start, end, center, space between, space-around', space-evenly`.
It intervally alter alignContent to : start, end, center
It intervally change row to row-reverse and column to column-reverse
It intervally change the size of justified items.

Some related topics:
start end confusion
When coding the interval to change row to row-reverse, I was a bit confuse because it didn't behave as I would have expected. The current justifyContent end/start implementations act as flex-end and flex-start in css.
In terms of layouting possibilities, it doesn't have any impacts, as users still could manually inverse the justifyContent when direction is -reverse  in order to have the expected behaviour.
Align of space-*
Alignment of space-between, space-around, space-evenly is currently on {flex-}start. Which means if children size is greater than inner, instead of being distributed, those property would stick to start
I still ask, but should we overlap items if the container is too narrow?
Align content
I currently added start,end as valid align content values. It offers the ability to be used either in column or row direction.
When I onboarded with this library, I was trying to change my tests layouts from row to column and I found it a bit exhaustive to also require to update alignContent property accordingly. This led me to many warning when flipping layout direction.
But my current changes allowed me to notice that inlines also relies on alignContent. It provides the textAlign behaviour if I understood it correctly. So the proposition might not fit perfectly right now
Warnings
Warnings are globally triggered during update when invalid value in context(row-column), or unavailable value. This can lead to performance downgrade and are triggered even when no direct set on the invalid property in done.
Could we dispatch warnings during set() instead?  and fallbacking to another valid value instead? This could save some warning during further update and keep user informed.
Code location
As this is increasing BoxComponent source, and possibly related to InlineManager I wonder it would be better to place it in its own, just like Whitespace.js.

Great work !
The demo is pretty costly though. I know it's cool to see an animation of the different setups, but there is layoutUpdates for a lot of elements every frames here, so when I try the demo on my Oculus Quest it's running at 20FPS...
If we remove the right panel with the column layouts, we get 40FPS on the Quest.
We could also animate with steps, like this example.

@felixmariotto when removing small texts "A-B-C-D-E", in my computer a frame drops from ~12ms to ~4ms.
If you could provide your quest fps with this setup, this would be interesting.
The current demo state is more a global development overview than a real feature demonstration. The ideal final example could be interactive, and display buttons to switch layout, align and size.

Hey, sorry for the delay, was unavailable the full week. Ready to resume to PR, which direction would it take in your opinion?

@felixmariotto According to what have been told on #168 , I tried splitting alignContent.
I was able to deprecate and split alignContent property without real breaking changes. All examples are still working without changes, except best-fit which is not centered anymore ( trivial ).
Deprecation warns and overrides. Which still could degrade performances if alignContent is set on every frame. I did that on another branch.
What do you think?
Additional text alignments could also be easily done after splitting.

alignContent
alignContent has been removed and splitted to alignItems & textAlign with deprecation warnings and fallbacks which should still allows existing codebases to work. Or at least don't break.
Those deprecation could be removed on 7.x.x
alignItems
Same as css align-items with available values :

start
end
center : default value
stretch : working but poor codebase that should be refactored
left : Deprecated, fallback on start when contentDirection is 'row'
right : Deprecated, fallback on end when contentDirection is 'row'
top : Deprecated, fallback on start  when contentDirection is 'column'
bottom : Deprecated, fallback on end when contentDirection is 'column'

Those deprecation could be removed on 7.x.x
textAlign
Same as css text-align with available values :

left
right
center : default value
justify : please note that it acts as justify-all in css
justify-left : justify except that last line is left
justify-right : justify except that last line is right
justify-center : justify except that last line is center

justifyContent

start : please note that it acts as flex-start in css
end : please note that it acts as flex-end in css
center : default value
space-between : ADDED
space-around : ADDED
space-evenly : ADDED


Breath

Props can now hold a button to hold their breath.
I was able to run the server and verify that this works, but I'm pretty new to gmod and I'm open to suggestions about how to implement this better.

Looks good. I've merged it.