Moving a snapshot with --source fails with correct resource ID

Following the step detailed in the document, when I use az snapshot create --resource-group $targetResourceGroupName --name $snapshotName --source $snapshotId --sku Standard_LRS after successfully taking the snapshotId, I get a (NotFound) error. The source listed is described as not found, it really exists and even copying it from the error output and pasting it in Azure Portal goes to the correct resource.
Has anything changed in the az snapshot create command to make this fail? The source is on Central US region and the destination is on East US region, on different subscriptions, is this a problem? If so, it should be specified.

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

ID: fd3d0e23-3ca1-fcae-7ef7-ad579222146a
Version Independent ID: 61e3f652-d95f-20ae-862a-6ecfa5a3be13
Content: Copy managed disk snapshot to a subscription - CLI Sample - Azure Virtual Machines
Content Source: articles/virtual-machines/scripts/copy-snapshot-to-same-or-different-subscription.md
Service: azure-disk-storage
GitHub Login: @ramankumarlive
Microsoft Alias: ramankum

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

Tested it, and it doesn't work with a RG in the same region either, says it cannot create a snapshot by copying an encrypted disk from a different subscription. (Message modified to remove references to private infrastructure)
Message: Cannot create a disk or snapshot 'imagename' by copying an encrypted disk or snapshot 'imagename' from a different subscription subID.

@AbianG
It seems that you are trying to create a snapshot by copying an encrypted disk from a different subscription, which is not supported. The error message you received clearly states that you cannot create a disk or snapshot 'imagename' by copying an encrypted disk or snapshot 'imagename' from a different subscription subID.
To create a snapshot, you need to ensure that the source disk is not encrypted and is located in the same subscription as the snapshot. If you want to copy a snapshot to a different subscription, you need to first copy the disk to the target subscription and then create a snapshot from the copied disk.
Regarding the error you received when trying to create a snapshot, it is possible that there was a temporary issue with the Azure service. I would recommend trying again after some time. If the issue persists, you can try creating the snapshot using the Azure Portal or Azure PowerShell to see if that works. If you continue to face issues. I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request).
Thank you for your time and patience throughout this issue.

@AbianG
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation


Default group being reset

Randomly, without any console output, my default group resets. I use SQL, NetEvents, and Java 8 with BungeeCord. I can provide logs, but I found nothing useful in them. Thanks for the help!
PEX: 1.23.2
Netevents: 1.0
Java: 8
Spigot: git-Spigot-870264a-0a645a2

Heh, I just googled this problem, still having it BTW and found my old ticket. Anybody know what could be going wrong?

Unfortunately PermissionsEx is currently unmaintained and no further updates are planned. Because of this, all pull requests are being closed. If you are looking for an actively maintained permissions plugin, take a look at LuckPerms. It is compatible with major server platforms and can import data from PEX.


fix: use explicit Number() instead of unary plus

Probably not important for the experienced js developers but it's more readable for newcomers (at least for me!).

I signed it!

Hi @RoPP, thank you for the PR. LGTM.

lgtm as well, thank you!


Support all previous Xcode beta versions of this major release

Currently only Xcode 7 beta 4 is shown (after all the release versions of Xcode 6). It'd be great if you could also allow downloading older beta versions (in this case 1 through 3).
If you look at the url from the developer portal: https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7_beta_4/Xcode_7_beta_4.dmg you can see that it can be easily deduced that Apple uses a deterministic naming scheme. When I tried changing it to https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7_beta_3/Xcode_7_beta_3.dmg, it downloaded just fine (also worked for 2).
So I guess my feature suggestion is to support even unlisted beta versions by assuming that the naming scheme stays the same. If you ping the "made up" URL of the earlier betas, you can tell whether there is a resource or not, so you could even run through them in xcode-install list.

I'm not sure about fiddling with the URLs inside XcodeInstall, the scheme changes frequently, e.g. Xcode 6.4 has /services-account/download?path=/WWDC_2015/Xcode_6.4_beta_4/Xcode_6.4_beta_4.dmg and they also sometimes disappear.
I'd rather put that step into the hand of the user and offer to install from a manually provided URL, e.g.
$ xcode-install install https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7_beta_3/Xcode_7_beta_3.dmg

Close enough :)
On Tue, Jul 28, 2015 at 9:26 AM Boris Bügling<EMAIL_ADDRESS>wrote:

I'm not sure about fiddling with the URLs inside XcodeInstall, the scheme
changes frequently, e.g. Xcode 6.4 has
/services-account/download?path=/WWDC_2015/Xcode_6.4_beta_4/Xcode_6.4_beta_4.dmg
and they also sometimes disappear.
I'd rather put that step into the hand of the user and offer to install
from a manually provided URL, e.g.
$ xcode-install install https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_7_beta_3/Xcode_7_beta_3.dmg
—
Reply to this email directly or view it on GitHub
https://github.com/neonichu/xcode-install/issues/44#issuecomment-125500276
.


Update From additional changes

Ignore the "failing CI", this is a timeout that sometimes randomly occurs on all of our PRs lately


Pass new params to optimist, for signing tx

In order to be able to sign transactions, a private key needs to be passed to Optimist.

[ ] Determine the params needed (eth key, provider, etc)

[ ] Pass them as environment variables, config variables, etc

[ ] Check they're available inside the container

I'm implementing this as part of #1161


Add support for PBE using hmacWithSM3

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

This pull request is ready to merge

Merged to master branch. Thank you.


Hybrids Depreciation Allocation defaults do not match other models

Hybrids depreciation defaults as of the release candidate for 2023-12-17-r2:

As compared to PVWatts-Single Owner:

Consider updating to match. (PV-Battery-Fuel cell matches the other hybrids)
Additional consideration: anything with "generic system" probably shouldn't have assets qualify. Consider if this case should have different default allocations.

The default allocations are based on a utility-scale PV system (based on work done in 2011). I'm not sure if they would be appropriate for a hybrid system or other types of systems. Assuming 100% 5-yr MACRS allocation is a simplification, but may be appropriate when more information is not available.

My other concern is that the ITC qualification box is unchecked in a case where there are eligible assets. Perhaps the fix is just to check the ITC box?

Consolidated in https://github.com/NREL/SAM/issues/1855


Docker Image for EVMTool

PR description
Create a docker image for EVMTool, so that the GoEvmLab tool can easily
integrate the besu EVM into its fuzzing framework.
Signed-off-by: Danno Ferrin<EMAIL_ADDRESS>requires #1311
Changelog

[ ] I thought about the changelog and included a changelog update if required.

Overall this looks good to me but allowing someone with more Docker expertise to review and approve.


complete.failure('this has failed') appears on console as 'Timed out task'

import { ZBClient } from 'zeebe-node'

export class MyWorker {
  zbClient: ZBClient

  constructor(gatewayAddress: string) {
    this.zbClient = new ZBClient(gatewayAddress)
    this.createWorker()
  }

  createWorker() {
    this.zbClient.createWorker(
      'my-worker',
      'my-task-type',
      (job, complete) => this.handler(job, complete)
    )
  }

  handler(job, complete) {
    complete.failure('this has failed!', 0) // <<--------------- !!!
  }
}

console output:
[ my-task-type my-worker ] > Timed out task a4f33646-2acb-4627-aef9-46e281411bdc for my-task-type

Thanks for reporting this @csuermann. I've patched it. We'll release an updated version of the client with this fix when the Production-ready release of Zeebe comes out.


Is it possible to use arabic-jekyll to blog in two languages?

I'd like to start using arabic-jekyll as my go-to for blogging but I had to ask first. Is it possible to use it/or any other jekyll theme to blog Both in Arabic and English?

Yes, you can define a new layout for English and specify it in the post's frontmatter


Sanitization

import xlsx data with the user import file in lib

Since there's another PR, can we close this one?

Code exists in https://github.com/rubyforgood/doublehranch/pull/61


reachableViaWiFi property of reachabilityManager is incorrect when used in application:didReceiveRemoteNotification:fetchCompletionHandler:

steps to reproduce:

After I turn on WiFi on device, I call startMonitoring method on reachabilityManager when the app is in foreground. (after this step, if I check somewhere in the code, I get reachabilityManager.reachableViaWiFi is YES. This is correct!)
I press Home button to make the app into background.
I turn off the WiFi on device.
My app then receives push notification and application:didReceiveRemoteNotification:fetchCompletionHandler: is called. (If i check reachabilityManager.reachableViaWiFi at the beginning of application:didReceiveRemoteNotification:fetchCompletionHandler:, I get YES. This is incorrect! It should be NO!)

That's not how AFNetworkReachabilityManager works. The calls necessary to determine reachability execute asynchronously, and may not be available immediately.


gradient on trajectory vs sum of gradients on 1 step transitions.

Hi, I have been experimenting with brax and I am currently interested by taking the derivative of a reward function wrt to friction parameter. the reward function is given by:
state_final - state_initial / dt * <some_constant>.

Interestingly I found that computing the gradient on 1 step transition and summing the gradients for the full trajectory is different from computing the full trajectory and then taking the gradient.
does somebody knows how jax computes  gradients in this case ?
thanks!

Hi @yecohn , see more info on jax autodiff for computing gradients. Why are you expecting the gradient over the full trajectory to be the sum of gradients for each step transition? The step function gets applied recursively so you need to apply the chain rule to get the gradient over the full trajectory


Animated 3D models appears with animation only if type: NodeType.webGLB used for ARNode object. In other cases models are not animated or not displayed at all

Animated 3D models appears with animation only if type: NodeType.webGLB used for ARNode object. In other cases models are not animated or not displayed at all
In case I use type: NodeType.localGLTF2, type:NodeType.fileSystemAppFolderGLB, NodeType.fileSystemAppFolderGLTF2 some models are displayed without animation(static) and some models are not displayed at all.
No errors, no warnings displayed
The model below IS displayed without animation with
type:NodeType.localGLTF2,
type:NodeType.fileSystemAppFolderGLB,
type:NodeType.fileSystemAppFolderGLTF2
And is displayed animated in case we use type: NodeType.webGLB
https://firebasestorage.googleapis.com/v0/b/stridenseek.appspot.com/o/files%2FAR_Models%2FAlien.glb?alt=media&token=fffd9db1-dcc5-4dae-bb1f-95d7ea867817
The model below is NOT displayed at all in case we use
type:NodeType.localGLTF2,
type:NodeType.fileSystemAppFolderGLB,
type:NodeType.fileSystemAppFolderGLTF2
And is displayed animated in case we use type: NodeType.webGLB
https://firebasestorage.googleapis.com/v0/b/stridenseek.appspot.com/o/files%2FAR_Models%2Fvelociraptor.glb?alt=media&token=565d3c81-b0b8-4c77-812a-469d706ca242
So the point is to make models to be displayed animated from the local storage not only from the web
client:
IOS 14.7.1 IPHONE SE(old model)
environment:
ar_flutter_plugin: ^0.6.1
Flutter (Channel master, 2.6.0-12.0.pre.675, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-UA)
Xcode - develop for iOS and macOS (Xcode 12.4)
VS Code (version 1.48.2)
Please help to solve the issue, the download of large 3d models each time we access the AR page is inappropriate for our project

