JukeBox and NoteBlockAPI don't work at all on 1.13

Viaversion dump: https://dump.viaversion.com/ae49f6fd851ea2fd861daf0dc5548047aa8eee041a95d867e9c21b8674a92441\
I use Bungeecord 1344 (last version) and git-Spigot-550ebac-7019900 (MC: 1.8) API version 1.8-R0.1-SNAPSHOT. The problem is that I cannot listen to any kind of music from a JukeBox on Spigot 1.8 with viaversion on minecraft client 1.13. Nor NoteBlockAPI or JoinMusik work on 1.13, but on older versions they work just fine. Here is a list of plugins I use:
icJukeBox, CustomHelpMessage, RemoveJoinLeaveMessage, WorldEdit, CommandBlocker, GroupManager, EasyBackup, WorldGuard, WordBlock, Emotes, NoteBlockAPI, ViaVersion, CustomJoinItems, Vault, JoinMusik, EssentialsSpawn, Authme, HolographicDisplays, CitizensCMD.
No, there is no error in console.

If you really want a 1.8 server, please use Spigot 1.8.8. It is the only 1.8.X version where ViaVersion is tested on.

I've just upgraded to git-Spigot-db6de12-18fbb24 (MC:1.8.8) (API 1.8.8-R0.1-SNAPSHOT) and it's still not working. I've tried with 1.8 - it works, I've tried with 1.12.2 - it works. Only on 1.13 it doesn't work at all (the normal jukebox block with music dics is not working either). Here is a new viaversion dump if you need: https://dump.viaversion.com/a4ab46d7e20b7f055bbb2a15b0e71f9402311ebca9a1c8f79b51abe6e17741ac

Can you test and see if this is fixed in the dev version?
https://ci.viaversion.com/job/ViaVersion

Yes it is fixed! Thank you so much!


Reverse iterator for WindowStore

Initial draft for https://issues.apache.org/jira/browse/KAFKA-9929
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

cc @mjsax @vvcephei @bbejeck

Closing in favor of https://github.com/apache/kafka/pull/8976


Tsd install angular2 - doesn't work

Hello Deborah,
I tried this command: tsd install angular2 --save
But I got this result: >> zero results
How can I fix this problem?
Thank you.

You should not need to use tsd with Angular 2. It uses typings instead. See this for more information: https://github.com/DefinitelyTyped/tsd/issues/269


How to use RWOps

I was wondering how to read/write from RWOps srcs.... I would love an example using a io.Reader or io.Writer since that is very standard and commonly used. The goal here is to statically load assets that can be compiled and bundled into the Go binary, meaning that rather than opening a file, I will need to load fonts, images etc from memory.

Hi @rucuriousyet! I decided to make the functions to look more Go-like and conforms to standard Go I/O interfaces. I've also added an example to .go-sdl2-examples/examples/rwops/memory.go. Let me know if it does or doesn't help you!


Profile displaying twice

Describe the bug
In the top tab, my user profile shows up twice, there are also 2 friends tabs, and whenever I click on a map, the leaderboard shows up twice as well, with the top one saying "undefined" in the map decription window
To Reproduce
No Idea. Never did anything to the extension, I am on Microsoft Edge, but when I imported my backup into chrome, I saw the same thing, however it was gone upon refresh
Expected behavior
Only one of each tab:(
Screenshots

Please complete the following information:

OS: Windows 10
Browser Microsoft Edge
Browser version 94.0.992.31

Additional context
I think this issue started appearing about a week back. I could be wrong though

Officially the project is no longer supported, but I took a look at it. I'm not able to reproduce it at home on the exact same version of the browser.
But I see that Umbra added something called Rocket Loader managing the javascript loading and this is probably the reason for this behavior. Judging by your screenshot my userscript is running twice because I see a double avatar with a flag on the navbar.
Could you press F12 and in the dev console check if you see the duplicated "[ScoreSaber country leaderboard] init" message?

I just released version 1.8.4 with protection against double initialization of the script. Did it solve your problem?

And by the way... I encourage you to try https://ssr.motzel.dev It doesn't support all the features of this userscript yet, but it has some cool new features 😁

It did! Thanks a lot! Would you still like the screenshot?

Since it's working I'm closing the issue. I'm glad it solved your problem 😁


Image display problems

Dear Danny,
when i used this project in my own, but the image is not one I like，the  image is darker than the actual image with RadiAnt ，
i try set the windowLevel and windowCenter to change the color，but it also not what i want ，I don't know how to do it. can
you help me?

Did you solve the problem? I had the same problem

me too


add module to merge assets

Hello @squioc :)
Same question as here:
How can I test it on the test platform ? Thanks

As soon as it is merged you can try it on test @pbivic


updated version number in example

v0.1 did not support the "clean_repo" option, so the example as given failed.

good catch


Fix #185 Draggable position system is counter-intuitive

See issue #185

Sweet. Nice improvement.


Bug: Requirement of client_id in OpenID Provider Configuration Information URL violates spec

Currently, to retrieve the OpenID Provider Configuration Information, a user must provide a client ID as a query parameter (e.g. https://api.veda.usecustos.org/api/v1/identity-management/.well-known/openid-configuration?client_id=veda-iui65nmkgaf7bihdyndc-10000000).
The OpenID Connect Discovery spec states:

OpenID Providers supporting Discovery MUST make a JSON document available at the path formed by concatenating the string /.well-known/openid-configuration to the Issuer.

By requiring a ClientID to be provided, we violate the above requirement.
As a demonstration of how this seemingly innocuous detail can affect greater systems, consider a tool like oidc-client-ts. This automatically builds the OIDC Configuration URL based on the provided Issuer:
https://github.com/authts/oidc-client-ts/blob/8181652f609242dd14ee1ae4f6b82a9a5116f966/src/OidcClientSettings.ts#L256-L261
Tools like Radiant Earth's STAC Browser build upon this library:
https://github.com/radiantearth/stac-browser/blob/8780e95dd359e67398664ddf6e99628f8c79de7c/src/auth/oidc.js#L12-L19
As such, the Radiant Earth STAC Browser is currently incompatible with VEDA Auth Central.

/cc @lahirujayathilake

Closed by 5ced43e6c35a0483aebe7d054761dffac507adae

Fixed with - https://github.com/NASA-IMPACT/veda-auth-central/pull/98


Test admin functionality

Tested on mobile with the server build and also tested on local build with the new sizing and button options. Database update for all users on same build but new builds reset to the old database we believe. More testing is required.
[t: 120]


possible problem with dynamic_pointer_cast

Hello,
could it be that the implementation of dynamic pointer_cast is wrong?
i believe it should be:
 template<typename _U, typename _T>
  intrusive_ptr<_U> my_dynamic_pointer_cast(intrusive_ptr<_T> __r) noexcept {
    const auto __u = dynamic_cast<_U*>(__r.get());
    if(__u){
      __r.release();
    }
    return intrusive_ptr<_U>(__u);
  }

with $dynamic_cast<_U*>$ as in the code i post instead of $dynamic_cast<_U>$ as in the repository

Thanks. Those are typos and have been fixed now.


enable windows testing on CI build

The CI build fails the test on the window runner, while executing the bootstrap.ps1 script of vcpkg, probably due to a bug in vcpkg.
Sample of this error:
https://github.com/lukka/run-vcpkg/runs/400284824
Once the error is identified and solved, re-enable the test execution on windows.

fixed in #37


Disabling unused import warnings

Is it possible to turn off unused import warnings? They are rather annoying in haxe-react projects with jsx-function when component class imports are marked as unused.

Tools -> Program Settings -> HaxeContext -> Enabled Compiler Services. Disable the Diagnostics support.
Alternatively you can also disable linting in the LintingHelper section.

@Neverbirth
Thank you for your help)


Rules based response (analyze request)

The idea is to switch from Alts as they are now to Rules which would determine the Alt to return

The idea is to switch from Alts as they are now to Rules which would determine the Alt to return

Ended up extending the responsibility of Alt.
Alt can contain a condition like x = 5 and if a request has a variable x with value of 5 then this route will be used.
Implemented in v0.0.9


Set "featrues" -> "nesting=1" doesn't work

Setting nesting feature for LXC Containers did not work.
        $this->req->Login($this->configure);
        $dataArrayApi = array(
            "features"        => "nesting=1"
        );
        var_dump($this->nodes->setLxcConfig("node", "1111", $dataArrayApi));

I've just tested the api with a bash curl and it would work fine.
Something strange is happening within in curl-class. The POSTFIELD Data are encoded correctly and the result of the above written code looks fine object(stdClass)#43 (1) { ["data"]=> NULL } but the change wasn't applied in proxmox.
I'm using the current API Class dev-master 375f70a and php-curl-class 8.10.0

Closed.
It's a perm issue wihin proxmox.
https://forum.proxmox.com/threads/set-features-via-http-api2-doesnt-work.102966/
KR
Nico


froala 2.6.2 update

just registering my interest in testing out froala 2.6.2 with the angularjs plugin
https://github.com/froala/wysiwyg-editor/releases

You can easily update the editor at anytime by running: npm update froala-editor. The Angular plugin doesn't have to be updated separately.


Keybindings not working

One user reported that Qtile keybindings are not working for them. I tried out the latest axyl-qtile in a VM and I get the same issue too.
On top of that, I get this error on the statusline:

I assume the issue happens because Qtile updated and it broke some of the configuration options. We may have to read the Qtile changelogs and modify config.py to fix this issue.

Qtile keybindings in config.py conflict with sxhkd keybindings. After removing all Bspwm keybindings in sxhkdrc and restart it, Qtile keys are ok


Confusion about correct learning rate when running contrastive fine-tuning

Hey,
first off - great work, I really like the idea of SetFit! I like it so much in fact that I want to reproduce it :grin: . In the paper you mention that you use a learning rate of 1e-3 for all the few-shot experiments. When looking at scripts/setfit/run_fewshot.py I can see that this is in fact the argparse default value for the lr parameter
https://github.com/huggingface/setfit/blob/fa1021d2355f0cb3a2c85732ee7ffe44b0cef0d1/scripts/setfit/run_fewshot.py#L50
However, when the trainer instance is created or train is called, the lr parameter is not actually passed,
https://github.com/huggingface/setfit/blob/fa1021d2355f0cb3a2c85732ee7ffe44b0cef0d1/scripts/setfit/run_fewshot.py#L121-L131
https://github.com/huggingface/setfit/blob/fa1021d2355f0cb3a2c85732ee7ffe44b0cef0d1/scripts/setfit/run_fewshot.py#L143-L144
meaning that the trainer will fall back to the default value for that parameter, which is actually 2e-5.
https://github.com/huggingface/setfit/blob/fa1021d2355f0cb3a2c85732ee7ffe44b0cef0d1/src/setfit/trainer.py#L87
In my local implementation of SetFit, 2e-5 also seems to work a lot better than 1e-3, which can lead to extremely unstable results. Just wanted to confirm that 2e-5 would be the recommended value to use rather than 1e-3?
Thanks in advance!

