treat MYSQL enums as typescript enums, not just strings

similarly to how graphql-code-generator generates a typescript enum OR uses an existing typescript enum, ideally the sql-code-generator would too leverage typescript enums.

Preferably with an option like the enumsAsTypes in graphql-code-generator to have an enum be exported as a type like:
export type Foo =
  | 'ABC'
  | 'XYZ'

TypeScript enums doesn't work when using it in JSDoc:ed JS files.


taffybar: work around repeated arguments bug

Fixes #40013
Motivation for this change
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

@GrahamcOfBorg build.haskell.packages.ghc822.taffybar build.haskell.packages.ghc843.taffybar

@GrahamcOfBorg build haskell.packages.ghc822.taffybar haskell.packages.ghc843.taffybar

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

Failure on x86_64-linux (full log)
Attempted: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/r6sba9zqwp344hlf0y87agqvwzwm81a3-gi-gtk-hs-<IP_ADDRESS>/lib
patching script interpreter paths in /nix/store/r6sba9zqwp344hlf0y87agqvwzwm81a3-gi-gtk-hs-<IP_ADDRESS>
checking for references to /build in /nix/store/r6sba9zqwp344hlf0y87agqvwzwm81a3-gi-gtk-hs-<IP_ADDRESS>...
wrong ELF type
shrinking RPATHs of ELF executables and libraries in /nix/store/4ga474xanbz28gj69jkn0vwkvbn96zhw-gi-gtk-hs-<IP_ADDRESS>-doc
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/4ga474xanbz28gj69jkn0vwkvbn96zhw-gi-gtk-hs-<IP_ADDRESS>-doc
checking for references to /build in /nix/store/4ga474xanbz28gj69jkn0vwkvbn96zhw-gi-gtk-hs-<IP_ADDRESS>-doc...
cannot build derivation '/nix/store/bhibqr8f02blxd0vimkdqrvhnm8n112w-taffybar-2.1.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/4066c7kansf796rv50alv1aq0f82y6mx-taffybar-2.1.0.drv', '/nix/store/bhibqr8f02blxd0vimkdqrvhnm8n112w-taffybar-2.1.0.drv' failed

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: .haskell.packages.ghc822.taffybar, build.haskell.packages.ghc843.taffybar
Partial log (click to expand)
Cannot nix-instantiate `.haskell.packages.ghc822.taffybar' because:
error: empty attribute name in selection path '.haskell.packages.ghc822.taffybar'

Cannot nix-instantiate `build.haskell.packages.ghc843.taffybar' because:
error: attribute 'build' in selection path 'build.haskell.packages.ghc843.taffybar' not found

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

I opened #41420 to set this in all haskell derivations. I've been meaning to write an RFC to set it everywhere (and then remove it.)

@GrahamcOfBorg  build taffybar

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: taffybar
Partial log (click to expand)
Warning: haddock-interfaces: /nix/store/j2k151dmalrlybgccjkxw9i63kxxang5-gi-atk-2.0.15/share/doc/x86_64-linux-ghc-8.2.2/gi-atk-2.0.15/html/gi-atk.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/j2k151dmalrlybgccjkxw9i63kxxang5-gi-atk-2.0.15/share/doc/x86_64-linux-ghc-8.2.2/gi-atk-2.0.15/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /nix/store/9fd03cvs7nbdc8zd77fkiva0nsbjc7nl-gi-gdkx11-3.0.2/share/doc/x86_64-linux-ghc-8.2.2/gi-gdkx11-3.0.2/html/gi-gdkx11.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/9fd03cvs7nbdc8zd77fkiva0nsbjc7nl-gi-gdkx11-3.0.2/share/doc/x86_64-linux-ghc-8.2.2/gi-gdkx11-3.0.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /nix/store/8r3rfyclp2i6w5scfhxblwj6ppkihsxm-gi-gtk-3.0.23/share/doc/x86_64-linux-ghc-8.2.2/gi-gtk-3.0.23/html/gi-gtk.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/8r3rfyclp2i6w5scfhxblwj6ppkihsxm-gi-gtk-3.0.23/share/doc/x86_64-linux-ghc-8.2.2/gi-gtk-3.0.23/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /nix/store/3cxws1bxj3sm8ma81zyazrr67i9fx37s-gi-dbusmenugtk3-0.4.2/share/doc/x86_64-linux-ghc-8.2.2/gi-dbusmenugtk3-0.4.2/html/gi-dbusmenugtk3.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/3cxws1bxj3sm8ma81zyazrr67i9fx37s-gi-dbusmenugtk3-0.4.2/share/doc/x86_64-linux-ghc-8.2.2/gi-dbusmenugtk3-0.4.2/html doesn't exist or isn't a directory
building '/nix/store/9iwk6cv3279px9nx1yvpp3s1civq8jr1-taffybar-with-packages.drv'...
/nix/store/2ldqdjxv430033dsgq5i293w8njfbqnl-taffybar-with-packages

@GrahamcOfBorg build haskell.packages.ghc822.taffybar haskell.packages.ghc843.taffybar

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: haskell.packages.ghc822.taffybar, haskell.packages.ghc843.taffybar
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/vfqqj3yzmz5x8wm1nnji20j67h2xfa45-taffybar-2.1.2-data
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/vfqqj3yzmz5x8wm1nnji20j67h2xfa45-taffybar-2.1.2-data
checking for references to /build in /nix/store/vfqqj3yzmz5x8wm1nnji20j67h2xfa45-taffybar-2.1.2-data...
shrinking RPATHs of ELF executables and libraries in /nix/store/y02c5p9zqhqwvilj0j8l2dg5vdxmfal7-taffybar-2.1.2-doc
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/y02c5p9zqhqwvilj0j8l2dg5vdxmfal7-taffybar-2.1.2-doc
checking for references to /build in /nix/store/y02c5p9zqhqwvilj0j8l2dg5vdxmfal7-taffybar-2.1.2-doc...
/nix/store/8r6cj4v19nyjv98yfhw0vpi0lqcl22px-taffybar-2.1.2
/nix/store/y7asn3p0gs50agkaj3zfwwy5k45193kz-taffybar-2.1.2

Seems to build fine.


Android: synchronous prepare

Android:
If you try to seek immediately after calling setUrl, the following errors are reported:
error: MediaPlayer error with what:MEDIA_ERROR_UNKNOWN {extra:-2147483646}
Attempt to perform seekTo in wrong state: mPlayer=0x766f3e8b00, mCurrentState=0
error (-38, 0)

The problem lies in prepareAsync() being used. setUrl then reports that the player is ready, but in most cases it's not. Using prepare() instead fixes the problem.
I tested it for mp3 files and mp3 urls.
The documentation states:

For streams, you should call prepareAsync(), which returns immediately, rather than blocking until enough data has been buffered.

I interpret this as: It can still be used for streams, it's just blocking a bit longer until enough data is buffered for playing.
fixes:
#266
Might fix:
#865 #843

Closing this as we should not do sync prepare on the main thread. We can consider if there are any issues with the current setting of the prepared variable anyway on followups.


Rename !=~ to !~

Just a suggestion...
At least Perl and Ruby use !~ as the negated form of =~, while I haven't really come across any language that uses !=~.

Makes sense, thanks!
Do you insist on the whitespace changes from 4 to 2 spaces?
Otherwise, I would suggest you leave them out of this PR.

Oops, sorry for the whitespace changes, that was my "reformat on save" Xcode plugin in action. I'll update the PR.

Oh man, I removed the indentation changes, now it removed extra whitespace on blank lines on save. One sec...

All good now, sorry for the overeager tools :wink:

Haha, no worries. Looks good now!


Release 2.1.1

[x] Implement function
[x] Testing
[x] Add a document
[x] Bump version
[x] Release to PyPI

Just released.
https://pypi.org/project/pip-licenses/2.1.1/


enable a oneDNN ITT feature

There is an oneDNN feature to enable ITT tagging for oneDNN primitives on Intel VTune Profiler.
Here is the RFCS for this feature.
https://github.com/oneapi-src/oneDNN/tree/rfcs/rfcs/20201014-VTune-ITT-tagging
Intel VTune Profiler is a performance analysis tool for x86 based machines and Intel Data Center GPUs.
VTune helps on finding your performance bottlenecks and provide details Intel platform information.
We work with VTune Team to have some BKMs and tensorboard pluging for the feature.
We would like to enable this feature by default on TensorFlow, so users could identify platform bottlenecks with details information such as L1 caches misses or level of AVX512 vectorization.
We manually built the TF pkg with ITT features, and then benchmark with Intel Model Zoo w/ & w/o this feature.
This feature has no impact on performance based on our perf benchmarking on different Intel Model Zoo models.
If users don't want this feature, they could also disable it on runtime via an environment flag "DNNL_ITT_TASK_LEVEL"

@penpornk
thanks for your help.
I work with Ramesh for this commit.
Let me know any other material needed.

@gbaned @penpornk
possible to help on reviewing the PR?
thanks a lot

Hi @penpornk Can you please review this PR ? Thank you!

Hi @penpornk Can you please review this PR ? Thank you!

@penpornk  Let us know any additional information needed.

@penpornk
any update? if you need a online discussion session, please let us know.

Hi @penpornk Can you please review this PR ? Thank you!

Hi @penpornk Can you please review this PR ? Thank you!


confluence_cleanup_archive hangs

I am testing out the new feature added as part of https://github.com/sphinx-contrib/confluencebuilder/issues/697 that allows us to use the new experimental Confluence API to archive pages instead of deleting them and unfortunately it causes the publish job to hang indefinitely in my environment.
I've tried enabling confluence_publish_debug but it doesn't provide me any more information.
Interestingly, if I set confluence_publish_dryrun = True, it no longer hangs. It still displays the correct list of pages that should be archived.
I know that this API is experimental but I'm just reporting this in case you have any ideas what might cause this, and also for visibility in case others encounter this behavior.
It is of course also possible this is just something specific to my environment. If others test this out please share your results. I'm going to try going back to purge instead of archive and see if it still hangs.
Thank you guys!

