Add DOCUMENTATION variable copied from ansible ssh connector.

Since I was experiencing a failure on ansible 2.5, I started investigating and followed the suggestion in Issue #19.
This patch copies the ansible ssh connection DOCUMENTATION variable with minimal changes, and allows the sshjail connector to work.
If needed I can check the content and make further adjustments.

BTW, maybe there's a better way by extracting this variable at runtime, so it's always in sync with upstream, but I'm not a python expert, so I need to do some research if this is possible and how to do it.

Hey, sorry I haven't been very attentive on this project lately, but thank you for the patch!
I'd like to get this merged in, but especially since I'm not working on this at the moment, I'd like to make it a little more future-proof first. What if we used py-yaml to pull in the SSH connection DOCUMENTATION and just update our few things:
...
from ansible.plugins.connection.ssh import Connection as SSHConnection
import yaml

_docs = yaml.loads(SSHConnection.DOCUMENTATION)
_docs.update({
    'connection': 'sshjail',
    'short_description': 'connect via ssh client binary to jail',
    'description': ['This connection plugin allows ansible to communicate to the target machines via normal ssh command line.'],
    'author': 'Austin Hyde (@austinhyde)',
    'version_added': 'historical'
})

DOCUMENTATION = yaml.dumps(_docs)
...

I didn't test that (and unfortunately, I don't have a good setup to test this project any more without spending a few hours), but give it a try and let me know if that works.