Hello!
Well spotted! That is a bug in setfit/scripts/setfit/run_fewshot.py. In my personal experiments, values around 2e-5 have worked the best. Using trainer.apply_hyperparameters, I found that 3e-5 works well for me. My quick tests just now with 1e-3 only produce very poor results. For a binary classification task using the sst2 dataset, 2e-5 produces an accuracy of approximately 85%, while a learning rate of around 1e-3 gives an accuracy of ~50%, which is obviously useless in a binary classification task.
To reproduce the paper results, I would advise sticking with 2e-5.
@lewtun I believe this implies that the learning rate mentioned in the paper is incorrect, sadly.

Tom Aarsen

I believe this has been cleared up now, so I'll close this :)


Support for Multiple User Configs

support for user-defined config files
added default os.conf for hardware
added default emulator.conf for emulator
added ZOS_CONFIG env var support to override the default os.conf when calling make
updated CI to reference emulator.conf
make menuconfig will now copy over configs/zeal8bit.default to os.conf for backwards compatibility, and to allow for custom user defaults
os.conf will be used by default, if available ... otherwise configs/zeal8bit.default will be used

How configs are loaded:

config param is passed, use it
ZOS_CONFIG is set, use it
os.conf exists, use it
use configs/zeal8bit.default

When the user uses make menuconfig, if no os.conf exists, the default configs/zeal8bit.default will be copied to os.conf and then loaded - users should always be editing os.conf with menuconfig
Menuconfig also supports the config argument above, if no os.conf exists, menuconfig will copy the config argument to os.conf ... example: make menuconfig config=configs/zealemu.default will make the users os.conf a copy of the zealemu.default

Thanks for your PR, it's merged!


Fix techpreviewnouprade feature set initialization

Update setFeatureGates() to use GetAll() to fetch all known featuregates that were initialized instead of using KnownFeatures() since it returns the feature gates in the following format RouteExternalCertificate=true|false (ALPHA - default=false).
Follow up for: https://github.com/openshift/library-go/pull/1550

/label tide/merge-method-squash

/remove-label  tide/merge-method-squash

/lgtm
/hold cancel

/remove label/tide/merge-method-squash

/shrug

/remove-label tide/merge-method-squash


Application logrotation

TLDR:
Application logs need some logrotation so they can not get unbounded in size, filling up the disk and causing all sorts of problems with ceph / registry / deploying new releases  / scaling applications.
I let the implementation up to deis maintainers but I would implement this as follows.
Instead of storing all logs of one app in one file, I would make it one directory per app, and one file per day in this directory. In this way apps older than X days can easily be removed (automatically as a deis setting, or manually when needed).
As a seperate setting a max log size per  app could be enforced, if the total log size exceeds the allowed log size (for that app), it would start removing old log files first until the limit is not exceeded anymore.
I imagine 3 settings.
Log max age (in days) (false/null = default = never remove old log files). Files older than this will be automatically removed by the logger component once a day
Log minimum retention history (in days) (default = 0, don't keep anything). Files younger than this period will never be automatically deleted (see next setting)
Log max size (in bytes) (0 = default = no max size). Once an apps total log size exceeds this limits older files first are removed until the total log size is within limits again. If files younger than the minimum retention history is reached those are not automatically deleted.
Obviously if you set the minimum retention history to a few days, and the app goes haywire this would still not protect you, but at least it won't fill up the disk behind your back in most cases when settings are well chosen

Background story:
Last few days my cluster was having hard disk trouble. 4/5 of my nodes were low on disk space.
I already had some monitors down getting more than 95% of diskspace. (Note: I am running on DO with 160GB disks)
I tried cleaning disk space with a modified command from the deis docs.
docker ps -a | grep "Exited" | grep -v "hours" | grep -v deis | cut -f1 -d" " | xargs docker rm
docker images -aq | xargs -l10 docker rmi

(Side note, I don't think the -a is necessary in the second command, as docker will automatically remove the ancestors if they are not tagged. This gives less errors, and will speed up the execution of this command).
This helped a bit, but far from enough.
My next step was looing into the "S3" of deis to see how many images were stored, and if I could remove some of them. Listing these didn't give a clear idea what was using so much disk space
(Important side story) During working on my cluster I noticed that a test version of my app was getting a bit crazy, and A) crashing and rebooting and B) sending a large API query (> 10MB) to a 3rdpary every time, which got rejected because of the size  C) spewing out the logs of this query every time.
I fixed the issue because obviously this was non intentional.
Going on my investigation, I saw ceph was telling me how much disk space it was using (142GB). Only later I realized this might have been because of the app that was spewing out logs at a fast rate... And indeed the log file for this app was 126GB, Removing this suddenly freed up 377GB over my complete cluster (exactly 3 times 126GB...).  This solved all my problems...

This is actually a duplicate of #4280.  I'm going to close this and then move further discussion over to there.


Update docs for new Developer Portal process

The documentation currently refers to apps.twitter.com and should clearly explain the new process for accessing the Twitter APIs
Expected behavior
Immediately understand the base requirements for creating a developer account and accessing the Twitter APIs
Actual behavior
Currently, the README directs users to apps.twitter.com, which is deprecated

Resolved in #98


Added Open Search integration…

to browse directly from your URL bar! How fancy; much wow; many
searches!
I haven’t tested it yet (I only know it compiles) because I’m on my lunch break at work. I shall test a local server tonight if I find enough spare time or if anyone tries it.

 I’ll re-PR haha :D


Fix tickEvent props when an object is passed in

Currently passing tickEvent props that are not string or numbers causes issues where it tries to send it as a measure, and app insights only accepts measures of type number, which makes it drop the event.
This PR makes it so that we pass any string as a property. Any number as a measure.
And anything else get's stringifed and passed in as a property.

You probably want to filter out !!data[k]


Add block-based subvol type

Gluster-fuse (upon which gluster-subvol is based) struggles with metadata-intensive and small-file workloads.
We would like to have a subvol type that in analogous to gluster-block. It needs to preserve the original objectives of gluster-subvol (i.e., large PV count, thin provisioning to allow overcommit, etc.)

Work list:

[ ] Write a creator, akin to existing creator, that creates files as XFS formatted devices, and generates the required PV list for the same
[ ] Write a gluster-block-subvol flexvol provider, that does the plumbing when a PVC for one of the above PVs comes to the client system
[ ] Add a recycler to reclaim PVs that are in the released state
[ ] Update all READMEs in the repo for the above created workflow
[ ] Create a storage class yml for gluster-block-subvol
[ ] Write ansible to deploy the recycler pod to a k8 or Openshift setup
[ ] Test end-to-end deployment and use


Update outline-manager to 1.0.7

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

1.0.5 is still tagged as latest and is the current version on the homepage.


this is a change to extend the timeout option on our buildkite agents

Description

Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] All commits have been signed-off for the Developer Certificate of Origin.

on the test adhoc pipeline, we can see that the change is reflected.

We probably need to re-run this, a lot of tests failed.
Also this is a HUGE bump to the timeout for all tests which seems like it'll mask a lot of issues.


Improve the way log block magic header is identified when a corrupt block is encountered

We use "#HUDI#" as the new magic header to identify the beginning of a log block. Also, "HUDI" is used as the old magic header to resolve read time. In the event a corrupt block is written, an exhaustive search is done over the corrupted bytes to find the beginning of the next valid log block or the end of the log file whichever happens first.
If, for some reason, the data in the corrupt bytes itself has the magic header, we will end up marking a new log block at an incorrect position and hence further reading of the log block will fail and throw an exception. Right now, this will cause the job to fail.

Moved to https://issues.apache.org/jira/browse/HUDI-35


Update for Chalk

Images also go off screen a bit so it might be good to size images appropriately.

Added new resources

@C-D-Lewis Looks good.. :+1:


⚠ Bofrost.es has degraded performance

In 52b40e3, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1680 ms

Resolved: Bofrost.es performance has improved in 8353a28 after 6 minutes.


Readme file update request

Hi atanumandal0491
I couldn't understand the process of executing the repository of hate speech detection you have mentioned . Could you please update your Readme file with detailed step by step procedure of execution the code files .If possible can you also mention the pictures of code execution in the environment you have worked like Google Colab or command prompt and final accuracy scores.

Hi,
For the preprocessing of the dataset, we created TFRecords. Download the repository and create the training file as per your requirements. The model is given in the repository.


Progress code can panic on bad term info

I got the following when I tried to use n2 via a buildkite CI runner on macOS:
thread 'main' panicked at 'byte index<PHONE_NUMBER>3709551612 is out of bounds of 0s build:configure', src/progress.rs:185:40

I presume it's getting a max columns of 0 and wrapping around. Forcing a minimum of 4 should fix the crash, but it might also be good to fall back on the default of 80 if it's 0.

Thanks for the clear report!


in the blog page words visibity problem in the dark mode,Adding a overlay layer to fix the bug

Description
the  words are overlapped and not clearly seen
Steps to Reproduce
I will Add a overlay layer to fix the bug
Expected Behavior
No response
Actual Behavior
No response
Screenshots

What browser are you seeing the problem on?

[ ] Firefox
[X] Chrome
[ ] Safari
[ ] Microsoft Edge

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

Hi @aditya-bhaumik i would like to work on this issue


Opportunity for performance gains via d3-force-reuse?

Is it possible that the code in this repo might still bring performance advantages, and is there any interest in integrating it into d3-force?
https://github.com/twosixlabs/d3-force-reuse