Well, it seems that this is hanging when I go back to purge instead of archive as well.
I even reverted to v1.8 and it is still hanging. This definitely sounds like something environmental.
I'll keep digging and see if I can get to the bottom of it.
Thanks!

False alarm. This has nothing to do with archive which is great.
However, I am having a problem where periodically publishing an asset will hang indefinitely. The asset isn't even particularly large (100K). I'm going to continue debugging.
But for now this issue can be closed.

@marshall-mcmullen, one thing you can try (if you haven't done already) is enabling the verbose flag (-v). For example:
python -m sphinx -b confluence . _build/confluence -E -a -v

The only thing I can imagine that could be delaying some events is due to the detection of rate-limiting from the remote server. While in some cases a warning message may be logged when this is detected, it is not guaranteed. If you enable verbosity, and you see "rate-limit header detected" messages, that is most likely the case (where this extension throttles API requests).
If it is the case that the instance you interact with is rate-limiting, it is hard to say what a step forward would be (there's not really much the extension can do). One may try to manually impose their own confluence_publish_delay delay to see if manually delaying requests can prevent some sort of automatic throttling at a Confluence API access point may be imposing, but no guarantee that it would help (could even make things worse).
If you do not see any rate-limiting messages, I'm not sure what else it could be from this extension. You could try configuring confluence_timeout for a more consistent failure approach if having issues interacting with the configured instance. The only other things that spawn off the top of my head is just how the Confluence instance (or reverse proxy to the instance) is configured. Depending on how many documents you may be trying to publish/process, there could be a chance a local firewall does not like all the API calls and drops requests -- but now we are really speculating.

Thank you so much for your detailed response @jdknight , it was helpful. After turning on the verbose flag, I saw that it was not hanging on the purge or the archive but on trying to upload one of the assets (an image). I ended up manually archive the page on confluence that contained the associated image, and the next time I published, everything worked, including archive!
I'll call this a fluke for now. if I see it again we can dig in further.
Thanks so much for your help

@jdknight
In case anyone comes across this issue later, I ended up seeing this again in our environment. Only this time I was able to figure out that it was not caused by trying to upload an asset like I previously thought.
The hang happens for me 100% of the time in our environment.
What I ended up doing is enabling the configuration option confluence_adv_aggressive_search = True. When I enabled that setting, I was able to publish 100% of the time with no more hang!
I flipped the setting back to confluence_adv_aggressive_search = False, and re-ran it, and once again it would hang 100% of the time! I flipped it back to True and again the hang went away.
So there is definitely something about this setting which fixed this problem for me.


The maximum product of adjacent elements in Java

Write a program that reads an array of ints and outputs the maximum product of two adjacent elements in the given array of non-negative numbers.
Enter link to the question(if question belongs to any online platform) -
N/A
Tags for the question(eg - Array, Basic, Stack, etc.) -
Array, Basic

As a part of Hacktoberfest, @SarthakKeshari please assign this issue to me

@erickcernarequejo,
Kindly add you solution to "Arrays/1D Arrays" folder.
Deadline - 05/10/2021
This Issue will only be counted towards ranking criteria of this repository.
Gentle advice for futher Issues -
A bit more tough questions would be appreciated for Hacktoberfest tag.

@erickcernarequejo, Kindly add you solution to "Arrays/1D Arrays" folder. Deadline - 05/10/2021
This Issue will only be counted towards ranking criteria of this repository.
Gentle advice for futher Issues - A bit more tough questions would be appreciated for Hacktoberfest tag.

I understand, thank you.


chore: bump unity-test-runner version in v3 docs

Changes

Bumps all usages of the game-ci/unity-test-runner GitHub action to the newer v3.

Checklist

[x] Read the contribution guide and accept the
code of conduct
[x] Readme (updated or not needed)
[x] Tests (added, updated or not needed)

Thank you!


Problem during transform to tflite and ok in cloud environment training

Hello, @titu1994 , thanks for your open-source project.
I build the training model successfully with your provided APIs in cloud environment.
However, when I transform to tflite model. It has problem.
My code is:
import tensorflow as tf
import keras
import h5py
import keras_efficientnets
from keras_efficientnets.config import BlockArgs, get_default_block_list
from keras_efficientnets.custom_objects import EfficientNetConvInitializer
from keras_efficientnets.custom_objects import EfficientNetDenseInitializer
from keras_efficientnets.custom_objects import Swish, DropConnect
if __name__ == "__main__":
    converter = tf.contrib.lite.TFLiteConverter.from_keras_model_file("efficient_net_v1_190925.h5")
    converter.optimizations = [tf.contrib.lite.Optimize.OPTIMIZE_FOR_SIZE]
    tflite_model = converter.convert()
    open("efficient_net_wrap_finger.tflite", "wb").write(tflite_model)

The error-log is:

Using TensorFlow backend.
Traceback (most recent call last):
File "model_convert.py", line 10, in
converter = tf.contrib.lite.TFLiteConverter.from_keras_model_file("efficient_net_v1_190925.h5")
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/lite/python/lite.py", line 368, in from_keras_model_file
keras_model = _keras.models.load_model(model_file)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py", line 230, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py", line 310, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/layers/serialization.py", line 64, in deserialize
printable_module_name='layer')
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 173, in deserialize_keras_object
list(custom_objects.items())))
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py", line 1292, in from_config
process_layer(layer_data)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py", line 1278, in process_layer
layer = deserialize_layer(layer_data, custom_objects=custom_objects)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/layers/serialization.py", line 64, in deserialize
printable_module_name='layer')
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 175, in deserialize_keras_object
return cls.from_config(config['config'])
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 1606, in from_config
return cls(**config)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/layers/convolutional.py", line 488, in init
kernel_initializer=initializers.get(kernel_initializer),
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/initializers.py", line 155, in get
return deserialize(identifier)
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/initializers.py", line 147, in deserialize
printable_module_name='initializer')
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py", line 163, in deserialize_keras_object
raise ValueError('Unknown ' + printable_module_name + '

: ' + class_name)
ValueError: Unknown initializer: EfficientNetConvInitializer

What is the roor-cause of the problem?
How can I resolve it?
Or is there a bottleneck for the efficient-net model to be depolyed on mobile device?
Thanks & Regards!

Two things. I think tflite is more for TF.keras than for core Keras, bit I may be wrong. If I'm wrong, then second thing is that I use custom initializers  which might not be detected by the tflite engine. If there is a way to pass custom objects to it, do that.


Upgrade to @fireblocks/ncw-js-sdk 12.5.0

There is a breaking change for 12.5.0 that must be accounted for. More details here:
https://ncw-developers.fireblocks.com/docs/javascript-sdk

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun


Overflow dropdown styling is not Carbon compliant

Ref : 3014
-Incorrect drop shadow
-Dropdown doesnt connect to overflow icon, which is also not persistent
-Text color should be grey
-Improper spacing on text
-Background should be grey, not white
...and likely other visual defects. Basically the Carbon dropdown is not being used here:
https://react.carbondesignsystem.com/?path=/story/overflowmenu--basic

This working has halted so I'm closing this issues for now. Will reopen when work resumes.


UCSEditorSubsystem and UCSEngineSubsystem not initializing

After editing the UCSEditorSubsystem class to use a native event for ShouldCreateSubsystem(), it looks like that function is never called even in the C++ CS subclass. It looks like the subsystem collection isn't collecting/finding the C# subclasses for both the Editor and Engine subsystems.
using UnrealSharp.Attributes;
using UnrealSharp.UnrealSharpEditor;

namespace ManagedUnrealSharpRepro;

[UClass]
public class UTestSubsystem : UCSEditorSubsystem
{
    protected override void Initialize()
    {
        base.Initialize();

        Console.WriteLine("Initializing DbxSubsystem");
    }
}

https://github.com/UnrealSharp/UnrealSharp/commit/7aeaecd39dd151522bdcb994f6a0c2fde686ebcd


Non-bootstrap and React 0.14

Hi @humanhighway, thanks for the library! I was wondering if there are any plans to move away from Bootstrap dependency as well as upgrade to React 0.14?

@oyeanuj , thanks for your response !
i created a es6 test branch last week and it upgraded to react 0.14.3 / es6  react component class, but still use react-bootstrap (0.27.0).
i think this branch it's easy to move away from react-bootstrap dependency maybe you can try, thanks!


Polyfill library without the service

Hi,
I'd like to integrate the polyfill library into my app but I don't want to use the CDN. How can I achieve this goal:

The library package is also up on npm: https://github.com/Financial-Times/polyfill-service/tree/master/packages/polyfill-library


Unit tests failing

When I pull down the repo and run the tests, I get 312 passing and 10 failing. Am I missing a setup step?
Here are the failures:
1) eventstore calling that function with options containing a type property with the value of "mongodb" having initialized (connected) using the eventstore "before all" hook:
     MongoError: command delete requires authentication
      at node_modules/mongodb-core/lib/connection/pool.js:581:63
      at authenticateStragglers (node_modules/mongodb-core/lib/connection/pool.js:504:16)
      at Connection.messageHandler (node_modules/mongodb-core/lib/connection/pool.js:540:5)
      at emitMessageHandler (node_modules/mongodb-core/lib/connection/connection.js:310:10)
      at Socket.<anonymous> (node_modules/mongodb-core/lib/connection/connection.js:453:17)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Socket.Readable.push (_stream_readable.js:208:10)
      at TCP.onread (net.js:597:20)

  2) eventstore calling that function with options containing a type property with the value of "mongodb" having initialized (connected) using the eventstore "after all" hook:
     MongoError: command delete requires authentication
      at node_modules/mongodb-core/lib/connection/pool.js:581:63
      at authenticateStragglers (node_modules/mongodb-core/lib/connection/pool.js:504:16)
      at Connection.messageHandler (node_modules/mongodb-core/lib/connection/pool.js:540:5)
      at emitMessageHandler (node_modules/mongodb-core/lib/connection/connection.js:310:10)
      at Socket.<anonymous> (node_modules/mongodb-core/lib/connection/connection.js:453:17)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Socket.Readable.push (_stream_readable.js:208:10)
      at TCP.onread (net.js:597:20)

  3) eventstore calling that function with options containing a type property with the value of "redis" calling init without callback it should emit connect:
     Error: Timeout of 20000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  4) eventstore calling that function with options containing a type property with the value of "redis" having initialized (connected) using the eventstore "before all" hook:
     AbortError: Connection forcefully ended and command aborted.
      at RedisClient.flush_and_error (node_modules/redis/index.js:362:23)
      at RedisClient.end (node_modules/redis/lib/extendedApi.js:52:14)
      at Redis.disconnect (lib/databases/redis.js:165:19)
      at RedisClient.<anonymous> (lib/databases/redis.js:101:12)
      at RedisClient.connection_gone (node_modules/redis/index.js:590:14)
      at RedisClient.on_error (node_modules/redis/index.js:410:10)
      at Socket.<anonymous> (node_modules/redis/index.js:279:14)
      at emitErrorNT (internal/streams/destroy.js:64:8)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

  5) eventstore calling that function with options containing a type property with the value of "redis" having initialized (connected) using the eventstore "after all" hook:
     AbortError: DEL can't be processed. The connection is already closed.
      at handle_offline_command (node_modules/redis/index.js:851:15)
      at RedisClient.internal_send_command (node_modules/redis/index.js:885:9)
      at RedisClient.del (node_modules/redis/lib/commands.js:58:25)
      at lib/databases/redis.js:175:21
      at node_modules/async/dist/async.js:3866:24
      at eachOfArrayLike (node_modules/async/dist/async.js:1055:9)
      at eachOf (node_modules/async/dist/async.js:1103:5)
      at _parallel (node_modules/async/dist/async.js:3865:5)
      at Object.parallelLimit [as parallel] (node_modules/async/dist/async.js:3948:5)
      at Redis.clear (lib/databases/redis.js:173:11)
      at Context.<anonymous> (test/eventstoreTest.js:1000:26)

  6) "mongodb" store implementation creating an instance having connected using the store "before each" hook for "it should callback with a new Id as string":
     MongoError: command delete requires authentication
      at node_modules/mongodb-core/lib/connection/pool.js:581:63
      at authenticateStragglers (node_modules/mongodb-core/lib/connection/pool.js:504:16)
      at Connection.messageHandler (node_modules/mongodb-core/lib/connection/pool.js:540:5)
      at emitMessageHandler (node_modules/mongodb-core/lib/connection/connection.js:310:10)
      at Socket.<anonymous> (node_modules/mongodb-core/lib/connection/connection.js:453:17)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Socket.Readable.push (_stream_readable.js:208:10)
      at TCP.onread (net.js:597:20)

  7) "mongodb" store implementation creating an instance having connected using the store "after all" hook:
     MongoError: command delete requires authentication
      at node_modules/mongodb-core/lib/connection/pool.js:581:63
      at authenticateStragglers (node_modules/mongodb-core/lib/connection/pool.js:504:16)
      at Connection.messageHandler (node_modules/mongodb-core/lib/connection/pool.js:540:5)
      at emitMessageHandler (node_modules/mongodb-core/lib/connection/connection.js:310:10)
      at Socket.<anonymous> (node_modules/mongodb-core/lib/connection/connection.js:453:17)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Socket.Readable.push (_stream_readable.js:208:10)
      at TCP.onread (net.js:597:20)

  8) "redis" store implementation creating an instance calling connect it should emit connect:
     Error: Timeout of 20000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  9) "redis" store implementation creating an instance having connected using the store "before each" hook for "it should callback with a new Id as string":
     AbortError: DEL can't be processed. The connection is already closed.
      at handle_offline_command (node_modules/redis/index.js:851:15)
      at RedisClient.internal_send_command (node_modules/redis/index.js:885:9)
      at RedisClient.del (node_modules/redis/lib/commands.js:58:25)
      at lib/databases/redis.js:175:21
      at node_modules/async/dist/async.js:3866:24
      at eachOfArrayLike (node_modules/async/dist/async.js:1055:9)
      at eachOf (node_modules/async/dist/async.js:1103:5)
      at _parallel (node_modules/async/dist/async.js:3865:5)
      at Object.parallelLimit [as parallel] (node_modules/async/dist/async.js:3948:5)
      at Redis.clear (lib/databases/redis.js:173:11)
      at Context.<anonymous> (test/storeTest.js:127:19)

  10) "redis" store implementation creating an instance having connected using the store "after all" hook:
     AbortError: DEL can't be processed. The connection is already closed.
      at handle_offline_command (node_modules/redis/index.js:851:15)
      at RedisClient.internal_send_command (node_modules/redis/index.js:885:9)
      at RedisClient.del (node_modules/redis/lib/commands.js:58:25)
      at lib/databases/redis.js:175:21
      at node_modules/async/dist/async.js:3866:24
      at eachOfArrayLike (node_modules/async/dist/async.js:1055:9)
      at eachOf (node_modules/async/dist/async.js:1103:5)
      at _parallel (node_modules/async/dist/async.js:3865:5)
      at Object.parallelLimit [as parallel] (node_modules/async/dist/async.js:3948:5)
      at Redis.clear (lib/databases/redis.js:173:11)
      at Context.<anonymous> (test/storeTest.js:131:19)

