CI against Ruby 2.7

Ruby 2.7.0 has been released and this Ruby version is available on circleci/ruby:2.7 image.

https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/
https://hub.docker.com/r/circleci/ruby/tags/

% docker pull circleci/ruby:2.7
2.7: Pulling from circleci/ruby

(snip)

Status: Downloaded newer image for circleci/ruby:2.7

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Hmm, Check requiring libraries successfully of ruby-2.7-rubocop matrix has been failed because of require': cannot load such file -- parser (LoadError).
$ #!/bin/bash -eo pipefail
ruby -I lib -r rubocop -e 'exit 0'
Traceback (most recent call last):
	4: from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
	3: from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
	2: from /home/circleci/project/lib/rubocop.rb:3:in `<top (required)>'
	1: from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- parser (LoadError)

Exited with code exit status 1

https://circleci.com/gh/rubocop-hq/rubocop/79263

@koic Is there a Parser release compatible with Ruby 2.7?

Seems to be related to https://github.com/bundler/bundler/issues/7197
This could be a workaround:
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2c41744f2..ade82f946 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -40,7 +40,7 @@ rubocop_steps: &rubocop_steps
       name: Check requiring libraries successfully
       # See https://github.com/rubocop-hq/rubocop/pull/4523#issuecomment-309136113
       command: |
-        ruby -I lib -r rubocop -e 'exit 0'
+        ruby -I lib -r bundler/setup -r rubocop -e 'exit 0'

 jobs:

Thanks for the advices! Parser gem seems to be compatible with Ruby 2.7. I added a workaround based on @buehmann's advice. ruby-2.7-rubocop matrix has been passed!

Thanks!

Thanks too! I added Ruby 2.7 matrix to required status checks to pass before merging on this GitHub repo.


button disappears

I can now connect to 1.40, as a tar version. But now there seems to be a problem with the online character selection... I click on the arrow to the right of the character, but then it disappears!

Can you send a screenshot? It is not entirely clear what it is about.

你可以发送截图吗？目前尚不完全清楚它是关于什么的。
I found that the problem seems to have been solved again This may be due to our unique network environment here. i 'm sorry


Use horizontal averages to compute Richardson number profile

Resolves #112

Do we need to launch a 3D kernel for this? I think this is a 1D quantity, eg the ratio between the gradient of the horizontally-averaged buoyancy, and the horizontally averaged shear squared.
The local, 3D Richardson number is also a useful quantity; it's just different from the horizontally-averaged Richardson number that often enters into our parameterizations. Both are useful.

Hmmm, I guess it will launch a 3D kernel and repeat the same computation for each column. Is there an easy way to launch a 1D kernel?
If not we could merge this PR since the output will now be closer to what is expected without introducing any slowdowns. We would save some computations by launching a 1D kernel but with 50+ diagnostics already being computed I suspect the effect of this one 3D kernel is not large.

The local, 3D Richardson number is also a useful quantity; it's just different from the horizontally-averaged Richardson number that often enters into our parameterizations. Both are useful.

True that both are useful, but sounds like you don't want to output spatial averages of the local Richardson number? 3D and slice outputs could output the (unaveraged) local Richard number while averages could output the "coarse-grained" Richardson number?

I think for this to do the right thing we have to keep the background fields as is but set model.velocities and model.tracers to zero somehow?

Oh nevermind, I see how it works in Oceanostics. This might work.

It probably would be nice to raise an issue about this if we do merge it so that we don't forget that it's something we still have to fix.

I opened a new issue to track this and added a comment to the script.


Lapce wrongly compiled

Describe the bug
I'm using Lapce editor from nixpkgs/nixos-unstable. It provides Lapce 0.2.8.
However, Lapce thinks it is the nightly version.
$ lapce --version
Lapce-Nightly nightly

This has bad consequences like downloading nightly version of lapce-proxy when doing remote development. And it does not work. Don't know if it is the case of mismatching versions of protocol between lapce and lapce-proxy or nightly version of lapce-proxy simply does not work.
Steps To Reproduce
Steps to reproduce the behavior:

Install Lapce
Run lapce --version

Expected behavior
lapce --version should result in Lapce-Stable 0.2.8.
Solution :grin:
Lapce detects its version in a build script (lapce/lapce-core/build.rs). It checks environment variable RELEASE_TAG_NAME (in compile-time), and uses it to obtain current version. In case the environment variable is unset, nightly version is assumed.
As I see, in nixpkgs/pkgs/applications/editors/lapce/default.nix, no such environment variable is set.
I haven't tested if such fix will fix the bug (as I don't know all the depths of Nix and the steps to make such fix and check if it helps are not trivial to me), but I feel that setting the env var should help :wink:
Notify maintainers
@Eliot00
@r-ryantm
@SuperSamus
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.63, NixOS, 24.05 (Uakari), 24.05.20231127.8cfef69`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

As a quick fix, one can use an overlay:
final: prev:
{
  lapce = prev.lapce.overrideAttrs (old: {
    RELEASE_TAG_NAME = "v${old.version}";
  });
}

Fixed by https://github.com/NixOS/nixpkgs/pull/272782


TabControl.RemoveAllItems

Adds the ability to remove all items from a TabControl.
Will be used in a future PR to dynamically replace the contents of the SectionsContainer used in the UserProfileOverlay.

Consider calling it Clear instead (in-line with .net classes). Also while you're there, consider changing TabControl to a CompositeDrawable instead of Container.

This is a breaking change now, since OsuTabControl etc. adds children as if it were a container.  Changing them to AddInternal seems to work fine, so that will be a separate PR.


Why feeding roi feature to vgg again?

In rel_model.py, obj_feature_map(), you feed the pooled features(feature_pool) from RoIAlign layer to vgg Net again to generate roi features. Why not returning feature_pool directly?
related codes :
self.roi_fmap_obj = load_vgg(pretrained=False).classifier

def obj_feature_map(self, features, rois):
    """
    Gets the ROI features
    :param features: [batch_size, dim, IM_SIZE/4, IM_SIZE/4] (features at level p2)
    :param rois: [num_rois, 5] array of [img_num, x0, y0, x1, y1].
    :return: [num_rois, #dim] array
    """
    feature_pool = \
RoIAlignFunction(self.pooling_size, self.pooling_size, spatial_scale=1 / 16)(features, rois)
    return self.roi_fmap_obj(feature_pool.view(rois.size(0), -1))

You could do that if you wanted to, however the standard VGG implementation
when used in object detection uses two FC layers after the last convolution
(or in this case, after the RoIPool). so that's where self.roi_fmap_obj is
coming from :)
On Mon, Oct 8, 2018 at 6:10 AM, Zhang Yidong<EMAIL_ADDRESS>wrote:

In rel_model.py, obj_feature_map(), you feed the pooled features(
feature_pool) from RoIAlign layer to vgg Net again to generate roi
features. Why not returning feature_pool directly?
related codes :
self.roi_fmap_obj = load_vgg(pretrained=False).classifier
def obj_feature_map(self, features, rois):
"""
Gets the ROI features
:param features: [batch_size, dim, IM_SIZE/4, IM_SIZE/4] (features at level p2)
:param rois: [num_rois, 5] array of [img_num, x0, y0, x1, y1].
:return: [num_rois, #dim] array
"""
feature_pool =
RoIAlignFunction(self.pooling_size, self.pooling_size, spatial_scale=1 / 16)(features, rois)
return self.roi_fmap_obj(feature_pool.view(rois.size(0), -1))
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rowanz/neural-motifs/issues/29, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWJx0rhjPrIbn0CVm2pJ3ryuw93v53-ks5ui07HgaJpZM4XM51w
.


Added annotate config

This does not do as intended - an annotation change does not cause a pod bounce


Flutter medical image/file view DICOM File and doc,docx,pdf view/open in flutter app

Hello,
I am new to flutter there is an requirement for me to view medical image (DICOM file /image) how to view/open in my flutter app and
View PDF and doc,docx (especially) in android and ios application without using or opening any other document viewer apps. I need to show PDF and doc,docx file in my app not in third party apps. I use some dart package but not working like file_open, file_picker, file_reader only works pdf_viewer for pdf file but other extension not working please give any solutions
Thank you.
VS Code version:1.55.2
Dart extension version:3.21.1
Dart/Flutter SDK version:2.12.2

Please suggest solutions

thanks for your suggestion and reply

Closing, as this is not something that would be built as a first-party plugin.


[Feature Request] Laravel 10/11 Support

Hello!
I'd like to know if support for Laravel 10 or 11 planned?
Just as an fyi, I cloned the repo locally, updated the composer.json requirements (to support phpunit/phpunit 10, and illuminate/support 10), updated my composer.json to add this local repo, and the package seems to work (for Laravel 10). I didn't do any extensive testing, I just checked that changed settings got correctly updated on my database, and it seemed to be that way. Therefore, perhaps for L10 the upgrade is "easy" (no idea about L11, though).
Thanks in advance!

Hi, no changes were needed for Laravel 10 & 11, so I updated the repo to support both.

That was quick. Thanks! 😄 .


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pharaun32/ioBroker.doorbird_JP

[ ] [E005] Adapter name must be lowercase
[ ] [E006] Invalid characters found in adapter name "doorbird_JP". Only lowercase chars, digits, "-" and "_" are allowed
[ ] [E020] Name of adapter in package.json must be lowercase and be equal to "iobroker.doorbird_jp". Now is "undefined"
[ ] [E019] Invalid repository URL: https://github.com/Pharaun32/ioBroker.doorbird. Expected: git+https://github.com/Pharaun32/ioBroker.doorbird_JP.git
[ ] [E103] common.name in io-package.json must be equal to "doorbird_jp". Now is doorbird
[ ] [E104] No common.titleLang found in io-package.json
[ ] [E150] No common.connectionType found in io-package.json
[ ] [E152] No common.dataSource found in io-package.json
[ ] [E200] Not found on npm. Please publish

I have also found warnings that may be fixed if possible.

[ ] [W113] Adapter should support compact mode

Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Do you need help fixing the bug?


What is the reason for this jump in popularity?