Primarily, I would ask what the most compelling reason today would be to improve performance of this library - i.e. which use cases demand it, which are not better served by other force-directed graphs?
Secondarily, I would check how the "reuse" approach stands in comparison to others, like making the situation more parallel using workers as suggested in #112 and demonstrated in https://github.com/dileban/nbody-simulation
The other day, an excellent overview of n-body algorithms was posted in Efficient Numerical Methods for N-Body Simulations with Modern Computational Techniques by Nayer Sharar.
Finally, I would suggest investing a bit of effort into further testing the d3-force-reuse library, making sure there are no edge cases that are affected by this technique. If the improvements are reliable, it should be the default method.
The question of merging was also raised in https://github.com/twosixlabs/d3-force-reuse/issues/2


feat(telescope): telescope flat style support

Updates the Telescope integration to allow users to choose a telescope style between "nvchad" and "classic".
The default style currently is set to "classic"

Classic (the original style):

Nvchad (flat style)

Please keep backwards compatibility, O.integrations.telescope was a boolean before and can't be indexed
The default should be classic since we respect plugin's theme guideline
I think we should rename flat -> nvchad since it's the original

Ok! I changed the name flat to nvchad and included backward compatibility in the latest commit. Though I don't know how to implement backward compatibility correctly so the code might be a bit ugly :<


How to test for SNMP credentials using Rest API

Is there a pythonic way to test SNMP creds through restAPI. If not API, I am fine with any procedure other than manually doing it.
Here is what I am referring to

Clicking on TEST would say whether I can connect to device using those credentials.
Please help me, thanks in advance.

@goutham-kumar The closest I've found is the DiscoverInterfacesOnNode verb.

I would like to know if this is possible as well.


Condition is always 'true' because 'user' is always not 'nil'

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Condition is always 'true' because 'user' is always not 'nil'
Which issue(s) this PR fixes:
Fixes #
Special notes for reviewers:
Please check the following list before waiting reviewers:

[ ] Already committed the CRD files to the Helm Chart if you created some new CRDs
[ ] Already added the permission for the new API
[ ] Already added the RBAC markers for the new controllers

Does this PR introduce a user-facing change??
None
None

/assign @LinuxSuRen

/assign @LinuxSuRen

hi @nuclearwu , thanks for your effort. Glad to see your second PR. But I'd like to suggest you use the following comment to ping the DevOps team instead of the individual.
/cc @kubesphere/sig-devops


the error when i train

`# import keras
import keras.preprocessing.image
import keras.backend as K
from keras.optimizers import Adam, SGD
from tensorflow import keras
import tensorflow.keras.backend as K
from tensorflow.keras.optimizers import Adam, SGD`
firstly, i get the path of keras by tf.keras.path, yet i cant train it .
so, import keras  import keras.preprocessing.image  import keras.backend as K  from keras.optimizers import Adam, SGD
but it raise an error like this  ValueError: Layer class_net was called with an input that isn't a symbolic tensor. Received type: <class 'int'>. Full input: [<tf.Tensor 'fpn_cells/cell_6/fnode3/op_after_combine8/bn/cond/Merge:0' shape=(?, 128, 128, 224) dtype=float32>, 0]. All inputs to the layer should be tensors.
what should i do?

Your input to the network is incorrect, not image, you can check it

@northeastsquare  now,it raises another error .
ValueError: Output tensors to a Model must be the output of a TensorFlow Layer (thus holding past layer metadata). Found: Tensor("filtered_detections/ma p/TensorArrayStack/TensorArrayGatherV3:0", shape=(?, 100, 4), dtype=float32)
my data type is csv , its like
('E:/Dataset/skating/2016\\500(1)-F-finalA\\img1/001360.jpg', [{'x 1': 1504, 'y1': 418, 'x2': 1549, 'y2': 476, 'class': 'athlete'}, {'x1': 1399, 'y1': 302, 'x2': 1438, 'y2': 355, 'class': 'athlete'}, {'x1': 1415, 'y1': 33 1, 'x2': 1465, 'y2': 381, 'class': 'athlete'}, {'x1': 1379, 'y1': 285, 'x2': 1422, 'y2': 338, 'class': 'athlete'}])
is the version of tf not match?

Judging from my experience you probably are not using the correct tensorflow version. Try to stick with the requirements mentioned:
tensorflow 1.15 etc

@eypros   @northeastsquare  ok,i correct it , tensorflow=1.15.0,the CUDA is 10.0 , cudnn is 7.4.2, i can run the code ,but it raises another error  Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.          [[{{node stem_conv/Conv2D}}]],
i used the default parms like batch_size=32. first, the GPU memory is enough , i used 2 tesla p100.if i should upgrade the version of cudnn to 7.5


Http request methods should be string literal type

Search Terms
Http Methods, lib.dom.d.ts, fetch
Suggestion
In lib.dom.d.ts wherever method is defined it should be of the type "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH". I recently had a project where it had a issue where method value was incorrect and it wasn't picked up by TypeScript. If we know the set of HTTP methods I don't see why we can't have typed method declaration.
Notably lines 1553, 6869, 12783 define weakly typed method declarations.
If Request.credentials is strongly typed then I don't see why Request.method isn't?
I have a pull request waiting, just need your feedback and confirmation.
Use Cases

Fetch API
<form method="..."> ?
Request

Examples
Checklist
My suggestion meets these guidelines:

[ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Possible problems

Lowercase method implementations may have to be refactored :/

I don't think this is correct.  If I'm reading the spec correctly, method can be any string that is not a case-insensitive match for CONNECT, TRACE, TRACK.  Chrome also implements this:  I can fetch("/", { method: "FOO" }) and on the other end see a method FOO request come in.
Per RFC 7231, your remote server probably should have responded with 501 or 405 for this situation.

I suppose it would be acceptable for HTMLFormElement.prototype.method, but surely not for fetch.

I suppose it would be acceptable for HTMLFormElement.prototype.method, but surely not for fetch.

Agreed; looking at the appropriate spec for that it should be "get" | "post" | "dialog".

Interesting I was unaware of using methods other than those specified here. I understand the following could not be implemented because although there is a probably a insignificant number using alternate methods, we cannot discard them. If it is valid and is not throwing errors then there is no requirement to restrict types.
As for HTMLFormElement.prototype.method it does seem to have an fixed output, even on incorrect actions where it defaults to "get".  I have tested this in Chrome via this codepen. The specification definition seems obfuscated but going  of your word, line 6869 would need to be amended to your suggestion.
Although this change on its own seems inconsequential, if lib.dom.d.ts does not fully reflect the DOM api then it needs to be amended. Shame fetch cannot be altered but I guess that's just the design flaw of TypeScript wanting to maintain parallelisation with the js code.

Doesn't seem like this is a great change - we tend to err on the side of allowing more string values in the DOM than enforcing more, since browser implementations are a lot more fluid than the core JS library


Squeeze parameters over batches before log_prob

Resolves #12
As mentioned in the issue, squeeze parameters over the singleton batch dimension prior to taking log_probs. This addresses the more aggressive shape validation introduced in PyTorch 1.8.0.

Cheers!


[Bug] /docs and /redocs are accessible in production

Description

Reproduction
go to /docs and /redoc

Expectation
Should not accessible in production.

Screenshots

Environment
Production

@SAMAD101 we can use redocs in prod, and can remove openapi docs.


The download button is on the home screen two times , remove any single button so that it will be displayed only once.

Tell us about the task you want to perform and are unable to do so because the feature is not available
Your response here
Describe the solution/feature you'd like us to add
Your response here
Any other feedback you would like to provide regarding the site
Your response here

Good Afternoon Sir @animator
I have added a issue of download button being displayed twice on the home screen. We can remove any of the button from the home screen so that the overall look would be enhanced.

@Tushar-Vij please share screenshot for the same


There are strings not localized in delete file share dialog

Storage Explorer Version: 1.11.1
Build: 20191220.2
Branch: master
Language: Chinese(zh-TW)/ Chinese(zh-CN)/ Japanese/ Korean
Platform/OS: Windows 10/ CentOS 7.6.1810 /macOS High Sierra
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Launch Storage Explorer.
Open 'Settings' -> Application (Regional Settings) -> Select '日本語' -> Restart Storage Explorer.
Expand a storage account -> File Shares.
Select one file share and right click it -> Click '削除'.
Check the delete dialog.

Expect Experience:
All strings are localized in delete dialog.
Actual Experience:
There are strings not localized in delete dialog.

More Info:

This issue doesn't reproduce for one blob container.
This issue reproduces for one queue/ table.
This issue also reproduces in Chinese(zh-TW)/ zh-(CN).

Sending to localization for review

Resource ID: 0;"String Table"\0;"Strings"\0;"Actions.BlobContainers.Delete.ConfirmInAccount"
Relative File Path: drop\loc\en\src\Standalone\resources\Azure.json.lcg
Project: StorageExplorer
Subtenant: StorageExplorer
ENU: This will permanently delete the blob container '%1$s' in storage account '%2$s'. \r\n\r\nAre you sure you want to delete this blob container and its contents?

@craxal, the build behavior looks strange on UI, source string doesn't contain 'in storage account' substring to localize, but appear in individual locale strings. Could you please confirm the build info that is used for verification? I assume each loc string in issue is not from official localization

We suspect it is a hardcoded string issue. We'll look into it.

We have the same problem for queue/table as well. We need to replace the template strings to fix the problem.

This should have been fixed for file share/queue/table, please verify.

Verified on build  20200317.2. This issue has been fixed. So we close it.


"Delete" does not work

Is it an actual bug?
I believe so.
Did you check if the bug has already been reported?
I did not see this issue in the bugs listed
Describe the bug
It is not possible to delete a task using the option menu on the right mouse button.
To Reproduce

Select any issue with the right mouse button
choose "Delete" in the options menu
task will not be deleted.

Do you see any error entries in sleeks developer tools?
No
Expected behavior
Task should be deleted from todo.txt
Screenshots
Desktop (please complete the following information):

OS: Linux Mint 20.3
Version of sleek : 1.2.8
Source: Flathub

Confirmed.  1.2.8 appimage on xubuntu 20.04.5 LTS

I also just noticed this. However, for me, instead of the task under the mouse cursor, some other task was deleted. Can you check if this is also the case for you?

@dlaidig, I think you are right.  In my tests, the delete removes the first todo in the file, rather than the one you selected with the mouse.  (This is especially hard to see if you happen to have completed todos in the file and you aren't showing completed todos.  If the first todo in the todo.txt file is already completed, you won't see any todo change in the GUI.)  The best way to see what is being deleted is to save a copy of your todo.txt file, then do a delete in sleek, and then diff todo.txt todo.txt.save.
@ransome1, I submitted PR #433 to fix this bug.

@Grydpype @dlaidig @CPUGPU thanks for reporting it and @zerodat thanks for fixing it. The fix is part if the next release.

I confirm that in v1.2.9-rc.1 the task deletion works as expected.

It also worked for me. :)