Hey @svyazist2005 , unfortunately animations are not supported by this plugin yet, so there is no standard behaviour here. If this is something you'd like to look into it would make a great contribution, don't hesitate to let me know if you need any help.
The model you provided (https://firebasestorage.googleapis.com/v0/b/stridenseek.appspot.com/o/files%2FAR_Models%2Fvelociraptor.glb?alt=media&token=565d3c81-b0b8-4c77-812a-469d706ca242) is a GLB file, so it won't work with type:NodeType.localGLTF2 and type:NodeType.fileSystemAppFolderGLTF2. To test it with type type:NodeType.fileSystemAppFolderGLB, I've added the link you supplied to line 112 of the local and web objects examle which downloads the model into the local file system when you start the widget and adds it as a fileSystemAppFolderGLB node when you press "Add/Remove Local Object at Origin" (please note that the initial download can take a while depending on your internet connection, so wait until your console prints "Downloading finished, path: /data/user/0/io.carius.lars.ar_flutter_plugin_example/app_flutter/LocalDuck.glb"). For me, the model displays without problems (see attached screenshot), so please test it with the same setup to check what happens :)
Attachment:


[10.x] Refactor existing code to include function for dropping columns if th…

For MySql and Postgres drivers, The dropColumn method will work like the dropIfExists method, if the column exists it will be deleted, if not it will not throw any errors.

I don't feel we should do this as people might expect the error to know when they're calling the method wrongly.


Update deps

Coverage decreased (-0.3%) to 97.674% when pulling ccd08cfda063d509ff861e6b4b9b9df10f926d54 on update-deps into a447da4e97a7cccbe482b6a5548df0d134a93a09 on master.


Fix profiler tag in WMRHandMeshProvider

Overview
The tag was referencing the previously deprecated (and where this was refactored from) WindowsMixedRealityArticulatedHandDefinition class. This PR updates it and uses nameof to help make it more robust to name changes.
Also adds a profiler marker to the OpenXRHandMeshProvider.

/azp run


Support multiple target branches in pr rebase

Why is this PR needed?
Rebase logic only considers pr with the master as target branch.
Fixes: https://github.com/SUSE/avant-garde/issues/1696
What does this PR do?
Adapt logic to handle multiple target branches.
Also, remove the use of Format function which does not exist, but was referenced as a consequence of copy/paste
Anything else a reviewer needs to know?
The whole logic for handling pr validations should be refactored into the jenkins pipeline. This will be introduced into a follow-up PR.
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:
What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

The PR rebase logic was not executed:
+ make -f skuba/ci/Makefile pr_checks
/home/jenkins/workspace/caasp-jobs_pr_test_PR-1158/skuba/ci/tasks/rebase.py
Not a PR. Rebase not required.


Add support for Ruby 3

Attempt to add support for Ruby 3.
I've added a new entry in the build matrix. Ruby 3 is only properly supported with Rails 6.1.
I have updated the runtime dependencies in the gemspec. I have tried other ways without success.

🥳


Add AppImage

unicorn

Please re-run the test.
I have fixed the "List item description must end with proper punctuation" issue at
https://github.com/sindresorhus/awesome/runs/3337854478?check_suite_focus=true#step:3:13
in
https://github.com/AppImage/awesome-appimage/commit/3f8f1b68d4984c19ea8148c9c4656d4f2d80e50c

To add on to the same link issue I would suggest these resolutions:

AppImage.GitHub.io - Keep the one on line 64, get rid of the one on line 189.
appimage.org - Get rid of the one on line 269, there's no need to link it a second time when you've already done it at the very beginning of the list.
linuxdeployqt - I would keep the first mention and look for another Travis CI example on a different repo or elsewhere.

Please re-run the test.
I have fixed the (partially) duplicated URLs.

Linting is failing

Linting is failing

Looks like "Deployment tools for Flash applications","Deployment tools for Rust applications" ToC is missing

Thanks, should be fixed now.
My lint now succeeds:
https://github.com/AppImage/awesome-appimage/runs/3643981695

Please also enable the issue tracker on the repo.

Done.

Tweet: https://twitter.com/awesome__re/status/1439511028824379393


wording tweak suggestions for the "Why Rust?" section

These suggestions are from the perspective of someone who's reasonably familiar with compilers, so it's possible that they're the wrong choice for marketing to (say) web developers. Anyway, with that said:

Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, or even integrate with other languages.

A minor nitpick about "even". Integrating with other languages per se isn't that impressive. Essentially all mainstream languages can call code in at least C. The big difference is that Rust can do it with low or no performance overhead. Maybe something like this could capture it:

Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, or integrate with operating system kernels.

Rust's rich type system and rock-solid compiler guarantee memory-safety and thread-safety — and enable you to eliminate many other classes of bugs at compile-time.

This line sort of implies that the reason C and C++ can't guarantee memory safety, is that those compilers "aren't rock solid," which of course isn't what the author meant. There are also arguably some soundness holes in the current Rust compiler that might make some people question its rock solidity, even if those are just academic examples that won't ever come up in production.
Maybe we could replace "rock solid compiler" with "borrow checker", or maybe just drop it.

I should emphasize that these are of course really specific nitpicks that only a tiny sliver of programmers will notice or care about, but if we can find language that makes them happy and still serves the main audience, then all the better.

Thank you for these nits!  I agree with both. Mind opening up a PR to improve, and pinging me there?


test(css): deterministic css emit with the same file basename

Description
refs #12256
The CSS emission's file name should be deterministic when multiple CSS files have the same file basename.
e.g:
index.css vs sub1/index.css vs sub2/index.css

Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the PR Title Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.

Thanks!


Move Prow and Testgrid configs out of wg-multi-tenancy

Anyone who goes hunting in the kubernetes/test-infra repo for HNC will be looking for the name of this repo (hierarchical-namespaces), not the old repo (wg-multi-tenancy). I think it makes sense to move the HNC configs out of:

https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/wg-multi-tenancy
https://github.com/kubernetes/test-infra/tree/master/config/testgrids/kubernetes/wg-multi-tenancy

And into hierarchical-namespaces instead.

/cc @rjbez17

wdyt?

Yeah I agree. We are our own sub project now so shouldn't be an issue to get that setup.


Python recommendation returns an error when you exit ipython

I followed the recommendation for removing .python_history, and when I exit ipython, I get the following error message, and then ipython exits.
Exception ignored in atexit callback: <function write_history at 0x7ff4c0737420>
Traceback (most recent call last):
  File "/etc/python/pythonrc", line 27, in write_history
    readline.write_history_file(history)
    ^^^^^^^^
NameError: name 'readline' is not defined

This seems like a weird result, given that the python file should be valid and readline should never be undefined, unless it's reading that file differently than normal python.
Python 3.11
IPython 8.14.0

Write the following into $XDG_CONFIG_HOME/python/pythonrc:
#!/usr/bin/env python3

def is_vanilla() -> bool:
	""" :return: whether running "vanilla" Python """
	import sys
	return not hasattr(__builtins__, '__IPYTHON__') and 'bpython' not in sys.argv[0]

def setup_history():
	""" read and write history from state file """
	import os
	import atexit
	import readline
	from pathlib import Path

	# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
	if state_home := os.environ.get('XDG_STATE_HOME'):
		state_home = Path(state_home)
	else:
		state_home = Path.home() / '.local' / 'state'

	history: Path = state_home / 'python_history'

	readline.read_history_file(str(history))
	atexit.register(readline.write_history_file, str(history))

if is_vanilla():
	setup_history()

Then create an empty file for the history, in my case, it's in $XDG_STATE_HOME/python_history.

Er, hi, hello. I'm using xdg-ninja to clean up my home directory, and this issue was linked from it, so I thought I would come here. The suggestion for dealing with python is... actually way worse than the status quo? The solution to dealing with a hidden-by-default dotfile is to create a non-hidden directory? I don't have a python directory in $HOME, so why would I want to do that?

@HugLifeTiZ I think the suggestion is just wrong, perhaps an oversight. It should have been $XDG_CONFIG_HOME instead:
export PYTHONSTARTUP="$HOME"/python/pythonrc

to become
export PYTHONSTARTUP="$XDG_CONFIG_HOME"/python/pythonrc


error on adding component to the page

I'm submitting a ...  (check one with "x")
[x ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

I just installed the editor in my project and init it like this:
<trumbowyg :id="'editor-'+uniqueId" v-model="blockContent"></trumbowyg>

and I get this when I add it to the page
[Vue warn]: Error in mounted hook: "TypeError: this.el.trumbowyg is not a function"
no toolbar is visible and only textarea is visible.

Are you using webpack?
If you can please check for this config
new webpack.ProvidePlugin({
      Vue: 'vue',
      jQuery: 'jquery',
      $: 'jquery',
    }),

https://github.com/ankurk91/vue-trumbowyg/blob/master/webpack.config.dev.js

hmm I have it in package.json included like this:
"dependencies": {
...some other stuff here...
"vue-trumbowyg": "^1.0.3",
I'm not sure about stuff you mention and where to check for it.

If you are not using webpack then you need to include jQuery on your html
Instructions can be found in readme file

I am using webpack I belive, whatever is Laravel configured out of box is what I am using and I belive its webpack. And I have jQuery in my html as well.

check this: https://maxniko.tinytake.com/sf/MTk4NDQ1Ml82Mjc5Mjgw

btw totaly not related question for this report, are you available for freelance? I may have work for you if you are. Let me know and if you want delete this question :)

Okay, then you need to read this
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/autoloading.md

Ha ha, sorry I work 9 to 7 already.
I do open source for fun.

great thanks for your help and your contibutions to the vue community with these components :) anyways I do have opensource project in works but if you are busy then well good luck :)

I will write a small wiki on how to use this package in Laravel mix.
Closing; feel free to re-open.

you are one of a kind! :)