What is the reason for this jump in popularity?
From 2000 to 28000 in 2 weeks:
https://www.npmtrends.com/crawler-vs-simplecrawler-vs-scrape-it
(And which is better?)

I am just seeing this right now! :open_mouth: I have no idea...

I am just seeing this right now! :open_mouth: I have no idea...


Add a feature like Unwrapped Encoder/Decoder in generic-extras

Codecov Report

Merging #35 into master will decrease coverage by 2.15%.
The diff coverage is 90%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   99.16%   97.01%   -2.16%
==========================================
  Files          11       11
  Lines         120      134      +14
  Branches        9       10       +1
==========================================
+ Hits          119      130      +11
- Misses          1        4       +3

Impacted Files
Coverage Δ

...main/scala/io/circe/magnolia/MagnoliaEncoder.scala
93.75% <83.33%> (-6.25%)
:arrow_down:

...main/scala/io/circe/magnolia/MagnoliaDecoder.scala
97.05% <94.44%> (-1.33%)
:arrow_down:

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 86b98e0...9e4c862. Read the comment docs.

Misses a test to throw on a case class that's not a value class but has JsonVal

@Igosuki thanks! Have you finished adding all the tests you planned to? Just ping me so I can review and merge L(

Hmm, my local scoverage report says 98.39% coverage after these last tests. Weird

anyway it's not a huge drop, I'm fine with it

The uncovered liens are where you could have a magnolia bug if the parameter labels don't exist.


Make border widths thinner?

Unfortunately some programs make the borders of their programs wider than necessary (e.g. 3 pixel).
What I needs is not colorize borders but make them thinner (1 pixel).
Can you add this feature?

No. The borders this program colors are 1px by default and that cannot be changed. Programs with wider borders must be drawing it themselves.


Can this library serve as vehicle?

Skimming the docs, I only read about possibilities of connecting to a given network resource (hostname/ip + port). Can this library also be used to bind a TCP server locally, so that other non vehicle nodes (like GCS) can connect to to it (so that one may use this library on a vehicle)?

tcpin listens on a socket for incoming connections. The address is the bind address -- use <IP_ADDRESS> for localhost-only, or <IP_ADDRESS> to listen on all interfaces.

@kevinmehall Thanks for the fast response :)


Video does not play on latest Safari (Version 16.0 (186<IP_ADDRESS>.3))

Video keeps resetting and never plays at all.
Console reads:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
Seems to be HLS

Safari 16 is beta still. They have changed many things including the Apple Video Player and YouTube video player in iOS 16 beta. Things can change throughout the beta cycle, there can't be a fix until final release usually in September.

I am well aware but if this is a Safari:WK bug. It is recommended practice to report bugs during development cycle then after its released. Waiting for it to release and then to fix(most likely a workaround) isn’t recommended per platform vendors.

IS it working for you again? I'm on Safari 16.1 and everything seems to work without issue... On macOS Ventura it works flawless and on iOS 16 there is a slight delay when going to full screen but nothing that can't be an animation issue. Which is likely fixed because on iPadOS 16.1 the animation seems to be fixed and there is no delay. I know it's weird having so many different betas out right now, that why I said before things change literally in each beta release. You can't make any changes until final release because what you think isn't working may just be a bug or an intentional thing because of debugging being turned on within the beta...


Disable automatic yanking/pasting from/to system clipboard

What are you trying to achieve?
When doing a "yank", I don't want it to clobber the system clipboard. Likewise for pasting.
What have you tried?
Adding (remove-hook 'doom-post-init-hook #'osx-clipboard-mode) as directed in #938
This doesn't seem to do anything. It still uses the system clipboard.
Adding (setq select-enable-clipboard nil)
This does prevent it using the system clipboard, but also breaks accessing the clipboard with the "+ prefix.
System information

((emacs
  (version . "26.3")
  (features . "NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS")
  (build . "Apr 07, 2020")
  (buildopts "--enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-mac/emacs-26.3-z-mac-7.9/share/info/emacs --prefix=/usr/local/Cellar/emacs-mac/emacs-26.3-z-mac-7.9 --with-mac --enable-mac-app=/usr/local/Cellar/emacs-mac/emacs-26.3-z-mac-7.9 --with-gnutls")
  (windowsys . batch)
  (daemonp . server-running))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop, origin/develop, origin/HEAD a381f5926 2020-04-03 02:12:50 -0400")
  (dir . "~/Documents/dotfiles/doom-emacs/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin19.3.0")
  (shell . "/usr/local/bin/fish")
  (uname . "Darwin 19.3.0 Darwin Kernel Version 19.3.0: Fri Jan 10 21:15:49 PST 2020; root:xnu-6153.81.5~4/RELEASE_X86_64 x86_64")
  (path "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/go/bin" "/usr/local/Cellar/emacs-mac/emacs-26.3-z-mac-7.9/libexec/emacs/26.3/x86_64-apple-darwin19.3.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) tabs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric vc :checkers syntax :tools (eval +overlay) lookup magit :lang data emacs-lisp markdown org sh :config (default +bindings +smartparens))
  (packages (inertial-scroll :recipe (:host github :repo "kiwanami/emacs-inertial-scroll")) (centaur-tabs))
  (unpin "n/a")
  (elpa "n/a")))

In a roundabout fashion, this might be pertinent to what you're seeing https://github.com/hlissner/doom-emacs/issues/2617, particularly this bit:
(remove-hook 'tty-setup-hook 'doom-init-clipboard-in-tty-emacs-h)

@shanesveller's solution should work. As of 95258c55d Doom not longer uses osx-clipboard-mode, and as of 215d9646e uses xclip-mode and clipetty to communicate with your clipboard directly through your terminal (by using OSC 52 codes on supported terminals). And soon, I'll remove xclip-mode as well.
In any case, all that clipboard setup is done in doom-init-clipboard-in-tty-emacs-h, so removing it from tty-setup-hook should do what you are asking for.
Let me know if that isn't the case and I'll reopen it.