With this release you should also be able to use del or backspace to delete a selected todo: https://github.com/ransome1/sleek/releases/tag/v1.2.9-rc.2


Add some CI to check PR

Check if all commands in Deploy.yml don't throw errors.
Provide some preview pages. (maybe in another repository?)
Spell check

x-ref: https://github.com/JuliaPackageComparisons/JuliaPackageComparisons.github.io/pull/55#issuecomment-1901776545

I tried to set up a GitHub action that generates preview pages on my fork repository and a new repository for preview.
On this PR (https://github.com/hyrodium/JuliaPackageComparisons.github.io/pull/5), I succeeded in generating a preview documentation but there are still some problems.

I'm not sure generating docs from a fork is technically possible.

e.g. Documenter.jl cannot deploy preview docs based on PR from a fork.

The action should comment something like "The preview document is deployed here (link)", but I have not succeeded yet in my repos.

I think that there may only be a single GitHub-hosted page per organization/user. I therefore think that one will have to build locally to get previews of changes, unfortunately. So I think that getting previews on forks is not viable.
Better to make the instructions for building locally idiot-proof. Perhaps including how to clone a given fork and branch (git clone -b branch_name https://github.com/username_of_forker/JuliaPackageComparisons.github.io, for example git clone -b just-the-docs https://github.com/hyrodium/JuliaPackageComparisons.github.io ) would be a good idea.

Finally, I've succeeded in configuring the CI for preview :rocket::rocket::rocket:
PRs that try deploying preview docs

https://github.com/HyrodiumOrg/HyrodiumOrg.github.io/pull/12
https://github.com/HyrodiumOrg/HyrodiumOrg.github.io/pull/13

Repositories

https://github.com/HyrodiumOrg/HyrodiumOrg.github.io

Original repository
I made an organization HyrodiumOrg to try the above PRs.

https://github.com/HyrodiumOrg/preview

A repository to host preview docs
Preview docs should be hosted in this repository, not the original repository.

Preview docs are temporary and need cleanups. Separating git repositories makes cleanup easy.
We need to configure some additional permissions to deploy preview docs. Separating git repositories helps security improvements.

https://github.com/hyrodium/HyrodiumOrg.github.io

Fork repository

How that work
PR from a fork repository

A PR is made.
A collaborator reviews in a security aspect, and labels 'ok to preview'.
Preview job is triggered.
Preview docs is deployed.
A link to the preview docs is commented by github-actions bot.

PR NOT from a fork repository

A PR is made.
Preview job is triggered.
Preview docs is deployed.
A link to the preview docs is commented by github-actions bot.

Reference

Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests
Try & Error log on the above PRs (Japanese, Franklin.jlでドキュメント生成でプレビューを有効化する)

@KronosTheLate

Could you try opening a dummy PR to https://github.com/HyrodiumOrg/HyrodiumOrg.github.io? That will help understand how .github/workflows/Preview.yml works.
Could you invite me to JuliaPackageComarisons organization with some permissions? I need to:

Create a JuliaPackageComarisons/preview repository
Setup deploy & secret keys to push the preview

Alternatively, you can set up the above configuration without inviting me to the organization. Feel free to ask me anything!

Could you try opening a dummy PR to https://github.com/HyrodiumOrg/HyrodiumOrg.github.io? That will help understand how .github/workflows/Preview.yml works.

Done

Could you invite me to the JuliaPackageComparisons organization with some permissions? I need to:

You have been invited to the JuliaPackageComparisons org with owner permissions. I hardly feel like there is any reason I should have more permission than you at this point ^_^
I am not fluent in GitHub, especially in automatic CI actions, deployment, etc. I was quite happy when I managed to create a GitHub hosted website xD So I am unable to keep up, but you have 100% thumbs up from me to do whatever you feel is beneficial. Your judgement has proven great so far :smile:

Thank you for the comment!
I really appreciate that you have founded this project, and I'm so happy to be part of it :blush:
I will open a PR that enables preview CI after #65 is merged.


Error on TypeScript build: standard modules has no default export

Hi,
I'm currently building a TypeScript project using googleapis library (version 32.0.0, with google-auth-library version 1.6.0). Whenever I try to build my project, here are the errors I get:
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(18,8): error TS1192: Module '"fs"' has no default export.
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(19,8): error TS1192: Module '"http"' has no default export.
node_modules/google-auth-library/build/src/auth/googleauth.d.ts(20,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts(17,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/jwtclient.d.ts(18,8): error TS1192: Module '"stream"' has no default export.
node_modules/google-auth-library/build/src/auth/oauth2client.d.ts(18,8): error TS1192: Module '"http"' has no default export.
node_modules/google-auth-library/build/src/auth/refreshclient.d.ts(17,8): error TS1192: Module '"stream"' has no default export.

It seems that TypeScript expects the import * as http from 'http' syntax for the standard modules.
I tried with both TypeScript 2.8 and 2.9, same issue. Node version: 8.11.
Could you look into this? Is there something wrong with my build configuration?
Best regards,
François Voron

I'm seeing the same issue on continuous tests for @google-cloud/profiler with node 6, and can reproduce locally with node 8 and 10 when I modify the project's package-lock.json to use v1.6.0. I'm using typescript 2.8
I think there's a problem with v1.6.0

Taking a first look.  Can you try running your TypeScript compiler with --esModuleInterop to see if that fixes the issue?

cc @ofrobots @google/google-node-team

esModuleInterop was introduced as a default for gts here.  We upgraded to<EMAIL_ADDRESS>which included the move to synthetic imports in #372.  Still figuring out what's up.

Yes, setting the esModuleInterop flag to true solves the issue.


Added portal link for Azure SQL

This PR fixes #12426

Pull Request Test Coverage Report for Build 260219351

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 38.91%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/resource-deployment/src/ui/resourceTypePickerDialog.ts
0
3
0.0%

Totals

Change from base Build 260190294:
0.003%

Covered Lines:
19207

Relevant Lines:
45051

💛  - Coveralls

Waiting on checks to pass


Version 2.0.2

@ldko, @runderwood, just a simple patch bump here.

We could start a changelog file for this project.

ah, yes, I'll add one

ok. :+1:


RTSP Video support

would it be possible to also include rtsp video support?
I have an intercom wtth no camera, would be great make a call, and use the RTSP stream as a source for video
thnx in advance

I don't have any knowledge about video streams in SIP, so hard to say. As I don't own any device which could produce such a stream I cannot provide assistance with that.

oh, thats too bad :-(


Infinite circular input stream

provide infinite input stream. it's useful for testing e.g. early exit of stream processors

jira issue: https://issues.apache.org/jira/browse/IO-493

Thanks! 👍


test

Stack from ghstack (oldest at bottom):

-> #146

ghstack bot failed: PR #146 is not approved yet!


add_gemma_tutorial_on_tpu_with_jax

linting and links fixed.

Could you add 2 new items to the table of content in README?


Allowing Access to a single route in a group unless user authenticated

$app is a DI Container wrapped around Slim and Twig with aliases to all slim/twig methods. The
$app->group('/admin',function() use ($app){

	if( !$app->is_admin() && $app->args['path'] != '/admin/auth' ) {
		$app->redirect('/admin/auth');
	}

});

The above code results in this error in HHVM 3.5.0 for any route other than /admin/auth when not logged in :
\nFatal error: Uncaught exception 'Slim\\Exception\\Stop' with message '' in

/usr/share/nginx/html/crossbows/libs/vendor/slim/slim/Slim/Slim.php:1017\nStack trace:\n#0

/usr/share/nginx/html/crossbows/libs/vendor/slim/slim/Slim/Slim.php(1037): Slim\\Slim->stop()\n#1

/usr/share/nginx/html/crossbows/libs/vendor/slim/slim/Slim/Slim.php(1100): Slim\\Slim->halt()\n#2

/usr/share/nginx/html/crossbows/libs/custom/allcrossbows.php(70): Slim\\Slim->redirect()\n#3

/usr/share/nginx/html/crossbows/admin_routes.php(5): AllCrossbows\\App->redirect()\n#4 ():

{closure}()\n#5 /usr/share/nginx/html/crossbows/libs/vendor/slim/slim/Slim/Slim.php(553):

call_user_func()\n#6 /usr/share/nginx/html/crossbows/libs/custom/allcrossbows.php(62):

Slim\\Slim->group()\n#7 /usr/share/nginx/html/crossbows/admin_routes.php(87): AllCrossbows\\App->group()\n#8
 /usr/share/nginx/html/crossbows/index.php(109): include()\n#9 {main}

I was hoping to avoid having to place this code in each individual route callback.

How did you solved it ?

You need to use route middleware to do that


Cannot cast JSON to map

Consider the following:
import ballerina/io;

public function main() {
    json j = {"name":"Foo", age: 20};

    map<json> mj = <map<json>>j; // this is allowed

    map<anydata> m = <map<anydata>>j; // incompatible types: 'json' cannot be cast to 'map<anydata>'
}

The problem may be not limited to JSON -> map here. The spec says the following:

Let T be the static type described by type-descriptor, and let TE be the static type of expression. Then the static type of the type-cast-expr is the intersection of T and TE', where TE' is TE with its numeric shapes transformed to take account to the possibility of the numeric conversion specified in the previous paragraph.
The contextually expected type for expression is the intersection of the contextually expected type of the type-cast-expr and the type described by the type-descriptor.

Need to ensure the casting behaviour is in-line with this.
Related issue: #24322

This is allowed now. https://github.com/ballerina-platform/ballerina-lang/issues/24559 tracks the generic issue.
Keeping this open to add a test.

Tests added in https://github.com/ballerina-platform/ballerina-lang/pull/35505.


[Vertex AI] Add ImagenGenerationConfig to generateImages()

Added an ImagenGenerationConfig type for configuring image generation details (number of images, aspect ratio, image format, etc.) that is accepted in generateImages() calls.
Added ImagenAspectRatio and ImagenImageFormat types to limit the values to those accepted by the model. Updated the
Updated the integration test to check that the config is used.

#14221
#no-changelog

@ncooke3 Looks like this PR incorrectly triggered Firestore CI?

@paulb777, I believe it's because the base branch, vertex-imagen, is not in-sync with main and is missing my infra PR.

@paulb777, I believe it's because the base branch, vertex-imagen, is not in-sync with main and is missing my infra PR.

I'll merge main into vertex-imagen (or rebase if you'd prefer).


std::bad_alloc

I published the pointcloud with this driver and record all the topics at the same time, it sometimes throw the std::bad_alloc error. I know this error was caused by the memory lack for new vector, but when I observe the memory used with 'top' command, it shown that the available mem is much enough (10G+)……
Could you please give me some help

@sangych - I'm very sorry I didn't see this issue before. Are you still having this problem?

The problem has not been fixed yet. When I try using valgrind to check memory leak, it says there were many errors:
" ERROR SUMMARY: 10000004 errors from 6 contexts (suppressed: 0 from 0)"

I think I have finally found the BUG!
Code snippet from ibeo_core.cpp for  Object2221::parse:
  number_of_contour_points = read_le<uint16_t>(in, 2, 56);

  for (uint8_t i = 0; i < number_of_contour_points; i++)
  {
    Point2Di contour_point;
    contour_point.parse(&in[58 + i * 4], LE);
    contour_point_list.push_back(contour_point);
  }

if number_of_contour_points >= 256, i in the for loop will enter a dead loop, eating up your memory and  causing the "std::bad_alloc" exception.
In fact, when debug using gdb,  this do occur, as the 4 bytes at (in + 56) gives "FFFF2900"

@storypku - Thank you for working on this issue! I have just pushed a similar fix to see if it is working. Would you mind pulling the branch fix/bad_alloc into a workspace and building it from source? You may need to sudo apt remove ros-$ROS_DISTRO-ibeo-core to make sure that one isn't installed.

@JWhitleyAStuff    ibeo_lux  got a "segmentation fault(coredumped)" as i enabled coredump on Ubuntu.
Here is the backtrace in gdb
(gdb) bt
#0  0x00007ff3ac714662 in short AS::Network::read_le<short>(unsigned char*, unsigned int const&, unsigned int const&, float const&, unsigned int const&) ()
   from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#1  0x00007ff3ac711526 in short AS::Network::read_le<short>(unsigned char*, unsigned int const&, unsigned int const&) ()
   from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#2  0x00007ff3ac710e74 in void AS::Drivers::Ibeo::parse_tuple<short>(unsigned char*, short*, short*, AS::Network::ByteOrder) ()
   from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#3  0x00007ff3ac7066c9 in AS::Drivers::Ibeo::Point2Di::parse(unsigned char*, AS::Network::ByteOrder) ()
   from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#4  0x00007ff3ac70814e in AS::Drivers::Ibeo::Object2221::parse(unsigned char*) () from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#5  0x00007ff3ac70b979 in AS::Drivers::Ibeo::ObjectData2221::parse(unsigned char*) () from /home/story/Studio/catkin_ws/devel/lib/libibeo_core.so
#6  0x000000000047f687 in main ()

My fix was listed below,  add the following lines just before the for loop.
    if (number_of_contour_points == 65535) {
        number_of_contour_points = 0;
        return;
    }

You may ask  where  the magic number 65535 comes from. Well, I noticed many times that the program crashed with number_of_contour_points=65535. And it seems to be connected to EthernetBlockError in
the /parsed_tx/error_warning topic.
With the fix above, the programs seems to work well so far.

@JWhitleyAStuff   With the latest ibeo_core, ibeo_lux seems to work fine for 10+ mins hitherto. No coredump, no dead loop, low CPU and memory footprint, smoothly published ros topics.

@JWhitleyAStuff With the latest ibeo_core, ibeo_lux seems to work fine for 30+ mins hitherto. No coredump, no dead loop, low CPU and memory footprint, smoothly published ros topics.
Updated:
Again, ibeo_lux coredumped receiving SIGSEGV after running for 3~4 hours. I will investigate on this.

I've created the PR astuff/ibeo_core#6 to at least fix the initial issue. Let us know if you find any more info. I'll close the ticket for now but continue to reply if there is additional information. Thank you.


Incorrect query generated by dbeaver prevents saving an edit through datagrid

System information:

macOS 10.14.3
DBeaver 21.1.0

Connection specification:

Postgresql 12.5

Describe the problem you're observing:
Incorrect query generated by dbeaver when editing through datagrid when using non-public schema enum as primary key in table. Generated query isn't schema qualified.
Steps to reproduce, if exist:

create sample data:

CREATE SCHEMA my_schema
CREATE TYPE my_schema.colors AS ENUM (
'black',
'blue',
'brown');
CREATE TABLE my_schema.test_table (
color my_schema.colors NOT NULL,
color_name varchar NULL,
CONSTRAINT test_table_pk PRIMARY KEY (color)
);
INSERT INTO my_schema.test_table (color,color_name)
VALUES ('black','Black')

open table in dbeaver and edit color_name:

click Save; get Data error

Notes:

issue is the generated query isn't schema qualified (i.e. with 'my-schema'); dbeaver generated query: UPDATE my_schema.test_table
SET color_name='Black2'
WHERE color='black'::colors
both these modified queries work in sql editor:
a) UPDATE my_schema.test_table
SET color_name='Black2'
WHERE color='black'::my_schema.colors
b) UPDATE my_schema.test_table
SET color_name='Black2'
WHERE color='black'

thank you for the report
as a workaround you can set your schema as default. In this case it will work ok

Fixed in DBeaver 21.1.4
Now we add schema name to custom data type name in the statement.

Double cast is shown if opening a generated script before saving

Verified


New-Command: spo report onedriveactivityfilecounts

implements #1257

Coverage remained the same at 100.0% when pulling 2413e2b95d577d6f1b0c3e6d2a4b5eb51f7bc5d7 on plamber:spo-report-OneDriveActivityFileCounts into 0e5efd9d93e854d43547e9e1396e619ace74e34d on pnp:dev.

@VelinGeorgiev: you can review this one

Thank you very much Patrick @plamber ! We'll review it asap.

Merged manually. Thank you 👏


Added the Maximum-Minimum program using divide and conquer approach.

Maximum-Minumum algorithm Using Divide and Conquer Approach
This C program implements a divide-and-conquer algorithm to efficiently find the minimum and maximum values in an array. The algorithm recursively divides the array into smaller subarrays, computes the minimum and maximum for each subarray, and combines the results to find the overall minimum and maximum.

Features
Input:
The program prompts the user to enter the size of the array and its elements.
Algorithm:
It uses a recursive approach to divide the array into halves, finding the min and max values in each half, and combines them to get the final results.
Output:
The program prints the maximum and minimum values found in the array.

Code Structure
Struct Definition:
struct data: A structure to hold the minimum and maximum values.
Function:
DAC_Min_Max(int a[], int i, int j): This function implements the divide-and-conquer algorithm. It takes an array and the indices of the subarray to be considered.
Base Cases:
If the subarray contains only one element, it sets both min and max to that element.
If it contains two elements, it compares them to set min and max accordingly.
Recursive Case:
The array is divided into two halves, and the function is called recursively for each half. The results are then combined to determine the overall min and max.
Main Function:
The entry point of the program where the user inputs the size and elements of the array. It calls the DAC_Min_Max function and outputs the results.

Sample Input and Output:
Enter the size of the array: 5
Enter the elements: 3 1 4 1 5
The maximum value is: 5
The minimum value is: 1

@pankaj-bind This program is w.r.t to issue #528 which you assigned me.

@pankaj-bind okk


DynamoTable creates but fails to reconcile (provisionedThroughput error)

What happened?
When I apply the yaml for a DynamoTable resource, I can see (through the AWS management console) that the table is created successfully. However, I notice that reconciliation is being attempted extremely often (more than once per second) and failing with the following error message:
update failed: cannot update DynamoDB table: ValidationException: The provisioned throughput for the table will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for the table: 1. Requested ReadCapacityUnits: 1. Current WriteCapacityUnits provisioned for the table: 1. Requested WriteCapacityUnits: 1. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits.
How can we reproduce it?

Apply the following sample manifest (through ArgoCD in my case):
apiVersion: database.aws.crossplane.io/v1alpha1
kind: DynamoTable
metadata:
  name: test-table
spec:
  deletionPolicy: Orphan
  forProvider:
    region: eu-west-1
    attributeDefinitions:
      - attributeName: testCol
        attributeType: S
    keySchema:
      - attributeName: testCol
        keyType: HASH
    provisionedThroughput:
      readCapacityUnits: 1
      writeCapacityUnits: 1
    tag:
      - tag: environment
        value: dev
      - tag: provisionedBy
        value: Crossplane

The table is correctly created but describing the table shows the following:
Name:         test-table
Namespace:
Labels:       argocd.argoproj.io/instance=xxx
Annotations:  crossplane.io/external-name: test-table
API Version:  database.aws.crossplane.io/v1alpha1
Kind:         DynamoTable
Metadata:
  Creation Timestamp:  2020-12-07T07:36:33Z
  Finalizers:
    finalizer.managedresource.crossplane.io
  Generation:        2
  Resource Version:  729018380
  Self Link:         /apis/database.aws.crossplane.io/v1alpha1/dynamotables/test-table
  UID:               a1e4b45d-2038-434f-a3c1-ed3009382509
Spec:
  Deletion Policy:  Orphan
  For Provider:
    Attribute Definitions:
      Attribute Name:  testCol
      Attribute Type:  S
    Key Schema:
      Attribute Name:  testCol
      Key Type:        HASH
    Provisioned Throughput:
      Read Capacity Units:   1
      Write Capacity Units:  1
    Region:     eu-west-1
    Tag:
      Tag:    environment
      Value:  dev
      Tag:    provisionedBy
      Value:  Crossplane
  Provider Config Ref:
    Name:  default
Status:
  At Provider:
    Attribute Definitions:
      Attribute Name:  testCol
      Attribute Type:  S
    Key Schema:
      Attribute Name:  testCol
      Key Type:        HASH
    Provisioned Throughput:
      Read Capacity Units:   1
      Write Capacity Units:  1
    Table Arn:               arn:aws:dynamodb:eu-west-1:xxx:table/test-table
    Table Id:                xxx
    Table Name:              test-table
    Table Status:            ACTIVE
  Conditions:
    Last Transition Time:  2020-12-07T07:36:38Z
    Reason:                Available
    Status:                True
    Type:                  Ready
    Last Transition Time:  2020-12-07T07:37:19Z
    Message:               update failed: cannot update DynamoDB table: ValidationException: The provisioned throughput for the table will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for the table: 1. Requested ReadCapacityUnits: 1. Current WriteCapacityUnits provisioned for the table: 1. Requested WriteCapacityUnits: 1. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits.
                           status code: 400, request id: 5V4M8K2F9EC0VGUI45RJETBALVVV4KQNSO5AEMVJF66Q9ASUAAJG
    Reason:                ReconcileError
    Status:                False
    Type:                  Synced
Events:
  Type     Reason                        Age   From                                            Message
  ----     ------                        ----  ----                                            -------
  Normal   CreatedExternalResource       52s   managed/dynamotable.database.aws.crossplane.io  Successfully requested creation of external resource
  Warning  CannotUpdateExternalResource  52s   managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: QC1U6MU46R1JPU7NTMS7C3VUDNVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: S49722LHS8T1NCF46PAIB3EMAFVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: JCIPM4J0UQ9SHG71F8M5EMRQCVVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: EJRTPC0CRDHMMR85R1ACU69VQRVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: BS6H8NHE9SG8J49A95J0OVTPHNVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: AL44T8C07VIPQFTA3POTR3P7AJVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: KIRQ2HRD661K2EV260IAL3LUEVVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: TKRUMH0UQMSKJ4RQR9QVKGLLAFVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  52s  managed/dynamotable.database.aws.crossplane.io  cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: 7N15703VP8GALQR3DA5RB7OU6RVV4KQNSO5AEMVJF66Q9ASUAAJG
  Warning  CannotUpdateExternalResource  51s (x15 over 52s)  managed/dynamotable.database.aws.crossplane.io  (combined from similar events): cannot update DynamoDB table: ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: test-table
           status code: 400, request id: CE0U49IIJELB3KR97D8Q8NDO4JVV4KQNSO5AEMVJF66Q9ASUAAJG

What environment did it happen in?

Crossplane version: v0.14.0
AWS EKS 1.16

@muvaf Is this a bug in the generated code? I wonder if ACK has the same issue.

This is related to the hand-crafted code. The generated one is merged as Table in dynamodb.aws.crossplane.io group. However, the update code is ported over and it seems AWS has certain expectations about UpdateTable call:
// UpdateTable API operation for Amazon DynamoDB.
//
// Modifies the provisioned throughput settings, global secondary indexes, or
// DynamoDB Streams settings for a given table.
//
// You can only perform one of the following operations at once:
//
//    * Modify the provisioned throughput settings of the table.
//
//    * Enable or disable DynamoDB Streams on the table.
//
//    * Remove a global secondary index from the table.
//
//    * Create a new global secondary index on the table. After the index begins
//    backfilling, you can use UpdateTable to perform other operations.

I'll open a PR tomorrow.


cannot create /usr/local/rvm/gemsets/global.gems: Directory nonexistent

I just want to install rvm for a user
but I keep getting: cannot create /usr/local/rvm/gemsets/global.gems: Directory nonexistent
is this the right way to install rvm under the user 'hugo' ?  thanks
include_recipe "rvm::user"

node['rvm']['user_installs'] = [
  'hugo' => {
    'default_ruby'  => 'ruby-1.9.2-p290',
    'rubies'        => ['1.9.2'],
    'rvmrc'         => {
      'rvm_project_rvmrc'             => 1,
      'rvm_gemset_create_on_use_flag' => 1,
      'rvm_pretty_print_flag'         => 1
    },

    'global_gems'   => []
  }
]

node['rvm']['user_global_gems'] = [
  { 'name'    => 'bundler',
    'version' => '1.0.17'
  },
  { 'name'    => 'rake',
    'version' => '0.9.2'
  }
]

I think we've beat this one into submissions, thanks to all for your feedback.


Getting a duplicated transaction exists when trying to do a write request

What platforms are affected?
linux
What architectures are affected?
arm64
What SpiceDB version are you using?
V1.32.0
Steps to Reproduce
Not 100 certain how this happened, but I have a job that just ends up writing requests to backfill data into spice db and its responsible for migrating thousands of records 500 at at a time (individual writes)
Code that writes the relationship, it worked for thousands, but now get stuck every time on the next record
const request = v1.WriteRelationshipsRequest.create({
      updates: [
        {
          operation: v1.RelationshipUpdate_Operation.CREATE,
          relationship: {
            resource: getObjectReference(organizationId, ResourceType.Organization),
            relation: MobileUserTypeToPermissionSetMap[userType],
            subject: getSubjectReference(userId, SubjectType.User),
          },
        },
      ],
    })

    return this.writeRelationship(request)

Expected Result
A relationship is written and can proceed to write futher relationships
Actual Result
{"level":"warn","protocol":"grpc","grpc.component":"server","grpc.service":"authzed.api.v1.PermissionsService","grpc.method":"WriteRelationships","grpc.method_type":"unary","requestID":"cqmiho24mabc73f9a96g","peer.address":"<IP_ADDRESS>:42310","grpc.start_time":"2024-08-02T18:43:44Z","grpc.code":"Aborted","grpc.error":"max retries exceeded: error when trying to create a new transaction: ERROR: duplicate key value violates unique constraint \"pk_rttx\" (SQLSTATE 23505)","grpc.time_ms":56895,"time":"2024-08-02T18:44:41Z","message":"finished call"}

That error indicates that you're likely overloading the Postgres instance; are you performing these writes concurrently? There is a limit after which Postgres won't allow further concurrent writes, especially large ones

It was loading one after another, not a lot at the same time. After this happened it kept happening on any subsequent write (on the first one) even after turning off and on the postgres instance, but there could have been some reads before the writes.
The odd thing is that I skipped a specific record and then it started to work again.

@nate-kis And does it still happen now? Is the relationship being written in the table already?

@nate-kis Anymore details?

No, I haven't been able to reproduce it since, I'll close for now unless I get it again


Is Win16 support doable?

I would like to know whether Win16 support is doable: whether SmallerC knows how to generate ASM code that can then be assembled (by NASM, etc) to Win16 NE executable, and be possibly linked to other Win16 dlls.

Smaller C doesn't know that because nobody has taught it that.
Small memory model is probably doable, but in it you won't have far pointers, long or float. Which is kinda useless.
Frankly, the whole Win16 thing in 2017 makes infinitesimal sense.
The guts of the compiler know nothing about segmentation. The huge memory model is an inefficient hack (every pointer dereference hides a translation between physical and far addresses) and it may not work in protected mode (in general, segment selectors do not translate to virtual/physical addresses directly; you need to set up the LDT in a special way such that adding 8(?) to a segment selector (IOW, using the next LDT entry) corresponds to advancing the physical address by 64KB or something like that (I remember Borland Pascal supported that with DPMI, but I'm not sure if it's doable with Win16)).
See #13 for some details.
Also, I don't know whether the scheduler saves full 32-bit registers.
And I have no knowledge of the NE format or the old 16-bit Windows APIs.
And I don't know how to test it. Will NEs work on Win7 32-bit? Do I need to have some special DLLs?
But most importantly, why do you want this? Can't you use Open Watcom?

Personally, I have a passive interest in Win16 just for the sake of studying old architectures.
Enhanced-mode Windows 3.0 and 3.1 have a 32-bit protected mode kernel and do support 32-bit registers in applications. You can expect all of the extended general purpose registers, segment registers, and FPU stack to be preserved by the scheduler. And yes, the old subsystem is present in 32-bit Win7, so you can run NEs without any special dependencies.

@Trinitek Thanks for the details! As for the learning, I don't think Win16 is worthy or special and you shouldn't be learning from my Win16 learnings, go to the source(s) yourself. :)

Thanks for the information!
I was asking about the Win16 possibility, because here at ReactOS we want to add support for a Win16 layer through the usage of our version of NTVDM, and we were wondering which build toolchain would be best to use; we want something lightweight and preferably not something very stuffed like OpenWatcom. See https://jira.reactos.org/browse/CORE-9452 for the details.

I've done a bit of research and here's my view of the problem.
In order to get Win16 more or less on par with Win32 here's what's needed:

compiler adjustments for segmentation
a whole new executable format in the linker with painful segmentation bits
pretty much a whole new standard library with extras to create a window, process messages and simulate a console in said window

What this may give you:

a somewhat incompatible type system (int will be 32-bit)
a limited set of available Win16 APIs (only what's needed for C I/O including a very limited windows.h; hundreds of Win16 DLL imports/exports or redoing an existing windows.h are out of question)
probably no easy way to just import something from a DLL (just as with Win32 today: you'll need to extend the library yourself, see e.g. the srclib/kernel32/*.c files)
no DLL generation
no resources in the executable
console in the window or just the empty window, no buttons, no nothing GUIsh

With this you wouldn't be able to make programs to exercise all of the Win16 APIs that need to be implemented in ReactOS. It would be a small thing, but very limited and at times awkward to use. It would be quite a bit of work to do just the above but you'd not be very pleased with the result. And anything beyond that is simply too much work.
I think you should simply use Open Watcom.

I've looked at it some more and played with things and I'm not promising Win16 support in Smaller C.
However, if you want something small in terms of dev tools, you can just as well use assembly. Here's a demo. All you need is NASM and a Win16 reference.


Group Upgrade is not adequate

While I understand this is a very challenging topic given how Unity Catalog identity federation works, the way this documentation is currently written customers will not have the information needed to be successful.
I'm referring specifically to this section of this page https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/workspace-local-groups#--migrate-workspace-local-groups-to-account-groups

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

ID: bef216af-9c18-8f15-a523-f2728abf5a3f
Version Independent ID: bef216af-9c18-8f15-a523-f2728abf5a3f
Content: Manage workspace-local groups - Azure Databricks
Content Source: databricks/administration-guide/users-groups/workspace-local-groups.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@JimThorstad
Thanks for your feedback! We will investigate and update as appropriate.

Thanks for providing feedback that helps improve our documentation. We've created an internal work item (DOC-11107) to address your feedback. The timeline for resolution varies based on resourcing.
#please-close


Change cursor w.r.t it's functionality

Change the cursor w.r.t the tool used, a brush while using the brush tool, easer for eraser tool, a pencil for the different shapes used, fill bucket for color selector.

ok iam starting to work in this issue


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 155e84e, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 10910 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 1d2a54c after 10 minutes.


MapGen Beta 3 dosent recognise that .net core is installed

Hi, could you try the latest generated build?
If you still have the same problem, please refer to the README download section
Let me know which solution worked for you.

It seems that you have manually renamed executable to OpenKh.Tools.Kh2MapStudio-beta3.exe.
Make sure that there is *.runtimeconfig.json (in this case it is OpenKh.Tools.Kh2MapStudio-beta3.runtimeconfig.json).
See: c# - Published .Net Core App Warns to Install .Net Core but it's Already Installed - Stack Overflow


Remove validate definition command

Ref: EC-896

Impressive:  +0 −1,090

I was surprised to see we had both internal/input/report.go and internal/definition/report.go since I thought they were the same thing.


HWKALERTS-201 Improve scale for getAlerts/getEvents

For getAlerts:

remove indexing on status and severity

the low cardinality for these fields make them bad for
indexing as the number alerts grows.  And for filtering the
number of returned alertIds will be very large.
prior to filtering on these fields, fetch the alerts (typically
already filtered significantly by time) and then filter them
directly.

For getEvents

although category may have low cardinality it is unknown because
categories are set by the client. So, maintain the index.
filter on category either via query+intersection, or manually,
based on the size of the event set already filtered.
make the CriteriaNoQuerySize configurable and also optiponally
overridden in the criteria.
Fix issue when initial filter returns 0 entities
Add some tests

The changes look good to me.
I have several comments that are minor, nothing important.
So, if you can address them I can merge and rebase as for HWKALERTS-188 I'm touching same methods and I need to reuse these changes.
Thanks.

LGTM


It just doesn't suggest methods from Illuminate\Database\Eloquent\Builder on my model, like "first()" or "where()"

Versions:

ide-helper Version: 2.13
Laravel Version: 10.10
PHP Version: 8.3.1

Question:
After 2 whole days trying to make it work, I just give up to preserve my mental sanity.
I'm running

php artisan ide-helper:generate
php artisan ide-helper:models

This is the relevant part of _ide_helpers_models.php that's generated:
namespace Domains\User\Models{
/**
 * Domains\User\Models\User
 *
 * @mixin IdeHelperUser
 * @property int $id
 * @property string $name
 * @property string $email
 * @property string|null $phone
 * @property \Illuminate\Support\Carbon|null $email_verified_at
 * @property mixed|null $password
 * @property string|null $birth_date
 * @property string $slug
 * @property string|null $google_id
 * @property string|null $google_token
 * @property string|null $facebook_id
 * @property string|null $facebook_token
 * @property string|null $city_id
 * @property string|null $remember_token
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
 * @property-read int|null $notifications_count
 * @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Sanctum\PersonalAccessToken> $tokens
 * @property-read int|null $tokens_count
 * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User query()
 */
	class User extends \Eloquent {}
}

The \Eloquent points to _ide_helper.php
 class Eloquent extends \Illuminate\Database\Eloquent\Model {
    // Here all "first" or "where" methods are defined

That defines all the methods I need like first() or where(), but, for some reason, it's no suggesting anything of these methods.
It suggest the annotation methods of _ide_helper_models.php tho, like:
 * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User query()

On my ide-helper.php config file, I tried it without changing anything, of course, and after that I change these settings only:
'write_eloquent_model_mixins' => true,
'include_helpers' => true,
'include_class_docblocks' => true,

Again not working.
Then I tried to run php artisan ide-helper:models -M, didn't work too.
I tried every single command combination possible, ...:generate and ...:models running the first one and the second, and the first after the second. Nothing works.
Obs.: I had the conflict versions message after installing this package, but I used --with-all-dependencies flag to install it.
This is my composer.json:
"require": {
        "php": "^8.1",
        "guzzlehttp/guzzle": "^7.2",
        "inertiajs/inertia-laravel": "^0.6.8",
        "laravel/breeze": "^1.28",
        "laravel/framework": "^10.10",
        "laravel/sanctum": "^3.2",
        "laravel/tinker": "^2.8",
        "spatie/laravel-sluggable": "^3.5",
        "tightenco/ziggy": "^1.0"
    },
    "require-dev": {
        "barryvdh/laravel-ide-helper": "^2.13",
        "fakerphp/faker": "^1.9.1",
        "friendsofphp/php-cs-fixer": "^3.47",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.18",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^7.0",
        "phpunit/phpunit": "^10.1",
        "spatie/laravel-ignition": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Domains\\": "domains/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },

I've a fresh install of my VSCode without any extensions except:

MehediDracula.php-namespace-resolver
bmewburn.vscode-intelephense-client
mohamedbenhida.laravel-intellisense

The only thing I changed related to php on my settings.json is (changed it to true too, it doesn't affect ide-helper):
  "php.suggest.basic": false,

Workaround
Use Model::query()->first() to get the type hinting for Builder methods like first()/where(), it's uglier and it'll bloat the code a little more but, there's nothing else to do.

It's been a long time since it stopped working.

I've been experiencing the same problem for a very long time.

I think it is supported in the premium version of intelephense. Alternatively, you can download the eloquent.php.txt file and place it in your project's root directory, renaming it to _ide_helper_eloquent.php or choose a filename that suits your preferences.
For more details, refer to the following links:

https://github.com/bmewburn/vscode-intelephense/issues/708
https://github.com/bmewburn/vscode-intelephense/issues/123

I also face the same problem here. I've tried countless things and I can't get it to work.
Here when I put first() for example what appears is this:


How can we learn that AsArrayObject is Countable

Larastan Version: latest
--level used: 5

Description
When a JSON attribute is cast to AsArrayObject Larastan fails to recognize it is countable when using it in PHP function count().
Parameter #1 $var of function count expects array|Countable, Illuminate\Database\Eloquent\Casts\AsArrayObject given.

Can we do this?

Hi,
Can you share the code where the error comes from?

count($review->comments)

It needs no code. Attribute cast to AsArrayObject, count() produces the above error.

I've never used that before. So I didn't know. Now read here, I understand the issue.
I think this needs to be handled here.

Thank you for your investigation.

Fixed with https://github.com/nunomaduro/larastan/commit/bf1a22ffcc6ea35afc644c07cdc180198a58801b

Thank you.


Update docstring parser -> parses

Is there somewhere I can see the status of these checks? I feel like they aren't supposed to take 3+ days.


fix(is_master-fact): use --ssl if --sslPEMKeyFile or --sslCAFile is s…

Pull Request (PR) description
When using SSL in any other mode than requireSSL and you have specified a server or ca-certificate the mongodb_is_master fact will fail.
It will generate a shell command like "mongo --quiet --sslPEMKeyFile $file" which results in an
"Failed global initialization: BadValue ssl is required when ssl.PEMKeyFile is specified".
This pull-Request ensures that "--ssl" is also set when setting --sslPEMKeyFile or --sslCAFile.

Hi,
i have changed the mailaddress of the commit.
And I just found a bug that is related to this one.
If the mongodb is bound to <IP_ADDRESS> or ::0 <IP_ADDRESS> or ::1 is used to connect to the database.
This does not work if ssl/tls is enabled because the local adresses are not part of the certificate (at least if not using self-signed certificates).
I therefore changed it to use the fqdn-address which should work on every system.


routeId not tracked as dependency to layout load

Describe the bug
When you access event.routeId in a layout load function, the load function does not re-run when routeId changes. Since routeId is based on the URL, we should track dependencies to it similar to url and params.
This probably only makes sense in a layout load. On page loads, routeId should stay the same.
Reproduction
StackBlitz

Load page. Notice routeId for the current page is displayed
Navigate to another page. The routeId does not change until a page reload

In this case you could work around the issue by retrieving it from the $page store, but if you're doing something else with routeId, that would not be re-run.
// +layout.server.js
export const load = ({routeId}) => {
  return {
    routeId
  }
}

Logs
n/a

System Info
System:
    OS: Linux 5.0 undefined
    CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.80
    @sveltejs/kit: next => 1.0.0-next.499
    svelte: ^3.46.0 => 3.50.1
    vite: ^3.1.0 => 3.1.3

Severity
serious, but I can work around it
Additional Information
No response

Hmm — this one is tricky. We ran into problems with top-level tracked properties before because you can't do things like { ...event, extra_thing } without triggering the getter (unless you make it non-enumerable, in which case it won't appear in the new object).

@dummdidumm pointed out that we could make routeId dependency visible without the getter by doing what we did for clientAddress — turn it into an event.getRouteId() method instead. It's a tiny bit clunky/leaky but it doesn't feel terrible

I looked at the possibility of changing this to getRouteId() and not so sure anymore about my proposal. In contrast to getClientAddress, routeId is used in places outside the load function - for example in $page.routeId -, which would make it feel even weirder (having one being a function and one not). routeId is also used all over the place internally, so not very ergonomic internally (although that's probably a less important argument).
Another idea would be to turn it into route: { id: string }, which would also make it possible to add more things to that later on (although I can't imagine anything useful right now).

I ran into this today, not a blocker for me since I can workaround with url instead, but it would be nice to have routeId trigger load rerun.
I'm all for route: { id: string } purely from a personal user point of view, better than getRouteId indeed.


[4.0 xpt] Create UI for the Car Details Page

Create the motorcycle details page. On this page, the users should be able to see the details of a selected bike and they will be able to book
or unbook a bike.


LANG-1664 adjust doc to show argument is a primitive character

The for the methods

StringUtils#substringAfterLast(String, int)
StringUtils#substringBefore(String, int)

the second argument is currently described as String in the doc.
The actual argument is a primitive int meant to be used as a character / unicode code point.
The PR changes the doc to reflect that.
Since the argument is a primitive, the note on null input was dropped.

Looks good to me, thanks @rolandkreuzer ! Will leave it open so @garydgregory has time to review it too if he'd like.

Merged, thanks @rolandkreuzer !


Training issue

Hi, I'm creating a chatbot for assessment but the issue is that when I try to train the data it doesn't remember previous training.

Thanks for raising this issue, @b-quachtran will get back to you about it soon✨
Please also check out the docs and the forum in case your issue was raised there too 🤗

Hi @Jinay09. If this still an issue, can you please try providing more details and ask your question on the Rasa forum?


GST_STATE_CHANGE_READY_TO_NULL status missing ?

Thre is no GST_STATE_CHANGE_READY_TO_NULL status, is it missing???
Line 1387 in gstkvssink.cpp file
For when we want to close stream  and log4cplus, even if the main program is not finished to free memory ?!

solved


Problems with using CasheSession and User::enableAutoLogin

What steps will reproduce the problem?
To run CacheSession use this settings:
'user' => [
  'identityClass'   => common\modules\user\models\User::className(),
  'enableAutoLogin' => true, // use autologin
],
'session' => [
  'class'        => yii\web\CacheSession::className(), // cache == MemCache
  'cookieParams' => [
    'lifetime' => 10, // to fast detect the problems
  ],
],

Sign in the app with Remember me checkbox and wait for 10 seconds. After this time the session automatically ended. Then I click "Logout" link.
What is the expected result?
User must simply logged out.
What do you get instead?
In debug mode the site is throwing the warning:
PHP Warning – yii\base\ErrorException
session_regenerate_id(): Session object destruction failed. ID: user (path: /var/lib/php/sessions)

What is the problem?
When we are using enableAutoLogin and clicking to the Logout link, there are two steps in one request: first step is Loging in by cookie to the app, and second step Loging out. Both steps are accompanied by regenerateID method:
    /**
     * Updates the current session ID with a newly generated one .
     * Please refer to <http://php.net/session_regenerate_id> for more details.
     * @param boolean $deleteOldSession Whether to delete the old associated session file or not.
     */
    public function regenerateID($deleteOldSession = false)
    {
        if ($this->getIsActive()) {
            // add @ to inhibit possible warning due to race condition
            // https://github.com/yiisoft/yii2/pull/1812
            if (YII_DEBUG && !headers_sent()) {
                session_regenerate_id($deleteOldSession); // there is our problem place
            } else {
                @session_regenerate_id($deleteOldSession);
            }
        }
    }

In Loging in step this method is not running, because the session is not yet active. But session is activated after login and on second step session ID will be regenerated. All would be good, but session_regenerate_id is trigger other method - CacheSession::destroySession($id):
    /**
     * Session destroy handler.
     * Do not call this method directly.
     * @param string $id session ID
     * @return boolean whether session is destroyed successfully
     */
    public function destroySession($id)
    {
        return $this->cache->delete($this->calculateKey($id));
    }

This is our problem, because the cache cannot find the data by new generated key and throwing false.
Maybe this it`s wrong, but the error occurs all the time.
I think, check the key in cache before delete will solve the problem.
For example:
    public function destroySession($id)
    {
        return !$this->cache->exists($this->calculateKey($id)) || $this->cache->delete($this->calculateKey($id));
    }

Additional info
PS: Sorry for my Eng :-)

Q
A

Yii version
2.0.10

PHP version
7.0

Operating system
Ubuntu 14.04 x64

The problem is verified, thank you for the report.
DbSession always returns true from destroySession() method, so the problem can be reproduced only with CacheSession component.


When there would be a version 1.0?

First Check

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

Commit to Help

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

Example Code
There's no code to be included.

Description
I read in the docs that at the moment FastAPI is production ready and is used by big tech companies, but I'm asking when there will be a release for version 1.0? And if there is one, what is to be expected from that version as I think FastAPI is using semantic versioning.
Operating System
Linux
Operating System Details
Ubuntu 20.04 LTS
FastAPI Version
0.70.0
Python Version
3.7.11
Additional Context
No response

How much of the openapi specification would we also need to tick off? These could have breaking changes (thinking deepObject query encoding) and a few other extra features


test update error code 255, was error code 1

the update im getting is getting a error for generate key and update the test time
main.py: error: argument --email-api: invalid choice: 'devleropmail' (choose from '1secmail', '10minutemail', 'guerrillamail', 'developermail', 'mailticking')
Error: Process completed with exit code 255.
i noticed developermail is spelt incorrect?
i had a look on the update test.yml file, line 2 has developermail spelt as devleropmail im not sure if this is the issue but i keep pushing the updates it was initial first a error code  exit 1. fetching the API and now its error code 255 btw

I don't have any typos

send me a link to the file

main.py: error: argument --email-api: invalid choice: 'devleropmail' (choose from '1secmail', '10minutemail', 'guerrillamail', 'developermail', 'mailticking')
Error: Process completed with exit code 255.
this is what i get in the test update ( i cant login to the eset portal either)
https://github.com/pinkyellowed/ESET-KeyGen/commit/0844c1adce8c3efde859ab83d010c2ff985b9076
line 22

@pinkyellowed I think the problem regards typos is you`ve forked @rzc0d3r project and incorrectly spell it in a commit.

main.py: error: argument --email-api: invalid choice: 'devleropmail' (choose from '1secmail', '10minutemail', 'guerrillamail', 'developermail', 'mailticking') Error: Process completed with exit code 255. this is what i get in the test update ( i cant login to the eset portal either) pinkyellowed@0844c1a line 22

Delete you fork, and create new fork again!

wtf thats weird, the test updated worked post edit for 2 days until yesterday, cant i edit the fork ?


docs: Add information about "duration" API parameter

What this PR does / why we need it:
Added more information about the duration parameter.
Release note:
None

/cc @0xFelix

/unhold

/lgtm


why cocoapods installs outdated version

pod specs is outdated. How can we update this?
https://github.com/CocoaPods/Specs/blob/master/Specs/RAMAnimatedTabBarController/1.0.1/RAMAnimatedTabBarController.podspec.json

+1
Really hate to copy/paste code into my project. For a solution, I set the git url and tag for  RAMAnimatedTabBarController:
pod 'RAMAnimatedTabBarController', :git => 'https://github.com/Ramotion/animated-tab-bar.git', :tag => '1.0.5'

Yes the solution you gave works well however cocoapods need upgrade to solve the problem.

fixed

It is still installing the 1.0.1 version of library when run pod install.

run pod update

Yeah, it works. Sorry for my mistake.


bracket style blocks around if statments

Right now if statements only has an if and end like.
if true
  x = foo
end

It would be nice to also have the option to have bracket block style arguments if statements like.
if true {
  x = foo
}

This would enable a more c style structure but would be more flexible.

I think it will conflict with the block argument to the calling method in the conditional.
if [1, 2, 3].any? { |x| x == 1 }
  x = foo
end

I don't see any benefit from that. It would just be another way to do the same thing and we try to avoid that in Crystal. It's a purely stylistical issue. So I don't suppose this is worth pushing forward.

please don't

I was also going to comment about the syntax conflict. I don't think this will ever happen.


BasicMessageChannel's with BinaryCodec aren't sending responses on Android

Android Code:
class MainActivity: FlutterActivity() {

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        val basicBinary =
            BasicMessageChannel(flutterEngine.dartExecutor, "dev.flutter.echo.basic.binary", BinaryCodec.INSTANCE)
        basicBinary.setMessageHandler { message, reply -> reply.reply(message) }
        super.configureFlutterEngine(flutterEngine)
    }
}

Flutter Code:
  const BasicMessageChannel<ByteData> basicBinary =
      BasicMessageChannel<ByteData>(
    'dev.flutter.echo.basic.binary',
    BinaryCodec(),
  );

  int size = 0;
  for (int i = 0; i < _numMessages; ++i) {
    final ByteData result = await basicBinary.send(encodedLargeBuffer);
    size += (result == null) ? 0 : result.lengthInBytes;
  }
  if (size != encodedLargeBuffer.lengthInBytes * _numMessages) {
    throw Exception(
        'There is an error with the echo channel, the results don\'t add up: $size');
  }

Seen result:
result is not null, but the lengthInBytes is zero.  The exception is getting thrown.
Expected result:
result should be equal to encodedLargeBuffer.  This works on iOS, not on Android.
Debugging Info:
I was able to verify that the data is getting received correctly in the channel's handler.  I followed the data all the way in the Java debugger and everything looks good.  It seems the data is getting lost in the layer below that.
Reproduction Code:
I discovered the problem when authoring https://github.com/flutter/flutter/pull/81874

This is happening because the reply messages size is being sent as the bytebuffer's position: https://github.com/flutter/engine/blob/ccaae8d9582b275002f79f46ade56f9c1b307234/shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java#L160

Here is the correct implementation of the echo channel:
class MainActivity: FlutterActivity() {

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        val basicBinary = BasicMessageChannel(flutterEngine.dartExecutor, "dev.flutter.echo.basic.binary", BinaryCodec.INSTANCE)
        basicBinary.setMessageHandler { message, reply -> run {
            val result = ByteBuffer.allocateDirect(message!!.capacity())
            result.put(message)
            reply.reply(result)
        } }
        super.configureFlutterEngine(flutterEngine)
    }
}

Not only did I have to move the position of the buffer to the end.  I had to make sure that I used a direct buffer.  At the very least we should have an assert that the bytebuffer is direct.

I verified that the following change fixes this issue.  It is a breaking change though so I'm not sure if we want to do it.
diff --git a/shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java b/shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java
index fc03bb1f3..eb11f1325 100644
--- a/shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java
+++ b/shell/platform/android/io/flutter/embedding/engine/dart/DartMessenger.java
@@ -157,7 +157,7 @@ class DartMessenger implements BinaryMessenger, PlatformMessageHandler {
       if (reply == null) {
         flutterJNI.invokePlatformMessageEmptyResponseCallback(replyId);
       } else {
-        flutterJNI.invokePlatformMessageResponseCallback(replyId, reply, reply.position());
+        flutterJNI.invokePlatformMessageResponseCallback(replyId, reply, reply.limit());
       }
     }
   }

It is a breaking change though so I'm not sure if we want to do it.

Do you know the use case? I can think of chunking/streaming of some sort. Is that the use case?

@blasten I don't think there is a legitimately good reason to do it.  You couldn't do chunking or something because you can't choose the start position of what gets copied, only the ending position (in a not straight forward way).  Since it could break plugins in subtle ways though at runtime I'm thinking it might not be worth it.  I wouldn't be surprised if the change has zero impact on the whole ecosystem though.
We could add an exception if the position of the buffer passed in is at zero though, that will always result in sending a zero length buffer to Flutter.  I can't imagine anyone intended that.

sgtm. My hypothesis on why it used reply.position() instead of reply.limit() is because the common case is to construct your own buffer, write to it, and each write operation advances the position. Hence, the common case is that position() equals the whole thing.

It's mentioned here: https://github.com/flutter/engine/blob/138c91c614d742c52aa5432b4cb921f0ff9fdee2/shell/platform/android/io/flutter/plugin/common/BinaryMessenger.java#L97 - I still don't understand the use case 😅

Closing this since it seems to be working as intended.


[qpid-proton] Update to qpid-proton 0.29.0

Simplify build
Remove unneeded installed files

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

/azp run