Btw I do not have this file in my project: webpack.mix.config.js Do I have to manyally create it and where should I put it?
inside my webpack.mix.js I have this:
mix.webpackConfig({
resolve: {
alias: {
components: path.resolve(__dirname, './resources/assets/js/components'),
utils: path.resolve(__dirname, './resources/assets/js/utils')
}
},
plugins: [
new webpack.NormalModuleReplacementPlugin(/element-ui[/\]lib[/\]locale[/\]lang[/\]zh-CN/, 'element-ui/lib/locale/lang/en'),
new webpack.NormalModuleReplacementPlugin(/element-ui[/\]src[/\]locale[/\]lang[/\]zh-CN/, 'element-ui/src/locale/lang/en'),
new webpack.NormalModuleReplacementPlugin(/element-ui[/\]packages[/\]scrollbar/, 'element-ui/lib/scrollbar')
]
});
is that part of the same thing, could I put that code in there or do I need this config file?

Ah, there was a typo, should be fixed now.
There is only one file webpack.mix.js that need to be configured.

battleship operational: https://maxniko.tinytake.com/sf/MTk4NjE0MF82MjgzMzgy
thank you for your help!


run_rustc: ld: duplicate symbol _arc4random_buf in ...

Quite a wired issue to be honest.
I'm using f08a7cb0641fed5410b4c92f3e4446413c897d2f as local root, and the build is failed with error:
    Running `/opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/rustc_proxy.sh --crate-name rustc_driver --edition=2018 compiler/rustc_driver/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C embed-bitcode=no --cfg 'feature="llvm"' -C metadata=9ad872a8ac88634a --out-dir /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -L dependency=/opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps [...]  "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs" "-Wl,-rpath,$ORIGIN/../lib"
  = note: ld: duplicate symbol _arc4random_buf in /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o) and /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o) for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

/opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/rustc_proxy.sh: line 22: 78733 Abort trap              ${PROXY_RUSTC} "$@"
error: could not compile `rustc_driver`

Caused by:
  process didn't exit successfully: `/opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/rustc_proxy.sh --crate-name rustc_driver --edition=2018 compiler/rustc_driver/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type dylib --emit=dep-info,link [...] -L native=/opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/rustc-1.54.0-src/build/lib` (exit status: 134)

and this .rlib contains this file multiple times:
nm /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e44
46413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib 2>/dev/null | grep 'arc4random.o' | sort | uniq -c
  59 /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o):

This file is part of tests:
$ find . -iname '*arc4random*'
./rustc-1.54.0-src/src/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/arc4random.cpp

I see that minicargo.mk contains LLVM_INCLUDE_TESTS=OFF and LLVM_INCLUDE_EXAMPLES=OFF, so... I'm a bit puzzled.

Tried a clean build? Checked the compile output while doing that build

  = note: ld: duplicate symbol _arc4random_buf in
  /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o)
  and
  /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_mrustc/mrustc-rust/work/mrustc-f08a7cb0641fed5410b4c92f3e4446413c897d2f/run_rustc/output-1.54.0/build-rustc/x86_64-apple-darwin/release/deps/librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o)
  for architecture x86_64

  = note: ld: duplicate symbol _arc4random_buf in
  .../librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o)
  and
  .../librustc_llvm-a2ae1c20a7f75655.rlib(arc4random.o)
  for architecture x86_64

Looks like something is going very wrong with either llvm's archiver or rustc's archive logic.
I'm reasonably sure it can't be a rustc bug (this sort of thing tends to crop up much earlier during compile), so maybe something is wrong with how LLVM is being compiled.
I know that you often use the system LLVM, has that happened here too?

@thepowersgang nope, it is used rustc's LLVM. I can easy reproduce it by building my portfile: https://github.com/catap/macports-ports/blob/mrustc/lang/mrustc/Portfile

@thepowersgang I'll investigate, as soon as I can.


Multiple linux issues when testing production build

During the cut release process we use this manual check list. I did a cut release with Frank yesterday and ran through the linux checklist and there are several linux issues.
This issue is to list all of the linux problems I saw, we can break this out into individual issues if needed.

[ ] ❗ (Does not work on linux) mod + shift + ., cannot open the coredump feature with this command. It does not work.
[ ] ❗ (Does not work on linux) double click to open files from finder opens new window each time (mac/windows). After installing the production application I could not double click .kcl files in my file explorer and have it automatically open in ZMA.
[ ] The ZMA icon does not appear in the file explorer or toolbar.

The version of linux I am using
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

I have a partial fix for the icon not showing up in #4554 . I couldn't figure out how to get the icon to show up in the file tree tho

Pretty convinced at this point that the icon comes from free already with electron-builder, but appimaged is needed on the target system for it to be picked up. See comment at https://github.com/KittyCAD/modeling-app/pull/4554#issuecomment-2501322490

Re: the CoreDump hotkeys not working. It's because the key changes when shift is pressed and that causes it to not get picked up by the library.

The maintainer has an issue he commented on a while back: https://github.com/JohannesKlauss/react-hotkeys-hook/issues/1064 that attempts to address it. His patch didn't work when I tried it, but changing the key combination to mod + shift + > or mod + alt + . caused it to get picked up correctly

Checked two boxes in the original description (icon and open with...) are both are now okay. Instructions were written and part of this PR #4592
The coredump one still needs to be addressed.


Download PDF dialog shows "from:blob"

More information: occurs on https://mozilla.github.io/pdf.js/web/viewer.html in Firefox. Minor issue in my opinion, so I'm marking the correction of this as a feature for now.

When is this expected to be fixed? Is there a work around in the mean time which we can implement?

It seems that fixing this is blocked on https://bugzilla.mozilla.org/show_bug.cgi?id=1053327.

Follow-up to https://github.com/mozilla/pdf.js/issues/6313#issuecomment-255361077: Is it meaningful to keep this issue open, when it's blocked on an upstream bug (which is approaching five years of age)?

No, let's track this upstream.


[SQL][DOC] SQL programming guide add deprecated methods in 2.0.0

What changes were proposed in this pull request?
Doc changes
How was this patch tested?
manual
@liancheng

Test build #60977 has started for PR 13827 at commit a44c630.

Test build #60977 has finished for PR 13827 at commit a44c630.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60977/
Test PASSed.

Merged build finished. Test PASSed.


Connectycube chat connection failing

I am getting issue while connecting with ConnectyCube chat. Below function
--> await ConnectyCube.chat.connect({ userId, password }) is not working properly due to that Listners for video calling like _OnCallListners and others are not working.
Please help!!!

Unfortunately we don't have common sample for this case. For public projects we use push notification to get call info due app is inactive.

a caller do session.call() and send push notification in parallel (e.g. send caller name/id and state of call video/audio)
a callee receives push notification in background and show screen to accept or reject the incoming call
Init ConnectyCube SDK, connect to chat, assign listeners to get incoming call and do session.accept() or session.reject() after the callee has chosen accept or reject action.
ignore this push notification in foreground, because chat is connected and onCallListener will get call session.

Hi @ccvlad
Thanks for you reply. We are following the same steps which you provided but only push notification things we are using differently means we are calling Firebase Push/VOIP Push API separately in the app.  Also we are sending this push notifications after 5 sec of delay, the reason is to add delay here is when we are initiating video call then at receiver end onCallListeners takes some time to invoke so due to this we are not getting any session for video call, that's why we are adding 5 sec delay here for push notification.
So we have two queries here which is given below

The step which we are following for push notification is the right approach?, is this can be cause of Video call connecting issue because sometime video works and sometime not?
We found that connectycube chat taking sometime to connect due to this call was not connected, so how we can resolve this?

Please look at below connectycube code which we are using for video call. Please check and let us know if we are doing anything wrong here.
App.js
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
appState: AppState.currentState,
showIncomingModal: false,
localStream: null,
remoteStreams: [],
isActiveCall: false,
isIncomingCall: false,
showProgress: false,
showInomingVideoCall: undefined,
answerCall: false,
applicationKill: true,
}
this._setUpListeners();
this._session1 = null;
this.localStream = null;
this.remoteStreams = [];
this.showCallFromKill = false;
async _setUpListeners() {
    await ConnectyCube.init(...config);
    setTimeout(() => {
        ConnectyCube.videochat.onCallListener = this._onCallListener;
        ConnectyCube.videochat.onAcceptListener = this._onAcceptCallListener;
        ConnectyCube.videochat.onRejectCallListener = this._onRejectCallListener;
        ConnectyCube.videochat.onStopCallListener = this._onStopCallListener;
        ConnectyCube.videochat.onUserNotAnswerListener = this._onUserNotAnswerListener;
        ConnectyCube.videochat.onRemoteStreamListener = this._onRemoteStreamListener;
        ConnectyCube.videochat.onSessionConnectionStateChangedListener = this.onSessionConnectionStateChangedListener;
    }, 5000);
}

// i used callkeep for allState(background, foreground, kill)
RNCallKeep.addEventListener('answerCall', async ({ callUUID, ...o }) => {
await AsyncStorage.setItem('answerFromKill', 'true');
this.setState({ showProgress: true, answerCall: true });
        if (AppState.currentState === 'background') {
            await AuthService.autologin().then(() => {
                console.log('AuthServiceanswerCallkillStateSwati')
                if (AppState.currentState === 'background') {
                    LaunchApplication.open('MobilPT');
                }
                this.recurse();
            });
        } else {
            console.log('AuthServicecallkillStateSwati')
            this.recurse();
        }
    });

    RNCallKeep.addEventListener('endCall', async ({ callUUID, type }) => {
        if (!this.state.answerCall) {
            if (this._session1 != null) {
                this._onPressReject()
            } else {
                //call api when get killValue = true
            }
        }

    });

recurse = () => {
var t;
var count = 0;
t = setInterval(async () => {
if (this._session1 !== null) {
console.log('recurseSession', this._session1)
clearInterval(t);
this._onPressAccept();
}
count++;
console.log('CounValueSessiontValue', count);
        if (count > 5) {
            clearInterval(t);
        }
    }, 1000);

};

_onCallListener = async (session, extension) => {
const logDetails = ' _onCallListener ' + session;
this.checkViceoCall(logDetails)
    console.log('_onCallListenerCheck', extension)
    console.log('checkActiveCall', this.state.isActiveCall)
    this._session1 = session;
    CallService.processOnCallListener(session)
        .then(() => this.showInomingCallModal(session)) // after checking going to show incoming call
        .catch(this.hideInomingCallModal);
};

_onPressAccept = async () => {
RNCallKeep.rejectCall('3e0729b4-e167-11eb-890e-53204137ebb5');
CallService.acceptCall(this._session1).then((stream) => {
console.log('acceptCall', stream)
const { opponentsIDs, initiatorID, currentUserID } = this._session1;
const opponentsIds = [initiatorID, ...opponentsIDs].filter(
(userId) => currentUserID !== userId,
);
this.initRemoteStreams(opponentsIds);
this.setLocalStream(stream);
this.makeSessionNull();
});
};

HI @ccvlad
We have created some some logs from the application. Please look at below logs. The behaviour is very much inconsistent. The call is not connected and on the Receiver side it is showing Caller Is Busy &  Caller side Calling window is keep getting disconnected.  We will follow up


Timing out on failed request is non-compliant

I have found that the changes in c4b2236cf9ac6cdf9e8e08991efc407b225a77b3 make the DNS server (running locally as a client) non-compliant. See also: https://github.com/golang/go/issues/25321

Nevermind. The lookup timeout is not due to that commit, sorry for the noise.

Thank you for your contribution to this project! 🎉
The suppression of reply packet happens only when upstream servers time out.
For any other errors, a packet with either SERVFAIL or NXDOMAIN will be replied.
This suppression is a fix for mDNSResponder (the DNS cache on macOS and iOS).
It caches SERVFAIL responses without retrying it, breaking the network for several minutes.
The caching behavior is totally standard-compliant, I have nothing to complain with it.
My solution is to deliberately produce a timeout so it matches the same behavior as a real timeout.

@m13253 I had already said "nevermind", but thanks for the explanation


fix: remove character set and collate column info by default

CATEGORY
Choose one

[x] Bug Fix
[ ] Enhancement (new features, refinement)
[x] Refactor
[x] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY
It is common for SQL engines to offer the option to define a custom character set and collation scheme for columns. The convention is to define this using the following syntax (example from MySQL): VARCHAR(255) CHARACTER SET LATIN1 COLLATE UTF8MB4_GENERAL_CI. A few examples:

https://dev.mysql.com/doc/refman/8.0/en/charset-column.html
https://docs.oracle.com/cd/E17952_01/mysql-5.1-en/charset-column.html

Currently Superset already removes collation info, but retains the character set info. This often causes an overflow when saving metadata due to the column type only being 32 characters wide. This PR makes removal of collation and character set info the new default behaviour.
TEST PLAN
Local test + CI
ADDITIONAL INFORMATION

[x] Has associated issue: closes #5018
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS
@john-bodley @mistercrunch

@villebro just to clarify you're removing the per column character set in favor of the fallback which is set at the table level?

@john-bodley what you're saying makes total sense. The columns from which these strings are created are constructed here:
https://github.com/apache/incubator-superset/blob/85e9a4fa990927327755f5743317e848fc230f01/superset/models/core.py#L577-L586
I'm thinking we should loop through these columns prior to returning the Table instance, and remove collation and character set details if present. Do yo agree?

@villebro just to clarify what is the issue with having these collate and character set defined at the column level?

Right now the column type column is VARCHAR(32), aka. they overflow and cause an exception when adding a new table. We could potentially make the column wider, say VARCHAR(100), which would solve the problem, but wouldn't really add any value other than the edge case where someone wants to quickly check the collation in Superset (probably not a common use case). So I guess it comes down to removing the additional info to avoid having to make a metadata migration and keeping the type column slightly lighter in the table editor, or just making it wider and providing the users more context of the column types.


Special handling in compareDeep for users, teams and apps

This change fixes #433. The logic in mergeDeep.compareDeep() is a pain to understand and work with. It does a lot of work just to figure out what the additions and modifications are, only to report these details to the logs. Is that all necessary? I wan't going to rewrite this function for this change.
The logic I implemented basically looks at both the source and target to find out of they differ from one another. If so, there is a change and the settings need to be reapplied.
I have tested this and it seems to be working as expected.

@robandpdx The reason for figuring out changes is to avoid getting hit by rate-limits and also to make the app perform better for large installations. So when the settings file is changed for one particular thing, we only want to apply the settings that have changed for a repo.

jest test/unit/lib/mergeDeep.test.js
PASS  test/unit/lib/mergeDeep.test.js
✓ CompareDeep does not mutate source object
✓ CompareDeep produces correct result for arrays of named objects
✓ CompareDeep result has changes when source is empty and target is not (1 ms)
✓ CompareDeep result has no change when source and target match
✓ CompareDeep finds modifications on top-level arrays with different ordering
✓ CompareDeep does not report changes for matching empty targets (1 ms)
✓ CompareDeep does not report changes for matching empty targets
MergeDeep Tests
✓ CompareDeep extensive test (5 ms)
✓ CompareDeep Test when target is from the api
Test Suites: 1 passed, 1 total
Tests:       9 passed, 9 total
Snapshots:   0 total
Time:        0.198 s, estimated 1 s
Ran all test suites matching /test/unit/lib/mergeDeep.test.js/i.

The mergeDeep.compareDeep() function returns additions, modifications, hasChanges. Each plugin only uses hasChanges to determine if changes are needed, then compares the settings from the admin repo with the repo settings to see what needs to be updated. For example...
https://github.com/github/safe-settings/blob/main-enterprise/lib/plugins/branches.js#L54
https://github.com/github/safe-settings/blob/main-enterprise/lib/plugins/repository.js#L91-L93
The additions and modifications objects are only used for log messages in these 2 places...
https://github.com/github/safe-settings/blob/main-enterprise/lib/plugins/branches.js#L64
https://github.com/github/safe-settings/blob/main-enterprise/lib/plugins/diffable.js#L85
It appears that at some point in the past additions and modifications object were used to determine if there were changes...
https://github.com/github/safe-settings/blob/main-enterprise/lib/plugins/repository.js#L73
... but this is now built into mergeDeep.compareDeep() as it returns the hasChanges boolean.
That said, the logic in mergeDeep.compareDeep() could be much simpler, as we really only care if something hasChanges or not.

@robandpdx Then 2 main purposes for compareDeep  1. As you pointed out, to determine if there are indeed changes and only make the API calls if there are changes for a particular configuration, and 2. To determine the list of changes so that they are indicated in the PR workflow so the approver can understand the impact of changes before a change is applied to the main branch.
While there was a concrete need for it, I don't know who is using it. The PR flow needs more attention and the report that we have is not very helpful. The initial focus was to get the data and to work on the data later.
The 3rd purpose for this is something that has come up recently: It might be useful if this info is persisted somewhere so that when some change was applied by accident, it is possible to rollback. It is not always possible to get this info from audit logs and events.

@decyjphr

To determine the list of changes so that they are indicated in the PR workflow so the approver can understand the impact of changes before a change is applied to the main branch.

The changes in the PR itself should serve this purpose. No need to parse the data and report it. One can simply look at the changes in the PR to see the changes.

The 3rd purpose for this is something that has come up recently: It might be useful if this info is persisted somewhere so that when some change was applied by accident, it is possible to rollback. It is not always possible to get this info from audit logs and events.

This information can be found in the git history and PR history of the repo. No need to report this anywhere else. To know what changed and when, one needs to inspect the repo history like any other codebase.

@decyjphr

To determine the list of changes so that they are indicated in the PR workflow so the approver can understand the impact of changes before a change is applied to the main branch.

The changes in the PR itself should serve this purpose. No need to parse the data and report it. One can simply look at the changes in the PR to see the changes.

That is not always so easy to do. Especially if you are not aware exactly how safe-settings works.
Changing the settings of hundred of repos at the same time are something that can cause things to break for our users. I like how the safe-settings app lists what will be done so that you can know what the impact of merging a PR will be before it is applied.
This has saved us a few times with regards to how the structure of our teams works. (I'm talking in a general sense not the exact setting mentioned above)


Hybrid use of RenderStepped and Heartbeat in Systems

I couldn't find an open discussion on Discord nor sites. I didn't know where to ask this but:
How do I use a hybrid of Heartbeat and RenderStepped? Because as stated in the Begin function of the Loop module. You can do a hybrid use of both events. So, how do I do it?

This has been answered here: https://devforum.roblox.com/t/all-about-entity-component-system/1664447/10?u=ukendio


Minor refactorings and improvements

Changes:

Change nested test loop to use any()
Enhance error message in case file is not referenced in bazel
Enhance error output if bazel build step fails to show only errors
Update Plugged part of readme

Thank you for your pull request. I will review it over the weekend or early next week.

Sorry for the delay. I looked into it a little bit more, and it appears that the include_prefix and strip_include_prefix attributes are not that straight forward.
At compile time, bazel creates a _virtual_includes directory with symlinks to the right files. This directory is gone when the sandbox is deleted. The current code works when giving --spawn_strategy=standalone while building because the include paths contain virtual_includes
Your suggested change will work for some cases in strip_include_prefix, but not all. And there seems to be no easy way to handle include_prefix. Let me see if we can somehow retain or recreate the virtual_includes directory. Most likely, the answer to this is no.
Let's merge your changes 1-4 separately from your strip_include_prefix change. If you can send me a new PR for 1-4, it will be appreciated, else I can merge a separate commit with you as the author. For strip_include_prefix, let's make sure that we handle all the cases that we can.

Thanks for your feedback.
Fine for me, i removed the strip_include_prefix part and amended the commit to show what it actually does. Could you point out the cases that didn't work for you? I would like to understand what i missed :)
So maybe i can have another look at it and maybe came back at a later point in time

Thank you so much for understanding.
For 'strip_include_prefix', I think we were missing handling absolute paths.
I am going to file a feature request in bazel to also materialize the _virtual_includes directory in bazel-bin. That solves all problems, but I doubt it will happen any time soon. There are existing issues about this problem in other projects:
https://github.com/bazelbuild/intellij/issues/145
https://github.com/bazelbuild/intellij/issues/510

Opened #29.


typo: Double word "the"

@nschonni : Thanks for your contribution! The author, @aczechowski, has been notified to review your proposed change.

Thanks @nschonni
#sign-off

@ktoliver : Thanks for your contribution! The author, @aczechowski, has been notified to review your proposed change.


Fix dynamic light blockiness and strength

Sets a minimum radius for light culling to avoid blocky artifacts. Still sort of a hack, but it works better than what we had.
Also made attenuation quadratic rather than linear for dynamic lights since that is more correct without broken gamma (previous incorrect lighting was essentially doing distance ^ 4.2 due to gamma correction). In the same pr because without the correct attenuation the blockiness is still there.
Before and after for light culling:

I've chosen the 2.0 * 32.0 value for the minimum radius because it fixes the blockiness issues with the smallest scale lights that we have. Simply always increasing radius results in too many tiles getting the light source.
This also fixes the same issue with https://users.unvanquished.net/~modi/res-psaw_dev%2Bishq1.dpk, however it's more difficult to capture a screenshot of that.
Fixes #791.

This fixes the issues for me too!!


build hat disconnects random from raspberry pi

Hello python-build-hat projects,
we facing a issue with the build hat stopping the interaction with raspberry pi
We a long running our Lego Maschine and random about half hour the code is crashing.
We see a disconnect and reconnect of the build hat on crash, strange because we given any disconnect command.
Main Goal
adjust motor speed and get all motor information about higher than 8-10 hours, if we need to change our code thats alright, if this is a bug we want to support.
Normal Operation, Set new Motor Speed, Get Motor Infos, Speed, Rotation A, Rotation
INFO:root:> port 0 ; coast
INFO:root:> port 0 ; combi 0 1 0 2 0 3 0 ; select 0 ; pid 0 0 0 s1 1 0 0.003 0.01 0 100; set 10
INFO:root:> port 0 ; selonce 0
INFO:root:< P0C0: +10 +251211 -131
Disconnect
INFO:root:< P0: timeout during data phase: disconnecting
INFO:root:< P0: disconnected
Code crashes in Between, because the read out of motor values is not possible on not connected build hat
Reconnect
INFO:root:< set baud rate to 115200
INFO:root:< P0: connected to active ID 4C
INFO:root:< type 4C
INFO:root:< nmodes =5
INFO:root:< nview  =3
INFO:root:< baud   =115200
INFO:root:< hwver  =00000004
INFO:root:< swver  =10000000
INFO:root:< M0 POWER SI = PCT
INFO:root:< format count=1 type=0 chars=4 dp=0
INFO:root:< RAW: 00000000 00000064    PCT: 00000000 00000064    SI: 00000000 00000064
INFO:root:< M1 SPEED SI = PCT
INFO:root:< format count=1 type=0 chars=4 dp=0
INFO:root:< RAW: 00000000 00000064    PCT: 00000000 00000064    SI: 00000000 00000064
INFO:root:< M2 POS SI = DEG
INFO:root:< format count=1 type=2 chars=11 dp=0
INFO:root:< RAW: 00000000 00000168    PCT: 00000000 00000064    SI: 00000000 00000168
INFO:root:< M3 APOS SI = DEG
INFO:root:< format count=1 type=1 chars=3 dp=0
INFO:root:< RAW: 00000000 000000B3    PCT: 00000000 000000C8    SI: 00000000 000000B3
INFO:root:< M4 CALIB SI = CAL
INFO:root:< format count=2 type=1 chars=5 dp=0
INFO:root:< RAW: 00000000 00000E10    PCT: 00000000 00000064    SI: 00000000 00000E10
INFO:root:< M5 STATS SI = MIN
INFO:root:< format count=14 type=1 chars=5 dp=0
INFO:root:< RAW: 00000000 0000FFFF    PCT: 00000000 00000064    SI: 00000000 0000FFFF
INFO:root:< C0: M1+M2+M3
INFO:root:< speed PID: 00000FA0 00000064 00002328 000003CA
INFO:root:< position PID: 00002710 000003E8 0000C350 00000000
INFO:root:< P0: established serial communication with active ID 4C

Do you mind posting your python code, so I can try to replicate this.
Thanks

If you can provide a public repo / gist of a minimal test case, I can have a look
Thanks

Thanks a lot, I've just been having a look.  I'll try to create a minimal test case from this to get to the root of the problem.

This looks like a blip due to data overload inside the firmware talking to the motor, similar to Issue #122 but takes longer to trigger since the firmware is not getting as far behind, initially.

To be clear, referencing that issue was not suggesting adding wait elements as a permanent solution, but that there is a problem internal to the firmware that connects to the motor where it "gets behind" on commands and overflows or resets some state.

Thanks a lot for this report @cgi-gerlando-caldara.  I've just created a minimal test case and can replicate this issue.

This is hopefully going to be looked at soon in the firmware

We've just made a new release with new firmware with mitigation for this issue.  I've ran my test case - https://github.com/RaspberryPiFoundation/python-build-hat/blob/main/test/motors.py#L141
For around 3hours in total with no disconnect.

I'll close this now, feel free to create a new issue if there are other issues


Upgrade go version for security

Fixes security vulnerabilities

Codecov Report

Merging #587 (b5eafdb) into main (84b4dad) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #587   +/-   ##
=======================================
  Coverage   23.96%   23.96%
=======================================
  Files          46       46
  Lines        5303     5303
=======================================
  Hits         1271     1271
  Misses       3794     3794
  Partials      238      238


Update Node.js engine version and strapi system dependencie…

Removed engine's limitation
update strapi system dependencies

Close #25

@NdekoCode Hi friend, any update on this one?

@NdekoCode I am sorry for the delay, I will look into this within the next week. Thank you very much for contributing!

All right @eigengrau-ch , I'll be waiting for you.


why 10000 in your code,what's the meaning?Thanks!!!

in l2 completion,you use codes like below. What is the meaning?And why you use 10000?Could you tell me some more detail?
other = tf.reduce_max((1-self.tlab)self.output - (self.tlab10000),1)

(For anyone still interested)
I think it's just to make sure that this max values doesn't take into account the target label. 'Cause here you want to calculate the maximum logit of the predictions WITHOUT the target (a.k.a if the network is accurate enough, should correspond to the true label of the images).
Personally I'm not sure it makes any difference even if logit[tlab] = 1 and logit[label!=tlab] = 0.
Also note that tlab = [target label], real = [logit of target label] & other = [max logit between all other labels]

this help a lot,thank you


history and version update

Coverage decreased (-0.02%) to 94.273% when pulling b8cdad5cefec4e2f66b0b85a818e4d0e353c3acd on release/1.14.13 into 4f08f389a3c5c2722b60252055b143cfdfefb0f7 on master.


Revert "Statically check for Orbit's major version being always one (…

…#4406)"
This reverts commit d26df65c5df87c32f6b85c050a9e36175091899a.
Unfortunately this turned out to be problematic in a couple of cases:

When having a shallow clone of the Git repo, the version can't be determined
When building Orbit from the ZIP archive provided by GitHub (as the fuzz build does), the version can also not be determined.

In both cases, we want to be nice and not abort the build.

That'll also fix https://github.com/google/orbit/issues/4482


test(ci) Test against Ruby 2.7

Fix #29.

Blocked by https://github.com/danielpclark/rutie/issues/114


Initial check mode

@yorinasub17 Once you have a time, thank you!

@yorinasub17
I haven't added unit tests mainly because I was not sure about additional optional parsing. Once we agree, I will come up with unit tests as well.

@yorinasub17 Once you get some time on this, I will be more than happy to get the feedback, in the meantime have a nice day!

Awesome! :-) Thank you for the help!

Thanks for resolving the conflicts. Kicking off the build now.

Build passed! Going to merge and release. Thanks for your contribution!

https://github.com/gruntwork-io/terragrunt/releases/tag/v0.19.16
Binaries should show up shortly.


Add RPM support to bashbrew-host-arch.sh (via querying RPM's own architecture)

This should be more reliable/correct than uname -m (because we're almost always looking for the userspace architecture, not the kernel architecture).
(With special thanks to @grooverdan, who I imagine is getting tired of seeing GitHub notifications from my excitement about finally having a clean solution to this that feels so obvious in hindsight :joy: :heart:)

A few example runs:
$ docker run --rm --mount "type=bind,src=$PWD,dst=/foo,ro" -w /foo --platform linux/arm64/v8 oraclelinux:8-slim bash -x ./bashbrew-host-arch.sh
+ set -Eeuo pipefail
+ arch=
+ command -v apk
+ command -v dpkg
+ command -v rpm
++ rpm --query '--queryformat=%{ARCH}' rpm
+ tryArch=aarch64
+ arch=aarch64
+ case "$arch" in
+ found arm64v8
+ echo arm64v8
arm64v8
+ exit

$ docker run --rm --mount "type=bind,src=$PWD,dst=/foo,ro" -w /foo --platform linux/arm64/v8 redhat/ubi9-minimal bash -x ./bashbrew-host-arch.sh
+ set -Eeuo pipefail
+ arch=
+ command -v apk
+ command -v dpkg
+ command -v rpm
++ rpm --query '--queryformat=%{ARCH}' rpm
+ tryArch=aarch64
+ arch=aarch64
+ case "$arch" in
+ found arm64v8
+ echo arm64v8
arm64v8
+ exit

$ docker run --rm --mount "type=bind,src=$PWD,dst=/foo,ro" -w /foo --platform linux/ppc64le redhat/ubi9-minimal bash -x ./bashbrew-host-arch.sh
+ set -Eeuo pipefail
+ arch=
+ command -v apk
+ command -v dpkg
+ command -v rpm
++ rpm --query '--queryformat=%{ARCH}' rpm
+ tryArch=ppc64le
+ arch=ppc64le
+ case "$arch" in
+ found ppc64le
+ echo ppc64le
ppc64le
+ exit

(CI failure is the classic Codecov failure we haven't dealt with by excising Codecov in favor of something else yet :upside_down_face:)


Azure Monitor Windows Agent and WSUS Membership

Hello,
I'm having trouble finding out if the azure monitor windows agent can report the wsus group membership like the log analytics agent could in the past. I've been trying to get it working and it doesn't seem to show the information. I checked the documentation and FAQ but didn't see any information about it.
Can you please confirm this feature was moved forward into the azure monitor windows agent?
Thank you!

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

ID: 0526b200-ba5c-5427-35a8-1290d23bcada
Version Independent ID: 4ca174bd-6fbb-7b74-8065-eaabdb10a699
Content: Azure Monitor FAQ - Azure Monitor
Content Source: articles/azure-monitor/faq.yml
Service: azure-monitor
GitHub Login: @bwren
Microsoft Alias: bwren

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

@bwren Can you please provide your inputs here ?


testing: 100% test coverage for zerver/tests/test_digest.py.

moved to new PR: https://github.com/zulip/zulip/pull/22076


UUID data_type format support

Hi!
In the Swagger spec, uuid is mentioned next to email as a custom format. So I have added support for it.
In any case, have you guys thought about allowing the format customization via documentation[:format]?, i.e  documentation: { type: 'string', format: 'uuid' }? so hardcoding formats is not needed anymore?
Currently the method document_type_and_format seems to to ignore the format for non primitive types.
Thanks!
Miguel

thanks @migmartri for contributing, please add a spec
to your idea, think it has two sides, for one it is very fine to have it,
but the downside would be, one can introduce formats which are not supported by OpenAPI/swagger, so how would you handle it?

Thanks @LeFnord
In my opinion we should proceed the following way:

Keep the scope of this patch to just add the uuid as part of the supported formats since it follows the current approach and uuid is explicitly mentioned in the OpenAPI spec.
Discuss via another issue the format override feature.

Please note that I have not added tests for my new type since I could not find any existing spec for the method #primitives or PRIMITIVE_MAPPINGS and I have only extended a constant value. If you still want me to work on extending the current spec/lib/data_type_spec.rb  let me know.
Thanks,
Miguel

answered on referenced issue

@migmartri yeap, sounds good to me, so I will mörge this one, and the more general approach would be a new one

@LeFnord thank you. I appreciate it :)


tabs not working

Hi,
I followed the tutorial, in the step of configuring the Bot, the app display message "We're having trouble loading your tab"
there is no message telling me what is the problem.
is there a way to know the problem?

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

ID: 98cd21c7-e87c-3c5b-7574-998a355f9f08
Version Independent ID: 5e312707-facc-03fc-af59-90267d0c7b8a
Content: Get started with C#/.NET - Teams
Content Source: msteams-platform/get-started/get-started-dotnet-app-studio.md
Product: msteams
GitHub Login: @o365devx
Microsoft Alias: o365devx

@a-shawky -  Could you please share the screenshot of the issue?

Getting the same issue too. Not sure when did it start but it was working a month ago.
The steps for me is.
Going to App Studio from Teams. Click on "Manifest editor" tab. Click on "Create a new app".
Click on "Bots" (under "Capabilities"). Setup any bot in there.
Works for about a second:

Then will just goes into the error page:

Please help.
Thanks

We are looking into this.

@chunga168 do you see any error logs in the console? Or failed network calls?


1.4 Implement Data Chunking

Implement data chunking to divide the normalized data into smaller, more manageable pieces. Data chunking facilitates efficient processing and embedding of large datasets. By breaking down the data into chunks, the system can handle the data more effectively, ensuring better performance and scalability.

[X] Update Custom parser
[X] Perform data analysis on results
[X] Identify parameters for tunning the process

Still pending:

Do some data exploration on the discourseTopicPosts endpoint
Validate the full data pipeline using the discourseTopicPosts endpoint

To consider in #22:

How to tie discourseTopics with discourseTopicPosts at the airbyte manifest level


America Gradient 181

Love the project! Hope I can hop in and help someway...
My idea was to create gradients for all the countries. Started with one to see what your team thought!

That's actually an amazing ideia. Are you developing it atm?


[HELP] Cannot debug esp32c6

Description
Hello All,
I am trying debug esp32c6 using open ocd, I followed tutorial in link : https://nuttx.incubator.apache.org/docs/latest/platforms/risc-v/esp32c6/index.html#debugging-with-openocd but I am facing the follow issue:
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32c6-builtin.cfg
Open On-Chip Debugger v0.12.0-esp32-20240726 (2024-08-13-15:00)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
0
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Hardware thread awareness created
WARNING: ESP flash support is disabled!
force hard breakpoints
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: esp_usb_jtag: could not find or open device!
/usr/local/bin/../share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "/usr/local/bin/../share/openocd/scripts/target/esp_common.cfg", line 9
Error: [esp32c6] Unsupported DTM version: -1
Error: [esp32c6] Could not identify target type.

Do you have any idea what's happen?
Verification

[X] I have verified before submitting the report.

wrong repo, closing and moving


Sort versions DESC

When there are multiple versions, the items are loaded ASC: (0.10.0, 0.11.0, 0.12.0, ...) [white text].
Displaying the element items in a DESC way makes more sense [red text].

Yup, just waiting for a vitepress update when I can implement a proper version switcher component.

Working on this now :+1:

This should be possible with the new version switcher component. Re-open if you have any issues :+1:


Update Machine Learning Tasks in ML.NET

Add deep learning tasks (image classification and object detection)
Review outdate content and update as necessary

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

ID: bd15175c-5b7d-4310-ecf5-32ffc7bc588b
Version Independent ID: 38adc676-934e-0ff9-c868-527f075c96df
Content: Machine learning tasks - ML.NET
Content Source: docs/machine-learning/resources/tasks.md
Product: dotnet-ml
GitHub Login: @luisquintanilla
Microsoft Alias: luquinta

@jwood803 can you please take a look at this one.


@daohaus/data: Create User Scoped Queries for Dao Data

Overview
These are queries that will need to reach across networks/subgraph endpoints to return all data for a user address.
Details
Support hub data

All daos for a user address
Cross network

this was closed with #132 and #135.
#136 will be tagged in a different issue


SR-10619: Order in which DateFormatter settings are set up matters on Linux

Ensure the setting of .dateStyle and .timeStyle isnt dependant on the
current setting of .locale.

@swift-ci test

cc @weissi


Update Blog “2021-02-18-time-to-add-your-own-content”

Automatically generated by Netlify CMS

👷 Deploy Preview for awesome-heisenberg-79d0da processing.
🔨 Explore the source changes: 068ba911d731fa97af6010e89fbd7bf204ca6083
🔍 Inspect the deploy log: https://app.netlify.com/sites/awesome-heisenberg-79d0da/deploys/6123db86d5efab0008df6ff5


Finite State Machine Modeling and Tests [DO NOT MERGE]

@davidkutas @ameza13 opening this up for Assignment 2.
Please DO NOT MERGE!
We are hoping to contribute select code back to open source, so we only want to merge relevant code after opening a ticket on the project's Jira board and talking with commiters. There is a formal process we need to follow and may even need to refork latest.

LGTM


automatically clear cache

Once every while raspotify fills up the cache folder /var/cache/raspotify/ and starts behaving strangely (obviously, since also the system partition is full at that point in my case).
I set up a cron job to delete the cache every month, but this is not an ideal solution.
The best would be to automatically delete old cached files if the folder reaches preconfigured size. Or something in that fashion.
Knowing how much job the ideal solution would be, raspotify should at least provide the automatic cache deletion service out of the box. It took me a while to figure out what is going on.
Thanks! :-)

I added a similar request at librespot https://github.com/librespot-org/librespot/issues/558

I added a similar request at librespot https://github.com/librespot-org/librespot/issues/558

Duplicate of https://github.com/dtcooper/raspotify/issues/144

Duplicate of https://github.com/dtcooper/raspotify/issues/144

Already implemented up stream.


Remember last-used session

I have several DEs installed but I primarily use I3, however it is not at the top of the list. Other greeters have the ability to remember the last-used session and set that each time - is it possible for this to be implemented?

Thanks for the suggestion. I'm afraid that I have difficulty in writing this (lack of documentation)

I cheated slightly with this and removed the session .desktop files in /usr/share/xsessions/ for the other DEs - this obviously works in the shortterm but if it were possible to do this through the greeter that would be great.
I tried changing 'user-session' in lightdm.conf but that had no effect. Additionally, my /home/user/.dmrc file lists i3 as the last-used session so that is also correct.


vcpkg_install_gn is NOT working

Describe the bug
Ports calling vcpkg_install_gn are missing the target requested to be installed
Environment

OS: Windows
Compiler: 19.28.29915

To Reproduce
Steps to reproduce the behavior:

vcpkg --triplet x64-windows install crashpad
installed/x64-windows/lib or installed/x64-windows/debug/lib are missing all .lib files

Expected behavior
*.lib files are installed under installed/<triplet>/lib
Failure logs
No failure is reported, only the files are never installed
Additional context
This was found doing a v8 build 'vcpkg --triplet x64-windows install v8', however the v8 build takes significantly more time
and the issue is reproducible with any port using GN, if the crashpad installation is 100% correct, try with v8.

Yeah...I saw the library was generated in x64-windows-dbg and x64-windows-rel but not install.

cc @vejmartin.

@JackBoosY, thank you for the cc, I'll look into it.


App resource translator

What feature or new tool do you think should be added to DevToys?
This is an idea of extension for DevToys 2.0.
As an independent developer, I might need to translate my app in many languages that I don't speak.
Many tools can help for this, such as Crowdin, thanks to community contributions. However, it would be nice if we, developers, could provide a first, approximative translation that people fluent in that language can just review later. This can help getting an app translated faster.
Why do you think this is needed?
It would help independent developers to get their app translated faster. For instance, some DevToys 1.0 languages are only translated at 10-15% due to lack of contribution. Having a pretty tool automating the translation could help a young project to reach more people.
Solution/Idea
To solve this issue, we could imagine an extension for DevToys 2.0 that would use Chat GPT to translate automatically some RESX, RESW, RC and other resources files automatically.
Chat GPT already proven itself to be quite efficient at translating large text pretty accurately, better than Google Translate, Bing Translator or DeepL.
Comments
No response

This sounds like a very neat idea. I think it could be done by utilizing one of the many trained LLMs up on hugging-face. Or maybe use ollama.
ChatGPT would work well with an agent, but since it costs money, I think many developers would reject it..

Thanks for linking that @veler 😀
I guess I'm a bit out of the loop, you guys are way ahead on all the implementations for it. Frying CPUs does sound like a bad idea lol


Feature branch

Merging into master for GPS 1.1

We had some trouble, but managed to figure it out!


Documentation/API regarding default input pin pull up/down state

Hi,
I'm currently in the process of porting some Arduino based ESP32 firmwares to Rust. On one device, we noticed that one of the input pins always read as high with the Rust firmware, even in situations where it should have been low, and where the Arduino based firmware reads it as low. After some digging, I found the PinDriver::set_pull method. By explicitly calling pin.set_pull(Pull::Floating) after creating the PinDriver object, we're now getting the desired behavior. Apparently, this is the default behaviour on Arduino (Our old Arduino based firmware just calls pinMode(PIN_XY, INPUT); and later digitalRead(PIN_XY), relying on the default as well, which apparently seems to be the equivalent of Pull::Floating).
If putting the pin into pull-up mode by default is a deliberate decision, where is stuff like this documented, and why does it differ between the Rust toolchain and the Arduino one?
As a side note, I was, in contrast, pleasantly surprised by the ADC API in esp-idf-hal, where there's no default attenuation for the ADC, and instead one has to explicitly choose one of the available attenuation settings by using a const generic. Being forced to choose the right option instead of accidentally relying on an arbitrary default seems like the better API design choice and would have saved us several hours of debugging.

Here, the whole saga so far, for your education and entertainment :)
Seriously speaking, we were just discussing we plan to fix this to follow the "Arduino" model shortly after the new release of the esp-idf-* crates, which is happening as we speak.

Also related I think

BTW you might want to join the matrix chat: https://matrix.to/#/#esp-rs:matrix.org

Thanks for the pointers! Between the three different issue threads and the matrix channels, what is the preferred communication channel for this?

Thanks for the pointers! Between the three different issue threads and the matrix channels, what is the preferred communication channel for this?

Probably the issue here: https://github.com/esp-rs/esp-idf-hal/issues/343

Yes either this or the PR link.

We changed the default behavior on transition and dropping, and its included in the latest point-release. I hope that solves the issue. In hardware terms the default now means every gpio register is set to its 0 value on drop and transition and in the transition case gets set to whatever the new state is. Here is the code
Closing it, feel free to add stuff and reopen it if you are not satisfied.


time left countdown not dynamic

Current set at "2 days"

I added a fix for this to my features overview branch.


Add crop weighting api

The API team has deployed the new crop weighting API, and I think it would be useful to include it in the Gro API client. This standardizes how the endpoint is called and avoids having to directly use the requests library.
Notes:

I think this change does not affect permissioning, since calling the area weighting endpoint will still be admin-only (and thus internal-only) until we decide otherwise
The broadest change below is changing requests.get to the more general requests.request in the get_data function. Did this so that we can send POST requests with the get_data logic, not just GET requests
I have tried to follow the existing structure as much as possible for testing--am the first to admit that the tests as written below don't test all that much, so if anyone has ideas for more thorough tests please let me know

I think it's unrelated to your changes, but looks like we have some broken links in the docs of this repo that are causing the circleci build to fail: https://app.circleci.com/pipelines/github/gro-intelligence/api-client/272/workflows/0aedc091-22ab-41ca-aada-abfa45a8a6ed/jobs/293


Support share_plus ^8.0.0

Is your feature request related to a problem? Please describe.
The share_plus version ^8.0.0 has been released

Hello @KoheiKanagu !
This issue was resolved in new 4.1.3 version

Thanks!


Migrate components from terra-core repo

Issue Description
To help reduce test times in terra-core repo, we'll be moving some of the packages into the terra-framework repo.
Issue Type

[ ] New Feature
[ ] Enhancement
[ ] Bug
[x] Other

Expected Behavior

The following packages are moved from terra-core to terra-framework:

[x]  terra-app-delegate
[ ]  terra-abstact-modal
[ ]  terra-date-picker
[ ]  terra-date-time-picker
[ ] terra-collapsbile-menu
[x]  terra-embedded-content-consumer
[x]  terra-hookshot
[ ]  terra-menu
[x]  terra-modal-manager
[x]  terra-popup
[x]  terra-slide-group
[x]  terra-slide-panel
[x]  terra-theme-provider
[x]  terra-time-input

WDIO tests are written for these packages
The packages are updated to the new directory structure for terra-dev-site.

Should terra-collapsible-menu-view also be a part of this, as it relies on terra-menu?

I think terra-tabs needs to be moved as well

migrating tabs

Thoughts on migrating terra-legacy-theme to terra-framework? It contains themes for components in terra-framework, but does not have dependencies on them.

I'm thinking about moving terra-legacy-theme to an internal repo similar to our other internal themes.


Revert "Merge pull request #15271 Decreasing peak memory usage for be…

…am.TupleCombineFn."
This reverts commit 4559c75863d9d6c9dd9e48c2b4f12f2139410524, reversing
changes made to<PHONE_NUMBER>399f31fc505bc3451f2b56f245d4e4.
Cherry-pick of #15406.
R: @udim

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks! Was there a JIRA tracking this issue?

Nope, only an internal bug.


charts: fix noroot issue

Description
We can not set specified user when runAsNonRoot is true.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #3287
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

/ok-to-test


Export error: "TypeError: init() missing 1 required positional argument: 'sortable_by'"

In Django 2.1 django.contrib.admin.views.main ChangeList class takes in init sortable_by argument, which is not passed in admin.py at 372 line (it's compatible with previous versions of Django, where there is no sortable_by param in Django's ChangeList).
Can you prepare version working with Django 2.1?

yes i am facing this issue as well, any solution to this?

It seems it has been fixed by 54232db4a511cc5f0b085c6bb192c3619f27e452, but this version is still not released to PyPi. @bmihelac can you please push this change to PyPi?

@bmihelac can we have it released, please. It is urgently required for a website working for relief work in flood-hit Kerala, India.

Hi @msrshahrukh100, sorry to hear that. Until there is new release, you can install development version with:
pip install -e git+https://github.com/django-import-export/django-import-export.git#egg=django-import-export

docs:
https://django-import-export.readthedocs.io/en/latest/installation.html#installation-and-configuration

@bmihelac thanks a lot

Any updates this freaking sucks ????!?!?!

This issue seems to be fixed in 1.1.0


"cannot reshape array" error message with crosstabs containing 0-value cells (samplics 0.3.12 and 0.3.13)

Hi, and thanks for this very useful library!
I encountered a problem when trying to perform a crosstab analysis with it, and it took me some time to understand that the problem comes from contingency tables containing zeros.
It's simpler to explain with an example, so case in point, consider the following made-up weighted dataset, with 0 individual at the intersection "Man/Other nationality":
import pandas
from samplics.categorical import Tabulation, CrossTabulation
df= pandas.DataFrame(data=
                        [["Woman", "European"]]*100 + \
                        [["Woman", "American"]]* 35 + \
                        [["Woman", "Other"]]*93 + \
                        [["Man", "European"]]*150 + \
                        [["Man", "American"]]*77,
                     columns=["Gender", "Nationality"])
df["weights"] = [1, 0.3, 8, 3, 0.7]  * 91
#Let's preview the data
print(df.head(3).append(df.tail(3)))

Gender
Nationality
weights

0
Woman
European
1.0

1
Woman
European
0.3

2
Woman
European
8.0

...
...
...
...

452
Man
American
8.0

453
Man
American
3.0

454
Man
American
0.7

If you crosstab the data, you'll notice there are 0 man of "Other" nationality :
pandas.crosstab(df["Nationality"],
                df["Gender"])

Gender
Man
Woman

Nationality

American
77
35

European
150
100

Other
0
93

If I try to use samplics with it:
crosstab_samplics = CrossTabulation("count")
crosstab_samplics.tabulate(
    vars=df[["Gender", "Nationality"]],
    samp_weight=df["weights"],
    remove_nan=True,
)

it throws the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\me\env\lib\site-packages\samplics\categorical\tabulation.py", line 430, in tabulate
    - cell_est.reshape(vars_levels.shape[0], 1)
ValueError: cannot reshape array of size 5 into shape (6,1)

The problem disappear if I slightly change the dataset so the crosstab does not contain any zero anymore. I observed this problem with various datasets, so I'm almost certain the problem comes from these zero cells.
Is it supposed to throw an error like that?
I'm not certain if 1) the error simply comes from the fact that it's statistically incorrect to perform analysis with weights on crosstables containing zeros, or 2) if it's a case that the library doesn't take into account for the moment. If it's scenario 1), it might be useful to throw a more specific error message.
Anyway, here is my configuration, if it can help:

Windows 10, Python 3.10.2 (tags/v3.10.2:a58ebcc), [MSC v.1929 64 bit (AMD64)]
the code is executed in a virtual environment
the following possibly relevant packages are installed:

numpy 1.22.3,
pandas 1.4.1,
statsmodels 0.13.2,
matplotlib 3.5.1,
scipy 1.8.0

NB: for some reason, pip install samplics --upgrade won't upgrade samplics from 0.3.12 to 0.3.13, so I had to install the newest version directly from the repo with pip install git+https://github.com/samplics-org/samplics.git . But anyway, the "cannot reshape array" message I encountered occurs in both versions, 0.3.12 and 0.3.13.
Thanks again for this library!

Hi,
First I also want to thank for a useful library! I have also encountered the problem above and concluded that it is due to the fact that some cell in the crosstabulation is zero.
I would find it very useful if it would be possible to implement some functionality such that the other estimates could still be returned. For example just returning nan for the combination of values that does not have any observations and still estimate the point estimate and variance for the other combinations.
Do you have any thoughts of implementing such functionality?
Thank you in advance!

Hi,
Thank you for sharing these bugs. Indeed I am working on a solution to handle this issue. It should be included in the next minor release coming out soon.
With regards

Hi,
I have updated the package; please try and let me know if it fixes your issues.
Unfortunately, the document is not up to date, but basically, I refactored Tabulation() and CrossTabulation() to be more robust to empty cells.
Secondly, I added functionalities to estimate() from TaylorEstimator() to handle singletons. The options are guided by an ENUM class called SinglePSUEst; see parameter single_psu. The Enum takes these four options: error, skip, certainty, and combine.
class SinglePSUEst(Enum):
    """Estimation options for strata with singleton PSU"""

    error = "Raise Error when one PSU in a stratum"
    skip = "Set variance to zero and skip stratum with one PSU"
    certainty = "Use SSUs or lowest units to estimate the variance"
    combine = "Combine the strata with the singleton psu to another stratum"

Hence,

single_psu=SinglePSUEst.error: Let it crash. This good for the first run to identify your singletons
single_psu=SinglePSUEst.skip: skip the singletons and set the variance to 0.
single_psu=SinglePSUEst.certainty: treat the singletons as certainties and use SSU (if provided) or the individual records to estimate the variance
single_psu=SinglePSUEst.combine: combine the singletons strata to other strata. You will have to specify strata_comb. strata_comb is a dictionary to map the old strata to the new strata i.e. {old_stratum1: new_stratum1, old_stratum2: new_straum2, ...}

I plan to add more imputation-like options down the road, but I hope these options will take care of most situations.
pip install --upgrade samplics does work for me. Let me know if you still have this issue.
BTW, I am testing the use of ENUM as opposed to strings. This is more robust from a programming point of view but strings may be more convenient for statisticians and data analysts. If you have an opinion, do not hesitate to share.
With regards

@MamadouSDiallo Thank you so much, that's great news! I'll test it in a couple of weeks; I'm a bit overworked for the moment, but I just created a reminder in my calendar.

Thank you @MamadouSDiallo, I really appreciate being able to communicate with you here. I was on vacation last week, hence my answer is a bit late.
I have now tried the updated version of the package if there are responses in all cells of the crosstabulation it works as before. However, I still get an error message, but a different one, if there is any cell in the crosstabulation of the variables of interest (considering only responding units) that is zero. Here comes the error message:
`
File "C:\Users.........\2475912047.py", line 2, in
crosstab_temp.tabulate(
File "C:\ProgramData\Anaconda3\envs.........\lib\site-packages\samplics\categorical\tabulation.py", line 503, in tabulate
delta_est = np.linalg.inv(np.transpose(x2_tilde) @ cov_prop_srs @ x2_tilde) @ (
File "<array_function internals>", line 180, in inv
File "C:\ProgramData\Anaconda3\envs............\lib\site-packages\numpy\linalg\linalg.py", line 545, in inv
ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
File "C:\ProgramData\Anaconda3\envs............\lib\site-packages\numpy\linalg\linalg.py", line 88, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
LinAlgError: Singular matrix
`
Do you have any idea how this can be fixed? Let me know if you want me to explain the error further.
Best regards

Hi
Will it be possible to create a small dummy dataset to reproduce the error?
Best regards

Hi,
Here comes two simple examples to reproduce two different errors that I receive when running tabulate() on my original data. In both cases there is one cell containing a zero-value. In the first example the error seem to arise from the fact that there is no combination in the data where an observation from group "two" answered "1" to question 1. In the second example the error seem to arise from estimating the delta_est matrix.
import pandas as pd
from samplics.categorical import CrossTabulation

# Example 1, returns error "KeyError: '1__by__two'"
dummy = {'q1': [1, 2, 2, 1, 2, 1, 2, 1, 2],
         'group': ['one', 'one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'],
         'nr_weight': [200, 123, 0, 0, 234, 123, 234, 0, 0],
         'respondent': ['respondent', 'respondent',
                        'non-respondent', 'non-respondent',
                        'respondent', 'respondent',
                        'respondent', 'non-respondent',
                        'non-respondent']}

df_dummy = pd.DataFrame.from_dict(dummy)

pd.crosstab(df_dummy['q1'], df_dummy['group'])

crosstab_temp = CrossTabulation("proportion")
crosstab_temp.tabulate(
vars=df_dummy[['q1', 'group']],
samp_weight=df_dummy['nr_weight'],
remove_nan=True,
single_psu = 'skip')
print(crosstab_temp)

# Example 2, returns error "LinAlgError: Singular matrix"
dummy2 = {'q1': [1, 2, 2, 1, 2, 1, 2, 1, 2],
         'group': ['one', 'one', 'two', 'one', 'two', 'one', 'two', 'one', 'one'],
         'nr_weight': [200, 123, 0, 0, 234, 123, 234, 0, 123],
         'respondent': ['respondent', 'respondent',
                        'non-respondent', 'non-respondent',
                        'respondent', 'respondent',
                        'respondent', 'non-respondent',
                        'respondent']}

df_dummy2 = pd.DataFrame.from_dict(dummy2)

pd.crosstab(df_dummy2['q1'], df_dummy2['group'])

crosstab_temp = CrossTabulation("proportion")
crosstab_temp.tabulate(
vars=df_dummy2[['q1', 'group']],
samp_weight=df_dummy2['nr_weight'],
remove_nan=True,
single_psu = 'skip')
print(crosstab_temp)

Can you see any explanations to these errors and can they be fixed somehow?
Thank you in advance!

Hi
Let me know if 0.3.42 resolves this issue.
Best

Hi,
It resolves the first issue (with relevant warnings). However, it does not solve the second error. I would be very happy if you could solve it or find some explanation in the data above why it happens.
Regards

Hi
I made corrections back in November. Have you tested it since? Please do and let me know.
Best

Hi,
Thanks for your reply. The "LinAlgError: Singular matrix" in the second example remains. I've also encountered it using other data as well.
I would be very grateful if you could take a look at this "LinAlgError: Singular matrix" error and possible solutions to avoid it.
Best

I tested some of the data above and I am not getting this error, see code below.
What version of samplics are you using? Are you using the current one?
Can you paste the code here?
In [2]: # Example 2, returns error "LinAlgError: Singular matrix"
   ...: dummy2 = {'q1': [1, 2, 2, 1, 2, 1, 2, 1, 2],
   ...:          'group': ['one', 'one', 'two', 'one', 'two', 'one', 'two', 'one', 'one'],
   ...:          'nr_weight': [200, 123, 0, 0, 234, 123, 234, 0, 123],
   ...:          'respondent': ['respondent', 'respondent',
   ...:                         'non-respondent', 'non-respondent',
   ...:                         'respondent', 'respondent',
   ...:                         'respondent', 'non-respondent',
   ...:                         'respondent']}
   ...:
   ...: df_dummy2 = pd.DataFrame.from_dict(dummy2)
   ...:
   ...: pd.crosstab(df_dummy2['q1'], df_dummy2['group'])
   ...:
   ...: crosstab_temp = CrossTabulation("proportion")
   ...: crosstab_temp.tabulate(
   ...: vars=df_dummy2[['q1', 'group']],
   ...: samp_weight=df_dummy2['nr_weight'],
   ...: remove_nan=True,
   ...: single_psu = 'skip')
   ...: print(crosstab_temp)

Cross-tabulation of q1 and group
 Number of strata: 1
 Number of PSUs: 9
 Number of observations: 9
 Degrees of freedom: 8.00

 q1 group  proportion  stderror  lower_ci  upper_ci
 1   one    0.311475  0.203781  0.048134  0.801861
 1   two    0.000000  0.000000  0.000000  0.000000
 2   one    0.237223  0.167661  0.035412  0.724862
 2   two    0.451302  0.229535  0.088433  0.874582

Pearson (with Rao-Scott adjustment):
	Unadjusted - chi2(1): 3.3487 with p-value of 0.0673
	Adjusted - F(1.00, 8.00): 2.7502  with p-value of 0.1358

  Likelihood ratio (with Rao-Scott adjustment):
	Unadjusted - chi2(1): 4.4098 with p-value of 0.0357
	Adjusted - F(1.00, 8.00): 3.6216  with p-value of 0.0935

Thanks

Hi,
I updated to 0.4.1 today and now original example 2 works just as you've shown above. However, if I modify the example a bit, such that there is no respondent with q1==2 (I have such situations in my actual data, where no respondents picked a certain answer), the error remains. See the code for updated example 2 below.
# Example 2.2, returns error "LinAlgError: Singular matrix"
dummy2 = {'q1': [1, 2, 2, 1, 2, 1, 2, 1, 2],
         'group': ['one', 'one', 'two', 'one', 'two', 'one', 'two', 'one', 'one'],
         'nr_weight': [200, 0, 0, 234, 0, 234, 0, 123, 0],
         'respondent': ['respondent', 'non-respondent',
                        'non-respondent', 'respondent',
                        'non-respondent', 'respondent',
                        'non-respondent', 'respondent',
                        'non-respondent']}

df_dummy2 = pd.DataFrame.from_dict(dummy2)

pd.crosstab(df_dummy2['q1'], df_dummy2['group'])

crosstab_temp = CrossTabulation("proportion")
crosstab_temp.tabulate(
vars=df_dummy2[['q1', 'group']],
samp_weight=df_dummy2['nr_weight'],
remove_nan=True,
single_psu = 'skip')
print(crosstab_temp)

Best

Thanks for noticing this edge case. In this case, there are no stats to compute and the frequency is 100% (only one category). But I will update the code to return a nicer message to the user and not fail.

Here is the ouput using 0.4.3
Cross-tabulation of q1 and group
 Number of strata: 1
 Number of PSUs: 4
 Number of observations: 4
 Degrees of freedom: 3.00

 q1 group  proportion  stderror  lower_ci  upper_ci
 1   one         1.0       0.0       1.0       1.0

Pearson (with Rao-Scott adjustment):
	Unadjusted - chi2(0): 0.0000 with p-value of nan
	Adjusted - F(0.00, 0.00): 0.0000  with p-value of nan

  Likelihood ratio (with Rao-Scott adjustment):
	Unadjusted - chi2(0): 0.0000 with p-value of nan
	Adjusted - F(0.00, 0.00): 0.0000  with p-value of nan

Did you update to the latest version: 0.4.3 ?

Yes I did! So example 2.2 gave the output you showed above, but for my data the error remains.

I do not see why it failed.
Does it still fail when you remove the weight or use 1?

Unfortunately it still fails when I remove the weight or use 1.

Can you upgrade to 0.4.4, try it with your data and let me know?

Thank you, it seems to have solved the issue! :)
For some combinations of background variables and questions I now get other errors, regarding the dimensions.
For example this combination

gives the following error.
Traceback (most recent call last):

  File "C:\Users\widag\AppData\Local\Temp\ipykernel_67008\2246695084.py", line 2, in <module>
    crosstab_temp.tabulate(

  File "C:\ProgramData\Anaconda3\envs\Migrering\lib\site-packages\samplics\categorical\tabulation.py", line 573, in tabulate
    x2_tilde = x2 - x1 @ np.linalg.inv(x1_t @ cov_prop_srs @ x1) @ (x1_t @ cov_prop_srs @ x2)

ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 19 is different from 20)

And this combination gives the error below

Traceback (most recent call last):

  File "C:\Users\widag\AppData\Local\Temp\ipykernel_67008\106989882.py", line 2, in <module>
    crosstab_temp.tabulate(

  File "C:\ProgramData\Anaconda3\envs\Migrering\lib\site-packages\samplics\categorical\tabulation.py", line 568, in tabulate
    cov_prop_srs = cov_prop_srs[nonnull_rows][:, nonnull_rows]

IndexError: boolean index did not match indexed array along dimension 0; dimension is 46 but corresponding boolean dimension is 50

Any thoughts on these?
Thank you again for fixing the LinAlg error!

How about now, using 0.4.5?

Unfortunately 0.4.5 yields the same errors as above.

Ok. I will look into it more to see if I can reproduce the error.
Thanks for sharing these bugs.

Hi,
Do you have any estimated time plan for a fix of these issues?
Best

Hi @agnesmw I was not able to reproduce the error.
Can you share some data that can show the error?


Update Pages “home”

Automatically generated by Netlify CMS

👷 Deploy Preview for chic-shortbread-66a66b processing.

Name
Link

🔨 Latest commit
24c75ea3eb9899cee2e8a176b66e38c3a831c076

🔍 Latest deploy log
https://app.netlify.com/sites/chic-shortbread-66a66b/deploys/654efe9c5c305900085c22bf