your mongo setup ( and probably redis ) requires authentication for ```delete``. You could try and manipulate the connection string/object in the tests ( do not commit, only on local ) with the appropriate authentication data.

Hey everyone 👋
New maintainer here… we, i.e. @thenativeweb, have taken over the responsibility to maintain this module from @adrai, and I would like to give a little update on this issue:
One of the first things we are going to do is to update the test setup, so that it becomes easier to run the tests in a reliable way. So for now, I am going to close this issue.
If you have any questions or anything else, please feel free to re-open it, or to open a new one 😊


docs/building-operators: update make usage in quickstarts and tutorials

Description of the change:

docs/building-operators: update quickstarts and tutorials with new make variable usage
docs/faqs: add 'SHELL := /bin/bash' error fix

Motivation for the change: #4406 streamlined make usage by having Makefile variables share data that projects are initialized with.
/kind documentation
Checklist
If the pull request includes user-facing changes, extra documentation is required:

[ ] Add a new changelog fragment in changelog/fragments (see changelog/fragments/00-template.yaml)
[x] Add or update relevant sections of the docs website in website/content/en/docs

Only the ansible tutorial was updated, since I'd like to see reviews on it before I update go/helm.

/retest


[Question] Optional Service Discovery

Is there a way to enable service discovery optionally?
For example if we have some property like discovery.enabled = false, annotation processor skip service registration phase.

spring.cloud.consul.discovery.enabled=false

@spencergibb, hi!
There are two settings: first is spring.cloud.discovery.enabled that come from spring cloud project, second is spring.cloud.consul.discovery.enabled from spring-cloud-consul.
If you set spring.cloud.discovery.enabled=true discovery other services will work as well cause spring.cloud.consul.discovery.enabled will be ignore. If you set spring.cloud.consul.discovery.enabled=true but turn off spring.cloud.discovery.enabled you cannot discovery other services but you service will be registered as well.
So we have two options with different behaviors and if spring.cloud.discovery.enabled has a predictable behavior, spring.cloud.consul.discovery.enabled has a very strange behavior that confused me.
I think that spring.cloud.consul.discovery.enabled must be rename cause it affects to service registration in consul, not to discovery other services.


PS class cannot have two methods on the same line

Steps to reproduce
class Foo {a() {}; b() {}}

Motivation:
It's allowed to have properties on the same line:
class Foo {$a; $b}  # no error

Expected behavior
No error
Actual behavior
At line:1 char:12
+ class Foo {a() {}; b() {}}
+            ~~~~~~
Missing closing '}' in statement block or type definition.
At line:1 char:22
+ class Foo {a() {}; b() {}}
+                      ~
An expression was expected after '('.
At line:1 char:26
+ class Foo {a() {}; b() {}}
+                          ~
Unexpected token '}' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingEndCurlyBrace

Environment data

> $PSVersionTable

Just like C#, a semi-colon is not needed, so the error (which could be better) is expected.

Oh indeed.
I'm constantly having troubles with this.
It feels very natural to put ; between things, when you are trying to write one-liner.
Could we support this syntax?

I don't think it's worth it - you'd need to represent that empty statement somehow in the AST which I think is not worth it.

I scanned the parser.cs file and did not found that the semicolon is included in any ASTs, except in one case for class property extend.
Since I'm working on improving classes this last fact prompted me to raise this topic again.
Class member definition makes no distinction between properties and methods:
            //G  class-member-list:
            //G      class-member  new-lines:opt
            //G      class-member-list   class-member

Moreover parsing is performed by the same function ClassMemberRule.
(I looked up the formal description for C# 5.0 and there's also no differences in the definition of properties and methods. I don't know where this distinction originated.)
So in terms of formal definitions it looks as inconsistence. Anyone who studies the language using its formal specification will meet difficulties.
It also seems it is a bad UX (I and @vors both drew attention to that). If the statements in line are always separated by a semicolon, then users will expect the same in this case.
It would be good to preserve consistence here. Otherwise, it is not clear why we can f(){} g(){} and cannot $f=1 g(){}.


Make find ignore dot files

There is no need to search for sources in hidden dirs. In my case
there are some development environment files that stand in the way.

LGTM
@abitrolly You need to sign your PRs/

@rhatdan thanks for the reminder. Fixed.
In ideal world it should be gateway task who adds the comment. )

/hold

/ok-to-test

/approve

/hold cancel


ARROW-7008: [C++/Python] value_offsets may be omitted for 0-len arrays

Failure seems unrelated.

Interesting edge case from the reproducer in the JIRA. It isn't clear whether a null buffer or a length-1 value-offsets buffer should be required. Since the buffer should never be used I don't see an issue with it being omitted, but we probably would need to clarify that in Columnar.rst
@emkornfield or @jacques-n thoughts about this?

@wesm agreed on both accounts (should be OK for it to be missing and we should clarify it)

The problem with null buffers is that it pushes the burden of checking for nulls on the consumer. It is allowed for null bitmaps when there are no nulls, as a space optimization, but IMHO allowing null buffers on 0-length arrays is a nuisance.
So I think the producer should be fixed, instead of relaxing the validation check.

Yes, I think we should fix the root cause of the original failure (the invalid array) and then we can discuss more about the null offsets buffer.

@xhochy what are the next steps here?

I'm going to close this and take a crack at fixing the immediate problem that pa.array([], type=pa.string()).dictionary_encode().dictionary produces an invalid array (that segfaults when you call ValidateFull). I'll open a follow up JIRA to address the matter of whether the offsets buffer can be null in a length 0 array. My intuition is that it should be OK to omit but we should deal with that separately from fixing the invalid array produced by that code


Default running of v2 get script fails due to v2 versions not returning in first page of releases page.

Output of helm version: v2.17.0
Output of kubectl version: v1.19.3
Cloud Provider/Platform (AKS, GKE, Minikube etc.): EKS
When trying to run an old pipeline that still fetches older helm versions I see the following error in our pipeline logs
Step 4/13 : RUN curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
 ---> Running in 868fb71705f6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7163  100  7163    0     0  69543      0 --:--:-- --:--:-- --:--:-- 69543
Removing intermediate container 868fb71705f6
 ---> 2eb0e72e8861
Step 5/13 : RUN chmod 700 get_helm.sh
 ---> Running in fdcb117b96d2
Removing intermediate container fdcb117b96d2
 ---> cfb7ad14ab05
Step 6/13 : RUN ./get_helm.sh
 ---> Running in f6d8376405fa
Downloading https://get.helm.sh/helm--linux-amd64.tar.gz
SHA sum of /tmp/helm-installer-JjiEaF/helm--linux-amd64.tar.gz does not match. Aborting.
Failed to install helm
	For support, go to https://github.com/helm/helm.
The command '/bin/sh -c ./get_helm.sh' returned a non-zero code: 1
make: *** [Makefile:23: image] Error 1

I believe this is still supported since the get script is still here: https://github.com/helm/helm/blob/main/scripts/get
I believe this is failing because the curl to fetch the release and grep for v2 versions is paginated and all v2 versions are showing on the next page. see - https://github.com/helm/helm/blob/main/scripts/get#L80
The right thing to do here is probably just hardcode to v2.17.0 as it is the latest v2, rather than parsing the release pages, since this is the process when no version is passed in.

suggested fix: https://github.com/helm/helm/blob/main/scripts/get#L76
checkDesiredVersion() {
  if [ "x$DESIRED_VERSION" == "x" ]; then
    # Get that last v2 version is none is supplied
    TAG=v2.17.0
  else
    TAG=$DESIRED_VERSION
  fi
}

#9607


2622: update book title, and add more information

Resolves https://github.com/EbookFoundation/free-programming-books/issues/2622

Thanks!


#10053: Add support for PCI Endorsement workflow

References
Add references/links to any related issues or PRs. These may include:

Fixes #3736
Requires DSpace/DSpace#10090

Description
This PR fixes the issues described in https://github.com/DSpace/DSpace/issues/10053 and provides better support for the PCI Endorsement workflow
Instructions for Reviewers
List of changes in this PR:

Modifies the service creation form to add support for the usesActorEmailId parameter (to allow the configuration of the service in cases where the submitter email needs to be sent in the LDN notifications)
Modifies signposting model to allow exposing the profile attribute in signposting describedBy typed links

Include guidance for how to test or review your PR. This may include: steps to reproduce a bug, screenshots or description of a new feature, or reasons behind specific changes.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

[X] My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
[X] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
[X] My PR passes ESLint validation using npm run lint
[X] My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
[X] My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
[X] My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
[X] My PR aligns with Accessibility guidelines if it makes changes to the user interface.
[X] My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
[X] My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
[X] If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[X] If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
[X] If my PR fixes an issue ticket, I've linked them together.

@abollini or @atarix83 : I'm assigning this to you because it's improvements to COAR Notify to support PCI better. Could you or someone on your team take a look at this / test it out?


How to change language of the viewer?

I want to change the language to pt-BR, but i haven't find any example.

I needed this algo.
Conseguiste arranjar uma forma de funcionar @danienne ?


Broken link (404 error) for PC Wallet download

https://neo.org/Download  (Version: Antshares client PC edition V1.6.6354)
https://neo.org/client/AntSharesCore-GUI-v1.6.6354.35073.zip
404 - 找不到文件或目录。
您要查找的资源可能已被删除，已更改名称或者暂时不可用。

Appears to have been fixed now.


WIP: Generate Ansible playbook dependency graph

Closing in favor of https://github.com/edx/configuration/pull/3475.


The scraper does not show that Controlling Expert job was duplicated and posted twice

ENVIRONMENT:
https://admin.peviitor.ro/
Browser: Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:
Enter url in browser
In go to "https://admin.peviitor.ro/" and click to jobs for "Allianz"
Click on "Controlling Expert" tab on "Catre Job "option
EXPECTED RESULTS:
The page shows the full description of the job
ACTUAL RESULTS:
The page shows the same full description of the previous job announcement
See below the screenshot
Attachment:
Page from Validator for Allianz

În validator apar 3 joburi cu "Controlling Expert" și sunt prezente pe site-ul lor de cariere. Uită-te atent la link ul jobului ca au id uri unice. Nu sunt duplicate.


Dynamic Commands

This change will allow aliasme.sh to run dynamic commands instead of just static commands. For example, when you create something like this "al add new 'cd'". Then when you run "al new root/directory" then it will change your directory to "../root/directory" or anything base on your input.

It's really cool feature that I also want to include for aliasme for a long time.
Just some though to add on, can we indicate the dynamic part not only at end of the command?
Also is it possible to make support multiple dynamic part?
Thanks for you contribute!!

It's really cool feature that I also want to include for aliasme for a long time.
Just some though to add on, can we indicate the dynamic part not only at end of the command?
Also is it possible to make support multiple dynamic part?
Thanks for you contribute!!

What do you mean anywhere? Do you mean something like this "al root/directory new"?
I think for multiple dynamic parts, to keep the code simple, we could have a keyword to start a multiple dynamic command. Something like this "al multi_dynamic alias  input1 input2".

What do you mean anywhere? Do you mean something like this "al root/directory new"?
I think for multiple dynamic parts, to keep the code simple, we could have a keyword to start a multiple dynamic command. Something like this "al multi_dynamic alias  input1 input2".

MD stands for multiple dynamic
"al dynamic" is just "vim"

MD stands for multiple dynamic
"al dynamic" is just "vim"

Ya am getting a little crazy with this.

With a little work, I can make a combination of both the Multiple Dynamic and Fill

Ya am getting a little crazy with this.

With a little work, I can make a combination of both the Multiple Dynamic and Fill

This one is pretty cool. Oh ya, I changed "Fill" to just "F" and "MF" stands for Multiple Fill.

This one is pretty cool. Oh ya, I changed "Fill" to just "F" and "MF" stands for Multiple Fill.

What do you mean anywhere? Do you mean something like this "al root/directory new"?
I think for multiple dynamic parts, to keep the code simple, we could have a keyword to start a multiple dynamic command. Something like this "al multi_dynamic alias input1 input2".

Ya, similar to what you say, put a symbol to indicate the dynamic part.
Don't know why I don't get notify about the following chat, you can pin my id next time.

What do you mean anywhere? Do you mean something like this "al root/directory new"?
I think for multiple dynamic parts, to keep the code simple, we could have a keyword to start a multiple dynamic command. Something like this "al multi_dynamic alias input1 input2".

Ya, similar to what you say, put a symbol to indicate the dynamic part.
Don't know why I don't get notify about the following chat, you can pin my id next time.

@Jintin
"""Some suggest on the dynamic or multi-fill part.
Is is possible to put some indicator like $1 $2 indicate multiple usage? or $0 for list type of data?
example:
mv $1.md $1.txt
vim $0"""
I did use $1, $2, etc before. But you would need to backlash it when adding a new alias. Something like this "al add new '$1 $2 $3' FM". I didn't like having to type an extra character so I changed "$" to "?".

@Jintin
"""Some suggest on the dynamic or multi-fill part.
Is is possible to put some indicator like $1 $2 indicate multiple usage? or $0 for list type of data?
example:
mv $1.md $1.txt
vim $0"""
I did use $1, $2, etc before. But you would need to backlash it when adding a new alias. Something like this "al add new '$1 $2 $3' FM". I didn't like having to type an extra character so I changed "$" to "?".

@Jintin
Check out the new changes!!!
First off, the biggest change is now Fills and Multi Fills are now the same thing just Fills. While the new Multi Fills is now a combination of Fill and Dynamic.
Here is a visual example.

When you “al ls”, you’ll see that Multi Fills have a number next to them, this number is the amount of arguments needed to run the alias command. In order to add a Multi Fill alias you need to do something like this “al add VP ‘vim $1 $2 $3 $4 -p’ MF 4”. Then just run like this “al VP a.py b.py c.py d.py”

@Jintin
Check out the new changes!!!
First off, the biggest change is now Fills and Multi Fills are now the same thing just Fills. While the new Multi Fills is now a combination of Fill and Dynamic.
Here is a visual example.

When you “al ls”, you’ll see that Multi Fills have a number next to them, this number is the amount of arguments needed to run the alias command. In order to add a Multi Fill alias you need to do something like this “al add VP ‘vim $1 $2 $3 $4 -p’ MF 4”. Then just run like this “al VP a.py b.py c.py d.py”

Fills can now take as many arguments as possible like this

I also changed how you declare the cmdType when adding a new alias. I kept typing "FM" instead of "MF", so this change will greatly help me lol, and overall less typing.
D-> d
F -> f
MF -> m

Fills can now take as many arguments as possible like this

I also changed how you declare the cmdType when adding a new alias. I kept typing "FM" instead of "MF", so this change will greatly help me lol, and overall less typing.
D-> d
F -> f
MF -> m


Is it possible to delete a post if it were needed for whatever reason?

Good feature request.
I do not think it is possible currently, but I think we can extend twitter-together to make it work, although this might be a problem if there's some kind of exploit.
The only way to delete currently is for @gitr0n1n to do this manually.

https://github.com/twitter-together/action/issues/208


Add a hint when directory does not exist

It's a silly PR, but it addresses many issues and can potentially save a lot of time!
https://github.com/xerial/sbt-sonatype/issues/268
https://github.com/sbt/sbt-ci-release/issues/216
https://github.com/profunktor/fs2-rabbit/issues/931
https://github.com/profunktor/fs2-rabbit/issues/986

cc: @xerial

Thanks. Merged!


Surround favors jumping to pair instead of selecting surrounding pair

Checklist

[X] Have you updated the plugin to the latest version on main branch?
[X] Have you checked the Breaking Changes issue?
[X] Have you read through :h nvim-surround to see if there might be any relevant information there?

To reproduce
In the buffer
  path = 'foo('CURSOR_HERE')'

and the minimal setup
use({
    "kylechui/nvim-surround",
    tag = "*", -- Use for stability; omit to use `main` branch for the latest features
    config = function()
        require("nvim-surround").setup({
            -- Configuration here, or leave empty to use defaults
        })
    end
})

Expected behavior
I would expect surround to target the pair of ' actually surrounding the cursor.
Based on the jumps section of the docs I would expect the opposite of this behavior.
Actual behavior
The cursor jumps to the final pair of ' and deletes/changes them.
I.E
keystrokes:
ds'
buffer:
path = 'foo('CURSOR_HERE)

Additional context
Thanks for the awesome plugin! super appreciate all the hard work!
I'd be super down to try to contribute a solution also, if someone could point me to roughly where to look!

See #153, as this is probably the exact same situation; I am now strongly preferring to revert the code.

Ahh, sorry I didn't catch that, yeah it looks identical. I could look into making it an option and by default preferring the standard, more predictable way?
Personally I've never been a big fan of jump ahead behaviors, so I might be biased.

I don't fully remember if I've commented my code properly, but the relevant portions are probably in motions.lua, in particular wherever the is_quote function is called. It's basically used to "jump ahead" whenever the character is quote. However, it doesn't lend itself very well to extensibility (in particular, by the user) and is somewhat "hard-coded" in at the moment. I was originally thinking of just omitting the code altogether since it seems to be more confusing for people as a whole, and is an extra burden to maintain. If you're able to find some aesthetically pleasing way to abstract the functionality however, I'm all ears.

Then yeah, I think I totally agree about taking it out. Ultimately it'll make things more predictable which I think is worth it

Closing this to centralize discussion in #153


core.#CacheDir doesn't seem to work as a cache

Dagger Cloud run URL
https://dagger.cloud/runs/ab98d285-7037-48db-8491-0f157049e291
What happened? What did you expect to happen?
The core.#CacheDir seem to not store the modification done from the container. It can be reproduced by running dagger  do test multiple times and observe the "./export/ls" which should be appended from result of each execution but instead the content is replaced each time the dagger do is executed (Unless i'm mistaking the way core.#CacheDir works, since i'm pretty new to dagger.)

Hi, thanks for your report!
I think it's normal because you are setting the field always: true in your docker.#Run, that means you will drop the cache on each run.
You should remove this field and see if it's solves your issue or not ;)

You were right. i was under the impression that the always:true does not affect  core.#CacheDir. But this lead to another question.
So what i'm trying to do is to run a source code scanning every time the dagger do is invoked. The scanner needs to download a database for the scan and i would like that database cached for subsequent run. So if core.#CacheDir was affected by always:true, how should i configure dagger to allow this scenario?

Hello,
We have a similar use case: running pulumi preview each time we do a dagger do preview without throwing away the build cache nor the plugins cache. I came up with a workaround for the moment (see the _hack action and the mount of its output in the preview action), I don’t know if there’s a better solution:
package ci

import (
	"dagger.io/dagger"
	"dagger.io/dagger/core"
	"universe.dagger.io/bash"
	"universe.dagger.io/docker"
)

dagger.#Plan & {
	client: {
		env: {
			AWS_ACCESS_KEY_ID:     dagger.#Secret
			AWS_SECRET_ACCESS_KEY: dagger.#Secret
		}
	}

	actions: {
		_sources: core.#Source & {
			path: "."
		}

		_cache: core.#CacheDir & {
			id: "cache"
		}

		_mounts: {
			sources: {
				type:     "fs"
				dest:     "/src"
				contents: _sources.output
			}

			cache: {
				type:     "cache"
				dest:     "/cache"
				contents: _cache
			}
		}

		build: docker.#Build & {
			steps: [
				docker.#Pull & {
					source: "docker.io/pulumi/pulumi:3.37.2"
				},

				docker.#Set & {
					config: {
						workdir: "/src"

						env: {
							GOMODCACHE:  "/cache/go/mod"
							GOCACHE:     "/cache/go/build"
							PULUMI_HOME: "/cache/pulumi"
						}
					}
				},

				bash.#Run & {
					script: {
						contents: """
							go build
							pulumi plugin install
							"""
					}

					mounts: _mounts
				},
			]
		}

		_hack: docker.#Run & {
			input: build.output

			entrypoint: [
				"true",
			]

			always: true
		}

		preview: docker.#Run & {
			input: build.output

			command: {
				name: "preview"

				args: [
					"--stack",
					"test",
				]
			}

			env: {
				AWS_ACCESS_KEY_ID:     client.env.AWS_ACCESS_KEY_ID
				AWS_SECRET_ACCESS_KEY: client.env.AWS_SECRET_ACCESS_KEY
			}

			mounts: _mounts & {
				always: {
					type:     "fs"
					dest:     "/hack"
					contents: _hack.output.rootfs
				}
			}
		}
	}
}

@yann-soubeyrand thank you for posting your solution it helped me alot
I think setting always: true shouldn't discard core.#CacheDir mounted

Our cache is now stable and work with the latest API.
Users can also subscribe to dagger cloud to get distributed cache in their CI.
I'm closing this issue


Add a test to prevent outer transitions from being executed when event in inner state is matched

Hello beautiful people ❤
I added a test and am opening this PR because I wanted to get some clarification around partial forbidden events.
What I'm trying to do is kind of hard to express so reading the test might be the easiest way to get a grasp on what I'm saying.
I ran into a scenario where I wanted to prevent parent state transitions with a forbidden event, yet handle the very same event within a child state node. I replicated my use case in the test below.
To my surprise, this is actually working. I'm not sure why or how since there are essentially two keys with the exact same name and to my knowledge, the last one always wins in JavaScript ({ xstate: '=dank', xstate: '=love' } => { xstate: '=love' }. In the test case below, this would mean that the action is executed and the forbidden event is simply ignored. The passing test indicates that this is not the case and the parent state transitions are successfully prevented.
I absolutely love the fact that it's working, I'm just not sure if it's reliable and I'm supposed to use it. It is actually quite powerful in certain scenarios to forbid events only for parents up the tree while handling it in the same state node in some different way.

Should we use it? Is the way it works intended behavior?
If it is, should I move the test into a different test suite? It's touching state, context, assign and events so I figured I'll just create a new file.

Yes, that is how it's supposed to work. The deeper transition is selected over the parent one. For more information: https://www.w3.org/TR/scxml/#SelectingTransitions


Invalid Api-Key ID with version 2.1.5

Hi, I am getting a "Invalid Api-Key ID"  error when I try to call getBalances() on the rest api. Error code is -2008.
I am using version 2.1.5 and my API key + Secret are correct so not sure what else I am doing wrong.
Has anyone seen this issue?
Thanks
Julien
Setup:
const { MainClient } = require('binance')
const apiKey = process.env.APIKEY || 'APIKEY';
const apiSecret = process.env.APISECRET || 'APISECRET';
const client = new MainClient({
api_key: apiKey,
api_secret: apiSecret,
});
try {
await client.getBalances()
} catch(e) {
console.log(e)
}

Hi, how are you supplying your API keys? Via an environmental variable? You could try hard coding them just to make sure they're being passed as you expect. Also a console log to double check what's going in:
const { MainClient } = require('binance')

const apiKey = 'apiKeyHere';
const apiSecret = 'apiSecretHere';

console.log('connecting with: ', { apiKey, apiSecret });

const client = new MainClient({
api_key: apiKey,
api_secret: apiSecret,
});

try {
  await client.getBalances()
} catch(e) {
  console.log(e)
}

It's also strange how specific the error is. It's not complaining about the signature (the auth mechanism), it's specifically complaining about the API key ID...you could try creating a new API key as well, maybe something went wrong?

Hi Tiago, amazing thank you, it was indeed the way I was passing those api keys to the process.  I was using double quotes e.g. APIKEY="xyz" which caused them to be retrieved as double double quotes e.g. apiKey = ""xyz"". After correcting to APIKEY=xyz it all works fine.
I was confused about the issue because I was not getting this error with the WebsocketClient despite using the exact same env variables passed in as double quotes.
const { WebsocketClient } = require('binance');
const apikey = process.env.APIKEY || 'APIKEY';
const apisecret = process.env.APISECRET || 'APISECRET';
const wsClient = new WebsocketClient(
{
api_key: apikey,
api_secret: apisecret,
beautify: true,
}
);


logrorate_app skips only_if evaluation

logrorate_app skips only_if evaluation.
Ex-
node.set['logrotate']['enable'] = false

logrotate_app 'reactor' do
  path "/tmp/log/tomcat/reactor*log"
  size '64M'
  frequency 'weekly'
  rotate 9
  options %w(copytruncate compress notifempty missingok)

  only_if { node['logrotate']['enable'] }
end

Output-
  - logrotate
Compiling Cookbooks...
Converging 3 resources
Recipe: logrotate::default
  * yum_package[logrotate] action install[2015-02-08T02:31:51-05:00] INFO: Processing yum_package[logrotate] action install (logrotate::default line 20)
 (up to date)
  * directory[/etc/logrotate.d] action create[2015-02-08T02:32:03-05:00] INFO: Processing directory[/etc/logrotate.d] action create (logrotate::default line 22)
 (up to date)
Recipe: test::default
  * template[/etc/logrotate.d/reactor] action create[2015-02-08T02:32:03-05:00] INFO: Processing template[/etc/logrotate.d/reactor] action create (test::default line 50)
[2015-02-08T02:32:03-05:00] INFO: template[/etc/logrotate.d/reactor] created file /etc/logrotate.d/reactor

    - create new file /etc/logrotate.d/reactor[2015-02-08T02:32:03-05:00] INFO: template[/etc/logrotate.d/reactor] updated file contents /etc/logrotate.d/reactor

    - update content in file /etc/logrotate.d/reactor from none to 8c8d02
    --- /etc/logrotate.d/reactor	2015-02-08 02:32:03.533364451 -0500
    +++ /tmp/chef-rendered-template20150208-17186-x77msp	2015-02-08 02:32:03.532364451 -0500
    @@ -1 +1,13 @@
    +# This file was generated by Chef for .
    +# Do not modify this file by hand!
    +
    +"/tmp/log/tomcat/reactor*log" {
    +  weekly
    +  size 64M
    +  rotate 9
    +  copytruncate
    +  compress
    +  notifempty
    +  missingok
    +}[2015-02-08T02:32:03-05:00] INFO: template[/etc/logrotate.d/reactor] owner changed to 0
[2015-02-08T02:32:03-05:00] INFO: template[/etc/logrotate.d/reactor] group changed to 0
[2015-02-08T02:32:03-05:00] INFO: template[/etc/logrotate.d/reactor] mode changed to 440

    - change mode from '' to '0440'
    - change owner from '' to 'root'
    - change group from '' to 'root'
    - restore selinux security context
[2015-02-08T02:32:03-05:00] WARN: Skipping final node save because override_runlist was given
[2015-02-08T02:32:03-05:00] INFO: Chef Run complete in 12.803214849 seconds
[2015-02-08T02:32:03-05:00] INFO: Skipping removal of unused files from the cache

Running handlers:
[2015-02-08T02:32:03-05:00] INFO: Running report handlers
Running handlers complete
[2015-02-08T02:32:03-05:00] INFO: Report handlers complete
Chef Client finished, 1/3 resources updated in 14.981741152 seconds
`````````````