This didn't seem to work unfortunately. Yanking and pasting still uses the system clipboard.
To be clear, I'm not using terminal emacs.
Interestingly, I've just noticed that when I do a "+p, the error line displayed is Marker '[' is not set in this buffer. Not sure exactly what this means...

@hlissner would you mind reopening this, as the suggestion did not seem to work?

I've just noticed that using (setq select-enable-clipboard nil) does work in the terminal, and I'm still able to use "+p in the terminal. So it's only in the GUI emacs that I'm unable to use "+p.

I've been playing around a lot, and I've finally been able to get it to work using the mac ports emacs-app-devel build. It now works exactly as expected using (setq select-enable-clipboard nil). Previously I was using the homebrew emacs-plus package.


feat(package.json): direct webpack users to use the dist build

This is a backport of #417 to the v1.2 / pre-es6-branch containing:

package.json fixes for webpack users (as requested at #417
browserify & webpack test changes to use localforage as defined package.json

Smart, this passes the tests and looks good. I'll release this today. :+1:


samples for live testing

@danieljurek  let's use this branch to add the live tests
The commands to build and run the samples are the same as a regular build
# clone repo
cd repo
mkdir build
cd build
# only required option is CURL transport
cmake -DBUILD_CURL_TRANSPORT=ON ..

# Run test:
## KeyVault, next ENV VARS needs to be available:
export AZURE_TENANT_ID=""
export AZURE_CLIENT_ID=""
export AZURE_CLIENT_SECRET=""
export AZURE_KEYVAULT_URL="https://account.vault.azure.net"
# then run
./sdk/samples/keyvault/keyvault/samples/keys_client_example
# NOTE: this exe will retun 0 for success or 1 if it fails

## Storage, next ENV VARS are required
export AZURE_STORAGE_URL="https://account.blob.core.windows.net/CONTAINER_NAME/BLOB_NAME?sv=X&X=X&X=X&X=X&X=X&X=s&X=s&X=X"
# NOTE: URL needs to contain a SaS token as query paramenter
#NOTE: CONTAINER_NAME from url needs to be an already existing container in azure storage account. API won't create it
# NOTE: BLOB_NAME needs to also exist in Azure storage account
# Then run:
./sdk/storage/blobs/samples/blobs_client_example
# Note: Same as KeyVault sample, exe file will exit with 0 if no errors

Please let me know if there is anything else I can help with

@danieljurek , I need this changes already in Master since I will work on top of the samples.
I will merge for now.
Let's create a new branch for adding any changes for bringing the live testing on


Update Saudi Arabia: fix observed holidays for Eid al-Fitr and Eid al-Adha

Proposed change

Update Saudi Arabia:

fix observed holidays for Eid al-Fitr and Eid al-Adha.

Type of change

[ ] New country/market holidays support (thank you!)
[x] Supported country/market holidays update (calendar discrepancy fix, localization)
[ ] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency update (version deprecation/upgrade)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] This PR is filed against beta branch of the repository
[x] This PR doesn't contain any merge conflicts and has clean commit history
[x] The code style looks good: make pre-commit
[x] All tests pass locally: make test, make tox (we strongly encourage adding tests to your code)
[x] The related documentation has been added/updated (check off the box for free if no updates is required)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

19 of 19 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
9112

Relevant Lines:
9112

💛  - Coveralls


Importing a module that doesn't exist causes request to never complete

This is a can-zone bug, will be fixed by https://github.com/canjs/can-zone/pull/70

Going to add the test regardless.


[api] Prevent unlike generations from being grouped.

Patch Description
Bug in the queuing logic means that we actually are grouping generations that we shouldn't.
Testing steps
Manual testing.

Hmm I don't see how this addresses the grouping issue, but I'm guessing you've tested it in conjunction with the overflow PR? (don't see the diff from https://github.com/facebookresearch/metaseq/pull/226 in here...)

This PR is about making sure we don't mix temperatures or nucleuses in the same batch. The logic for that already existed (these target queues are already stratified by those parameters). This bug was just that we were resetting which queue we pulled from every time.


oid! macro assumes der_parser is in the current namespace

The oid! macro evaluates to a reference to der_parser::…. This doesn't work if I don't have the crate in my namespace, e.g. if I'm using the macro via use x509_parser::der_parser::oid;. If this was a macro_rules! macro I'd say it needs to be using $crate, I hope proc macros have an equivalent (heck, can they just use $crate directly too?).

As far as I understand, this is not possible now (see discussion and links in https://github.com/rust-lang/rust/issues/54363)
There seems to be a workaround in https://github.com/rust-lang/rust/issues/54647 but I haven't tested it.

Hack idea: make ‘oid!()a macro-by-example inder_parserthat just invoked something like_oid!($crate, $($args)*)and have the proc macro be_oid!()`. Hopefully this will pass the crate path in correctly so the proc macro can then use it in the generated code.

Maybe this hack could be the solution...
        format!(
             "{{
                  use der_parser::oid;
                  use der_parser::oid::Oid;
                  // this will be the ret value
                  der_parser::oid::Oid::new(alloc::borrow::Cow::Borrowed(&{}))}}",
             s
         )

I'm working on this, and will try to find a solution for 6.0.
Workaround: import the re-exported der-parser:
use x509_parser::der_parser;
let oid = der_parser::oid!{ <IP_ADDRESS> };


Escape argument/attribute name collides Python reserved keyword

Version of gRPC and language: protoc and Python plugin
$ protoc --version
libprotoc 3.4.0
$ pip show grpcio
Name: grpcio
Version: 1.7.0
...(snip)...
 $ pip show grpcio-tools
Name: grpcio-tools
Version: 1.7.0
...(snip)...

OS: Linux Ubuntu 16.04 LTS
Runtime and compiler:
$ python --version
Python 3.5.2
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'm trying to send a message from gRPC client written in Python and the message is like:
message TestMessage {
  bool global = 1;
  uint32 as = 2;
}

The gRPC server is written in Go, global and as does not collides the reserved keywords, but on Python, these variable name clash with reserved keywords.
Then, I couldn't create the above message with keyword arguments and couldn't access these attributes:
# couldn't create message with keyword arguments
msg = xxx_pb2.TestMessage(
    global=True,  # Here raises syntax error
    as=100,
)
# required to pass arguments like
kwargs = {
    'global': True,
    'as': 100,
}
msg= xxx_pb2.TestMessage(**kwargs)

# Also couldn't access these attributes
print(msg.global)  # Here raises syntax error
# required to use getattr() like
print(getattr(msg, 'global'))

Request
pep8 says "If a function argument's name clashes with a reserved keyword, it is generally better to append a single trailing underscore", so I want to pass arguments appending "_" like:
msg = xxx_pb2.TestMessage(
    global_=True,
    as_=100,
)

and also access attribute like:
print(msg.global_)

What do think about it? Does anyone know better workaround?

This issue should be resolved in Protocol Buffers compiler first and based on their resolution, we can go ahead and make a corresponding fix to gRPC Python protobuf plugins if needed. If you could please file a bug on google/protobuf repo and ping us here when that gets resolved that would be great. Thanks!

(I am closing this issue at this point, as I am not sure there is anything on gRPC side to be done if protobuf makes a fix on its side, but feel free to ping us to reopen if the underlying cause was fixed on protobuf and there was still changes needed on gRPC Python plugin side.)

I think this is more of a Protocol Buffers question than a gRPC question.
@xfxyjwf, @anandolee: any thoughts?

Thank you for your reply!
Sure, I will search if there is the similar issue on protobuf side and create a new one if needed.


Firmware on Azure Kinect is a more recent version than the SDK

The latest Azure Kinects to arrive to us have a firmware installed which is newer than the version provided here on the SDK GitHub. Here's a screenshot of the firmware tool comparing the version numbers of the Kinect's firmware with that in the downloaded binary:

If we have any issues with the sensors and need to factory reset them, will there be any problem rolling back these newer units to the currently available firmware?
Will the SDK be updated with this new firmware version, and if so, is there a timeframe when we can expect that?
Thanks in advance!

Known issue that will be fixed in the next update to the Sensor SDK. In the meantime you can find the latest firmware file here .

The latest firmware is put here.

@alexhyy Thanks! Any idea when this will move over to the usage page?


ADDED MOTO CROSS GAME

ADD MOTO CROSS GAME
Description
I created a Motorcyle hill racing game in javascript!
Overview : This is a very interesting and innovative , the users are gonna love this game , this is a amazing Moto game , and one who starts playing this , i m sure is gonna addict to it.
How to play -
[Up and down keys] to move
[Left and Right keys] to rotate
Rotate the motorcyle while you are high in the air or you will need to restart!
Fixes: #(issue no.)
Fixes:  #1997

Type of change
ADDED MOTO CROSS GAME #1997

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Checklist:

[x] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

@Sulagna-Dutta-Roy

@Sulagna-Dutta-Roy added manifest file


Finding global coordinates of a point in a scene to place objects

I am trying to initialize a scene with different objects at different (but fixed) points several times for a benchmark. How do I find the global coordinates in the scene so I could add an object there - for example, the coordinates of the table top in one of the apartment scenes?

If you are using ReplicaCAD, then one possibility is to look up the translation of an object in the respective JSON-scene configuration file in the folder "configs/scenes". However, I would also be interested in getting the global coordinates and the scale (for example of a table mesh) from the simulation, e.g. in order to place objects on a tabletop. The scale is not contained in the JSON configuration files.

Hey @adrshsrvstv,
@Ukias is correct that the transform information in the JSON could be used to get object transform information outside of the simulator API.
Depending on the specifics of your situation, there are a few options to get this kind of information within the simulator:

If you want details of an object's transform, you can query it from the ObjectManager. See the RigidObjects tutorial for details of the API.
You can query the object's bounding box (in local space) to compute points of interest such as the top, bottom, and corner of the object. First get the object's SceneNode and then query the mesh_bb.
If you are using the Viewer application, you could print the raycast hit position from a mouse click (right click with --enable-physics to add a primitive at the click location. Add a line of code to print that location).

output for object's scene node: mesh_bb = Range({0, 0, 0}, {0, 0, 0}).
(Not working)
transform is not precise enough. I need the top of a table.

For me solved by adding the maximum of root_scene_node.cumulative__bb to the translation of the root_scene_node.


feat: WHEREISMYBLAHAJ command

sends a picture of Ryan and 19 Blahajs

Hi Vik! Nice attempt, but 2 things:

Use guild_ids=guild_ids_list, just like the other slash commands

Im sure what you have would work fine, but it's preferable to use ctx.send(file=discord.File("WHEREISMYBLAHAJ.png")) instead (double check the gift slash command for the syntax)


noticed some outdated OSGi dependency overrides

https://hibernate.atlassian.net/browse/HSEARCH-2776
https://hibernate.atlassian.net/browse/HSEARCH-2777

I think I'll trust you on that one :) Merged, thanks!


Bump docker to 18.09.2 because of CVE-2019-5736

There's a need to bump minimum docker version to 18.09.2 due to CVE-2019-5736 (runc sec issue).

I haven't looked but I'm wondering if there's some releases that have the fix backported as well, at least, I'm not sure we should just require 18.09.2 if there's multiple versions with the fix in then those are okay too. the main concern being for users on a system where the latest docker isn't available from packages (brew, apt, yum, etc) we don't necessarily want them to have to install docker by alternate means just to run this on their laptop, for prod installs we should maybe at least add a note to docs.


missing hsqldb init scripts for hibernate-facts project test code

I'm trying to run the Test cases from hibernate-facts code but the following errors occurs:
...
Caused by: org.springframework.jdbc.datasource.init.CannotReadScriptException: Cannot read SQL script from class path resource [hsqldb/create_db.sql]; nested exception is java.io.FileNotFoundException: class path resource [hsqldb/create_db.sql] cannot be opened because it does not exist
	at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:442) ~[spring-jdbc-4.1.3.RELEASE.jar:4.1.3.RELEASE]
	at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:229) ~[spring-jdbc-4.1.3.RELEASE.jar:4.1.3.RELEASE]
	at com.vladmihalcea.util.DatabaseScriptLifecycleHandler$2.doInConnection(DatabaseScriptLifecycleHandler.java:138) ~[test-classes/:na]
	at com.vladmihalcea.util.DatabaseScriptLifecycleHandler$2.doInConnection(DatabaseScriptLifecycleHandler.java:1) ~[test-classes/:na]
...

I tried to run the HibernateEqualsHashCodeTest test case.
It appears some sql scripts referenced by the databaseScriptLifecycleHandler Bean in src/test/resources/spring/applicationContext-test.xml file are missing in your Git repo.
    <bean id="databaseScriptLifecycleHandler" class="com.vladmihalcea.util.DatabaseScriptLifecycleHandler"
          depends-on="transactionManager">
        <constructor-arg name="dataSource" ref="dataSource"/>
        <constructor-arg name="initScripts">
            <array>
                <bean class="org.springframework.core.io.ClassPathResource">
                    <constructor-arg value="hsqldb/create_db.sql"/>
                </bean>
                <bean class="org.springframework.core.io.ClassPathResource">
                    <constructor-arg value="hsqldb/init_functions.sql"/>
                </bean>
            </array>
        </constructor-arg>
        <constructor-arg name="destroyScripts">
            <array>
                <bean class="org.springframework.core.io.ClassPathResource">
                    <constructor-arg value="hsqldb/drop_functions.sql"/>
                </bean>
                <bean class="org.springframework.core.io.ClassPathResource">
                    <constructor-arg value="hsqldb/drop_db.sql"/>
                </bean>
            </array>
        </constructor-arg>
    </bean>

Hi,
I got the latest version from Git and run the test just fine:
d:\Vlad\Work\GitHub\vladmihalcea.wordpress.com\hibernate-facts>mvn -Dtest=HibernateEqualsHashCodeTest clean test
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.vladmihalcea:hibernate-facts:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:sql-maven-plugin is missing. @ line 226, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 309, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate Facts 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
....
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.794 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.167 s
[INFO] Finished at: 2015-04-22T23:15:45+03:00
[INFO] Final Memory: 41M/555M
[INFO] ------------------------------------------------------------------------
Try to run it from the command line like this:
mvn -Dtest=HibernateEqualsHashCodeTest clean test
If that works out, it must be your IDE. You need to configure it to run the test through Maven and not by compiling the module and running the test alone.Maven starts some plugins to generate the schema, the JPA meta model and the jOOQ code gen as well.
Vlad
 On Wednesday, April 22, 2015 9:57 PM, Rafael T. C. Soares (A.K.A Tuelho<EMAIL_ADDRESS>wrote:

I'm trying to run the Test cases from hibernate-facts code but the following errors occurs:...
Caused by: org.springframework.jdbc.datasource.init.CannotReadScriptException: Cannot read SQL script from class path resource [hsqldb/create_db.sql]; nested exception is java.io.FileNotFoundException: class path resource [hsqldb/create_db.sql] cannot be opened because it does not exist
at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:442) ~[spring-jdbc-4.1.3.RELEASE.jar:4.1.3.RELEASE]
at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:229) ~[spring-jdbc-4.1.3.RELEASE.jar:4.1.3.RELEASE]
at com.vladmihalcea.util.DatabaseScriptLifecycleHandler$2.doInConnection(DatabaseScriptLifecycleHandler.java:138) ~[test-classes/:na]
at com.vladmihalcea.util.DatabaseScriptLifecycleHandler$2.doInConnection(DatabaseScriptLifecycleHandler.java:1) ~[test-classes/:na]
...
I tried to run the HibernateEqualsHashCodeTest test case.It appears some sql scripts referenced by the databaseScriptLifecycleHandler Bean in src/test/resources/spring/applicationContext-test.xml file are missing in your Git repo.

—
Reply to this email directly or view it on GitHub.

Hi!
You are right :-)
I forgot to mention that I was trying to run the Test Case from inside my Eclipse in DEBUG mode.
I ran from cmd line via mvn and it worked fined!
After that I copied the generate sql scripts from target/test-classes/hsqldb/ to src/test/resources/hsqldb/ just to be able to debug the test code.
Thanks!

Thanks for using it. There's also the hibernate-master-class, which has more Hibernate examples. This one is more suitable for Spring/Bitronix/jOOQ integrations.

Hi!
I'm following your Hibernate tutorial and actually I came here to test the code exposed in the equals-and-hashcode post. :-)
http://vladmihalcea.com/2013/10/23/hibernate-facts-equals-and-hashcode/
Congrats for the great tutorials in your blog!

Thanks.


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210727213350206 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210727213350206 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26777

Relevant Lines:
57110

💛  - Coveralls


NCTL - Updated auction bidding

Updated auction bid/withdraw commands.
Updated auction delegate/undelegate commands.
Default funding of test users.
Added N*2 nodes by default.

bors r+


ext-idle-notify-v1 does not always seem to work

OS: Linux 6.11.5-arch1-1
Hyprland, built from branch  at commit 4520b30d498daca8079365bdb909a8dea38e8d55  (version: bump to 0.44.1).
hypridle 0.1.4-1
My understanding of how hypridle works
Is by using ext_idle_notifier_v1 to listen for idle
And separately is pulling for inhibitors increasing or decreasing m_iInhibitLocks if their is a new lock or geting removed
void CHypridle::onInhibit(bool lock) {
    m_iInhibitLocks += lock ? 1 : -1;

Then when idled or removed gets called it checks  if their are any inhabitor locks
if (g_pHypridle->m_iInhibitLocks > 0) {

When trying to implement #39 it seems like only steam was getting loged
log.txt
But when watching a youtube video or starting factorio they send nothing in the logs
But idled would completely be stopped being called even when putting a break point in onIdled
Even setting ignore_dbus_inhibit and ignore_systemd_inhibit to true does not stop firefox/youtube or factorio from inhabiting idle

what?

okay im just stupid i should have looked around more to find zwp_idle_inhibit_manager_v1


Add Issue and PR templates

Hey @Ayush7614, this PR closes #4. This is my second PR contributing to your project for Hacktoberfest.
As you'll see I've added relatively lightweight issue and PR templates. In both cases I made sure the requirements listed in the issue itself were met.
As mentioned on the other PR, I can see you've added a couple of hacktoberfest tags to your repository however I believe you'll need to add the hacktoberfest tag specifically to ensure your repo is considered as participating (and the PR counts towards my contributions!)
Thanks

Hey @Ayush7614 I've just resolved the conflict in my PR. I noticed someone else submitted a PR template which was merged to master so I've removed mine from this PR, leaving just the issue template. Would you mind reviewing this as my Hacktoberfest submission?
Thanks!


[Messages] add option to close Raycast window after message sends

Extension
https://www.raycast.com/thomaslombart/messages
Description
After sending a message, I have to escape out of the Raycast window. It would be nice if the window closed after sending, or if there was an option to have it behave like this.
Who will benefit from this feature?
No response
Anything else?
No response

Thanks for the feature request. Would you like to work on it? This feature shouldn't be too hard to implement.

I'd like to work on this as it could be quite fun to implement.

I'm working on it at the moment.


Fix #290 and #287

PR Checklist

[x] This comment contains a description of changes (with reason)
[x] Referenced issue is linked

Description of changes

fixed an issue that caused ehrapy to crash when using encode and autodetect=True on numerical columns only (#290)

allow passing encoding mode when autodetect=True (#287)

BTW, would be happy to see some test coverage for these 2 issues. Think they can be easily tested.


jpeg compression changes dtype

Current implementation of Jpeg compression works only with uint8 data, so it can break some pipelines where data is casted to [0, 1] floats from the very beginning.
In [29]: from albumentations.augmentations import functional as f_aug

In [30]: img = np.random.rand(100, 100).astype('float32')

In [31]: f_aug.jpeg_compression(img, 95).dtype
Out[31]: dtype('uint8')

Please let me know if you'd like to get PR on this issue.
P.S. BTW, it may be a good idea to check for input and output dtype equality to make the debugging of similar issues easier.

A pull request that adds support for float inputs will be greatly appreciated.
I checked imencode and it looks like it converts all non-uint8 inputs to uint8 [source].
I think the following steps could be used to work with float inputs in jpeg_compression:

Multiply the input by 255 and cast it to uint8.
Apply cv2.imencode and cv2.imdecode functions as before.
Cast the output of cv2.imdecode back to float, divide all values by 255 and return the resulting image.

However, I could be mistaken and maybe there is a better way of handling float inputs.
As for checking outputs and their data types, we have some tests in tests/test_augmentations.py that verify output values of augmentations. jpeg_compression is not tested with float inputs because in the latest version it should raise an exception if the data type of the input does not equal np.uint8 https://github.com/albu/albumentations/blob/master/albumentations/augmentations/functional.py#L216

Fixed in #38


Move px-component generator to hybrid element structure.

Moves us to a hybrid element structure.

@davidrleonard @benoitjchevalier - can you take a gander at this please? Thanks.

(p.s. hold off merging until we sort the hydrolysis issue...)

True about the counter. But replace it with what?

My money is on replacing it with nothing. That means there's nothing to delete when you start your project. We don't need sample code that we just delete every time. starting with a clean slate is good.

I guess it depends if we want to make this just an empty component easy for us to use or something a bit more "teaching" where we could include a couple of props and lifecycle callbacks for example

Problem with empty is that most of the content is about templated places where the name of the component goes and how to drive the demo page stuff (which is like a swiss watch, if I didn't have a working (simple) example to refer to I'd never be able to get it working...)
Regardless, let's treat that question as something different than the original intent of this PR.


Extend cancellation params to cancel particular Query/Mutation

In 0.6 concurrency.abort Event was introduced to cancel all in-flight.
We can add an ability to cancel only one Query/Mutation with API like this:
const myQuery = createJsonQuery({
  concurrency: {
    abort: {
      getKey: (params): string => /* ... */,
      clock: event,
    }
  }
}

where getKey have to create unique cancellation key based on params.
Let's collect real use-cases there 🤗

The internal mechanism for it was introduced in https://github.com/igorkamyshev/farfetched/pull/364. And timeout operator uses it. But I still do not see any cases for public API.


allow method handlers to return json rpc errors

In this PR, we allow method handlers to return results that could themselves contain "result" and "error" fields. If they contain neither field, the old behavior is maintained. If they contain one or both fields, however, we read those fields and use them in the json rpc response.
This will be useful for addressing https://github.com/python-lsp/python-lsp-server/issues/314 -- rather than raising an exception when we get a request post-shutdown, we'll be able to instead call a method that returns a json rpc invalid request.
See also https://github.com/python-lsp/python-lsp-server/pull/432

@ccordoba12 I noticed a bug and it looks like CI caught it as well; pushed a fix and it should hopefully pass now if you kick it.


Fix some nullable return annotations 2

Issue #68

looks good to me otherwise, do you want to exchange reviews with me on #83 ? :)

Thanks!

Sorry @bilelmoussaoui didn't had time for a review. Since upstream didn't merged your complete MR, does this need some kind of update?


Example for mapObjIndexed is insufficient

The docs say:

Like mapObj, but but passes additional arguments to the predicate function. The predicate function is > passed three arguments: (value, key, obj).

But the example makes no use of this 3rd key, so is not as helpful as it could be in showing where mapObjIndexed could be useful
var values = { x: 1, y: 2, z: 3 };
var prependKeyAndDouble = function(num, key, obj) {
  return key + (num * 2);
};
R.mapObjIndexed(prependKeyAndDouble, values); //=> { x: 'x2', y: 'y4', z: 'z6' }

you are right. Do you have an example in mind? I would be happy to take a PR that fixes inadequate docs.

I can't think of a good example. Presumably where you want to do something with another key (or keys) in the object... but then you probably need to wrap it up in an if(key!==specificKey) ?

idk, i don't have much call to use the indexed functions. But I certainly agree we should illustrate its full potential.

Isn't it deprecated anyway?

No, we deprecated all the list-based xxxIndexed ones with common code.  But no one has bothered even trying to do the same for this one remaining function with a similar name but not a close enough API to be factored in the same way.

I don't think it's possible to write a simple, useful example where the third argument is useful. We'll gladly accept a pull request is anyone can prove me wrong. :)

At use this function for first time, i was little confused but tried with this
const xyz = { x: 1, y: 2, z: 3 }
const shows = (param1, param2, param3, param4) => {
 console.log('param1: ',param1,'\nparam2: ',param2, '\nparam3: ',param3, '\nparam4: ',param4)
    return param1 + 2
}
const mapObj = (fn, obj) => R.mapObjIndexed(fn, obj)
console.log(mapObj(shows, xyz))

//=>
param1:  1
param2:  x
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  2
param2:  y
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  3
param2:  z
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
{ x: 3, y: 4, z: 5 }

As you can see, I make a function called mapObj and receive like arguments a function and object to which the function will be applied, as I did not know what it recieves as parameters in the function, I introduced random parameters to see that it is what I recieve, which when printed I could translate it in the following way
const xyz = { x: 1, y: 2, z: 3 }
R.mapObjIndexed((value, key, obj) => value + 2, obj)
Or
const addTwo = (value, key, obj) => value +2
console.log(R.mapObjIndexed(addTwo, obj))
understanding this was very helpful for me and a great step to use this good function of ramda, and what better than to help understand what I already understood

At use this function for first time, i was little confused but tried with this
const xyz = { x: 1, y: 2, z: 3 }
const shows = (param1, param2, param3, param4) => {
 console.log('param1: ',param1,'\nparam2: ',param2, '\nparam3: ',param3, '\nparam4: ',param4)
    return param1 + 2
}
const mapObj = (fn, obj) => R.mapObjIndexed(fn, obj)
console.log(mapObj(shows, xyz))

//=>
param1:  1
param2:  x
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  2
param2:  y
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  3
param2:  z
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
{ x: 3, y: 4, z: 5 }

As you can see, I make a function called mapObj and receive like arguments a function and object to which the function will be applied, as I did not know what it recieves as parameters in the function, I introduced random parameters to see that it is what I recieve, which when printed I could translate it in the following way
const xyz = { x: 1, y: 2, z: 3 }
R.mapObjIndexed((value, key, obj) => value + 2, obj)
Or
const addTwo = (value, key, obj) => value +2
console.log(R.mapObjIndexed(addTwo, obj))
understanding this was very helpful for me and a great step to use this good function of ramda, and what better than to help understand what I already understood

At use this function for first time, i was little confused but tried with this
const xyz = { x: 1, y: 2, z: 3 }
const shows = (param1, param2, param3, param4) => {
 console.log('param1: ',param1,'\nparam2: ',param2, '\nparam3: ',param3, '\nparam4: ',param4)
    return param1 + 2
}
const mapObj = (fn, obj) => R.mapObjIndexed(fn, obj)
console.log(mapObj(shows, xyz))

//=>
param1:  1
param2:  x
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  2
param2:  y
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  3
param2:  z
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
{ x: 3, y: 4, z: 5 }

As you can see, I make a function called mapObj and receive like arguments a function and object to which the function will be applied, as I did not know what it recieves as parameters in the function, I introduced random parameters to see that it is what I recieve, which when printed I could translate it in the following way
const xyz = { x: 1, y: 2, z: 3 }
R.mapObjIndexed((value, key, obj) => value + 2, obj)
Or
const addTwo = (value, key, obj) => value +2
console.log(R.mapObjIndexed(addTwo, obj))
understanding this was very helpful for me and a great step to use this good function of ramda, and what better than to help understand what I already understood

At use this function for first time, i was little confused but tried with this
const xyz = { x: 1, y: 2, z: 3 }
const shows = (param1, param2, param3, param4) => {
 console.log('param1: ',param1,'\nparam2: ',param2, '\nparam3: ',param3, '\nparam4: ',param4)
    return param1 + 2
}
const mapObj = (fn, obj) => R.mapObjIndexed(fn, obj)
console.log(mapObj(shows, xyz))

//=>
param1:  1
param2:  x
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  2
param2:  y
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
param1:  3
param2:  z
param3:  { x: 1, y: 2, z: 3 }
param4:  undefined
{ x: 3, y: 4, z: 5 }

As you can see, I make a function called mapObj and receive like arguments a function and object to which the function will be applied, as I did not know what it recieves as parameters in the function, I introduced random parameters to see that it is what I recieve, which when printed I could translate it in the following way
const xyz = { x: 1, y: 2, z: 3 }
R.mapObjIndexed((value, key, obj) => value + 2, obj)
Or
const addTwo = (value, key, obj) => value +2
console.log(R.mapObjIndexed(addTwo, obj))
understanding this was very helpful for me and a great step to use this good function of ramda, and what better than to help understand what I already understood


CoreAudio support

Our app makes heavy use of core audio. Without it we are sunk... Hopefully that gets on the roadmap soon.

How long will an issue remain under review?

@ardentra Unfortunately CoreAudio is big and technically complicated. It's on our radar but we don't have any immediate updates.

This would be pretty much a requirement to port our app over... it would be a pretty massive investment on our part to rewrite our entire audio engine.

@ardentra While we don't have plans to support all of CoreAudio in the near future, we do have support for OpenAL and AudioToolbox, which you can use directly. We also support the MediaElement XAML control by way of projections; check out WOCCatalog (see XamlViewController) for an example.


sample data collection not working with UUID columns for postgres

Affected module
Does it impact the UI, backend or Ingestion Framework?
Ingestion framework.
Describe the bug
A clear and concise description of what the bug is.
Profiler ingestion with the collect sample metadata isn't working for Postgres. The profiler runs, but there is no sample data generated.
To Reproduce
Steps to reproduce:

Create a table with an UUID column
Create a postgres service and ingest this table
Create the profiler ingestion process with the capture sample data option

Airflow logs from profiler task execution:
[2022-07-20 20:48:43,008] {orm_profiler.py:262} INFO - Executing profilers for analytics.warehouse.analytics_pricing.p1_comprito__normalized...
[2022-07-20 20:48:43,119] {orm_profiler.py:574} ERROR - Could not obtain sample data from p1_comprito__normalized - 'UUID' object has no attribute 'replace'
[2022-07-20 20:48:43,156] {metadata_rest.py:103} INFO - Successfully ingested profiler & test data for analytics.warehouse.analytics_pricing.p1_comprito__normalized

Expected behavior
A clear and concise description of what you expected to happen.
Version:

OS: [e.g. iOS] linux
Python version: 3.9.3
OpenMetadata version: [e.g. 0.8] 0.11.2
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ] <IP_ADDRESS>

Additional context
Add any other context about the problem here.
Slack thread: https://openmetadata.slack.com/archives/C02B6955S4S/p1658350364238779

Fixed by https://github.com/open-metadata/OpenMetadata/pull/6233


Format framerate to have only 2 decimal digits

The framerate was delivered to frontend in its full beauty, potentially with a lot of decimal digits -> we truncate it at 2 decimal digits by rounding

Codecov Report

Merging #423 into master will decrease coverage by 0.01%.
The diff coverage is 0%.


Warning: Unexpected procedure property volatility returned from Snowflake

Terraform CLI and Provider Versions
Snowflake Provider 0.86
Terraform Configuration
resource "snowflake_procedure" "my_procedure" {
  name        = "MY_PROCEDURE"
  database    = "MY_DATABASE"
  schema      = "PUBLIC"
  language    = "JAVASCRIPT"
  return_type = "VARCHAR(16777216)"
  execute_as  = "CALLER"
  statement   = <<EOT
....
....
EOT
}

Expected Behavior
Plan/Apply without warning
Actual Behavior
Plan triggers the following warning:
│ Warning: Unexpected procedure property returned from Snowflake
│
│   with snowflake_procedure.my_procedure,
│   on snowflake_procedures.tf line 1, in resource "snowflake_procedure" "my_procedure":
│    1: resource "snowflake_procedure" "my_procedure" {
│
│ Unexpected procedure property volatility returned from Snowflake
│
│ (and 5 more similar warnings elsewhere)

Steps to Reproduce

terraform plan

How much impact is this issue causing?
Low
Logs
No response
Additional Information
No response

Hey @nicolamarangoni. Thanks for reaching out to us.
This is a harmless warning. We will demote it to INFO in one of the next versions.

Hi @sfc-gh-asawicki , many thanks for the info!

Hey @nicolamarangoni. We have released the fix as part of v0.87.0 release. Please follow the migration guide during the update. Please confirm that the issue is resolved in the newest version. Thanks!

Hello, I don't see the warning anymore! Thanks!


add readme in country service

add all dependencies in project in readme
add api end points in readme (don't add swagger)


Dev

Q
A

Bug fix?
no - yes?

New feature?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Guidance
You can delete this section when you are submitting the pull request.

Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.
Please target your PR to Dev branch.

Hi @ketaanhshah, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;


[Observation] Ensure lock storage rounding works for non-integral lock types

Platforms could have lock types that are non-integral-of-pointer sized types. That would potentially under-allocate lock buffer sizes. All current targeted platforms have integral sizes so this isn't an issue, however in generality this prevents any sort of miscalculation of lock sizing.

@swift-ci please test


Fix links in examples/tenant_tutorial

Hi Tom,
I made a patch that fixes the tutorial links.
Thanks

Looks good. Thank you


Update heroku deploy docs

Hey, I just made a Pull Request!

Updated Heroku deploy documentation.
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[X] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

@awanlin thank you for the feedback.
I think Heroku's git deploys are better for most folks, because it doesn't require any local build commands and enables git sync features.
However, I have added the docker commands back to this doc as an alternative for those that prefer it.
Please let me know if there are any more suggestions.
Thanks again!

@awanlin just added a "Deploy to Heroku" button that will bootstrap an app from backstage/create-app@latest.
Here's the source repo, had some fun with the logos :)

Hi @chap, thanks for the updates, plan is to review this on Friday. As for the button I don't think this is something we would want to add, sorry.
@Rugvip what's your thoughts on this button?

@awanlin no problem if we want to drop the button. thanks!

@awanlin thanks for your feedback.
I've made all the suggested changes.

Hi @benjdlambert, ready for you to review, just docs changes 👍


Improve

Hey, I've made some improvements, including styling buttons and other changes. Please review it.

you committed the PingPanda code into this repo, this repo should serve as a starting point for web apps and not be too involved in any styling or already provide the pingpanda landing page. Appreciate the PR, but rejecting for that reason


[Android] Debugging with HyperLog in Android

Topic Suggestion
[Android] Debugging with HyperLog in Android
Proposal Submission
Proposed title of the article
Debugging with HyperLog in Android
Proposed article introduction
HyperLog Android is a utility logger library for Android running on top of the standard Android Log class for debugging purposes. This is a simple library that will allow Android apps or libraries to store logs into the database so that developers can pull the logs from the database into a file or push the logs to your remote server for debugging purposes.
Key takeaways

An overview of HyperLog Android
Implementing debugging with HyperLog Android
Pros and Cons of using HyperLog Android

Article quality
This article is unique because first, it has not been covered in Section Engineering articles. Including it, in the section community articles will be a plus. Secondly, other sites do not provide intensive contents that can easily help beginners to understand how to use this powerful library. Lastly, I will include the benefits of using this library in comparison to other Android debugging libraries.
References
HyperLog Android


Upgrade to Django 1.9.5

Updated the requirements to bump Django to 1.9.5 and also upgraded all third-party libraries. Only two code changes were necessary: settings.py and biosys/url.py
Removed unused setting files dev.py and test.py.
Reorder class definition in vegetation/models.py to allow the django-extension  graphs_model to run.

This change is

Reviewed 11 of 11 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Can not set column EncodingHintType

I'm trying to set EncodingHintType in a power bi pbix file, but nothing changed.
Why it shows 0 model changes?

Go to File->Preferences and ensure that 'Allow unsupported Power BI features (experimental)' is checked.

@m-kovalsky thanks, it works.
However, I'm confused that it still used HASH encoding after I changed encoding hint to "Value"

The hint is not enforcement. If the column cannot be represented as a value encoded column, it's compressed as hash encoded column. For example, the value encoded is 32-bit, if you have values outside the 32-bit range, it will be always hash-encoded.

@marcosqlbi Got it, many thanks


MH-13158, Use default functional interface for SecurityUtil#runAs

Instead of using the custom internal functional code, this patch allows
the runAs method to accept a simple Lambda function which makes using
the method easier.

Dumb question, but this pull makes me wonder how active ingests, scheduling, and running workflows are impacted by running index rebuilds.

Hi @lkiesow
Would you be willing to also adopt this for SecurityContext.runInContext()?


game request

i would like to have a dos version of fallout 1 so i can play in my free time

hello, i can try to add it via dosbox emulation though it's a bit of a more technical game than doom.

Thank you


Don't setTimout function every JSON call

Due to https://github.com/CapCalamity/perfmon/blob/enhancement/jsonheaders/resources/assets/js/system.js#L92-L94 we create a new Timeout function after every ajax call. We could use interval instead:
http://www.w3schools.com/jsref/met_win_setinterval.asp
may with
http://www.w3schools.com/jsref/met_win_clearinterval.asp

I'm not sure why that would affect the browser in the long run, but i did it this way because i read sometime that setInterval loses more and more accuracy the longer it runs.
I thought the browser would simply create the new timeout and dispose of the current memory this way
Can we test whether or not that actually makes a difference?

Start a tab
Change the code to setInterval
Start another tab
watch them both and how their memory increases

Chrome has a built-in task manager to monitor memory, i'm not sure about firefox

I think this problem is still there...
We should investigate this bug further and see what we can do about it


Need help to fix error "No operations found defined in spec" when deploying

Hello Mr.Milan,
I'm building and deploying an application to Vercel with the following frameworks and libraries:

Express
Prisma
Swagger

During the building and deploying process, I have a mistake when deploying to vercel like that: I can't see any apis in swagger when deploying to vercel (this is my link:  https://tsa-backend.vercel.app/docs/ ), but everthing works well when building in local. Afterwards, I research and try to fix this error following these steps:

Replace the order of swagger setup and route in main file
Config the "apis" in swagger option
Downgrade of swagger-express-ui to 4.6.2
But the results are not different and I'm still having the same problem.

Could you help me realize and fix this error? This is my repo:
https://github.com/TanNguyen17112003/tsa-backend/

Hello Mr.Milan,
I'm building and deploying an application to Vercel with the following frameworks and libraries:

Express
Prisma
Swagger

During the building and deploying process, I have a mistake when deploying to vercel like that: I can't see any apis in swagger when deploying to vercel (this is my link: https://tsa-backend.vercel.app/docs/ ), but everthing works well when building in local. Afterwards, I research and try to fix this error following these steps:

Replace the order of swagger setup and route in main file
Config the "apis" in swagger option
Downgrade of swagger-express-ui to 4.6.2
But the results are not different and I'm still having the same problem.

Could you help me realize and fix this error? This is my repo: https://github.com/TanNguyen17112003/tsa-backend/

Hi TanNguyen17112003
have you tired to check the doc of the swagger? at some point, vercel does not suppot the cloud flare CNS style. maybe it would be good if you try to add the CND inside your main.ts or js file that you have in the root folder we you have declare the /docs routes for your API.
yeah exactly like this that you have here  :) and it should be fine and should work. let me know how it goes.


React Hot Loader unmounts form component

Hi, I have a problem with redux-form 6.6.3 and react-hot-loader 3.0.0-beta.6. When live editing a reduxForm component, the component unmounts losing form state. I know there is destroyOnUnmount: false option, but in my case I don't want to use that.
I have setup a project where this can be replicated: https://github.com/lucian-tanase/redux-form-hot-loader. Whenever render method of src/Form.js component is edited, the redux form loses its state.

This has been driving me nuts too.
See:  https://github.com/erikras/redux-form/issues/623

I'm closing this one as a duplicate of #623 and #3005.

Fix published in v7.1.2.


Fix RestaurantTag migration tests introducing an extra migration

Follow-up for https://github.com/wagtail/django-modelcluster/pull/123, fixing another change in django-taggit 1.3.0 that breaks our tests. For this one I’m pretty sure this just breaks Wagtail’s tests but has no other consequences for websites (well, except for the extra migration they’ll get as well).
Since those migrations are just here for tests I’ve assumed it was ok to edit the existing migration as the only change is with verbose_name.
Change from django-taggit: https://github.com/jazzband/django-taggit/commit/90c7224018c941b9a260c8e8bed166536f5870df

[x] Do the tests still pass? (https://docs.wagtail.io/en/latest/contributing/developing.html#testing)
[x] Does the code comply with the style guide? (Run make lint from the Wagtail root)
[x] For Python changes: Have you added tests to cover the new/fixed behaviour?
~[ ] For front-end changes: Did you test on all of Wagtail’s supported browsers? Please list the exact versions you tested.~
~[ ] For new features: Has the documentation been updated accordingly?~

🎉 that was quick!

I already fixed this in #6071 :-) I don't think there's any problem with having both versions of the fix in place, though.

Damn, sorry! I must have been running with tests with an out-of-date master.


Request for Information

Greetings,
I am working on implementing your solution in my environment, but I do not see an example or notes in the Readme to reference what you mean by this code:
lines 53 to 57 Run.swift
`@Argument(help: "The path to the script that GitLab Runner creates for the executor to run.")
var scriptFile: Path`

`@Argument(help: "The name of the sub-stage provided to the executor by the GitLab Runner.")
var subStage: String`

Can you give some more explanation on this section?  Is it just expecting the gitlab-ci.yml file name and the custom runner 'build_script' stage?
Thanks in advance for any info you can help me with.

The Run.swift is the code that backs the run subcommand meant to be used by the GitLab Runner's run_exec stage. The location relevant to this is in the README.md in the run section.
The .gitlab-ci.yml file is used to configure jobs and not runners; likewise the same is true for the build_script stage in said file. The configuration of a custom executor is meant to happen at the GitLab Runner config.toml level. I suggest you read GitLab's documentation on the custom executor.
Also, an excerpt from an example config.toml is provided at the very end of the README.md for this project.


Y-axis Labels

The Y-axis labels, especially for the Comprehension category, are lengthy. But trying to make the labels take less space by using line breaks results in this mess.
According to this issue on the github repo for Chart.js, they have not found a solution to this yet.
Need to do this another way.

Idea: each book comes with an abbreviated title that fits nicely on the side. That might work better.

This is way better.


jcal: init at 0.4.1

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)

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

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

Thank you for contributing to nixpkgs! I've left some comments, I hope they all make sense, otherwise please holler :)

@srhb Should i create new pull request and fix those changes?
Sorry, it's my first pr and i don't know about it's process.

@LinArcX Please feel free to ask all the questions you need to get a feel for the process, it's totally fine and we're happy to help!
You should amend this PR by (force-)pushing changes to your branch. This PR will update automatically then, and we keep all the comments and discussion in the same place. :)

@GrahamcOfBorg build jcal

Yay! Thanks for contributing!


Maximum limit for recorded request count in RequestInspectorJavaScriptInterface

Currently, the recorded events are stored in an unbound ArrayList inside RequestInspectorJavaScriptInterface, but after many requests this could easily be too big.
It would be nice if along Inspector config options, it'd be possible to keep for example only the last 100 requests, and make memory usage not grow indefinitely.

This would be a good improvement, thanks for reporting!


Language server socket in project directory?

Since the latest release (0.5.1) I am observing that coc-julia places a socket (named vscjlsymserv-<some-UUID>) in my current working directory. These seem not to get deleted after the session is closed. Is this desired behavior?

Can't reproduce, coc-julia will not create socket file.

You are absolutely right. It seems to be caused by JuliaFormatter. I am sorry for the confusion.

Actually, I am still seeing the same issue and it does seem to be related to the SymbolServer launched by coc-julia.
These files seem to correspond to the sockets created here.
I cannot always reproduce this issue but it seems to happen most frequently if I quit nvim with :cq (e.g. if I realize that I want to abort editing). Maybe in this case the symbol server is not shut down correctly?

The vscjlsymserv-<some-UUID> file should be in tmp folder, and looks like it's not deleted when Julia LS exit. Have no idea about this.

I also see this files in my working directory. It doesn't bother me too much, but I was wondering where they came from.

@cristobaltapia this has been fixed in v0.9.1


Added support for Service Principal authentication

Purpose
Added support for Service Principal authentication via config.py settings
Does this introduce a breaking change?
[ ] Yes
[ x] No

Pull Request Type
What kind of change does this Pull Request introduce?
[ ] Bugfix
[x ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

Follow the directions at https://docs.microsoft.com/en-us/azure/batch/quick-run-python on how to test with the Key based authentication
Switch the content of _AUTH_MODE to 'ServicePrincipal' in the src/config.py and provide the values of _AD_* settings (with a valid Service Principal credentials) and run the same script.

What to Check
Verify that the following are valid
Works as usual for the Key based authentication
Works with Service Principal authentication

Tiera erroro por todos lados no existe  Traceback (most recent call last):
File "/home/havas/trabajos/batch-python-quickstart/src/python_quickstart_client.py", line 307, in
blob_client = azureblob.BlockBlobService(
AttributeError: module 'azure.storage.blob' has no attribute 'BlockBlobService' actulicen con la nueva versión quedo todo obsolteto


raspberrypi4: Add initial support for Raspberry Pi 4 Model B

This PR adds recipes to build image for RPi4b.
This PR is re-posted as I fix the issues from #264.

@homiya16 @kkobayas0 thanks.


How do I whitelist branches on git tfs clone?

I'm using git-tfs 0.34, I have read the documentation for git tfs clone. However, I still can't wrap around my brain on how to whitelist branches I wanted to include in the clone. I have the following branches in TFS for Visual Studio 2022:

$/Projects/ProjectA/MyBranch
$/Projects/ProjectA/MyBranch_DEV (branched from the first branch above and will be merged to the first branch)
$/Projects/ProjectA/MyBranch_DEV_IMPL (branched from the first branch above and merged to the first branch)

I ran the git tfs clone http://my-tfs-server/tfs/confins $/Projects/ProjectA/MyBranch in an attempt to migrate those three branches above into a single git repository with multiple branch.
However, due to how things work where I worked, $/Projects/ProjectA/MyBranch actually branched out from  $/Projects/ProjectCore/BaseBranch and we have many check-ins shared with other branches (not branched for or merged) from different projects. I have considered --ignore-branches-regex, unfortunately it proved to be cumbersome to list each of them in the regex. Even worse, I noticed that some branches with short path like $/Base/Core will be represented as Core to further complicate the regex.
I have tried --branches=none too, but I will lose both _DEV and _DEV_IMPL branches history. Is it possible to get only specific branches to maintain the history while ignoring the other branches?
If its not possible, how do I add the other three branches into existing git repository manually?

Nevermind, this regex helped me.
^(?:(?!ProjectA).)*$


Outlook/ICal not initiating download of .ics file

Bug report
When clicking Outlook or iCal it opens the following url in the browser and doesn't download the .ics file. It should be noted that when I use your examples that it does download the file
begin:VCALENDARVERSION:2.0BEGIN:VEVENTURL:http://localhost:3000/go/checklistMETHOD:PUBLISHDTSTART:20200219T111924ZDTEND:20200219T131924ZSUMMARY:Get records of your superannuation / pension contributionsDESCRIPTION:There are situations when having a record of your superannuation / pension contributions could come in handy. Get these records before you leave, just in case you need them when you’re in Canada.LOCATION:NYCEND:VEVENTEND:VCALENDAR
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Click Add to calendar
Click Outlook
Should download file but instead opens the url in browser

Can you provide additional information regarding what browser and operating system you used? Additionally, since you say that when you click to download the Outlook or iCal link from the examples it does work, can you also provide some code examples? Maybe there's an issue there.

Closed as stale

@jasonleibowitz thanks for providing this lib, saved me a lot of hassle.
I ran into somewhat similar problem with Outlook ics download, as mentioned by @wakomako here.
Everything works fine and Outlook ics gets downloaded on local server, but when I pushed my app to SharePoint Online, instead of downloading ics file, it tries to open an URL -
https://mycompany.sharepoint.com/sites/Event/blob:/bf5e3e03-9bb7-486c-b29b-6bd8c8d3835e and gives 404 NOT FOUND error.  (my app home url is somewhat like - https://mycompany.sharepoint.com/sites/Event/SitePages/Event2020.aspx)
So I digged down the lib code and found this line -
link.href = window.URL.createObjectURL(blob);
After a bit of Googling around, I changed this line to -
link.href = 'data:text;charset=utf-8,' + encodeURIComponent(url);
With this change, now the Outlook ics gets downloaded properly on local as well as on SharePoint Online.

I still get this error. Is there a solution? 10x


feat: Reconnect websocket connection when closed

The next nightly should not exit just because the connection is broken.

Close this?


Move mapdata integration test out of tests/poutine

This PR just moves a misplaced test that was annoying me when I was hacking on poutines.

:+1: for small easy-to-review PRs. I'll merge as soon as tests pass.


Android MediaExtractor crash when decoding some mp4 files. Libc fatal signal 11

Hi I am using Double decode example to load videos into TextureView.
Code work most of the time but for some mp4 files it crash giving only :
libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7998
Same code works for webM files and most mp4 files. Place where I expect it to fail is :
extractor = new MediaExtractor();
extractor.setDataSource(sourceFile);
in MoviePlayer [L:113]
Any hint how to walk around or what might be the problem?

There's no native code in Grafika, so a native crash indicates a problem in the platform or with that specific device.  You may want to post the native crash info from logcat on http://b.android.com/ .

Now on stackoverflow: http://stackoverflow.com/questions/33296292/android-mediaextractor-crash-when-decoding-some-mp4-files-libc-fatal-signal-11


Create swapping of numbers

Optimized code for swapping of two numbers

plz add extention in your File i.e:-
SwappingOfNumbers/C++/swappingOfNumbers.C++
nd update your PR


Datetime format issue

When defining a date format to include 'T' as separator for time with miliseconds
ALTER DATABASE DATETIMEFORMAT "yyy-MM-dd'T'HH:mm:ss.SSSSSS"
ALTER DATABASE TIMEZONE "UTC"

CREATE PROPERTY V.creation DATETIME

When trying to create a record/vertex I get an Unparseable exception
CREATE VERTEX V CONTENT {id: 'test', creation: "2015-01-14T12:00:00.000122UTC"}

com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing command at position #0: Error on conversion of date '2015-01-14T12:00:00.000122UTC' using the format: yyyy-MM-dd'T'HH:mm:ss.SSSSSS
--> java.text.ParseException: Unparseable date: "2015-01-14T12:00:00.000122UTC"

The error happens, both programatically and through studio

Does this work?
ALTER DATABASE DATETIMEFORMAT yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
Scott

Oh, yes!, that worked..
interesting. So even though I set the timezone, i need to add it to the format.
Thanks

OK, hold on. It does work when executed on Studio. But it doesnt work when executing the create as a command over the REST Api.

u'Error: com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing command at position #0: Error on conversion of date '2015-01-02T12:00:00.001000UTC' using the format: yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\r\n--> java.text.ParseException: Unparseable date: "2015-01-02T12:00:00.001000UTC"'

Not sure if that \r\n may be the cause, and no idea why is even there...


react-native-xcode.sh script does not extract the correct IP address when en0 is not in use

The build script react-native-xcode.sh does not extract the correct IP address when generating the ip.txt file when:

en0 is not in use
en1 is assigned a routable/resolvable IP address
Another network interface is present using the 169.254.xxx..xx address space (like Thunderbolt connection between computers)

This prevents hot reloading, reloading or debugging the app when deployed to an iPhone. This occurs because the build script uses the 169.254.x.x as a secondary case when en0 is not present. This address is not on the same network as the iPhone, because it's used in a restricted network, and thus the phone cannot reload from metro or the debugging console.
React Native version:
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
      Memory: 567.23 MB / 32.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.13.0 - ~/.nvm/versions/node/v11.13.0/bin/node
      npm: 6.9.0 - ~/.nvm/versions/node/v11.13.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 28, 29
        Build Tools: 28.0.3
        System Images: android-28 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6<IP_ADDRESS>22156
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.10 => 0.59.10
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Steps To Reproduce

Do not use en0 (wired on iMac)
Use en1 (wireless on iMac)
react-native init MyTestApp
Open project in xcode
Build and deploy to a physical iPhone
Shake iPhone (trigger dev menu) and reload the app

Describe what you expected to happen:
App will hang and then a time out exception will be displayed.
Suggested Fix(s):
Existing code from scripts/react-native-xcode.sh:
# Enables iOS devices to get the IP address of the machine running Metro Bundler
if [[ "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then
  IP=$(ipconfig getifaddr en0)
  if [ -z "$IP" ]; then
    IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | cut -d\   -f2  | awk 'NR==1{print $1}')
  fi

  echo "$IP" > "$DEST/ip.txt"
fi

Change to:
# Enables iOS devices to get the IP address of the machine running Metro Bundler
if [[ "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then
  IP=$(ipconfig getifaddr en0)
  if [ -z "$IP" ]; then
    IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | grep -v ' 169.254' | cut -d\   -f2  | awk 'NR==1{print $1}')
  fi

  echo "$IP" > "$DEST/ip.txt"
fi

Alternatively, the code can look for both en0 and en1 addresses:
# Enables iOS devices to get the IP address of the machine running Metro Bundler
if [[ "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then
  IP=$(ipconfig getifaddr en0)
  if [ -z "$IP" ]; then
    IP=$(ipconfig getifaddr en1)
  fi
  if [ -z "$IP" ]; then
    IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | grep -v ' 169.254' | cut -d\   -f2  | awk 'NR==1{print $1}')
  fi

  echo "$IP" > "$DEST/ip.txt"
fi

👋 since you've opened a PR let's close this :) Also, it seems that we are already landing it - so thanks for your help in fixing 🙇♂


MRI segmentation

I am interested for your works
I used MRI with nii file , how can I implement according to your project , please guide me .
thanks you

Thanks for focusing on our work.

Save your MRI files in the same file format.
Modify following code (dataloader/dataset.py) to read nii to numpy：
image = cv2.imread(os.path.join(self._base_dir, 'images', case + '.png'))
label = cv2.imread(os.path.join(self._base_dir, 'masks', '0', case + '.png'), cv2.IMREAD_GRAYSCALE)[..., None]

Thanks you for replay
After spilt data , when run the training
python main.py --model  CMUNeXt  --base_dir   /CMUNeXt/data/busi  --train_file_dir busi_train.txt --val_fi
le_dir busi_val.txt
the result shown the  Segmentation fault
how to fix it?

Show error message please.

You can try to run on the BUSI data set first.
This may be a segmentation fault (not image segmentation), it is an error reported by the linux kernel.

![image](https://github.com/FengheTan9/CMUNeXt/assets/120349201/4d9225d8-a643-44f4-a16b-c91effb42f
I do that , but still as same problem


Manual build using provided Docker images fails

Expected behaviour
I'm trying to build opencv-python-headless for Python 3.10 with only several modules (core, imgproc, videoio) using the provided Docker image with OpenCV dependencies, and using the provided instructions for manual builds.
I spin up the following Docker container quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20231006 and execute the following code in the container shell:
cd ~
git clone --recursive https://github.com/opencv/opencv-python.git
cd ~/opencv-python
git checkout -b 78
export CMAKE_ARGS="-DBUILD_LIST=core,imgproc,videoio" ENABLE_HEADLESS=1
python3.10 -m pip wheel . --verbose > out.txt 2>&1

Actual behaviour
The build fails with the error below and the full output of pip wheel . --verbose can be viewed in out.txt.
  Copying files from CMake output
  Traceback (most recent call last):
    File "/opt/_internal/cpython-3.10.13/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/opt/_internal/cpython-3.10.13/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/opt/_internal/cpython-3.10.13/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 535, in <module>
      main()
    File "setup.py", line 267, in main
      skbuild.setup(
    File "/tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 706, in setup
      _classify_installed_files(
    File "setup.py", line 409, in _classify_installed_files_override
      with open(config_py, 'w') as opencv_init_config:
  FileNotFoundError: [Errno 2] No such file or directory: '_skbuild/linux-x86_64-3.10/cmake-install/python/cv2/config-3.py'
  error: subprocess-exited-with-error

  × Building wheel for opencv-python-headless (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

I also tried adding -DPYTHON3_LIMITED_API=ON to CMAKE_ARGS but the result is the same.
And I noticed that there is no folder python in _skbuild/linux-x86_64-3.10/cmake-install, let alone any config files.
Steps to reproduce

see the code above
Windows 10 using Docker Desktop 4.25.0
manylinux2014-x86-64
opencv-python-headless <IP_ADDRESS>

Since the error is related to scikit-build, maybe @henryiii could also help? Thanks a lot to everyone! 🙏
Issue submission checklist

[x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

[x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

[x] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

[x] I'm using the latest version of opencv-python

From log:
  --   Python 3:
  --     Interpreter:                 /usr/local/bin/python3.10 (ver 3.10.13)
  --     Libraries:                   NO
  --     numpy:                       /tmp/pip-build-env-v332t_75/overlay/lib/python3.10/site-packages/numpy/core/include (ver 1.21.2)
  --     install path:                -

it means that python3-dev package was not found by some reason. Most probably, you need to set some extra environment variables to fix it. I'll take a look on CI setup and return back.

@asmorkalov Did you have a chance to look at it? Which environment variables would you recommend me to double check? Thanks again! 😊


Eliminate body parameter parsing logic

In RequestCorrelationIdValve getParameterNames and getParameter methods are used to get request parameters. However this parameter map includes body parameters as well as query parameters. Reading body parameters is not the expected behavior of a valve. Hence PR fix this problem by manually parsing the query string.

Furthermore using getParameterName/getParameter methods will consume the request input stream which can only be consumed once. This behavior causes issues in different components at the later stages in request flow(when component trying to consume the input stream of the request again)

Relates to wso2/product-is#6392

Also fixes: https://github.com/wso2/product-is/issues/8329


Provide a docker configuration that lets people build and test bots in there that will then directly work on competition servers

This is especially for users who want to submit C++ compiled binaries to the competition. This is allowed by Kaggle but to make it work you will want to compile inside a docker container.

closed in #103


Incremental Sort

ImmutableJS doesn't seem to offer an incremental sort algorithm; this would make an excellent addition to its lazy data structures.
The basic idea of an incremental sort is that you can sort the sequence one element at a time, where the cost of extracting each individual element is only (approximately) O(log(k)), where k is the number of elements that have already been extracted. For instance:
const myList = List(...)  // Very long list. Let's say a million elements
const result = myList.incrSort(cmp).filter(pred).take(100)

Let's say the predicate returns half of all elements it's given. This means that the incrSort only has to emit the first 200 elements or so when the final result is evaluated, rather than having to sort the whole list. Better still, a good algorithm can do this partial sort in O(N + k log(k)), where N is the total size of the list and k is the number of extracted, sorted elements
A more formal definition of the problem can be seen here and one person's sample C++ implementation here

Hi, can I assume that this proposal is accepted? I'm willing to give it a try.

I'm going to close this aging issue. I'd be happy to look at a PR implementing this in the future.

Wait, what? I mean, it's fine, but what's the harm in leaving it open if
you're explicitly open to pull requests for it?
On Oct 4, 2017 11:45 PM, "Lee Byron"<EMAIL_ADDRESS>wrote:

I'm going to close this aging issue. I'd be happy to look at a PR
implementing this in the future.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/immutable-js/issues/908#issuecomment-334350791,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvSrScml1bp9PhN5P_Z_z2jbb6ic6-Vks5spFDDgaJpZM4JB6d7
.

Sure - I'll leave it open as a potential pick up PR for someone


Create screencast for getting started

A 3-5 minutes screencast that quickly goes through installation and the process of creating a new page that connects to an API endpoint

where is the link of the screencast, anyway i already installed it and it is working

hi @masterpowers
I still haven't recorded the screencast, but I post all the new ideas/features on issues to get other people's opinion
I'll post here as soon as I do it but honestly I don't think it'll be in the coming 2 weeks.
Meanwhile, you can check issue #49

Agreed. It would be really useful to demonstrate how to get started. It's easy to spool up, but pointers on adding new features, routing examples, migrations, and JWT authentication would be really helpful to spur adoption. If I can figure it out, I will try to create some documentation.

Hi @coxw
The screencast will be released with Version 3.
I'm working on finishing all the features in Version 3 before I start recording the screencast.
Feel free to ask about one or more specific scenarios and I'd be happy to provide you with a step by step tutorial
Cheers

With the release of version 3, screencasts are coming soon :smile:

With the release of version 3, screencasts are coming soon :smile:

:+1:

Getting started screencast is now available on http://www.laravel-angular.io/
:smile: :rocket:
More screencasts coming soon
Feel free to send requests for specific topics

:clap:

New screencast is live :smile:

I just watched this, looks really good.
Cant wait to see more :+1:

awesome I'm glad you liked it :smile:


Grafana dashboard

Hi!
Is there any chance you can share a Grafana dashboard for these Prometheus metrics?
Thansk

Replied to you back here: https://github.com/renoki-co/octane-exporter/issues/11


fix auto-idling logging msg

@damemi @tiwillia
This will clear https://bugzilla.redhat.com/show_bug.cgi?id=1517085
Prometheus has a default collection interval of 1 min. A query has to be at least 2 times that interval.  If the idle query period is set too low, under 2m (what was being set for testing only), then the query we use will never return any projects as being below idling threshold.  The logging msg I had set was not 100% accurate, then.  Although we would have never hit this bug in production, still the msg should be removed.

@tiwillia please merge, I have confirmed that as long as IDLE_QUERY_PERIOD is above 2 minute, projects below idling threshold are returned by prometheus, and also, when that period is set to 1 minute, I do see the inaccurate logging msg (that is removed in this PR).


The hot zone is ineffective in full-screen mode of VMware Horizon Client

When using VMware Horizon Client to remotely access other desktops and turn on full screen, there is no response when the mouse is moved to the corner. I have tried another tool, winxcorners. This tool works normally in my scenario. Perhaps it can be referenced to solve this problem.

Add another question: The lock screen action is also ineffective. My system version is Windows 10 Professional Edition 22H2.

VMware Horizon Client to remotely access other desktops and turn on full screen

Is "Turn off if a fullscreen app is opened" checked in the app's Settings?

VMware Horizon Client to remotely access other desktops and turn on full screen

Is "Turn off if a fullscreen app is opened" checked in the app's Settings?

This setting is not checked. I have tried repeatedly modifying this setting, but it has no effect.

@flexits I know what happened. When using VMware Horizon Client for remote desktop, the shortcut key "Ctrl+Win+Left" used by the "Left Virtual Desktop" action is sent to the remote system. Therefore, it cannot jump to the main desktop normally. If custom shortcut keys are supported, this problem can be solved by setting two sets of shortcut keys: "Ctrl+Alt,Ctrl+Win+Left".

At present, I have to execute external program calls to shortcut keys through Custom Action. For specific programs, you can refer to https://github.com/xeahsoon/keyboard-simulator. However, I still hope this function can be integrated into HotCornersWin.

The lock screen action is also ineffective

Hotkeys weren't processed in a correct way; utilized LockWorkStation method of user32.dll instead.
Fixed in beta 0.8.7.

If custom shortcut keys are supported, this problem can be solved by setting two sets of shortcut keys: "Ctrl+Alt,Ctrl+Win+Left".

At present, I have to execute external program calls to shortcut keys through Custom Action. For specific programs, you can refer to https://github.com/xeahsoon/keyboard-simulator. However, I still hope this function can be integrated into HotCornersWin.

Referenced in related issue #6
Closing this as duplicate.