Determine if ProjectionInfo is projected or geographic

If you have a spatial reference that is defined as
pi As ProjectionInfo
Is there a suggested way to  determine if it that SR is projected or geographic?

As I recall from some playing around with the map functions, a rather long time ago, I had seen in the MapFunctionMeasure.cs file (for the measure extension) the use of IsLatLon property. To the best of my knowledge thus far, this is the only thing I have seen that appears to discriminate between geographic and projected coordinate systems. Take this with a grain of salt as I have not searched high and low, but if you check the GetDist function in MapFunctionMeasure.cs, this is what is used and, since this function is definitely one that has to be based on whether a current projection is geographic or projected, IsLatLon appears to do the trick.
If there is something else that was meant to provide this discrimination between projected and geographic systems, I would also like to know.

I tried IsLatLon and found a couple of cases where it didn't work. Cant remember the exact cases though. I am using this:
If fs.Projection.Unit.Meters <> 1 Then Throw New Exception("Featureset projection is not geographic.")
I can't remember where I got this or who recommended it.

After taking a deeper look into the Reproject class (it's static), I think it's fair to assume that such a thing can be deduced from looking into the original source code of the ReprojectPoints() method. If you check it out (file Reproject.cs), you can see that it calls ConvertToLatLon() at some point. This is the defining call, which converts to latitude/longitude when your coordinates are projected. Inside that function, apart from some adjustments (such as de-scaling and de-offsetting), the "heart" of the method lies in the call to source.Transform.Inverse().
I guess it is fair to assume that this will only execute if there actually is a transform defined for that ProjectionInfo. Seeing that the original development was based on checking whether source.Transform is not null, I guess you can bet on that. If there is a Transform object defined, it probably generally means that this is a projected system, if it is null, it is a geographic spatial reference.
I have also checked all available ITransform implementations and I saw there is a LongLat one, so I think you should check that as well. So, to wrap up, the next thing you can test is whether the Transform property of your ProjectionInfo object is null. If it is null, this is a Geographic Spatial Reference object. Also, if it is not null, check if the Transform property is a LongLat object, in which case it probably still is a Geographic Spatial Reference.
If this doesn't do the trick, I don't know if anything else should, because all this is based on checking what the actual code does, so, unless I have missed something (take a look at the original source code too, just to be sure), there doesn't appear to be any provision for such a check.
Check it out and let me know if you were successful!

I'm not as up to speed on the reprojection maths so Ill take your word for it. I will add the logic to my project and then run some tests,


Feature: JS Runtime v3

Description
Coming soon.
Changelog

[x] Add pooling for VM contexts backed by fixed thread pool
[x] Rewrite and cleanup execution bridge into VM
[x] Simplify coordinated use of coroutines + threads
[x] Pre-warm set of contexts (when directed)
[x] Prep for Java-native intrinsics
[x] Upgrade Kotlin -> 1.8.0-RC
[x] Upgrade Gradle -> 8.0 (nightly testing)
[x] Upgrade all eligible dependencies
[ ] Stable guest VM implementation

[ ] API surface definitions
[ ] Implementation for Graal JS

[ ] New intrinsics

[ ] Console
[ ] Stream
[ ] Web Streams

[ ] Thread synchronization

[ ] Manual (Java threads)
[ ] Coroutines support

@SocketSecurity ignore<EMAIL_ADDRESS>@SocketSecurity ignore<EMAIL_ADDRESS>@SocketSecurity ignore<EMAIL_ADDRESS>@SocketSecurity ignore<EMAIL_ADDRESS>@SocketSecurity ignore<EMAIL_ADDRESS>

@SocketSecurity ignore<EMAIL_ADDRESS>

moving doc followups to their own PRs


[Tracker] Implement all numpy.* APIs in CuPy

Implement GPU version of numpy.* functions in cupy.* namespace.
This is a tracker issue that lists the remaining numpy.* APIs (see also: comparison table). I've categorized them based on difficulty so that new contributors can pick the right task. Your contribution is highly welcomed and appreciated!
List of APIs
### Very Easy
- [x] `numpy.asfarray` (#6085)
- [x] `numpy.byte_bounds` (hint: `ndarray.data.ptr`) (#7015)
- [x] `numpy.format_float_positional` (#6308)
- [x] `numpy.format_float_scientific` (#6474)
- [x] `numpy.ndarray.searchsorted` (#7059)

### Easy
- [ ] `numpy.apply_over_axes`
- [x] `numpy.array_equiv` (#6254)
- [x] `numpy.asarray_chkfinite` (#6275)
- [x] `numpy.fabs` (#6282)
- [x] `numpy.float_power` (#6371)
- [x] `numpy.heaviside` (#6798)
- [x] `numpy.isneginf` (#6089)
- [x] `numpy.isposinf` (#6089)
- [x] `numpy.mask_indices` (#6156)
- [ ] `numpy.ndarray.itemset` (#7459)
- [x] `numpy.real_if_close` (#6475)
- [x] `numpy.setdiff1d` (#6433)
- [x] `numpy.setxor1d` (#6582)
- [x] `numpy.tril_indices` & `numpy.tril_indices_from` (#6305)
- [x] `numpy.triu_indices` & `numpy.triu_indices_from` (#6316)
- [x] `numpy.union1d` (#6357)
- [ ] `numpy.lib.format.*`
- [ ] `numpy.lib.stride_tricks.sliding_window_view` (#6956, #7575)
- [ ] `numpy.emath.*` (`numpy.lib.scimath.*`) (#7295)

### Medium
- [ ] `numpy.block`
- [x] `numpy.delete` (#7359)
- [ ] `numpy.geomspace`
- [ ] `numpy.insert` (#6597)
- [ ] `numpy.put_along_axis`
- [x] `numpy.row_stack` (#6312)
- [ ] `numpy.spacing`
- [x] `numpy.vander` (#6279)

### Medium to Hard
- [ ] `numpy.histogram_bin_edges`
- [x] `numpy.ediff1d` (#6280)
- [x] `numpy.intersect1d` (#6402, #6407)
- [ ] `numpy.nanpercentile`
- [ ] `numpy.nanquantile`
- [ ] `numpy.ndarray.ctypes` (note: needs design discussion)
- [ ] `numpy.ndarray.getfield`
- [ ] `numpy.ndarray.resize`
- [ ] `numpy.ndarray.setfield`
- [ ] `numpy.polynomial.*`
- [x] `numpy.poly` (#3547, #6697)
- [ ] `numpy.polyder` (#6469)
- [ ] `numpy.polydiv` (#3780)
- [ ] `numpy.polyint`
- [x] `numpy.trapz` (#6107)
- [ ] `numpy.linalg.cond`
- [ ] `numpy.linalg.eig`
- [ ] `numpy.linalg.eigvals`
- [ ] `numpy.linalg.multi_dot` (#6358)
- [ ] `numpy.random.Generator.*` (see the dedicated tracker issue for details: https://github.com/cupy/cupy/issues/4557)

### Low priority (iterator functions)
- [ ] `numpy.ndenumerate`
- [ ] `numpy.nditer`
- [ ] `numpy.nested_iters`

### Low priority (help functions)
- [ ] `numpy.info`
- [ ] `numpy.lookfor`
- [ ] `numpy.source`

### Low priority (internal functions)
- [ ] `numpy.deprecate`
- [ ] `numpy.deprecate_with_doc`

### Low priority (dtype APIs - need to filter types unsupported by CuPy)
- [ ] `numpy.maximum_sctype`
- [ ] `numpy.cast` (undocumented API) (hint: see `numpy/core/numerictypes.py`)
- [ ] `numpy.typecodes` (undocumented API)
- [ ] `numpy.sctypeDict` (undocumented API)
- [ ] `numpy.sctypes` (undocumented API)
- [ ] `numpy.nbytes` (undocumented API)

### Low priority (rarely used APIs)
- [ ] `numpy.einsum_path` (#6723)
- [ ] `numpy.frompyfunc` (maybe just call GUFunc?)

Steps to Contribute

Fork and star :star: the CuPy repository :wink:

Pick a function you want to work on. You can find the function in the NumPy API Reference to understand what should be implemented.

Implement a function in your branch. If you need help, join Gitter or just ask for help in this issue.

Don't forget to write a test code!

Build CuPy and run tests to confirm that the function runs fine:
pip install -e . && pytest tests/cupy_tests/PATH_TO_YOUR_TEST
See the Contribution Guide for details.

Submit a pull-request to the main branch.

Note that you will need a GPU environment to develop CuPy.
See also:

#6324
#6692

Hi @kmaehashi,
I am glad to look into the awesome collection of required APIs.
I was wondering if other APIs for constant functions like numpy.inf, numpy.ninf etc can also be added to the cupy library. Curious to know your viewpoints. Thanks!
NumPy Reference: https://numpy.org/devdocs/reference/constants.html.

@khushi-411 Thanks for pull-requests! All constants are imported in CuPy 😄
https://github.com/cupy/cupy/blob/v10.0.0rc1/cupy/__init__.py#L56-L73

cc @leofang @grlee77 @rgommers

There's a whole bunch of very questionable stuff here, including things that are deprecated. It does not make sense to me to add those. But rather than spend time arguing about that, let me just go work on a PR to remove them from NumPy:)

Yeah some of the easy and very easy things read that way to me
The medium & medium to hard seem ok though (with the exception of the typing stuff)
The iterating functions (particularly on GPUs) I'm not sure about, but maybe Leo has thoughts there.
Anything else stick out to you, Ralf? Does the above sound roughly correct to you or are there other things that stick out?

@rgommers Could you list what is deprecated/inappropriate? I thought @kmaehashi has avoided listing them.

loads and ndfromtxt were already removed in https://github.com/numpy/numpy/pull/19615, so can be removed from the list.

The medium & medium to hard seem ok though (with the exception of the typing stuff)

With "typing stuff" do you mean the dtype-related functions (cast, typecodes, etc.)? If so, then I agree - that's questionable. Also xref https://github.com/numpy/numpy/issues/17325 for that.

The iterating functions (particularly on GPUs) I'm not sure about, but maybe Leo has thoughts there.
Anything else stick out to you, Ralf? Does the above sound roughly correct to you or are there other things that stick out?

That sounds about right. The random and linalg stuff is important, as are some of the medium-hard functions like put_along_axis, nanquantile, nanpercentile, etc.
All of the undocumented ones I'd like to get rid of in NumPy.

The medium & medium to hard seem ok though (with the exception of the typing stuff)

With "typing stuff" do you mean the dtype-related functions (cast, typecodes, etc.)? If so, then I agree - that's questionable. Also xref numpy/numpy#17325 for that.

Yeah exactly. Sorry that was vague

alen and asscalar will be removed in 1.23.0 (probably, unless it still gets backported to 1.22.x) by https://github.com/numpy/numpy/pull/20414

See also:
https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py#L33-L54

@rgommers Thank you for all the information. I've removed deprecated ones from the list:

numpy.loads
numpy.ndfromtxt
numpy.alen
numpy.asscalar
numpy.ndarray.tostring
numpy.set_numeric_ops

Also marked dtype-related functions as low priority as there's an ongoing discussion in NumPy.

i also want to contribute in this library but when i seen this all issues are resolved so could you please assign me a tasks

Hey! I was working on numpy.setxor1d but seems like when you provide a 2D array with assume_unique as True, numpy raises an error, since their code concatenates array as - np.concatenate((ar1,ar2)) and not np.concatenate((ar1,ar2), axis=None).
However, when assume_unique is false, the array is flattened as it uses the numpy.unique function which returns a flattened array. Do we replicate the same behaviour in CuPy or allow 2D arrays even when assume_unique is set to true?
Attaching a screenshot below to explain the above:

I've noticed that the automatic domain functions (numpy.emath.* or numpy.lib.scimath.*) seem to be missing from this. Is this a mistake, or are they not supposed to be supported?
https://numpy.org/doc/stable/reference/routines.emath.html

@Nordicus Yes it's just because I overlooked it, thanks for the catch! 😄

Hi team, I was looking into implementing cupy.emath.* and I believe the implementation is pretty simple. And since all our functions sqrt, log, etc are implemented using ufunc and already support complex numbers it is just a matter of converting any negatives into complex numbers like in numpy with no other changes required. Is my thinking correct? Pardon my negligence if any.

@pri1311 Hi, I agree it should be that simple.

@kmaehashi please chek numpy.lib.stride_tricks.sliding_window_view. It was implemented and merged in Add cupy.lib.stride_tricks.sliding_window_view

numpy.ndarray.itemset was removed in numpy 2.0, So please remove it from the list.


feat(anoncreds): legacy indy proof format service

Adds a LegacyIndyProofFormatService that can be used with v1 and v2 of the proof protocol.
I've made some improvements to the tails handling and it now verifies the hash after downloading.
There's some high level tests that use both the legacy indy credential format service and the legacy indy proof format service to do the full flow of issuance and verification. It's a bit hard to test in isolation with the indy-sdk, but we can change that once we have the AnonCredsRs backend.
Dependant on #1279

Codecov Report

Merging #1283 (205acf5) into main (115d897) will decrease coverage by 0.73%.
The diff coverage is 82.06%.

@@            Coverage Diff             @@
##             main    #1283      +/-   ##
==========================================
- Coverage   87.04%   86.31%   -0.73%
==========================================
  Files         778      804      +26
  Lines       18573    19642    +1069
  Branches     3157     3361     +204
==========================================
+ Hits        16166    16954     +788
- Misses       2400     2681     +281
  Partials        7        7

Impacted Files
Coverage Δ

...anoncreds/src/services/AnonCredsVerifierService.ts
100.00% <ø> (ø)

packages/core/src/agent/AgentModules.ts
100.00% <ø> (ø)

packages/core/src/index.ts
100.00% <ø> (ø)

.../modules/connections/services/ConnectionService.ts
88.23% <ø> (ø)

.../core/src/modules/credentials/CredentialsModule.ts
100.00% <ø> (ø)

...s/credentials/models/CredentialPreviewAttribute.ts
86.66% <ø> (ø)

...protocol/v1/messages/V1ProposeCredentialMessage.ts
100.00% <ø> (+13.15%)
:arrow_up:

.../src/modules/credentials/util/composeAutoAccept.ts
100.00% <ø> (ø)

...modules/proofs/formats/indy/models/PartialProof.ts
91.66% <ø> (ø)

...dules/proofs/formats/indy/models/ProofAttribute.ts
72.72% <ø> (ø)

... and 127 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I liked the usage of the modern satisfied operator, making worthy the recent upgrade to TypeScript 4.9 stuck_out_tongue

Yup really like the operator. It's often exactly what you need: verify something conforms to a type

When running an e2e test using anoncreds-rs I'm experiencing an issue that maybe it's related to this. I create a present proof much in the same way than presentProof function in packages/core/tests/helpers.ts (but using v1 protocol instead of v2).
Logging the proof request object that AnonCredsRsHolderService.createProof() receives, I see the following:
{"name":"test-proof-request",
"version":"1.0",
"nonce":"928479155009903779791520",
"requested_attributes":{
  "name":{
     "name":"name",
     "restrictions":[{"credentialDefinitionId":"TL1EaPFCZ8Si5aUrqScBDt:3:CL:15449:Employee Credential"}]}},
"requested_predicates":{}}

Note that camelCase in credentialDefinitionId, when AnonCredsRestriction model uses cred_def_id. Are we somewhere missing a JSONTransformer.toJSON()?


Symbol completion: changes to specification for keywords & menu rendering

1) Allow specification of whether or not keyword is followed by a space and/or a dot

In an assigment (maybe in expressions?) property  would be better as property.  (As it is you have to delete the space). (also for library)
true (or false) - adding a space then generates a prompt for an operator

So replace Set<string> - for keywords - with Set<KeywordCompletion>. The constructor for KeywordCompletion takes:
constructor(keyword: string, spaceAfter = true, dotAfter = false)
e.g.

new KeywordCompletion(lambdaKeyword)
new KeywordCompletion(trueKeyword, false)
new KeywordCompletion(propertyKeyword, false, true)

2)  Distinguish nature of entries in the pop-up menu by Html class.

For all keywords add a keyword class to the Html div for that menu item - so I can experiment with rendering them in blue (as keywords are in the source presentation). I'm not worried about the dot being in blue, and the space is not coloured anyway. Similarly...
any Types should be given the Html class type
any methods should be givent the Html class method
any Ids should be givent the Html class id

Returned for parsenode and styling changes

TODO: Make use of 1)


Popup

Features implemented ✍

Created the selected movie popup window
Populated the windows with selected movie details

@maov19 ,
Thank you!


Why are the tasks being awaited in Search.cs?

Just wanted to clarify something line 90 of Search.cs:
Why are you awaiting again when Task.WhenAll(tasks) already awaited?
        // Wait for all calls to complete
        await Task.WhenAll(tasks);

        _// Collect the results into a list to return
        var results = new List<TermDefinition>(tasks.Count);
        foreach (var task in tasks)
        {
          //Why wait again?
            **results.Add(await task);**
        }_

Shouldn't it be:
var results = await Task.WhenAll(tasks);
results is already an IEnumerable which is the return of the  awaited tasks.
Thanks.

It awaits the task to get the result from within. You have Task<TermDefinition> and you want the TermDefinition inside it.
There are two options:

await task
task.Result / task.GetAwaiter().GetResult()

The second choice would be slightly more efficient than awaiting it, but the await will complete synchronously - it won't actually wait (since the task has already completed, as you noted)

Thanks.


Avoidance system not available!

Hello,
I am able to run
roslaunch local_planner local_planner_stereo.launch an plann path for UAV
but in case of
1.roslaunch global_planner global_planner_sitl_mavros.launch I have got following error
WARN  [commander] Avoidance system not available!
[ERROR] [1554717383.081456403,<PHONE_NUMBER>00]: FCU: Avoidance system not available!
same error is for:
2.roslaunch local_planner local_planner_sitl_mavros.launch
In case of 1. Gazebo world,iris model,PX4 simulation is loaded but since Avoidance system is not available I can not arm and take-off and plan the path?  However in RVIZ - point cloud, octomap,everything seems to work correctly Any ideas?
a)My gazebo ros kinetic version is 9.6 (updated from 7) and checked with sudo apt-get install ros-kinetic-gazebo9-* that no packages are missing in order to make gz plugins to work properly.
b)PX4 version is v1.9.0-beta2
Thank you for recommendations.

Hi @trgiman , local_planner local_planner_sitl_mavros it's an intermediate launch file that's why it doesn't work. In order to launch the local_planner you need to use local_planner_depth-camera, local_planner_sitl_3cam or local_planner_stereo. More details on the difference between these simulation is provided in this package README.
As for the global planner, you will need to downgrade to v1.8 stable release and use it only in offboard mode. Sorry about that. We will try to have it working on 1.9 as soon as possible.

Hi @mrivi,
Thanks a lot for info. Actually my first attempt was with v1.8. But it did not have px4.launch file and compilation had to be done trough make posix_default_sitl (option from tutorial not available). After modifying launch file etc. accordingly, result was unfortunately, that ros was reporting multiple nodes named /gazebo.
So I tried to add px4.launch from git, but in that case Gazebo models etc are not loaded. Now I am running local_planner_depth-camera which runs smoothly (PX4 v1.9.0-beta2)
1.8v is not working for me in regards of Global Planner.

@trgiman The avoidance should work with 1.8 (both local and global planner). Can you share the error output? Thanks

@mrivi .Sure. Basically I just followed the the Readme tutorial.

cloned current PX4 and updated submodules
git checkout v1.8.0
make list_config_targets  - result is px4_sitl_default is not available so used make posix_sitl_default
4.Configuration of PATHes in respect of my Firmware dir and posix_sitl_default option
5.Launching .roslaunch global_planner global_planner_sitl_mavros.launch

Error 1:
while processing /home/trgiman/pplanningPX4/src/avoidance/global_planner/launch/mavros_sitl.launch:
while processing /home/trgiman/PX4/Firmware/launch/px4.launch:
Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'/home/trgiman/PX4/Firmware/launch/px4.launch'
Now option 1 add px4.launch file or  option 2 edit  mavros_sitl.launch. Tried both as mentioned above. Or maybe I am doing something essentially wrong?

I think for 1.8 to work you need to revert this change https://github.com/PX4/avoidance/pull/98/files

Hi @mrivi I did reverted to commit, that was recommended by you. Everything went well but unfortunately this time I get following gazebo error:
Aborted (core dumped)
[gazebo-7] process has died [pid 5303, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /home/trgiman/pplanningPX4/src/avoidance/global_planner/../sim/worlds/test_city_2.world __name:=gazebo __log:=/home/trgiman/.ros/log/66c5d584-5a34-11e9-aaed-0c9d928302ea/gazebo-7.log].
log file: /home/trgiman/.ros/log/66c5d584-5a34-11e9-aaed-0c9d928302ea/gazebo-7*.log
FYI. I did compilation of PX4 and Avoidance from clean git clone etc. Log above is non existent...in which launch file I could apply verbose parameter for gazebo? Thanks.

@trgiman Those seems some warning that are always there. I don't see any error that would make the simulation fail. Is there an error?
I would advise you to first make sure that your setup is working properly with the Firmware master and avoidance master. Realease 1.8 is quite old and it doesn't support all the feature of avoidance (e.g. no OA with mission mode). Is there any specific reason why you want to use a release?
Furthemore, some issues might be caused by having Gazebo9 with ROS Kinetic. I think no one in the dev team has that setup. We recommend ROS Kinetic and Gazebo 7.

@trgiman By the way to use the global planner with release 1.9 or the Firmware master, you can set COM_OBS_AVOID to 0 and run the planner in Offboard mode. You need to reboot after setting the parameters such that the preflight checks don't fail.

Hi @mrivi perfect. I set COM_OBS_AVOID to 0 and global planner works like a charm with 1.9, gazebo 9.6 on kinetic.Hmm. I just do not get why we have to set COM_OBS_AVOID to 0 instead of leaving it to 1? It is PX4 flag to enable obs avoidance?
Do you have got any explanation please? Initially I although tough that I can change the COM_OBS_AVOID by default in https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d-posix/1015_iris_obs_avoid...but it did not chage the parameter so I simply used QGroundControll to change it.
Anyway thanks for help.

@trgiman COM_OBS_AVOID enables running the obstacle avoidance in MISSION mode. It isn't necessary to run it in OFFBOARD mode.
There is a bug in the Firmware with loading vehicle specific paramters from ROS. If you delete ~/.ros/eeprom/parameters when changing vehicle type you will see that the parameters get set correctly

@mrivi thanks. It works I think we can close this issue.


Using UFW on host

Recently I learned about this know issue that docker bypasses ufw.
I tried a lot  of workarounds, but though I don't want to break my whole configuration I'm a bit scared of playing around with the networks. Also most of the approaches only work for single containers...
The actual Problem: ufw blocks on the host system don't apply to my docker containers. I can still reach all websites from a blocked IP.
Is there any recommended way to enable ufw on the host machine for proxy-companion?
I used the prewritten docker-compose file from nextcloud. They define a network "proxy-tier" for the proxy. In this repo I can't find anything like this. Maybe this is the problem?

Hi. This question concerns nginx-proxy which does the actual proxying. The companion only concern is SSL certificate creation.


Hero

Hero
Use this issue to discuss the Hero component.
Preview the hero component
Preview the hero image component
Preview the hero with content and image component
Find out more about the hero component and when to use it in the NHS Digital service manual.
See our contributing guidelines

Classes parameters need adding to nhsuk-hero so that overriding classes can be applied.

Closing these individual placeholder issues.
Please use the NHS digital service manual backlog to discuss the usage of this component. If you're having trouble with the code, or have found a bug, please raise an issue on the NHS.UK frontend backlog


include license and readme in pypi tarball

Hi I am the maintainer of mkdocs in Fedora/Epel I am working in packaging your theme I wan to include the license text and readme in the tarball

Ping.
Please note than mkdocs-alabaster have been included in Fedora repos:
https://admin.fedoraproject.org/pkgdb/package/rpms/mkdocs-alabaster/

Hey William, sorry for not responding any sooner — I was kind of in middle of something, and didn't really have time for  this project.
I've merged your PR, is it sufficient or should I push a new release to the PyPI?


[TF 2.0 API Docs] tf.keras.callbacks (sub)classes

TensorFlow version: 2.0 (beta1)
(Sub)classes of tf.keras.callbacks:
BaseLogger, History, Callback, CSVLogger, ModelCheckpoint, ProgbarLogger, RemoteMonitor, TensorBoard and TerminateOnNaN:
Summary:
Since tf.keras.callbacks are important for monitoring models during training, the API docs require extra attention imo.
Examples - to add - see below
Descriptions - to be defined better - see below (especially the Callback custom class)
Returns/raises - to add for better UX when needed
Suggested improvements:

Missing examples: one example per (sub)class would be enough for good UX and a link to a tutorial presents an extra step for a user. E.g. a short example inside the docs similar to the ones in EarlyStopping (link), ReduceLROnPlateau (link) or LambdaCallback (link)

Note: ModelCheckpoint and TensorBoard have links to tutorials which have examples. BaseLogger and History are applied by default but that may not help understand them better.
Example of a Custom callback from @fchollet Deep Learning with Python book:
class ActivationLogger(keras.callbacks.Callback):
    def set_model(self, model):
        self.model = model # Called by the parent model before training, to inform the callback of what model will be calling it
        layer_outputs = [layer.output for layer in model.layers]
        self.activations_model = keras.models.Model(model.input, layer_outputs) # Model instance that returns the activations of every layer

    def on_epoch_end(self, epoch, logs=None):
        if self.validation_data is None:
                raise RuntimeError('Requires validation_data.')
        validation_sample = self.validation_data[0][0:1] # Obtains the first input sample of the validation data
        activations = self.activations_model.predict(validation_sample)
        f = open('activations_at_epoch_' + str(epoch) + '.npz', 'w') # Saves arrays to disk
        np.savez(f, activations)
        f.close()

Example of a TensorBoard callback from @fchollet Deep Learning with Python book:
callbacks = [
    keras.callbacks.TensorBoard(
        log_dir='my_log_dir', # Location of log files
        histogram_freq=1, # Records activation histogram every 1 epoch
        embeddings_freq=1, # Records embedding data every 1 epoch
    )
]

history = model.fit(x_train, y_train,
                epochs=20,
                batch_size=128,
                validation_split=0.2,
                callbacks=callbacks)

# Browse to http://localhost:6006 and look at your model training
...

Descriptions: to be defined better if needed. Recommend to use the following Medium post  which has quite decent descriptions of each callback: https://medium.com/singlestone/keras-callbacks-monitor-and-improve-your-deep-learning-205a8a27e91c

Note: Mention in the EarlyStopping and ModelCheckpoint descriptions that they are/should be both typically used together (see callbacks_list example from @fchollet with 2 callbacks passed into model.fit below) to stop training when improvement stops and save the current best model during training (save_best_only=True):
# A list of 2 or more callbacks that can be passed into `model.fit`
callbacks_list = [
        keras.callbacks.EarlyStopping(
                monitor='acc',
                patience=1,
        ),

        keras.callbacks.ModelCheckpoint( # Saves the current weights after every epoch
                filepath='my_model.h5',
                monitor='val_loss',
                save_best_only=True, # These two arguments mean you won’t overwrite the model file unless val_loss has improved
        )
]

model.compile(optimizer='rmsprop',
                loss='binary_crossentropy',
                metrics=['acc'])

model.fit(x, y,
                epochs=10,
                batch_size=32,
                callbacks=callbacks_list,
                validation_data=(x_val, y_val)
                )

Returns/Raises: to be defined/defined better if needed

Doc links:
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/BaseLogger
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/History
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/Callback
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/CSVLogger
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/ModelCheckpoint
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/ProgbarLogger
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/RemoteMonitor
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/TensorBoard
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/callbacks/TerminateOnNaN

@8bitmp3, is there any possible way to dump model gradients and intermediate layer output through callback?

how to do classificaiton using Fashion MNIST, a data set containing items of clothing. There's another, similar dataset called MNIST which has items of handwriting -- the digits 0 through 9.
Write an MNIST classifier that trains to 99% accuracy or above, and does it without a fixed number of epochs -- i.e. you should stop training once you reach that level of accuracy.
Some notes:
It should succeed in less than 10 epochs, so it is okay to change epochs= to 10, but nothing larger
When it reaches 99% or greater it should print out the string "Reached 99% accuracy so cancelling training!"
If you add any additional variables, make sure you use the same names as the ones used in the class
can you solve this

import tensorflow as tf
from os import path, getcwd, chdir
DO NOT CHANGE THE LINE BELOW. If you are developing in a local
environment, then grab mnist.npz from the Coursera Jupyter Notebook
and place it inside a local folder and edit the path to that location
path = f"{getcwd()}/../tmp2/mnist.npz"
GRADED FUNCTION: train_mnist
class myCallback(tf.keras.callbacks.Callback):
def train_mnist(self, epoch, logs={}):
# Please write your code only where you are indicated.
# please do not remove # model fitting inline comments.
if(logs.get('acc')>0.99):
print("\nReached 99% accuracy so cancelling training!")
self.model.stop_training = True
mnist = tf.keras.datasets.mnist
(x_train, y_train),(x_test, y_test) = mnist.load_data(path=path)
# YOUR CODE SHOULD START HERE
x_train, x_test = x_train / 255.0, x_test / 255.0
# YOUR CODE SHOULD END HERE
model = tf.keras.models.Sequential([
# YOUR CODE SHOULD START HERE
tf.keras.layers.Flatten(input_shape=(28, 28)),
tf.keras.layers.Dense(512, activation=tf.nn.relu),
tf.keras.layers.Dense(10, activation=tf.nn.softmax)
# YOUR CODE SHOULD END HERE
])
model.compile(optimizer='adam',
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
# model fitting

history = model.fit(x_train, y_train, epochs=10, callbacks=[callbacks])
# model fitting
return history.epoch, history.history['acc'][-1]

I am using tensorflow==2.1 and when I ran this algorithm I got error saying this:

Briefly it says that logs.get('acc') is Nonetype and 0.99 is float so, '>' this cannot compare.
Can someone help me?

Same Issue here, any solution found?

For tensorflow==2.1 it is not log.get('acc') instead try log.get('accuracy'). It should work.

I am using tensorflow==2.1 and when I ran this algorithm I got error saying this:

Briefly it says that logs.get('acc') is Nonetype and 0.99 is float so, '>' this cannot compare.
Can someone help me?

Hi..
Use if(logs.get('acc')>0.90):
This worked for me

Hello..
For me it didn't, then I used 'accuracy' instead of 'acc', this worked for me.

For tensorflow version 1.14.0, try log.get('acc')
And as per the comments, if tf version is more than 2, then try log.get('accuracy')


Add JDK11 build step

We are having build issues with Dokka on JDK 11. It looks like it is unsupported right now https://github.com/Kotlin/dokka/issues/294


Modify schema from Realm Browser

Any plans to improve the Realm browser by adding the possibility to change the schema of a .realm file for example adding columns or whole tables?
Our use case is the following:
We're using Realm in our current app, and we have a suite of integration tests setup. What we do there, since the database is populated and updated through REST calls, is we save a snapshot of the database at a given time and we bundle one or more copies (depending on some characteristics, like "empty realm", "populated realm", and so on) in the test target, so that we can rely on a static data source when running the tests.
You know already what happens when in the development cycle we change the database schema. All the tests fail because the Realm cannot be initialized. What this means is that we have to replace the database snapshots with a newly populated database from the app, AND we have to replace all the constants for data identifiers we use in the tests to simulate fetching and so on (since the data the app generated through REST calls now is different from the data we had at the time of the last snapshot). This is a huge amount of time for every change to the schema we do, and it would be nice if I could just open the snapshot and add the column I need, either through interface or through some kind of query language which I think is more complex for you anyway :) )
P.s. this of course only applies for the first development cycle since in some way we'll handle migrations after the first version goes live. But since we still have a long time before the first version comes out, I think it's also not really helpful to create mini-migrations for changes we do during the development cycle
Any ideas?

Hi @vittoriom we do have plans to add that down the line. I'm helping with the new browser and would very much like that ability as well :). There is no timeline on when such a thing would be added.
I think your best bet for right now will be to do the mini migrations

great, looking forward to try the new browser :)

:+1: me too :)

This has been closed, but it doesn't seem to be implemented yet?
as @vittoriom pointed out during development when you might change the schema several times it is really annoying to have to write a migration or drop the whole database in order to work with the damn thing. If I drop the db, then I have to populate it with dummy data. If I make a migration, then I spent time making a migration for something that won't be needed in production...

cc @TimOliver

I think we closed this because we moved all discussions about the Realm Browser over to the Realm Browser repo.
Thanks for the comment @compojoom. I appreciate your passion on the topic. :)
Yeah, I've been pushing for this functionality for a while. I've got several use cases where it would be great to pre-build a Realm file so it can be bundled with an app. I was assuming it would actually just be a matter of performing an internal migration and then resetting the schema version value of the Realm file back to 0.
Apparently the mechanisms for this are already in Realm Core; they just need to be exposed to the Object Store and then the Objective-C/Swift wrappers.
It's just a matter of time and resources. We're really busy on improving all of the features and stability for the Realm Mobile Platform at the moment and since you can 'sort of' work around this at the moment, it's not an absolute showstopper. Sorry about that.
We should have an issue in Realm Cocoa here talking about modifying the Realm schema (separately from the Browser). If there isn't, I'll create one.


is this possible

[question] is it possible to use the websocket to connect to external servers?

I am not sure what you mean by your question. The README does have some verbiage regarding connecting to third party servers.

In order to be able to execute the /connect and /wsserver commands, cheats must be enabled. This means that connecting on third party servers is not possible, and only on the dedicated server when cheats are enabled. It is possible to connect on a singleplayer world and join a server after that, but commands executed by the websocket server will not work. Events will still be sent by the client however.

Does that answer your question?

I am not sure if you're able to use the websocket server to connect to external servers. In case you're using a platform that does not have access to the /transferserver command, it's rather unlikely that the websocket server will be able to call it. I haven't personally tried though, and I do know the websocket server has access to some commands that a player cannot access, so it is worth a try.


React higher order component by-passes null check when injecting optional prop

My React component accepts string. It complains as I'd expect if I pass null, but it does not complain if I pass null via a higher order component.
/* @flow */
import React, { type ComponentType, type AbstractComponent } from 'react';

// This higher order component injects an optional string
const injectMaybeX = <Config: { x: ?string }>(
    Component: AbstractComponent<Config>
): AbstractComponent<$Diff<Config, { x: ?string } >> =>
    props => <Component {...props} x={null} />;

// This component accepts just a string
const TrimX = ({x}: { x: string }) =>
    <div>{x.trim()}</div>;

// This fails, like I expect
<TrimX x={null}/>

// I think this fails during runtime, but there is no type error?
const Enhanced = injectMaybeX(TrimX);
<Enhanced />

// This fails as I'd expect though
const EnhancedWithExplicitType = injectMaybeX<{x: ?string}>(TrimX);
<EnhancedWithExplicitType />

Flow version: 0.92.1
Expected behavior
Flow complains that TrimX does not accept null when I create Enhanced
OR
Flow warns me that I might want to explicitly declare the generic type
Actual behavior
Flow does not complain
https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoAlgWwA5wE4AuYASgKYCGAxgQDRgDeYBAntqWAMJw5wB2pvAgBVWpOizZgAggCMAzgTxUCXHv0FgAvmCh5uYAOR4K1AwG5UqYMDBCAFujlgHAczuk8YfABMPYSty46kTovABWpNRO5Lxe2ATofOQwYAp4oS6oAbwKYKER1ACy5MwypAAaYAC8YAA8XLxQ6C4AXAxgAB5tAPxpGVoAfAAUqGBjnIF8AgRtsmnKqkHT9XxNLgOoAJSz8ooLk8G1ACQAIuhQUCuNzXSMXWC9iv3aAwPVb6Pj2HrYTlVvKzU0wYADowd84L9tB0qvReABXGAwbTAAYWKw2eyOfwHYFUSikeJOMLw3LkVJPXiZbK5ITpTCVGpDegdTRtO5tPpUrSbd5gT5jWredAANwGLJBT0wQ02mlqwGFYvR1lsDicUHI6BgcjoMHQAGt2ABJMCkDpsaioWp0rCVGFwxHI1GjDFgADqdmYYG8cFITgIarAvDgRA1WqYcDg3SyfFyAFFeHYYgTvNU8uFIgRiqUKkMbQzNhZagmk7wU2BneMq+NXVj1ZrtWByE4jQZU2aLUQA3B4W4YzkiCXk6RvG70AG4+a9ZRxyJJDV8pns2VyrUWT0uS5NMN8+VC1ah2WR2OJ1P0DPhKIKwMgA
Notes/Thoughts

I originally thought the problem was (https://github.com/facebook/flow/issues/7446)

This is a known issue that we are working on. Unfortunately, it's not a simple fix.
It's particularly nefarious because it doesn't even ask for an annotation when it's exported.
(cc @avikchaudhuri: another example of what we were discussing last week)

Flow now complains about this.


'Access denied' from Microsoft.SharePoint.Client ExecuteQueryRetry - previously working queries are now coming back with error

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

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

Additional environment details
No response
Describe the bug / error
SharePoint CSOM scripts that are running in an Azure WebJob have been stable for a long time (years). Recently (about a week ago), these stable scripts started reporting some 'Access denied' failures. These failures occur upon using ExecuteQueryRetry from the ClientContext.
Keep in mind that:

The service account that runs these scripts has up-to-date and valid credentials (it should not be denied in any of its actions)
Many of the steps in the script work, but certain ones are only recently failing

Two operations that I've seen fail so far:

Add to a FileCollection using FileCreationInformation. In this step, we attempt to overwrite the master page in the master page catalog.
DeleteObject on a File. In this step, we attempt to delete a page from Site Pages.

I imagine that some downstream operations might fail but I cannot progress far enough into my scripts to determine what will work.
Last successful run: 6/18/2024 10:01:17 AM (US Central Time)
First failure run: 6/20/2024 07:03:30 PM (US Central Time)
My suspicion is that some update happened within SharePoint which perhaps changed the way certain CSOM operations work. Is there any idea as to what could be going on?
Steps to reproduce
Below are the two scripts referenced in the error.
Overwrite master page
var web = clientContext.Site.OpenWeb("relative_site_url_here");
var masterPageCatalog = web.GetCatalog((int)ListTemplateType.MasterPageCatalog);
clientContext.Load(masterPageCatalog.RootFolder);
clientContext.ExecuteQueryRetry();

var masterPageBytes = MethodThatGetsBytesOfAnotherMasterPage();
var masterPageString = Encoding.UTF8.GetString(masterPageBytes);

var masterPageFileCreationInfo = new FileCreationInformation()
{
  Url = string.Format(@"{0}/{1}", masterPageCatalog.RootFolder.ServerRelativeUrl, "seattle.master"),
  Overwrite = true,
  Content = Encoding.UTF8.GetBytes(masterPageString)
};

var updatedMasterPage = masterPageCatalog.RootFolder.Files.Add(masterPageFileCreationInfo);
clientContext.Load(updatedMasterPage);
// Failure of 'Access denied' occurs here
clientContext.ExecuteQueryRetry();

Delete a page from Site Pages
var web = clientContext.Site.OpenWeb("relative_site_url_here");
var sitePages = web.Lists.GetByTitle("Site Pages");
clientContext.Load(sitePages.RootFolder);
clientContext.ExecuteQueryRetry();

// Delete 'How To Use This Library' file if it is found
var howToUsePage = default(Microsoft.SharePoint.Client.File);
try
{
  howToUsePage = sitePages.RootFolder.GetFile("How To Use This Library.aspx");
}
catch { howToUsePage = null; }
if (howToUsePage != null)
{
  howToUsePage.DeleteObject();
  // Failure of 'Access denied' occurs here
  clientContext.ExecuteQueryRetry();
}

Expected behavior
The stable CSOM scripts should not have any Access denied errors.

Hi, we are also experiencing the same problem. We're using CSOM to create a sub site, set its masterpage, break permission inheritance. Executed with an account that is Site Col Admin.
It was working last week, now it is giving the following Access is denied response.
[
{
"SchemaVersion": "<IP_ADDRESS>",
"LibraryVersion": "16.0.25019.12006",
"ErrorInfo": {
"ErrorMessage": "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))",
"ErrorValue": null,
"TraceCorrelationId": "[guid]",
"ErrorCode": -2147024891,
"ErrorTypeName": "System.UnauthorizedAccessException"
},
"TraceCorrelationId": "[guid]"
}
]
Here's the code snippet.
            var webCreateInfo = new SP.WebCreationInformation();

            webCreateInfo.set_title(siteTitle);
            webCreateInfo.set_language(templateLanguage);
            webCreateInfo.set_url(genUrl);
            webCreateInfo.set_useSamePermissionsAsParentSite(useSamePermissionsAsParentSite);
            webCreateInfo.set_webTemplate(customSiteTemplateId);

            // Add sub site using newWeb global object
            newWeb = web.get_webs().add(webCreateInfo);

            //set masterpage
            newWeb.set_masterUrl(masterpageUrl);

            // Set nav
            newWeb.get_navigation().set_useShared(useShared);

            // BREAK INHERITING GROUPS
            if( useSamePermissionsAsParentSite == "false")
            {
                newWeb.breakRoleInheritance(copyRoleAssignments, clearSubscopes);
            }

            // Disable members sharing if (newWeb.get_membersCanShare())
            newWeb.set_membersCanShare(false);

            if (accessRequestEmail != null)
            {
            	newWeb.set_requestAccessEmail(accessRequestEmail);
            }

            newWeb.update();

            context.executeQueryAsync()

@Tran-Kien sorry to hear, but it's reassuring to know that we're not alone. Is seems more than likely that some SharePoint update caused this type of behavior. Please note from my original post the timeframe in which we saw the last success vs the first failure.
Last successful run: 6/18/2024 10:01:17 AM (US Central Time)
First failure run: 6/20/2024 07:03:30 PM (US Central Time)
Do you have any knowledge of your last success or first failure that can help narrow this window?
@qianghuang1 again tagging you in the hopes that someone can start triaging this breaking issue.

@brett-src Thanks for your patience. The better way in my mind to get quick support is to open a ticket by the tenant that run into the issue via Microsoft Support System instead of asking in GitHub. For the issue itself, i didn't own the service, but looks like it lacks permission to do the sensitive operations. I would suggest open a ticket, list the permission that your application identity had (used by the azure webjob), and provide a correlation id of the failed csom request so that supports/devs can better investigate on the issue.  Meanwhile, you can try to grant the app with higher privilege to see if it can mitigate this issue (like files.readwrite.all & sites.readwrite.all).

@Tran-Kien I am continuing to triage this issue. It seems that I can replicate the problem within SharePoint Online as a logged-in administrative user. So it is certainly not a problem with our scripting code and it also does not seem to be a true Access Denied problem.
There is some of SharePoint issue going on. I am trying to resolve with Microsoft Support but it's taking forever and they aren't responsive. Any tips @qianghuang1?

@brett-src last week, i internally report this issue to corresponding team, but lacks correlation id + networktrace. Can you detail you reproduce steps with admin account or provide the networktrace? You can email it to me.

@brett-src or if you have a ticket created, you can tell me the ticket number, i can forward to corresponding team

@qianghuang1 thanks very much for your persistence to help!
Action: upload & overwrite file ‘seattle.master’ in Master Page Gallery of site.
Result: Access Denied against user who has ‘Full Control’ permissions in library.
Correlation ID: 57af3aa1-b0d6-0000-1a2e-111a27bb2442
If you need more information, let me know and I can email it to you. 👍

@brett-src I personally checked the log, looks like the identity you used to upload the seattle.master lacks one permission. Please make sure the identity have web full control + ACP permission. Follow the doc: https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script. You can check the permission in the advanced check view to see if it contain all permission

Hey @qianghuang1 - I was just able to verify that the DenyAddAndCustomizePages setting is what's causing the problem. I used the SharePoint admin center to allow custom scripts for a site and then was able to update it's master page.
Why was this changed? I can see that the article you linked has a date of '07/10/2024' on it. What was the old default setting on this? I am trying to find a way to update my scripts to work, but they don't have tenant administrative rights it seems. So trying to create a Tenant and GetSitePropertiesByUrl to load / change the DenyAddAndCustomizePages is not working.
The irony in the last section of the article is pretty hilarious.

@brett-src Sorry that i don't have answer to the question, i am not owning the service. My guess is recent security enhancement may affect this, and i am not sure if this is an expected change. You can keep pushing for the ticket to ask the owner team to confirm. For me, the scenario requires ACP permission is a pretty solid permission ask for safety.

@qianghuang1 unfortunately, I am getting zero help from Microsoft Support. You've been the most helpful, so I really appreciate that you've taken some time to help me investigate.

@brett-src glad to hear it works for you. The owner team replied to me that it is a designed security enhancement. Documented in here: https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script#features-affected-when-custom-script-is-blocked
We are internally discuss to have a better way to expose this change more explicitly.

@Tran-Kien you might be interested in this code which can update the DenyAddAndCustomizePages. I created a function that turns the DenyAddAndCustomizePages to DenyAddAndCustomizePagesStatus.Disabled. Then I do my various scripting. At the end, I change DenyAddAndCustomizePages back to DenyAddAndCustomizePagesStatus.Enabled.
var tenant = new Tenant(context);

var siteProperties = tenant.GetSitePropertiesByUrl(url, true);
context.Load(siteProperties);
context.ExecuteQueryRetry();

siteProperties.DenyAddAndCustomizePages = allow ? DenyAddAndCustomizePagesStatus.Disabled : DenyAddAndCustomizePagesStatus.Enabled;

siteProperties.Update();
context.ExecuteQueryRetry();


Just curious

Look all I want to know is that is it still possible to link multiple of these together so that way when you enter one of them you can also use a different one to enter the same one or is this no longer a thing

Nope, it isn't a thing anymore. Sorry.


GitLab pats may contain underscores as well as dashes

Description:
GitLab PATs may contain underscores.  For example, the following valid (revoked) GitLab personal access token would miss being detected with the previous regex:
token: glpat-CMxPj8V-aWtE2MD1_xou
Checklist:

[x] Does your PR pass tests?
[x] Have you written new tests for your changes?  (I do not see any tests that specifically cover each detection regex.  please let me know if I've missed something.)
[x] Have you lint your code locally prior to submission?

Thanks Greg!


ng-repeat with ng-model bindings

My markup looks like this:
My markup looks like this:

And I tried to test if there is anything in the repeater with this test:
cats = ptor.findElements(
      protractor.By.repeater('cat in pets').column('cat.name')
    )
    vats.then (arr) ->
      console.log arr
      expect(arr[0]).toBeDefined() <-- not defined
      expect(arr.length).toBeGreaterThan(0) <-- not defined

i tried different values for the binding 'cat', 'name' and '{{ cat.name }}' at no avail.
When I add a regular binding to my markup like {{ project.title }} like in the samples here: https://github.com/angular/protractor/blob/master/spec/findelements_spec.js#L9
I get some results in 'arr'.
It seems to only look for the combination of 'ng-binding' and the exact column() string.
For now the only way I see to test if the repeater is empty is by selecting the first row and testing if that exists.
For anybody interested in the content a the found element:
 { then: [Function: then],
    cancel: [Function: cancel],
    isPending: [Function: isPending],
    errback: [Function: reject],
    driver_: { session_: [Object], executor_: [Object], flow_: [Object] },
    id_:
     { then: [Function: then],
       cancel: [Function: cancel],
       isPending: [Function: isPending] },
    click: [Function],
    sendKeys: [Function],
    getTagName: [Function],
    getCssValue: [Function],
    getAttribute: [Function],
    getText: [Function],
    getSize: [Function],
    getLocation: [Function],
    isEnabled: [Function],
    isSelected: [Function],
    submit: [Function],
    clear: [Function],
    isDisplayed: [Function],
    getOuterHtml: [Function],
    getInnerHtml: [Function],
    findElement: [Function],
    findElements: [Function],
    isElementPresent: [Function],
    evaluate: [Function] }

This leaves me with the problem of determining whether a row was added when 'addRow' was clicked

I think this is all possible to do with element.all and filtering now. Closing.

HI All,
I have issue to validate the value using protractor. Please advice highly appreciated. Thanks
Failed: No element found using locator: by.model("ctrl.formData.branchAddressLine1")
code:
element(by.model('ctrl.formData.branchAddressLine1')).getAttribute('value').then(function (value) {
expect(value).toEqual('Plaza Scotiabank');
})


update fr.md for Simon doc

Finished translation (that was a long one -.- )

You deserve a lot of praise for this 😇 and perhaps a promotion? I've been mulling over on how to pitch this idea to you, so I'll just come out and say it: Would you like to be responsible for diversity and inclusion within the freesewing project?
Diversity is a big issue in open source and we need to actively work towards inclusion. However, the road to hell is paved with good intentions. It's all too easy to forget about these things when you have a to-do list that makes you feel like drowning.
You've already pointed out that assuming the API docs don't need to be translated was wrong. I would feel a lot better knowing that these important issues were looked after by someone who is better at them than I am.

I am quite surprise by your reaction to my few comments but also honoured by your idea. Actually I am not familiar with these diversity and inclusion issues so I won't pretend to be better at them than you are at all.
Concerning translating the API docs, it's a bit by intellectual laziness that I thought of it first. But I'm pretty confident on the fact that :

some French people can be reluctant to speak English
you can be good in algorithmic and suck at English

I don't know if I have what it takes to lighten the load on your shoulders, but I can give you my small helping hand in this project. I will do what I can.

:) It doesn't have to be a big deal from one moment to the next. But much like having a code of conduct  can help create a friendly environment, having someone who is tasked with inclusion/diversity  sends a message about what kind of community we want to be.
We could do a few things right away:

Our code of conduct says to report problematic behavior to me. I imagine it would lower the bar for women if there it said to report to report problems to Joost or Catherine
Same thing with our contact page
We could publish a blog post to announce it  (you can write it in French if you'd like ;) )

But I don't want to push you in any way. The only thing I'd really like to see you do is tell me when I'm doing it wrong.

Well, I think I can do that. Maybe we could just mention my name in the next monthly roundup.
I will update the contact and code of conduct pages as you suggest.

Well, I think I can do that

:smile:

Maybe we could just mention my name in the next monthly roundup.

Will do!

I will update the contact and code of conduct pages as you suggest.

Only if you think that's a good idea.
Also: I will merge this now


ATE Feature: BGP Link-bandwidth extended community

Need support for BGP Link-bandwidth extended community.
Ref: https://www.ietf.org/archive/id/draft-ietf-idr-link-bandwidth-07.txt

Please use the methods provided in https://github.com/open-traffic-generator/models/pull/332.
This is available for both ixia-c and h/w in latest ixia-c builds.


Using a view engine: question

I do as it laid out in the documentation but it seems it doesn't work properly.
I have configured user service and authentication. All works well with the feathers client. But there is no restrictions when I use a custom route and use my 'messages' service in it, internally.
// hooks for the message service
messageService.before({
  all: [
    authHooks.verifyToken(),
    authHooks.populateUser(),
    authHooks.restrictToAuthenticated(),
    authHooks.queryWithCurrentUser({ idField: '_id', as: 'author' }),
    function testHook(hook) {} // hook being executed during request on custom route
  ]
});

// custom route
app.get('/messages', (req, res, next) => {
  console.log(req.feathers); // has provider === rest
  app.service('/api/messages')
    .find()
    .then(messages => { res.render('messages', { messages }); })
    .catch(err => next(err));
});

So the custom route has no restrictions. I didn't understand how do I exactly suppose to use view engine with the restrictions. How to properly restrict access to custom routes?

Hmmm.  You might have to set a provider on the internal queries:
app.service('/api/messages')
    .find({provider: 'rest'})

I know that some hooks were setup to skip if they were internal calls.  Those are probably included.  It might actually be better to set provider: 'internal' if it works.

And it that doesn't work, it might be {params: {provider: 'rest'}}  I'm a bit rusty.

@marshallswain the service gets params object, so .find({ provider: 'rest' }) seems to be the right way to assign provider value. But when I'm doing this I'm always getting NotAuthenticated: Authentication token missing. with correct token in the Authorization header.

I think @ekryski can elaborate how to do this with auth 1.0-beta. You need to enabled authentication via cookies and then us it in server side rendering with the authenticate Express middleware.

@daffl it would be fine to have a tutorial how to deal with authentication/authorization when one renders React/view engine on the server side.

Ok. Let's slow down a second. @osenvosem what are you trying to do? It seems that your question is about why your internal call to app.service('/api/messages').find(). This is because you are calling it without a provider and all of the old auth hooks only run if hook.params.provider is set.
@marshallswain was almost right. In order to ensure your hooks run you'd need to call it like this:
app.service('/api/messages').find({}, {provider: 'rest'})

Using the old auth if you want your /messages route to be restricted you'll need to lock that down yourself with middleware and you should just call your /api/messages service internally without passing params (because you should have already loaded authenticated the user and loaded them.

Guides for doing this stuff with the new auth 1.0 will come in due time.

@ekryski I was trying to restrict access to a server rendered endpoint.
As far as I know the .find() method is supposed to receive just one params object which has provider property on it, not two.
Whatever, thanks for the answers, I think I should dig 1.0 version. Do you have documentation for it besides the readme and Migrating guide?


GraphQL Shield Plugin - Error - "Received multiple implementations"

Hi everyone,
I am using GraphQL Shield with NextJS, Prisma,  & Pothos. I've literally copied the exact code from the graphql-shield example:
https://github.com/hayes/pothos/blob/main/examples/graphql-shield/src/shield-plugin.ts
While, I am running everything in devmode, but there is no hotreloading. However, when I make two pages refreshes, the subsequent request to my graphQL API, I end up getting the following error:
Error: Received multiple implementations for plugin shield
My pothos configuration looks like this:
import SchemaBuilder from "@pothos/core";
import { DateResolver } from "graphql-scalars";

import PrismaPlugin from "@pothos/plugin-prisma";
import type PrismaTypes from "@pothos/plugin-prisma/generated";

import ShieldPlugin from "lib/pothos-graphql-shield-plugin";
import { prisma } from "./prisma";

if(process.env.NODE_ENV !== 'production') {
  // SchemaBuilder.allowPluginReRegistration = true;
}

export const builder = new SchemaBuilder<{
  Scalars: {
    Date: { Input: Date; Output: Date };
  };
  PrismaTypes: PrismaTypes;
}>({
  plugins: [PrismaPlugin, ShieldPlugin],
  prisma: {
    client: prisma
  }
});

Now, this would make sense for me if some my import of the plugin was being reevaluated twice, but I am not sure why that would be the case. Separately, I am also using the PrismaPlugin and that works fine if I remove the import and addition of the ShieldPlugin.
It works if I add allowPluginReRegistration but I don't think this is the right thing to do since it's not a result of hotreloading.
Any ideas or help would be greatly appreciated?

This is a side effect of how next.js works, and allowPluginReRegistration was added for someone with this exact situation (custom plugin inside a next app).
Basically, the way that next works (as far as I know) is that it removes all user code from the module cache on every request, but preserves node_modules between requests.  This is effectively hot-reloading all user code on every request.  This means that your plugin file will get re-evaluated on each request.  This doesn't happen with the prisma plugin, because it is loaded from node_modules, so next.js doesn't remove it from the module cache.

Ah! I see. Thanks @hayes - that makes a lot of sense. Closing the issue.


[wip] add Pop operation

Make sure that you've checked the boxes below before you submit PR that adds a new operation:

[ ] I implemented the operation for all applicable types
[ ] I put all code in a seperate .go file named after the operation
[ ] I included tests for all functions
[ ] I documented all functions
[ ] I named all functions using the OperationType convention. For example MinInt32 instead of Int32Min
[ ] I included one testable example at the end of the test file
[ ] I added a simple example in the Example section of Readme
[ ] I updated the Operations section of Readme

Thanks for your PR, you're awesome! :+1:

Codecov Report

Merging #26 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #26   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines        1366   1290   -76
=====================================
- Hits         1366   1290   -76

Flag
Coverage Δ

#unittests
100% <100%> (ø)
:arrow_up:

Impacted Files
Coverage Δ

pop.go
100% <100%> (ø)

shuffle.go

Continue to review full report at Codecov.

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


Support private GitHub packages

We switched from Gemfury to GitHub private packages thinking that you would be able to make a PR for a project using a GitHub package. It looks like it is not the case.
Do you plan on supporting GitHub private packages since Dependabot is part of GitHub?
By supporting I mean supporting having a Gemfile containing private repositories, not filing security issues for those dependencies.
If you do not, do you have any alternative to offer for us to have automated security PRs?

It's coming! Please follow https://github.com/github/roadmap/issues/67 for updates 🎉


LookAt, Gesture, and Emote samples?

I cloned this repo locally and then used a full text indexing package on its contents.  I can't seem to find any samples that show how to use AWS scripting to do the following operations:

Execute the Host component look-at feature (E.g.- look at camera)
Execute the Host component gesture feature
Execute the Host component emote feature

I need to be able to do these things from the new Preview Scripting environment, not the legacy scripting environment or from a IDE provided state machine.  Where can I find sample code for these features?

Hi @roschler. This makes Host functionality available to open source engines like three.js and Babylon.js, it is not compatible with the Sumerian engine as it already has hosts as a built-in feature. I would suggest reaching out to the AWS forums or Sumerian slack channel for help with the Sumerian scripting API:
https://forums.aws.amazon.com/forum.jspa?forumID=300
http://slack.sumerian.aws/

Thanks will do.  I thought this was a set of samples for AWS Sumerian native.  Sorry.  As far as the Slack goes, it's hit or miss over there.  Some weeks responses come reliably.  Other weeks, there are long periods with no answer.  I've been trying to get answers on how to do the three features I mentioned above off and on for 2 months now and still no luck.  The AWS "official" forums have, over the years, given me a response rate around 10% so it's just not worth the effort (i.e. - for every 10 posts I make I get one reply and not necessarily a helpful one).

@c-morten One other question.  Is there any reason that I should stick with Sumerian native over what this repo offers?  I have Three.js experience and I am not using Lex.  Instead I do my own chat handling and I could easily switch to calling Polly directly because I already do that in other applications I have written.  Also, I don't intend to publish a Sumerian scene, instead I will be beaming a session over Twitch.
Is this repo stable?  Like I said, now that I understand what it does, thanks to your reply, I'm wondering if it's the better choice for me?

The host functionality we offer here is at parity with what you'll find inside Sumerian, with the added benefit that you can use it with your own custom 3d content if you prefer. So the choice really depends on what other functionality you require. If all of the features you need outside of hosts have equivalents in three.js then the only benefit for using Sumerian would be the editor.
As far as stability goes, this is a new repository. We have tested quite a bit with our own assets but there's always the possibility for bugs once more people start using it since I'm sure it will be used in ways we hadn't originally considered. That being said, we monitor the issues and do our best to release fixes quickly when issues are reported. The npm package is versioned so it's always possible to get the a version you know to be working if a bug were to be introduced.
If you want to get up and running quickly to test this repository out, I would suggest cloning the repository and reading through the Getting Started in three.js steps in the readme. The steps walk you through an example implementation in three.js and should give you a general understanding of the API. We provide the finished example in the examples folder, all you need to do to see it working is add a cognito ID with permissions for Polly and run it on a local server.

@c-morten Excellent, I will do that.
What is the best sample for learning how to get the Host to look at another item realistically?
For example, suppose a Host was standing face forward and looking at the camera, and I wanted them to look at another Host standing directly along side of them (i.e. - to the left of them, also facing the camera).  I don't want them turning completely sideways to face that other Host and thereby offer up only a profile view of themselves.  Instead, I would like that Host to turn their head and then somewhat angle their body to look at the other Host, instead of doing a full body turn to face them.  On the other extreme, I don't want them just facing the camera directly and just swiveling just their eyes to look at the other host.  How would I do this with the usual tweening?
The overall context would be two Hosts facing the camera for a presentation, and one of them looking at the other in a natural manner when the other Host is speaking.  Like a pair of newscasters.

The example we provide includes a basic look interaction. There are 2 hosts and when one speaks, the other will look at the speaker. It uses the same type of point of interest functionality that we have in Sumerian, so you'll see the head/neck and eyes rotate at different speeds and to different extents, and the eyelid and brows move along with the eyes.
If you wanted to take this further, you could add more animations for turning the body and either add another layer to the point of interest configuration to drive those animations (you can look at the existing configuration for details on what inputs are required) or trigger body rotation animations manually based on conditions you define in your script. Although we focus on lipsync, gestures and point of interest in the example, you can trigger an animation at any time using the AnimationFeature. Mixamo is a great place to go for finding free to use animation content.

@c-morten Thanks again!  I'll check it out.  I hope it works better than the native Sumerian stuff though.  I haven't gotten that work, either via state machine step using the PointOfInterest action set to the other Host, or from Scripting by emitting a ".setLookAtTarget" message on the system bus.  The Host just seems to look around at random places, sometimes the other host's feet, etc.

No problem, hopefully this repository can be helpful to you. Please don't hesitate to submit issues here if you run into errors or things don't work as expected.

@c-morten I just installed the node.js package and set up a quick test.  Can you point me to a document that tells me how handle AWS credentials issues in a secure fashion?  Normally when I do my Polly/S3/DynamoDB/etc. AWS work, that activity occurs solely on the back-end server side so I'm working from the AWS credentials store on my server.
But I assume the "three.html" sample is meant to be used in a typical browser, and therefore I don't want to keep my credentials information client side (i.e. - in the browser).  Is there a document that tells me what do do here?  I already have my Cognito Identity Pool ID from my Sumerian project.  But I thought that too was stored only on the server side but in this case on the AWS servers and not mine, and that the Cogito ID should not be shown to the client?  Either way, is there a doc that tells me how to set up the AWS credentials and Cogito info properly in a secure manner to use the three.html sample in a browser?

@c-morten That did it, thanks!  Using the right animation path fixed my "lost in space" problem with the Host positioning.  I'm good to go now.

Do you know where I can find a complete list of all the emotes and all the gestures for each character?

BTW, I can't shake the feeling that the animations in Sumerian-Hosts/ThreeJS are smoother than in the Sumerian canvas environment.  Also, the shading of the characters and the ambient lighting seems more pleasing and easier on the eye.  Have you found that to be true too?


added an txt report screenshot

Pull Request Test Coverage Report for Build 922211355

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

Totals

Change from base Build 922208224:
0.0%

Covered Lines:
1379

Relevant Lines:
1504

💛  - Coveralls


Add mkdocs publish to pages

I've copied readme as index page.
I've tried CI job in my fork, it works. URL for docs in my fork returns 404, but probably it is repo setup issue.

Resolves #32

Big thanks for your work, @mrparalon !


Adjust JSON Mapping to fit a useable structure

Remove the value "Infinity", it is not allowed in JSON
Parse utf8 codes to ö, ä, ü etc.

Infinity issue is solved in #96, we might shift the responibility for utf-8 encoding to the client application.


Use Ubuntu 20.04 on doc generation workflow

The ubuntu-latest image used in the docs.yml workflow resolves to Ubuntu 18.04.  Our Doxygen setup was developed on a far more recent version of Doxygen which is satisfied by Ubuntu 20.04.
Unfortunately there is no perfect way to fully test this prior to merge, but a test example, with the only issue being one SVG badge (which I'm assuming is related to Firefox security settings) can be viewed at my personal site linked in team chat.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Doc Generator seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


New fast api and pydantic error

Hi,
I would ike to try this project for personal use, I used to use Tus-go with docker Image, the project works fine with the requirements.txt provided in the root folder of the repo.
But with the latest fast api version and pydantic v2 I think things have moved somewhere,
I have This error
{
    "detail": [
        {
            "type": "missing",
            "loc": [
                "query",
                "args"
            ],
            "msg": "Field required",
            "input": null,
            "url": "https://errors.pydantic.dev/2.5/v/missing"
        },
        {
            "type": "missing",
            "loc": [
                "query",
                "kwargs"
            ],
            "msg": "Field required",
            "input": null,
            "url": "https://errors.pydantic.dev/2.5/v/missing"
        }
    ]
}

and my requirements.txt is the following:
annotated-types==0.6.0
anyio==3.7.1
certifi==2023.11.17
click==8.1.7
dnspython==2.4.2
email-validator==2.1.0.post1
fastapi==0.104.1
h11==0.14.0
httpcore==1.0.2
httptools==0.6.1
httpx==0.25.1
idna==3.4
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.3
orjson==3.9.10
pydantic==2.5.1
pydantic-extra-types==2.1.0
pydantic-settings==2.1.0
pydantic_core==2.14.3
python-dotenv==1.0.0
python-multipart==0.0.6
PyYAML==6.0.1
sniffio==1.3.0
starlette==0.27.0
tuspyserver==1.3.1
typing_extensions==4.8.0
ujson==5.8.0
uvicorn==0.24.0.post1
uvloop==0.19.0
watchfiles==0.21.0
websockets==12.0

PS: I would like to contribute to this project, but I dont know where the problem is in the code-source
Thank you very much

hey Mohamed, I will try to find some time as soon as possible this week to update to the latest pydantic version so that you can use it in the newest version. I had plans to do so earlier but busy days... thank you for the contribution


fix: runtime parity

Fixes https://github.com/microsoft/botbuilder-js/issues/3411

Pull Request Test Coverage Report for Build 665395299

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 85.084%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build 663120321:
-0.01%

Covered Lines:
18786

Relevant Lines:
21032

💛  - Coveralls


Add documentation about the PKS_HOME env var

Story for context: https://www.pivotaltracker.com/story/show/158810889
This will also be backported to the 1.0 docs
[#158810889]

Thanks @chinangela!


Api documentation

API Documentation

Add Rspec and Rswag Gems
Add tests and swagger config files
Create API documentation using swagger

Hello @shahira-sadat
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉 :clap: :clap: :100:

To highlight :champagne:

All linters are passing :heavy_check_mark:
Good commit history :heavy_check_mark:
Good PR description :heavy_check_mark:
Your README file is now professional :heavy_check_mark:

Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


client-ip-echo: <IP_ADDRESS> -> <IP_ADDRESS>

Motivation for this change
unbreak the build
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build client-ip-echo

Success on x86_64-darwin (full log)
Attempted: client-ip-echo
Partial log (click to expand)
Warning: The directory
/nix/store/lw02jr0slkqrf6028gn5rwz4hfq3l257-client-ip-echo-<IP_ADDRESS>/bin is not
in the system search path.
post-installation fixup
strip is /nix/store/g5r4apl0za012ffs6ladinwa5w0m1l3k-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/lw02jr0slkqrf6028gn5rwz4hfq3l257-client-ip-echo-<IP_ADDRESS>/lib  /nix/store/lw02jr0slkqrf6028gn5rwz4hfq3l257-client-ip-echo-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/lw02jr0slkqrf6028gn5rwz4hfq3l257-client-ip-echo-<IP_ADDRESS>
strip is /nix/store/g5r4apl0za012ffs6ladinwa5w0m1l3k-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/2fk75ll9hp7w2z7hgnm8b75iflkhrza4-client-ip-echo-<IP_ADDRESS>-doc
/nix/store/lw02jr0slkqrf6028gn5rwz4hfq3l257-client-ip-echo-<IP_ADDRESS>

Success on x86_64-linux (full log)
Attempted: client-ip-echo
Partial log (click to expand)
shrinking /nix/store/2nvnnrjicsasqrxrss94igvzdajrr548-client-ip-echo-<IP_ADDRESS>/bin/client-ip-echo
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/2nvnnrjicsasqrxrss94igvzdajrr548-client-ip-echo-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/2nvnnrjicsasqrxrss94igvzdajrr548-client-ip-echo-<IP_ADDRESS>
checking for references to /build in /nix/store/2nvnnrjicsasqrxrss94igvzdajrr548-client-ip-echo-<IP_ADDRESS>...
shrinking RPATHs of ELF executables and libraries in /nix/store/d2m25l0m46f5a0414ml7hs3za14pa7aa-client-ip-echo-<IP_ADDRESS>-doc
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/d2m25l0m46f5a0414ml7hs3za14pa7aa-client-ip-echo-<IP_ADDRESS>-doc
checking for references to /build in /nix/store/d2m25l0m46f5a0414ml7hs3za14pa7aa-client-ip-echo-<IP_ADDRESS>-doc...
/nix/store/2nvnnrjicsasqrxrss94igvzdajrr548-client-ip-echo-<IP_ADDRESS>

Failure on aarch64-linux (full log)
Attempted: client-ip-echo
Partial log (click to expand)

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make[1]: *** [rts/ghc.mk:295: rts/dist/build/HeapStackCheck.o] Error 1
make: *** [Makefile:127: all] Error 2
builder for '/nix/store/q8naayl1j87njk2cj4ylrn8pxq13jxrn-ghc-8.4.4.drv' failed with exit code 2
cannot build derivation '/nix/store/ljgd1vvgcg6hfg6ln9vl8yla229xfcsg-hscolour-1.24.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bna6bcngz42z3zyr9dvpv3h78virrraf-network-<IP_ADDRESS>.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/hk4449y51kw0d0vwdycscwd0vklzya3m-client-ip-echo-<IP_ADDRESS>.drv': 2 dependencies couldn't be built
error: build of '/nix/store/hk4449y51kw0d0vwdycscwd0vklzya3m-client-ip-echo-<IP_ADDRESS>.drv' failed

The aarch64-linux failure looks like some kind of GHC bug ... ?

Yes, that's a dependency that fails here.


Proxy/mobile Safari crashes on Pause Script execution

iPhone 5, iOS 7.0.1
Windows 7 64bit
Using devtools here:
http://chrome-devtools-frontend.appspot.com/static/27.0.1453.93/devtools.html
Clicking the Pause script execution button on the sources page crashes Safari on the device and sometimes the proxy server as well.

@Graham-Phillips I tried to pause script with latest iOS and a few other devtools vers and I can confirm the crash. Gonna investigate this stuff, thanks for the report!

@Graham-Phillips I'm still not sure if there anything I can do about the issue. You can try to debug with one of the webkit inspectors, I extracted a few versions here


Switch mattermost-redux back to master

https://github.com/mattermost/mattermost-webapp/pull/5447 accidentally left mattermost-redux on a PR branch (with the latest master changes included) instead of master itself, so this is just some cleanup.

/check-cla


fix(migrate): Introspection of schemas with no datasource

It was broken since #24297. Reason for that: for introsepction from url,
we remove existing datasource from the schema and add a new, fake one.
While working on multifile schemas support, i've introduce
replaceDatasource function for that. It did pretty much what it said:
found the file which had a datasource defined and replaced that with a
new one. However, if it did not find one, it would not add a new one -
so if schema had no datasource at all, it will stay invalid and schema
engine will boot us off.
Some people might've noticed that it worked correctly when there were
empty line breaks at the end of the schema file. That's a case of two
bugs leading to somewhat correct result: replaceDatasource function
relied on content !== removeDatasource(content) to determine if the
datasource was indeed removed from a file. And besides remiving the
datasource, it turns out, removeDatasource also trimmed newlines.

I think the tests are failing now after the removal of trim() @SevInf

@Jolg42 I realized removeOrAddDatasource is still a bit flimsy and error-prone and reworked it, completely removing removeDatasource and trimBlocksFromSchema


Make bundle.js cache

For faster loading

this is automagically done by any modern browser because index.html reffers to it


K-mers input to GCSA: kmer, node+position, previous characters, successive characters

Updated title. vg should produce an output stream that can be used by GCSA2 as input. The format (as @jltsiren and I have discussed) should look like:
label, starting_position, previous_chars, successive_chars, successive_positions

Where positions in the graph are given as (node_id, offset) pairs. A label is a kmer. The previous characters are the characters immediately prior to the position in the graph--- for instance there might be only one if the position is in the middle of a node, or many if it is at the beginning and there are multiple inbound edges. The successive characters are those immediately after the kmer, and as with previous there can be several if there are several outbound edges. The same applies to the successive positions.


Get All Messages

Can you add a function to pull down all messages? Using [im.list(), groups.list(), mpim.list(), channel.list()] the slack APIs allow you to get a complete list of conversations for the current user token which could then easily be iterated through to log the entire system.
I've started trying to make this work but I have no experience with node.

Cool, will add it the next time I am working on this.

I've found a way to re-implement this using bash and the baser Slack API calls, so I no longer need this feature (but other's might want it so I'll leave it open.)

@humor4fun Would you be willing to share your bash solution as a gist or something for the rest of us?

@beporter Take a look at my slack-backup repo for the script and let me know if that solves your question. I started writing a few other tools  around this line of thinking that I'm not comfortable releasing into the wild yet.

Oh very nice. I identified a few glitches when running the script on a Mac (that uses VSD sed and grep by default instead of the GNU flavors), but I'll try to open an issue or create a PR later. Thank you both!

I wrote it on and for running from a Kali linux VM, if you have a player you can get a copy of the prebuilt vm from their website.


Brew doctor gives a No developer tools installed on Catalina and they are

Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

[ x ] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
[ ] ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
[ x ] ran brew update and can still reproduce the problem?
[ x ] ran brew doctor, fixed all issues and can still reproduce the problem?
[ x ] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)
Run brew doctor
What happened (include command output)

Command output

brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: No developer tools installed.
Install the Command Line Tools:
xcode-select --install

Running the suggested command:
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

There are no updates available.
What you expected to happen
No warnings from brew doctor
Brew config output:
brew config
HOMEBREW_VERSION: 2.1.14-39-g48f54d1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 48f54d17f8e41fc9588a500b44027547c4058bab
Last commit: 34 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6eb3028f2c4a37ac8bb89e9adb6631f9ff70125d
Core tap last commit: 45 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_VISUAL: nano
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: N/A
Git: 2.23.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_221, 1.8.0_211, 1.8.0_201, 1.8.0_191
macOS: 10.15-x86_64
CLT: N/A
Xcode: N/A

[ ]  ran brew config and brew doctor and included their output with your issue?

brew config output added. brew doctor was already included.

Please always read and fill out the issue template for future issues.
What happens if you open Software Update?

Sorry about that. Was reading the issue and you closed it before I was able to get things updated. I know for my next issue (hoping there isn't one) in this repo what is needed.
The AppStore shows no updates, and the System Preferences->Software Updates shows no entries.
I typically run brew doctor daily and don't recall this warning yesterday, but I rebooted when the Mac 10.15 Supplemental update was applied so can't go back in the terminal to verify.
It could be related to applying yesterday's supplemental update.

Exact same issue here. Also on ff70125d.


Collections available in public Learn profile

Hi team,
I have created some Collections in Microsoft Learn with various learning towards my certifications which may be of interest to other learners. I’d like to share them, and have them visible when they view my profile, however the Collections are not available in my public profile.

Various Collections are visible when viewing my own profile while logged in (image 1).
When using the same url https://docs.microsoft.com/en-us/users/ingezb/collections in an InPrivate window it immediately redirects to https://docs.microsoft.com/en-us/users/ingezb/ where all my Achievements (Trophies and Badges) are publicly available to anyone. Collections however, are not there (image 2).
When taking the link of a specific Collection https://docs.microsoft.com/en-us/users/ingezb/collections/e240c667qe7q7w and using that in an InPrivate window, my Collection is publicly available (image 3). So I can use them and share the individual links with anyone. But if I’ve shared an individual Collection and someone is interested to see if I have other Collections that are helpful to them, there’s no possibility for them to get there.

Please review to make Collections visible in public Learn profile to promote sharing of learning.
To make it a bit more complicated to implement, you can image that someone would like to make some Collection publicly available while keeping some other Collection private. So, some slider ‘Private Collection’ in the header of a Collection would be nice, similar to the Privacy Settings ‘Private Mode’ in settings but then per Collection (image 4).
Thx for reviewing, kind regards, inge

Create and maintain a GitHub repository as a workaround. Include links to all my Collections in README.md. Modify Microsoft Learn Collections to refer to GitHub repository.


App not taking and picking video on android

Bug Key Not Found Exception: , Exception: System.Collections.Generic
Version Number of Plugin: 2.0.1
Device Tested On: Windows 10 mobile phone , Android API 19
Simulator Tested On: Win 8.1
Expected Behavior Take videos and pick videos from a directory
Actual Behavior It's working fine for all windows platforms i have tested it on ,but its not taking a video on android and allowing me to pick the video. When I click the pick video button on android i get a
Key Not Found Exception and when i click the take video button , my app crushes and i get a Unhandled Exception: System.Collections.Generic. KeyNotFoundException: The given key was not present in the dictionary.
Steps to reproduce the Behavior

Have you tried the latest version 2.6.1?
Can you post a stack trace on http://gist.github.com

2.6.1 will update my Xamarin forms which caused android resource errors

Let me do this James , i am going to try upgrade my Xamarin To the latest version then install 2.6.1 , if i still get the same problem , will get back to you

2.6.1 does not have any dependencies at all on Forms, so that shouldn't have been an issue.  I'll take a look though.

If you can give me a stack trace I can try to re-produce. Using my simple sample app I didn't have any issues though.

when i install 2.6.1 it updates a couple of nuget packages on my android
project including xamarin forms
On Tue, Nov 29, 2016 at 7:07 PM, James Montemagno<EMAIL_ADDRESS>wrote:

If you can give me a stack trace I can try to re-produce. Using my simple
sample app I didn't have any issues though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#issuecomment-263632726,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6Xzty9zow9xFYQyJK36YQ2rj0HWaSks5rDFvYgaJpZM4K9pBq
.

Are you sure you are only selecting the single Media Plugin and not accidentally hitting update all?

I guess if you are on a really old version of Xamarin.Forms you would have 23.0.x of support plugins and you will now need 23.3.0 which was a requirement of Forms: <IP_ADDRESS>

ok James , but if yesterday i removed my Xamarin for vs and intsalled the
latest version which installed Xamarin.Forms <IP_ADDRESS> but each time i
created a new solution for Xamarin.Forms PCL and try debug on android
before i even change any code i would get a popup on vs reuesting me to
look for naigationpagerenderer.cs file and eventually get this exception
Xamarin.Android.Support.v4 missing and if i checked inside my packages
folder i only saw Xamarin.forms <IP_ADDRESS> and no other packages like
Xamarin.Android.Support.v7.AppCompat , Xamarin.Android.Support.v4. I had to
remove the Latest Xamarin and install the version i had before. Now i am
really stuck , please help me out really need to finish this app.
On Wed, Nov 30, 2016 at 8:37 AM, James Montemagno<EMAIL_ADDRESS>wrote:

I guess if you are on a really old version of Xamarin.Forms you would have
23.0.x of support plugins and you will now need 23.3.0 which was a
requirement of Forms: <IP_ADDRESS>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#issuecomment-263795594,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6Xyq21E82DpCux3sT3NH-R6LOEi9Yks5rDRm4gaJpZM4K9pBq
.

if you have a sample app you can share it with me and I can take a look, but I am not sure exactly what is going on with your machine sorry.

ok please find the attached sample
FTrial.zip
https://drive.google.com/file/d/0B0jt2BoyHoztWTZUY3poOW5xQ1k/view?usp=drive_web

On Thu, Dec 1, 2016 at 1:32 AM, James Montemagno<EMAIL_ADDRESS>wrote:

if you have a sample app you can share it with me and I can take a look,
but I am not sure exactly what is going on with your machine sorry.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#issuecomment-264030849,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6X6UVP1POt5f_77jaewlf4jsguJ0jks5rDgeYgaJpZM4K9pBq
.

I opened your project.
Right clicked on Solution and hit "Manage Nuget Packages"
Under Install went to Media Plugin and Clicked on it
Select 2.6.0 and hit install
Everything updated fine.
I then did the same for xamarin.forms to update to 2.2.0
2.6.1 requires a few new files and the readme.txt opens so I did that.
I hit compile -> Debug-> everything worked fine on my Nexus 6P for picking video.
For taking a video there was a crash because you added:

You don't need that. Removing it fixes any crash taking a video.
FTrial.zip

Thank you James , will try that. Sorry but i think you didnt finish this
statement "For taking a video there was a crash because you added:" im a
bit lost there
On Fri, Dec 2, 2016 at 5:22 AM, James Montemagno<EMAIL_ADDRESS>wrote:

Closed #139 https://github.com/jamesmontemagno/MediaPlugin/issues/139.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#event-879478231,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6X-dtYmC90k36YCmjZ5gxX8-U-eoqks5rD47ngaJpZM4K9pBq
.

Updated comment see above.

I also uploaded the updated sample.

Ok thank you James
On Fri, Dec 2, 2016 at 8:38 AM, James Montemagno<EMAIL_ADDRESS>wrote:

I also uploaded the updated sample.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#issuecomment-264384952,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6XwmOtJCx-u1qbESpFyO1NFww3KqKks5rD7zqgaJpZM4K9pBq
.

Thank you James my app is now working perfectly. Is there a frame for holding the uploaded viseo on xamarin.forms ? just like when you take an image ?

There is not, you would need a custom control to playback video.

Hi James ,I’m trying to make a shopping cart where by a user can click a
list view item and it is added to the shopping cart. Do you have any idea
on how I can do that?
On Fri, Dec 2, 2016 at 8:37 PM, James Montemagno<EMAIL_ADDRESS>wrote:

There is not, you would need a custom control to playback video.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jamesmontemagno/MediaPlugin/issues/139#issuecomment-264528297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARU6X8y-sP4FFuBdaLfmQhiweKh_MrVwks5rEGVYgaJpZM4K9pBq
.


Question about add new joints on exsiting joints

Hi Robert:
I have a question regarding to the dembones. If i already have exsiting joints and would like to add another 10 joints  to get better result. How can i do that?
I tried simply add nB by 10 but compute will call  init() first and will return nB to 1 since the m and w matrix will not equal to nB anymore. Did i missing anything? hope you could help me .
Thank you
Yang

already solved

Hi Robert: I have a question regarding to the dembones. If i already have exsiting joints and would like to add another 10 joints to get better result. How can i do that? I tried simply add nB by 10 but compute will call init() first and will return nB to 1 since the m and w matrix will not equal to nB anymore. Did i missing anything? hope you could help me . Thank you
Yang

Hi Yang,
Sorry I reply here, I'm 3d modeler artist and not familiar too much with script, can you help me I install this script? I followed the instructions but I got an error when I used in Maya .