logrotate_app does not support not_if or only_if because it is implemented as a definition rather than an LWRP.  As  a workaround you can use a regular Ruby conditional:
if node['logrotate']['enable']
  logrotate_app 'reactor' do
    path "/tmp/log/tomcat/reactor*log"
    size '64M'
    frequency 'weekly'
    rotate 9
    options %w(copytruncate compress notifempty missingok)
  end
end

We have an issue here:
https://github.com/stevendanna/logrotate/issues/35
to track converting this to an LWRP.


Bump zksync2-js Peer Dependency to ^0.4.0

As title. The following dependencies use the older version of zksync2-js:

hardhat-zksync-zksync2js
hardhat-zksync-deploy

Any update on this @nikola-bozin-txfusion?

@pcaversaccio Yes, the update is already in one of our PRs and its getting ready to be merged.

@pcaversaccio Yes, the update is already in one of our PRs and its getting ready to be merged.

Sweet, thanks for the heads-up!

Yes, we know, we are making the required changes for the next release!

Looks like the latest releases fix this issue, thx!

@pcaversaccio Hey, we did bump the dependency, but now we recommend using zksync-ethers instead of zksync2-js.

Thanks already switched: https://github.com/pcaversaccio/hardhat-project-template-ts/commit/5b71d7d43b5c4b6dd572b491467367694213484c.
One question: Why does @matterlabs/hardhat-zksync-deploy not support anymore the provision of RPC URLs for ethNetwork? I had to switch to the supported network names to make it work...