I have implemented your suggestion. I did need to change a few things, now the code is executed, but fails again.
This is a traceback
The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 138, in run
    res = self._execute()
  File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 558, in _execute
    result = self._handler.run(task_vars=variables)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/shell.py", line 27, in run
    result = command_action.run(task_vars=task_vars)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/command.py", line 24, in run
    results = merge_hash(results, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 705, in _execute_module
    self._make_tmp_path()
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 249, in _make_tmp_path
    tmpdir = self._remote_expand_user(remote_tmp, sudoable=False)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 575, in _remote_expand_user
    data = self._low_level_execute_command(cmd, sudoable=False)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 902, in _low_level_execute_command
    rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/connection/sshjail.py", line 134, in exec_command
    cmd = '%s %s %s %s' % (self.get_jail_connector(), self.get_jail_id(), cmd, '&& sleep 0')
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/connection/sshjail.py", line 93, in get_jail_connector
    code, _, _ = self._jailhost_command("which -s jailme")
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/connection/sshjail.py", line 119, in _jailhost_command
    return super(Connection, self).exec_command(cmd, in_data=None, sudoable=True)
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py", line 976, in exec_command
    use_tty = self.get_option('use_tty')
  File "/usr/local/lib/python2.7/site-packages/ansible/plugins/__init__.py", line 58, in get_option
    option_value = C.config.get_config_value(option, plugin_type=get_plugin_class(self), plugin_name=self._load_name, variables=hostvars)
  File "/usr/local/lib/python2.7/site-packages/ansible/config/manager.py", line 284, in get_config_value
    value, _drop = self.get_config_value_and_origin(config, cfile=cfile, plugin_type=plugin_type, plugin_name=plugin_name, keys=keys, variables=variables)
  File "/usr/local/lib/python2.7/site-packages/ansible/config/manager.py", line 304, in get_config_value_and_origin
    defs = self._plugins[plugin_type][plugin_name]
KeyError: 'connection'

After some study my impression is that ansible does not like the syntax generated by yaml.dump().
I'm still investigating.

Looks like this can't work. Looking here:
https://github.com/ansible/ansible/blob/cc343a4376a27927e0c7d31862dbb3108e101978/lib/ansible/parsing/plugin_docs.py#L21
it's actually opening the source file and parsing the assignment from the source code. This complicates matters somewhat.
There also a blacklist for modules which are OK not having a docstring here:
https://github.com/ansible/ansible/blob/bbd6b8bb42cc8fa48157ce5db0efb0a836c94917/lib/ansible/utils/plugin_docs.py#L38
but I don't think that is actually useful in this case.

Well that's .... interesting. If you change things back to your first commit, that'll be fine.
Sorry to make you jump through that hoop, I was not expecting that behavior to be the case :|

Not your fault. I was not expecting that behavior either!
I'm incorporating the string updates in your suggested _docs.update() and updating the pull request. I'll also rebase to keep history clean.


compile task is not finding ByteBuffer

TestERR-app: node_modules/fabric-client/types/index.d.ts(592,12): error TS2304: Cannot find name 'ByteBuffer'.
TestERR-app: node_modules/fabric-client/types/index.d.ts(593,14): error TS2304: Cannot find name 'ByteBuffer'.
TestERR-app: node_modules/fabric-client/types/index.d.ts(597,19): error TS2304: Cannot find name 'ByteBuffer'.
TestERR-app: node_modules/fabric-client/types/index.d.ts(598,21): error TS2304: Cannot find name 'ByteBuffer'.
TestERR-app: node_modules/fabric-client/types/index.d.ts(674,18): error TS2304: Cannot find name 'Long'.

This is usually fixed by adding Byte Buffer typings which is already there. Check it out.
Compile task is needed because start just runs what's in /dist, it doesn't build the project.

you can compile using the con-rest-api compile
I don't get this error you are receiving, I think we need more in deep on your specific case

I found that by adding @types/bytebuffer to nohoist it works well.
{
  "packages": [
    "packages/*"
  ],
  "version": "0.1.0",
  "command": {
    "bootstrap": {
      "hoist": true,
      "nohoist":[
        "@types/bytebuffer"
      ]
    }
  }
}

I also added @types/node
npx lerna add @types/node --scope testchaincode-app

thank you walter I tested the fix and it worked.
I added the @types/node to the dependency script, I can close it


[BUG] "mine" VMs for Admin, shows also other account's VMs

Fixed in https://github.com/apache/cloudstack-primate/pull/614

LGTM


Additional string translations

Need to translate these strings

Your profile has been updated
Thank you, You have been registered as a new user.
Success, Bookmark Created!
Success, Bookmark Updated!
Success, Bookmark Deleted!
Invalid Form

@sanjuroj Bookmarks were killed off a long time ago -- maybe it's time to remove the code instead of translating it?
And since we are renaming Profile --> Settings in Mangosteen, can we change the message "Your profile has been updated" to "Your settings have been updated"

Ah, forgot we killed Bookmarks.  All the strings have been sent to the translators now (I generated another .po file after filing this ticket), so we'll just need to change profile to settings when we get the file back.

Additional translations will be handled as a larger batch of post-Mangosteen translations.


Validate Signature for the SP by default

It seems to me as though the SP's fingerprint is not validated by default although the documentation implies that the fingerprint configuration should be required. I discovered this only because I realized I forgot to change a fingerprint for one of my use cases but yet the connection still worked.
Based on the following line of code, it seems as though the fingerprint won't be checked against the SP unless the SP is configured with an attribute of validate_signature that is set to something truthy. Am I right here or am I missing something?
Line of code in question: https://github.com/saml-idp/saml_idp/blob/b34adcb4edbc25eecdf4cffe71fb6b852889824f/lib/saml_idp/service_provider.rb#L25
Is this an intended design or something that was missed?

Validation of metadata signature is optional, mostly SP metadata downloaded by people who, trusting that SP metadata and uploading manually to the IdP.
Also, there could be scenarios that the metadata doesn't have any certificate in this case if we check it by default it would break these IdP applications.
About your scenario, it might be good if you generate a fingerprint of the public key, then you don't need to change it by manually.
This function might help you. lib/saml_idp/fingerprint.rb

@cody2094  we haven't heard anything from you. If you have more questions ,please feel free to open this issue.


Check for Ceilometer and Autoscaling dependencies

The functionality is the same as in the reverted https://github.com/openstack-k8s-operators/openstack-operator/pull/837 . But this time it takes into account recent switch of "enabled" fields in telemetry to pointers.

/retest
could not run steps: step openstack-operator-build-deploy-kuttl failed: failed to wait for the created cluster claim to become ready: timed out waiting for the condition
INFO[2024-06-21T15:23:16Z] Reporting job state 'failed' with reason 'executing_graph:step_failed:utilizing_cluster_claim:acquiring_cluster_claim'


API store login failed intermittently - 401 Error: Unauthorized

Description:
When the cacheHttpClient is enabled in the axis2_client.xml as follows in an all-in-one environment, the second Authentication call is failing with a 401 Unauthorized.
<parameter name="cacheHttpClient">true</parameter>
Steps to reproduce:

Get a WSO2 API Manager 2.6 pack (WUM updated)
Add the following configurations in axis2_client.xml

<transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
    ...
    <parameter name="cacheHttpClient">true</parameter>
    <parameter name="defaultMaxConnectionsPerHost">500</parameter>
    <parameter name="maxTotalConnections">15000</parameter>
</transportSender>
<transportSender name="https" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
    ...
    <parameter name="cacheHttpClient">true</parameter>
    <parameter name="defaultMaxConnectionsPerHost">500</parameter>
    <parameter name="maxTotalConnections">15000</parameter>
</transportSender>

Start the server and log-in to the Publisher and then sign-in to the Store (or vice-versa)
The second Authentication will result in 401 Unauthorized

Affected Product Version:
AM-2.6.0
Environment details (with versions):

OS:
Client:
Env (Docker/K8s):

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

Not reproducible in 3.x series. Fix for 260 is pushed via wum


bug fixes on the mysql-metawiki.sh and bat file

Hi,
When I try to setup the JDBC Importer I am facing some problem when in Windows. the example of bat file is updated to make it work indeed.
Meanwhile there is an correction in the mysql-metawiki.sh
Thanks,
Dong

Cool, thanks!


Add debugging AppSignal page

Closes #39

Updated. Thanks @jeffkreeftmeijer !
Ready for review
Let me know if anyone knows of more debugging steps they use.


Memory Leak on IE 11

Hello,
I am supporting a large angular.js application on IE 11. I am facing a big problem of memory leaks.
The app starts consuming memory as I navigates through screens when it reaches over 1100 mb it starts becoming slow and crashes or freezes IE between 1200-1700 mb. I had try IE v11.0.23 and v11.0.26. I had try IE 11.0.24 as well which was spiking memory to 1000 mb in couple view navigation so we applied patch for v11.0.26
However i tried IE edge too on windows 10 and it works fine there. App becomes slow after sometime but it recovers itself with some seconds of delay. Our users are suffering a lot due to freezes. Application is very huge and complex developed by vendor initially. Is there any fix available from framework level as application is such huge it is very hard to find the problems. All modules have been developed by different team of developers so each were having different coding styles. when i got the memory snapshot in IE i saw detached nodes a lot which are showing memory leaks of documentFragement. Is there a way to clear all detached nodes which could help or any way to fix at one common place which helps in releasing memory which were consumed previously for IE 11
Please help.

We used to recommend Firefox to our users. But our angular application, under "memory" test from selenium makes firefox going from 300MB initially up to more than 1 GB memory...
Running the same test on Chrome memory usage goes from 50MB to 150MB, not more...
Since this experince we recommend Chrome...

Is there any way to fix this ?

Before trying to go any deeper inside the framework, have you tried to find bad practices like DOM Manipulation or not properly cleaning up after the page is being destroyed?
These things are easy to find, since a file search inside the app might find a few and give you a hint whether to continue this way or going deeper? Also, how are you loading your files/dependencies? I've also found that lazy loading usually helps a lot in these situations.

Closing due to lack of feedback.

This memory leak is NOT caused by Angular. It is IE memory leak issue.
Issue replication
Issue occures if you are fill any textarea element inside complicated page (DOM with many elements) and next you start DOM manipulation (switch angular route for example). If you do not touch to textarea fiels, all works fine.
Sencha has same issue. See https://fiddle.sencha.com/#fiddle/11kc for example. Issue occurs if you fill textarea and next press Add grid.
IE issue details

Discussion about this issue on Microsoft Connect (see https://connect.microsoft.com/IE/Feedback/Details/1974240)
Issue occurs after applying "MS15-106: Cumulative security update for Internet Explorer: October 13, 2015". Is is know issue in this security update. (see https://support.microsoft.com/en-us/kb/3093983)
Standalone IE HOTFIX KB3119070 is available (see https://support.microsoft.com/en-us/kb/3119070).
Hotfix is part of "MS15-124: Security update for Internet Explorer: December 8, 2015" (see https://support.microsoft.com/en-us/kb/3104002)

@ma-zal Thanks for the update. Always good to get confirmation.

@ma-zal +1

What about detached dom ? I can see 1000s of detached DOM in chrome snapshot. I am using kendo angular. I tried replacuing kendo angular datagrids with regular kendo jquery grid. And destroyed it properly in angular destroy event. After doing this i am able to avoid detached dom for datagrid. But there are so many such things to consider in such a big application.

KB3160005 seems to have fixed the memory leak we started experiencing with KB3093983.
We do use iframes, so it may have been this part of the update that did the trick...
3168674 Storage event isn't triggered for localStorage updates in an iFrame in Internet Explorer 11


Browser support: browserify vs other bundlers

The readme has Browser Support section. That section gives instructions for working with browserify. It does not make any mention of other bundlers.
I have tried adding debug to a project using webpack. It appeared to work just fine.
Is there some reason why the readme only gives instructions for browserify? That is, are there any known issues with other bundlers that do not happen with browserify?

Yes, the readme is horribly outdated and bloated 🙃 It's been on my list for years to rewrite it, and it'll happen for sure for the next major release.

@Qix- thanks for the quick response.


2^12 stars

$ node -p 'Array(Math.pow(2,12)+1).join("\u2605\u0020")'

Following the precedent set by #585 and #1086 it's time to give away another Ramda mug!

~/github.com/ramda/ramda (master)
$ git log --since=2015-05-14 --format=%an | sort | uniq
Al McElrath
Andrew Webb
Anton Rudeshko
Arliang
Asaf
Asaf Romano
Ben Perez
Benjamin Perez
Benjy Cui
Bez Hermoso
Bran van der Meer
Casey Watson
Chet Corcos
Chris911
Constantin Dumitrescu
David Annopolsky
David Chambers
David Zukowski
Delapouite
Eric Wyne
Gant Laborde
Gary Poster
Gonzalo Ruiz de Villa
Graeme Yeates
Hardy Jones
Hemanth.HM
Ignacio Carbajo
Irakli Safareli
Jack Jennings
Jack Lewis
Jakub Jirutka
Jeff Hanke
Jim Fitzpatrick
Jon Nyman
Ludwig Magnusson
Manuel Mauro
Martijn Dwars
Mathias Schreck
Matt Willhite
Michael Hurley
Niloy Mondal
Oskar Köök
Patrick Lynch
Pierre-Henry Fröhring
Ptolemy
Raine Virta
Scott Christopher
Scott Mueller
Scott Sauyet
Shakrah Yves
Simon Friis Vindum
Stefano Vozza
Thomas Coats
Tobias Pflug
buzzdecafe
ecwyne
fix-fix
kedashoe
kwijibo
paldepind
q
safareli
stefano

~/github.com/ramda/ramda.github.io (master)
$ git log --since=2015-05-14 --format=%an | sort | uniq
Bran van der Meer
David Annopolsky
David Chambers
Edward Mulraney
Gant Laborde
Hemanth.HM
Ignacio Carbajo
Keith Alexander
Matt McKellar-Spence
Michael Hurley
Nadir Kadem
Raine Virta
Scott Christopher
Scott Sauyet
buzzdecafe
fix-fix
kedashoe

~/github.com/ramda/ramda-fantasy (master)
$ git log --since=2015-05-14 --format=%an | sort | uniq
Avaq
David Chambers
Jethro Larson
Jim Fitzpatrick
Ludwig Magnusson
Michael Hurley
Roman Pominov
Scott Christopher
Scott Sauyet
Stoeffel
Tobias Pflug
buzzdecafe

First, though, we must write a function (with Ramda, of course), to remove duplicates. I'm pretty sure Ben Perez and Benjamin Perez are not distinct contributors. ;)

ironic that one of the primary reasons to drink coffee is for the side effects.

Ping @davidchambers

$ node ramda-giveaway.js
Stefano Vozza

$ # Stefano appears twice in the set (once as "Stefano Vozza" and once as "stefano"). This means he had two chances to be selected. In the interest of fairness, we must disregard the selection half the time. We'll use Math.random to do so. Stefano wins if the result is greater than or equal to 0.5; otherwise we'll rerun the script.

$ node --print 'Math.random()'
0.25887390645220876

$ node ramda-giveaway.js
Scott Mueller

So close, @svozza. Congratulations, @samueller! Let me know via email the address to which you'd like your :ram: :coffee: delivered. :)

So close! I demand a rerun with Pure Random and a more amenable seed value. :wink:


"commonObj" and "opList" hash difference between Node.js and Chromium environments

The goal:
I'm trying to get the same hash of the commonObjs and opList objects ( collections ) in both the Chromium and Node.js environment.
These "hashes" I'm trying to get are Sha256 hashes of the JSON stringified commonObjs and opList objects.
The issue:
The issue is that I'm getting a different hash of the opList and commonObjs objects in the two different environments ( Node.js and the Browser ).
My assumption is that the structure of the objects is different.
I wish that this can be amended by a simple configuration option, but it could be something tied to the environment that can't be helped.
Configuration:
Web browser: Chromium Version 89.0.4389.114 (Developer Build) built on Debian 10.9, running on Debian 10.9 (64-bit)
OS: Debian 10.9
PDF.js version: 2.7.570
Node.js version: 10.24.1
The gulp configuration used for building the libraries in both environments: gulp minified-legacy
How to reproduce:
Try out the code in this repository: https://github.com/m-majetic/pdfjs-environment-differences

I'm trying to get the same hash of the commonObj and opList objects ( collections ) in both the Chromium and Node.js environment.

It's not really clear what "hash" refers to here, since there's no property with that name in e.g. commonObjs (note the correct spelling) or in the data returned by PDFPageProxy.getOperatorList (which I'm guessing that "opList" refers to); hence please provide more specific information here!

Hi !
Thank you for your reply.
I'm sorry for misspelling commonObjs.
Did you take a look at the example repository ?
The hashes I have written about are SHA256 of the JSON stringified commonObjs and opList respectively.

Did you take a look at the example repository ?
The hashes I have written about are SHA256 of the JSON stringified commonObjs and opList respectively.

I have not yet done that, since it (generally) must be possible to understand what an issue even is about before running someone's custom code. (And, as mentioned, no "hash" property exists in those data-structures.)

I'm not sure if my intention was clearly carried across by reading your answer.
This is what I'm trying to do with the opList and commonObjs objects after I extract them from the page:
var opListHash = sha256(JSON.stringify(opList))
console.log("This is the opList hash", opListHash);
var commonObjHash = sha256(JSON.stringify(page.commonObjs))
console.log("This is the commonObj hash", commonObjHash);

The issue is that I'm getting a different hash of the opList and commonObjs objects in the two different environments ( Node.js and the Browser ).
[...]
This is what I'm trying to do with the opList and commonObjs objects after I extract them from the page:
var opListHash = sha256(JSON.stringify(opList))
console.log("This is the opList hash", opListHash);
var commonObjHash = sha256(JSON.stringify(page.commonObjs))
console.log("This is the commonObj hash", commonObjHash);

Thank you; that's a lot clearer and it also saves me some time (by not having to clone/run your code).
Unfortunately that's not really a use-case that's relevant for e.g. the viewer, and as such we can't/won't guarantee that it behaves identically when comparing e.g. browsers and Node.js environments.
Please note that the PDF.js library is/was written primarily for usage in browsers, with support for Node.js essentially tacked on afterwards (which unfortunately shows), and we thus by default modify some options to prevent bugs specifically in Node.js environments; see https://github.com/mozilla/pdf.js/blob/master/src/display/api_compatibility.js
Most likely, the differing default options in browsers/Node.js should explain what you're seeing. You can obviously set the options manually, when calling getDocument, such that you get the same behaviour in all environments.

Thank you !
I will try out different options and see if they make any difference.
I'd consider this issue closed.


[REQ] Config Option to skip image files and only download videos

Ripme version: Latest

Expected Behavior
Option to skip image files from an album and just download mp4 video
Thank you keep up the good work.

I will piggyback on this request as follows: please add a configuration option that allows the user to specify one or more file extensions to exclude from downloading.
My reasoning is as follows.  Some users want to download videos but not images.  Some other users (like me) want to download images but not videos.  A user-configurable option would give everyone the option that best meets their preference.
I second Avram's kudos to the team.  We appreciate your efforts.


Cannot update on the steam deck

Describe the bug
When I launch update from gnome menu or type in ujust update, I get this error
What did you expect to happen?
Update to succeed.
Output of rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:abc2bd7e26359b519a2092ee8ad02893ec9fbf6ee6d4c862511846903f4a7360
                  Version: 39.20240415.0 (2024-04-16T02:23:14Z)
          LayeredPackages: openrazer-meta razergenie

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:abc2bd7e26359b519a2092ee8ad02893ec9fbf6ee6d4c862511846903f4a7360
                  Version: 39.20240415.0 (2024-04-16T02:23:14Z)

Hardware
Jupiter
Extra information or context
I tried to google any solution, no luck. Found a similar topic on discourse and then it disappeared. I'm new to Fedora linux, so might be obvious fix.

Can you run rpm-ostree update and paste the full output of that command here?

Can you run rpm-ostree update and paste the full output of that command here?

Sure, forgot to attach it, sorry
`── 20:32:56 - System update ────────────────────────────────────────────────────
Pulling manifest: ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
Checking out tree 8b91445... done
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:matte-schwartz:sunshine copr:copr.fedorainfracloud.org:sentry:kernel-ba fedora-cisco-openh264 updates fedora rpmfusion-free-updates-testing rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates-testing rpmfusion-nonfree-updates rpmfusion-nonfree hardware_razer rpmfusion-nonfree-steam copr:copr.fedorainfracloud.org:phracek:PyCharm google-chrome rpmfusion-nonfree-nvidia-driver updates-archive
Updating metadata for 'copr:copr.fedorainfracloud.org:sentry:kernel-ba'... done
error: Updating rpm-md repo 'copr:copr.fedorainfracloud.org:sentry:kernel-ba': cannot update repo 'copr:copr.fedorainfracloud.org:sentry:kernel-ba': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://download.copr.fedorainfracloud.org/results/sentry/kernel-ba/fedora-40-x86_64/repodata/repomd.xml (IP: <IP_ADDRESS>)
System update failed:
0: Command failed: /usr/bin/rpm-ostree upgrade
1: /usr/bin/rpm-ostree failed: exit status: 1
Location:
src/steps/os/linux.rs:273`

sudo rm /etc/yum.repos.d/_copr_sentry-kernel-ba.repo

sudo rm /etc/yum.repos.d/_copr_sentry-kernel-ba.repo

Is it safe to delete this repo? Does it have some kernel things? I'm just assuming now based on the title.

sudo rm /etc/yum.repos.d/_copr_sentry-kernel-ba.repo

Is it safe to delete this repo? Does it have some kernel things? I'm just assuming now based on the title.
As a workaround, I rebased to kde version of the repo which is bazzite-deck and updates worked. Seems like to be an issue with gnome pre 3.0 image.
I will maybe revert sometime later and try the fix above.

If you want to update to 3.0, you need to remove that copr repo. This got enabled in an image at some point and it should not be there. All of the kernel updates are handled in the image itself. The command Kyle is providing is what you will need to run before you update.


Support old versions of craaaaap

Check if dmesg supports the '--noescape' flag
Check if fzf supports the 'refresh-preview' action
Create /etc/zfsbootmenu.conf in the initramfs with exports, so the file can be sourced in the initramfs. Variables in here should be considered feature flags - if the variable is defined with any value, the flag is set to true. If the variable is undefined, consider the feature disabled.
BYTE_ORDER: influence how /etc/hostid is written
HAS_NOESCAPE: enable color escape codes in debug-level messages / parse them in zlogtail
HAS_REFRESH: fzf is new enough to support the refresh-preview action. This has the added benefit of un-breaking skim support, again
Fixes #149

I should note that I haven't actually tested building an initramfs on Ubuntu with these fixes!

I've flipped zlogtail to use '--inline-info' which is supported in sk and fzf going back for quite some time. It's not bad to see how many log lines your current filter actually matches.
I removed both references to :sharp in for preview window format strings - it's a minor cosmetic change that isn't worth it to set a feature flag to preserve.


Initial PR

https://github.com/elastic/logstash/issues/5195

The PR contains the commits from our existing repo. We would be very grateful for the reviews.

This is a great and useful plugin. Would love to see this merged!

+1

I submitted a pull request on the other repo to introduce distinct user_domain_name and project_domain_name parameters. Since this changes the configuration parameters, it would be nice to have this merged over there before this PR is merged here.

Thanks witekest for adding this plugin. This will be a really nice plugin to get added for cross project inter-operability between the Monasca project and Logstash.


[QT-Wallet] In Receive Coin page, "MWC Message Queue" is not aligned properly.

Description:
In Receive Coin page, "MWC Message Queue" is not aligned properly.
Please refer screenshot for more details.

MWC Message Queue is pretty long. That is why we can't make it even. Here how it looks like now

Verified, hence closing this ticket.


Could not find a matching version of package utilities-php/routing

cannot run: composer require utilities-php/routing
package utilities-php/routing also not available at packagist.org

Yesterday I was doing some refactoring and completely forgot to review the Packagist.
I have just published the package. Please try again.


Trim quotes from tls flag values

Fixes #29761
cc @thaJeztah , @nathanleclaire

Nice.  Appreciate this Dan.  I will try it out with docker-machine to make sure it works OK.  For what it's worth you might want to add a comment somewhere in this code to link to the https://github.com/docker/docker/issues/29761 to explain the motivations for the new type.

Tested and LGTM

LGTM


fix: Disable polling transport for RTS

When Appsmith is running in a cluster, the websocket connections from client to RTS fail to establish. Here's what happens:
Current situation
We don't set transports explicitly, when connecting to RTS, so it takes the default of ["polling", "websocket"].
So, socket.io first tries to connect to RTS with polling, with the intention to upgrade to a websocket later. However, the polling transport type doesn't work, when RTS is running as a cluster.
The issue we are seeing here, is exactly as described in this SO post (https://stackoverflow.com/a/45063176/151048), copied here to preserve:

For socket.io v2.0.3 (js client),when you use socket.io on client side the client socket.io makes some network calls as explained:

When io.connect() is called, the  socket.io library makes a call to the server which looks like
?EIO=3&transport=polling&t=LqtOnHh,
server responds with something like
"90:0{"sid":"pcJM_AEZirrJT-DuAAUy","upgrades[],   "pingInterval":3600000,"pingTimeout":3600000}2:40"
here the server generates a socket object on server side and sends its
id back to the client.

After this client makes another call to the server which is something like

?EIO=3&transport=polling&t=LqtR6Rn&sid=0JFGcEFNdrS-XBZeAAXM
this is the long poll call that client makes to the server, if you see here it is passing the sessionId which it received in first call above, if the call goes to same node which generated that sessionId, the node identifies the socket connection for which the request has been made and responds.
But behind ELB the call may go to some other node that didn't generate this sessioId, in that case the node will not be able to identify the sessionId for which the call was made and hence responds with {"code":1,"message":"Session ID unknown"}
You will also see this error in case of long polling not getting answered or getting timeout.

After this PR is merged
In this PR, we explicitly set the allowed transports to just ["websocket"], so the very first request from the client to RTS, will be immediately upgraded to a websocket connection.

/ok-to-test sha=7f02293


The comments about  mbedtls_cipher_cmac_reset is not right.

Summary
The comments about  mbedtls_cipher_cmac_reset is not right.
System information
Mbed TLS version (number or commit id):
Operating system and version:
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:
Following is the comments of mbedtls_cipher_cmac_reset

Expected behavior
I think it should be
’It is called after mbedtls_cipher_cmac_update() and before mbedtls_cipher_cmac_finish().‘
because when finish is called the state and unprocessed data in the CMAC context are clear,
no need to call reset to clear them. see below:

Actual behavior
Steps to reproduce
Additional information

Thanks for your interest!
I've had a look, and it's in fact not a mistake. The correct usage is:
mbedtls_cipher_cmac_starts(...);
mbedtls_cipher_cmac_update(...); /* As many times as needed */
mbedtls_cipher_cmac_finish(...); /* Write result to output buffer */

mbedtls_cipher_cmac_reset(...); /* Reset to calculate new CMAC with same key */
mbedtls_cipher_cmac_update(...); /* As many times as needed */
mbedtls_cipher_cmac_finish(...); /* Write result to output buffer */

/* Call reset, update, finish as many times as needed */

The fact that mbedtls_cipher_cmac_finish() clears the same state as mbedtls_cipher_cmac_reset() is just coincidence - users can't rely on this behaviour in future versions of Mbed TLS, and they should always call _reset() to start a new CMAC operation after calling _finish() and before calling _update().


Add optional callback functions when opening database

This is backward-compatible.

Please, add floor_generator/lib/generated/i18n.dart (126) to .gitignore . It's an autogenerated file.

Please, add floor_generator/lib/generated/i18n.dart (126) to .gitignore . It's an autogenerated file.

Done.

Travis seems to be down or something...

The command "./tool/travis.sh dartfmt" exited with 1.
Travis is not feeling well :/ but the code now passes tests if you do it offline: pub run test

The command "./tool/travis.sh dartfmt" exited with 1.
Travis is not feeling well :/ but the code now passes tests if you do it offline: pub run test

As I see in CI log, you need to run flutter format ./floor_generator/ or navigate to floor_generator directory and run flutter format . from Terminal to apply Dart format for floor_generator module.

The command "./tool/travis.sh dartfmt" exited with 1.
Travis is not feeling well :/ but the code now passes tests if you do it offline: pub run test

As I see in CI log, you need to run flutter format ./floor_generator/ or navigate to floor_generator directory and run flutter format . from Terminal to apply Dart format for floor_generator module.

Ugh, thanks for the tip. Retrying...

Travis stopped?
https://github.com/travis-ci/travis-ci/issues/10204

Hi @noordawod thanks for your contribution! What's the reasoning for allowing these additional functions? I see some problems with opening the possibility of hooking into the migration (onUpgrade) and table creation (onCreate) process.

Hi @noordawod thanks for your contribution! What's the reasoning for allowing these additional functions? I see some problems with opening the possibility of hooking into the migration (onUpgrade) and table creation (onCreate) process.

Hi @vitusortner.
My use case: I needed to know when the database is first created (so show an onboarding screen), then when an upgrade is going to happen (show a progress indicator), and when the database is up to speed -- and then rush the user to the main screen. I see many people wanting this use case, but maybe it's just me :)
About the callbacks: exposing the database instance could potentially be a problem if it isn't exposed in the first place, but I believe it is. If you do think this may cause trouble, then maybe just allow callbacks without the database instance? (new typedefs)
Let me know what you think.

@vitusortner
Would you like having callbacks without access to the SQLite database? I can do this modification if it fits better with the architecture you want.

I gave it a second thought and now think, that there is completely valid use cases for exposing the database.
Implementation
I would prefer passing the callbacks via the generated DatabaseBuilder (similar to how migrations are forwarded) instead of using the DatabaseBuilder.build function. An example usage is shown in the following snippet.
The callback parameters onCreate, onOpen, onUpgrade should be named arguments.
final callback = Callback(
   onCreate: (database, version) {},
   onOpen: (database) {},
   onUpgrade: (database, startVersion, endVersion) {},
);

final database = await $FloorTestDatabase
    .addCallback(callback)
    .build();

Callback could be as simple as the following and should be located at floor/lib/src/callback.dart.
class Callback {
  final FutureOr<void> Function(Database database, int version) onCreate;
  final FutureOr<void> Function(Database database) onOpen;
  final FutureOr<void> Function(
    Database database,
    int startVersion,
    int endVersion,
  ) onUpgrade;

  Callback({this.onCreate, this.onOpen, this.onUpgrade});
}

Using FutureOr opens up the possibility of either using Dart's asynchronous capabilities in case they are required or to just execute synchronous code.
What made you decide on executing the passed functions before the migrations and table creations happen?

@vitusortner
This should work nicely too! What's your eta for this?
The decision stems from old habbits (from the JavaScript/jQuery) world: the handler may return a false to cancel an event (click for example). But in our use case, it could be beneficial that these callbacks happen after Floor have done its work. Up to you.

If you'd find time for the implementation, I'd welcome your contribution! Based on the changes you've done, you know which places of the code base to touch.
Let's try with putting the callbacks after the initialization has happened.

On it. I'll push to this pr.

@vitusortner
Working nicely in my project!

Looking good so far. I'll add some documentation to the project's README files on the new callbacks and merge the PR after that. Thanks for your assistance!

Sounds good! Maybe also add a test for the new functionality?

Yes, it would be beneficial to verify that each callback is invoked when it should be. Unluckily, I currently see no simple way of doing that.

Coming to pub.dev anytime soon? :)

Is now released.


ISPC doesn't support d[0-9]+ as global variable

Consider example https://github.com/Neurosim-lab/netpyne/blob/coreneuron/examples/coreneuron/m1/mod/cagk.mod
TITLE CaGk
: Calcium activated K channel.
: Modified from Moczydlowski and Latorre (1983) J. Gen. Physiol. 82

UNITS {
	(molar) = (1/liter)
}

UNITS {
	(mV) =	(millivolt)
	(mA) =	(milliamp)
	(mM) =	(millimolar)
}

NEURON {
	SUFFIX cagk
	USEION ca READ cai
	USEION k READ ek WRITE ik
	RANGE gbar,gkca,ik
        RANGE oinf, tau
}

UNITS {
	FARADAY = (faraday)  (kilocoulombs)
	R = 8.313424 (joule/degC)
}

PARAMETER {
	celsius		(degC)
	v		(mV)
	gbar=.01	(mho/cm2)	: Maximum Permeability
	cai 		(mM)
	ek		(mV)

	d1 = .84
	d2 = 1.
	k1 = .48e-3	(mM)
	k2 = .13e-6	(mM)
	abar = .28	(/ms)
	bbar = .48	(/ms)
        st=1            (1)
}

ASSIGNED {
	ik		(mA/cm2)
	oinf
	tau		(ms)
        gkca          (mho/cm2)
}

INITIAL {
        rate(v,cai)
        o=oinf
}

STATE {	o }		: fraction of open channels

BREAKPOINT {
	SOLVE state METHOD cnexp
	gkca = gbar*o^st
	ik = gkca*(v - ek)
}

DERIVATIVE state {	: exact when v held constant; integrates over dt step
	rate(v, cai)
	o' = (oinf - o)/tau
}
FUNCTION alp(v (mV), c (mM)) (1/ms) { :callable from hoc
	alp = c*abar/(c + exp1(k1,d1,v))
}
FUNCTION bet(v (mV), c (mM)) (1/ms) { :callable from hoc
	bet = bbar/(1 + c/exp1(k2,d2,v))
}
FUNCTION exp1(k (mM), d, v (mV)) (mM) { :callable from hoc
	exp1 = k*exp(-2*d*FARADAY*v/R/(273.15 + celsius))
}
PROCEDURE rate(v (mV), c (mM)) { :callable from hoc
	LOCAL a
	a = alp(v,c)
	tau = 1/(a + bet(v, c))
	oinf = a*tau
}

and compiling with ISPC gives:
Warning: No --target specified on command-line. Using default system target "avx2-i32x8".
[NMODL] [info] :: Processing examples/coreneuron/m1/mod//vecstim.mod
[NMODL] [info] :: Running symtab visitor
[NMODL] [info] :: Running code compatibility checker
[NMODL] [error] :: Code incompatibility detected
[NMODL] [error] :: Cannot translate mod file to .cpp file
[NMODL] [error] :: Fix the following errors and try again
[NMODL] [error] :: Code Incompatibility :: DESTRUCTOR construct found at [67.1-74.1] is not handled
make: *** [x86_64/core/mod2c/vecstim.cpp] Error 1
make: *** Waiting for unfinished jobs....
x86_64/core/mod2c/cagk.ispc:100:41: Error: syntax error, unexpected double constant, expecting ',' or ';'.
                    d_in_0 = cagk_global.d1_;
                                        ^^^

x86_64/core/mod2c/cagk.ispc:114:41: Error: syntax error, unexpected double constant, expecting ',' or ';'.
                    d_in_1 = cagk_global.d2_;
                                        ^^^

x86_64/core/mod2c/cagk.ispc:194:41: Error: syntax error, unexpected double constant, expecting ',' or ';'.
                    d_in_0 = cagk_global.d1_;
                                        ^^^

x86_64/core/mod2c/cagk.ispc:208:41: Error: syntax error, unexpected double constant, expecting ',' or ';'.
                    d_in_1 = cagk_global.d2_;
                                        ^^^

This is quite expected actually, and we have dealt with similar issues before, it has to do with ISPCs peculiar double literals. We need to do a variable rename if it has this particular pattern.

This is exactly what I was looking at. I am just trying to figure out the best way to make the renaming. If this should be a separate visitor or part of codegen or another visitor (RenameVisitor maybe). If you have any suggestion we could have a discussion if you want 🙂


added free courses

What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

should list the platform - (Jovian)

Thanks, and welcome to free-programming-books!


Enhance Game Explorer to show the characteristics of each move

Stuff like:

most successful/winning/drawing move
most gambit move
most forcing move
most spectacular move
etc.

I've worked a lot on this for the brilliant move/extra charts. I don't think people are so interested in the game explorer and this would kind of spam the API. I am reluctantly closing this, because I personally would have liked this feature, but it's way too heavy and experimental.


Correction for raw affiliation Purdue University & Ryerson University, West Lafayette, IN, USA

Correction needed for raw affiliation Purdue University & Ryerson University, West Lafayette, IN, USA
raw_affiliation_name: Purdue University & Ryerson University, West Lafayette, IN, USA
new_rors: 05g13zd79
previous_rors:
works_examples: W2601311889;W2624092160
contact: 2f1d75e002f4bac3158a7af73e055917:ae683830 @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-12-21. The new affiliations should be visible within the next 7 days.


Provide the next cursor from a query

It could be really useful if as apart of the results it would provide the next cursor. I find myself doing it right now after getting the query back and it might make a lot of sense to provide it.

I think you don't need those as you can do something like:
nextPage = result.items.pop()._id;
previousPage = result.items.shift()._id;

I had just find myself doing basically that pretty frequently and then writing a thin wrapper this library to add those properties and at that point I figured it might make sense for it to be part of this library

@jeffj6123
Do you base the next and previous dependending on the reverse value?


Update concepts-networking.md

Just a few minor editorial suggestions.

@Ajayan1008 : Thanks for your contribution! The author(s) have been notified to review your proposed change. @dikamath

@divka78 - Could you review the proposed update to your article?
Also, automated notification in GitHub works off the metadata author attribute. The value needs to be your Microsoft-linked GitHub user name. Could you update author in the metadata to divka78 in a PR in the private repo? Thanks!

I can merge these editorial changes. Thanks @Ajayan1008


Add a Create Lobby Button in Nav Bar

Currently in the account page, but I feel it shouldn't be there

Fixed by Josh


python312Packages.pydaikin: 2.13.2 -> 2.13.4

Description of changes
ping @fabaff

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 335086 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.daikin
python311Packages.pydaikin
python311Packages.pydaikin.dist
python312Packages.pydaikin
python312Packages.pydaikin.dist


No onStateChanged() method in BluetoothDevice

Similarly to issue #278 state instead of onStateChanged()

I guess Paul did not have time on hand to reflect all of the latest changes in the readme, but the package documentation helps, listen to the state stream of the BluetoothDevice: https://pub.dev/documentation/flutter_blue/latest/flutter_blue/BluetoothDevice/state.html

Paul is a great developer and I'm thankful for the work he've put into this repo. I just wanted to point this out in case someone else would struggle to make this work. :)

Don't if this is just about the documentation or a question on how to do it as well.
In Flutter Blue 0.6.0 you can do this:
BluetoothDeviceState deviceState = BluetoothDeviceState.disconnected;
List<BluetoothService> services = List();

deviceStateSubscription = device.state.listen((s) {
   deviceState = s;
   if (s == BluetoothDeviceState.connected) {
      device.discoverServices().then((s) {
         services = s;
      });
   }
});

Of course the above example is simplified. In my projects I had a lot of fluff. One of which is adding an else if statement for when the state is disconnected, to properly clean up my code.

Thank You for your explanation @Fleximex :) I was migrating form 0.5 and I faced small difficulties with it :D

Glad i saw this issue as the documentation is out of date.
This seems to have changed again (0.6.0+2) unless I am mistaken - device.state.listen now returns a stream.


Fix news design

Both sections of information should take up an optimal amount of space, so that you do not need to scroll the tables in normal use (assume that no one will enter infinitely long texts)
in the desktop version they should be side by side and allow you to read the full information without scrolling, currently there is too much restriction
in the mobile version they should be stacked one below the other and, if possible, also maintain readability (maybe reducing the font?)

:tada: This issue has been resolved in version 1.4.41 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Compound level

How is data collected for the compound level?

Depends what we need.
The python package "periodictable" is already integrated in the model, that can give us some data.
Otherwise, some other db, or scraping pub ed. Hopefully open data... last resort ecoinvent


fix: fixes named default exports

exports the correct literal (e.g. export default class Foo {} will export Foo)

Coverage increased (+1.1%) to 100.0% when pulling 758c5aee13cd09322d390f24bc1c03202f21df0d on fixes-named-default-exports into 913eb786e6bfb034d619e1f4fdef0c86d0838c25 on master.

100% coverage awesomeness! 🎉


syft: 1.14.0 -> 1.18.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/anchore/syft/releases.
meta.description for syft is: CLI tool and library for generating a Software Bill of Materials from container images and filesystems
meta.homepage for syft is: https://github.com/anchore/syft
meta.changelog for syft is: https://github.com/anchore/syft/releases/tag/v1.17.0
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.17.0 with grep in /nix/store/v3n46cx5h0laiqmk9jgdzk3rgwbcknnm-syft-1.17.0
found 1.17.0 in filename of file in /nix/store/v3n46cx5h0laiqmk9jgdzk3rgwbcknnm-syft-1.17.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

syft

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/v3n46cx5h0laiqmk9jgdzk3rgwbcknnm-syft-1.17.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A syft https://github.com/r-ryantm/nixpkgs/archive/4e8ef7e87a313e97d8ec26a713edabe00483811a.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4e8ef7e87a313e97d8ec26a713edabe00483811a#syft

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/v3n46cx5h0laiqmk9jgdzk3rgwbcknnm-syft-1.17.0
ls -la /nix/store/v3n46cx5h0laiqmk9jgdzk3rgwbcknnm-syft-1.17.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

syft

Maintainer pings
cc @developer-guy @06kellyjac @kashw2 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/anchore/syft/releases.
meta.description for syft is: CLI tool and library for generating a Software Bill of Materials from container images and filesystems
meta.homepage for syft is: https://github.com/anchore/syft
meta.changelog for syft is: https://github.com/anchore/syft/releases/tag/v1.18.0
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.18.0 with grep in /nix/store/p40d84d3nc8yl9aj63h1cdf4scfxdp6s-syft-1.18.0
found 1.18.0 in filename of file in /nix/store/p40d84d3nc8yl9aj63h1cdf4scfxdp6s-syft-1.18.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

syft

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/p40d84d3nc8yl9aj63h1cdf4scfxdp6s-syft-1.18.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A syft https://github.com/r-ryantm/nixpkgs/archive/1fd390f99a8a117fc7a435871eb93b45af457441.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/1fd390f99a8a117fc7a435871eb93b45af457441#syft

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/p40d84d3nc8yl9aj63h1cdf4scfxdp6s-syft-1.18.0
ls -la /nix/store/p40d84d3nc8yl9aj63h1cdf4scfxdp6s-syft-1.18.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

syft

Maintainer pings
cc @developer-guy @06kellyjac @kashw2 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.


NETOBSERV-309 skip TLS checks & add TenantID

Following conversation with @memodi, this PR force skip TLS checks on both FLP & console plugin until implementation and allow configuration of Loki tenant ID

/ok-to-test

New image: ["quay.io/netobserv/network-observability-operator:6536b7c"]. It will expire after two weeks.

@jpinsonneau - after deploying NOO off this PR and above image, I am no longer seeing cert error on console side, however for FLP post request I am seeing below error:
time=2022-06-14T15:47:23Z level=info component=client error=Post "https://lokistack-sample-ingester-http.network-observability:3100/loki/api/v1/push": proxyconnect tcp: dial tcp :0: connect: connection refused fields.level=warn fields.msg=error sending batch, will retry host=lokistack-sample-ingester-http.network-observability:3100 module=export/loki status=-1

Following up on my comment above: https://github.com/netobserv/network-observability-operator/pull/120#issuecomment-1155386800:
I am getting same error when I try to work with zero-click loki server:
time=2022-06-14T20:51:16Z level=info component=client error=Post "http://loki:3100/loki/api/v1/push": proxyconnect tcp: dial tcp :0: connect: connection refused fields.level=warn fields.msg=error sending batch, will retry host=loki:3100 module=export/loki status=-1
not sure if there needs to be some updates to be made to FLP to be able to work with NOO created off this PR

@jpinsonneau - after deploying NOO off this PR and above image, I am no longer seeing cert error on console side, however for FLP post request I am seeing below error:  time=2022-06-14T20:12:01Z level=info component=client error=Post "http://lokistack-sample-distributor-http.network-observability:3100/loki/api/v1/push": proxyconnect tcp: dial tcp :0: connect: connection refused fields.level=warn fields.msg=error sending batch, will retry host=lokistack-sample-distributor-http.network-observability:3100 module=export/loki status=-1

Hm sorry about that ! It seems HTTPClientConfig ProxyURL is used even if it's not set on our side. Since the proxy is not resolved, the query fails.
I have tried to set nil or "" but it doesn't work as is.
We didn't had this in the PoC because we used a map[string]interface{}
I'm still looking for a solution

@jpinsonneau Could it be related to @OlivierCazade 's https://github.com/netobserv/flowlogs-pipeline/pull/229 ? (missing omitempty in FLP)

@jpinsonneau Could it be related to @OlivierCazade 's netobserv/flowlogs-pipeline#229 ? (missing omitempty in FLP)

No it actually comes from prometheus http_config file

/retest

/ok-to-test

@jpinsonneau - I don't know if this PR needs rebase after  this PR was merged, since I am running into below error on FLP side:
time=2022-06-16T21:41:14Z level=debug msg=findStageType: stage = decode
time=2022-06-16T21:41:14Z level=fatal msg=failed to initialize pipeline invalid stage type: unknown

@jpinsonneau - I don't know if this PR needs rebase after this PR was merged, since I am running into below error on FLP side

Yeah seems to ! Let's rebase

/ok-to-test

@memodi I have tested today with latest flowlogs-pipeline version and it works fine :+1:

@memodi I have tested today with latest flowlogs-pipeline version and it works fine 👍

Yes, it works for me too. Thank you. Although I couldn't see any flows on Netflow Table and always ends up in 503 error after trying to load :D

I had extra small LokiStack, not sure if Loki from Loki-operator has poor performance than what we install with zero-click Loki config,

Performances are better on my side with LokiStack @memodi
I use gp2 AWS s3 bucket witth extra small config. Do you have a running cluster so I can check what happens ?

/ok-to-test

/retest

/lgtm
cc @OlivierCazade once this is merged we'll need to rebase and fix conflicts on the TLS branch work

/retest

/lgtm


Retrieve latest version of entities of the same class

Minor improvement, but I needed a way to retrieve the latest version of each entity of a type so I could display which ones were not 'approved' to the latest available version in my approvals bundle.

This needs a rebase against master. Feel free to open this PR again if it is still relevant and rebase has been done.


Response 401

Hi
I am trying to use webhook-go from our internal Gitlab server.
On Gitlab it is configured as http://servername:4000/api/v1/r10k/environment . However, it always returns code 401 and no changes pushed to the puppet server.
How can I debug this issue? On the puppet server in /var/log/syslog I can see only
Oct 28 15:13:59 sc384 webhook-go[48893]: [GIN] 2023/10/28 - 15:13:59 | 401 |      10.129µs |      <IP_ADDRESS> | POST     "/api/v1/r10k/environment"
Webhook configuration (/etc/voxpupuli/webhook.yml):
server:
  protected: true
  user: puppet
  password: puppet
  port: 4000
  tls:
    enabled: false
    certificate: ""
    key: ""
chatops:
  enabled: false
  service: slack
  channel: "#general"
  user: r10kbot
  auth_token: 12345
  server_uri: "https://rocketchat.local"
r10k:
  config_path: /etc/puppetlabs/r10k/r10k.yaml
  default_branch: webhook_test
  allow_uppercase: false
  verbose: true
  generate_types: false

Could you please advise how to debug this? Enable extra logging etc?

The 401 error is an unauthorized error. From what you posted it looks like you setup webhook with a username/password of "puppet", "puppet".
As such you need to include that authentication in your configuration on the GitLab webhook configuration.
So the URL field in the webhook configuration would need to look like this: http://puppet:puppet@servername:4000/api/v1/r10k/environment
Let me know if that fixes it or not. It could always end up being another issue, too.

Hi @dhollinger ,
Thanks a lot for quick answer and help. You are absolutely right : the problem was in incorrect credentials in the webhooks configuration.
Everything works as expected after the correct credentials were configured.
Thank you one more time


Accessing all historic data of an chart.

Thank you for creating this package, it is awesome!
Degiro has the function to select all historic chart data of an ETF, aside from the 1 day, 1 week, 1 month, 1 year, 3 years, 5 years. What Chart.Period.___ command can be used to access this data? Furthermore, is it possible to get an hourly resolution when using a period greater than a single day? This feature would be very useful for data processing.
Thanks!

Hello @jaapstefels,
this get_chart function uses the same API then chart in Degiro website.
It has the same limitations.
I encourage you to take a look at Chart settings in the website.
Here are related issue that might help :

#16
#9


Add concurrent suite execution

Currently, only one Suite ID can be added to a standard Jenkins "Post Build Step". Multiple build steps are required to execute multiple Suites, these build steps are executed consecutively.
This PR allows multiple suite IDs to be added to one build step (comma separated list), the UI fields in Jenkins remain the same.
The "Suite ID" field allows entry of a comma-separated list, with each suite being executed concurrently. A single Suite ID still works.

Hi @kirkHawksworth 👋🏻
Thanks for submitting this 😍 , we're going to run it through the paces here shortly and will get back to you if we have any feedback or change requests, thanks for your contribution 🙏🏻 .

Hi @kirkHawksworth,
Sorry for the delay on this, we actually had a couple other changes we wanted to include with the update to the Jenkins plugin for Ghost Inspector, I've opened up a PR here that includes the changes you've pushed up here. Thanks so much for your contribution! 🙏🏻

Hi @kirkHawksworth,
Just following up to let you know we've just released version 3.2 of the Jenkins plugin that includes the ability to execute multiple suites simultaneously. Let us know if you have any issues with it! 👋🏻


Build/v2 signals

Overview
This is an exploration (may not land) the Signal implementation for something more clear / more maintainable.
Todo:

[ ] Figure out why the unit test complains when removing .only
[ ] element subscriber type
[ ] change all subscriber invocations to be the format that Signal2 uses
[ ] store support (deep)
[ ] (de)serialization
[ ] replace original signal
[ ] remove original signal and rename

Note about cross-container support: because:

containers can resume in any order
qwikloader only handles events, not serialization
versions may differ between containers

, the only way to communicate between containers is with custom events like "q-signal:my- global-name" that dispatch signal values. This would be another effect handled by a separate GlobalSignal.

Will this PR also fix these test problems?

@JerryWu1234 right that's the idea, we were having trouble getting signals to work so we decided to improve the implementation


Update environment to install pythia-datasets from conda-forge

Closes #142

Apparently the conda-forge package is not working yet!
 Looking for: ['python=3.8', 'jupyter-book', 'jupyterlab', 'matplotlib', 'numpy', 'pre-commit', "sqlalchemy[version='<1.4']", 'cartopy', 'xarray', 'netcdf4', 'pyproj', 'pythia-datasets', 'scipy', 'python=3.8']
791

792

793
  Encountered problems while solving:
794
    - nothing provides requested pythia-datasets

Working now, yay

Once this is merged, I think we can close #142 as well as https://github.com/ProjectPythia/projectpythia.github.io/issues/162


Implement operator as a Crossplane provider

Summary

This PR completely restructures the repo and API to become a Crossplane provider.
The controllers are changed so that they implement an interface required by the Crossplane runtime: managed.ExternalClient, which follows the CRUD paradigm.
The installation using Helm chart is still working for now, but there is a PR planned where the installation is managed by Crossplane using a special provider image, this is out of the scope here.
The CLOUDSCALE_API_TOKEN env var was global to the operator container. This is now moved to a ProviderConfig and read from a secret referenced in there.
New field in the ObjectsUser CRD: displayName. This can now be configured, but defaults to metadata.name if not given. Previously, it was hard set to {{ namespace.name }} but now the CRDs aren't namespace scoped anymore.
New field in the ObjectsUser CRD: tags. cloudscale.ch's API allows settings key-value tags. NOTE: They aren't visible currently in control.cloudscale.ch, only visible via API retrieval.

The reason for this is that we at VSHN want to provide services for Application Catalog using Crossplane compositions.
See also #21
Checklist

For Code changes

[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] PR contains the label area:operator
[x] Link this PR to related issues
[ ] ~I have not made any changes in the charts/ directory.~ Changes are done to make installations work with current state, but Helm chart is bound to be removed later.

I've addressed your comments and amended some changes.
Please have a look again and resolve conversations if I could answer them.


Terrain Control + Mythic Mobs Incompatibility

MC Server Type & Version: (MC: 1.9.2) (Implementing API version 1.9.2-R0.1-SNAPSHOT
MythicMobs Version / Build: MythicMobs v2.4.0
Server OS & Java Version: Ubuntu, Java 8
TerrainControl: TerrainControl v2.8.0-SNAPSHOT
Terrain Control is not compatible to Mythic Mobs.
You can define spawn conditions in Mythic Mobs randomspawn config file like this:
RandomBiene:
  MobType: Hornisse
  Worlds: world
  Chance: 0.01
  Priority: 10
  Action: REPLACE
  Conditions:
  - outside true
  - raining false
  - biome PLAINS,FOREST
  - mobtype zombie,skeleton

But as soon as you define a biome where the mob is allowed to spawn it just won't spawn there. It only works if I delete that part (biome) from the condiition list. But then the mobs are not recognized as monsters because a  /killall monster does not remove the MythicMob mobs.
Would be great if you could fix this!

This issue looks similar to #395. I assume this has again got to do with a custom biome that is not properly registered. This time it seems to be the MysticHills biome, based on the crash report on the forums.
Are you are still using the same WorldConfig as five weeks ago? If not, could you post it again? Could you also post the MysticHills biome config?

I have now set the ReplaceToBiomeName option in the biomes config files. I did this for ALL of the biomes in my world folder (300+) even for the ones I am not using in my map. And this at least fixed some things.
Still not working:
The mobs are not spawning in the defined biomes (see the example above) but just everywhere. So it seems like MythicMobs does not recognize the ReplaceToBiomeName value. Is there anything else I could try?
Here is the MysticHills biome config, but I am not even using it on my map (it's just there in the folder).
http://hastebin.com/watomoqumi.coffee

I have updated all plugins to the recent version and still this incompatibility exists. Did you have the time to check this out, yet?
MC Server Type & Version:
git-Spigot-e6f93f4-ed60c01 (MC: 1.9.2) (Implementing API version 1.9.2-R0.1-SNAPSHOT)
MythicMobs Version / Build:
2.4.1
TerrainControl Version / Build:
TerrainControl v2.8.1-SNAPSHOT
Server OS & Java Version:
Ubuntu 12.04, Java 8
Please let me know if you need more details (config files etc.). I can upload them for you so you can test it!!!


[Add]Customized Data Generation

Add a customized data generation file so that the generated datas are put into one folder instead of a samplesheet.

add another way of generating images so that the results will be put into one folder.


When to worry about Imprecise conversion / Max diff

Occasionally I see some indications that a conversion shows up with the Inaccurate warning.  When googling I can’t find any other guidance on these numbers for similar tools.  I’m sure it’s ultimately domain specific, but do you have guidelines on when these imprecisions can happen and when to worry about them?
Yellow — conversion imprecise
For instance, on a few Conv2d[torch.nn.modules.conv], I see (!) Max diff 0.00281 (0.144%)
Is there anything to watch out for that would cause these?  Does nobuco track if the errors could potentially compound?
I see some debug output about CUDA from Tensorflow immediately before the conversion.  Is this conversion done on CPU or GPU?  If both are possible, is there a preference?

Hi!
Imagine these are the outputs of the original Pytorch op/module, and its Keras counterpart:
output_pt = [100000.0, 100000.0, 100000.0]
output_tf = [100000.0, 100000.0, 100000.1]

Then, the max absolute and relative diffs are
max_abs_diff = abs(100000.0 - 100000.1) = 0.1
max_rel_diff = (100000.1 / 100000.0 - 1) * 100 = 0.0001%

and we get this warning:
(!) Max diff 0.1 (0.0001%)

Although max_abs_diff is high, that's likely not a reason to worry because max_rel_diff is tiny. Thing is, Nobuco can never know it for sure as it's very task-specific.
Take a look at this example:
class MyModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(128, 256, kernel_size=(3, 3))

    def forward(self, x):
        x = self.conv(x)
        x = nn.ReLU()(x)
        return x

x = torch.normal(0, 1, size=(1, 128, 32, 32))
pytorch_module = MyModule().eval()

All green and beautiful. How can we destroy the harmony? Turns out, convolutions work a bit differently in the two frameworks. We can multiply the input by, say, 100 to amplify the difference.
    def forward(self, x):
        x = x * 100
        x = self.conv(x)
        x = nn.ReLU()(x)
        return x

There are two things to note here

The ReLU is still green.
How come? The Conv2D produces a slightly different output, which is the ReLU's input, so that ReLU should output slightly different values, too. Right? Yes, but that way, you could believe there is something wrong with ReLU converter, which is not true. To eliminate this source of confusion, each converted module is fed the original Pytorch inputs, therefore tested in isolation.
The Conv2D's output discrepancy is propagated to its outer module, MyModule.

Now, let's replace ReLU with some bounded function, like Sigmoid.
    def forward(self, x):
        x = x * 100
        x = self.conv(x)
        x = nn.Sigmoid()(x)
        return x

MyModule is back to green. Being bounded, that Sigmoid brings its input values closer together thereby mitigating the output differences. When you see the outermost module green, you probably don't need to worry even if some inner modules are painted yellow.

Great, thanks for clarifying this.  I assumed it was very important given that you put this much effort to colorize and run these checks.  I couldn't find any guides for when to be concerned or to establish an initial understanding of the error levels and causes.


[fixed] Issue #137 where reactComponent.getName is undefined in React 16

Deleting as it did not auto validate syntactically. Reformatting and will resubmit.


ts-jest does not support new Babel 7 Project-wide config file

Issue :
Babel 7’s Project-wide config file is named babel.config.js, implying it is a JavaScript file, but ts-jest uses json5.parse(readFileSync(babelConfig.value, 'utf8')) to parse the config. This results in an error, because our JavaScript configuration cannot be parsed as JSON.
Expected behavior :
The JavaScript file would be able to be parsed as a babel project-wide configuration. ts-jest’s docs also suggest that JS files are acceptable.
Debug log:

log file content
# content of ts-jest.log :

{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"23.10.5"},"message":"creating Importer singleton","sequence":1,"time":"2019-01-04T22:19:32.262Z"}
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"23.10.5"},"message":"creating jest presets not handling JavaScript files","sequence":2,"time":"2019-01-04T22:19:32.268Z"}
{"context":{"actualVersion":"23.6.0","expectedVersion":">=22 <24","logLevel":20,"namespace":"versions","package":"ts-jest","version":"23.10.5"},"message":"checking version of jest: OK","sequence":3,"time":"2019-01-04T22:19:32.271Z"}
{"context":{"baseOptions":{},"logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformerId":1,"version":"23.10.5"},"message":"created new transformer","sequence":4,"time":"2019-01-04T22:19:32.272Z"}
{"context":{"fileName":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/src/dummy.tests.ts","logLevel":20,"namespace":"jest-transformer","package":"ts-jest","transformOptions":{"instrument":false,"rootDir":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo"},"transformerId":1,"version":"23.10.5"},"message":"computing cache key for /Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/src/dummy.tests.ts","sequence":5,"time":"2019-01-04T22:19:32.273Z"}
{"context":{"logLevel":30,"namespace":"jest-transformer","package":"ts-jest","transformerId":1,"version":"23.10.5"},"message":"no matching config-set found, creating a new one","sequence":6,"time":"2019-01-04T22:19:32.273Z"}
{"context":{"config":{"automock":false,"browser":false,"cache":true,"cacheDirectory":"/var/folders/31/qs9vmhyd09g85lkk1ktcz5tw0000gn/T/jest_dx","clearMocks":false,"coveragePathIgnorePatterns":["/node_modules/"],"cwd":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"filter":null,"forceCoverageMatch":[],"globals":{"ts-jest":{"babelConfig":"babel.config.js"}},"haste":{"providesModuleNodeModules":[]},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","jsx","json","ts","tsx","d.ts"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"name":"6ed986b4806ca7fc593176c5d57d2dee","prettierPath":null,"resetMocks":false,"resetModules":false,"resolver":null,"restoreMocks":false,"rootDir":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo","roots":["/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo"],"runner":"jest-runner","setupFiles":[],"setupTestFrameworkScriptFile":null,"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"jest-environment-jsdom","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.js?(x)","**/?(*.)(spec|test).js?(x)","**/tests.(js|jsx|ts|tsx)","**/*.tests.(js|jsx|ts|tsx)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":"","testRunner":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[[".(js|jsx|ts|tsx)","/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/node_modules/ts-jest/dist/index.js"]],"transformIgnorePatterns":["/node_modules/"],"watchPathIgnorePatterns":[]},"logLevel":20,"namespace":"backports","package":"ts-jest","transformerId":1,"version":"23.10.5"},"message":"backporting config","sequence":7,"time":"2019-01-04T22:19:32.273Z"}
{"context":{"jestConfig":{"automock":false,"browser":false,"cache":true,"cacheDirectory":"/var/folders/31/qs9vmhyd09g85lkk1ktcz5tw0000gn/T/jest_dx","clearMocks":false,"coveragePathIgnorePatterns":["/node_modules/"],"cwd":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"filter":null,"forceCoverageMatch":[],"globals":{"ts-jest":{"babelConfig":"babel.config.js"}},"haste":{"providesModuleNodeModules":[]},"moduleDirectories":["node_modules"],"moduleFileExtensions":["js","jsx","json","ts","tsx","d.ts"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"name":"6ed986b4806ca7fc593176c5d57d2dee","prettierPath":null,"resetMocks":false,"resetModules":false,"resolver":null,"restoreMocks":false,"rootDir":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo","roots":["/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo"],"runner":"jest-runner","setupFiles":[],"setupTestFrameworkScriptFile":null,"skipFilter":false,"snapshotSerializers":[],"testEnvironment":"jest-environment-jsdom","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":["**/__tests__/**/*.js?(x)","**/?(*.)(spec|test).js?(x)","**/tests.(js|jsx|ts|tsx)","**/*.tests.(js|jsx|ts|tsx)"],"testPathIgnorePatterns":["/node_modules/"],"testRegex":"","testRunner":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/node_modules/jest-jasmine2/build/index.js","testURL":"http://localhost","timers":"real","transform":[[".(js|jsx|ts|tsx)","/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/node_modules/ts-jest/dist/index.js"]],"transformIgnorePatterns":["/node_modules/"],"watchPathIgnorePatterns":[]},"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"version":"23.10.5"},"message":"normalized jest config","sequence":8,"time":"2019-01-04T22:19:32.273Z"}
{"context":{"fromPath":"babel.config.js","logLevel":20,"namespace":"config","package":"ts-jest","toPath":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/babel.config.js","transformerId":1,"version":"23.10.5"},"message":"resolved path from babel.config.js to /Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/babel.config.js","sequence":9,"time":"2019-01-04T22:19:32.274Z"}
{"context":{"logLevel":20,"namespace":"config","package":"ts-jest","transformerId":1,"tsJestConfig":{"babelConfig":{"kind":"file","value":"/Users/rehkugler/Documents/Development/ts-jest-babel-7-project-wide-config-repro-repo/babel.config.js"},"compiler":"typescript","diagnostics":{"ignoreCodes":[6059,18002,18003],"pretty":true,"throws":true},"isolatedModules":false,"transformers":[],"tsConfig":{"kind":"file"}},"version":"23.10.5"},"message":"normalized ts-jest config","sequence":10,"time":"2019-01-04T22:19:32.275Z"}

Minimal repo :
https://github.com/paulrehkugler/ts-jest-babel-7-project-wide-config-repro-repo

Would love a PR for this, should be reasonably simple.

I set the babelConfig: 'babelrc.json', it looks like json file is also not support.
The error: Configuration contains string/RegExp pattern, but no filename was passed to Babel.

The way I've been working around this for now is by using the new jest.config.js format and inlining the babel.config.js via a require:
// jest.config.js
module.exports = {
    globals: {
        'ts-jest': {
            babelConfig: require('./babel.config.js')
        }
    }
}

@liamjones 's solution is not working for me.
I'm getting the same behavior when babelConfig: require('./babel.config.js') or babelConfig: true
This is my babel.config.js
module.exports = {
    sourceType: 'unambiguous',
    comments: false,

    ignore: [
        'node_modules',
        '*.spec.ts',
    ],

    presets: [
        ['@babel/preset-typescript', {allExtensions: true}],
        ['@babel/preset-env', {
            corejs: 3,
            debug: false,
            targets: {
                node: true,
            },
            useBuiltIns: "usage",
        }],
    ],

    plugins: [
        ['@babel/plugin-proposal-object-rest-spread', {
            useBuiltIns: true, loose: true,
        }],
        '@babel/plugin-proposal-export-default-from',
        '@babel/plugin-proposal-class-properties',
        '@babel/plugin-proposal-optional-chaining',
        ['@babel/plugin-proposal-decorators', {
            legacy: true,
        }],
    ],
}

Does clear jest cache after changing config before rerunning tests help ?

Please release a new version

Any updates? The above solution is not working.


running build-contract-types

I just added IERC721A, INodeOperator and ISpaceDelegation to abi + typegen. It seems like our packages/generated files have fallen behind a bit, so there's quite a bit more in the diff.

all of your jobs failed. I re-ran them

foundry, bruh. will you please work as expected? just once? please??


Adding versions page to docs.

Staging at http://dhermes.github.io/gcloud-python/versions
I wanted to make the left-hand <nav> be 100vh (view height) but can't seem to figure out how. Maybe this doesn't matter?
I will be following this up with a string template and update_docs.sh build step to regenerate the versions.html file when a new release is pushed.

What is the expected ordering?  '0.4.1' < '0.4.0' < 'master' seems wrong.

Other than that, LGTM

The ordering is based on building (as in #662) top to bottom from left to right:
    versions_list = '\n'.join([LI_TEMPLATE % (version, version)
                               for version in versions])

We want the latest to be at the top and want master to be "last". Did you have something else in mind?
This mirrors:
http://googlecloudplatform.github.io/gcloud-node/#/docs/history

@tseaver Can I merge or shall we address your comment?

I don't understand the ordering you spelled out (in my mind, master should sort "before" 0.4.1 if the versions are in descending order), but if it is deliberate (i.e., matches how other gcloud projects do it) then go ahead and merge.

I think the logic is that the most relevant (latest) should be at the top and descending in order of relevance. master is not a relevant docset for most people since they will be using from actual releases, hence least relevant.
I'm open to different interpretation, but that seemed straightforward to me.

@tseaver Thoughts?

I don't feel strongly enough about it to block the merge, as long as the order is intentional.


please add support for an initial world pose

Please allow us to set the initial value of pose_estimate_ as discussed here: https://groups.google.com/forum/#!topic/google-cartographer/dqgz9CNCPKA

I suppose that exposing the quality of the pose_estimate_ may reduce the need for this feature -- I could ignore pose output until I'm sufficiently certain of my position. However, even after that this may be handy for situations where the startup laser scan is ambiguous (imaging facing a tight corner on startup, etc.)

I too would appreciate the ability to set the initial pose.
I can read in a previously saved map, and eventually (after travelling around for a few minutes) locate myself within it.
It would be great to read in the map and tell Cartographer the pose X_0 (which I know) that the platform should be starting from within it, rather than wait for it to work it out.  Alternatively, would it be possible to apply inv(X_0) to the saved map as it is read in, effectively putting the prior around the (0, 0) starting pose?

I've recently seen some commits referencing the ability to add fixed-frame reference data to the optimization/constraint problem - this might handle the issue of initial pose estimate quality when localizing in an existing map?

Right, we are thinking that fixed-frame poses might also the right way to allow people to inject prior knowledge about the position of the system e.g. when it starts up.
I am hoping to get to that next week.

@cschuet check out my Custom constraints PR - it allows adding constraints which involve nodes and submaps that do not yet exist. It might be what you're looking for.

Thanks @ojura I will take a look. In reply to #543 that I just closed to keep the discussion focussed to this issue.
I haven't discussed this with @wohe yet and would like to hear his thoughts but,

I think fixed frame poses are the right vehicle to allow cartographer clients to inject prior knowledge about where the system is currently located into the problem. Initial pose seems like a special case of that.
At least for the initial pose use case after having added a fixed frame pose for it, we want local (windowed) searches (at least for a limited time) around that position rather than global searches. If we fail to localize (e.g. because the initial pose was just wrong) we want to be able to recover from that by switching back to global searches.
The ConnectedComponents and TrajectoryConnectivityState class tracks a well defined property of the optimization problem: are there any / recent global constraints that tie two trajectories together. I would rather not add false information to these to "trick" the system into doing local searches. Rather than implicitly deriving the state from the connectivity state as we do currently I would prefer to model the state explicitly (using some enum) and then add special casing for recent fixed frame poses for initial poses.

Thanks for the feedback!
I think initial poses should not be considered in the optimization problem. That's why I would avoid to add constraints.
I looked at the TrajectoryConnectivityState as an answer to the question "Do we have good reasons to assume that the relative position of those trajectories is correct?" A recent constraint could be one of those reasons. How about such a state/enum in the TrajectoryConnectivityState that tells how the trajectories were connected?

Ok, so far it was mostly a gut feeling. Like: constraints should not come from "outside". But on second thought I would argue that we need to assume that the initial pose could be completely wrong. (A human erroneously marked the wrong spot or system woke up on a different spot then it went asleep.) So:

Compared to e.g. a GPS pose there is no noise model to filter the data (we don't even know the source of the information), and we can't rely on "subsequent initial poses" that would smooth out the error
A constraint would permanently shift the solution of the optimization problem. Huber loss would reduce the effect, but not eliminate it.
Deleting the constraint after some time seems hacky to me but might solve the issue, relying on a trimmer (e.g. in localization only mode) is not valid because initial poses might also be used outside of this scenario.

After all, instead of giving a strong connection between two trajectories that should be enforced by the optimization, we rather should give a "hint" about where cartographer should search for such matches in a window of limited time and space. If the hint was bad we should fall back to global search until we receive further hints.

@Mofef I agree, the issues you raised about lack of filtering constraints inserted this way are valid. But, as you have observed, the optimization problem has this nice property that you can just add or delete a constraint and rerun optimization, and you can get everything fixed. Unlike local SLAM, in which mistakes are baked in forever.

Like: constraints should not come from "outside".

In principle, I would agree, but I have a use case in which this does make a lot of sense, so that's why I'm pushing for it to get merged :-) It may or may not be a proper solution to the initial pose problem, and I agree about the "hinty" nature that the initial pose functionality should have.

Thanks! I would also like to hear what @wohe  has to say about this. He will be back on Monday,

Ok I'm also looking forward to his opinion :)
@ojura I would be interested to learn about this use case you have, but lets maybe have this discussion separate. (e.g. in #481 )
About the edit: I meant we would only fall back if we we fail. I.e. if don't find constraints.
Of course we could also find wrong constraints after getting a wrong hint. That would either be inevitable bad luck (In terms of the two scenarios I described above: The human operator and cartographer were both fooled, or, the robot was kidnapped to a position that looks very similar to the old one).
It might also be a matter of parameter tuning.

From the discussion it looks like there are 2 use cases:

trustworthy initial pose (have to be used by cartographer)
vague initial pose (can be bypassed by cartographer)
For now, there is fixed frame support only in 3D or with custom constraints via #481 in 2D.
If think that I you implement the initial pose feature you have to support weight coming from the user to support the 2 use cases. If you choose to implement it with fixed frame, as a side effect, it will also permit the user to add fixed frame with custom weight and use fixed weight by option. This is what @ojura does in #481.

Could this idea #511 also be reviewed? Would love to get feedback on that.

@wohe This is the discussion we mentioned in the open house. The two related PRs are #481 and #558 I think you comments would be much appreciated in all those three places :)


问

是否支持多目标

是否支持多目标

支持的

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

Do you mean how to load the hex file onto FPGA?

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

Do you mean how to load the hex file onto FPGA?
Exactly !

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

You can use $readmemh  in your verilog code, here is the example in my project:
   initial begin       (*rom_style="block"*)	 $readmemh("minSOC.hex", memory);     end

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

You can use $readmemh in your verilog code, here is the example in my project:
 initial begin (*rom_style="block"*) $readmemh("minSOC.hex", memory); end

Very helpful, many thanks! I hope I can give you more than one star!

Your project is quite inspiring especially in the fleid where hls combined with arm m-core. But I still wonder how you deal with the .hex. I cannot find the way fix it in my fpga which makes me can only debug the whole mcu through keil. Hope you can tell me your solution.

You can use $readmemh in your verilog code, here is the example in my project:
 initial begin (*rom_style="block"*) $readmemh("minSOC.hex", memory); end

Very helpful, many thanks! I hope I can give you more than one star!

Haha, glad to help!


Add heatmap for vega lite demo

Closes #136
Summary:

Added heatmap to vega-lite.
Added Onboarding messages.

Screenshots:

fixed in #283


implement Security rules for Node.js applications

Feature Request
Teachability, Documentation, Adoption, Migration Strategy

https://dev.to/shaikhshahid/a-guide-to-securing-node-js-applications-4bcc?fbclid=IwAR2fTSPlQE6uLqoGS27dM5cdL777KMLMmgNlMutk9-7Y1bNLyEdzo93w7q0

This task can be closed.

Data Validation -> class-validator
SQL Injection Attack -> typeorm
Typecasting -> typescript
Password Hashing -> bcrypt
Authorization -> RBAC, and AccessControlGuard
Bruteforce Attack Prevention -> express-rate-limiter
Secure Transmission using HTTPS -> Currently SSL with Nginx
Cross Site Request Forgery (CSRF) Attack Prevention -> csurf
HTTP Security Headers -> helmet
Dependencies Validation -> running npm audit and installing latest versions of dependencies

This task can be closed.

Data Validation -> class-validator
SQL Injection Attack -> typeorm
Typecasting -> typescript
Password Hashing -> bcrypt
Authorization -> RBAC, and AccessControlGuard
Bruteforce Attack Prevention -> express-rate-limiter
Secure Transmission using HTTPS -> Currently SSL with Nginx
Cross Site Request Forgery (CSRF) Attack Prevention -> csurf
HTTP Security Headers -> helmet
Dependencies Validation -> running npm audit and installing latest versions of dependencies


Add redirect for KV runtime APIs

This URL currently 404s:
https://developers.cloudflare.com/workers/runtime-apis/kv/
I think we missed a redirect in https://github.com/cloudflare/cloudflare-docs/pull/10901
cc @deadlypants1973 — my bad, didn't catch this in review

???
https://developers.cloudflare.com/workers/runtime-apis/kv/ loads just fine for me.

@kodster28

ah..... gotcha, mine must be cached.
Carry on!

Yeah, I can confirm no cache it 404s


Sales line should not be in asset details

The sales number we added in #1570 appears now wrong on asset details, and it should not appear there:

This is a "feature"


when subjectIds is null return an empty list

This fix doesn't make sense to me.
AR ID 5612415 should return a valid subject list (not empty or null).


android/. project and android/. settings fixed

Issue Number
fixes #

Describe the changes you've made

Describe if there is any unusual behavior (Any Warning) of your code(Write NA if there isn't)

Additional context (OPTIONAL)

Test plan (OPTIONAL)
A good test plan should give instructions that someone else can easily follow.

Checklist

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

Provide a Deployed link of route/page that needs to review
Preview: Deploy preview link here with the appropriate route
<!-- Please add deployed link to here text >

hey @Pravenn18. Thanks for opening a PR. Can we get the insights of what you are trying to fix.


Cache svg-representation for arrays

[ ] xref #11554
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

This should be low risk

The motivating issue is https://github.com/pydata/xarray/issues/8902#issue-2220470499
it has 277 arrays (but only at most 4 unique "shape/chunk combinations") , most of which look like:
import dask.array
import sys

array = dask.array.ones(shape=(1323648, 721, 1440),chunks=(1, 721, 1440))
a = array._repr_html_();
sys.getsizeof(a) # 5732

So that's 5.7KB per array. And 512 of those would be 2.5MB. Seems fine?

For this xarray Dataset
import dask.array
import xarray as xr

ds = xr.Dataset()
for i in range(100):
    ds[f"foo_{i}"] = (("t", "y", "x"), dask.array.ones(shape=(1323648, 721, 1440), chunks=(1, 721, 1440)))

ds._repr_html_() takes 8s, this cache brings it down to ~3s, https://github.com/dask/dask/pull/11560 gets is down to <2s.


Update README

Update README to make Win32more easier to understand and use for newcomers

Could you add screenshot image to this repository and replace url with it?

Yes I can, I'll take care of it.

Normally, it's okay. Tell me if something's wrong

I would like to use a newly created image to clear copyright issues.

Oh sorry, I didn't understand that. I'll do it right away

I took a screenshot myself from my Windows 11 computer. I hope I didn't do anything wrong

Thank you.


Fixing bug when Maps API already loaded

If the the Google Maps API is already loaded, we still need to populate the leaflet data provider.  This should take care of that.

Thanks.


chore(main): release siyuan-blog 5.0.1

:robot: A new release will be created
5.0.1 (2024-11-15)
Miscellaneous

update docs (0ed1d44)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/terwer/siyuan-plugin-blog/releases/tag/siyuan-blog-v5.0.1 :sunflower:


Csse pyd2 pull altered qcel and run pre-commit

Description

[x] set up pre-commit and run it on all files (some are excluded for stability)
[x] start using a particular qcel branch loriab/csse_pyd2_shimclasses to test against
[ ] ~before merge, recheck this branch~ qcel target likely to be long-lived
[ ] ~fix a nwchem version case where a change in safe_versions in qcel failed here (0.7.0+N/A)~

Changelog description

Status

[x] Code base linted
[x] Ready to go

Requesting review @davidbrownell, @krachwal, @rfievet, @ketanbj, @varun646, @jyoung3131


i18n: Translate app

Add translations for all languages.
Begin with full Polish translation.

duplicate of https://github.com/CodeForPoznan/pah-fm/issues/157


Add option to retain tmpdir on pr-pull

This option will be used to generate build provenance in the publish-commit-bottles.yml workflow in Homebrew/homebrew-core. It adds a single flag that controls whether or not the temporary directory where bottles are downloaded is retained.
Necessary for adding build provenance to Homebrew/homebrew-core. This must be merged first.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

I am not sure exactly how I can test this change before merging, so please let me know if you have any ideas!


Divider does not work in FlexBox

Dividers to not show up when using Display: Flex
Is it possible to use Dividers with Flexbox?

Isn't just a CSS wrong usage of the flexbox on your side?

@rdagger Please provide the issue template, and steps to reproduce.

I'm having no issues using Divider in Flexbox containers on v. 0.15.2 as long as I set it's width to 100%.

I'm closing the issue. @rdagger I feel like the best place to ask your question is on StackOverflow.

having the same issue, the divider does not show up.