If you use an RPC URL with the latest version, you will get:
cannot read properties of undefined (reading 'url')


Epic Not loading completed achievements

Details: Epic is checked, I have tried refreshing, I have epic games with achievements especially Death Stranding, and  Have tried re importing achievements to games. Even made my epic trophies public in case that does anything.

https://github.com/Lacro59/playnite-successstory-plugin/issues/365


The website isn't accessible via HTTPS

It would be better for the html5test.com website to enforce HTTPS for browser connections.
If it isn't possible to enforce HTTPS, at least make the site accessible via HTTPS, so that the integrity of the test results are protected against man in the middle attacks.

I'd love to switch to HTTPS and the site is in fact already working on a secure connection: https://html5test.com. But until very recently our advertising partner was not ready yet and would still serve ads using a plain HTTP connection leading to mixed mode warnings in some browsers, so I had to hold of with switching.
Not that our ads are working with HTTPS I'm planning on moving to HTTPS soon.

The site is accessible via https, but currently the certificate chain sent by server is incompete. Android browser and Chrome for Android refuses to connect on https.
There are also more problems you can verify on SSL Labs.
I am looking forward for this issue to be fixed.

Didn't know about the incomplete certificate chain.
But other problems were a known issue. The only way to fix them was to set up a completely new server and get new certificates. Which I did. You should not see an A+ score.

The new site with SSL support is now online.


Category name in Alphabetical order

“Category” and “Sub Category” should be in alphabetical order

Fixed in commit 7c4cbf9


BoringSSL conflicts with BB Dynamics OpenSSL

What version of gRPC and what language are you using?
Version in: https://github.com/GoogleCloudPlatform/ios-docs-samples/blob/master/speech/Swift/Speech-gRPC-Streaming/googleapis.podspec
What operating system (Linux, Windows, …) and version?
iOS
What runtime / compiler are you using (e.g. python version or version of gcc)
https://github.com/GoogleCloudPlatform/ios-docs-samples/issues/85
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
Include Blackberry Dynamics framework with FIPS module and Google Speech pod in the same iOS App project
What did you expect to see?
No conflicts between BoringSSL and OpenSSL
What did you see instead?
App crash
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Refer to the log on: https://github.com/GoogleCloudPlatform/ios-docs-samples/issues/85

Is BoringSSL really required?
Can this be fixed?

I think it is duplicate of #6111. I'll fix it when I got a chance. Thanks for reporting.

See possible solution/workaround I posted in #1574. It is not optimal but seems to work and is pretty easy and painless. Ideally, BoringSSL wouldn't be broken, really...

I don't think you referenced the proper issue number.

Also, boringssl is kind of a drop in replacement for openssl. It's not broken in the sense that it's not easy to have the same library twice in the same binary. Or in other words, nothing's broken in boringssl, only the iOS build that doesn't make it easy for two versions of the same library to coexist.

@nicolasnoble - thanks for the heads up, right issue number, wrong project :). Fixed the link.
I hear what you're saying and understand the issue, so, yes, in that sense it's not "broken", but coming from a "customer of GOOG's SDKs and services" perspective it IS "broken". BoringSSL is an internal dependency of many GOOG frameworks used to consume (sometimes) very expensive and critical services offered by GOOG. No GOOG customer chooses to depend on BoringSSL, this is an internal dependency introduced by GOOG's design decisions. It is also marketed/discusses as a "drop in replacement" for OpenSSL.
Clearly, the bevy of issues people are having means it is neither transparent nor a drop-in replacement.
Other libraries looking for certain OpenSSL headers don't see the same in BoringSSL and certain methods return different values for the same, idempotent (sp?) calls (e.g. I had a few cases where BoringSSL would not return the same value for a given call on SSL/TLS stuff than OpenSSL would, thus breaking the dependent code). I'd be FINE if BoringSSL truly was a drop-in that didn't break things like SIP stacks, etc that rely on lower level SSL calls. But it does. A lot.
Also, it's a really, really porky dependency. The NPM module is like 30MB, because BoringSSL packages the tests in the NPM packages. That's a separate issue, though.
I think GOOG should look at this from a "what does broken mean to our customers and users" perspective. I know there are tons of technical reasons and ways to define broken which clearly absolve BoringSSL of any blame, but when my devs see red on builds and it's because an internal dependency required to use GOOG libraries is breaking builds, well, we call it broken :). Especially when it's a library published so we can have the privilege of paying GOOG to use the services!
Yes, we could just revert back to low level REST APIs and not have to use GOOG provided libraries, but again this is about productivity in consuming services and where I spend my dev budget.
It's even more "broken" when I/my devs have to spend time fixing stuff like this/working around stuff like this instead of it "just working". That's the whole promise of managed services like Firebase (that heavily relies on the gRPC library), that we focus on the stuff we need to get our business logic implemented and not this stuff, right?
I think @wilhuff is spot on when he suggests (in https://github.com/grpc/grpc/issues/6111):
The best path forward (but overwhelmingly the most work) would be to drop our BoringSSL/OpenSSL requirement altogether on iOS and other Apple platforms and use SecureTransport (or CFSocketStream). These are provided by the OS and designed to be compatible across iOS releases. If there's a vulnerability, Apple can ship an update and everyone will be transparently updated without requiring everyone to rebuild.
It is the most work, but I think it's also the most customer-friendly. Because the problem of static & dynamic libs/frameworks on Swift is NOT going to be solved soon and isn't a bug as much as an architectural decision (don't worry, I'm over in AAPL's bug reporter being equally tough on them about the mess that is Swift, even at rev 4....).
That being said, if there is a work effort at some point put together on this, as heavy Google Cloud users, I would be open to allocating resources perhaps at some point to get it done, although, given we're paying a lot of money for the services these things like gRPC and the like access, while they are open source projects we want to support and not just come to bug trackers/issue trackers to complain about, these also aren't just small open source projects, gRPC is making GOOG a BUNCH of money, and if you guys need me to go push on our Gcloud rep to get people to make that linkage between this discussion and revenue numbers to get certain things addressed, let me know. We aren't the biggest fish, but I'm more than happy to make our problem known to the revenue-collecting side of the business where they might be able to prioritize internal resources for a fix if they hear it enough...

@24601

if you guys need me to go push on our Gcloud rep to get people to make that linkage between this discussion and revenue numbers to get certain things addressed, let me know

I am trying to push this through my enterprise too. Can you push this from your side too?


Upgrade k8s.io packages to v1.19.0

Required k8s.io packages seem to be a bit old.
This PR updates k8s.io/api, k8s.io/apimachinery and k8s.io/client-go packages to v0.19.0 and adjust the code accordingly.
I've ran go test ./... and got few failures, but I'm not sure if they are related to this PR changes. Is there a better way trigger the some tests?

 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.Adrian Aneci seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

This looks great!  I think we're going to do some extra validation on our end before merging this one.  We also might be able to implement some of those context.TODO() items.  Thank you!

tested these changes in our lab clusters and it worked fine! 👍 thanks for the upgrade!!

I made an issue to fill in the missing contexts: #640


add: Aiven for Valkey content

Describe your changes
Aiven for Valkey's new service in the Aiven portfolio. Valkey is an open-source fork of Redis, serving as a drop-in replacement for Redis.
The initial release of the documentation will include:

Overview
Get Started
Connect to Service
Migration (?)

Checklist

[ ] The first paragraph of the page is on one line.
[ ] The other lines have a line break at 90 characters.
[ ] I checked the output.
[ ] I applied the style guide.
[ ] My links start with /docs/.

some minor changes requested

changes addressed


Resolve storage of (large) files

Some binary and csv files are stored in the ARTIST repo. Ideally, we want to avoid this. Currently, the plan is to:

Remove the CSVs completely since these are not needed.
Store the required binary files in BWSync&Share.

Solved with PAINT!


Fix generated absolute links

The trailing slash detection fix (https://github.com/sourcegraph/handbook/commit/d4aa8316f5dc3b5febd8cec65686b3c0044ddaa8) was resulting in all generated pages having an extra ../ in their URLs, making them invalid. This corrects it.

@katjuell I am not sure if this re-breaks the trailing slash fix - hopefully not, but can you please take a look?

Great, thank you @katjuell !


Merge 2.0.x into master

For maintenance current master i have branched to 1.8.x.

@lukeabsent / @Havret  / @cjwmorgan-sol  - Merge is so we can now release 2.0.x

I really dislike Merge Commits.. do you really need then?
I have always preferred git cherry-pick -x...
I have then used a project to associated cherry-picks and find the ones that are missing.

with the gitreport I wrote, I can find references on cherry-pick -x... and you would be able to find the ones missing.

@clebertsuconic this is a whole lot of work that has been collaborative committed to. Theres no point cherry picking some 20ish commits.

@michaelandrepearce @clebertsuconic Merge with rebase is superior to both of your approaches. :)


Game need account age restriction

Description

To prevent newbies and new alt accounts to join salamander. Block accounts that are like, younger than 3 or 2 months to join for example.
Reproduction

Screenshots

Additional context

this exists with panic bunker


feat(resolutions): support resolutions ignoring until given date

:pencil: Description
Why?
Even though we have the capability to exclude some packages included in resolutions field from validation it doesn't cater for a case where we know ahead of time that we would like to be notified about pinning dependency eventually at some point in the future. Example that comes to mind:

I notice issue with a package today, raise a PR knowing the desire is to get rid of that specific resolution
I'd like to set until when the ignoring of resolutions can last
The actions starts throwing when the set date is passed

What?
This PR brings in additional resolutions related config in form of single line string ignore-resolutions-until, which is accepting a date as an input.
How?

Ignore resolutions when they are present and ignore date is in the future: code and passing-test
Hit the default failure when resolutions exist, but date is in the past passing-test
Respect ignore-resolutions when they match resolutions even though the date is in past passing-test

:link: Related Issues

https://github.com/ExpediaGroup/package-json-validator/pull/289#issuecomment-2083762133

:tada: This PR is included in version 1.9.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Type refinements with the "in" operator

Flow version: 0.93.0
Expected behavior
I would expect the conditional expression in the function below to be error free (link to Try Flow):
function foo(x: { bar?: number }) {
  if ('bar' in x && x.bar > 1) {}
}

Actual behavior
2:   if ('bar' in x && x.bar > 1) {}
                       ^ Cannot compare undefined [1] to number [2].
References:
1: function foo(x: { bar?: number }) {
                           ^ [1]
2:   if ('bar' in x && x.bar > 1) {}
                               ^ [2]

My assumption here is that my in operator isn't doing what I hoped it'd do with respect to type refinement. I also tried modeling a disjoint union like the following (link to Try Flow):
function foo(x: {| bar: number |} | {||}) {
  if ('bar' in x && x.bar > 1) {}
}

But then I get this error instead:
2:   if ('bar' in x && x.bar > 1) {}
                         ^ Cannot get `x.bar` because property `bar` is missing in object type [1].
References:
1: function foo(x: {| bar: number |} | {||}) {
                                       ^ [1]

Is there a way to properly type this behavior in Flow?

In the function signature, the ? allows bar to be omitted, undefined, or a number.
function foo(x: { bar?: number }) {

From the docs:

In addition to their set value type, these optional properties can either be void or omitted altogether. However, they cannot be null.

We don't support refining on in yet. x.bar != null should be equivalent for this case.


23 allow passing a lambda as record

Closes #23.

Codecov Report

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

@@          Coverage Diff          @@
##           master    #25   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           6      6
  Lines         267    296   +29
=====================================
+ Hits          267    296   +29

Impacted Files
Coverage Δ

lib/graphql-pundit/instrumenters/authorization.rb
100% <100%> (ø)
:arrow_up:

...graphql-pundit/instrumenters/authorization_spec.rb
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Adding _config to readFile call

Signed-off-by: Aaron Chong<EMAIL_ADDRESS>
🦟 Bug fix
Related to https://github.com/RobotLocomotion/drake/issues/15948, fixes https://github.com/RobotLocomotion/drake/issues/15948#issuecomment-1012833513 specifically.
Summary

This single line fix, fixes the problem mentioned here https://github.com/RobotLocomotion/drake/issues/15948#issuecomment-1012833513, after testing with a local copy of sdformat by adding local_repository_override to drake/tools/workspace/sdformat/repository,bzl

@azeey found the bug where ParserConfigs are not passed down into nested readFile calls
I tried writing tests here, but the tests still pass without issue :thinking:, I am guessing the difference might be due to how drake manages model paths differently

Checklist

[ ] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

How to recreate the issue,
git clone https://github.com/aaronchongth/drake -b aaron/deprecate-model-directives
cd drake
bazel build multibody/parsing:process_model_directives_test
./bazel-bin/multibody/parsing/process_model_directives_test

To resolve the issue, modify drake/tools/workspace/sdformat/repository.bzl to have
local_repository_override = "path-to-sdformat-with-fix"

cd drake
bazel build multibody/parsing:process_model_directives_test
./bazel-bin/multibody/parsing/process_model_directives_test

Codecov Report

Merging #824 (07a51e9) into sdf12 (6404afd) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            sdf12     #824   +/-   ##
=======================================
  Coverage   90.70%   90.70%
=======================================
  Files          78       78
  Lines       12432    12432
=======================================
  Hits        11276    11276
  Misses       1156     1156

Impacted Files
Coverage Δ

src/parser.cc
87.48% <100.00%> (ø)

Continue to review full report at Codecov.

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

The reason the test was passing is that sdf::readFile does not return false if it's unable to resolve a uri, instead it keeps on loading the rest of the file. The error is reported in the sdf::Errors object. I have taken the liberty to add a slightly modified version of that test into this PR in https://github.com/ignitionrobotics/sdformat/pull/824/commits/786480e3c35a10e9e2ef7e85f54ab790656d502d. I put it in test/integration/parser_config.cc since it was referring to files in test/integration and it's testing the ParserConfig functionality.

This pull request has been mentioned on Gazebo Community. There might be relevant details there:
https://community.gazebosim.org/t/new-ignition-releases-2022-04-13-fortress-edifice/1367/1


Fix color for bash

This should fix issue #2.
Calling the script nofetch.sh will use '/bin/sh' to interpret it.
On Linux, /bin/sh should link to any POSIX compliant shell (Ignoring that they sometimes do not comply in subtle ways). It could be dash, bash, ksh, ...
In Arch, /bin/sh is linked to bash, which does not interpret backslash character sequences like \033 in echo.
The issue can be reproduced by calling the shell by name directly to read the script, for example:
bash /path/to/nofetch.sh green

The solution from this pull request is to use printf to interpret the \033 sequence when assigning color variables so that instead of containing a backslash, the character 0, the character 3 and the character 3, color variables contain the "escape" character directly, preventing echo from interpreting it differently.
To conclude, using echo with an argument containing a backslash is not portable. For echo to be portable, we have to make sure that there is no backslash (and also that its first argument is not -n, because of bash). If there is no way to be sure in advance about it, like when outputing a user input, something like printf '%s\n' "$user_input" could be used.

Perfect, thanks a lot! Merging the PR


Modified the navbar slightly

Please let me know
What else to be improved so by the end of the day i will do it and push it ASAP

@radzhiv25 Performance has degraded a lot for mobiles and somewhat for desktops.
Before: Please check here
After: Please check here

@radzhiv25 Performance has degraded a lot for mobiles and somewhat for desktops. Before: Please check here After: Please check here

Please fix this @radzhiv25 and let me know.

@radzhiv25 Performance has degraded a lot for mobiles and somewhat for desktops. Before: Please check here After: Please check here

Please fix this @radzhiv25 and let me know.

Sure will update

@radzhiv25 Performance has degraded a lot for mobiles and somewhat for desktops. Before: Please check here After: Please check here

Please fix this @radzhiv25 and let me know.

not able to optimise it
still struggling

@radzhiv25 Performance has degraded a lot for mobiles and somewhat for desktops. Before: Please check here After: Please check here

Please fix this @radzhiv25 and let me know.

not able to optimise it still struggling

ok, try making only required changes and use the web on how to optimise. @radzhiv25

@radzhiv25 Please keep this transparent initially as it is currently.

Also, make the buttons look visually more appealing. @radzhiv25

@radzhiv25 This pull request has been continued to #185 . Hence, I am closing this.


Add new "full_status_check" option to aktualizr-lite docs

aktualizr-lite just added a new flag for controlling a feature:
https://github.com/foundriesio/aktualizr-lite/pull/27/files
We should add this to https://github.com/foundriesio/docs/blob/master/source/reference/aktualizr-lite.rst. Probably need a section for interesting config options.

@mike-sul - wanna take a shot?

@doanac OK, what mechanisms of aklite configuration should we mention in this doc, just fioct or direct config file configuration is also allowed?

i think we list the most interesting ones like the check-in interval, disabling docker prune, the label that docker prune ignores, compose_bin, compose_dir. there might be more, that's just off the top of my head

I meant a bit another aspect - the way(s) to change the config params. Should I write "you can change params by editing sota.toml directly on a device"

ah. so maybe there's two parts. 1) just explaining the "knobs" and 2) explaining strategies for configuring them? I think most of this is for when someone is trying to debug, so direct editing is probably fine.


Controlnet AUX fails to load

Has anyone seen this issue by chance?  When starting, Comfy fails to load Controlnet AUX with the following exception:
Cannot import C:\AI\ComfyUI\custom_nodes\comfyui_controlnet_aux module for custom nodes: module 'cv2.gapi.wip.draw' has no attribute 'Text'
Platform: Windows 11
ComfyUI: Regular Version, although the portable version gives the same error message
Python: 3.11.5 designated Anaconda environment, had the same issue with embedded Python of ComfyUI's portable distribution
Libraries:
opencv-contrib-python   <IP_ADDRESS>
opencv-python                <IP_ADDRESS>
opencv-python-headless <IP_ADDRESS>
I am so out of ideas at this point, would appreciate any input.
Thank you!

Sorry, I think this issue can be closed.  In case anyone runs into the same issue - try installing an earlier version of the libraries.  Requirements state version should equal to, or be above <IP_ADDRESS>
This worked for my installation:
pip install opencv-contrib-python==<IP_ADDRESS>
pip install opencv-python==<IP_ADDRESS>
pip install opencv-python-headless==<IP_ADDRESS>

Closing


Angular Material Select Error in RTL

Bug, feature request, or proposal:
When convert Angular marterial css from ltr to rtl, mdSelect does'nt work as expected.
What is the expected behavior?
Expected behavior as ltr behavior
What is the current behavior?
current behavior is : md-option fix to right of screen and width is to full screen
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Version of angular material is 1.1
Is there anything else we should know?

Please reopen with a better description of what you are experiencing and a plunker that reproduces what is wrong.


Encoded URL with an id name returns 400

@NicolasMassart Looks like a bug.
For the URL https://en.wikipedia.org/wiki/Modern_C%2B%2B_Design#Policy-based_design `link-check  v4.5.4 and v4.5.3 gives
https://en.wikipedia.org/wiki/Modern_C%2B%2B_Design#Policy-based_design is dead

but version v4.5.2 gives
https://en.wikipedia.org/wiki/Modern_C%2B%2B_Design#Policy-based_design is alive

https://github.com/gaurav-nelson/github-action-markdown-link-check/issues/96

@gaurav-nelson could you give me your opinion on this fix please?
I spent time to try to understand all the URL encoding, differences between encodeURI and encodeURIComponent, node URL object (the one we use is deprecated by the way, but will be another PR),... advice don't dig here, it's a rabbit hole 🤣

@gaurav-nelson could you give me your opinion on this fix please?
I spent time to try to understand all the URL encoding, differences between encodeURI and encodeURIComponent, node URL object (the one we use is deprecated by the way, but will be another PR),... advice don't dig here, it's a rabbit hole 🤣

Thanks @NicolasMassart Based on the logic it seems right to me. I guess till we get more edge cases, this should work fine.

Thanks @NicolasMassart Based on the logic it seems right to me. I guess till we get more edge cases, this should work fine.


Fix literal_column type

literal_column('foo', sqlalchemy.Integer) should be ColumnClause[int], not ColumnClause[TypeEngine[int]].

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


Restored the package-lock.json file

Unfortunately, you have deleted package-lock.json file from your fork.
I've Restored that so that the Repo matches with the main branch!

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

With the reference of #1268

Thanks for helping out !! , i was so confused as i was told to remove the package-lock.json file


Add option to configure the device driver IRAM placement (RFC)

Per the discussion in #946

Probably related to #1111 - it's probably something we want to configure in a way different from cargo features


Fluent-bit is unable to read logs and send it to data prepper

attaching docker compose for fluentbit, opensearch & opensearch dashboard
version: ‘3’
services:
fluent-bit:
container_name: fluent-bit
image: fluent/fluent-bit
volumes:
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
- ./test.log:/var/log/test.log
networks:
- dscnet
opensearch:
container_name: opensearch
image: opensearchproject/opensearch:latest
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- “OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m” # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=Developer@123
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- dscnet
dashboards:
image: opensearchproject/opensearch-dashboards:latest
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- “5601”
environment:
OPENSEARCH_HOSTS: ‘[“https://<IP_ADDRESS>:9200/”]’
depends_on:
- opensearch
networks:
- dscnet

networks:
dscnet:
external: true
driver: overlay
name: test-net

fluent-bit.conf
[INPUT]
name tail
refresh_interval 5
path ./test.log
read_from_head true

[OUTPUT]
Name http
Match *
Host data-prepper
Port 2021
URI /log/ingest
Format json

docker compose for data prepper
version: ‘3.7’
services:
data-prepper:
image: opensearchproject/data-prepper:2.0.0
container_name: data-prepper
volumes:
- ./log_pipeline.yaml:/usr/share/data-prepper/pipelines/log_pipeline.yaml
ports:
- 2021:2021
networks:
- test-net

networks:
test-net:
external: true

[if i use depends upon i get error]
log-pipeline:
source:
http:
ssl: false
processor:
- grok:
match:
log: [ “%{COMMONAPACHELOG}” ]
sink:
- opensearch:
hosts: [“https://<IP_ADDRESS>:9200/”]
insecure: true
username: admin
password: Developer@123
index: test_logs

test.log file has necessary permissions.
Fluent-bit
Opensearch
Opensearch-dashboards
dataprepper
all are running without any error but fluent-bit is not able to read the test.log file

Thanks for providing this issue. Can you share the error message from Fluent Bit, that you are receiving. In your configuration, I would have expected the path in the fluent-bit.conf to match the mount path of the log file:
[INPUT]
name tail
refresh_interval 5
path /var/log/test.log

Maybe Fluent BIt is just unable to find your log file.

Thanks for providing this issue. Can you share the error message from Fluent Bit, that you are receiving. In your configuration, I would have expected the path in the fluent-bit.conf to match the mount path of the log file:
[INPUT]
name tail
refresh_interval 5
path /var/log/test.log

Maybe Fluent BIt is just unable to find your log file.

Path is right, actually test.log is in same folder as docker files.

@jayeshjeh , Thank you for this issue. Including the logs from FluentBit can help us understand the error as it may have some additional information such as the response status.

All i was getting was:
worker #0 started
worker #1 started

no errors were displayed, also the path is right with necessary permissions to the file.

Maybe it would be helpful to see the metrics reported by your DataPrepper instance. After the ingestion attempt, could you query the metrics endpoint as documented here and provide the result?

I am still not convinced, that the path is right. My understanding of your configuration is the following:
You mounted the file ./test.log on the Docker host to the file /var/log/test.log inside the Fluent Bit container. This is where Fluent Bit needs to be configured to find the file. But in your Fluent Bit config, you configure path: ./test.log. This would be correct, if Fluent Bit was running on the Docker host. But since it is running in its own container, it needs to read from the target of your bind-mount, which is /var/log/test.log.

I am still not convinced, that the path is right. My understanding of your configuration is the following:
You mounted the file ./test.log on the Docker host to the file /var/log/test.log inside the Fluent Bit container. This is where Fluent Bit needs to be configured to find the file. But in your Fluent Bit config, you configure path: ./test.log. This would be correct, if Fluent Bit was running on the Docker host. But since it is running in its own container, it needs to read from the target of your bind-mount, which is /var/log/test.log.

Hello Sir, alot thanks.. it was very very silly mistake.. i was checking path in fluent docker compose.
My POC is done. Thanks alot


With Spring cloud function, how can we get the handle of http headers for any GET/POST call passed by the client

Have few questions -
I am using plain vanilla functions.

With Spring cloud function, how can we get the handle of http headers for any GET/POST call passed by the client ?

We need a way to get the handle of http headers , like example to send the correlationId/traceId etc.

How can we configure certificates to expose functions over TLS/SSL?

The HTTP headers are propagated to Message headers.
Function<Message<?>, Message<?>> myFunction()...

Thanks @olegz .
PLease could you check my second question -
How can we configure certificates to expose functions over TLS/SSL?

With Function<Message, Message> myFunction .. ,
For above function, if i pass text/plain formatter json array, it comes as LinkedHashMap.. How can i recieve this json array payload as String itself ?

The original question was asked and answered. Please use Stack Overflow for usage questions.